1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[666],{5695:(e,a,t)=>{t.d(a,{g:()=>l});var s=t(2916),r=t(5985),n=t(1462);t(7405);var c=t(7005);let l=()=>{let e=(()=>{let{getToken:e}=(0,s.d)();return(0,n.useMemo)(()=>{let a=r.A.create({baseURL:"https://rciw6ceph0.execute-api.eu-central-1.amazonaws.com",timeout:6e5,headers:{Accept:"application/json","Content-Type":"application/json"}});return a.interceptors.request.use(async a=>{let t=await e();return t&&(a.headers.Authorization="Bearer ".concat(t)),a.data instanceof FormData?delete a.headers["Content-Type"]:a.headers["Content-Type"]="application/json",a}),a},[e])})(),{isSignedIn:a}=(0,c.Jd)();return{addorUpdateprs:async(t,s,r)=>{if(a)try{let a=await e.put("".concat(t,"/").concat(r),s);if(a.data)return console.log("prs added",a.data),a.data}catch(e){console.error("Error:",e)}},DeleteImage:async(a,t)=>{try{let s=await e.delete("".concat(a,"/").concat(t,"/image"));if(s.data)return console.log("prs deleted",s.data),s.data}catch(e){console.error("Error:",e)}},uploadPrImage:async(a,t)=>{try{let s=await e.delete("".concat(a,"/").concat(t,"/image"));if(s.data)return console.log("prs deleted",s.data),s.data}catch(e){console.error("Error:",e)}},Preview:async(a,t)=>{try{let s=await e.get("".concat(a,"/").concat(t,"/preview"));if(s.data)return console.log("prs preview",s.data),s.data}catch(e){console.error("Error:",e)}},getPrs:async a=>{try{let t=await e.get("".concat(a));if(t.data)return t.data}catch(e){console.error("Error:",e)}},GETDATA:async t=>{if(a)try{let a=await e.get("".concat(t));if(a.data)return a.data}catch(e){console.error("Error:",e)}},UpdateImage:async(a,t,s)=>(await e.put("".concat(a,"/").concat(s,"/image"),t)).data,fetchbyId:async(a,t)=>{try{let s=await e.get("".concat(a,"/").concat(t));if(s.data)return s.data}catch(e){console.error("Error:",e)}},Delete:async(a,t)=>{try{let s=await e.delete("".concat(a,"/").concat(t));if(s.data)return s.data}catch(e){throw console.error("Error:",e),e}},GET_RESTAURANT_DATA:async a=>{var t,s;try{let s=await e.get(a);return null!=(t=null==s?void 0:s.data)?t:[]}catch(e){if((null==e||null==(s=e.response)?void 0:s.status)===404)return console.warn("Restaurant data not found (404)"),[];return console.error("API error:",e),null}},Restaurantinfo:async(a,t)=>{try{return(await e.put("".concat(a),t)).data}catch(e){console.log("Error:",e)}},sendPr:async(a,t)=>{try{let s=await e.post("".concat(a,"/").concat(t));if(s)return console.log("pr send ",s),s}catch(e){throw console.error("Error:",e),e}},generate:async(t,s)=>{if(a)try{let a=await e.post("".concat(t),s);if(a.data)return console.log("prs added",a.data),a.data}catch(e){console.error("Error:",e)}}}}},6426:(e,a,t)=>{t.d(a,{A:()=>E});var s=t(3798),r=t(1462),n=t(5938),c=t(7405),l=t(8149),i=t.n(l),o=t(5695),d=t(3987),x=t(7005),h=t(9214),m=t.n(h),p=t(6042),u=t(4208),g=t(6630),f=t(8690),w=t(9137),j=t(5238),y=t(6049),b=t(749),N=t(3849),v=t(9375);let E=e=>{let{sendRelease:a}=e,[t,l]=(0,r.useState)(!1),[h,E]=(0,r.useState)(!1),[A,k]=(0,r.useState)(0),[T,R]=(0,r.useState)(0),{GETDATA:S}=(0,o.g)(),{isSignedIn:C,isLoaded:I}=(0,x.Jd)(),D=(0,d.usePathname)(),F="/"===D,z=async()=>{if(C)try{let e=await S(c.A.OTHER.SEND_CREDITS);e&&R(e)}catch(e){console.error("Failed to send credits:",e)}},_=async()=>{if(C)try{let e=await S(c.A.OTHER.GENERATE_CREDITS);if(e)return k(e),e}catch(e){console.error("Failed to get credits:",e)}};(0,r.useEffect)(()=>{I&&C&&(_(),z())},[I,C,D,a]),(0,r.useEffect)(()=>{a&&C&&z()},[a]),(0,r.useEffect)(()=>{let e=()=>{window.scrollY>10?l(!0):l(!1)};return window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)},[]);let P=[{name:"Dashboard",path:"/dashboard-dashboard"},{name:"Restaurant Info",path:"/restaurant"},{name:"Create",path:"/create"}],G=(0,r.useRef)(null);return(0,r.useEffect)(()=>{if(h&&G.current){let e=G.current.querySelectorAll(".menu-item");n.Ay.fromTo(e,{x:30,opacity:0},{x:0,opacity:1,duration:.6,stagger:.08,ease:"power3.out",delay:.3})}},[h]),(0,s.jsx)("header",{className:"top-0 z-50 left-0 w-full pt-2 pb-4 md:py-2 transition-all duration-300\n bg-transparent",children:(0,s.jsxs)("div",{className:"container mx-auto h-full w-[80%]",children:[(0,s.jsxs)("div",{className:"flex items-center h-full w-full justify-between",children:[(0,s.jsx)("div",{className:"flex-shrink-0 w-[50%] sm:w-[40%] md:w-[20%] h-[50px]",children:(0,s.jsx)(i(),{href:"/",children:(0,s.jsx)(m(),{src:"/assets/home/r-logo.svg",height:100,width:140,priority:!0,className:"object-cover"})})}),(0,s.jsxs)("nav",{className:"hidden md:flex items-center justify-end w-[60%] space-x-4",children:[C&&!F&&(0,s.jsxs)("div",{className:"flex items-center gap-2 text-black px-5 py-2 rounded-xl mr-4",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(p.A,{className:"w-5 h-5"}),(0,s.jsx)("span",{className:"font-medium",children:A})]}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(u.A,{className:"w-5 h-5"}),(0,s.jsx)("span",{className:"font-medium",children:T})]}),(0,s.jsxs)("div",{className:"relative group cursor-pointer",children:[(0,s.jsx)(g.A,{className:"w-5 h-5"}),(0,s.jsxs)("div",{className:"absolute right-0 top-full mt-4 w-max bg-[#fcd8d8] p-4 rounded-xl shadow-lg op
1acity-0 invisible group-hover:opacity-100 group-hover:visible transition-all duration-300 z-50 text-[#1a1a1a]",children:[(0,s.jsx)("div",{className:"absolute -top-2 right-1 w-4 h-4 bg-[#fcd8d8] rotate-45"}),(0,s.jsxs)("div",{className:"relative z-10",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-2 mb-2",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(p.A,{className:"w-4 h-4"}),(0,s.jsxs)("span",{className:"font-medium text-sm",children:[A," generation credits"]})]}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(u.A,{className:"w-4 h-4"}),(0,s.jsxs)("span",{className:"font-medium text-sm",children:[T," send credits"]})]})]}),(0,s.jsxs)("div",{className:"text-xs mt-2 max-w-64 space-y-2",children:[(0,s.jsx)("p",{className:"font-bold",children:"Credits work on a rolling schedule."}),(0,s.jsx)("p",{children:"Generation credits renew daily and sending credits renew monthly."}),(0,s.jsx)("p",{children:"Example: a sending credit used on the 15th becomes available again on the 15th of next month while your subscription is active."})]})]})]})]})]}),C&&P.map(e=>(0,s.jsx)("div",{className:"hover:text-gray-700 font-medium uppercase cursor-pointer transition-colors duration-200",children:(0,s.jsx)(i(),{href:e.path,children:e.name})},e.name)),(0,s.jsxs)("div",{className:"hidden md:flex gap-2 ",children:[C&&(0,s.jsxs)("div",{className:"w-[70px] h-[40px] flex items-center relative",children:[" ",(0,s.jsx)(x.uF,{})]}),!C&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(x.hZ,{children:(0,s.jsx)("button",{className:"bg-white-600 hover:bg-zinc-100 cursor-pointer border text-black px-6 py-2 rounded-md font-medium transition-colors duration-200",children:"Login"})}),(0,s.jsx)(x.Ny,{children:(0,s.jsx)("button",{className:"bg-[#000000] hover:bg-zinc-500 cursor-pointer text-white px-6 py-2 rounded-md font-medium transition-colors duration-200",children:"Signup"})})]})]})]}),(0,s.jsx)("div",{className:"md:hidden flex items-center gap-4",children:(0,s.jsx)("button",{onClick:()=>E(!h),className:"p-2 text-gray-700 hover:bg-gray-100 rounded-full transition-all duration-300 active:scale-95 relative z-100001","aria-label":"Toggle Menu",children:h?(0,s.jsx)(f.A,{className:"w-6 h-6"}):(0,s.jsx)(w.A,{className:"w-6 h-6"})})})]}),(0,s.jsxs)("div",{className:"md:hidden fixed inset-0 z-100000 transition-all duration-500 ease-in-out ".concat(h?"opacity-100 pointer-events-auto":"opacity-0 pointer-events-none"),children:[(0,s.jsx)("div",{className:"absolute inset-0 bg-white/80 backdrop-blur-xl transition-opacity duration-500 ".concat(h?"opacity-100":"opacity-0"),onClick:()=>E(!1)}),(0,s.jsxs)("div",{ref:G,className:"absolute top-0 right-0 h-full w-[85%] max-w-sm bg-white shadow-2xl transform transition-transform duration-500 cubic-bezier(0.16, 1, 0.3, 1) ".concat(h?"translate-x-0":"translate-x-full"," flex flex-col p-8"),children:[(0,s.jsx)("div",{className:"mb-10 pt-4 flex justify-between items-center menu-item",children:(0,s.jsx)(i(),{href:"/",onClick:()=>E(!1),children:(0,s.jsx)(m(),{src:"/assets/home/r-logo.svg",height:40,width:100,priority:!0,className:"object-contain"})})}),(0,s.jsxs)("div",{className:"flex flex-col space-y-2 mb-8",children:[(0,s.jsx)("p",{className:"text-[10px] font-bold uppercase tracking-wider text-gray-400 mb-2 menu-item",children:"Main Menu"}),(0,s.jsxs)(i(),{href:"/",className:"flex items-center gap-4 px-4 py-4 rounded-2xl transition-all duration-200 menu-item ".concat("/"===D?"bg-black text-white shadow-lg":"text-gray-600 hover:bg-gray-100"),onClick:()=>E(!1),children:[(0,s.jsx)(j.A,{className:"w-5 h-5 ".concat("/"===D?"text-white":"text-gray-400")}),(0,s.jsx)("span",{className:"font-semibold text-lg",children:"Home"})]}),C&&P.map(e=>{let a="Dashboard"===e.name?y.A:"Restaurant Info"===e.name?b.A:"New"===e.name?N.A:v.A;return(0,s.jsxs)(i(),{href:e.path,className:"flex items-center gap-4 px-4 py-4 rounded-2xl transition-all duration-200 menu-item ".concat(D===e.path?"bg-black text-white shadow-lg":"text-gray-600 hover:bg-gray-100"),onClick:()=>E(!1),children:[(0,s.jsx)(a,{className:"w-5 h-5 ".concat(D===e.path?"text-white":"text-gray-400")}),(0,s.jsx)("span",{className:"font-semibold text-lg",children:e.name})]},e.name)})]}),(0,s.jsx)("div",{className:"mt-auto pt-8 border-t border-gray-100 menu-item",children:C?(0,s.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,s.jsx)("div",{className:"flex items-center justify-between bg-gray-50 p-4 rounded-2xl",children:(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)(x.uF,{}),(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsx)("span",{className:"text-sm font-bold text-gray-900",children:"My A
1ccount"}),(0,s.jsx)("span",{className:"text-[10px] text-gray-500",children:"Manage profile"})]})]})}),!F&&(0,s.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,s.jsxs)("div",{className:"bg-gray-50 p-4 rounded-2xl flex flex-col gap-1 items-center justify-center",children:[(0,s.jsx)(p.A,{className:"w-5 h-5 text-gray-400"}),(0,s.jsx)("span",{className:"text-lg font-bold text-gray-900",children:A}),(0,s.jsx)("span",{className:"text-[10px] uppercase font-bold text-gray-500 tracking-tight",children:"Generation"})]}),(0,s.jsxs)("div",{className:"bg-gray-50 p-4 rounded-2xl flex flex-col gap-1 items-center justify-center",children:[(0,s.jsx)(u.A,{className:"w-5 h-5 text-gray-400"}),(0,s.jsx)("span",{className:"text-lg font-bold text-gray-900",children:T}),(0,s.jsx)("span",{className:"text-[10px] uppercase font-bold text-gray-500 tracking-tight",children:"Sending"})]})]})]}):(0,s.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,s.jsx)(x.hZ,{children:(0,s.jsx)("button",{onClick:()=>E(!1),className:"w-full bg-white border-2 border-black text-black font-bold px-6 py-4 rounded-2xl hover:bg-gray-50 transition-colors",children:"Login"})}),(0,s.jsx)(x.Ny,{children:(0,s.jsx)("button",{onClick:()=>E(!1),className:"w-full bg-black text-white font-bold px-6 py-4 rounded-2xl shadow-xl shadow-black/20 hover:bg-zinc-800 transition-colors",children:"Create Account"})})]})}),(0,s.jsx)("div",{className:"mt-8 text-center px-4 menu-item",children:(0,s.jsx)("p",{className:"text-[10px] text-gray-400 font-medium",children:"\xa9 2025 ITS-RAW. All rights reserved."})})]})]})]})})}},7405:(e,a,t)=>{t.d(a,{A:()=>s});let s={AUTH:{},OTHER:{RESTAURANT:"/api/restaurants",PRS:"/api/prs",GENERATE:"/api/generate",GENERATE_CREDITS:"/api/generate/credits",SEND_CREDITS:"/api/prs/send/credits",SEND_PRS:"api/prs/send"}}},8417:(e,a,t)=>{t.d(a,{A:()=>i});var s=t(3798),r=t(8149),n=t.n(r),c=t(9214),l=t.n(c);let i=()=>(0,s.jsxs)("footer",{className:"w-full bg-black text-white pt-10 pb-4 px-4 flex flex-col items-center justify-center",style:{borderTopRightRadius:"60px",borderTopLeftRadius:"60px"},children:[(0,s.jsxs)("div",{className:"text-center ",children:[(0,s.jsxs)("div",{className:"w-[250px] h-[100px]",children:[(0,s.jsx)(l(),{src:"/assets/home/footerlogo.webp",width:300,height:200,className:"object-cover"})," "]})," "]}),(0,s.jsxs)("p",{className:"mt-2 text-center text-[15px] md:text-[20px] max-w-2xl mx-auto",children:["Wow, you really like to read every word on the menu? ",(0,s.jsx)("br",{}),"Hurry up and place your order, weâve got other guests waiting."]}),(0,s.jsxs)("div",{className:"w-full flex flex-col items-center justify-center",children:[(0,s.jsxs)("div",{className:"flex justify-center space-x-2 py-4",children:[(0,s.jsx)(n(),{href:"https://www.instagram.com/itsraw.ai/","aria-label":"Instagram",children:(0,s.jsx)("div",{className:" rounded-md ",children:(0,s.jsx)(l(),{src:"/assets/home/instagram.svg",width:30,height:30})})}),(0,s.jsx)(n(),{href:"https://www.linkedin.com/company/itsraw-ai","aria-label":"LinkedIn",children:(0,s.jsx)("div",{className:" rounded-md ",children:(0,s.jsx)(l(),{src:"/assets/home/linkedin.svg",width:30,height:30})})}),(0,s.jsx)(n(),{href:"https://www.instagram.com/itsraw.ai/","aria-label":"Facebook",children:(0,s.jsxs)("div",{className:" rounded-md",children:[(0,s.jsx)(l(),{src:"/assets/home/facebook.svg",width:30,height:30})," "]})}),(0,s.jsx)(n(),{href:"https://www.youtube.com/@ItsRawAI ","aria-label":"youtube",children:(0,s.jsxs)("div",{className:" rounded-md ",children:[(0,s.jsx)(l(),{src:"/assets/home/youtube.svg",width:30,height:30})," "]})})]}),(0,s.jsx)("hr",{className:"w-[80%] border-1 bg-[#FFFFFF]"})]}),(0,s.jsxs)("div",{className:"flex justify-center md:items-center md:space-x-8 text-[15px] md:text-[20px] mt-6",children:[(0,s.jsx)(n(),{href:"/privacy-policy",className:"m-0",style:{whiteSpace:"nowrap"},children:"Privacy Policy"}),(0,s.jsx)("span",{className:"w-[1px] h-8 bg-white mx-4"}),(0,s.jsx)(n(),{href:"/terms",style:{whiteSpace:"nowrap"},children:"Terms of Service"})]})]})}}]);
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.