1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[831],{2302:(e,t,r)=>{Promise.resolve().then(r.bind(r,2358))},2358:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>Z});var s=r(5155),a=r(5818),i=r(8482),n=r(7906),l=r(6766),o=r(6874),d=r.n(o),c=r(7168),m=r(9074),h=r(1007),u=r(4186),x=r(3332),p=r(2138),f=r(4742),g=r(2115),b=r(9852),v=r(7924),y=r(4416),j=r(1154),N=r(5452),w=r(3999);let k=N.bL;N.l9;let S=N.ZL;N.bm;let T=g.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)(N.hJ,{ref:t,className:(0,w.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",r),...a})});T.displayName=N.hJ.displayName;let A=g.forwardRef((e,t)=>{let{className:r,children:a,...i}=e;return(0,s.jsxs)(S,{children:[(0,s.jsx)(T,{}),(0,s.jsxs)(N.UC,{ref:t,className:(0,w.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",r),...i,children:[a,(0,s.jsxs)(N.bm,{className:"absolute right-4 top-4 roun
1ded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,s.jsx)(y.A,{className:"h-4 w-4"}),(0,s.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});A.displayName=N.UC.displayName;let C=e=>{let{className:t,...r}=e;return(0,s.jsx)("div",{className:(0,w.cn)("flex flex-col space-y-1.5 text-center sm:text-left",t),...r})};C.displayName="DialogHeader";let R=g.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)(N.hE,{ref:t,className:(0,w.cn)("text-lg font-semibold leading-none tracking-tight",r),...a})});function P(){let[e,t]=(0,g.useState)(""),[r,a]=(0,g.useState)([]),[n,o]=(0,g.useState)(!1),[m,h]=(0,g.useState)(!1),u=function(e,t){let[r,s]=(0,g.useState)(e);return(0,g.useEffect)(()=>{let t=setTimeout(()=>{s(e)},500);return()=>{clearTimeout(t)}},[e,500]),r}(e,500),x=(0,g.useRef)(null);return(0,g.useEffect)(()=>{(async()=>{if(!u||u.length<2){a([]);return}o(!0);try{let e=await fetch("/api/search?q=".concat(encodeURIComponent(u)));if(e.ok){let t=await e.json();a(t.posts)}else console.error("Search failed"),a([])}catch(e){console.error("Error searching:",e),a([])}finally{o(!1)}})()},[u]),(0,g.useEffect)(()=>{m&&x.current&&setTimeout(()=>{var e;null===(e=x.current)||void 0===e||e.focus()},100)},[m]),(0,g.useEffect)(()=>{let e=e=>{(e.ctrlKey||e.metaKey)&&"k"===e.key&&(e.preventDefault(),h(!0)),"Escape"===e.key&&m&&h(!1)};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[m]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(c.$,{variant:"outline",className:"w-full flex items-center justify-between",onClick:()=>h(!0),children:[(0,s.jsxs)("div",{className:"flex items-center",children:[(0,s.jsx)(v.A,{className:"h-4 w-4 mr-2"}),(0,s.jsx)("span",{className:"text-muted-foreground",children:"Search articles..."})]}),(0,s.jsxs)("kbd",{className:"hidden sm:inline-flex h-5 select-none items-center gap-1 rounded border bg-muted px-1.5 font-mono text-[10px] font-medium text-muted-foreground opacity-100",children:[(0,s.jsx)("span",{className:"text-xs",children:"â"}),"K"]})]}),(0,s.jsx)(k,{open:m,onOpenChange:h,children:(0,s.jsxs)(A,{className:"sm:max-w-[600px] p-0 gap-0",children:[(0,s.jsx)(C,{className:"px-4 pt-4 pb-0",children:(0,s.jsx)(R,{className:"text-lg",children:"Search Articles"})}),(0,s.jsx)("div",{className:"p-4 pt-2",children:(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)(v.A,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground"}),(0,s.jsx)(b.p,{ref:x,placeholder:"Type to search...",value:e,onChange:e=>t(e.target.value),className:"pl-10 pr-10 bg-background/50 border-primary/10 focus:border-primary/50"}),e&&(0,s.jsx)("button",{onClick:()=>{t(""),a([])},className:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-primary transition-colors","aria-label":"Clear search",children:(0,s.jsx)(y.A,{className:"h-4 w-4"})})]})}),(0,s.jsx)("div",{className:"px-4 pb-4",children:n?(0,s.jsx)("div",{className:"flex items-center justify-center p-8",children:(0,s.jsx)(j.A,{className:"h-8 w-8 animate-spin text-primary"})}):r.length>0?(0,s.jsx)("div",{className:"space-y-2 max-h-[400px] overflow-y-auto pr-2",children:r.map(e=>(0,s.jsx)(d(),{href:"/blog/".concat(e.id),onClick:()=>h(!1),children:(0,s.jsx)(i.Zp,{className:"hover:bg-primary/5 transition-colors border-primary/10",children:(0,s.jsx)(i.Wu,{className:"p-3",children:(0,s.jsxs)("div",{className:"flex gap-3",children:[(0,s.jsx)("div",{className:"relative h-16 w-16 flex-shrink-0 rounded-md overflow-hidden",children:(0,s.jsx)(l.default,{src:e.image||"/logo/Shibaccus.png",alt:e.title,fill:!0,className:"object-cover"})}),(0,s.jsxs)("div",{className:"flex-1",children:[(0,s.jsx)("h4",{className:"font-medium line-clamp-1",children:e.title}),(0,s.jsx)("p",{className:"text-xs text-muted-foreground line-clamp-1",children:e.excerpt}),(0,s.jsxs)("div",{className:"flex items-center gap-2 mt-1",children:[(0,s.jsx)("span",{className:"text-xs text-primary",children:e.category}),(0,s.jsx)("span",{className:"text-xs text-muted-foreground",children:e.date})]})]}),(0,s.jsx)("div",{className:"flex items-center",children:(0,s.jsx)(p.A,{className:"h-4 w-4 text-muted-foreground"})})]})})})},e.id))}):u.length>=2?(0,s.jsxs)("div",{className:"p-8 text-center text-muted-foreground",children:['No results found for "',u,'"']}):e.length>0?(0,s.jsx)("div",{className:"p-8 text-center text-muted-foreground",children:"Type at least 2 characters to search"}):(0,s.jsx)("div",{className:"p-8 text-center text-muted-foreground",children:"Start typing to search for articles"})}),(0,s.jsxs)("div",{className:"p-2 border-t border-primary/10 flex justify-between items-center px-4",children:[(0,s.jsx)("p",{className:"text-xs text-muted-foreground",children:"Press ESC to close"}),(0,s.jsx)("p",{className:"text-xs text-muted-foreground",children:r.length>0&&"".concat(r.length," results found")})]})]})})]})}R.displayName=N.hE.displayName,g.forwardRef((e,t)=>
1{let{className:r,...a}=e;return(0,s.jsx)(N.VY,{ref:t,className:(0,w.cn)("text-sm text-muted-foreground",r),...a})}).displayName=N.VY.displayName;var E=r(8629);let D=[{id:1,title:"10 Web Design Trends to Watch in 2023",excerpt:"Discover the latest web design trends that are shaping the digital landscape this year.",image:"/logo/Shibaccus.png?height=600&width=800",date:"June 15, 2023",author:"Alex Johnson",category:"Design",readTime:"5 min read",featured:!0},{id:2,title:"How to Choose the Right Tech Stack for Your Project",excerpt:"A comprehensive guide to selecting the perfect technology stack for your next web development project.",image:"/logo/Shibaccus.png?height=600&width=800",date:"May 28, 2023",author:"Sarah Williams",category:"Development",readTime:"8 min read",featured:!1},{id:3,title:"The Importance of User Experience in Digital Products",excerpt:"Learn why user experience is crucial for the success of your digital products and how to improve it.",image:"/logo/Shibaccus.png?height=600&width=800",date:"April 12, 2023",author:"Michael Chen",category:"UX/UI",readTime:"6 min read",featured:!1},{id:4,title:"Optimizing Website Performance for Better Conversion Rates",excerpt:"Discover how improving your website's performance can lead to higher conversion rates and better user engagement.",image:"/logo/Shibaccus.png?height=600&width=800",date:"March 5, 2023",author:"Emily Rodriguez",category:"Performance",readTime:"7 min read",featured:!1},{id:5,title:"The Future of Mobile App Development",excerpt:"Explore the emerging trends and technologies that will shape the future of mobile application development.",image:"/logo/Shibaccus.png?height=600&width=800",date:"February 20, 2023",author:"David Kim",category:"Mobile",readTime:"9 min read",featured:!1},{id:6,title:"Building Accessible Websites: A Complete Guide",excerpt:"Learn how to create websites that are accessible to all users, including those with disabilities.",image:"/logo/Shibaccus.png?height=600&width=800",date:"January 8, 2023",author:"Lisa Thompson",category:"Accessibility",readTime:"10 min read",featured:!1}],L=["All","Design","Development","UX/UI","Performance","Mobile","Accessibility"];function Z(){return(0,s.jsx)(a.PageTransition,{children:(0,s.jsx)("main",{className:"min-h-screen bg-background",children:(0,s.jsx)("section",{className:"py-20",children:(0,s.jsxs)("div",{className:"container mx-auto px-4 md:px-6",children:[(0,s.jsx)(n.AnimateInView,{children:(0,s.jsx)("div",{className:"flex flex-col items-center justify-center space-y-4 text-center mb-12",children:(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)("div",{className:"inline-block rounded-lg bg-primary/10 px-3 py-1 text-sm text-primary",children:"Blog"}),(0,s.jsx)("h1",{className:"text-3xl font-bold tracking-tighter sm:text-5xl bg-clip-text text-transparent bg-gradient-to-r from-white to-gray-300",children:"Latest Articles"}),(0,s.jsx)("p",{className:"max-w-[900px] text-muted-foreground md:text-xl/relaxed lg:text-base/relaxed xl:text-xl/relaxed",children:"Insights, tips, and industry updates to help you stay ahead in the digital world."})]})})}),(0,s.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8",children:[(0,s.jsxs)("div",{className:"md:col-span-2",children:[D.filter(e=>e.featured).map(e=>(0,s.jsx)(n.AnimateInView,{children:(0,s.jsx)(f.P.div,{whileHover:{y:-5},transition:{type:"spring",stiffness:300,damping:10},className:"mb-10",children:(0,s.jsxs)(i.Zp,{className:"overflow-hidden bg-card/30 backdrop-blur-sm border-primary/10 hover:border-primary/30 transition-all duration-300 hover:shadow-lg hover:shadow-primary/5 rounded-xl",children:[(0,s.jsxs)("div",{className:"relative aspect-[21/9] overflow-hidden",children:[(0,s.jsx)(l.default,{src:e.image||"/logo/Shibaccus.png",alt:e.title,width:1200,height:600,className:"object-cover w-full h-full transition-transform duration-500 hover:scale-105"}),(0,s.jsx)("div",{className:"absolute top-4 left-4 bg-primary/90 text-primary-foreground px-3 py-1 text-sm rounded-full",children:"Featured"}),(0,s.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-background/80 via-trans
1parent to-transparent"})]}),(0,s.jsxs)(i.aR,{className:"p-6",children:[(0,s.jsxs)("div",{className:"flex items-center gap-4 text-sm text-muted-foreground mb-2",children:[(0,s.jsxs)("span",{className:"flex items-center gap-1",children:[(0,s.jsx)(m.A,{className:"h-4 w-4"})," ",e.date]}),(0,s.jsxs)("span",{className:"flex items-center gap-1",children:[(0,s.jsx)(h.A,{className:"h-4 w-4"})," ",e.author]}),(0,s.jsxs)("span",{className:"flex items-center gap-1",children:[(0,s.jsx)(u.A,{className:"h-4 w-4"})," ",e.readTime]})]}),(0,s.jsx)(i.ZB,{className:"text-2xl hover:text-primary transition-colors",children:(0,s.jsx)(d(),{href:"/blog/".concat(e.id),children:e.title})})]}),(0,s.jsx)(i.Wu,{className:"p-6 pt-0",children:(0,s.jsx)("p",{className:"text-muted-foreground",children:e.excerpt})}),(0,s.jsxs)(i.wL,{className:"p-6 pt-0 flex justify-between items-center",children:[(0,s.jsxs)("span",{className:"inline-flex items-center rounded-full bg-primary/10 px-3 py-1 text-sm text-primary",children:[(0,s.jsx)(x.A,{className:"h-3 w-3 mr-1"})," ",e.category]}),(0,s.jsx)(d(),{href:"/blog/".concat(e.id),children:(0,s.jsx)(f.P.div,{whileHover:{scale:1.05,x:5},whileTap:{scale:.95},className:"group",children:(0,s.jsxs)(c.$,{variant:"outline",className:"rounded-full border-primary/20 hover:border-primary/50 hover:bg-primary/5 hover:text-primary",children:["Read Article",(0,s.jsx)(p.A,{className:"ml-2 h-4 w-4 transition-transform duration-300 group-hover:translate-x-1"})]})})})]})]})})},e.id)),(0,s.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:D.filter(e=>!e.featured).map((e,t)=>(0,s.jsx)(n.AnimateInView,{delay:.05*t,children:(0,s.jsx)(f.P.div,{whileHover:{y:-5},transition:{type:"spring",stiffness:300,damping:10},children:(0,s.jsxs)(i.Zp,{className:"overflow-hidden h-full bg-card/30 backdrop-blur-sm border-primary/10 hover:border-primary/30 transition-all duration-300 hover:shadow-lg hover:shadow-primary/5 rounded-xl",children:[(0,s.jsxs)("div",{className:"relative aspect-video overflow-hidden",children:[(0,s.jsx)(l.default,{src:e.image||"/logo/Shibaccus.png",alt:e.title,width:800,height:450,className:"object-cover w-full h-full transition-transform duration-500 hover:scale-105"}),(0,s.jsx)("div",{className:"absolute top-2 right-2 bg-primary/90 text-primary-foreground px-2 py-1 text-xs rounded-full",children:e.category}),(0,s.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-background/60 via-trans
1parent to-transparent"})]}),(0,s.jsxs)(i.aR,{className:"p-4",children:[(0,s.jsx)(i.ZB,{className:"line-clamp-2 hover:text-primary transition-colors text-lg",children:(0,s.jsx)(d(),{href:"/blog/".concat(e.id),children:e.title})}),(0,s.jsxs)(i.BT,{className:"flex items-center gap-4 text-xs mt-2",children:[(0,s.jsxs)("span",{className:"flex items-center gap-1",children:[(0,s.jsx)(h.A,{className:"h-3 w-3"})," ",e.author]}),(0,s.jsxs)("span",{className:"flex items-center gap-1",children:[(0,s.jsx)(u.A,{className:"h-3 w-3"})," ",e.readTime]})]})]}),(0,s.jsx)(i.Wu,{className:"p-4 pt-0",children:(0,s.jsx)("p",{className:"text-muted-foreground text-sm line-clamp-3",children:e.excerpt})}),(0,s.jsx)(i.wL,{className:"p-4 pt-0",children:(0,s.jsx)(d(),{href:"/blog/".concat(e.id),children:(0,s.jsx)(f.P.div,{whileHover:{scale:1.05,x:5},whileTap:{scale:.95},className:"group",children:(0,s.jsxs)(c.$,{variant:"ghost",size:"sm",className:"hover:bg-primary/5 hover:text-primary rounded-full",children:["Read More",(0,s.jsx)(p.A,{className:"ml-2 h-3 w-3 transition-transform duration-300 group-hover:translate-x-1"})]})})})})]})})},e.id))})]}),(0,s.jsxs)("div",{className:"space-y-6",children:[(0,s.jsxs)(i.Zp,{className:"bg-card/30 backdrop-blur-sm border-primary/10 hover:border-primary/30 transition-all duration-300 hover:shadow-lg hover:shadow-primary/5 neon-border",children:[(0,s.jsx)(i.aR,{children:(0,s.jsx)(i.ZB,{children:"Search"})}),(0,s.jsxs)(i.Wu,{children:[(0,s.jsx)(P,{}),(0,s.jsxs)("p",{className:"text-xs text-muted-foreground mt-2 text-center",children:["Press ",(0,s.jsx)("kbd",{className:"px-1 py-0.5 bg-primary/10 rounded text-xs",children:"âK"})," to search"]})]})]}),(0,s.jsxs)(i.Zp,{className:"bg-card/30 backdrop-blur-sm border-primary/10 hover:border-primary/30 transition-all duration-300 hover:shadow-lg hover:shadow-primary/5 neon-border",children:[(0,s.jsx)(i.aR,{children:(0,s.jsx)(i.ZB,{children:"Categories"})}),(0,s.jsx)(i.Wu,{children:(0,s.jsx)("div",{className:"flex flex-wrap gap-2",children:L.map((e,t)=>(0,s.jsx)(f.P.span,{className:"inline-flex items-center rounded-full bg-primary/10 px-3 py-1 text-sm text-primary cursor-pointer",whileHover:{scale:1.05,backgroundColor:"rgba(200, 40, 60, 0.2)"},transition:{type:"spring",stiffness:400,damping:10},tabIndex:0,children:e},t))})})]}),(0,s.jsxs)(i.Zp,{className:"bg-card/30 backdrop-blur-sm border-primary/10 hover:border-primary/30 transition-all duration-300 hover:shadow-lg hover:shadow-primary/5 neon-border",children:[(0,s.jsx)(i.aR,{children:(0,s.jsx)(i.ZB,{children:"Recent Posts"})}),(0,s.jsx)(i.Wu,{children:(0,s.jsx)("div",{className:"space-y-4",children:D.slice(0,3).map((e,t)=>(0,s.jsx)(d(),{href:"/blog/".concat(e.id),children:(0,s.jsxs)("div",{className:"flex gap-3 group p-2 rounded-md hover:bg-primary/5 transition-colors",children:[(0,s.jsx)("div",{className:"relative w-16 h-16 rounded-md overflow-hidden flex-shrink-0",children:(0,s.jsx)(l.default,{src:e.image||"/logo/Shibaccus.png",alt:e.title,width:64,height:64,className:"object-cover w-full h-full transition-transform duration-300 group-hover:scale-105"})}),(0,s.jsxs)("div",{className:"flex flex-col justify-center",children:[(0,s.jsx)("h4",{className:"text-sm font-medium group-hover:text-primary transition-colors line-clamp-2",children:e.title}),(0,s.jsx)("p",{className:"text-xs text-muted-foreground mt-1",children:e.date})]})]})},t))})})]}),(0,s.jsxs)(i.Zp,{className:"bg-card/30 backdrop-blur-sm border-primary/10 hover:border-primary/30 transition-all duration-300 hover:shadow-lg hover:shadow-primary/5 neon-border",children:[(0,s.jsx)(i.aR,{children:(0,s.jsx)(i.ZB,{children:"Subscribe"})}),(0,s.jsxs)(i.Wu,{children:[(0,s.jsx)("p",{className:"text-sm text-muted-foreground mb-4",children:"Stay updated with the latest articles and industry insights."}),(0,s.jsx)(E._,{})]})]})]})]})]})})})})}},3580:(e,t,r)=>{"use strict";r.d(t,{Fy:()=>s,X8:()=>i,dj:()=>n,oR:()=>a});let s={toasts:[],listeners:new Set,addToast(e){let t=e.id||"toast-".concat(Date.now(),"-").concat(Math.random().toString(36).substring(2,9)),r=e.duration||3e3,s={...e,id:t};return this.toasts=[...this.toasts,s],this.notifyListeners(),setTimeout(()=>{this.removeToast(t)},r),t},removeToast(e){this.toasts=this.toasts.filter(t=>t.id!==e),this.notifyListeners()}
1,notifyListeners(){this.listeners.forEach(e=>e([...this.toasts]))},subscribe(e){return this.listeners.add(e),e([...this.toasts]),()=>{this.listeners.delete(e)}}},a=e=>s.addToast(e),i=e=>s.removeToast(e);function n(){return{toast:a,dismiss:i}}},3999:(e,t,r)=>{"use strict";r.d(t,{cn:()=>i});var s=r(2596),a=r(9688);function i(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,a.QP)((0,s.$)(t))}},5818:(e,t,r)=>{"use strict";r.d(t,{PageTransition:()=>i});var s=r(5155),a=r(4742);function i(e){let{children:t}=e;return(0,s.jsx)(a.P.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:20},transition:{duration:.5,ease:"easeInOut"},children:t})}},7168:(e,t,r)=>{"use strict";r.d(t,{$:()=>d});var s=r(5155),a=r(2115),i=r(9708),n=r(2085),l=r(3999);let o=(0,n.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),d=a.forwardRef((e,t)=>{let{className:r,variant:a,size:n,asChild:d=!1,...c}=e,m=d?i.DX:"button";return(0,s.jsx)(m,{className:(0,l.cn)(o({variant:a,size:n,className:r})),ref:t,...c})});d.displayName="Button"},7906:(e,t,r)=>{"use strict";r.d(t,{AnimateInView:()=>l});var s=r(5155),a=r(6604),i=r(2115),n=r(3999);function l(e){let{children:t,className:r,delay:l=0,direction:o="up",duration:d=.5,once:c=!0}=e,m=(0,i.useRef)(null),h=(0,a.W)(m,{once:c});return(0,s.jsx)("div",{ref:m,className:(0,n.cn)("transition-all",h?"opacity-100 translate-y-0 translate-x-0":"opacity-0 ".concat({up:"translate-y-10",down:"-translate-y-10",left:"translate-x-10",right:"-translate-x-10",none:"opacity-0"}[o]),r),style:{transitionDuration:"".concat(d,"s"),transitionDelay:"".concat(l,"s")},children:t})}},8482:(e,t,r)=>{"use strict";r.d(t,{BT:()=>d,Wu:()=>c,ZB:()=>o,Zp:()=>n,aR:()=>l,wL:()=>m});var s=r(5155),a=r(2115),i=r(3999);let n=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("div",{ref:t,className:(0,i.cn)("rounded-lg border bg-card text-card-foreground shadow-sm",r),...a})});n.displayName="Card";let l=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("div",{ref:t,className:(0,i.cn)("flex flex-col space-y-1.5 p-6",r),...a})});l.displayName="CardHeader";let o=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("div",{ref:t,className:(0,i.cn)("text-2xl font-semibold leading-none tracking-tight",r),...a})});o.displayName="CardTitle";let d=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("div",{ref:t,className:(0,i.cn)("text-sm text-muted-foreground",r),...a})});d.displayName="CardDescription";let c=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("div",{ref:t,className:(0,i.cn)("p-6 pt-0",r),...a})});c.displayName="CardContent";let m=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("div",{ref:t,className:(0,i.cn)("flex items-center p-6 pt-0",r),...a})});m.displayName="CardFooter"},8629:(e,t,r)=>{"use strict";r.d(t,{_:()=>m});var s=r(5155),a=r(2115),i=r(7168),n=r(9852),l=r(3580),o=r(4742),d=r(1154),c=r(2486);function m(){let{toast:e}=(0,l.dj)(),[t,r]=(0,a.useState)(""),[m,h]=(0,a.useState)(!1),[u,x]=(0,a.useState)(!1),p=async s=>{if(s.preventDefault(),!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t)){e({title:"Invalid email",description:"Please enter a valid email address",variant:"destructive"});return}h(!0);try{let s=await fetch("/api/newsletter",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:t})});if(s.ok)x(!0),r(""),e({title:"Success!",description:"You've been subscribed to our newsletter."}),setTimeout(()=>{x(!1)},3e3);else{let t=await s.json();e({title:"Error",description:t.error||"Failed to subscribe. Please try again.",variant:"destructive"})}}catch(t){e({title:"Error",description:"Something went wrong. Please try again.",variant:"destructive"})}finally{h(!1)}};return(0,s.jsxs)("form",{onSubmit:p,className:"space-y-4",children:[(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)(n.p,{type:"email",placeholder:"Your email address",value:t,onChange:e=>r(e.target.value),className:"bg-background/50 border-primary/10 focus:border-primary/50 pr-12",disabled:m||u}),u&&(0,s.jsx)(o.P.div,{className:"absolute right-3 top-1/2 -translate-y-1/2 text-green-500",initial:{scale:0},animate:{scale:1},transition:{type:"spring",stiffness:500,damping:10},children:(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,s.jsx)("path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14"}),(0,s.jsx)("polyline",{points:"22 4 12 14.01 9 11.01"})]})})]}),(0,s.jsx)(i.$,{type:"submit",className:"w-full neon-glow",disabled:m||u,children:m?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(d.A,{className:"mr-2 h-4 w-4 animate-spin"}),"Subscribing..."]}):(0,s.jsxs)(s.Fragment,{children:["Subscribe",(0,s.jsx)(c.A,{className:"ml-2 h-4 w-4"})]})})]})}},9852:(e,t,r)=>{"use strict";r.d(t,{p:()=>n});var s=r(5155),a=r(2115),i=r(3999);let n=a.forwardRef((e,t)=>
1{let{className:r,type:a,...n}=e;return(0,s.jsx)("input",{type:a,className:(0,i.cn)("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",r),ref:t,...n})});n.displayName="Input"}},e=>{var t=t=>e(e.s=t);e.O(0,[361,848,874,63,164,787,441,684,358],()=>t(2302)),_N_E=e.O()}]);
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.