1import{r as h,m as p,j as e,L as u}from"./app-B3BWkqWE.js";import{I as g}from"./input-ZAww2cax.js";import{T as j}from"./textarea-CrqWY0F-.js";/* empty css */import"./utils-jAU0Cazi.js";function w(){const[r,o]=h.useState({linkedin:!0,twitter:!0,reddit:!0}),{data:c,setData:i,post:m,processing:d,errors:a}=p({name:"",description:"",platforms:[]}),l=(t,n)=>{o(s=>({...s,[t]:n}))},x=t=>{t.preventDefault();const n=Object.entries(r).filter(([,s])=>s).map(([s])=>s);i("platforms",n),m(route("onboarding.store-project"))};return e.jsxs("div",{className:"min-h-screen bg-gray-50 flex flex-col justify-center py-12 sm:px-6 lg:px-8",children:[e.jsx(u,{title:"Create Your First Project"}),e.jsxs("div",{className:"sm:mx-auto sm:w-full sm:max-w-md",children:[e.jsx("h2",{className:"mt-6 text-center text-3xl font-extrabold text-gray-900",children:"Create your first project"}),e.jsx("p",{className:"mt-2 text-center text-sm text-gray-600",children:"Set up a project to start monitoring social media for leads"})]}),e.jsx("div",{className:"mt-8 sm:mx-auto sm:w-full sm:max-w-md",children:e.jsx("div",{className:"bg-white py-8 px-4 shadow sm:rounded-lg sm:px-10",children:e.jsxs("form",{onSubmit:x,className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("label",{htmlFor:"name",className:"block text-sm font-medium text-gray-700",children:"Project Name"}),e.jsx("div",{className:"mt-1",children:e.jsx(g,{id:"name",type:"text",required:!0,value:c.name,onChange:t=>i("name",t.target.value),placeholder:"My First Campaign"})}),a.name&&e.jsx("p",{className:"mt-2 text-sm text-red-600",children:a.name})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"description",className:"block text-sm font-medium text-gray-700",children:"Description (Optional)"}),e.jsx("div",{className:"mt-1",children:e.jsx(j,{id:"description",value:c.description,onChange:t=>i("description",t.target.value),rows:4,placeholder:"Give your project a name that helps you identify what you're tracking"})}),a.description&&e.jsx("p",{className:"mt-2 text-sm text-red-600",children:a.description})]}),e.jsxs("div",{className:"mt-4",children:[e.jsx("h3",{className:"text-sm font-medium text-gray-700 mb-2",children:"Platforms to Monitor"}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex items-center",children:[e.jsx("input",{type:"checkbox",id:"linkedin",className:"h-4 w-4 text-indigo-600 focus:ring-indigo-500 border-gray-300 rounded",checked:r.linkedin,onChange:t=>l("linkedin",t.target.checked)}),e.jsx("label",{htmlFor:"linkedin",className:"ml-2 block text-sm text-gray-700",children:"LinkedIn"})]}),e.jsxs("div",{className:"flex items-center",children:[e.jsx("input",{type:"checkbox",id:"twitter",className:"h-4 w-4 text-indigo-600 focus:ring-indigo-500 border-gray-300 rounded",checked:r.twitter,onChange:t=>l("twitter",t.target.checked)}),e.jsx("label",{htmlFor:"twitter",className:"ml-2 block text-sm text-gray-700",children:"Twitter (X)"})]}),e.jsxs("div",{className:"flex items-center",children:[e.jsx("input",{type:"checkbox",id:"reddit",className:"h-4 w-4 text-indigo-600 focus:ring-indigo-500 border-gray-300 rounded",checked:r.reddit,onChange:t=>l("reddit",t.target.checked)}),e.jsx("label",{htmlFor:"reddit",className:"ml-2 block text-sm text-gray-700",children:"Reddit"})]})]}),e.jsx("div",{className:"mt-3",children:e.jsxs("div",{className:"flex items-center",children:[e.jsx("svg",{className:"h-5 w-5 text-gray-400",viewBox:"0 0 20 20",fill:"currentColor",children:e.jsx("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z",clipRule:"evenodd"})}),e.jsx("p",{className:"ml-2 text-xs text-gray-500",children:"Select which platforms to monitor"})]})})]}),e.jsx("div",{children:e.jsx("button",{type:"submit",disabled:d,className:"w-full flex justify-center py-2 px-4 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-gray-500 hover:bg-gray-600 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-gray-500",children:d?"Creating...":"Create project â"})})]})})})]})}export{w 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.