PageSourceSearch

https://meetborderless.com/build/assets/updates-5OBZzUIg.js

js meetborderless.com collected 2026-10-09 22:41:38 UTC 7,776 bytes, 5 lines download raw bytes

1import{j as e}from"./app-C1iegf7Q.js";import{b as c,H as h,L as g,f}from"./inertia-BpyZy4w-.js";import{Q as j}from"./queue-button-Cf6qv1Vw.js";import{a as k}from"./admin-layout-BhXWbUlP.js";import{a as x}from"./utils-BiuKVCuu.js";import{C as N}from"./chevron-up-CLp5HMgA.js";import{C as v}from"./chevron-down-B1YaU0K5.js";import{C as y}from"./check-0O-UND6N.js";import{C}from"./clipboard-DVTW5dV8.js";/* empty css            */import"./x-DQSeRCcH.js";import"./createLucideIcon-wqc1LSWg.js";import"./send-COySMMwK.js";import"./app-logo-Dz0wogSq.js";import"./logo-light-DU4bWymm.js";import"./flash-toast-C6O0iVL1.js";import"./info-D2ZN_yLm.js";import"./triangle-alert-C7AVwNi-.js";import"./circle-x-Bp6Mbpgt.js";import"./circle-check-BMWvzPMx.js";import"./arrow-left-DCX0fhKH.js";import"./menu-BR3Nc3Gr.js";import"./users-BCcupCXV.js";import"./folder-open-I72SPUVk.js";import"./pound-sterling-D16GLaAZ.js";import"./book-open-DVFlG_9t.js";function p({text:t,label:r}){const[s,i]=c.useState(!1);function l(){navigator.clipboard.writeText(t).then(()=>{i(!0),setTimeout(()=>i(!1),2e3)})}return e.jsxs("button",{type:"button",onClick:l,className:"inline-flex items-center gap-1.5 rounded-md border border-line px-2 py-1 text-2xs font-medium text-ink-2 hover:bg-bg",children:[s?e.jsx(y,{className:"h-3 w-3 text-green"}):e.jsx(C,{className:"h-3 w-3"}),s?"Copied":r??"Copy"]})}function _({output:t,driverName:r}){return e.jsxs("div",{className:"mt-4 pt-4 border-t border-line-2 flex flex-col gap-4",children:[t.entry_summary&&e.jsx("p",{className:"text-xs text-ink-2 leading-relaxed italic",children:t.entry_summary}),t.posts?.map((s,i)=>e.jsxs("div",{className:"rounded-md border border-line bg-bg-2 p-4",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[e.jsx("span",{className:x("rounded-tag px-2 py-0.5 text-2xs font-bold uppercase tracking-pill",s.platform==="linkedin"?"bg-[#0A66C2]/10 text-[#0A66C2]":"bg-ink/8 text-ink-2"),children:s.platform==="x"?"X / Twitter":"LinkedIn"}),e.jsx("span",{className:"text-2xs text-ink-3",children:s.timing}),e.jsxs("div",{className:"ml-auto flex items-center gap-2",children:[e.jsx(p,{text:s.copy,label:"Copy"}),r&&e.jsx(j,{text:s.copy,platform:s.platform,driverName:r})]})]}),e.jsx("p",{className:"text-sm text-ink leading-relaxed whitespace-pre-wrap",children:s.copy})]},i)),t.broadcast_section&&e.jsxs("div",{className:"rounded-md border border-line bg-bg-2 p-4",children:[e.jsxs("div",{className:"flex items-center justify-between mb-2",children:[e.jsx("span",{className:"text-2xs font-bold uppercase tracking-eyebrow text-ink-3",children:"Broadcast section"}),e.jsx(p,{text:`${t.broadcast_section.heading}
2
3${t.broadcast_section.body}
4
5${t.broadcast_section.cta_label}: ${t.broadcast_section.cta_url}`,label:"Copy"})]}),e.jsx("p",{className:"text-sm font-semibold text-ink mb-1",children:t.broadcast_section.heading}),e.jsx("p",{className:"text-sm text-ink-2 leading-relaxed mb-2",children:t.broadcast_section.body}),e.jsxs("p",{className:"text-xs text-teal",children:[t.broadcast_section.cta_label," — ",t.broadcast_section.cta_url]})]})]})}function w({entry:t,driverName:r}){const[s,i]=c.useState(!1),[l,o]=c.useState(!1),a=t.run?.status==="completed"&&t.run.output,d=t.run?.status==="running"||t.run?.status==="pending",n=t.run?.status==="failed";function b(){o(!0),f.post(`/admin/assistants/update-publisher/run/${t.date}`,{},{onFinish:()=>o(!1)})}return e.jsxs("div",{className:"rounded-card border border-line bg-white p-5",children:[e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-1.5 flex-wrap",children:[e.jsx("span",{className:"text-sm font-semibold text-ink",children:t.date}),e.jsxs("span",{className:"text-2xs text-ink-3",children:[t.feature_count," ",t.feature_count===1?"feature":"features"]}),a&&e.jsx("span",{className:"rounded-tag bg-green/10 px-2 py-0.5 text-2xs font-bold text-green-ink",children:"Generated"}),d&&e.jsx("span",{className:"rounded-tag bg-amber/12 px-2 py-0.5 text-2xs font-bold text-amber-ink",children:"Running"}),n&&e.jsx("span",{className:"rounded-tag bg-red/10 px-2 py-0.5 text-2xs font-bold text-red",children:"Failed"})]}),e.jsxs("div",{className:"flex flex-col gap-0.5",children:[t.features.slice(0,3).map((m,u)=>e.jsx("p",{className:"text-xs text-ink-2 truncate",children:m},u)),t.features.length>3&&e.jsxs("p",{className:"text-2xs text-ink-3",children:["+",t.features.length-3," more"]})]})]}),e.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[a&&e.jsx("button",{type:"button",onClick:()=>i(m=>!m),className:"inline-flex items-center gap-1 rounded-md border border-line px-2.5 py-1.5 text-xs font-medium text-ink-2 hover:bg-bg",children:s?e.jsxs(e.Fragment,{children:[e.jsx(N,{className:"h-3.5 w-3.5"}),"Hide"]}):e.jsxs(e.Fragment,{children:[e.jsx(v,{className:"h-3.5 w-3.5"}),"View"]}
5)}),e.jsx("button",{type:"button",onClick:b,disabled:l||d,className:x("rounded-md px-2.5 py-1.5 text-xs font-medium disabled:opacity-40",a?"border border-line text-ink-2 hover:bg-bg":"bg-ink text-white hover:bg-ink/80"),children:l?"Queuing…":d?"Running…":a?"Regenerate":"Generate"})]})]}),n&&t.run?.error&&e.jsx("div",{className:"mt-3 rounded-md bg-red/5 border border-red/20 px-3 py-2",children:e.jsx("p",{className:"text-2xs text-red font-mono",children:t.run.error})}),d&&e.jsx("p",{className:"mt-3 text-xs text-ink-3",children:"Generating content. Refresh in a moment."}),a&&s&&e.jsx(_,{output:t.run.output,driverName:r}),a&&t.run?.tokens_used&&e.jsxs("p",{className:"mt-3 text-2xs text-ink-3",children:[t.run.tokens_used.toLocaleString()," tokens",t.run.completed_at&&` · ${new Date(t.run.completed_at).toLocaleDateString()}`]})]})}function Z({entries:t,publishing_driver:r}){const[s,i]=c.useState("todo"),l=t.filter(n=>n.run?.status==="completed").length,o=t.filter(n=>n.run?.status!=="completed").length,a=t.filter(n=>s==="todo"?n.run?.status!=="completed":s==="done"?n.run?.status==="completed":!0),d=[{key:"todo",label:"Not generated",count:o},{key:"done",label:"Generated",count:l},{key:"all",label:"All",count:t.length}];return e.jsxs(k,{children:[e.jsx(h,{title:"Admin · Update Publisher"}),e.jsxs("div",{className:"px-6 py-7 max-w-3xl",children:[e.jsxs("div",{className:"mb-5",children:[e.jsx(g,{href:"/admin/assistants",className:"mb-3 inline-flex items-center gap-1.5 text-xs text-ink-3 hover:text-ink",children:"← All assistants"}),e.jsxs("div",{className:"flex items-baseline gap-3 mt-1",children:[e.jsx("h1",{className:"text-lg font-semibold text-ink",children:"Update Publisher"}),e.jsxs("span",{className:"text-xs text-ink-3",children:[t.length," entries"]})]}),e.jsx("p",{className:"mt-1 text-xs text-ink-2",children:"Pick any update entry and generate social posts and a broadcast section for it."})]}),e.jsx("div",{className:"mb-4 flex gap-1 border-b border-line",children:d.map(n=>e.jsxs("button",{type:"button",onClick:()=>i(n.key),className:x("flex items-center gap-1.5 px-3 py-2 text-xs font-medium border-b-2 -mb-px transition-colors",s===n.key?"border-ink text-ink":"border-transparent text-ink-3 hover:text-ink-2"),children:[n.label,e.jsx("span",{className:x("rounded-tag px-1.5 py-0.5 text-2xs font-bold",s===n.key?"bg-ink text-white":"bg-bg-2 text-ink-3"),children:n.count})]},n.key))}),e.jsxs("div",{className:"flex flex-col gap-3",children:[a.map(n=>e.jsx(w,{entry:n,driverName:r},n.date)),a.length===0&&e.jsx("div",{className:"rounded-card border border-line bg-white px-6 py-12 text-center",children:e.jsx("p",{className:"text-sm text-ink-3",children:s==="todo"?"All entries have been generated.":s==="done"?"No generated entries yet.":"No entries found in updates.md."})})]})]})]})}export{Z as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.