1import{_ as re,a as le}from"./OWWYgf2Y.js";import{x as ie,e as ne,c as l,b as u,a as e,k as W,j as z,N as b,g as c,F as B,r as M,w as m,o as a,n as k,s as U,i as ue,t as p,h as ce,d as N,a4 as E,X as de,cn as K,ce as me,cc as pe}from"./Cny-jMUR.js";import{_ as ve}from"./CSHkLFmR.js";import{_ as fe}from"./tJRDHKHm.js";import{_ as he}from"./BesTg-G_.js";import{u as ge}from"./CnWiBKLW.js";import{u as ye}from"./CqzOlPej.js";import{_ as G}from"./DgxW0n38.js";import"./CByX21Df.js";import"./BGx-vc2c.js";import"./CXDzCsr7.js";import"./COjSgi5K.js";import"./BRdsWsvc.js";import"./B5rxJs06.js";import"./n8lNb2hy.js";import"./Bm98wYY5.js";import"./CRt-pR_f.js";import"./DRbcCXkf.js";import"./DmDz5m4l.js";import"./B7NayylV.js";import"./BcOQZI7O.js";import"./CUxeBhNB.js";import"./B-5qM8bm.js";import"./Cjn-UK2L.js";import"./YF0e3wke.js";import"./Bhcf4Zif.js";import"./CIcK5AWm.js";import"./CU6Mnxa5.js";import"./Dkp9_4T-.js";import"./C9RKA-P2.js";import"./YoF-LljS.js";const _e={class:"min-h-screen bg-gray-50 dark:bg-gray-900 pb-20"},xe={class:"max-w-6xl mx-auto px-4 sm:px-6 lg:px-8 py-2 md:py-8 flex flex-col md:flex-row gap-4"},be={class:"md:min-w-1/4 md:sticky md:top-24 md:self-start"},ke={class:"w-full"},we={key:0,class:"flex flex-row gap-4 my-12 mx-auto justify-center"},je={class:"py-16 text-center space-y-4"}
1,Se={class:"text-neutral-600 dark:text-neutral-300 max-w-2xl mx-auto"},De={class:"flex justify-center gap-3"},Ce={class:"text-center text-2xl font-bold mt-8"},$e={class:"text-center text-neutral-500 mb-16"},Pe={key:0,class:"grid grid-cols-1 md:grid-cols-2 gap-4 items-stretch"},Ve={class:"flex flex-row gap-8 h-full p-4"},Be={class:"font-semibold text-lg text-neutral-950 dark:text-neutral-50"},Me={class:"text-sm text-neutral-600 dark:text-neutral-300"},Ue={key:1,class:"space-y-6"},Ne={class:"max-w-md mx-auto"},qe={class:"space-y-8"},Fe={key:2,class:"space-y-6"},Te={class:"max-w-lg mx-auto space-y-8"},We={class:"flex flex-col gap-2 max-w-md"},ze={class:"space-y-3"},Ae={class:"grid grid-cols-2 md:grid-cols-4 gap-4 pb-1"},Le={class:"text-sm font-medium text-neutral-800 dark:text-neutral-100"},Re=["value"],Ee={key:3,class:"space-y-6"},Ke={key:4,class:"border border-error-500 rounded-xl p-4 mt-4"},Ge={class:"space-y-1 list-disc list-inside"},Ie={class:"flex flex-row justify-between mt-8"},He=36,Ct={__name:"new",setup(Oe){const w=c(""),j=c(""),S=c(""),q=c(""),D=c(null),i=c([]),y=c(!1),_=c(!1),d=c(!1),I=U(()=>"Thanks! Your project has been created in Wrike. We'll be in touch shortly."),{profile:h,fetchProfile:H}=ge(),{createProject:O}=ye(),X=ie(),Y=["$1,000","$2,500","$5,000","$10,000"];ne(async()=>{await H()});const C=[{title:"Select a category",description:"What kind of project would you like to do?"},{title:"Describe your project",description:"Share the high-level details so we can tailor the process."},{title:"Budget & Timeline",description:"Let us know who is involved and when you would like to start."},{title:"Schedule onboarding",description:"Select a time to speak with a Revby consultant to start your project"}],A=C.length,n=c(1),L=U(()=>C[n.value-1]),J=U(()=>C.map((o,t)=>t<n.value)),F=U(()=>n.value===A),Q=()=>{n.value<A&&(n.value+=1),i.value=[]},Z=()=>{n.value>1&&(n.value-=1),i.value=[]},ee=async()=>{var o,t,$,P,x,v,g,V;if(!y.value)try{y.value=!0,i.value=[];const r={title:w.value.trim(),projectScope:j.value.trim(),category:((o=D.value)==null?void 0:o.name)||"",budget:S.value||"",desiredLaunchDate:q.value||"",profile:{fullName:((t=h.value)==null?void 0:t.full_name)||(($=h.value)==null?void 0:$.first_name)||"",businessName:((P=h.value)==null?void 0:P.business_name)||"",email:((x=h.value)==null?void 0:x.email)||((v=h.value)==null?void 0:v.contact_email)||((g=X.value)==null?void 0:g.email)||""}};await O(r),d.value=!0,_.value=!0}catch(r){console.error("Failed to create Wrike project:",r);const s=((V=r==null?void 0:r.data)==null?void 0:V.statusMessage)||(r==null?void 0:r.statusMessage)||(r==null?void 0:r.message)||"Failed to create project in Wrike";i.value=[s],d.value=!1,_.value=!0}finally{y.value=!1}},T=o=>{D.value=o},te=()=>{const o=[];return D.value||o.push("Please choose a project category"),w.value.trim()||o.push("Project name is required"),j.value.trim()||o.push("Project description is required"),o},se=async()=>{if(F.value){const o=te();if(o.length){i.value=o;return}i.value=[],await ee();return}i.value=[],Q()},ae=()=>{_.value=!1,d.value=!1,i.value=[],y.value=!1},oe=[{name:"Build / Re-build a website",icon:"i-lucide-globe",description:"Develop or enhance your website to improve online presence or enable ecommerce"},{name:"Business Plan Development",icon:"i-lucide-briefcase-business",description:"A comprehensive business plan tailored to your needs and your value proposition"},{name:"Financial Analysis & Projections",icon:"i-lucide-calculator",description:"Develop detailed financial analysis and accurate projections to support strategic decision-making"},{name:"Marketing / Customer Acquisition",icon:"i-lucide-megaphone",description:"Create a detailed marketing strategy to increase brand awareness and sales"},{name:"Strategic Growth Planning",icon:"i-lucide-chart-no-axes-combined",description:"Develop a strategic plan for business growth and long-term sustainability"},{name:"Market Research",icon:"i-lucide-binoculars",description:"Conduct thorough market research to inform business strategies"},{name:"People Management",icon:"i-lucide-users",description:"Enhance leadership, management skills, and processes to improve team productivity"},{name:"Technology consulting",icon:"i-lucide-cpu",description:"Determine the right tools and how to use them for productivity, social media, and customer service"}];return(o,t)=>{const $=re,P=le,x=ue,v=ce,g=ve,V=fe,r=he;return a(),l("div",_e,[u($,{profile:W(h)},null,8,["profile"]),e("div",xe,[e("div",be,[u(P)]),e("div",ke,[t[11]||(t[11]=e("h1",{class:"text-3xl font-bold text-neutral-950"},"Start a new project",-1)),_.value?z("",!0):(a(),l("div",we,[(a(),l(B,null,M(C,(s,f)=>e("div",{key:f,class:k(["w-24 h-2 rounded-full transition-colors duration-200 border",J.value[f]?"bg-primary-500 border-primary-500":"border-neutral-300 bg-neutral-200 dark:bg-neutral-800"])},null,2)),64))])),_.value?(a(),b(g,{key:1,class:"mt-12"},{default:m(()=>[e("div",je,[u(x,{name:d.value?"i-lucide-badge-check":"i-lucide-triangle-alert",class:k(["mx-auto
1size-16",d.value?"text-primary-500":"text-error-500"])},null,8,["name","class"]),e("h2",{class:k(["text-3xl font-semibold",d.value?"text-primary-600":"text-error-500"])},p(d.value?"Success!":"Uh oh"),3),e("p",Se,p(d.value?I.value:i.value[0]||"Something went wrong. Please try again."),1),e("div",De,[d.value?(a(),b(v,{key:0,to:"/dashboard/projects",color:"primary",class:"rounded-full"},{default:m(()=>[...t[4]||(t[4]=[N(" View your projects ",-1)])]),_:1})):(a(),b(v,{key:1,class:"rounded-full",onClick:ae},{default:m(()=>[...t[5]||(t[5]=[N(" Try again ",-1)])]),_:1}))])])]),_:1})):(a(),b(g,{key:2},{default:m(()=>[e("h3",Ce,p(L.value.title),1),e("p",$e,p(L.value.description),1),n.value===1?(a(),l("div",Pe,[(a(),l(B,null,M(oe,s=>{var f;return u(g,{key:s.name,ui:{root:"!p-0 sm:!p-0 h-full border-2 transition-colors duration-200",body:"!p-0 sm:!p-0 h-full"},class:k([((f=D.value)==null?void 0:f.name)===s.name?"border-primary-500 bg-primary-50 dark:bg-neutral-800/60":"border-transparent hover:border-primary-200 dark:hover:border-primary-500","cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400/60"]),role:"button",tabindex:"0",onClick:R=>T(s),onKeyup:[E(R=>T(s),["enter"]),E(de(R=>T(s),["prevent"]),["space"])]},{default:m(()=>[e("div",Ve,[u(x,{name:s.icon,size:He,class:"text-brand shrink-0"},null,8,["name"]),e("div",null,[e("h3",Be,p(s.name),1),e("p",Me,p(s.description),1)])])]),_:2},1032,["class","onClick","onKeyup"])}),64))])):n.value===2?(a(),l("div",Ue,[e("div",Ne,[e("div",qe,[u(W(G),{label:"Project name",hint:"required",ui:{hint:"text-error text-xs"}},{default:m(()=>[u(V,{modelValue:w.value,"onUpdate:modelValue":t[0]||(t[0]=s=>w.value=s),type:"text",class:"w-full",placeholder:"e.g. Growth marketing launch",required:""},null,8,["modelValue"])]),_:1}),u(W(G),{label:"Project description",hint:"required",ui:{hint:"text-error text-xs"}},{default:m(()=>[u(r,{modelValue:j.value,"onUpdate:modelValue":t[1]||(t[1]=s=>j.value=s),class:"w-full",placeholder:"Briefly describe your project. What is the scope?",required:""},null,8,["modelValue"])]),_:1})])])])):n.value===3?(a(),l("div",Fe,[e("div",Te,[e("label",We,[t[6]||(t[6]=e("span",{class:"text-sm font-medium text-neutral-700 dark:text-neutral-200"},"Desired launch date",-1)),K(e("input",{type:"date",class:"w-full px-3 py-2 border border-neutral-200 rounded-md focus:outline-none focus:ring-2 focus:ring-primary-500 dark:bg-neutral-900 dark:border-neutral-700","onUpdate:modelValue":t[2]||(t[2]=s=>q.value=s)},null,512),[[me,q.value]])]),e("div",ze,[t[7]||(t[7]=e("span",{class:"text-sm font-medium text-neutral-700 dark:text-neutral-200"},"Desired budget",-1)),e("div",Ae,[(a(),l(B,null,M(Y,s=>e("label",{key:s,class:k(["flex h-full items-center justify-between border border-neutral-200 dark:border-neutral-700 rounded-lg px-4 py-3 cursor-pointer transition-colors hover:border-primary-500",S.value===s?"border-primary-500 bg-primary-50 dark:bg-neutral-800/60":""])},[e("span",Le,p(s),1),K(e("input",{type:"radio",class:"ms-2 form-radio h-4 w-4 text-primary-500 focus:ring-primary-500",value:s,"onUpdate:modelValue":t[3]||(t[3]=f=>S.value=f)},null,8,Re),[[pe,S.value]])],2)),64))])])])])):(a(),l("div",Ee,[...t[8]||(t[8]=[e("iframe",{src:"https://meetings.hubspot.com/emilio41/revbyappemilio?embed=true",class:"w-full",style:{height:"700px"},allowfullscreen:""},null,-1)])])),i.value.length?(a(),l("div",Ke,[e("ul",Ge,[(a(!0),l(B,null,M(i.value,s=>(a(),l("li",{key:s,class:"text-sm text-error"},p(s),1))),128))])])):z("",!0),e("div",Ie,[n.value>1?(a(),b(v,{key:0,variant:"ghost",color:"neutral",class:"rounded-full","leading-icon":"i-lucide-arrow-left",onClick:Z},{default:m(()=>[...t[9]||(t[9]=[N(" Back ",-1)])]),_:1})):z("",!0),t[10]||(t[10]=e("div",{class:"flex-1"},null,-1)),u(v,{"trailing-icon":F.value?"i-lucide-check":"i-lucide-arrow-right",loading:y.value,onClick:se,class:"rounded-full px-4 py-2"},{default:m(()=>[N(p(F.value?"Finish":"Next"),1)]),_:1},8,["trailing-icon","loading"])])]),_:1}))])])])}}};export{Ct 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.