WRP.LIVE
LIVE MUSIC BOOKING
WRP.LIVE

Book Walker Redds Project for a bold, polished live performance experience. Share your event details below to request a quote and start the conversation.

For booking questions, visit DigiU.cards/wrp.

STEP 1 OF 5

Contact information

Complete the form to request a booking quote. Fields marked * are required.

0 valid
`; const recipients = new Set(); const $ = id => document.getElementById(id); const emailRegex = /^[^\s@,;<>]+@[^\s@,;<>]+\.[^\s@,;<>]+$/; function validEmail(value){ return emailRegex.test(value.trim()); } function extractEmails(text){ return String(text) .split(/[\s,;]+/) .map(x=>x.trim().toLowerCase()) .filter(validEmail); } function addRecipients(values){ let added=0; for(const email of values){ if(!recipients.has(email)){ recipients.add(email); added++; } } updateCount(); return added; } function currentRecipients(){ const manual = extractEmails( $("recipientInput").value ); return [...new Set([ ...recipients, ...manual ])]; } function updateCount(){ const list=currentRecipients(); $("count").textContent = list.length+" valid"; $("sendButton").disabled = list.length===0; $("status").textContent = list.length ? list.length+" unique valid recipient(s) ready." : ""; } $("recipientInput") .addEventListener("input",updateCount); function showDialog(id){ $(id).classList.remove("hidden"); } function hideDialog(id){ $(id).classList.add("hidden"); } function toast(message){ const el=$("toast"); el.textContent=message; el.classList.remove("hidden"); clearTimeout(window.toastTimer); window.toastTimer=setTimeout(()=>{ el.classList.add("hidden"); },3500); } function importPasted(){ const raw=$("pasteText").value; const parsed=extractEmails(raw); const added=addRecipients(parsed); hideDialog("pasteDialog"); $("pasteText").value=""; toast(added+" recipient(s) added."); } /* CSV parser supports quoted fields, escaped quotes, and newlines. */ function parseCSV(text){ const rows=[]; let row=[]; let cell=""; let quoted=false; for(let i=0;i{ const file=event.target.files[0]; if(!file)return; try{ const text=await file.text(); const rows=parseCSV(text); const values=[]; for(const row of rows){ for(const cell of row){ const candidates= extractEmails(cell); values.push(...candidates); } } const added=addRecipients(values); toast( added+" valid recipient(s) imported." ); }catch(error){ toast("Unable to read CSV file."); } event.target.value=""; } ); function openPreview(){ window.open( BOOKING_URL, "_blank", "noopener,noreferrer" ); } function toggleEmailer(){ $("emailer").classList.toggle("hidden"); $("reopenButton") .classList.toggle("hidden"); } /* Interactive 5-step booking preview. This preview does not submit bookings. Use the real booking URL for requests. */ const steps=[ { title:"Contact information", description: "Complete the form to request a booking quote. Fields marked * are required.", fields:[ ["First name","text"], ["Last name","text"], ["Email","email"], ["Phone number","tel"] ] }, { title:"Event details", description: "Tell us about your upcoming event.", fields:[ ["Event name","text"], ["Event date","date"], ["Event location","text"] ] }, { title:"Performance details", description: "Share your performance preferences.", fields:[ ["Event type","text"], ["Performance duration","text"], ["Expected guests","number"] ] }, { title:"Additional information", description: "Provide any important booking details.", fields:[ ["Estimated budget","text"], ["Special requests","text"] ] }, { title:"Review request", description: "Ready to continue? Open the live booking page to submit your request.", fields:[] } ]; let currentStep=0; const bookingValues={}; function renderStep(){ const step=steps[currentStep]; $("stepLabel").textContent= `STEP ${currentStep+1} OF 5`; $("stepTitle").textContent=step.title; $("stepDescription").textContent= step.description; $("stepFields").innerHTML=""; for(const [name,type] of step.fields){ const input=document.createElement("input"); input.className="booking-field"; input.type=type; input.placeholder=name+" *"; input.setAttribute("aria-label",name); input.required=true; input.value=bookingValues[name]||""; input.dataset.field=name; $("stepFields").appendChild(input); } $("progress").innerHTML=""; for(let i=0;i<5;i++){ const bar=document.createElement("span"); if(i<=currentStep){ bar.className="active"; } $("progress").appendChild(bar); } $("nextButton").textContent= currentStep===4 ? "Open booking page" : "Next"; } $("bookingForm").addEventListener( "submit",event=>{ event.preventDefault(); const inputs=$("stepFields") .querySelectorAll("input"); for(const input of inputs){ bookingValues[input.dataset.field]= input.value; } if(currentStep===4){ openPreview(); return; } currentStep++; renderStep(); } ); renderStep(); /* Send workflow. This example sends one request per recipient. The server is responsible for actual email delivery. For production bulk sending, use a server-side queue rather than relying on an open browser tab. */ let sending=false; async function sendEmails(){ if(sending)return; const list=currentRecipients(); if(!list.length){ toast("Enter a valid email address."); return; } if(!API_ENDPOINT){ toast( "Configure API_ENDPOINT to enable delivery." ); return; } $("confirmMessage").textContent= "Send the Walker Redds Project booking "+ "invitation to "+list.length+ " recipient(s)?"; showDialog("confirmDialog"); $("confirmSend").onclick=()=>{ hideDialog("confirmDialog"); performSend(list); }; } async function performSend(list){ if(sending)return; sending=true; $("sendButton").disabled=true; $("sendButton").textContent="Sending..."; let success=0; let failed=0; try{ for(const email of list){ $("status").textContent= `Sending ${success+failed+1} of ${list.length}...`; try{ const response=await fetch( API_ENDPOINT, { method:"POST", headers:{ "Content-Type":"application/json" }, body:JSON.stringify({ to:email, subject:EMAIL_SUBJECT, textBody:EMAIL_TEXT, htmlBody:EMAIL_HTML, attachments:[] }) } ); if(!response.ok){ throw new Error( "HTTP "+response.status ); } success++; }catch(error){ console.error( "Delivery failed:", email,error ); failed++; } } $("status").textContent= `${success} accepted by API; ${failed} failed.`; toast( `Completed: ${success} accepted, ${failed} failed.` ); }finally{ sending=false; $("sendButton").textContent="Send"; updateCount(); } }