PageSourceSearch

https://marvelo.ai/assets/venue-portal-status-CfmyH1BN.js

js marvelo.ai collected 2026-10-05 08:56:19 UTC 9,250 bytes, 1 lines download raw bytes

1import{r as n,j as e}from"./react-vendor-DRIGurdb.js";import{I as f,B as o}from"./index-Bw3ZgPsv.js";import{B as j,q as N,t as p,m as y,A as v,C as k,X as w}from"./icons-vendor-BjAdBtly.js";import{A as C,m as r}from"./motion-vendor-CnG4evyJ.js";import"./pdf-vendor-Do3oWgNu.js";import"./tanstack-vendor-Bu6n52Td.js";import"./radix-vendor-Dlq-tESY.js";import"./charts-vendor-CsNSQIYx.js";function S({venue:t}){const d=t.onboardingStatus;return d==="approved"?e.jsxs(r.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},className:"bg-card border border-border rounded-2xl p-6 space-y-4","data-testid":"card-venue-status",children:[e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-10 h-10 rounded-xl bg-green-100 dark:bg-green-950/40 flex items-center justify-center shrink-0",children:e.jsx(y,{className:"w-5 h-5 text-green-600 dark:text-green-400"})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("h3",{className:"font-medium text-base text-foreground","data-testid":"text-venue-name",children:t.name}),e.jsx("p",{className:"text-[13px] text-muted-foreground",children:t.city})]}),e.jsx("span",{className:"text-[11px] font-semibold px-2.5 py-1 rounded-full bg-green-100 dark:bg-green-950/40 text-green-700 dark:text-green-400 border border-green-200 dark:border-green-800",children:"Approved"})]}),e.jsxs("div",{className:"bg-green-50 dark:bg-green-950/20 rounded-xl border border-green-100 dark:border-green-900/50 p-4",children:[e.jsx("p",{className:"text-[13px] text-green-800 dark:text-green-300 font-medium mb-1",children:"Your venue is live on Marvelous"}),e.jsx("p",{className:"text-[12px] text-green-700/70 dark:text-green-400/70",children:"Log in to your partner dashboard to manage availability, pricing, and bookings."})]}),e.jsx("a",{href:"/venue-portal",children:e.jsxs(o,{className:"w-full bg-foreground text-background hover:bg-foreground
1/90","data-testid":"button-go-to-dashboard",children:["Go to Partner Dashboard ",e.jsx(v,{className:"w-4 h-4 ml-1"})]})})]}):d==="pending"?e.jsxs(r.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},className:"bg-card border border-border rounded-2xl p-6 space-y-4","data-testid":"card-venue-status",children:[e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-10 h-10 rounded-xl bg-amber-100 dark:bg-amber-950/40 flex items-center justify-center shrink-0",children:e.jsx(k,{className:"w-5 h-5 text-amber-600 dark:text-amber-400"})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("h3",{className:"font-medium text-base text-foreground","data-testid":"text-venue-name",children:t.name}),e.jsx("p",{className:"text-[13px] text-muted-foreground",children:t.city})]}),e.jsx("span",{className:"text-[11px] font-semibold px-2.5 py-1 rounded-full bg-amber-100 dark:bg-amber-950/40 text-amber-700 dark:text-amber-400 border border-amber-200 dark:border-amber-800",children:"Under Review"})]}),e.jsxs("div",{className:"bg-amber-50 dark:bg-amber-950/20 rounded-xl border border-amber-100 dark:border-amber-900/50 p-4",children:[e.jsx("p",{className:"text-[13px] text-amber-800 dark:text-amber-300 font-medium mb-1",children:"Your application is being reviewed"}),e.jsx("p",{className:"text-[12px] text-amber-700/70 dark:text-amber-400/70",children:"Our team reviews new venues within 2 to 3 business days. You will receive an email at this address once a decision is made."})]})]}):d==="rejected"?e.jsxs(r.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},className:"bg-card border border-border rounded-2xl p-6 space-y-4","data-testid":"card-venue-status",children:[e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-10 h-10 rounded-xl bg-red-100 dark:bg-red-950/40 flex items-center justify-center shrink-0",children:e.jsx(w,{className:"w-5 h-5 text-red-600 dark:text-red-400"})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("h3",{className:"font-medium text-base text-foreground","data-testid":"text-venue-name",children:t.name}),e.jsx("p",{className:"text-[13px] text-muted-foreground",children:t.city})]}),e.jsx("span",{className:"text-[11px] font-semibold px-2.5 py-1 rounded-full bg-red-100 dark:bg-red-950/40 text-red-700 dark:text-red-400 border border-red-200 dark:border-red-800",children:"Not Approved"})]}),t.rejectionNote&&e.jsxs("div",{className:"bg-muted/50 rounded-xl border border-border p-4",children:[e.jsx("p",{className:"text-[11px] font-semibold uppercase tracking-wide text-muted-foreground/60 mb-1",children:"Note from our team"}),e.jsx("p",{className:"text-[13px] text-foreground/80",children:t.rejectionNote})]}),e.jsxs("div",{className:"bg-red-50 dark:bg-red-950/20 rounded-xl border border-red-100 dark:border-red-900/50 p-4",children:[e.jsx("p",{className:"text-[13px] text-red-800 dark:text-red-300 font-medium mb-1",children:"We are unable to approve this venue at this time"}),e.jsxs("p",{className:"text-[12px] text-red-700/70 dark:text-red-400/70",children:["You are welcome to make updates and reapply. Reach out to"," ",e.jsx("a",{href:"mailto:[email protected]",className:"underline hover:opacity-80",children:"[email protected]"})," ","if you have any questions."]})]}),e.jsx("a",{href:"/become-a-venue",children:e.jsx(o,{variant:"outline",className:"w-full","data-testid":"button-reapply",children:"Submit a New Application"})})]}):e.jsx(r.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},className:"bg-card border border-border rounded-2xl p-6","data-testid":"card-venue-status",children:e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(p,{className:"w-5 h-5 text-muted-foreground"}),e.jsxs("p",{className:"text-[13px] text-muted-foreground",children:["Status unknown for ",t.name]})]})})}function q(){const[t,d]=n.useState(""),[l,c]=n.useState(!1),[i,m]=n.useState(null),[x,u]=n.useState(null);async function b(a){if(a.preventDefault(),!!t.trim()){c(!0),u(null),m(null);try{const s=await fetch(`/api/venues/status?email=${encodeURIComponent(t.trim())}`);if(!s.ok){const g=await s.json().catch(()=>({}));
1throw new Error(g.message||"Failed to check status")}const h=await s.json();m(h.venues??[])}catch(s){u(s instanceof Error?s.message:"Something went wrong. Please try again.")}finally{c(!1)}}}return e.jsx("div",{className:"min-h-screen bg-background",children:e.jsxs("div",{className:"max-w-xl mx-auto px-4 py-16",children:[e.jsxs("div",{className:"text-center mb-10",children:[e.jsx("div",{className:"w-14 h-14 rounded-2xl bg-muted flex items-center justify-center mx-auto mb-5",children:e.jsx(j,{className:"w-7 h-7 text-foreground/60"})}),e.jsx("h1",{className:"text-3xl font-serif mb-2","data-testid":"text-status-title",children:"Check Your Application"}),e.jsx("p",{className:"text-[14px] text-muted-foreground",children:"Enter the email address you used when submitting your venue listing."})]}),e.jsxs("form",{onSubmit:b,className:"bg-card border border-border rounded-2xl p-6 mb-6","data-testid":"form-status-check",children:[e.jsx("label",{className:"text-[12px] font-medium text-muted-foreground uppercase tracking-wide mb-1.5 block",children:"Contact Email"}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(f,{type:"email",value:t,onChange:a=>d(a.target.value),placeholder:"[email protected]",required:!0,className:"flex-1","data-testid":"input-status-email"}),e.jsx(o,{type:"submit",disabled:l||!t.trim(),className:"bg-foreground text-background hover:bg-foreground
1/90","data-testid":"button-check-status",children:l?e.jsx(N,{className:"w-4 h-4 animate-spin"}):"Check"})]})]}),e.jsxs(C,{mode:"wait",children:[x&&e.jsx(r.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},exit:{opacity:0},className:"bg-destructive/10 border border-destructive/20 rounded-2xl p-4 mb-4","data-testid":"text-status-error",children:e.jsx("p",{className:"text-[13px] text-destructive",children:x})},"error"),i!==null&&i.length===0&&e.jsxs(r.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},exit:{opacity:0},className:"bg-card border border-border rounded-2xl p-6 text-center","data-testid":"card-status-not-found",children:[e.jsx(p,{className:"w-8 h-8 text-muted-foreground/30 mx-auto mb-3"}),e.jsx("p",{className:"text-[14px] font-medium mb-1",children:"No application found"}),e.jsx("p",{className:"text-[12px] text-muted-foreground mb-4",children:"We could not find a venue application for this email. Please double-check the address you used, or submit a new application."}),e.jsx("a",{href:"/become-a-venue",children:e.jsx(o,{variant:"outline",size:"sm","data-testid":"button-status-apply",children:"List Your Venue"})})]},"empty"),i!==null&&i.length>0&&e.jsx(r.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},className:"space-y-3",children:i.map(a=>e.jsx(S,{venue:a},a.id))},"results")]}),e.jsxs("div",{className:"mt-8 text-center space-y-2",children:[e.jsx("a",{href:"/become-a-venue",className:"block text-[13px] text-muted-foreground hover:text-foreground transition-colors","data-testid":"link-status-to-apply",children:"Submit a new venue listing"}),e.jsx("a",{href:"/login",className:"block text-[13px] text-muted-foreground hover:text-foreground transition-colors","data-testid":"link-status-to-login",children:"Log in to your partner dashboard"})]})]})})}export{q 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.