PageSourceSearch

https://meetborderless.com/build/assets/build-business-plan-CgQ9GchX.js

js meetborderless.com collected 2026-10-09 22:43:00 UTC 6,319 bytes, 1 lines download raw bytes

1import{j as a}from"./app-C1iegf7Q.js";import{L as _,f as A}from"./inertia-BpyZy4w-.js";import{S as E}from"./seo-meta-BiuXzdeE.js";import{E as T}from"./evidence-builder-DOSzY-as.js";import{A as O}from"./app-layout-N5SYko6V.js";import{A as k}from"./arrow-left-DCX0fhKH.js";/* empty css            */import"./document-canvas-DXwi1o4d.js";import"./sheet-DNayBxlr.js";import"./index-BewtL6Hn.js";import"./index-Dc_FVRD7.js";import"./index-CGXdj8xB.js";import"./index-C_n-C52S.js";import"./index-CL12STDK.js";import"./index-XydtsrKA.js";import"./index-BDqbV96p.js";import"./index-Cja0wFUH.js";import"./Combination-Cr5kvm8y.js";import"./index-B1PKR-s8.js";import"./utils-BiuKVCuu.js";import"./x-DQSeRCcH.js";import"./createLucideIcon-wqc1LSWg.js";import"./download-CXbkSkxk.js";import"./message-square-E9C1K8Gx.js";import"./history-29VTm3ac.js";import"./paperclip-Cc7CaGPI.js";import"./check-0O-UND6N.js";import"./circle-alert-D8tEThd5.js";import"./chevron-down-B1YaU0K5.js";import"./document-builder-5UH2XUUr.js";import"./trash-2-CrI9a2Po.js";import"./loader-circle-C_KBZAGS.js";import"./sparkles-C0aC1RHI.js";import"./image-plus-Drz-1lbN.js";import"./plus-BJl-aJiX.js";import"./triangle-alert-C7AVwNi-.js";import"./index-DJlprK4q.js";import"./index-DV0GpYST.js";import"./index-B9qJRYKv.js";import"./link-DKPEjeqT.js";import"./list-BgP0xxm1.js";import"./pen-line-DxMOfwPU.js";import"./markdown-renderer-CJUAlNY6.js";import"./video-embed-XSCcqTy1.js";import"./index-DnOwzyLg.js";import"./refresh-cw-Cog2DILh.js";import"./ellipsis-dh0qVsjB.js";import"./arrow-right-CQhEyoMD.js";import"./template-specimen-Dl-ug0G8.js";import"./info-D2ZN_yLm.js";import"./link-2-D0ZKUr8N.js";import"./image-vCg-0Xge.js";import"./button-BE4q1_FS.js";import"./unit-badge-B1FxxFNU.js";import"./dialog-DrkalYDs.js";import"./stamp-DioeSsh-.js";import"./file-text-XcQuIA-l.js";import"./zap-Bczke022.js";import"./gauge-DL0bVHaV.js";import"./eye-DoZffUO5.js";import"./upload-C1CGckSw.js";import"./message-square-plus-DhS9yu8k.js";import"./case-shell-EPUgGCr1.js";import"./mobile-chrome-C0ug21w9.js";import"./shield-alert-CGX6PHoz.js";import"./menu-BR3Nc3Gr.js";import"./message-circle-c43k_fjC.js";import"./app-logo-Dz0wogSq.js";import"./logo-light-DU4bWymm.js";import"./flash-toast-C6O0iVL1.js";import"./circle-x-Bp6Mbpgt.js";import"./circle-check-BMWvzPMx.js";import"./site-announcement-fVSM8f3a.js";import"./use-funnel-tracking-DZvQDmiU.js";import"./journey-labels-D75PCX0v.js";import"./bell-BvDZckLh.js";import"./guest-nav-Dk8jWUwY.js";function p(){return document.querySelector('meta[name="csrf-token"]')?.content??""}function Zt({case:o,guide:c,specimen:d,specimen_url:u,min_items:l,initial_items:f,versions:y,working_draft:h,editor_variant:w}){async function v({title:e,summary:r,context:i}){const t=await fetch(`/cases/${o.uuid}/draft-business-plan-section`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json","X-CSRF-TOKEN":p()},body:JSON.stringify({title:e,summary:r,context:i})}),n=await t.json().catch(()=>({}));return t.ok&&typeof n.narrative=="string"?n.narrative:null}async function g(e){const r=new FormData;r.append("document",e);const i=await fetch(`/cases/${o.uuid}/import-evidence`,{method:"POST",headers:{Accept:"application/json","X-CSRF-TOKEN":p()},body:r}),t=await i.json().catch(()=>({}));return i.ok&&Array.isArray(t.items)?{items:t.items,images:[]}:null}async function b(e,r,i){const t=new FormData;t.append("context",r),t.append("version_key",i.key),t.append("version_source",i.source),i.restoredFrom&&t.append("restored_from_key",i.restoredFrom),t.append("items",JSON.stringify(e.map(m=>({title:m.title,narrative:m.narrative}))));const n=await fetch(`/cases/${o.uuid}/build-business-plan`,{method:"POST",headers:{Accept:"application/json","X-CSRF-TOKEN":p()},body:t}),s=await n.json().catch(()=>({}));if(!n.ok||!s.redirect)return s.message??"Something went wrong. Please try again.";A.visit(s.redirect)}async function x(e,r,i){const t=await fetch(`/cases/${o.uuid}/review-document-draft`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json","X-CSRF-TOKEN":p()},body:JSON.stringify({document_type:"business_plan",version_key:i,context:r,sections:e.map(s=>({heading:s.title,text:s.narrative}))})}),n=await t.json().catch(()=>({}));if(!t.ok)throw new Error(n.message??"Could not review this draft just now.");return n}async function j(e){if(!(await fetch(`/cases/${o.uuid}/document-editor-working-draft`,{method:"PUT",headers:{"Content-Type":"application/json",Accept:"application/json","X-CSRF-TOKEN":p()},body:JSON.stringify({document_type:"business_plan",version_key:e.key,source:e.source,restored_from_key:e.restoredFrom,items:e.items,editor_context:e.context})})).ok)throw new Error("Autosave failed")}async function S(){if(!(await fetch(`/cases/${o.uuid}/document-editor-working-draft`,{method:"DELETE",headers:{"Content-Type":"application/json",Accept:"application/json","X-CSRF-TOKEN":p()},body:JSON.stringify({document_type:"business_plan"})})).ok)throw new Error("Discard failed")}return a.jsxs(O,{children:[a.jsx(E,{title:"Build your business plan",description:"Build your Innovator Founder business plan section by section.",url:`/cases/${o.uuid}/build-business-plan`}),a.jsx("div",{className:"mx-auto max-w-3xl px-4 pt-6",children:a.jsxs(_,{href:`/cases/${o.uuid}
1?tab=documents&focus=business_plan`,className:"inline-flex items-center gap-1.5 text-xs font-medium text-ink-2 hover:text-ink",children:[a.jsx(k,{size:14}),"Back to your case"]})}),a.jsx(T,{title:"Business plan",subtitle:"Add each section of your plan. We draft it in your own voice, then save it to your case ready to edit and check.",intro:c,specimen:d,specimenUrl:u,proofs:[],proofsEnabled:!1,headingsAsLabels:!0,itemNoun:"section",minItems:l,initialItems:f,metered:null,createLabel:"Save version & return to case",creatingLabel:"Saving version...",contextPlaceholder:"e.g. We sell to UK mid-market firms, £2k a month, and plan to hire two engineers in year one.",onDraftItem:v,onCreate:b,onImport:g,onReview:x,reviewSuggestionBase:`/cases/${o.uuid}/document-draft-suggestions`,versions:y,versionBase:`/cases/${o.uuid}/document-editor-versions`,workingDraft:h,onAutosave:j,onDiscardDraft:S,downloadUrl:`/cases/${o.uuid}/business-plan.docx`,editorVariant:w})]})}export{Zt 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.