PageSourceSearch

https://saffronfoods.com/assets/Partners-BtDX3AOK.js

js saffronfoods.com collected 2026-10-10 00:40:46 UTC 10,368 bytes, 1 lines download raw bytes

1import{r as i,j as e,as as O,L as t,I as o,a3 as v,a4 as N,a5 as C,a6 as S,a7 as T,ap as w,k as _,B as W,f as L,e as R,at as q,au as D,av as H}from"./index-BMW1MpPG.js";import{G}from"./gift-D4Fl4gJP.js";const F="I agree to be contacted about this partnership",U=[{value:"caterer",label:"Caterer"},{value:"tourism",label:"Tourism / Tours"},{value:"entertainment",label:"Entertainment"},{value:"hospitality",label:"Hospitality / Hotel"},{value:"event_venue",label:"Event / Venue"},{value:"retail",label:"Retail"},{value:"corporate",label:"Corporate / Office"},{value:"other",label:"Other"}],z=[{value:"<100",label:"Fewer than 100"},{value:"100-500",label:"100 – 500"},{value:"500-1000",label:"500 – 1,000"},{value:"1000+",label:"1,000+"}],J=[{value:"discount",label:"Discount for my customers at Saffron"},{value:"catering",label:"Catering for my company events"},{value:"both",label:"Both"},{value:"other",label:"Other"}];function M(){const[s,u]=i.useState({fullName:"",jobTitle:"",companyName:"",email:"",phone:"",businessType:"",businessTypeOther:"",companyWebsite:"",monthlyVolume:"",operatingLocation:"",offerOther:"",message:""}),[d,E]=i.useState([]),[h,P]=i.useState(!1),[x,p]=i.useState(!1),[B,k]=i.useState(!1),[f,c]=i.useState(""),I=i.useRef(Date.now()),y=i.useRef(null),l=a=>r=>u(m=>({...m,[a]:r.target.value})),A=a=>{E(r=>r.includes(a)?r.filter(m=>m!==a):[...r,a])};async function V(a){var r,m,g,b,j;if(a.preventDefault(),c(""),!s.fullName||!s.companyName||!s.email||!s.phone){c("Please fill in your name, company, email, and phone number.");return}if(!s.businessType){c("Please select your business type.");return}if(!s.monthlyVolume){c("Please select your approximate monthly customer volume.");return}if(d.length===0){c("Please select what you'd like to offer your customers.");return}if(!h){c("Please agree to be contacted about this partnership.");return}p(!0);try{const n=await R.functions.invoke("submitPartnerInquiry",{fullName:s.fullName,jobTitle:s.jobTitle,companyName:s.companyName,email:s.email,phone:s.phone,businessType:s.businessType,businessTypeOther:s.businessType==="other"?s.businessTypeOther:"",companyWebsite:s.companyWebsite,monthlyVolume:s.monthlyVolume,operatingLocation:s.operatingLocation,offers:d,offerOther:d.includes("other")?s.offerOther:"",message:s.message,consent:!0,consent_text:F,fax_number:((r=y.current)==null?void 0:r.value)||"",form_rendered_at:I.current});(m=n==null?void 0:n.data)!=null&&m.success?(q("partner_inquiry"),k(!0)):c(((g=n==null?void 0:n.data)==null?void 0:g.error)||"Something went wrong. Please try again.")}catch(n){c(((j=(b=n==null?void 0:n.response)==null?void 0:b.data)==null?void 0:j.error)||"Something went wrong. Please try again.")}finally{p(!1)}}return B?e.jsxs("div",{className:"text-center py-10 px-6",children:[e.jsx("div",{className:"w-16 h-16 rounded-full bg-[#FDF2F8] flex items-center justify-center mx-auto mb-4",children:e.jsx(O,{className:"w-8 h-8 text-[#A8356B]"})}),e.jsx("h3",{className:"text-2xl font-semibold text-gray-900 mb-2",children:"Thank you for reaching out!"}),e.jsx("p",{className:"text-gray-600 max-w-sm mx-auto",children:"We've received your partnership inquiry and our team will be in touch soon."})]}):e.jsxs("form",{onSubmit:V,className:"space-y-4",children:[e.jsx("input",{ref:y,type:"text",name:"fax_number",tabIndex:-1,autoComplete:"off",style:{position:"absolute",left:"-9999px",height:0,width:0,opacity:0},"aria-hidden":"true"}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsxs(t,{htmlFor:"pi-name",children:["Full Name ",e.jsx("span",{className:"text-red-500",children:"*"})]}),e.jsx(o,{id:"pi-name",value:s.fullName,onChange:l("fullName"),autoComplete:"name",required:!0,className:"mt-1"})]}),e.jsxs("div",{children:[e.jsx(t,{htmlFor:"pi-title",children:"Job Title / Role"}),e.jsx(o,{id:"pi-title",value:s.jobTitle,onChange:l("jobTitle"),autoComplete:"organization-title",className:"mt-1"})]})]}),e.jsxs("div",{children:[e.jsxs(t,{htmlFor:"pi-company",children:["Company Name ",e.jsx("span",{className:"text-red-500",children:"*"})]}),e.jsx(o,{id:"pi-company",value:s.companyName,onChange:l("companyName"),autoComplete:"organization",required:!0,className:"mt-1"})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsxs(t,{htmlFor:"pi-email",children:["Email ",e.jsx("span",{className:"text-red-500",children:"*"})]}),e.jsx(o,{id:"pi-email",type:"email",value:s.email,onChange:l("email"),autoComplete:"email",required:!0,className:"mt-1"})]}),e.jsxs("div",{children:[e.jsxs(t,{htmlFor:"pi-phone",children:["Phone ",e.jsx("span",{className:"text-red-500",children:"*"})]}),e.jsx(o,{id:"pi-phone",type:"tel",value:s.phone,onChange:l("phone"),autoComplete:"tel",required:!0,className:"mt-1"})]})]}),e.jsxs("div",{children:[e.jsxs(t,{children:["Business Type ",e.jsx("span",{className:"text-red-500",children:"*"})]}),e.jsxs(v,{value:s.businessType,onValueChange:a=>u(r=>({...r,businessType:a})),children:[e.jsx(N,{className:"mt-1",children:e.jsx(C,{placeholder:"Select your business type"})}),e.jsx(S,{children:U.map(a=>e.jsx(T,{value:a.value,children:a.label},a.value))})]}),s.businessType==="other"&&e.jsx(o,{value:s.businessTypeOther,onChange:l("businessTypeOther"),placeholder:"Tell us your business type",className:"mt-2"})]}),e.jsxs("div",{children:[e.jsxs(t,{htmlFor:"pi-website",children:["Company Website ",e.jsx("span",{className:"text-gray-400 font-normal",children:"(optional)"})]}),e.jsx(o,{id:"pi-website",type:"url",value:s.companyWebsite,onChange:l("companyWebsite"),placeholder:"https://",className:"mt-1"})]}),e.jsxs("div",{children:[e.jsxs(t,{children:["Approximate Monthly Customer Volume ",e.jsx("span",{className:"text-red-500",children:"*"})]}),e.jsxs(v,{value:s.monthlyVolume,onValueChange:a=>u(r=>({...r,monthlyVolume:a})),children:[e.jsx(N,{className:"mt-1",children:e.jsx(C,{placeholder:"Select a range"})}),e.jsx(S,{children:z.map(a=>e.jsx(T,{value:a.value,children:a.label},a.value))})]})]}),e.jsxs("div",{children:[e.jsx(t,{htmlFor:"pi-location",children:"Location / Service Area"}),e.jsx(o,{id:"pi-location",value:s.operatingLocation,onChange:l("operatingLocation"),className:"mt-1"})]}),e.jsxs("div",{children:[e.jsxs(t,{children:["What would you like to offer your customers? ",e.jsx("span",{className:"text-red-500",children:"*"})]}),e.jsx("div",{className:"mt-2 space-y-2",children:J.map(a=>e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(w,{id:`pi-offer-${a.value}`,checked:d.includes(a.value),onCheckedChange:()=>
1A(a.value),className:"mt-0.5"}),e.jsx(t,{htmlFor:`pi-offer-${a.value}`,className:"text-sm font-normal text-gray-700 leading-snug cursor-pointer",children:a.label})]},a.value))}),d.includes("other")&&e.jsx(o,{value:s.offerOther,onChange:l("offerOther"),placeholder:"Tell us what you have in mind",className:"mt-2"})]}),e.jsxs("div",{children:[e.jsxs(t,{htmlFor:"pi-message",children:["Tell us about your business ",e.jsx("span",{className:"text-gray-400 font-normal",children:"(optional)"})]}),e.jsx(_,{id:"pi-message",value:s.message,onChange:l("message"),rows:4,className:"mt-1"})]}),e.jsxs("div",{className:"flex items-start gap-3 pt-1",children:[e.jsx(w,{id:"pi-consent",checked:h,onCheckedChange:a=>P(!!a),className:"mt-0.5"}),e.jsxs(t,{htmlFor:"pi-consent",className:"text-sm font-normal text-gray-600 leading-snug cursor-pointer",children:[F," ",e.jsx("span",{className:"text-red-500",children:"*"})]})]}),f&&e.jsx("p",{className:"text-sm text-red-600",children:f}),e.jsx(W,{type:"submit",disabled:x,className:"w-full bg-[#A8356B] hover:bg-[#8A2B57] h-12 text-base",children:x?e.jsxs(e.Fragment,{children:[e.jsx(L,{className:"w-4 h-4 mr-2 animate-spin"})," Sending..."]}):"Submit Inquiry"})]})}const Y=[{icon:G,title:"Exclusive Customer Discounts",text:"Give your customers a special discount at Saffron — a memorable Charleston treat that adds value to every tour."},{icon:H,title:"Catering for Your Events",text:"From crew appreciation to corporate gatherings, our full-service catering brings scratch-made food to your team."}
1,{icon:O,title:"Co-Branded Experience",text:"We create a custom landing page and promo code for your company, so your customers get a seamless experience."}];function K(){return i.useEffect(()=>{window.location.hash==="#form"&&setTimeout(()=>{var s;return(s=document.getElementById("form"))==null?void 0:s.scrollIntoView({behavior:"smooth"})},300)},[]),e.jsxs("div",{className:"min-h-screen bg-[#FAFAFA]",children:[e.jsx(D,{title:"Partner With Saffron — Charleston Tour & Hospitality Partnerships",description:"Partner with Saffron Bakery & Restaurant in Charleston, SC. Offer your tour customers exclusive discounts or bring Saffron catering to your company events.",path:"/Partners"}),e.jsxs("section",{className:"bg-gradient-to-r from-[#A8356B] to-[#C54A82] py-16 md:py-20 px-4 text-center",children:[e.jsx("h1",{className:"text-4xl md:text-5xl font-serif text-white mb-4",children:"Partner With Saffron"}),e.jsx("p",{className:"text-lg text-white/90 max-w-2xl mx-auto",children:"Join Charleston's favorite bakery & restaurant in creating memorable experiences for your customers and your team."})]}),e.jsx("section",{className:"py-14 px-4",children:e.jsx("div",{className:"max-w-5xl mx-auto grid grid-cols-1 md:grid-cols-3 gap-6",children:Y.map((s,u)=>e.jsxs("div",{className:"bg-white rounded-2xl border border-gray-100 shadow-sm p-6 text-center",children:[e.jsx("div",{className:"w-12 h-12 rounded-full bg-[#FDF2F8] flex items-center justify-center mx-auto mb-4",children:e.jsx(s.icon,{className:"w-6 h-6 text-[#A8356B]"})}),e.jsx("h3",{className:"font-semibold text-gray-900 mb-2",children:s.title}),e.jsx("p",{className:"text-gray-600 text-sm leading-relaxed",children:s.text})]},u))})}),e.jsx("section",{id:"form",className:"pb-20 px-4 scroll-mt-24",children:e.jsxs("div",{className:"max-w-2xl mx-auto",children:[e.jsxs("div",{className:"text-center mb-8",children:[e.jsx("h2",{className:"font-serif text-3xl text-gray-900 mb-2",children:"Become a Partner"}),e.jsx("p",{className:"text-gray-600",children:"Tell us about your business and we'll get in touch to explore a partnership."})]}),e.jsx("div",{className:"bg-white rounded-2xl border border-gray-100 shadow-sm p-6 sm:p-8",children:e.jsx(M,{})})]})})]})}export{K 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.