(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1931],{63190:function(e,t,r){Promise.resolve().then(r.bind(r,51561)),Promise.resolve().then(r.bind(r,39376)),Promise.resolve().then(r.bind(r,66990)),Promise.resolve().then(r.bind(r,84221)),Promise.resolve().then(r.bind(r,94474)),Promise.resolve().then(r.bind(r,11812)),Promise.resolve().then(r.bind(r,37458)),Promise.resolve().then(r.bind(r,5594)),Promise.resolve().then(r.bind(r,59427)),Promise.resolve().then(r.bind(r,27196)),Promise.resolve().then(r.t.bind(r,38173,23)),Promise.resolve().then(r.t.bind(r,231,23)),Promise.resolve().then(r.bind(r,21932))},43261:function(e,t,r){"use strict";r.d(t,{Z:function(){return d}});var a=r(57437),n=r(66648);let s=r(20357).env.BASE_PATH;var i=e=>{let{src:t,...r}=e;return(0,a.jsx)(n.default,{src:"".concat(s||"").concat(t),...r})},l=r(31321),o=r(34061),d=e=>{let{item:t,onClick:r}=e;return(0,a.jsx)("div",{className:"group relative max-w-[544px] p-4 md:w-1/2",children:(0,a.jsxs)(l.E.div,{onClick:()=>{r(t)},className:"h-full cursor-pointer overflow-hidden rounded-md border-2 border-gray-200 border-opacity-60 transition-all duration-300 ease-in group-hover:border-blue-500 dark:border-gray-700 dark:group-hover:border-green-500",initial:"hidden",transition:{duration:1,delay:.5},variants:{hidden:{opacity:0,y:-20},visible:{opacity:1,y:0}},viewport:{once:!0},whileInView:"visible",children:[(0,a.jsx)(i,{alt:null==t?void 0:t.title,src:"/static/images/portfolio/".concat(null==t?void 0:t.imageHref),className:"object-cover object-center group-hover:grayscale-[60%] md:h-36 lg:h-48",width:544,height:306}),(0,a.jsxs)("div",{className:"p-6",children:[(0,a.jsxs)("div",{className:"mb-1 flex items-center justify-between",children:[(null==t?void 0:t.catSlug)&&(0,a.jsx)("h6",{className:"text-xs/5 font-bold uppercase text-pink-500 group-hover:text-purple-500 dark:text-purple-400 dark:group-hover:text-pink-400 lg:text-sm/6",children:null==t?void 0:t.catSlug}),(null==t?void 0:t.views)&&(0,a.jsxs)("div",{className:"inline-flex items-center justify-center gap-2",children:[(0,a.jsx)("span",{className:"text-neutral-600 dark:text-neutral-400",children:(0,a.jsx)(o.NjZ,{})}),(0,a.jsx)("span",{className:"text-xs/5 font-semibold text-neutral-600 dark:text-neutral-400 lg:text-sm/6",children:null==t?void 0:t.views})]})]}),(0,a.jsx)("h2",{className:"mb-3 text-2xl font-bold leading-8 tracking-tight text-neutral-800 group-hover:text-blue-400 dark:text-white dark:group-hover:text-primary-400",children:null==t?void 0:t.title}),(0,a.jsx)("p",{className:"prose mb-3 max-w-none dark:prose-invert group-hover:text-blue-500 dark:group-hover:text-primary-300",children:null==t?void 0:t.description})]})]})})}},51561:function(e,t,r){"use strict";r.d(t,{default:function(){return c}});var a=r(57437),n=r(66648),s=r(2265),i=r(98942),l=r(88040),o=[{id:"tabOne",tabTitle:"Interface",title:"kunwarpratap.dev Has Clean User Interface",desc1:"kunwarpratap.dev offers an intuitive layout, ensuring users can effortlessly find the information they need with minimal clicks.",desc2:"The website features a sleek and contemporary design, making it visually appealing while maintaining functionality and ease of use.",image:"/static/images/website/portfolio-light.png",imageDark:"/static/images/website/portfolio-dark.png"},{id:"tabTwo",tabTitle:"Technologies",title:"kunwarpratap.dev uses MERN Stack Technology",desc1:"Powered by the MERN stack, kunwarpratap.dev ensures a seamless and high-performing user experience with efficient backend and frontend integration.",desc2:" Utilizing MongoDB, Next.js, React, TypeScript, Tailwind, Framer Motion, NextUI, Firebase, NextAuth, and Prisma ORM, the site leverages the latest in web technology to deliver a dynamic and responsive interface.",image:"/static/images/website/portfolio-light.png",imageDark:"/static/images/website/portfolio-dark.png"},{id:"tabThree",tabTitle:"Integrations",title:"Powerful Authentication, Database, and Many More",desc1:"Advanced authentication mechanisms ensure that your data remains secure and protected against unauthorized access.",desc2:"Featuring powerful database management, seamless authentication, and a range of other functionalities, kunwarpratap.dev offers a complete solution for modern web applications.",image:"/static/images/website/portfolio-light.png",imageDark:"/static/images/website/portfolio-dark.png"}],d=r(98591),c=()=>{let[e,t]=(0,s.useState)(!1);return((0,s.useEffect)(()=>{t(!0)},[]),e)?(0,a.jsx)("section",{className:"pb-20 lg:pb-24 xl:pb-28",children:(0,a.jsx)("div",{className:"flex w-full flex-col",children:(0,a.jsxs)(i.v0,{children:[(0,a.jsx)(i.td,{className:"flex space-x-0 rounded-md bg-gray-100 shadow-sm shadow-gray-400/30 dark:bg-zinc-800 dark:shadow-none",children:o.map(e=>(0,a.jsx)(i.OK,{as:s.Fragment,children:t=>{let{hover:r,selected:n}=t;return(0,a.jsx)("button",{className:(0,d.Z)("relative w-1/3 rounded-md border-none px-3 py-2 text-xs font-medium text-gray-800 outline-none ring-0 focus:border-none focus:outline-none focus:ring-0 dark:text-gray-300 xsm:text-sm md:text-base",r&&!n&&"hover:text-blue-500 dark:hover:text-green-500",n&&"bg-gray-900 text-neutral-100 dark:bg-green-500 dark:text-neutral-900"),children:e.tabTitle})}},e.id))}),(0,a.jsx)(i.nP,{className:"mt-10 lg:mt-16",children:o.map(e=>(0,a.jsx)(i.x4,{children:(0,a.jsx)(l.u,{appear:!0,show:!0,enter:"transition-opacity duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"transition-opacity duration-300",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,a.jsx)("div",{className:"border-none bg-transparent",children:(0,a.jsxs)("div",{className:"flex items-center gap-8 lg:gap-20",children:[(0,a.jsxs)("div",{className:"md:w-1/2",children:[(0,a.jsx)("h2",{className:"mb-7 font-fontMono text-xl font-bold text-black dark:text-white sm:text-2xl slg:text-3xl xl:text-4xl",children:e.title}),(0,a.jsx)("p",{className:"prose mb-5 text-sm dark:prose-invert sm:text-base",children:e.desc1}),(0,a.jsx)("p",{className:"prose w-11/12 text-sm dark:prose-invert sm:text-base",children:e.desc2})]}),(0,a.jsxs)("div",{className:"relative mx-auto hidden aspect-[562/366] max-w-[550px] md:block md:w-1/2",children:[(0,a.jsx)(n.default,{fill:!0,alt:e.title,className:"dark:hidden",src:e.image}),(0,a.jsx)(n.default,{fill:!0,alt:e.title,className:"hidden dark:block",src:e.imageDark})]})]})})})},e.id))})]})})}):null}},39376:function(e,t,r){"use strict";r.d(t,{default:function(){return v}});var a=r(57437),n=r(98942),s=r(88040),i=r(98591),l=r(80473),o=r(2265),d=r(88660),c=r(80765),u=r(87138),m=r(44450),x=r.n(m);function h(){return(0,a.jsx)(c.z,{as:o.Fragment,children:e=>{let{hover:t,active:r}=e;return(0,a.jsx)(u.default,{href:x().github,target:"_blank",rel:"external noopener",className:(0,i.Z)("rounded-md border-2 border-gray-200 px-6 py-2 text-sm font-medium text-neutral-700 transition-all duration-300 ease-in-out dark:border-gray-700 dark:text-neutral-100",!t&&!r&&"bg-transparent dark:bg-transparent",t&&!r&&"hover:border-blue-500 hover:text-blue-500 dark:hover:border-green-500 dark:hover:text-green-500",r&&"active:border-blue-700 active:text-blue-700 dark:active:border-green-700 dark:active:text-green-700"),children:"GitHub Profile"})}})}var g=r(84221),p=r(59427),b=e=>{let{headerInfo:t}=e,{title:r,subtitle:n,description:s}=t;return(0,a.jsx)(g.default,{children:(0,a.jsxs)("div",{className:"mx-auto cursor-default text-center",children:[(0,a.jsx)("span",{className:"mb-3 me-2 inline-block rounded-full bg-green-100 px-2.5 py-0.5 text-xs font-medium text-green-800 dark:bg-yellow-900 dark:text-yellow-300 lg:text-sm",children:r}),(0,a.jsx)("h2",{className:"mx-auto mb-4 w-full font-fontMono text-2xl font-bold text-black dark:text-white sm:text-3xl md:w-4/5 md:text-3xl xl:w-2/3 xl:text-4xl",children:n}),(0,a.jsx)("div",{className:"mx-auto md:w-4/5 lg:w-3/5 xl:w-[60%]",children:(0,a.jsx)(p.default,{words:s,className:"prose dark:prose-invert"})})]})})};let f=[2024,2023,2022];function v(){let{theme:e}=(0,l.F)(),[t,r]=(0,o.useState)(!1),[c,u]=(0,o.useState)(2024),[m,x]=(0,o.useState)(14);return((0,o.useEffect)(()=>{r(!0)},[]),(0,o.useEffect)(()=>{let e=()=>{window.innerWidth<380?x(9):window.innerWidth<520?x(10):x(14)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),t)?(0,a.jsxs)("section",{className:"pb-20 lg:pb-24 xl:pb-28",children:[(0,a.jsx)(b,{headerInfo:{title:"GitHub Contributions",subtitle:"Tracking My Development Milestones",description:"Explore the contributions to my personal projects over the years. This section showcases the work and progress I've made, reflecting my dedication and passion for software development."}}),(0,a.jsx)("div",{className:"relative mt-8 slg:mt-10 2xl:mt-12",children:(0,a.jsxs)(n.v0,{children:[(0,a.jsx)(n.td,{className:"flex w-fit space-x-4 rounded-md bg-gray-100 p-1 dark:bg-zinc-800",children:f.map(e=>(0,a.jsx)(n.OK,{as:o.Fragment,children:t=>{let{hover:r,selected:n}=t;return(0,a.jsx)("button",{onClick:()=>u(e),className:(0,i.Z)("rounded-md border-none px-4 py-1.5 text-center text-sm font-medium outline-none focus:outline-none focus:ring-0",r&&!n&&"underline",n&&"bg-zinc-700 text-neutral-100"),children:e})}},e.toString()))}),(0,a.jsx)(n.nP,{className:"relative min-h-[246px] w-full",children:f.map(t=>(0,a.jsx)(n.x4,{children:(0,a.jsx)(s.u,{show:c===t,enter:"transition-opacity duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"transition-opacity duration-300",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,a.jsx)("div",{className:"mt-8 flex w-full items-center justify-center overflow-auto rounded-md border-2 border-gray-200 border-opacity-60 p-3 transition-all dark:border-gray-700 sm:p-6",children:(0,a.jsx)(d.Z,{colorScheme:"dark"===e?"dark":"light",errorMessage:"Unable to fetch data due to some technical error!",fontSize:m,style:{fontFamily:"inter, sans-serif"},username:"Kunwar-Pratap",year:c},"".concat(c,"-calendar"))})})},t))})]})}),(0,a.jsx)("div",{className:"relative  -mt-4 flex items-center justify-center sm:mt-4",children:(0,a.jsx)(h,{})})]}):null}},66990:function(e,t,r){"use strict";var a=r(57437),n=r(2265),s=r(80765),i=r(89904),l=r(98591),o=r(8e3);t.default=()=>(0,a.jsxs)("div",{className:"flex items-center justify-center gap-4 lg:gap-6",children:[(0,a.jsx)(s.z,{as:n.Fragment,children:e=>{let{hover:t,active:r}=e;return(0,a.jsx)(i.Z,{target:"_blank",download:"Kunwar-Pratap-CV",href:"/static/cv/Kunwar-Pratap-CV.pdf",onClick:()=>o.Am.success("CV successfully downloaded"),className:(0,l.Z)("rounded-md px-6 py-2.5 text-sm font-medium text-neutral-100 transition-all duration-300 ease-in-out dark:text-neutral-800",!t&&!r&&"bg-blue-600 dark:bg-greenHo",t&&!r&&"hover:bg-blue-500 dark:hover:bg-green-500",r&&"active:bg-blue-700 dark:active:bg-green-700"),children:"Download CV"})}}),(0,a.jsx)(s.z,{as:n.Fragment,children:e=>{let{hover:t,active:r}=e;return(0,a.jsx)(i.Z,{href:"/contact",className:(0,l.Z)("rounded-md border-2 border-gray-200 px-6 py-2 text-sm font-medium text-neutral-700 transition-all duration-300 ease-in-out dark:border-gray-700 dark:text-neutral-100",!t&&!r&&"bg-transparent dark:bg-transparent",t&&!r&&"hover:border-blue-500 hover:text-blue-500 dark:hover:border-green-500 dark:hover:text-green-500",r&&"active:border-blue-700 active:text-blue-700 dark:active:border-green-700 dark:active:text-green-700"),children:"Hire Now"})}})]})},89904:function(e,t,r){"use strict";var a=r(57437),n=r(87138);t.Z=e=>{let{href:t,...r}=e,s=t&&t.startsWith("/"),i=t&&t.startsWith("#");return s?(0,a.jsx)(n.default,{className:"break-words",href:t,...r}):i?(0,a.jsx)("a",{className:"break-words",href:t,...r}):(0,a.jsx)("a",{className:"break-words",target:"_blank",rel:"noopener noreferrer",href:t,...r})}},84221:function(e,t,r){"use strict";var a=r(57437),n=r(31321);r(2265),t.default=e=>{let{children:t}=e;return(0,a.jsx)(n.E.div,{initial:"hidden",transition:{duration:1,delay:.1},variants:{hidden:{opacity:0,y:-20},visible:{opacity:1,y:0}},viewport:{once:!0},whileInView:"visible",children:t})}},94474:function(e,t,r){"use strict";var a=r(57437),n=r(2265),s=r(87138),i=r(80765),l=r(98591);t.default=()=>{let[e,t]=(0,n.useState)("");return(0,n.useEffect)(()=>{let e="https://multiple-themes-git-master-kunwar-pratap.vercel.app/";(async e=>{try{return(await fetch(e,{method:"HEAD"})).ok}catch(e){return!1}})(e).then(r=>{r?t(e):t("https://multiple-themes-kunwar-pratap.vercel.app/")})},[]),(0,a.jsx)(i.z,{as:n.Fragment,children:t=>{let{hover:r,active:n}=t;return(0,a.jsx)(s.default,{href:e,target:"_blank",className:(0,l.Z)("rounded-md border-2 border-gray-200 px-6 py-2 text-sm font-medium text-neutral-700 transition-all duration-300 ease-in-out dark:border-gray-700 dark:text-neutral-100",!r&&!n&&"bg-transparent dark:bg-transparent",r&&!n&&"hover:border-blue-500 hover:text-blue-500 dark:hover:border-green-500 dark:hover:text-green-500",n&&"active:border-blue-700 active:text-blue-700 dark:active:border-green-700 dark:active:text-green-700"),children:"Live Demo"})}})}},11812:function(e,t,r){"use strict";var a=r(57437),n=r(31321),s=r(2265),i=r(8e3),l=r(98591),o=r(80765),d=r(30120),c=r(96880);t.default=()=>{let[e,t]=(0,s.useState)(1),[r,u]=(0,s.useState)(""),[m,x]=(0,s.useState)(""),[h,g]=(0,s.useState)(!1),[p,b]=(0,s.useState)(!1),[f,v]=(0,s.useState)({}),[k,y]=(0,s.useState)(60);function w(e){let{value:t}=e.target;u(t);let r=(0,d.oH)(t);v(e=>({...e,email:r}))}(0,s.useEffect)(()=>{h&&0===k&&y(60)},[h]),(0,s.useEffect)(()=>{let e;return k>0?e=setInterval(()=>{y(e=>e-1)},1e3):k<=0&&h&&b(!0),()=>clearInterval(e)},[k,h]);let j=e=>{let{value:t}=e.target;x(t);let r=(0,d.gl)(t);v(e=>({...e,otp:r}))},N=e=>{let t={},r=(0,d.oH)(e);return r&&(t.email=r),t},P=e=>{let t={},r=(0,d.gl)(e);return r&&(t.otp=r),t},T=async()=>{let e=N(r);if(Object.keys(e).length>0){v(e);return}v({});try{let e=await fetch("/api/newsletter/sendOtp",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({newsletterEmail:r})}),a=await e.json();e.ok?(g(!0),b(!1),t(2),y(60),i.Am.success("OTP sent successfully. Please check your email.")):409===e.status?i.Am.error("Email is already registered and verified."):i.Am.error(a.message||"")}catch(e){i.Am.error("An unexpected error occurred. Please try again.")}},S=async()=>{let e=P(m);if(Object.keys(e).length>0){v(e);return}v({});try{let e=await fetch("/api/newsletter/verifyOtp",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({newsletterEmail:r,otp:m})}),a=await e.json();e.ok?(u(""),x(""),g(!1),b(!1),t(1),i.Am.success("Email verified successfully.")):i.Am.error(a.message||"Invalid or expired OTP")}catch(e){i.Am.error("An unexpected error occurred. Please try again.")}},E=async()=>{try{let e=await fetch("/api/newsletter/regenerateOtp",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({newsletterEmail:r})}),t=await e.json();e.ok?(b(!1),y(60),i.Am.success("New OTP sent successfully. Please check your email.")):i.Am.error(t.message||"Failed to regenerate OTP")}catch(e){i.Am.error("An unexpected error occurred. Please try again.")}};return(0,a.jsx)("section",{className:"mt-12 pb-20 lg:pb-24 xl:pb-28",children:(0,a.jsx)(n.E.div,{initial:"hidden",transition:{duration:.5,delay:.1},variants:{hidden:{opacity:0,y:-20},visible:{opacity:1,y:0}},viewport:{once:!0},whileInView:"visible",children:(0,a.jsx)("div",{className:"rounded-md border-2 border-gray-200 border-opacity-60 bg-transparent px-4 py-8 shadow-sm dark:border-gray-700 dark:shadow-inner lg:px-6 lg:py-12 xl:py-16",children:(0,a.jsxs)("div",{className:"mx-auto max-w-screen-md text-center",children:[(0,a.jsx)("h2",{className:"mx-auto mb-4 font-fontMono text-xl font-bold text-black dark:text-white sm:text-2xl md:w-4/5 slg:text-3xl xl:mb-6 xl:w-11/12 xl:text-4xl",children:"Subscribe to our Newsletter"}),(0,a.jsx)("p",{className:"prose mx-auto mb-6 max-w-2xl text-sm font-normal dark:prose-invert md:mb-8 md:text-base xl:mb-10",children:"Stay up to date with our latest blog posts, app feature updates, and community news. Sign up with your email to receive timely updates and insights directly in your inbox."}),(0,a.jsxs)("div",{className:"flex flex-col items-center",children:[1===e&&(0,a.jsxs)("div",{className:"flex w-full flex-col items-center justify-center",children:[(0,a.jsx)(c.I,{as:s.Fragment,children:e=>{let{focus:t,hover:n}=e;return(0,a.jsx)("input",{value:r,type:"email",onChange:w,placeholder:"Enter email",className:(0,l.Z)("h-full w-full max-w-[360px] rounded-md border-2 border-gray-200 border-opacity-60 bg-white px-4 py-2.5 text-sm outline-none ring-0 transition-all duration-300 ease-in dark:border-gray-700 dark:bg-transparent md:text-base",t&&"focus:border-blue-500 focus:bg-white focus:ring-0 dark:focus:border-greenHo dark:focus:bg-transparent",n&&"bg-gray-200 dark:bg-zinc-800")})}}),(0,a.jsx)("span",{className:"mb-2 inline-flex h-10 w-fit items-center justify-start",children:f.email&&(0,a.jsx)("small",{className:"font-medium text-red-500",children:f.email})}),(0,a.jsx)(o.z,{as:s.Fragment,children:e=>{let{hover:t,active:r}=e;return(0,a.jsx)("button",{"aria-label":"Subscribe newsletter",onClick:T,className:(0,l.Z)("rounded-md border-2 border-gray-200 px-6 py-2 text-sm font-medium text-neutral-700 transition-all duration-300 ease-in-out dark:border-gray-700 dark:text-neutral-100",!t&&!r&&"bg-transparent dark:bg-transparent",t&&!r&&"hover:border-blue-500 hover:text-blue-500 dark:hover:border-green-500 dark:hover:text-green-500",r&&"active:border-blue-700 active:text-blue-700 dark:active:border-green-700 dark:active:text-green-700"),children:"Subscribe"})}})]}),2===e&&(0,a.jsxs)("div",{className:"flex flex-col items-center",children:[(0,a.jsx)(c.I,{as:s.Fragment,children:e=>{let{focus:t,hover:r}=e;return(0,a.jsx)("input",{value:m,type:"text",onChange:j,placeholder:"Enter OTP",className:(0,l.Z)("h-full w-full max-w-[360px] rounded-md border-2 border-gray-200 border-opacity-60 bg-white px-4 py-2.5 text-sm outline-none ring-0 transition-all duration-300 ease-in dark:border-gray-700 dark:bg-transparent md:text-base",t&&"focus:border-blue-500 focus:bg-white focus:ring-0 dark:focus:border-greenHo dark:focus:bg-transparent",r&&"bg-gray-200 dark:bg-zinc-800")})}}),(0,a.jsx)("span",{className:"mb-2 inline-flex h-10 w-fit items-center justify-start",children:f.otp&&(0,a.jsx)("small",{className:"font-medium text-red-500",children:f.otp})}),(0,a.jsxs)("div",{className:"flex w-full flex-col items-center justify-center gap-4 sm:min-w-80 sm:flex-row",children:[(0,a.jsx)(o.z,{as:s.Fragment,children:e=>{let{hover:t,active:r}=e;return(0,a.jsx)("button",{"aria-label":"Subscribe newsletter",onClick:S,className:(0,l.Z)("rounded-md px-6 py-2.5 text-sm font-medium text-neutral-100 transition-all duration-300 ease-in-out dark:text-neutral-800",!t&&!r&&"bg-blue-600 dark:bg-greenHo",t&&!r&&"hover:bg-blue-500 dark:hover:bg-green-500",r&&"active:bg-blue-700 dark:active:bg-green-700"),children:"Verify OTP"})}}),p?(0,a.jsx)(o.z,{as:s.Fragment,children:e=>{let{hover:t,active:r}=e;return(0,a.jsx)("button",{"aria-label":"Subscribe newsletter",onClick:E,className:(0,l.Z)("rounded-md border-2 border-gray-200 px-6 py-2 text-sm font-medium text-neutral-700 transition-all duration-300 ease-in-out dark:border-gray-700 dark:text-neutral-100",!t&&!r&&"bg-transparent dark:bg-transparent",t&&!r&&"hover:border-blue-500 hover:text-blue-500 dark:hover:border-green-500 dark:hover:text-green-500",r&&"active:border-blue-700 active:text-blue-700 dark:active:border-green-700 dark:active:text-green-700"),children:"Resend OTP"})}}):(0,a.jsx)(o.z,{as:s.Fragment,children:(0,a.jsxs)("button",{disabled:!0,className:(0,l.Z)("cursor-not-allowed rounded-md border-2 border-gray-200 border-opacity-30 px-6 py-2 text-sm font-medium text-neutral-700 transition-all duration-300 ease-in-out dark:border-gray-700 dark:text-neutral-400"),children:["Resend OTP (",(e=>{let t=e%60;return"".concat(Math.floor(e/60),":").concat(t<10?"0":"").concat(t)})(k),")"]})})]})]})]})]})})})})}},59391:function(e,t,r){"use strict";r.d(t,{Z:function(){return g}});var a=r(57437),n=r(7840),s=r(80765),i=r(2265),l=r(22170),o=r.n(l),d=r(42063),c=r(31321),u=r(66648),m=r(34061),x=r(84008),h=r(87138);function g(e){let{isOpen:t,onOpenChange:r,data:l}=e,g=(0,i.useRef)(!1),p=(0,i.useRef)(null),b=(0,i.useRef)(!1);(0,i.useEffect)(()=>{(async()=>{t&&(null==l?void 0:l.id)&&!b.current&&(b.current=!0,await fetch("/api/projects/".concat(l.id),{method:"PUT",headers:{"Content-Type":"application/json"}}))})()},[t,null==l?void 0:l.id]);let f=o()(()=>{g.current||(g.current=!0,r(),p.current=setTimeout(()=>{g.current=!1,p.current&&clearTimeout(p.current)},300))},300);return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(d.M,{children:(0,a.jsxs)(n.Vq,{static:!0,open:t,as:"div",className:"relative z-50 focus:outline-none",onClose:f,role:"dialog",children:[(0,a.jsx)(c.E.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 bg-black/30"}),(0,a.jsx)("div",{className:"fixed inset-0 w-screen overflow-y-auto",children:(0,a.jsx)("div",{className:"flex min-h-full items-center justify-center p-4",children:(0,a.jsxs)(n.EM,{as:c.E.div,initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},className:"data-[closed]:transform-[scale(95%)]  w-full max-w-2xl overflow-y-auto rounded-xl bg-white/60 p-6 backdrop-blur-2xl duration-300 ease-out data-[closed]:opacity-0 dark:bg-gray-700/50",children:[(0,a.jsx)(n.$N,{as:"h2",className:"mb-1 font-fontMono text-xl/7 font-semibold text-neutral-800 dark:text-white",children:null==l?void 0:l.title}),(0,a.jsx)("p",{className:"text-sm/5 font-normal text-neutral-600 dark:text-yellow-500",children:null==l?void 0:l.shortDescription}),(0,a.jsx)("div",{className:"relative my-3 h-full max-h-[350px] w-full rounded-md",children:(0,a.jsx)(u.default,{alt:null==l?void 0:l.title,className:"rounded-md object-cover object-center",height:350,loading:"lazy",src:"/static/images/portfolio/".concat(null==l?void 0:l.imageHref),width:800})}),(0,a.jsxs)("div",{className:"flex w-full cursor-default items-center justify-between rounded-md border-none bg-gray-400/50 px-4 py-2 dark:bg-slate-900/50",children:[(null==l?void 0:l.createdAt)&&(0,a.jsxs)("li",{className:"list-none",children:[(0,a.jsx)("span",{className:"text-sm text-neutral-600 dark:text-neutral-400",children:(0,x.WU)(new Date(null==l?void 0:l.createdAt),"d MMMM, yyyy 'at' HH:mm:ss")})," "]}),(null==l?void 0:l.views)&&(0,a.jsxs)("li",{className:"flex list-none items-center justify-center gap-2",children:[(0,a.jsx)("span",{className:"text-neutral-600 dark:text-neutral-400",children:(0,a.jsx)(m.NjZ,{})}),(0,a.jsx)("span",{className:"text-sm tracking-wider text-neutral-600 dark:text-neutral-400",children:null==l?void 0:l.views})]})]}),(0,a.jsxs)("div",{className:"mt-4 flex flex-col items-center justify-start text-start md:items-start",children:[(0,a.jsx)("h2",{className:"font-overpass mb-2 text-lg font-semibold tracking-wide text-neutral-700 dark:text-neutral-100 xl:text-xl xl:tracking-wider",children:"Technologies"}),(0,a.jsx)("p",{className:"text-xs leading-relaxed tracking-wide text-neutral-600 dark:text-neutral-300 sm:text-sm xl:text-base",children:null==l?void 0:l.technology}),(0,a.jsx)("h2",{className:"font-overpass mb-2 mt-4 text-lg font-semibold tracking-wide text-neutral-700 dark:text-neutral-100 xl:text-xl xl:tracking-wider",children:"Source Code"}),(0,a.jsx)(h.default,{className:"text-xs leading-relaxed tracking-wide text-blue-700 hover:text-blue-600 dark:text-blue-500 dark:hover:text-blue-400 sm:text-sm xl:text-base",href:null==l?void 0:l.sourceCodeUrl,target:"_blank",children:null==l?void 0:l.sourceCodeUrl}),(null==l?void 0:l.liveDemoUrl)?(0,a.jsxs)("div",{children:[(0,a.jsx)("h2",{className:"mb-2 mt-4 text-center text-lg font-semibold tracking-wide text-neutral-700 dark:text-neutral-100 xl:text-xl xl:tracking-wider 2xl:text-start",children:"Live Demo"}),(0,a.jsx)(h.default,{className:"text-xs leading-relaxed tracking-wide text-blue-700 hover:text-blue-600 dark:text-blue-500 dark:hover:text-blue-400 sm:text-sm xl:text-base",href:null==l?void 0:l.liveDemoUrl,target:"_blank",children:null==l?void 0:l.liveDemoUrl})]}):null]}),(0,a.jsx)("div",{className:"float-right mt-4",children:(0,a.jsx)(s.z,{className:"inline-flex items-center gap-2 rounded-md bg-red-700 px-3 py-1.5 text-sm/6 font-semibold text-neutral-100 shadow-inner shadow-white/10 focus:outline-none data-[hover]:bg-red-600 data-[open]:bg-red-700 data-[focus]:outline-1 data-[focus]:outline-white",onClick:f,children:"Close"})})]})})})]})})})}},37458:function(e,t,r){"use strict";r.d(t,{default:function(){return d}});var a=r(57437),n=r(80765),s=r(98591),i=r(87138),l=r(2265),o=r(84221);function d(){return(0,a.jsx)(o.default,{children:(0,a.jsx)(n.z,{as:l.Fragment,children:e=>{let{hover:t,active:r}=e;return(0,a.jsx)(i.default,{href:"/projects",className:(0,s.Z)("rounded-md px-6 py-2.5 text-sm font-medium text-neutral-100 dark:text-neutral-800 ",!t&&!r&&"bg-blue-600 dark:bg-greenHo",t&&!r&&"bg-blue-500 dark:bg-green-500",r&&"bg-blue-700 dark:bg-green-700"),children:"Explore All"})}})})}},5594:function(e,t,r){"use strict";var a=r(57437),n=r(2265),s=r(34479),i=r(43261),l=r(59391);let o=async e=>{let t=await fetch(e,{cache:"no-store",headers:{"x-api-key":"42Z1dFZZP0BsiRsLnab/Z1SXqW+tyetUPmOfzewgFxY="}});if(!t.ok)throw Error("Failed to fetch projects!");return t.json()};t.default=()=>{let{data:e,error:t,mutate:r}=(0,s.ZP)("/api/projects/projectsLatest",o),d=(null==e?void 0:e.latestPortfolios)||[],[c,u]=(0,n.useState)(!1),[m,x]=(0,n.useState)(null),h=e=>{x(e),u(!0)},g=async()=>{u(!1),x(null),await r()};return t?(0,a.jsx)("div",{className:"mt-10 flex min-h-[44vh] flex-col items-center justify-center gap-4 px-4 sm:px-0",children:(0,a.jsx)("p",{className:"text-sm text-red-600 dark:text-red-500 sm:text-base md:text-metaTitle3 xl:text-metaTitle2",children:"Failed to load data due to some technical issues!"})}):d?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"mt-10 min-h-[44vh] xl:mt-12",children:(0,a.jsx)("div",{className:"-m-4 flex flex-wrap",children:d.map(e=>(0,a.jsx)(i.Z,{item:e,onClick:()=>h(e)},e.id))})}),c&&(0,a.jsx)(l.Z,{data:m,isOpen:c,onOpenChange:g})]}):(0,a.jsx)("div",{className:"mt-10 flex min-h-[44vh] flex-col items-center justify-center gap-4 px-4 sm:px-0",children:(0,a.jsx)("p",{className:"text-sm text-neutral-500 dark:text-neutral-400 sm:text-base md:text-metaTitle3 xl:text-metaTitle2",children:"No projects available"})})}},59427:function(e,t,r){"use strict";r.d(t,{default:function(){return c}});var a=r(57437),n=r(42933),s=r(14404),i=r(31321),l=r(2265),o=r(98591),d=r(24516),c=e=>{let{words:t,className:r}=e,[c,u]=(0,l.useState)(!1),[m,x]=(0,n.H)(),h=t.split(" ");return((0,l.useEffect)(()=>{u(!0)},[]),(0,l.useEffect)(()=>{c&&x("span",{opacity:1},{duration:2,delay:(0,s.E)(.2)})},[x,c]),c)?(0,a.jsx)("div",{className:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,d.m6)((0,o.W)(t))}("text-sm font-medium lg:text-base ".concat(r)),children:(0,a.jsx)(i.E.div,{ref:m,children:h.map((e,t)=>(0,a.jsxs)(i.E.span,{className:" opacity-0",children:[e," "]},e+t))})}):null}},27196:function(e,t,r){"use strict";var a=r(57437),n=r(2265),s=r(87138),i=r(80765),l=r(98591);t.default=()=>{let[e,t]=(0,n.useState)("");return(0,n.useEffect)(()=>{let e="https://textopia-lbkh-git-master-kunwar-prataps-projects.vercel.app/";(async e=>{try{return(await fetch(e,{method:"HEAD"})).ok}catch(e){return!1}})(e).then(r=>{r?t(e):t("https://textopia-lbkh-kunwar-prataps-projects.vercel.app/")})},[]),(0,a.jsx)(i.z,{as:n.Fragment,children:t=>{let{hover:r,active:n}=t;return(0,a.jsx)(s.default,{href:e,target:"_blank",className:(0,l.Z)("rounded-md px-6 py-2.5 text-sm font-medium text-neutral-100 transition-all duration-300 ease-in-out dark:text-neutral-800",!r&&!n&&"bg-blue-600 dark:bg-greenHo",r&&!n&&"hover:bg-blue-500 dark:hover:bg-green-500",n&&"active:bg-blue-700 dark:active:bg-green-700"),children:"Live Demo"})}})}},44450:function(e,t,r){"use strict";var a=r(20357);let n={title:"Kunwar Pratap",author:"Kunwar Pratap",headerTitle:"Kunwar Pratap",description:"Welcome to Kunwar Pratap's official website. Explore a portfolio of cutting-edge web development projects, innovative software solutions, and insightful blog posts. Discover Kunwar's expertise in various programming languages, frameworks, and technologies. Connect for collaboration opportunities, project inquiries, and professional networking. Stay updated with the latest in tech through tutorials, guides, and industry insights.",language:"en-us",theme:"system",siteUrl:"https://kunwarpratap.dev",siteLogo:"".concat(a.env.BASE_PATH||"","/assets/logo/Kunwar-Pratap-Trans.png"),socialBanner:"".concat(a.env.BASE_PATH||"","/static/images/banners/twitter-banner.png"),email:"kunwarkudos@gmail.com",github:"https://github.com/Kunwar-Pratap",x:"https://x.com/Kunwar_P_15",facebook:"https://www.facebook.com/kunwar.pratap.23",youtube:"https://youtube.com",linkedin:"https://www.linkedin.com/in/kunwar-pratap-0127a9225",instagram:"https://www.instagram.com/kunwar_pratap_23",locale:"en-US",stickyNav:!0,blurNav:!0,search:{provider:"kbar",kbarConfig:{searchDocumentsPath:"".concat(a.env.BASE_PATH||"","/search.json")}}};e.exports=n},30120:function(e,t,r){"use strict";r.d(t,{L1:function(){return l},Nj:function(){return d},O5:function(){return c},Ol:function(){return a},a$:function(){return s},ap:function(){return u},gl:function(){return i},oH:function(){return n},uq:function(){return o}});let a=e=>e?e.length<3?"Name must be at least 3 characters":e.length>50?"Name cannot exceed 50 characters":void 0:"Name is required",n=e=>e?e.length<3?"Email must be at least 3 characters":e.length>254?"Email cannot exceed 254 characters":/\S+@\S+\.\S+/.test(e)?void 0:"Email address is invalid":"Email is required",s=e=>e?/^\d+$/.test(e)?e.length<7?"Phone must be at least 7 digits":e.length>15?"Phone cannot exceed 15 digits":void 0:"Only numeric digits are allowed":"Phone is required",i=e=>e?/^\d+$/.test(e)?e.length<6?"OTP must be 6 digits":e.length>6?"OTP cannot exceed 6 digits":void 0:"OTP must contain only numeric digits":"OTP is required",l=e=>e?e.length<3?"Subject must be at least 3 characters":e.length>100?"Subject cannot exceed 100 characters":void 0:"Subject is required",o=e=>e?e.length<3?"Title must be at least 3 characters":e.length>100?"Title cannot exceed 100 characters":void 0:"Title is required",d=e=>e?e.length<10?"Message must be at least 10 characters":e.length>1e3?"Message cannot exceed 1000 characters":void 0:"Message is required",c=e=>e?e.length<10?"Description must be at least 10 characters":e.length>1e3?"Description cannot exceed 1000 characters":void 0:"Description is required",u=e=>e?["image/jpeg","image/png","image/gif"].includes(e.type)?e.size>5242880?"Image size cannot exceed ".concat(5," MB"):void 0:"Only JPEG, PNG, and GIF images are allowed":"Image is required"}},function(e){e.O(0,[6950,231,9528,1321,8173,8e3,3374,7599,7306,810,2971,7023,1744],function(){return e(e.s=63190)}),_N_E=e.O()}]);