oneshot-gtm-server 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin.mjs +6915 -0
- package/dist/bin.mjs.map +1 -0
- package/dist/web/assets/Button-DPVQuma9.js +2 -0
- package/dist/web/assets/Button-DPVQuma9.js.map +1 -0
- package/dist/web/assets/EmptyNote-C4quX2dg.js +2 -0
- package/dist/web/assets/EmptyNote-C4quX2dg.js.map +1 -0
- package/dist/web/assets/Field-D9WpcA8z.js +2 -0
- package/dist/web/assets/Field-D9WpcA8z.js.map +1 -0
- package/dist/web/assets/Modal-BVbdN0gj.js +2 -0
- package/dist/web/assets/Modal-BVbdN0gj.js.map +1 -0
- package/dist/web/assets/Skeleton-D7Z-VTMo.js +2 -0
- package/dist/web/assets/Skeleton-D7Z-VTMo.js.map +1 -0
- package/dist/web/assets/cadences-B8mwchUk.js +2 -0
- package/dist/web/assets/cadences-B8mwchUk.js.map +1 -0
- package/dist/web/assets/host-grotesk-latin-ext-wght-normal-B8jkyusk.woff2 +0 -0
- package/dist/web/assets/host-grotesk-latin-wght-normal-CBa0fl4q.woff2 +0 -0
- package/dist/web/assets/ibm-plex-mono-cyrillic-400-normal-BSMlKf0J.woff2 +0 -0
- package/dist/web/assets/ibm-plex-mono-cyrillic-400-normal-CEL4l2ZJ.woff +0 -0
- package/dist/web/assets/ibm-plex-mono-cyrillic-500-normal-Ael50iVv.woff +0 -0
- package/dist/web/assets/ibm-plex-mono-cyrillic-500-normal-Bq9vWWag.woff2 +0 -0
- package/dist/web/assets/ibm-plex-mono-cyrillic-600-normal-CTOM6hUh.woff2 +0 -0
- package/dist/web/assets/ibm-plex-mono-cyrillic-600-normal-fLZuRloM.woff +0 -0
- package/dist/web/assets/ibm-plex-mono-cyrillic-ext-400-normal-DMdlQ8Kv.woff +0 -0
- package/dist/web/assets/ibm-plex-mono-cyrillic-ext-400-normal-xuaO2J-f.woff2 +0 -0
- package/dist/web/assets/ibm-plex-mono-cyrillic-ext-500-normal-BIfNGwUT.woff +0 -0
- package/dist/web/assets/ibm-plex-mono-cyrillic-ext-500-normal-BqneJy0T.woff2 +0 -0
- package/dist/web/assets/ibm-plex-mono-cyrillic-ext-600-normal-9HEixskS.woff +0 -0
- package/dist/web/assets/ibm-plex-mono-cyrillic-ext-600-normal-V-xxqcpd.woff2 +0 -0
- package/dist/web/assets/ibm-plex-mono-latin-400-normal-CvHOgSBP.woff +0 -0
- package/dist/web/assets/ibm-plex-mono-latin-400-normal-DMJ8VG8y.woff2 +0 -0
- package/dist/web/assets/ibm-plex-mono-latin-500-normal-CB9ihrfo.woff +0 -0
- package/dist/web/assets/ibm-plex-mono-latin-500-normal-DSY6xOcd.woff2 +0 -0
- package/dist/web/assets/ibm-plex-mono-latin-600-normal-BgSNZQsw.woff2 +0 -0
- package/dist/web/assets/ibm-plex-mono-latin-600-normal-DWFSQ4vo.woff +0 -0
- package/dist/web/assets/ibm-plex-mono-latin-ext-400-normal-BmRBH3aV.woff2 +0 -0
- package/dist/web/assets/ibm-plex-mono-latin-ext-400-normal-D3D2R8hC.woff +0 -0
- package/dist/web/assets/ibm-plex-mono-latin-ext-500-normal-CAhNIIs5.woff2 +0 -0
- package/dist/web/assets/ibm-plex-mono-latin-ext-500-normal-CZ70TYgx.woff +0 -0
- package/dist/web/assets/ibm-plex-mono-latin-ext-600-normal-D38SheWl.woff2 +0 -0
- package/dist/web/assets/ibm-plex-mono-latin-ext-600-normal-DmB0ttJJ.woff +0 -0
- package/dist/web/assets/ibm-plex-mono-vietnamese-400-normal-BulugwFq.woff2 +0 -0
- package/dist/web/assets/ibm-plex-mono-vietnamese-400-normal-DDuiU_S-.woff +0 -0
- package/dist/web/assets/ibm-plex-mono-vietnamese-500-normal-C8zxqsMH.woff +0 -0
- package/dist/web/assets/ibm-plex-mono-vietnamese-500-normal-DZ4AoWbu.woff2 +0 -0
- package/dist/web/assets/ibm-plex-mono-vietnamese-600-normal-D2EvbN8M.woff2 +0 -0
- package/dist/web/assets/ibm-plex-mono-vietnamese-600-normal-iLQfcSjf.woff +0 -0
- package/dist/web/assets/ibm-plex-sans-cyrillic-400-normal-BTotfTJu.woff +0 -0
- package/dist/web/assets/ibm-plex-sans-cyrillic-400-normal-DZqxrq2p.woff2 +0 -0
- package/dist/web/assets/ibm-plex-sans-cyrillic-500-normal-ByOcLdNv.woff +0 -0
- package/dist/web/assets/ibm-plex-sans-cyrillic-500-normal-CocWQlwt.woff2 +0 -0
- package/dist/web/assets/ibm-plex-sans-cyrillic-600-normal-71GNu3SW.woff2 +0 -0
- package/dist/web/assets/ibm-plex-sans-cyrillic-600-normal-BGq0mW3O.woff +0 -0
- package/dist/web/assets/ibm-plex-sans-cyrillic-700-normal-D_uavGvn.woff2 +0 -0
- package/dist/web/assets/ibm-plex-sans-cyrillic-700-normal-RFb1v-CK.woff +0 -0
- package/dist/web/assets/ibm-plex-sans-cyrillic-ext-400-normal-Dsrv2Tcn.woff +0 -0
- package/dist/web/assets/ibm-plex-sans-cyrillic-ext-400-normal-g30qAdWV.woff2 +0 -0
- package/dist/web/assets/ibm-plex-sans-cyrillic-ext-500-normal-Cs5J6C77.woff2 +0 -0
- package/dist/web/assets/ibm-plex-sans-cyrillic-ext-500-normal-DB5PtV2g.woff +0 -0
- package/dist/web/assets/ibm-plex-sans-cyrillic-ext-600-normal-Bz0x94Yp.woff +0 -0
- package/dist/web/assets/ibm-plex-sans-cyrillic-ext-600-normal-DUMzJB7m.woff2 +0 -0
- package/dist/web/assets/ibm-plex-sans-cyrillic-ext-700-normal-BmRLXWpJ.woff2 +0 -0
- package/dist/web/assets/ibm-plex-sans-cyrillic-ext-700-normal-DCQwxkRk.woff +0 -0
- package/dist/web/assets/ibm-plex-sans-greek-400-normal-D9ESIMu3.woff +0 -0
- package/dist/web/assets/ibm-plex-sans-greek-400-normal-_efipK4i.woff2 +0 -0
- package/dist/web/assets/ibm-plex-sans-greek-500-normal-CuWXN6rf.woff +0 -0
- package/dist/web/assets/ibm-plex-sans-greek-500-normal-JMMifIXV.woff2 +0 -0
- package/dist/web/assets/ibm-plex-sans-greek-600-normal-D-CqTdkO.woff +0 -0
- package/dist/web/assets/ibm-plex-sans-greek-600-normal-DzTrcv_p.woff2 +0 -0
- package/dist/web/assets/ibm-plex-sans-greek-700-normal-CkZN0sRy.woff +0 -0
- package/dist/web/assets/ibm-plex-sans-greek-700-normal-wyJ6jzdA.woff2 +0 -0
- package/dist/web/assets/ibm-plex-sans-latin-400-normal-CDDApCn2.woff2 +0 -0
- package/dist/web/assets/ibm-plex-sans-latin-400-normal-CYLoc0-x.woff +0 -0
- package/dist/web/assets/ibm-plex-sans-latin-500-normal-6ng42L7E.woff2 +0 -0
- package/dist/web/assets/ibm-plex-sans-latin-500-normal-BgVn5rGT.woff +0 -0
- package/dist/web/assets/ibm-plex-sans-latin-600-normal-Cu4Hd6ag.woff +0 -0
- package/dist/web/assets/ibm-plex-sans-latin-600-normal-CuJfVYMP.woff2 +0 -0
- package/dist/web/assets/ibm-plex-sans-latin-700-normal-Bth3BMcD.woff +0 -0
- package/dist/web/assets/ibm-plex-sans-latin-700-normal-Bxkt5Cjx.woff2 +0 -0
- package/dist/web/assets/ibm-plex-sans-latin-ext-400-normal-C5H60-Va.woff2 +0 -0
- package/dist/web/assets/ibm-plex-sans-latin-ext-400-normal-RBey6euL.woff +0 -0
- package/dist/web/assets/ibm-plex-sans-latin-ext-500-normal-D0aIdm-b.woff +0 -0
- package/dist/web/assets/ibm-plex-sans-latin-ext-500-normal-DakdToA3.woff2 +0 -0
- package/dist/web/assets/ibm-plex-sans-latin-ext-600-normal-DIrixKbi.woff +0 -0
- package/dist/web/assets/ibm-plex-sans-latin-ext-600-normal-DOrvGEcy.woff2 +0 -0
- package/dist/web/assets/ibm-plex-sans-latin-ext-700-normal-DZH6Xh-4.woff +0 -0
- package/dist/web/assets/ibm-plex-sans-latin-ext-700-normal-aMgXseD4.woff2 +0 -0
- package/dist/web/assets/ibm-plex-sans-vietnamese-400-normal-DG4YqDda.woff2 +0 -0
- package/dist/web/assets/ibm-plex-sans-vietnamese-400-normal-fK1oJ5dG.woff +0 -0
- package/dist/web/assets/ibm-plex-sans-vietnamese-500-normal-BEb3_waV.woff +0 -0
- package/dist/web/assets/ibm-plex-sans-vietnamese-500-normal-e4dixQRQ.woff2 +0 -0
- package/dist/web/assets/ibm-plex-sans-vietnamese-600-normal-DgdngZtN.woff +0 -0
- package/dist/web/assets/ibm-plex-sans-vietnamese-600-normal-DpPYBSTl.woff2 +0 -0
- package/dist/web/assets/ibm-plex-sans-vietnamese-700-normal-BV5B8Are.woff +0 -0
- package/dist/web/assets/ibm-plex-sans-vietnamese-700-normal-CkEo6LDy.woff2 +0 -0
- package/dist/web/assets/index-DkobhtBa.js +60 -0
- package/dist/web/assets/index-DkobhtBa.js.map +1 -0
- package/dist/web/assets/index-Dovjfyuq.css +2 -0
- package/dist/web/assets/measure-DLFAK1ZQ.js +2 -0
- package/dist/web/assets/measure-DLFAK1ZQ.js.map +1 -0
- package/dist/web/assets/plays-BUfo3QKZ.js +2 -0
- package/dist/web/assets/plays-BUfo3QKZ.js.map +1 -0
- package/dist/web/assets/queue-0mKz6GO1.js +2 -0
- package/dist/web/assets/queue-0mKz6GO1.js.map +1 -0
- package/dist/web/assets/receipts-CzIfb6zY.js +2 -0
- package/dist/web/assets/receipts-CzIfb6zY.js.map +1 -0
- package/dist/web/assets/routes-BEYqVix5.js +2 -0
- package/dist/web/assets/routes-BEYqVix5.js.map +1 -0
- package/dist/web/assets/run._playName-CJIjxoPb.js +5 -0
- package/dist/web/assets/run._playName-CJIjxoPb.js.map +1 -0
- package/dist/web/assets/setup-CFmdIoj0.js +2 -0
- package/dist/web/assets/setup-CFmdIoj0.js.map +1 -0
- package/dist/web/index.html +14 -0
- package/package.json +46 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{c as e,i as t,n,o as r,s as i,t as a,u as o}from"./Button-DPVQuma9.js";import{d as s,f as c,n as l,p as u,r as d}from"./index-DkobhtBa.js";import{a as f,i as p,n as m,r as h,s as g}from"./Field-D9WpcA8z.js";import{t as _}from"./EmptyNote-C4quX2dg.js";import{t as v}from"./Modal-BVbdN0gj.js";import{n as y}from"./Skeleton-D7Z-VTMo.js";var b=r(`circle-stop`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`rect`,{x:`9`,y:`9`,width:`6`,height:`6`,rx:`1`,key:`1ssd4o`}]]),x=r(`trophy`,[[`path`,{d:`M10 14.66v1.626a2 2 0 0 1-.976 1.696A5 5 0 0 0 7 21.978`,key:`1n3hpd`}],[`path`,{d:`M14 14.66v1.626a2 2 0 0 0 .976 1.696A5 5 0 0 1 17 21.978`,key:`rfe1zi`}],[`path`,{d:`M18 9h1.5a1 1 0 0 0 0-5H18`,key:`7xy6bh`}],[`path`,{d:`M4 22h16`,key:`57wxv0`}],[`path`,{d:`M6 9a6 6 0 0 0 12 0V3a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1z`,key:`1mhfuq`}],[`path`,{d:`M6 9H4.5a1 1 0 0 1 0-5H6`,key:`tex48p`}]]),S=o(e()),C=i();function w({current:e,total:t,tone:r=`neutral`,className:i}){if(t<=0)return(0,C.jsx)(`span`,{className:n(`font-mono text-[11px] text-ink-faint`,i),children:`—`});let a=Array.from({length:t},(t,n)=>n<e),o={neutral:`var(--ink-cream-2)`,receipt:`var(--ink-receipt)`,signal:`var(--ink-signal)`,spend:`var(--ink-spend)`,blocked:`var(--ink-blocked)`}[r]??`var(--ink-cream-2)`;return(0,C.jsx)(`span`,{className:n(`inline-flex items-center gap-1`,i),"aria-label":`step ${e} of ${t}`,title:`step ${e} of ${t}`,children:a.map((e,t)=>(0,C.jsx)(`span`,{"aria-hidden":`true`,className:n(`h-[6px] w-[6px] rounded-full`),style:{background:e?o:`transparent`,border:e?`none`:`1px solid var(--ink-rule)`}},t))})}var T={"show-hn":1,"job-change":3,"post-funding":3,"accelerator-batch":3,concierge:3,"demo-no-show":2,"competitor-switch":1,"hiring-signal":1,"podcast-guest":1,"breakup-revive":1};function E(e){switch(e){case`active`:return`receipt`;case`replied`:return`signal`;case`breakup`:return`spend`;case`completed`:return`neutral`;default:return`neutral`}}function D(){let e=u(),[r,i]=(0,S.useState)(!1),[o,D]=(0,S.useState)(null),[A,j]=(0,S.useState)(`meeting_booked`),[M,N]=(0,S.useState)(``),[P,F]=(0,S.useState)(``),I=c({queryKey:[`cadences`,r],queryFn:()=>l.cadences(r),refetchInterval:15e3}),L=s({mutationFn:e=>l.stopCadence(e.prospectId,e.playName),onSuccess:(t,n)=>{e.invalidateQueries({queryKey:[`cadences`]}),e.invalidateQueries({queryKey:[`home`]}),d.success(`stopped cadence · ${n.playName}`)},onError:e=>d.error(`couldn't stop cadence: ${e.message}`)}),R=s({mutationFn:async()=>{if(!o)throw Error(`no modal open`);let e={email:o.email,outcome:A,playName:o.playName,...M?{amountUsd:Number.parseFloat(M)}:{},...P?{notes:P}:{}};return await l.recordOutcome(e)},onSuccess:()=>{D(null),N(``),F(``),e.invalidateQueries({queryKey:[`measure`]}),d.success(`outcome logged · ${A}`)},onError:e=>d.error(`couldn't log outcome: ${e.message}`)}),z=(0,S.useMemo)(()=>I.data?.cadences??[],[I.data]),B=(0,S.useMemo)(()=>k(z,r),[z,r]),V=new Date().toISOString();return(0,C.jsxs)(`div`,{className:`-mx-6 -my-6 flex flex-col`,children:[(0,C.jsxs)(`section`,{className:`flex items-end justify-between gap-4 border-b border-ink-rule px-6 pb-5 pt-6`,children:[(0,C.jsxs)(`div`,{children:[(0,C.jsx)(`div`,{className:`ln-eyebrow`,children:`The Ledger · Cadences`}),(0,C.jsx)(`h1`,{className:`mt-1 text-ink-cream`,style:{fontFamily:`var(--font-display)`,fontSize:44,fontWeight:600,letterSpacing:`-0.025em`,lineHeight:.98},children:`Prospects, in flight.`})]}),(0,C.jsxs)(`div`,{className:`flex items-center gap-1.5`,children:[(0,C.jsx)(a,{variant:r?`secondary`:`primary`,size:`sm`,onClick:()=>i(!1),children:`Active`}),(0,C.jsx)(a,{variant:r?`primary`:`secondary`,size:`sm`,onClick:()=>i(!0),children:`All`})]})]}),(0,C.jsxs)(`section`,{className:`grid grid-cols-2 divide-x divide-ink-rule border-b border-ink-rule md:grid-cols-4`,children:[(0,C.jsx)(O,{label:`Active`,value:B.active,caption:B.overdue>0?`${B.overdue} overdue`:`awaiting reply`,tone:B.overdue>0?`spend`:`receipt`}),(0,C.jsx)(O,{label:`Replied`,value:B.replied,caption:`signal over noise`,tone:`signal`}),(0,C.jsx)(O,{label:`Breakup`,value:B.breakup,caption:`final touch sent`,tone:`spend`}),(0,C.jsx)(O,{label:`Completed`,value:B.completed,caption:`full cadence done`})]}),(0,C.jsxs)(`section`,{className:`flex items-baseline justify-between border-b border-ink-rule px-6 py-2.5`,children:[(0,C.jsx)(`div`,{className:`ln-eyebrow`,children:I.data?(0,C.jsxs)(C.Fragment,{children:[z.length,` `,(0,C.jsx)(`span`,{className:`text-ink-faint`,children:r?`total`:`active`})]}):(0,C.jsx)(`span`,{className:`text-ink-faint`,children:`…`})}),(0,C.jsx)(`div`,{className:`font-mono text-[11px] text-ink-faint`,children:`refresh · 15s`})]}),(0,C.jsx)(`section`,{children:I.isLoading?(0,C.jsx)(`div`,{children:Array.from({length:5},(e,t)=>(0,C.jsx)(y,{},t))}):z.length===0?(0,C.jsx)(`div`,{className:`px-6 py-8`,children:(0,C.jsx)(_,{note:`No cadences in flight. The engine only runs for prospects you've already touched; send a play and they appear here.`,cli:`oneshot-gtm motion show-hn --target show-hn.json`})}):(0,C.jsxs)(`table`,{className:`w-full text-[13px]`,children:[(0,C.jsx)(`thead`,{className:`sticky top-0 z-10 bg-ink-bg`,children:(0,C.jsxs)(`tr`,{className:`border-b border-ink-rule text-[10px] uppercase tracking-[0.14em] text-ink-faint`,children:[(0,C.jsx)(`th`,{className:`px-6 py-2 text-left font-medium`,children:`prospect`}),(0,C.jsx)(`th`,{className:`py-2 text-left font-medium`,children:`play`}),(0,C.jsx)(`th`,{className:`py-2 text-left font-medium`,children:`status`}),(0,C.jsx)(`th`,{className:`py-2 text-left font-medium`,children:`step`}),(0,C.jsx)(`th`,{className:`py-2 text-right font-medium`,children:`next due`}),(0,C.jsx)(`th`,{className:`py-2 text-right font-medium`,children:`enrolled`}),(0,C.jsx)(`th`,{className:`px-6 py-2 text-right font-medium`,children:`actions`})]})}),(0,C.jsx)(`tbody`,{children:z.map((e,r)=>{let i=(T[e.playName]??0)+1,o=e.status===`active`&&e.nextDueAt!==null&&e.nextDueAt<=V;return(0,C.jsxs)(`tr`,{className:n(`border-b border-ink-rule/60 transition-colors duration-[var(--dur-stamp)]`,`hover:bg-ink-surface/60`,r%2==1&&`bg-ink-surface/20`),children:[(0,C.jsxs)(`td`,{className:`px-6 py-2`,children:[(0,C.jsx)(`div`,{className:`text-ink-cream`,children:e.prospectName??`(unknown)`}),(0,C.jsx)(`div`,{className:`font-mono text-[11px] text-ink-faint`,children:e.prospectEmail??`—`})]}),(0,C.jsx)(`td`,{className:`py-2 text-ink-cream-2`,children:e.playName}),(0,C.jsx)(`td`,{className:`py-2`,children:(0,C.jsx)(g,{tone:E(e.status),children:e.status})}),(0,C.jsx)(`td`,{className:`py-2`,children:(0,C.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,C.jsx)(w,{current:Math.min(e.currentStep+1,i),total:i,tone:e.status===`replied`?`signal`:e.status===`breakup`?`spend`:`receipt`}),(0,C.jsxs)(`span`,{className:`font-mono text-[11px] text-ink-faint`,children:[e.currentStep+1,`/`,i]})]})}),(0,C.jsxs)(`td`,{className:n(`py-2 text-right font-mono text-[12px]`,o?`text-[color:var(--ink-spend-2)]`:`text-ink-muted`),children:[t(e.nextDueAt),o&&(0,C.jsx)(`span`,{className:`ml-1 text-[10px]`,children:`· overdue`})]}),(0,C.jsx)(`td`,{className:`py-2 text-right font-mono text-[11px] text-ink-faint`,children:t(e.enrolledAt)}),(0,C.jsx)(`td`,{className:`px-6 py-2 text-right`,children:(0,C.jsxs)(`div`,{className:`flex items-center justify-end gap-1`,children:[e.status===`active`&&(0,C.jsx)(a,{variant:`ghost`,size:`sm`,title:`stop cadence`,disabled:L.isPending,onClick:()=>L.mutate({prospectId:e.prospectId,playName:e.playName}),children:(0,C.jsx)(b,{size:12})}),e.prospectEmail&&(0,C.jsx)(a,{variant:`ghost`,size:`sm`,title:`log outcome`,onClick:()=>D({email:e.prospectEmail,prospectName:e.prospectName,playName:e.playName}),children:(0,C.jsx)(x,{size:12})})]})})]},`${e.prospectId}-${e.playName}`)})})]})}),(0,C.jsx)(v,{open:o!=null,onClose:()=>D(null),title:`Log outcome${o?.prospectName?` — ${o.prospectName}`:``}`,footer:(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(a,{variant:`ghost`,onClick:()=>D(null),children:`Cancel`}),(0,C.jsx)(a,{onClick:()=>R.mutate(),disabled:R.isPending,children:R.isPending?`Saving…`:`Save outcome`})]}),children:(0,C.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[(0,C.jsxs)(`div`,{className:`font-mono text-[12px] text-ink-muted`,children:[`Prospect: `,(0,C.jsx)(`span`,{className:`text-ink-cream-2`,children:o?.email}),(0,C.jsx)(`br`,{}),`Play: `,(0,C.jsx)(`span`,{className:`text-ink-cream-2`,children:o?.playName})]}),(0,C.jsx)(m,{label:`Outcome`,children:(0,C.jsxs)(p,{value:A,onChange:e=>j(e.target.value),children:[(0,C.jsx)(`option`,{value:`meeting_booked`,children:`meeting_booked`}),(0,C.jsx)(`option`,{value:`sql_qualified`,children:`sql_qualified`}),(0,C.jsx)(`option`,{value:`deal_won`,children:`deal_won`}),(0,C.jsx)(`option`,{value:`deal_lost`,children:`deal_lost`}),(0,C.jsx)(`option`,{value:`ghosted`,children:`ghosted`})]})}),A===`deal_won`&&(0,C.jsx)(m,{label:`Amount (USD)`,children:(0,C.jsx)(h,{type:`number`,value:M,onChange:e=>N(e.target.value),placeholder:`5000`})}),(0,C.jsx)(m,{label:`Notes (optional)`,children:(0,C.jsx)(f,{rows:3,value:P,onChange:e=>F(e.target.value)})})]})})]})}function O({label:e,value:t,caption:n,tone:r=`neutral`}){return(0,C.jsxs)(`div`,{className:`px-5 py-4`,children:[(0,C.jsx)(`div`,{className:`ln-eyebrow`,children:e}),(0,C.jsx)(`div`,{className:`mt-1 truncate text-ink-cream ln-numeral`,style:{fontSize:32,lineHeight:1},children:t}),n&&(0,C.jsx)(`div`,{className:`mt-2 truncate font-mono text-[11px]`,style:{color:r===`spend`?`var(--ink-spend-2)`:r===`receipt`?`var(--ink-receipt-2)`:r===`signal`?`var(--ink-signal-2)`:`var(--ink-faint)`},children:n})]})}function k(e,t){let n=Date.now(),r=0,i=0,a=0,o=0,s=0;for(let t of e)t.status===`active`?(r++,t.nextDueAt&&new Date(t.nextDueAt).getTime()<=n&&s++):t.status===`replied`?i++:t.status===`breakup`?a++:t.status===`completed`&&o++;return t||(i=0,a=0,o=0),{active:r,replied:i,breakup:a,completed:o,overdue:s}}export{D as component};
|
|
2
|
+
//# sourceMappingURL=cadences-B8mwchUk.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cadences-B8mwchUk.js","names":["__iconNode","useMutation","useQuery","useQueryClient","CircleStop","Trophy","useMemo","useState","toast","api","Badge","Button","EmptyNote","Field","Input","Select","Textarea","Modal","SkeletonRow","StepProgress","cn","timeAgo","PLAY_STEPS","Record","concierge","statusTone","status","OutcomeModalState","email","prospectName","playName","CadencesPage","qc","showAll","setShowAll","outcomeModal","setOutcomeModal","outcomeKind","setOutcomeKind","OutcomeRequest","outcomeAmount","setOutcomeAmount","outcomeNotes","setOutcomeNotes","cadences","queryKey","queryFn","refetchInterval","stop","mutationFn","vars","prospectId","stopCadence","onSuccess","data","invalidateQueries","success","onError","err","error","message","logOutcome","Error","req","outcome","amountUsd","Number","parseFloat","notes","recordOutcome","list","aggregate","buildAggregate","nowIso","Date","toISOString","fontFamily","fontSize","fontWeight","letterSpacing","lineHeight","active","overdue","replied","breakup","completed","length","isLoading","Array","from","_","i","map","c","totalSteps","isOverdue","nextDueAt","prospectEmail","Math","min","currentStep","enrolledAt","isPending","mutate","e","target","value","CadenceSummary","label","caption","tone","captionColor","color","CadenceView","showingAll","now","getTime","component"],"sources":["../../../../node_modules/.bun/lucide-react@1.9.0+3f10a4be4e334a9b/node_modules/lucide-react/dist/esm/icons/circle-stop.mjs","../../../../node_modules/.bun/lucide-react@1.9.0+3f10a4be4e334a9b/node_modules/lucide-react/dist/esm/icons/trophy.mjs","../../src/components/primitives/StepProgress.tsx","../../src/routes/cadences.tsx?tsr-split=component"],"sourcesContent":["/**\n * @license lucide-react v1.9.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.mjs';\n\nconst __iconNode = [\n [\"circle\", { cx: \"12\", cy: \"12\", r: \"10\", key: \"1mglay\" }],\n [\"rect\", { x: \"9\", y: \"9\", width: \"6\", height: \"6\", rx: \"1\", key: \"1ssd4o\" }]\n];\nconst CircleStop = createLucideIcon(\"circle-stop\", __iconNode);\n\nexport { __iconNode, CircleStop as default };\n//# sourceMappingURL=circle-stop.mjs.map\n","/**\n * @license lucide-react v1.9.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.mjs';\n\nconst __iconNode = [\n [\"path\", { d: \"M10 14.66v1.626a2 2 0 0 1-.976 1.696A5 5 0 0 0 7 21.978\", key: \"1n3hpd\" }],\n [\"path\", { d: \"M14 14.66v1.626a2 2 0 0 0 .976 1.696A5 5 0 0 1 17 21.978\", key: \"rfe1zi\" }],\n [\"path\", { d: \"M18 9h1.5a1 1 0 0 0 0-5H18\", key: \"7xy6bh\" }],\n [\"path\", { d: \"M4 22h16\", key: \"57wxv0\" }],\n [\"path\", { d: \"M6 9a6 6 0 0 0 12 0V3a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1z\", key: \"1mhfuq\" }],\n [\"path\", { d: \"M6 9H4.5a1 1 0 0 1 0-5H6\", key: \"tex48p\" }]\n];\nconst Trophy = createLucideIcon(\"trophy\", __iconNode);\n\nexport { __iconNode, Trophy as default };\n//# sourceMappingURL=trophy.mjs.map\n","import { cn } from \"../../lib/cn.ts\";\n\n/**\n * A compact dot progress indicator — one dot per cadence step, filled\n * for completed and outlined for pending. Used in the cadences table\n * to show how far along a given prospect is in their sequence.\n *\n * ● ● ○ ○ step 2 of 4\n */\nexport function StepProgress({\n current,\n total,\n tone = \"neutral\",\n className,\n}: {\n current: number;\n total: number;\n tone?: \"neutral\" | \"receipt\" | \"signal\" | \"spend\" | \"blocked\";\n className?: string;\n}) {\n if (total <= 0) {\n return <span className={cn(\"font-mono text-[11px] text-ink-faint\", className)}>—</span>;\n }\n const dots = Array.from({ length: total }, (_, i) => i < current);\n const toneVar: Record<string, string> = {\n neutral: \"var(--ink-cream-2)\",\n receipt: \"var(--ink-receipt)\",\n signal: \"var(--ink-signal)\",\n spend: \"var(--ink-spend)\",\n blocked: \"var(--ink-blocked)\",\n };\n const fill = toneVar[tone] ?? \"var(--ink-cream-2)\";\n\n return (\n <span\n className={cn(\"inline-flex items-center gap-1\", className)}\n aria-label={`step ${current} of ${total}`}\n title={`step ${current} of ${total}`}\n >\n {dots.map((done, i) => (\n <span\n // Position IS the identity for a fixed-length progress bar — there\n // is no other unique data per dot. Index keys are correct here.\n // oxlint-disable-next-line react/no-array-index-key\n key={i}\n aria-hidden=\"true\"\n className={cn(\"h-[6px] w-[6px] rounded-full\")}\n style={{\n background: done ? fill : \"transparent\",\n border: done ? \"none\" : \"1px solid var(--ink-rule)\",\n }}\n />\n ))}\n </span>\n );\n}\n","import { useMutation, useQuery, useQueryClient } from \"@tanstack/react-query\";\nimport { createFileRoute } from \"@tanstack/react-router\";\nimport { CircleStop, Trophy } from \"lucide-react\";\nimport { useMemo, useState } from \"react\";\nimport { toast } from \"sonner\";\nimport type { CadenceView, OutcomeRequest } from \"@oneshot-gtm/shared-types\";\nimport { api } from \"../api/client.ts\";\nimport { Badge } from \"../components/primitives/Badge.tsx\";\nimport { Button } from \"../components/primitives/Button.tsx\";\nimport { EmptyNote } from \"../components/primitives/EmptyNote.tsx\";\nimport { Field, Input, Select, Textarea } from \"../components/primitives/Field.tsx\";\nimport { Modal } from \"../components/primitives/Modal.tsx\";\nimport { SkeletonRow } from \"../components/primitives/Skeleton.tsx\";\nimport { StepProgress } from \"../components/primitives/StepProgress.tsx\";\nimport { cn, timeAgo } from \"../lib/cn.ts\";\n\n// Mirror of the step counts defined in packages/plays/src/_cadence.ts.\n// `steps` = number of follow-up steps after the initial send. We show\n// `steps + 1` dots on the progress indicator to include day-0.\nconst PLAY_STEPS: Record<string, number> = {\n \"show-hn\": 1,\n \"job-change\": 3,\n \"post-funding\": 3,\n \"accelerator-batch\": 3,\n concierge: 3,\n \"demo-no-show\": 2,\n \"competitor-switch\": 1,\n \"hiring-signal\": 1,\n \"podcast-guest\": 1,\n \"breakup-revive\": 1,\n};\n\nexport const Route = createFileRoute(\"/cadences\")({\n component: CadencesPage,\n});\n\nfunction statusTone(status: string): \"receipt\" | \"signal\" | \"spend\" | \"neutral\" {\n switch (status) {\n case \"active\":\n return \"receipt\";\n case \"replied\":\n return \"signal\";\n case \"breakup\":\n return \"spend\";\n case \"completed\":\n return \"neutral\";\n default:\n return \"neutral\";\n }\n}\n\ninterface OutcomeModalState {\n email: string;\n prospectName: string | null;\n playName: string;\n}\n\nfunction CadencesPage() {\n const qc = useQueryClient();\n const [showAll, setShowAll] = useState(false);\n const [outcomeModal, setOutcomeModal] = useState<OutcomeModalState | null>(null);\n const [outcomeKind, setOutcomeKind] = useState<OutcomeRequest[\"outcome\"]>(\"meeting_booked\");\n const [outcomeAmount, setOutcomeAmount] = useState(\"\");\n const [outcomeNotes, setOutcomeNotes] = useState(\"\");\n\n const cadences = useQuery({\n queryKey: [\"cadences\", showAll],\n queryFn: () => api.cadences(showAll),\n refetchInterval: 15_000,\n });\n\n const stop = useMutation({\n mutationFn: (vars: { prospectId: number; playName: string }) =>\n api.stopCadence(vars.prospectId, vars.playName),\n onSuccess: (data, vars) => {\n void qc.invalidateQueries({ queryKey: [\"cadences\"] });\n void qc.invalidateQueries({ queryKey: [\"home\"] });\n toast.success(`stopped cadence · ${vars.playName}`);\n },\n onError: (err) => toast.error(`couldn't stop cadence: ${err.message}`),\n });\n\n const logOutcome = useMutation({\n mutationFn: async () => {\n if (!outcomeModal) throw new Error(\"no modal open\");\n const req: OutcomeRequest = {\n email: outcomeModal.email,\n outcome: outcomeKind,\n playName: outcomeModal.playName,\n ...(outcomeAmount ? { amountUsd: Number.parseFloat(outcomeAmount) } : {}),\n ...(outcomeNotes ? { notes: outcomeNotes } : {}),\n };\n return await api.recordOutcome(req);\n },\n onSuccess: () => {\n setOutcomeModal(null);\n setOutcomeAmount(\"\");\n setOutcomeNotes(\"\");\n void qc.invalidateQueries({ queryKey: [\"measure\"] });\n toast.success(`outcome logged · ${outcomeKind}`);\n },\n onError: (err) => toast.error(`couldn't log outcome: ${err.message}`),\n });\n\n // Memo on cadences.data directly — `list` would be a fresh reference each\n // render because of the `?? []` fallback, which would thrash useMemo's\n // cache.\n const list = useMemo(() => cadences.data?.cadences ?? [], [cadences.data]);\n const aggregate = useMemo(() => buildAggregate(list, showAll), [list, showAll]);\n const nowIso = new Date().toISOString();\n\n return (\n <div className=\"-mx-6 -my-6 flex flex-col\">\n {/* Masthead */}\n <section className=\"flex items-end justify-between gap-4 border-b border-ink-rule px-6 pb-5 pt-6\">\n <div>\n <div className=\"ln-eyebrow\">The Ledger · Cadences</div>\n <h1\n className=\"mt-1 text-ink-cream\"\n style={{\n fontFamily: \"var(--font-display)\",\n fontSize: 44,\n fontWeight: 600,\n letterSpacing: \"-0.025em\",\n lineHeight: 0.98,\n }}\n >\n Prospects, in flight.\n </h1>\n </div>\n <div className=\"flex items-center gap-1.5\">\n <Button\n variant={showAll ? \"secondary\" : \"primary\"}\n size=\"sm\"\n onClick={() => setShowAll(false)}\n >\n Active\n </Button>\n <Button\n variant={showAll ? \"primary\" : \"secondary\"}\n size=\"sm\"\n onClick={() => setShowAll(true)}\n >\n All\n </Button>\n </div>\n </section>\n\n {/* Aggregate strip — 4 columns divided by vertical hairlines. */}\n <section className=\"grid grid-cols-2 divide-x divide-ink-rule border-b border-ink-rule md:grid-cols-4\">\n <CadenceSummary\n label=\"Active\"\n value={aggregate.active}\n caption={aggregate.overdue > 0 ? `${aggregate.overdue} overdue` : \"awaiting reply\"}\n tone={aggregate.overdue > 0 ? \"spend\" : \"receipt\"}\n />\n <CadenceSummary\n label=\"Replied\"\n value={aggregate.replied}\n caption=\"signal over noise\"\n tone=\"signal\"\n />\n <CadenceSummary\n label=\"Breakup\"\n value={aggregate.breakup}\n caption=\"final touch sent\"\n tone=\"spend\"\n />\n <CadenceSummary label=\"Completed\" value={aggregate.completed} caption=\"full cadence done\" />\n </section>\n\n {/* Meta strip */}\n <section className=\"flex items-baseline justify-between border-b border-ink-rule px-6 py-2.5\">\n <div className=\"ln-eyebrow\">\n {cadences.data ? (\n <>\n {list.length} <span className=\"text-ink-faint\">{showAll ? \"total\" : \"active\"}</span>\n </>\n ) : (\n <span className=\"text-ink-faint\">…</span>\n )}\n </div>\n <div className=\"font-mono text-[11px] text-ink-faint\">refresh · 15s</div>\n </section>\n\n {/* Cadence ledger */}\n <section>\n {cadences.isLoading ? (\n <div>\n {Array.from({ length: 5 }, (_, i) => (\n <SkeletonRow key={i} />\n ))}\n </div>\n ) : list.length === 0 ? (\n <div className=\"px-6 py-8\">\n <EmptyNote\n note=\"No cadences in flight. The engine only runs for prospects you've already touched; send a play and they appear here.\"\n cli=\"oneshot-gtm motion show-hn --target show-hn.json\"\n />\n </div>\n ) : (\n <table className=\"w-full text-[13px]\">\n <thead className=\"sticky top-0 z-10 bg-ink-bg\">\n <tr className=\"border-b border-ink-rule text-[10px] uppercase tracking-[0.14em] text-ink-faint\">\n <th className=\"px-6 py-2 text-left font-medium\">prospect</th>\n <th className=\"py-2 text-left font-medium\">play</th>\n <th className=\"py-2 text-left font-medium\">status</th>\n <th className=\"py-2 text-left font-medium\">step</th>\n <th className=\"py-2 text-right font-medium\">next due</th>\n <th className=\"py-2 text-right font-medium\">enrolled</th>\n <th className=\"px-6 py-2 text-right font-medium\">actions</th>\n </tr>\n </thead>\n <tbody>\n {list.map((c, i) => {\n const totalSteps = (PLAY_STEPS[c.playName] ?? 0) + 1;\n const isOverdue =\n c.status === \"active\" && c.nextDueAt !== null && c.nextDueAt <= nowIso;\n return (\n <tr\n key={`${c.prospectId}-${c.playName}`}\n className={cn(\n \"border-b border-ink-rule/60 transition-colors duration-[var(--dur-stamp)]\",\n \"hover:bg-ink-surface/60\",\n i % 2 === 1 && \"bg-ink-surface/20\",\n )}\n >\n <td className=\"px-6 py-2\">\n <div className=\"text-ink-cream\">{c.prospectName ?? \"(unknown)\"}</div>\n <div className=\"font-mono text-[11px] text-ink-faint\">\n {c.prospectEmail ?? \"—\"}\n </div>\n </td>\n <td className=\"py-2 text-ink-cream-2\">{c.playName}</td>\n <td className=\"py-2\">\n <Badge tone={statusTone(c.status)}>{c.status}</Badge>\n </td>\n <td className=\"py-2\">\n <div className=\"flex items-center gap-2\">\n <StepProgress\n current={Math.min(c.currentStep + 1, totalSteps)}\n total={totalSteps}\n tone={\n c.status === \"replied\"\n ? \"signal\"\n : c.status === \"breakup\"\n ? \"spend\"\n : \"receipt\"\n }\n />\n <span className=\"font-mono text-[11px] text-ink-faint\">\n {c.currentStep + 1}/{totalSteps}\n </span>\n </div>\n </td>\n <td\n className={cn(\n \"py-2 text-right font-mono text-[12px]\",\n isOverdue ? \"text-[color:var(--ink-spend-2)]\" : \"text-ink-muted\",\n )}\n >\n {timeAgo(c.nextDueAt)}\n {isOverdue && <span className=\"ml-1 text-[10px]\">· overdue</span>}\n </td>\n <td className=\"py-2 text-right font-mono text-[11px] text-ink-faint\">\n {timeAgo(c.enrolledAt)}\n </td>\n <td className=\"px-6 py-2 text-right\">\n <div className=\"flex items-center justify-end gap-1\">\n {c.status === \"active\" && (\n <Button\n variant=\"ghost\"\n size=\"sm\"\n title=\"stop cadence\"\n disabled={stop.isPending}\n onClick={() =>\n stop.mutate({ prospectId: c.prospectId, playName: c.playName })\n }\n >\n <CircleStop size={12} />\n </Button>\n )}\n {c.prospectEmail && (\n <Button\n variant=\"ghost\"\n size=\"sm\"\n title=\"log outcome\"\n onClick={() =>\n setOutcomeModal({\n email: c.prospectEmail as string,\n prospectName: c.prospectName,\n playName: c.playName,\n })\n }\n >\n <Trophy size={12} />\n </Button>\n )}\n </div>\n </td>\n </tr>\n );\n })}\n </tbody>\n </table>\n )}\n </section>\n\n <Modal\n open={outcomeModal != null}\n onClose={() => setOutcomeModal(null)}\n title={`Log outcome${outcomeModal?.prospectName ? ` — ${outcomeModal.prospectName}` : \"\"}`}\n footer={\n <>\n <Button variant=\"ghost\" onClick={() => setOutcomeModal(null)}>\n Cancel\n </Button>\n <Button onClick={() => logOutcome.mutate()} disabled={logOutcome.isPending}>\n {logOutcome.isPending ? \"Saving…\" : \"Save outcome\"}\n </Button>\n </>\n }\n >\n <div className=\"flex flex-col gap-4\">\n <div className=\"font-mono text-[12px] text-ink-muted\">\n Prospect: <span className=\"text-ink-cream-2\">{outcomeModal?.email}</span>\n <br />\n Play: <span className=\"text-ink-cream-2\">{outcomeModal?.playName}</span>\n </div>\n <Field label=\"Outcome\">\n <Select\n value={outcomeKind}\n onChange={(e) => setOutcomeKind(e.target.value as OutcomeRequest[\"outcome\"])}\n >\n <option value=\"meeting_booked\">meeting_booked</option>\n <option value=\"sql_qualified\">sql_qualified</option>\n <option value=\"deal_won\">deal_won</option>\n <option value=\"deal_lost\">deal_lost</option>\n <option value=\"ghosted\">ghosted</option>\n </Select>\n </Field>\n {outcomeKind === \"deal_won\" && (\n <Field label=\"Amount (USD)\">\n <Input\n type=\"number\"\n value={outcomeAmount}\n onChange={(e) => setOutcomeAmount(e.target.value)}\n placeholder=\"5000\"\n />\n </Field>\n )}\n <Field label=\"Notes (optional)\">\n <Textarea\n rows={3}\n value={outcomeNotes}\n onChange={(e) => setOutcomeNotes(e.target.value)}\n />\n </Field>\n </div>\n </Modal>\n </div>\n );\n}\n\nfunction CadenceSummary({\n label,\n value,\n caption,\n tone = \"neutral\",\n}: {\n label: string;\n value: number;\n caption?: string;\n tone?: \"neutral\" | \"receipt\" | \"signal\" | \"spend\";\n}) {\n const captionColor =\n tone === \"spend\"\n ? \"var(--ink-spend-2)\"\n : tone === \"receipt\"\n ? \"var(--ink-receipt-2)\"\n : tone === \"signal\"\n ? \"var(--ink-signal-2)\"\n : \"var(--ink-faint)\";\n return (\n <div className=\"px-5 py-4\">\n <div className=\"ln-eyebrow\">{label}</div>\n <div\n className=\"mt-1 truncate text-ink-cream ln-numeral\"\n style={{ fontSize: 32, lineHeight: 1 }}\n >\n {value}\n </div>\n {caption && (\n <div className=\"mt-2 truncate font-mono text-[11px]\" style={{ color: captionColor }}>\n {caption}\n </div>\n )}\n </div>\n );\n}\n\nfunction buildAggregate(\n cadences: CadenceView[],\n showingAll: boolean,\n): {\n active: number;\n replied: number;\n breakup: number;\n completed: number;\n overdue: number;\n} {\n const now = Date.now();\n let active = 0;\n let replied = 0;\n let breakup = 0;\n let completed = 0;\n let overdue = 0;\n\n for (const c of cadences) {\n if (c.status === \"active\") {\n active++;\n if (c.nextDueAt && new Date(c.nextDueAt).getTime() <= now) overdue++;\n } else if (c.status === \"replied\") replied++;\n else if (c.status === \"breakup\") breakup++;\n else if (c.status === \"completed\") completed++;\n }\n\n // When the user toggles off \"all\", the server already filtered to active\n // only. Zero out the other buckets for honesty.\n if (!showingAll) {\n replied = 0;\n breakup = 0;\n completed = 0;\n }\n return { active, replied, breakup, completed, overdue };\n}\n"],"x_google_ignoreList":[0,1],"mappings":"qVAaA,IAAM,EAAa,EAAiB,cAAeA,CAHjD,CAAC,SAAU,CAAE,GAAI,KAAM,GAAI,KAAM,EAAG,K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A,EAAA,KAAC,EAAD,CAAO,MAAM,6BACX,EAAA,EAAA,KAAC,EAAD,CACE,KAAM,EACN,MAAOhE,EACP,SAAW8D,GAAM7D,EAAgB6D,EAAEC,OAAOC,MAAM,CAAC,CAAA,CAE9C,CAAA,CACJ,GACA,CAAA,CACH,GAIV,SAASC,EAAe,CACtBC,QACAF,QACAG,UACAC,OAAO,WAMN,CASD,OACE,EAAA,EAAA,MAAC,MAAD,CAAK,UAAU,qBAAf,EACE,EAAA,EAAA,KAAC,MAAD,CAAK,UAAU,sBAAcF,EAAW,CAAA,EACxC,EAAA,EAAA,KAAC,MAAD,CACE,UAAU,0CACV,MAAO,CAAE/B,SAAU,GAAIG,WAAY,EAAG,UAErC0B,EACE,CAAA,CACJG,IACC,EAAA,EAAA,KAAC,MAAD,CAAK,UAAU,sCAAsC,MAAO,CAAEG,MAjBlEF,IAAS,QACL,qBACAA,IAAS,UACP,uBACAA,IAAS,SACP,sBACA,mBAW+E,UAChFD,EAEJ,CAAA,CACG,GAIV,SAASrC,EACP5B,EACAsE,EAOA,CACA,IAAMC,EAAMzC,KAAKyC,KAAK,CAClBlC,EAAS,EACTE,EAAU,EACVC,EAAU,EACVC,EAAY,EACZH,EAAU,EAEd,IAAK,IAAMW,KAAKjD,EACViD,EAAEnE,SAAW,UACfuD,IACIY,EAAEG,WAAa,IAAItB,KAAKmB,EAAEG,UAAU,CAACoB,SAAS,EAAID,GAAKjC,KAClDW,EAAEnE,SAAW,UAAWyD,IAC1BU,EAAEnE,SAAW,UAAW0D,IACxBS,EAAEnE,SAAW,aAAa2D,IAUrC,OALK6B,IACH/B,EAAU,EACVC,EAAU,EACVC,EAAY,GAEP,CAAEJ,SAAQE,UAASC,UAASC,YAAWH,UAAS"}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|