PageSourceSearch

https://itsraw.ai/_next/static/chunks/209-d1d0783d1b346840.js

js itsraw.ai collected 2026-10-05 12:05:18 UTC 33,868 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[209],{2188:(e,s,a)=>{a.d(s,{w:()=>o});var t=a(3798),l=a(2916),i=a(7005),r=a(8456),n=a(1462);a(4052);let o=e=>{let{children:s}=e,{isSignedIn:a,isLoaded:o}=(0,l.d)(),c=(0,i.ho)();if((0,n.useEffect)(()=>{o&&!a&&c.redirectToSignIn()},[o,a,c]),o||a)return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.iB,{children:s}),(0,t.jsx)(r.Bl,{})]})}},3068:(e,s,a)=>{a.d(s,{A:()=>j});var t=a(3798),l=a(9214),i=a.n(l);let r=e=>{let{image:s,btn:a,btn2:l}=e;return(0,t.jsx)("div",{className:"h-[90%] w-full ",children:(0,t.jsxs)("div",{className:"  md:w-[80%] mx-auto relative overflow-hidden flex lg:flex-row flex-col justify-between h-full ",children:[(0,t.jsxs)("div",{className:"h-[50%] lg:h-full w-full px-4 lg:px-0 lg:w-1/2 flex flex-col justify-center ",children:[(0,t.jsxs)("h2",{className:"text-5xl md:text-7xl uppercase mb-4 font-medium",children:["Restaurant ",(0,t.jsx)("br",{}),(0,t.jsx)("span",{className:"",children:"Information"})]}),(0,t.jsx)("p",{className:"text-black text-xl mb-4 font-medium",children:"Manage your Restaurant profiles and details"})]}),(0,t.jsx)("div",{className:"   w-full  lg:w-1/2 lg:h-full flex items-center justify-center  ",children:(0,t.jsx)("div",{className:"w-full h-full flex items-center justify-center md:items-end md:justify-end ",children:(0,t.jsx)("div",{className:" md:h-full relative h-full  w-[80%] lg:w-full md:w-[90%] flex items-end justiy-end",children:(0,t.jsx)(i(),{src:s,priority:!0,className:"md:aspect-[16/14]",width:500,height:500})})})})]})})};var n=a(6426),o=a(8417),c=a(1462),d=a(4502),m=a(6482),u=a(4004),x=a(5658),p=a(3130),h=a(7405),f=a(2916),b=a(6996);a(4052);var y=a(5695);let g=e=>{var s,a,l;let{fetch:i}=e,[r,n]=(0,c.useState)(),{Restaurantinfo:o}=(0,y.g)(),g=["Sophisticated","Refined","Polished","Chic","Upscale","Prestigious","Exclusive","Gourmet","Inviting","Welcoming","Comfortable","Cozy","Relaxed","Approachable","Humble","Homey","Energetic","Lively","Vibrant","Trendy","Fun","Whimsical","Unique","Edgy"],[j,w]=(0,c.useState)({email:"",phone:"",restaurantName:"",menuUrl:"",website:"",tiktok:"",whatsapp:"",youtube:"",instagram:"",linkedin:"",facebook:"",website2:"",bookingLink:"",location:"",emirate:"",dubaiArea:"",cuisines:"",coverage:"",bestDishes:"",description:"",traits:""}),v=(0,b.useRouter)(),N=/^\+[1-9]\d{6,14}$/,{getToken:k}=(0,f.d)(),F=p.Ikc({menu:p.YjP().url("Invalid URL format").optional().or(p.euz("")).optional(),website:p.YjP().url("Invalid URL format").optional().or(p.euz("")),whatsapp:p.YjP().optional(),instagram:p.YjP().optional(),facebook:p.YjP().optional(),tiktok:p.YjP().optional(),youtube:p.YjP().optional(),linkedin:p.YjP().optional(),bookingLink:p.YjP().url("Invalid URL format").optional().or(p.euz("")),location:p.YjP().optional(),cityArea:p.YjP().optional(),emirate:p.YjP().min(1,"Emirate must be selected"),businessHours:p.Ikc({monday:p.Ikc({open:p.YjP().optional(),close:p.YjP().optional(),closed:p.zMY().optional()}),tuesday:p.Ikc({open:p.YjP().optional(),close:p.YjP().optional(),closed:p.zMY().optional()}),wednesday:p.Ikc({open:p.YjP().optional(),close:p.YjP().optional(),closed:p.zMY().optional()}),thursday:p.Ikc({open:p.YjP().optional(),close:p.YjP().optional(),closed:p.zMY().optional()}),friday:p.Ikc({open:p.YjP().optional(),close:p.YjP().optional(),closed:p.zMY().optional()}),saturday:p.Ikc({open:p.YjP().optional(),close:p.YjP().optional(),closed:p.zMY().optional()}),sunday:p.Ikc({open:p.YjP().optional(),close:p.YjP().optional(),closed:p.zMY().optional()})}),restaurantName:p.YjP().min(2,"Restaurant name must be at least 2 characters").max(100),isLicensed:p.zMY().optional(),hasValetParking:p.zMY().optional(),allowsSmoking:p.zMY().optional(),isKidsFriendly:p.zMY().optional(),isPetsFriendly:p.zMY().optional(),hasTakeaway:p.zMY().optional(),hasOutdoorDining:p.zMY().optional(),cuisineType:p.YOg(p.YjP()).max(2,"Maximum 2 cuisine types allowed"),restaurantType:p.YOg(p.YjP()).min(1,"Please select at least one restaurant type").max(4,"Maximum 4 restaurant types allowed"),averageSpend:p.YjP().regex(/^\d+-\d+$/,"Invalid price range format").optional(),description:p.YjP().min(10,"Description must be at least 10 characters").max(700,"Description cannot exceed 700 words"),personalityVibe:p.YOg(p.YjP()).optional(),email:p.YjP().email("Invalid email address"),phone:p.YjP().min(1,"Phone number is required").refine(e=>N.test(e),{message:"Please enter a valid international phone number (e.g., +1234567890)"})}).superRefine((e,s)=>{0===[e.website,e.whatsapp,e.instagram,e.facebook,e.tiktok,e.youtube,e.linkedin].map(e=>"string"==typeof e?e.trim():"").filter(e=>e.length>0).length&&s.addIssue({code:p.eqx.custom,message:"Please provide at least one of Website, WhatsApp, Instagram, Facebook, TikTok, YouTube, or LinkedIn.",path:["website"]}),"Dubai"===e.emirate&&(!e.cityArea||e.cityArea.length<2)&&s.addIssue({path:["cityArea"],message:"Area must be at least 2 characters",code:p.eqx.custom})}),D=(0,d.mN)({resolver:(0,x.u)(F),defaultValues:{restaurantName:"",menu:"",website:"",whatsapp:"",instagram:"",facebook:"",tiktok:"",youtube:"",linkedin:"",bookingLink:"",location:"",cityArea:"",emirate:"",businessHours:{monday:{open:"",close:"",closed:!1}
1,tuesday:{open:"",close:"",closed:!1},wednesday:{open:"",close:"",closed:!1},thursday:{open:"",close:"",closed:!1},friday:{open:"",close:"",closed:!1},saturday:{open:"",close:"",closed:!1},sunday:{open:"",close:"",closed:!1}},isLicensed:!1,hasValetParking:!1,allowsSmoking:!1,isKidsFriendly:!1,isPetsFriendly:!1,hasTakeaway:!1,hasOutdoorDining:!1,cuisineType:[],restaurantType:[],averageSpend:"100-1000",description:"",personalityVibe:[],email:"",phone:""}}),P=async()=>{try{let e=D.getValues();if(console.log("formdata"+JSON.stringify(e.businessHours)),!await D.trigger()){console.log(" FORM ERRORS:",D.formState.errors);let e=D.getValues().businessHours;console.log("businessHours typeof:",typeof e),console.log("businessHours keys:",e?Object(e):e),console.log("monday value:",null==e?void 0:e.monday);let s=F.safeParse(D.getValues());s.success?console.log("Parsed data:",s.data):console.log("Zod errors:",s.error.format()),u.Ay.error("Please fix the highlighted fields.");return}let s={email:e.email,custom:{restaurantName:e.restaurantName,menu:e.menu,website:e.website,whatsapp:e.whatsapp,instagram:e.instagram,facebook:e.facebook,tiktok:e.tiktok,youtube:e.youtube,linkedin:e.linkedin,bookingLink:e.bookingLink,location:e.location,cityArea:e.cityArea,emirate:e.emirate,businessHours:e.businessHours,isLicensed:e.isLicensed,hasValetParking:e.hasValetParking,allowsSmoking:e.allowsSmoking,isKidsFriendly:e.isKidsFriendly,isPetsFriendly:e.isPetsFriendly,hasTakeaway:e.hasTakeaway,hasOutdoorDining:e.hasOutdoorDining,cuisineType:e.cuisineType,restaurantType:e.restaurantType,averageSpend:e.averageSpend,description:e.description,personalityVibe:e.personalityVibe,phone:e.phone}};console.log("formdata"+D);let a=o(h.A.OTHER.RESTAURANT,s),t=await a;console.log("Success:",t),n(t),T(!0),v.push("/dashboard-dashboard")}catch(e){console.error("Error submitting form:",e)}};(0,c.useEffect)(()=>{if(!i||!i.custom){D.reset({restaurantName:"",menu:"",website:"",whatsapp:"",instagram:"",facebook:"",tiktok:"",youtube:"",linkedin:"",bookingLink:"",location:"",cityArea:"",emirate:"",businessHours:{monday:{open:"",close:"",closed:!1}
1,tuesday:{open:"",close:"",closed:!1},wednesday:{open:"",close:"",closed:!1},thursday:{open:"",close:"",closed:!1},friday:{open:"",close:"",closed:!1},saturday:{open:"",close:"",closed:!1},sunday:{open:"",close:"",closed:!1}},isLicensed:!1,hasValetParking:!1,allowsSmoking:!1,isKidsFriendly:!1,isPetsFriendly:!1,hasTakeaway:!1,hasOutdoorDining:!1,cuisineType:[],restaurantType:[],averageSpend:"100-500",description:"",personalityVibe:[],email:"",phone:""}),console.log("No restaurant data found – empty form loaded");return}if(i){let e=i.custom.averageSpend||"100-500";D.reset({restaurantName:i.custom.restaurantName||"",menu:i.custom.menu||"",website:i.custom.website||"",whatsapp:i.custom.whatsapp||"",instagram:i.custom.instagram||"",facebook:i.custom.facebook||"",tiktok:i.custom.tiktok||"",youtube:i.custom.youtube||"",linkedin:i.custom.linkedin||"",bookingLink:i.custom.bookingLink||"",location:i.custom.location||"",cityArea:i.custom.cityArea||"",emirate:i.custom.emirate||"",businessHours:i.custom.businessHours||{monday:{open:"",close:"",closed:!1}
1,tuesday:{open:"",close:"",closed:!1},wednesday:{open:"",close:"",closed:!1},thursday:{open:"",close:"",closed:!1},friday:{open:"",close:"",closed:!1},saturday:{open:"",close:"",closed:!1},sunday:{open:"",close:"",closed:!1}},isLicensed:i.custom.isLicensed||!1,hasValetParking:i.custom.hasValetParking||!1,allowsSmoking:i.custom.allowsSmoking||!1,isKidsFriendly:i.custom.isKidsFriendly||!1,isPetsFriendly:i.custom.isPetsFriendly||!1,hasTakeaway:i.custom.hasTakeaway||!1,hasOutdoorDining:i.custom.hasOutdoorDining||!1,cuisineType:i.custom.cuisineType||[],restaurantType:i.custom.restaurantType||[],averageSpend:e,description:i.custom.description||"",personalityVibe:i.custom.personalityVibe||[],email:i.email||"",phone:i.custom.phone||""})}},[i,D]);let S=e=>{var s;let{name:a,form:l}=e;return l.formState.errors[a]?(0,t.jsx)("p",{className:"text-red-500 text-sm mt-1 text-center md:text-left py-2",children:null==(s=l.formState.errors[a])?void 0:s.message}):null},[B,T]=(0,c.useState)(!1);return(0,t.jsx)("div",{className:"py-12",children:(0,t.jsx)("div",{children:(0,t.jsxs)("div",{className:"w-full flex flex-col items-center justify-center ",children:[(0,t.jsxs)("div",{className:"max-w-5xl mx-auto",children:[(0,t.jsx)("h2",{className:"text-5xl uppercase mb-4  text-center",children:"Step 1-Core Information"}),(0,t.jsxs)("form",{action:"submit",onSubmit:e=>{e.preventDefault(),P()},className:"flex flex-col items-center ",children:[(0,t.jsxs)("div",{className:"flex gap-4 flex-col  w-full",children:[(0,t.jsxs)("div",{className:"flex flex-col md:flex-row gap-4 w-full  items-center justify-center",children:[(0,t.jsxs)("div",{className:"col-span-1 bg-[#FBEDDF] w-[90%]  md:w-[500px]   h-[180px] py-8 p-4 rounded-2xl flex flex-col justify-between",children:[(0,t.jsx)("label",{className:"font-medium text-sm mb-1",children:"Contact Email*"}),(0,t.jsx)("input",{type:"email",...D.register("email"),placeholder:"[email protected]",className:"border border-gray-300 bg-white   rounded-md p-2 text-sm"}),(0,t.jsx)(S,{name:"email",form:D})]}),(0,t.jsxs)("div",{className:"col-span-1 bg-[#FBDFDF]  w-[90%]  md:w-[500px]   h-[180px]  py-8  p-4 rounded-2xl flex flex-col justify-between",children:[(0,t.jsx)("label",{className:"font-medium text-sm mb-1",children:"Phone number"}),(0,t.jsxs)("div",{className:"flex gap-2 flex-col w-full",children:[(0,t.jsx)("p",{className:"text-gray-500 text-xs",children:"Restaurant contact phone number"}),(0,t.jsx)("input",{type:"text",...D.register("phone"),placeholder:"phone no",className:"border border-gray-300   bg-white rounded-md p-2 text-sm"}),(0,t.jsx)(S,{name:"phone",form:D})]})]})]}),(0,t.jsxs)("div",{className:"flex gap-4 flex-col md:flex-row w-full  items-center justify-center",children:[(0,t.jsxs)("div",{className:"col-span-1 bg-[#FBEDDF]  w-[90%] md:w-[500px]   py-8   h-[180px] p-4 rounded-2xl flex flex-col justify-between",children:[(0,t.jsx)("label",{className:"font-medium text-sm mb-1",children:"Restaurant name*"}),(0,t.jsx)("input",{...D.register("restaurantName"),type:"text",placeholder:"Intersect by Lexus",className:"border border-gray-300  bg-white rounded-md p-2 text-sm"}),D.formState.errors.restaurantName&&(0,t.jsx)("p",{className:"text-red-500 text-sm mt-1 mb-2",children:D.formState.errors.restaurantName.message})]}),(0,t.jsxs)("div",{className:"col-span-1 bg-[#FBDFDF]  py-8   w-[90%] md:w-[500px]  h-[180px] p-4 rounded-2xl flex flex-col justify-between",children:[(0,t.jsx)("label",{className:"font-medium text-sm mb-1",children:"Menu URL"}),(0,t.jsx)("input",{type:"text",...D.register("menu"),placeholder:"https://discoverlexus.com/stories/intersect-by-lexus",className:"border border-gray-300  bg-white rounded-md p-2 text-sm"}),(0,t.jsx)(S,{name:"menu",form:D})]})]})]}),(0,t.jsxs)("div",{className:"max-w-5xl mx-auto py-6",children:[(0,t.jsx)("p",{className:"text-xl  mb-2 font-medium text-center md:text-left",children:"Digital Accounts Links"}),(0,t.jsx)(S,{name:"website",form:D}),(0,t.jsxs)("div",{className:"flex md:flex-row flex-col gap-4 mb-4 items-start justify-start ",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-4 w-full items-center",children:[(0,t.jsxs)("div",{className:"col-span-1 bg-[#FBEDDF] h-[250px] w-[90%] md:w-[250px] py-8 p-3 rounded-2xl flex flex-col justify-between",children:[(0,t.jsx)("label",{className:"font-medium text-sm mb-1",children:"Website"}),(0,t.jsx)("input",{type:"text",...D.register("website"),placeholder:"https",className:"border border-gray-300   bg-white rounded-md p-2 text-sm"})]}),(0,t.jsxs)("div",{className:"col-span-1 bg-[#FBDFDF] h-[150px] md:h-[200px] w-[90%] py-8  md:w-[250px] p-3 rounded-2xl flex flex-col justify-between",children:[(0,t.jsx)("label",{className:"font-medium text-sm mb-1",children:"TikTok"}),(0,t.jsx)("input",{...D.register("tiktok"),type:"text",placeholder:"https",className:"border border-gray-300  bg-white rounded-md p-2 text-sm"}),(0,t.jsx)(S,{name:"tiktok",form:D})]})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-4 w-full items-center",children:[(0,t.jsxs)("div",{className:"col-span-1 bg-[#FBDFDF] h-[150px] md:h-[200px] w-[90%] py-8 md:w-[250px] p-3 rounded-2xl flex flex-col justify-between",children:[(0,t.jsx)("label",{className:"font-medium text-sm mb-1",children:"WhatsApp Business"}),(0,t.jsx)("input",{...D.register("whatsapp"),type:"text",placeholder:"https",className:"border border-gray-300  bg-white rounded-md p-2 text-sm"}),D.formState.errors._form&&(0,t.jsx)("p",{className:"text-red-500 text-sm mt-1",children:D.formState.errors._form.message})]}),(0,t.jsxs)("div",{className:"col-span-1 bg-[#FBEDDF]  h-[150px] md:h-[250px] py-8 w-[90%]  md:w-[250px] p-3 rounded-2xl flex flex-col justify-between",children:[(0,t.jsx)("label",{className:"font-medium text-sm mb-1",children:"Youtube"}),(0,t.jsx)("input",{type:"text",...D.register("youtube"),placeholder:"https",className:"border border-gray-300   bg-white rounded-md p-2 text-sm"}),(0,t.jsx)(S,{name:"youtube",form:D})]})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-4 w-full items-center",children:[(0,t.jsxs)("div",{className:"col-span-1 bg-[#FBEDDF] h-[150px] md:h-[250px] w-[90%] py-8 md:w-[250px] py-8 p-3 rounded-2xl flex flex-col justify-between",children:[(0,t.jsx)("label",{className:"font-medium text-sm mb-1",children:"Instagram"}),(0,t.jsx)("input",{type:"text",...D.register("instagram"),placeholder:"https",className:"border border-gray-300   bg-white rounded-md p-2 text-sm"}),(0,t.jsx)(S,{name:"instagram",form:D})]}),(0,t.jsxs)("div",{className:"col-span-1 bg-[#FBDFDF] h-[150px] md:h-[200px] py-8  w-[90%]   md:w-[250px] p-3 rounded-2xl flex flex-col justify-between",children:[(0,t.jsx)("label",{className:"font-medium text-sm mb-1",children:"Linkedin"}),(0,t.jsx)("input",{type:"text",...D.register("linkedin"),placeholder:"https",className:"border border-gray-300   bg-white rounded-md p-2 text-sm"}),(0,t.jsx)(S,{name:"linkedin",form:D})]})]}),(0,t.jsx)("div",{className:"flex flex-col gap-4 w-full items-center",children:(0,t.jsxs)("div",{className:"col-span-1 bg-[#FBDFDF] h-[150px] md:h-[200px]  w-[90%] py-8  md:w-[250px] p-3 rounded-2xl flex flex-col justify-between",children:[(0,t.jsx)("label",{className:"font-medium text-sm mb-1",children:"Facebook"}),(0,t.jsx)("input",{type:"text",...D.register("facebook"),placeholder:"https",className:"border border-gray-300  bg-white rounded-md p-2 text-sm"}),(0,t.jsx)(S,{name:"facebook",form:D})]})})]}),(0,t.jsxs)("div",{className:"flex gap-4 flex-col items-center justify-center md:flex-row mb-4",children:[(0,t.jsxs)("div",{className:"col-span-1 bg-[#FBEDDF]  w-[90%] md:w-1/2  h-[180px]  py-8 p-4 rounded-2xl flex flex-col justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"font-medium text-sm mb-4",children:"Booking Reservation Link"}),(0,t.jsx)("p",{className:"text-[10px] text-[#9B9B9B]",children:"Enter link to booking page on your website, Seven Rooms or any other booking platform your restaurant uses. Leave blank if N/A."})]}),(0,t.jsx)("input",{type:"text",...D.register("bookingLink"),placeholder:"https",className:"border border-gray-300 bg-white  rounded-md p-2 text-sm"}),(0,t.jsx)(S,{name:"bookingLink",form:D}),"  "]}),(0,t.jsxs)("div",{className:"col-span-1 bg-[#FBDFDF]  w-[90%] md:w-1/2 h-[180px] py-8 p-4 rounded-2xl flex flex-col justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"font-medium text-sm mb-1",children:"Location"}),(0,t.jsx)("p",{className:"text-gray-500 text-[10px]",children:"Enter Google Map/Business link (if you have more than one branch, input your main/flagship location)"})]}),(0,t.jsxs)("div",{className:"flex gap-2 flex-col w-full",children:[(0,t.jsx)("input",{type:"text",...D.register("location"),placeholder:"https://discoverlexus.com/stories/intersect-by-lexus",className:"border border-gray-300   bg-white rounded-md p-2 text-sm"}),(0,t.jsx)(S,{name:"location",form:D})]})]})]}),(0,t.jsxs)("div",{className:" flex gap-4 flex-col md:flex-row items-center md:items-start justify-center  mb-4 ",children:[(0,t.jsxs)("div",{className:"flex flex-col h-[400px] gap-4  w-[90%] md:w-1/2 mb-4",children:[(0,t.jsxs)("div",{className:"col-span-1 bg-[#FBDFDF]  h-1/2 w-full p-3 py-8 rounded-2xl flex flex-col justify-between",children:[(0,t.jsx)("label",{className:"font-medium text-sm mb-1",children:"Select Emirate*"}),(0,t.jsxs)("select",{...D.register("emirate"),className:"border border-gray-300 bg-white rounded-md p-2 text-sm",children:[(0,t.jsx)("option",{value:"",children:"Select Emirate"}),(0,t.jsx)("option",{value:"Dubai",children:"Dubai"}),(0,t.jsx)("option",{value:"Abu Dhabi",children:"Abu Dhabi"}),(0,t.jsx)("option",{value:"Sharjah",children:"Sharjah"}),(0,t.jsx)("option",{value:"Ajman",children:"Ajman"}),(0,t.jsx)("option",{value:"Fujairah",children:"Fujairah"}),(0,t.jsx)("option",{value:"Ras Al Khaimah",children:"Ras Al Khaimah"}),(0,t.jsx)("option",{value:"Umm Al Quwain",children:"Umm Al Quwain"})]}),(0,t.jsx)(S,{name:"emirate",form:D})]}),"Dubai"==D.watch("emirate")&&(0,t.jsxs)("div",{className:"col-span-1 bg-[#FBEDDF] h-1/2    w-full p-3 py-8 rounded-2xl flex flex-col justify-between",children:[(0,t.jsx)("label",{className:"font-medium text-sm mb-1",children:"Dubai Area"}),"Dubai"==D.watch("emirate")&&D.formState.errors.cityArea&&(0,t.jsx)("p",{className:"text-red-500 text-sm mt-1 mb-2",children:D.formState.errors.cityArea.message}),(0,t.jsxs)("select",{name:"cityArea",...D.register("cityArea"),className:"border border-gray-300  bg-white rounded-md p-2 text-sm",children:[(0,t.jsx)("option",{value:"",children:"Select Area"}),(0,t.jsx)("option",{value:"Al Barsha",children:"Al Barsha"}),(0,t.jsx)("option",{value:"Barsha Heights",children:"Barsha Heights"}),(0,t.jsx)("option",{value:"Bluewaters",children:"Bluewaters"}),(0,t.jsx)("option",{value:"Business Bay",children:"Business Bay"}),(0,t.jsx)("option",{value:"Downtown Dubai",children:"Downtown Dubai"}),(0,t.jsx)("option",{value:"Dubai Design District",children:"Dubai Design District"}),(0,t.jsx)("option",{value:"Dubai Hills",children:"Dubai Hills"}),(0,t.jsx)("option",{value:"DIFC",children:"DIFC"}),(0,t.jsx)("option",{value:"Dubai Marina",children:"Dubai Marina"}),(0,t.jsx)("option",{value:"Dubai Media City",children:"Dubai Media City"}),(0,t.jsx)("option",{value:"Dubai Studio City",children:"Dubai Studio City"}),(0,t.jsx)("option",{value:"Garhoud",children:"Garhoud"}),(0,t.jsx)("option",{value:"Jumeirah",children:"Jumeirah"}),(0,t.jsx)("option",{value:"Jumeirah Beach Residence",children:"Jumeirah Beach Residence"}),(0,t.jsx)("option",{value:"Jumeirah Islands",children:"Jumeirah Islands"}),(0,t.jsx)("option",{value:"Jumeirah Lakes Towers",children:"Jumeirah Lakes Towers"}),(0,t.jsx)("option",{value:"Mirdif",children:"Mirdif"}),(0,t.jsx)("option",{value:"Oud Metha",children:"Oud Metha"}),(0,t.jsx)("option",{value:"Palm Jumeirah",children:"Palm Jumeirah"}),(0,t.jsx)("option",{value:"Sheikh Zayed Road",children:"Sheikh Zayed Road"}),(0,t.jsx)("option",{value:"Umm Suqeim",children:"Umm Suqeim"}),(0,t.jsx)("option",{value:"Other",children:"Other"})]})]})]}),(0,t.jsx)("div",{className:"col-span-1 bg-[#FBEDDF]  md:h-[400px]   w-[90%] md:w-1/2 p-6 py-8 rounded-2xl flex flex-col justify-between",children:(0,t.jsxs)("div",{className:"w-full  text-[#9B9B9B] rounded-xl",children:[(0,t.jsx)("p",{className:"text-md text-black font-medium mb-6",children:"Business Operating hours"}),(0,t.jsx)("div",{className:"flex flex-col gap-4 space-y-6 md:space-y-0 ",children:["monday","tuesday","wednesday","thursday","friday","saturday","
1sunday"].map((e,s)=>(0,t.jsxs)("div",{className:" flex md:grid grid-cols-4  space-y-2 md:space-y-0 flex-wrap  space-x-4 md:space-x-0 h-auto md:h-[25px] md:gap-0  md:grid-cols-[80px_auto_auto_auto_auto] items-center  text-[10px]",children:[(0,t.jsx)("p",{className:"font-medium text-[#9B9B9B]",children:e}),(0,t.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,t.jsx)("input",{type:"checkbox",id:"".concat(e,"-closed"),checked:D.watch("businessHours.".concat(e.toLowerCase(),".closed")),onChange:s=>{D.setValue("businessHours.".concat(e.toLowerCase(),".closed"),s.target.checked)},className:"accent-red-500"}),(0,t.jsx)("span",{className:"text-[10px]",children:"Closed"})]}),!D.watch("businessHours.".concat(e.toLowerCase(),".closed"))&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"text-[10px]",children:"Open:"}),(0,t.jsx)("input",{type:"time",id:"".concat(e,"-open"),placeholder:"_ _ : _ _",...D.register("businessHours.".concat(e.toLowerCase(),".open")),className:"w-24 px-2 py-1 text-[10px] border rounded-md bg-white"})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"text-[10px]",children:"Close:"}),(0,t.jsx)("input",{type:"time",id:"".concat(e,"-close"),placeholder:"_ _ : _ _",className:"w-24 px-2 py-1 border text-[10px] rounded-md bg-white",...D.register("businessHours.".concat(e.toLowerCase(),".close"))})]})," "]})]},s))})]})})]}),(0,t.jsx)("div",{className:"w-full flex w-full justify-center items-center",children:(0,t.jsxs)("div",{className:"flex bg-[#FBEDDF] py-4 h-[280px] md:h-[230px] px-4  w-[90%] md:w-full  flex-col justify-between rounded-xl mb-6",children:[(0,t.jsx)("p",{className:"font-medium mb-3",children:"Restaurant Features"}),(0,t.jsxs)("div",{className:"grid  md:grid-cols-2 gap-y-2 gap-x-8 text-gray-500",children:[(0,t.jsxs)("div",{className:"flex  space-x-2",children:[(0,t.jsx)("input",{type:"checkbox",id:"isLicensed",className:"accent-red-500 h-4 w-4",...D.register("isLicensed")}),(0,t.jsx)(S,{name:"isLicensed",form:D}),(0,t.jsx)("label",{htmlFor:"isLicensed",children:"Is licensed (i.e. serves alcohol)"})]}),(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,t.jsx)("input",{type:"checkbox",id:"hasValetParking",className:"accent-red-500 h-4 w-4",...D.register("hasValetParking")}),(0,t.jsx)("label",{htmlFor:"hasValetParking",children:"Valet parking available"})]}),(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,t.jsx)("input",{type:"checkbox",id:"allowsSmoking",className:"accent-red-500 h-4 w-4",...D.register("allowsSmoking")}),(0,t.jsx)("label",{htmlFor:"allowsSmoking",children:"Allows smoking"})]}),(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,t.jsx)("input",{type:"checkbox",id:"isKidsFriendly",className:"accent-red-500 h-4 w-4",...D.register("isKidsFriendly")}),(0,t.jsx)("label",{htmlFor:"isKidsFriendly",children:"Kids friendly"})]}),(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,t.jsx)("input",{type:"checkbox",id:"isPetsFriendly",className:"accent-red-500 h-4 w-4",...D.register("isPetsFriendly")}),(0,t.jsx)("label",{htmlFor:"isPetsFriendly",children:"Pets friendly"})]}),(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,t.jsx)("input",{type:"checkbox",id:"hasTakeaway",className:"accent-red-500 h-4 w-4",...D.register("hasTakeaway")}),(0,t.jsx)("label",{htmlFor:"hasTakeaway",children:"Take away"})]}),(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,t.jsx)("input",{type:"checkbox",id:"hasOutdoorDining",className:"accent-red-500 h-4 w-4",...D.register("hasOutdoorDining")}),(0,t.jsx)("label",{htmlFor:"hasOutdoorDining",children:"Has outdoor dining area"})]})]})]})})]}),(0,t.jsxs)("div",{className:"max-w-5xl mx-auto p-4",children:[(0,t.jsx)("h2",{className:"text-center text-5xl font-medium mb-6",children:"STEP 2 – MORE ABOUT YOUR RESTAURANT"}),(0,t.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 mb-6",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-4 justify-between h-[500px]",children:[(0,t.jsxs)("div",{className:"bg-[#FBEDDF] flex flex-col justify-between py-8 p-5 rounded-xl h-[70%]",children:[(0,t.jsx)("p",{className:"font-medium mb-3",children:"What type of cuisine do you serve (max.2)"}),D.formState.errors.cuisineType&&(0,t.jsx)("p",{className:"text-red-500 text-sm mt-1 mb-2",children:D.formState.errors.cuisineType.message}),(0,t.jsxs)("div",{className:"grid grid-cols-3 md:grid-cols-4 gap-2 text-[#9B9B9B] font-medium text-sm",children:[["American","Asian","British","Chinese","European","French","Greek","Indian","Italian","Japenese","Korean","Latin American","Lebanese","MENA","Mexican","Russian","Spanish","Thai"].map((e,s)=>{var a;return(0,t.jsxs)("label",{className:"flex items-center gap-2",children:[(0,t.jsx)("input",{type:"checkbox",id:"cuisine-".concat(e),value:e,className:"accent-red-500 h-4 w-4",checked:null==(a=D.watch("cuisineType"))?void 0:a.includes(e),onChange:s=>{let a=D.watch("cuisineType")||[];s.target.checked?a.length<2&&D.setValue("cuisineType",[...a,e]):D.setValue("cuisineType",a.filter(s=>s!==e))}}),e]},s)}),(0,t.jsxs)("label",{className:"flex items-center gap-2",children:[(0,t.jsx)("input",{type:"checkbox",id:"cuisine-Other",value:"Other",className:"accent-red-500 h-4 w-4",checked:null==(s=D.watch("cuisineType"))?void 0:s.some(e=>e.startsWith("Other:")),onChange:e=>{let s=D.watch("cuisineType")||[];e.target.checked?s.length<2&&D.setValue("cuisineType",[...s,"Other: "]):D.setValue("cuisineType",s.filter(e=>!e.startsWith("Other:")))}}),"Other"]}),(null==(a=D.watch("cuisineType"))?void 0:a.some(e=>e.startsWith("Other:")))&&(0,t.jsx)("div",{className:"col-span-4 mt-2",children:(0,t.jsx)("input",{placeholder:"Enter your cuisine type",className:"border border-gray-300  text-gray-500 bg-white rounded-md w-full p-2 text-sm",value:((null==(l=D.watch("cuisineType"))?void 0:l.find(e=>e.startsWith("Other:")))||"Other: ").substring(7),onChange:e=>{let s=(D.watch("cuisineType")||[]).filter(e=>!e.startsWith("Other:"));D.setValue("cuisineType",[...s,"Other: ".concat(e.target.value)])}})})]})]}),(0,t.jsxs)("div",{className:"bg-[#FBDFDF] h-[30%] py-8 p-5 rounded-xl",children:[(0,t.jsx)("p",{className:"font-medium  mb-3",children:"What is the average cost of a meal per person? (Optional)"}),(0,t.jsx)(d.xI,{control:D.control,name:"averageSpend",defaultValue:"100-500",render:e=>{let{field:s}=e,[a,l]=s.value.split("-").map(Number);return(0,t.jsxs)("div",{className:"w-full",children:[(0,t.jsxs)(m.bL,{className:"relative flex items-center select-none touch-none w-full h-5",value:[a,l],min:100,max:1e3,step:50,onValueChange:e=>s.onChange("".concat(e[0],"-").concat(e[1])),children:[(0,t.jsx)(m.CC,{className:"bg-gray-300 relative grow h-[4px] rounded-full",children:(0,t.jsx)(m.Q6,{className:"absolute bg-red-500 h-full rounded-full"})}),(0,t.jsx)(m.zi,{className:"block w-4 h-4 bg-white border-2 border-red-500 rounded-full"}),(0,t.jsx)(m.zi,{className:"block w-4 h-4 bg-white border-2 border-red-500 rounded-full"})]}),(0,t.jsxs)("div",{className:"flex justify-between text-sm text-gray-500 mt-2",children:[(0,t.jsxs)("span",{children:["Dhs ",a]}),(0,t.jsxs)("span",{children:["Dhs ",l]})]})]})}})]})]}),(0,t.jsxs)("div",{className:"bg-[#FBDFDF] h-[500px] flex flex-col justify-between py-8 p-5 rounded-xl",children:[(0,t.jsx)("p",{className:"font-medium  mb-3",children:"What best describes your restaurant (max.4)*"}),D.formState.errors.restaurantType&&(0,t.jsx)("p",{className:"text-red-500 text-sm mt-1 mb-2",children:D.formState.errors.restaurantType.message}),(0,t.jsx)("div",{className:"grid grid-cols-2 text-[#9B9B9B] font-medium gap-2 text-sm",children:["Afternoon Tea","\xc0 La Carte Brunch","Buffet Brunch","Bar Food","Breakfast","Budget","Burger","Caf\xe9","Dessert","Pizzeria","Pub Food","Seafood","Steakhouse","Fine dining","Live entertainment","Plant based / Vegan","Bar","Beach club","Bakery / Pastry","Food truck","Sushi","Sandwiches","Takeaway"].map((e,s)=>{var a;return(0,t.jsxs)("label",{className:"flex items-center gap-2",children:[(0,t.jsx)("input",{type:"checkbox",id:"type-".concat(e),value:e,checked:null==(a=D.watch("restaurantType"))?void 0:a.includes(e),onChange:s=>{let a=D.watch("restaurantType")||[];s.target.checked?a.length<4&&D.setValue("restaurantType",[...a,e]):D.setValue("restaurantType",a.filter(s=>s!==e))},className:"accent-red-500     h-4 w-4"}),e]},s)})})]})]}),(0,t.jsxs)("div",{className:"bg-[#FBDFDF] h-[250px]  flex flex-col justify-between  py-8 p-5 rounded-xl mb-6",children:[(0,t.jsx)("p",{className:"font-medium mb-3",children:"Describe your restaurant"}),(0,t.jsx)("textarea",{...D.register("description"),rows:4,placeholder:"Write here...",className:"w-full border p-3 resize-none rounded-md bg-white"}),D.formState.errors.description&&(0,t.jsx)("p",{className:"text-red-500 text-sm mt-1",children:D.formState.errors.description.message})]}),(0,t.jsxs)("div",{className:"bg-[#FBEDDF] flex flex-col justify-between px-6  md:h-[450px] py-8 rounded-xl mb-6",children:[(0,t.jsx)("p",{className:"font-medium mb-3",children:"Pick the words that describe your restaurant's personality/vibe"}),(0,t.jsx)("div",{className:"text-[#9B9B9B] font-medium flex flex-col gap-2",children:["Formal & Elegant:","Casual & Friendly:","Bold & Playful:"].map((e,s)=>(0,t.jsxs)("div",{className:"my-4 flex flex-col gap-2",children:[(0,t.jsx)("p",{className:"text-sm mb-2 text-black",children:e}),(0,t.jsx)("div",{className:"grid grid-cols-2 md:flex gap-4 text-sm",children:g.slice(8*s,8*s+8).map((e,s)=>{var a;return(0,t.jsxs)("label",{className:"flex items-center gap-2",children:[(0,t.jsx)("input",{type:"checkbox",id:"vibe-".concat(e),value:e,checked:null==(a=D.watch("personalityVibe"))?void 0:a.includes(e),onChange:s=>{let a=D.watch("personalityVibe")||[];s.target.checked?D.setValue("personalityVibe",[...a,e]):D.setValue("personalityVibe",a.filter(s=>s!==e))},className:"accent-red-500 h-4 w-4"}),e,(0,t.jsx)(S,{name:"personalityVibe",form:D})]},s)})})]},s))})]}),(0,t.jsxs)("div",{className:"flex justify-center w-full mt-8",children:[(0,t.jsx)("button",{className:"px-6 py-2 bg-[#EE3A3D] w-full text-white rounded hover:bg-red-500 cursor-pointer",children:"Save Review and Continue"}),(0,t.jsx)(u.l$,{position:"bottom-right",toastOptions:{style:{background:"#333",color:"#fff",borderRadius:"8px",padding:"12px 16px",fontSize:"14px"}}})]})]})]})]}),(0,t.jsx)("div",{className:"block md:hidden "})]})})})},j=()=>{let[e,s]=(0,c.useState)(null),{GET_RESTAURANT_DATA:a}=(0,y.g)(),l=async()=>{let e=await a(h.A.OTHER.RESTAURANT);if(null===e){s([]),console.log("Something went wrong while fetching restaurant");return}if(0===e.length){s([]),console.log("No restaurant data found – show empty form");return}s(e),console.log("fetch restaurant",e)};return(0,c.useEffect)(()=>
1{l()},[]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"h-auto md:h-[90vh] w-full bg-cover relative overflow-hidden",style:{backgroundImage:"url(/assets/dashboard/raw.png)"},children:[(0,t.jsx)(n.A,{}),(0,t.jsx)(r,{image:"/assets/dashboardinfo/vector-info.svg",btn2:" bg-[#FFFFFF] hover:bg-zinc-100 !text-black"})]}),(0,t.jsx)(g,{fetch:e}),(0,t.jsx)(o.A,{})]})}},4052:(e,s,a)=>{a.d(s,{A:()=>o});var t=a(3798),l=a(1462),i=a(9214),r=a.n(i),n=a(5938);function o(e){let{isOpen:s}=e,[a,i]=(0,l.useState)(0),[o,c]=(0,l.useState)(!1),[d,m]=(0,l.useState)(!1),u=(0,l.useRef)();return((0,l.useEffect)(()=>{if(!s)return;m(!0),i(0);let e=setInterval(()=>{i(s=>s>=100?(c(!0),clearInterval(e),100):s+1)},30);return()=>clearInterval(e)},[s]),(0,l.useEffect)(()=>{u&&(n.Ay.timeline(),n.Ay.to(u.current,{y:"-=10",duration:1,repeat:-1,opacity:1,yoyo:!0,ease:"power1.inOut"}))},[s]),d)?(0,t.jsxs)("div",{className:"fixed inset-0  h-screen w-full flex flex-col justify-center items-center z-[999999] bg-cover \n        transition-opacity duration-300 \n      ".concat(s?"opcity-100":"opacity-0 hidden"),style:{background:"url(/assets/dashboard/raw.png)"},children:[(0,t.jsx)("div",{className:"block absolute h-full w-full inset-0  ",children:(0,t.jsx)(r(),{src:"/assets/home/Vector.webp",alt:"section1",ref:u,width:1900,height:800,className:"object-contain trnasform  h-full w-full translate-y-40 md:translate-y-10"})}),(0,t.jsx)("div",{className:"bg-white relative z-20 rounded-2xl shadow-lg p-6 text-center",children:(0,t.jsxs)("div",{className:"relative w-20 h-20 mx-auto flex justify-center items-center",children:[(0,t.jsx)("div",{className:"absolute w-20 h-20 rounded-full border-4 border-[#eaa8a8] border-t-[#ff6347] animate-spin"}),(0,t.jsxs)("span",{className:"relative text-sm font-medium",children:[a,"%"]})]})}),(0,t.jsx)("p",{className:"mt-4 text-3xl font-bold  tracking-wide",style:{fontFamily:"Subscribe"},children:"LOADING"})]}):null}}}]);

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.