1import{a as e,n as t,t as n}from"./jsx-runtime-D3jfb0Ew.js";import{t as r}from"./button-CQ-7NIZX.js";import{t as i}from"./arrow-right-DOCqqE_N.js";import{t as a}from"./bot-BnehhZbv.js";import{t as o}from"./code-6IYGvKJJ.js";import{t as s}from"./ShareButtons-CEHDVV1z.js";import{t as c}from"./mail-CQ_cKVbb.js";import{t as l}from"./search-BlCpk6S6.js";import{t as u}from"./trending-up-HMIoRmPA.js";import{t as d}from"./video-BjImTBEx.js";import{b as f,i as p,j as m}from"./index-CEIwT0tj.js";import{t as h}from"./input-H_-Elt6A.js";var g=e(t(),1),_=n();function v(){let[e,t]=(0,g.useState)(``),[n,v]=(0,g.useState)(``),[y,b]=(0,g.useState)(`All`),[x,S]=(0,g.useState)(``),[C,w]=(0,g.useState)(6),T=e=>{if(e.preventDefault(),!n)return;let t={type:`external_form_submission`,timestamp:Date.now(),formId:`Lead Magnet Form`,formData:{email:n},formLabels:{email:`Email`},url:window.location.href,title:document.title,path:window.location.pathname,userAgent:navigator.userAgent,trackingId:`tk_c6f5b83306da4b1898031e98813e0a3d`,locationId:`6gQypoP22ILWicISxDuZ`,sessionId:crypto.randomUUID(),properties:{deviceType:/Mobile|Android|iPhone/i.test(navigator.userAgent)?`mobile`:`desktop`}};fetch(`https://backend.leadconnectorhq.com/external-tracking/events`,{method:`POST`,headers:{"Content-Type":`application/json`,version:`2021-07-28`},body:JSON.stringify(t)}).catch(()=>{}),m.success(`Your guide is on the way! Check your inbox.`),v(``)},E=n=>{if(n.preventDefault(),!e)return;let r={type:`external_form_submission`,timestamp:Date.now(),formId:`Newsletter Subscription Form`,formData:{email:e},formLabels:{email:`Email`},url:window.location.href,title:document.title,path:window.location.pathname,userAgent:navigator.userAgent,trackingId:`tk_c6f5b83306da4b1898031e98813e0a3d`,locationId:`6gQypoP22ILWicISxDuZ`,sessionId:crypto.randomUUID(),properties:{deviceType:/Mobile|Android|iPhone/i.test(navigator.userAgent)?`mobile`:`desktop`}};fetch(`https://backend.leadconnectorhq.com/external-tracking/events`,{method:`POST`,headers:{"Content-Type":`application/json`,version:`2021-07-28`},body:JSON.stringify(r)}).catch(()=>{}),m.success(`Thanks for subscribing! Check your inbox.`),t(``)},D={title:`The Hidden Cost of Plug-and-Play AI: How Generic AI Chatbots Drain Shopify Revenue`,excerpt:`Discover how generic AI chatbots are draining your Shopify revenue. Learn why enterprise guardrails are essential for ecommerce AI integration success.`,category:`AI Automation`,readTime:`8 min read`,image:`https://vibe.filesafe.space/1777592528399505129/attachments/90101c8e-c90d-42aa-9db8-fa9dd958d5a0.jpg`,icon:(0,_.jsx)(a,{className:`h-16 w-16 text-secondary/70`}),gradient:`from-secondary/20 to-accent/20`},O=p().map(e=>({id:e.slug,title:e.title,excerpt:e.excerpt,category:e.category,readTime:e.readTime,image:e.image,icon:e.category===`Conversion`?(0,_.jsx)(o,{className:`h-12 w-12 text-primary/50`}):e.category===`Video Marketing`?(0,_.jsx)(d,{className:`h-12 w-12 text-accent/50`}):e.category===`Customer Support`?(0,_.jsx)(u,{className:`h-12 w-12 text-green-500/50`}):(0,_.jsx)(a,{className:`h-12 w-12 text-secondary/50`}),gradient:e.category===`Conversion`?`from-primary/20 to-secondary/20`:e.category===`Video Marketing`?`from-accent/20 to-primary/20`:e.category===`Customer Support`?`from-green-500/20 to-secondary/20`:`from-secondary/20 to-accent/20`})),k=[`All`,`AI Automation`,`Conversion`,`Video Marketing`,`Customer Support`],A=O.filter(e=>y===`All`||e.category===y).filter(e=>e.title.toLowerCase().includes(x.toLowerCase())||e.excerpt.toLowerCase().includes(x.toLowerCase())),j=A.slice(0,C);return(0,_.jsxs)(`div`,{className:`flex flex-col min-h-screen`,children:[(0,_.jsx)(`section`,{className:`bg-muted/30 pt-20 pb-12`,children:(0,_.jsxs)(`div`,{className:`container mx-auto px-4 md:px-8`,children:[(0,_.jsxs)(`div`,{className:`flex flex-col md:flex-row justify-between items-center gap-6`,children:[(0,_.jsxs)(`div`,{children:[(0,_.jsxs)(`h1`,{className:`text-4xl font-extrabold tracking-tight text-foreground sm:text-5xl`,children:[`The`,` `,(0,_.jsx)(`span`,{className:`bg-gradient-to-r from-secondary to-accent bg-clip-text text-transparent`,children:`BooleanBytes`}),` `,`Blog`]}),(0,_.jsx)(`p`,{className:`mt-4 text-lg text-muted-foreground max-w-2xl`,children:`Actionable insights, strategies, and deep dives on AI, growth, and conversion optimization for modern brands.`})]}),(0,_.jsxs)(`div`,{className:`w-full md:w-auto relative max-w-md`,children:[(0,_.jsx)(l,{className:`absolute left-3 top-1/2 -translate-y-1/2 h-5 w-5 text-muted-foreground`}),(0,_.jsx)(h,{type:`search`,placeholder:`Search articles...`,className:`pl-10 h-12 w-full md:w-[300px] bg-background`,value:x,onChange:e=>S(e.target.value)})]})]}),(0,_.jsx)(`div`,{className:`mt-10 flex flex-wrap gap-2`,children:k.map(e=>(0,_.jsx)(r,{variant:y===e?`default`:`outline`,className:y===e?`bg-primary text-primary-foreground`:`bg-background`,onClick:()=>b(e),children:e},e))})]})}),y===`All`&&!x&&(0,_.jsx)(`section`,{className:`py-12 bg-background`,children:(0,_.jsx)(`div`,{className:`container mx-auto px-4 md:px-8`,children:(0,_.jsxs)(f,{to:`/blog/generic-ai-chatbots-shopify-revenue-drain`,className:`group flex flex-col lg:flex-row overflow-hidden rounded-3xl border bg-card transition-all hover:shadow-xl`,children:[(0,_.jsx)(`div`,{className:`lg:w-1/2 aspect-video lg:aspect-auto relative overflow-hidden bg-muted`,children:(0,_.jsx)(`img`,{src:D.image,alt:D.title,width:`1280`,height:`720`,loading:`lazy`,decoding:`async`,className:`absolute inset-0 w-full h-full object-cover transition-transform duration-500 group-hover:scale-105`})}),(0,_.jsxs)(`div`,{className:`lg:w-1/2 p-8 md:p-12 flex flex-col justify-center`,children:[(0,_.jsxs)(`div`,{className:`mb-4 flex items-center gap-3 text-sm text-muted-foreground`,children:[(0,_.jsx)(`span`,{className:`rounded-full bg-secondary/10 px-3 py-1 text-xs font-semibold text-secondary`,children:D.category}),(0,_.jsx)(`span`,{children:D.readTime})]}),(0,_.jsx)(`h2`,{className:`mb-4 text-3xl font-bold text-card-foreground group-hover:text-primary transition-colors lg:text-4xl`,children:D.title}),(0,_.jsx)(`p`,{className:`mb-8 text-lg text-muted-foreground`,children:D.excerpt}),(0,_.jsxs)(`div`,{className:`flex items-center justify-between mt-auto pt-4 border-t border-border/50`,children:[(0,_.jsxs)(`span`,{className:`font-semibold text-primary flex items-center group-hover:underline text-lg`,children:[`Read full article`,` `,(0,_.jsx)(i,{className:`ml-2 h-5 w-5 transition-transform group-hover:translate-x-1`})]}),(0,_.jsx)(s,{url:`https://www.booleanbytes.com/blog`,title:`The Hidden Cost of Plug-and-Play AI: How Generic AI Chatbots Drain Shopify Revenue`})]})]})]})})}),(0,_.jsx)(`section`,{className:`py-8 bg-background`,children:(0,_.jsx)(`div`,{className:`container mx-auto px-4 md:px-8`,children:(0,_.jsxs)(`div`,{className:`relative overflow-hidden rounded-3xl border bg-card shadow-2xl`,children:[(0,_.jsx)(`div`,{className:`absolute -inset-1 bg-gradient-to-r from-secondary to-accent opacity-20 blur-xl`}),(0,_.jsxs)(`div`,{className:`relative p-8 md:p-12 flex flex-col lg:flex-row items-center justify-between gap-8 bg-card`,children:[(0,_.jsxs)(`div`,{className:`flex-1 flex flex-col md:flex-row items-center md:items-start text-center md:text-left gap-6`,children:[(0,_.jsx)(`div`,{className:`flex h-16 w-16 shrink-0 items-center justify-center rounded-2xl bg-primary/10 text-primary`,children:(0,_.jsx)(a,{className:`h-8 w-8`})}),(0,_.jsxs)(`div`,{children:[(0,_.jsx)(`h3`,{className:`text-2xl md:text-3xl font-bold text-card-foreground mb-2`,children:`Free Growth Guide`}),(0,_.jsx)(`p`,{className:`text-lg text-muted-foreground max-w-xl`,children:`Learn how to use AI to improve the conversion rate of your eCommerce or SaaS website by up to 40%.`})]})]}
1),(0,_.jsx)(`div`,{className:`w-full lg:w-auto max-w-md shrink-0`,children:(0,_.jsxs)(`form`,{onSubmit:T,className:`flex flex-col gap-3`,children:[(0,_.jsx)(h,{type:`email`,placeholder:`Enter your work email`,className:`h-12 bg-background`,value:n,onChange:e=>v(e.target.value),required:!0}),(0,_.jsxs)(r,{type:`submit`,className:`h-12 w-full bg-gradient-to-r from-secondary to-accent text-white hover:opacity-90`,children:[`Download Free Guide `,(0,_.jsx)(i,{className:`ml-2 h-4 w-4`})]}),(0,_.jsx)(`p`,{className:`text-center text-xs text-muted-foreground mt-1`,children:`Join 2,000+ founders who have downloaded our guide.`})]})})]})]})})}),(0,_.jsx)(`section`,{className:`py-12 bg-background`,children:(0,_.jsxs)(`div`,{className:`container mx-auto px-4 md:px-8`,children:[(0,_.jsx)(`h3`,{className:`mb-8 text-2xl font-bold tracking-tight text-foreground`,children:`Recent Articles`}),(0,_.jsx)(`div`,{className:`grid gap-8 md:grid-cols-2 lg:grid-cols-3`,children:j.map(e=>(0,_.jsxs)(f,{to:`/blog/${e.id}`,className:`group flex flex-col overflow-hidden rounded-2xl border bg-card transition-all hover:-translate-y-1 hover:shadow-xl`,children:[(0,_.jsx)(`div`,{className:`aspect-[16/9] w-full bg-muted p-4 relative overflow-hidden`,children:e.image?(0,_.jsx)(`img`,{src:e.image,alt:e.title,width:`1280`,height:`720`,loading:`lazy`,decoding:`async`,className:`absolute inset-0 w-full h-full object-cover transition-transform duration-500 group-hover:scale-105`}):(0,_.jsx)(`div`,{className:`h-full w-full rounded-xl bg-gradient-to-br ${e.gradient} flex items-center justify-center transition-transform duration-500 group-hover:scale-105`,children:e.icon})}),(0,_.jsxs)(`div`,{className:`flex flex-1 flex-col p-6`,children:[(0,_.jsxs)(`div`,{className:`mb-3 flex items-center gap-3 text-sm text-muted-foreground`,children:[(0,_.jsx)(`span`,{className:`rounded-full bg-secondary/10 px-2.5 py-0.5 text-xs font-semibold text-secondary`,children:e.category}),(0,_.jsx)(`span`,{children:e.readTime})]}),(0,_.jsx)(`h3`,{className:`mb-2 text-xl font-bold text-card-foreground group-hover:text-primary transition-colors`,children:e.title}),(0,_.jsx)(`p`,{className:`mb-4 flex-1 text-muted-foreground line-clamp-2`,children:e.excerpt}),(0,_.jsxs)(`div`,{className:`flex items-center justify-between mt-auto pt-4 border-t border-border/50`,children:[(0,_.jsxs)(`span`,{className:`font-medium text-primary flex items-center group-hover:underline`,children:[`Read article`,` `,(0,_.jsx)(i,{className:`ml-1 h-4 w-4 transition-transform group-hover:translate-x-1`})]}),(0,_.jsx)(s,{url:`https://www.booleanbytes.com/blog`,title:e.title})]})]})]},e.id))}),A.length>C&&(0,_.jsx)(`div`,{className:`mt-12 flex justify-center`,children:(0,_.jsx)(r,{variant:`outline`,size:`lg`,className:`px-8`,onClick:()=>w(e=>e+6),children:`Load More Articles`})})]})}),(0,_.jsx)(`section`,{className:`py-24 bg-primary text-primary-foreground`,children:(0,_.jsx)(`div`,{className:`container mx-auto px-4 md:px-8`,children:(0,_.jsxs)(`div`,{className:`max-w-3xl mx-auto text-center`,children:[(0,_.jsx)(`div`,{className:`mb-6 inline-flex h-16 w-16 items-center justify-center rounded-2xl bg-primary-foreground/10 text-primary-foreground backdrop-blur-xs`,children:(0,_.jsx)(c,{className:`h-8 w-8`})}),(0,_.jsx)(`h2`,{className:`mb-4 text-3xl font-bold tracking-tight sm:text-4xl`,children:`Get Growth Insights Delivered Weekly`}),(0,_.jsx)(`p`,{className:`mb-8 text-lg text-primary-foreground/80`,children:`Join 5,000+ founders and marketers receiving our best strategies on AI automation, design, and conversion rate optimization.`}),(0,_.jsxs)(`form`,{onSubmit:E,className:`flex flex-col sm:flex-row gap-3 max-w-md mx-auto`,children:[(0,_.jsx)(h,{type:`email`,placeholder:`Enter your work email`,className:`h-12 bg-primary-foreground/10 border-primary-foreground/20 text-primary-foreground placeholder:text-primary-foreground/60 focus-visible:ring-primary-foreground/30`,value:e,onChange:e=>t(e.target.value),required:!0}),(0,_.jsx)(r,{type:`submit`,className:`h-12 bg-primary-foreground text-primary hover:bg-primary-foreground
1/90 px-8 font-semibold`,children:`Subscribe`})]}),(0,_.jsx)(`p`,{className:`mt-4 text-sm text-primary-foreground/60`,children:`No spam. Unsubscribe at any time.`})]})})})]})}var y=v;export{y as component};
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.