PageSourceSearch

https://bannedbooksbox.com/_next/static/chunks/135xd31h2d8b1.js

js bannedbooksbox.com collected 2026-09-28 13:27:20 UTC 56,368 bytes, 11 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,95485,e=>{"use strict";var t=e.i(2639),a=e.i(76594),r=e.i(39001),s=e.i(28236),o=e.i(75610),i=e.i(7040),n=e.i(65647),l=e.i(69437),d=e.i(19455),c=e.i(75157);let u=[{id:1,title:"Banned Books Delivered Monthly",subtitle:"Cancel anytime.",bgColor:"from-brand-teal/20 via-brand-purple/10 to-brand-orange/20",image:"https://subbly-production-builder.nyc3.cdn.digitaloceanspaces.com/projects/01KC301CDB3WZB91C4GDKDCF8J/uploads/1b79d01f-8097-4e78-96a4-ba34e935c4d1-391-img8794jpg-17245062371575.jpg"},{id:2,title:"Stand Against Censorship",subtitle:"All of our stories belong on the shelf.",bgColor:"from-brand-orange/20 via-brand-purple/10 to-brand-teal/20",image:"https://subbly-production-builder.nyc3.cdn.digitaloceanspaces.com/projects/01KC301CDB3WZB91C4GDKDCF8J/uploads/01ba3730-82cd-4246-8387-5f7a87a4bc43-391-img7852-2jpg.jpg"},{id:3,title:"Books are for reading",subtitle:"Don't hate. Circulate.",bgColor:"from-brand-purple/20 via-brand-teal/10 to-brand-orange/20",image:"https://subbly-production-builder.nyc3.cdn.digitaloceanspaces.com/projects/01KC301CDB3WZB91C4GDKDCF8J/uploads/d4f2f2b2-4de1-4e10-872f-dc01a0a2e0a1-391-img7676-2jpg.jpg"}];e.s(["HeroSlider",0,function(){let e,[h,m]=(0,a.useState)(0),[x,p]=(0,a.useState)(!1),b=(0,a.useCallback)(()=>{x||(p(!0),m(e=>0===e?u.length-1:e-1),setTimeout(()=>p(!1),500))},[x]),g=(0,a.useCallback)(()=>{x||(p(!0),m(e=>e===u.length-1?0:e+1),setTimeout(()=>p(!1),500))},[x]);return(0,a.useEffect)(()=>{let e=setInterval(()=>{g()},6e3);return()=>clearInterval(e)},[h,g]),(0,t.jsxs)("section",{className:"relative w-full overflow-hidden bg-gradient-to-br from-bg-teal-light via-white to-bg-purple-light",children:[(0,t.jsx)("div",{className:"relative min-h-[500px] md:min-h-[600px]",children:(0,t.jsx)(l.AnimatePresence,{mode:"wait",children:(e=u[h],(0,t.jsxs)(n.motion.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},transition:{duration:.7},className:"absolute inset-0",children:[(0,t.jsx)("div",{className:(0,c.cn)("absolute inset-0 bg-gradient-to-br",e.bgColor)}),(0,t.jsx)("div",{className:"container mx-auto px-6 h-full",children:(0,t.jsxs)("div",{className:"grid lg:grid-cols-2 gap-12 items-center h-full min-h-[500px] md:min-h-[600px] py-12 md:py-16",children:[(0,t.jsxs)("div",{className:"relative z-10 space-y-6 text-center lg:text-left order-2 lg:order-1",children:[(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsx)(n.motion.h1,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8,delay:.2,ease:[.22,1,.36,1]},className:"text-5xl md:text-6xl lg:text-7xl font-display font-black text-foreground leading-tight uppercase tracking-tight",children:e.title}),(0,t.jsx)(n.motion.p,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.8,delay:.4,ease:[.22,1,.36,1]},className:"text-lg md:text-xl text-muted-foreground font-medium leading-relaxed max-w-xl mx-auto lg:mx-0",children:e.subt
1itle})]}),(0,t.jsxs)(n.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.8,delay:.6,ease:[.22,1,.36,1]},className:"flex flex-col sm:flex-row gap-4 justify-center lg:justify-start",children:[(0,t.jsx)(r.default,{href:"#subscribe",children:(0,t.jsx)(d.Button,{size:"lg",className:"bg-brand-orange hover:bg-brand-orange/90 text-white px-10 py-7 text-base w-full sm:w-auto font-bold",children:"Subscribe"})}),(0,t.jsx)(r.default,{href:"/#shop",children:(0,t.jsx)(d.Button,{size:"lg",variant:"outline",className:"border-2 border-brand-teal text-brand-teal hover:bg-brand-teal hover:text-white px-10 py-7 text-base w-full sm:w-auto cursor-pointer font-bold",children:"Shop"})})]})]}),(0,t.jsx)(n.motion.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1,y:[0,-10,0]},transition:{opacity:{duration:.8,delay:.3},scale:{duration:.8,delay:.3},y:{duration:4,repeat:1/0,ease:"easeInOut"}},className:"relative order-1 lg:order-2 hidden lg:block",children:(0,t.jsxs)("div",{className:"relative aspect-square max-w-lg mx-auto",children:[(0,t.jsx)("div",{className:(0,c.cn)("absolute inset-0 bg-gradient-to-br rounded-3xl blur-3xl",e.bgColor)}),(0,t.jsx)("div",{className:"relative h-full rounded-3xl shadow-2xl overflow-hidden border-2 border-white/20",children:(0,t.jsx)(s.default,{src:e.image,alt:e.title,fill:!0,className:"object-cover",priority:!0})}),(0,t.jsx)("div",{className:"absolute -top-4 -right-4 w-24 h-24 bg-brand-orange/20 rounded-full blur-2xl animate-pulse"}),(0,t.jsx)("div",{className:"absolute -bottom-4 -left-4 w-32 h-32 bg-brand-teal/20 rounded-full blur-2xl animate-pulse"})]})})]})})]},e.id))})}),(0,t.jsx)("button",{onClick:b,className:"absolute left-6 top-1/2 -translate-y-1/2 z-20 bg-white/95 hover:bg-white rounded-full p-4 shadow-card hover:shadow-card-hover transition-all duration-300 group","aria-label":"Previous slide",children:(0,t.jsx)(o.ChevronLeft,{className:"h-6 w-6 text-foreground group-hover:text-brand-orange transition-colors"})}),(0,t.jsx)("button",{onClick:g,className:"absolute right-6 top-1/2 -translate-y-1/2 z-20 bg-white/95 hover:bg-white rounded-full p-4 shadow-card hover:shadow-card-hover transition-all duration-300 group","aria-label":"Next slide",children:(0,t.jsx)(i.ChevronRight,{className:"h-6 w-6 text-foreground group-hover:text-brand-orange transition-colors"})}),(0,t.jsx)("div",{className:"absolute bottom-10 left-1/2 -translate-x-1/2 z-20 flex items-center gap-3",children:u.map((e,a)=>(0,t.jsx)("button",{onClick:()=>{!x&&a!==h&&(p(!0),m(a),setTimeout(()=>p(!1),500))},className:(0,c.cn)("h-3 rounded-full transition-all duration-300 cursor-pointer",h===a?"w-12 bg-brand-orange shadow-md":"w-3 bg-white/60 hover:bg-white"),"aria-label":`Go to slide ${a+1}`},a))})]})}])},75352,e=>{"use strict";let t=(0,e.i(61034).default)("book-open",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);e.s(["BookOpen",0,t],75352)},92995,e=>{"use strict";var t=e.i(2639);let a=(0,e.i(61034).default)("box",[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]]);var r=e.i(75352),s=e.i(60717),o=e.i(65647);e.s(["HowItWorksSection",0,function(){let e=[{icon:a,title:"Choose Your Box",description:"Select from our subscription options to receive banned books monthly or choose a single box for a one-time shipment."},{icon:r.BookOpen,title:"We Curate",description:"Our team handpicks banned and challenged books with care and purpose."},{icon:s.Truck,title:"Delivery to Your Door",description:"Subscription boxes ship on the 15th of each month, or shortly thereafter. Single boxes ship within 3 business days."}];return(0,t.jsxs)("section",{id:"how-it-works",className:"relative py-10 md:py-14 bg-gradient-to-br from-brand-orange/10 via-brand-orange/5 to-white overflow-hidden scroll-mt-24",children:[(0,t.jsx)("div",{className:"absolute top-0 left-0 w-96 h-96 bg-brand-orange/5 rounded-full blur-3xl"}),(0,t.jsx)("div",{className:"absolute bottom-0 right-0 w-96 h-96 bg-brand-teal/5 rounded-full blur-3xl"}),(0,t.jsx)("div",{className:"content-container relative z-10",children:(0,t.jsxs)("div",{className:"max-w-6xl mx-auto",children:[(0,t.jsxs)(o.motion.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-100px"},transition:{duration:.6,ease:[.22,1,.36,1]},className:"text-center space-y-3 mb-8",children:[(0,t.jsx)("h2",{className:"text-4xl md:text-5xl font-display text-foreground uppercase tracking-tight font-black",children:"How It Works"}),(0,t.jsx)("div",{className:"w-24 h-1 bg-gradient-to-r from-brand-orange via-brand-purple to-brand-orange mx-auto rounded-full"})]}),(0,t.jsx)("div",{className:"grid md:grid-cols-3 gap-8 md:gap-12",children:e.map((a,r)=>
1{let s=a.icon;return(0,t.jsxs)(o.motion.div,{initial:{opacity:0,y:50},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-80px"},transition:{duration:.7,delay:.2*r,ease:[.22,1,.36,1]},className:"relative group",children:[(0,t.jsxs)("div",{className:"flex flex-col items-center text-center space-y-4",children:[(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("div",{className:"absolute inset-0 bg-brand-orange/20 rounded-full blur-xl group-hover:blur-2xl transition-all duration-300"}),(0,t.jsx)("div",{className:"relative w-20 h-20 bg-gradient-to-br from-brand-orange to-brand-orange-light rounded-full flex items-center justify-center shadow-lg group-hover:scale-110 transition-transform duration-300",children:(0,t.jsx)(s,{className:"w-10 h-10 text-white"})}),(0,t.jsx)("div",{className:"absolute -bottom-3 -right-3 w-10 h-10 bg-white rounded-full flex items-center justify-center shadow-md border-2 border-brand-orange",children:(0,t.jsx)("span",{className:"text-lg font-black text-brand-orange",children:r+1})})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("h3",{className:"text-2xl font-subheading font-bold text-foreground",children:a.title}),(0,t.jsx)("p",{className:"text-muted-foreground leading-relaxed max-w-xs mx-auto",children:a.description})]})]}),r<e.length-1&&(0,t.jsx)("div",{className:"hidden md:block absolute top-10 left-[60%] w-[80%] h-px border-t-2 border-dashed border-brand-orange/30"})]},r)})})]})})]})}],92995)},26695,e=>{"use strict";var t=e.i(2639),a=e.i(75352),r=e.i(61034);let s=(0,r.default)("package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]),o=(0,r.default)("shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);var i=e.i(60717),n=e.i(65647);e.s(["InfoSection",0,function(){let e=[{icon:a.BookOpen,title:"Banned Books",description:"One or two banned books (you choose!) written for young adult and/or adult readers that were published during the past decade.",iconBg:"bg-gradient-to-br from-brand-orange to-brand-orange/80",hoverBorder:"hover:border-brand-orange",hoverGlow:"from-brand-orange to-brand-orange/70"},{icon:s,title:"Bookish Items",description:"A few handpicked bookish items we hope you'll either adore for their whimsicality or find particularly useful.",iconBg:"bg-gradient-to-br from-brand-teal to-brand-teal/80",hoverBorder:"hover:border-brand-teal",hoverGlow:"from-brand-teal to-brand-teal/70"},{icon:o,title:"Ban Information",description:"Information on how each featured book was banned, so you know what's happening.",iconBg:"bg-gradient-to-br from-brand-purple to-brand-purple/80",hoverBorder:"hover:border-brand-purple",hoverGlow:"from-brand-purple to-brand-purple/70",largeText:!0},{icon:i.Truck,title:"Free Shipping",description:"Free shipping within the United States.",iconBg:"bg-gradient-to-br from-brand-lavender to-brand-lavender/80",hoverBorder:"hover:border-brand-lavender",hoverGlow:"from-brand-lavender to-brand-lavender/70",largeText:!0}];return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("section",{id:"info",className:"relative section-spacing bg-bg-lavender-lighter overflow-hidden scroll-mt-24",children:[(0,t.jsx)("div",{className:"absolute top-0 left-0 w-64 h-64 bg-brand-teal/5 rounded-full blur-3xl"}),(0,t.jsx)("div",{className:"absolute bottom-0 right-0 w-96 h-96 bg-brand-purple/5 rounded-full blur-3xl"}),(0,t.jsx)("div",{className:"content-container relative z-10",children:(0,t.jsxs)("div",{className:"max-w-4xl mx-auto space-y-10",children:[(0,t.jsx)(n.motion.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-100px"},transition:{duration:.7,ease:[.22,1,.36,1]},className:"space-y-4",children:(0,t.jsx)("h2",{className:"text-5xl md:text-6xl font-display text-foreground uppercase tracking-tight font-black text-center",children:"What is Banned Books Box?"})}),(0,t.jsx)(n.motion.p,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-100px"},transition:{duration:.7,delay:.2,ease:[.22,1,.36,1]},className:"text-xl md:text-2xl text-muted-foreground leading-relaxed max-w-3xl font-medium text-ju
1stify mx-auto",children:"Simply put, books get banned in schools, libraries, and other institutions in the U.S. when complaints that content is offensive result in their removal from shelves. That's censorship. Unfortunately, it happens often. Books are often targeted for their treatment of race, gender, sexuality, religion, or politics."}),(0,t.jsx)(n.motion.p,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-100px"},transition:{duration:.7,delay:.3,ease:[.22,1,.36,1]},className:"text-xl leading-relaxed text-foreground max-w-3xl text-justify lg:text-2xl font-bold mx-auto",children:"Our mission is to celebrate the power of stories that create space for readers to feel seen and understood, expand worldviews, and nurture empathy — by sharing banned books, amplifying marginalized voices, and inspiring both bold and quiet acts of advocacy."})]})})]}),(0,t.jsx)("section",{className:"relative section-spacing bg-bg-orange-light",children:(0,t.jsx)("div",{className:"content-container",children:(0,t.jsxs)("div",{className:"max-w-6xl mx-auto",children:[(0,t.jsx)(n.motion.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-100px"},transition:{duration:.7,ease:[.22,1,.36,1]},className:"space-y-6 mb-12 text-center",children:(0,t.jsx)("h2",{className:"text-5xl md:text-6xl font-display font-black text-foreground uppercase tracking-tight",children:"What's in the Box?"})}),(0,t.jsx)("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-8 auto-rows-fr",children:e.map((e,a)=>{let r=e.icon;return(0,t.jsxs)(n.motion.div,{initial:{opacity:0,y:40,scale:.9},whileInView:{opacity:1,y:0,scale:1},viewport:{once:!0,margin:"-80px"},transition:{duration:.6,delay:.1*a,ease:[.22,1,.36,1]},className:"group relative",children:[(0,t.jsx)("div",{className:`absolute inset-0 bg-gradient-to-br ${e.hoverGlow} rounded-3xl blur-xl opacity-0 group-hover:opacity-20 transition-opacity duration-500`}),(0,t.jsxs)("div",{className:`relative bg-white rounded-3xl p-8 shadow-lg hover:shadow-2xl transition-all duration-500 border-2 border-transparent ${e.hoverBorder} h-full`,children:[(0,t.jsx)("div",{className:`w-20 h-20 ${e.iconBg} rounded-2xl flex items-center justify-center mb-6 transform group-hover:scale-110 group-hover:rotate-3 transition-transform duration-500`,children:(0,t.jsx)(r,{className:"w-10 h-10 text-white"})}),(0,t.jsx)("h3",{className:"text-2xl font-subheading font-bold mb-4 text-foreground",children:e.title}),(0,t.jsx)("p",{className:`text-muted-foreground leading-relaxed ${e.largeText?"text-lg":""}`,children:e.description})]})]},a)})})]})})})]})}],26695)},52086,e=>{"use strict";let t=(0,e.i(61034).default)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);e.s(["X",0,t],52086)},32480,e=>{"use strict";var t=e.i(2639),a=e.i(76594),r=e.i(28236),s=e.i(39001),o=e.i(59837),i=e.i(65647),n=e.i(19455),l=e.i(67489),d=e.i(26028),c=e.i(88476),u=e.i(52086);function h({product:e,plan:l,featured:d,onSubscribe:c,formatAmou
1nt:m,delay:x=0}){var p;let[b,g]=(0,a.useState)(!1),f=(p=e.name).includes("Original")?["2 banned books per month","Curated bookish goodies","Info about book bans"]:p.includes("Slim")?["1 banned book per month","Curated bookish items","Info about book bans"]:["Monthly book delivery","Support literary freedom","Free shipping"],v=d?"border-brand-orange":"border-brand-teal",y=d?"bg-brand-orange hover:bg-brand-orange-light":"bg-brand-teal hover:bg-brand-teal/90";return(0,t.jsx)(i.motion.div,{initial:{opacity:0,y:40},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-80px"},transition:{duration:.7,delay:x,ease:[.22,1,.36,1]},className:"relative w-full min-h-[600px] h-full",style:{perspective:"1000px"},children:(0,t.jsxs)("div",{className:`relative w-full h-full transition-transform duration-700 preserve-3d ${b?"rotate-y-180":""}`,style:{transformStyle:"preserve-3d",transform:b?"rotateY(180deg)":"rotateY(0deg)",minHeight:"600px"},children:[(0,t.jsx)("div",{className:`absolute inset-0 w-full h-full backface-hidden ${d?"scale-105":""}`,style:{backfaceVisibility:"hidden"},children:(0,t.jsxs)("div",{className:`group relative bg-white rounded-3xl shadow-lg hover:shadow-2xl transition-all duration-300 border-2 h-full flex flex-col ${d?"border-brand-orange":`border-transparent hover:${v}`}`,children:[d&&(0,t.jsx)("div",{className:"absolute -top-4 left-1/2 -translate-x-1/2 bg-brand-orange text-white px-8 py-2.5 rounded-full text-xs font-bold uppercase tracking-widest shadow-md z-10",children:"Most Popular"}),(0,t.jsx)("div",{className:`absolute inset-0 bg-gradient-to-br ${d?"from-brand-orange/5 to-brand-teal/5":"from-brand-teal/5 to-brand-purple/5"} opacity-0 group-hover:opacity-100 transition-opacity duration-500 rounded-3xl pointer-events-none`}),e.images[0]&&(0,t.jsxs)(s.default,{href:`/products/${e.slug}`,"aria-label":`View ${e.name} details`,className:"relative aspect-[3/4] w-full overflow-hidden rounded-t-3xl block cursor-pointer",children:[(0,t.jsx)(r.default,{src:e.images[0].url,alt:e.name,fill:!0,sizes:"(max-width: 768px) 100vw, 33vw",className:"object-cover group-hover:scale-105 transition-transform duration-500"}),(0,t.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/60 to-transparent"}),(0,t.jsx)("div",{className:"absolute bottom-4 left-4 right-4",children:(0,t.jsx)("h3",{className:"text-2xl font-subheading font-black text-white drop-shadow-lg group-hover:underline underline-offset-4 decoration-2",children:e.name})})]}),(0,t.jsxs)("div",{className:"relative p-4 space-y-3 flex flex-col flex-grow",children:[(0,t.jsxs)("div",{className:"text-center py-3 border-y border-border",children:[(0,t.jsx)("div",{className:"text-4xl font-display font-black text-foreground",children:m(l.price)}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground mt-1",children:"per month"})]}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground text-center leading-relaxed",children:(()=>{if(!e.description)return"";let t=e.description.replace(/<[^>]*>/g,"").replace(/&nbsp;/g," ").trim();return t.length>120?t.substring(0,120)+"...":t})()}),(0,t.jsxs)("div",{className:"flex gap-2 mt-auto",children:[(0,t.jsx)(n.Button,{onClick:()=>g(!0),variant:"outline",className:"flex-1 border-2 border-foreground
1/20 hover:border-foreground/40 font-semibold py-5 rounded-full",children:"Read More"}),(0,t.jsx)(n.Button,{onClick:()=>c(l.id),className:`flex-1 ${y} text-white font-bold py-5 rounded-full shadow-lg hover:shadow-xl transform hover:-translate-y-1 transition-all duration-300`,children:"Subscribe"})]}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground text-center",children:"Free shipping • Cancel anytime"})]})]})}),(0,t.jsx)("div",{className:"absolute inset-0 w-full h-full backface-hidden",style:{backfaceVisibility:"hidden",transform:"rotateY(180deg)"},children:(0,t.jsx)("div",{className:"relative bg-white rounded-2xl md:rounded-3xl shadow-lg border-2 border-brand-purple h-full flex flex-col overflow-hidden",children:(0,t.jsxs)("div",{className:"relative p-3 md:p-6 space-y-2 md:space-y-4 flex flex-col flex-grow overflow-y-auto",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between border-b border-border pb-2 md:pb-4",children:[(0,t.jsx)("h3",{className:"text-base md:text-xl font-subheading font-black text-foreground",children:e.name}),(0,t.jsx)("button",{onClick:()=>g(!1),className:"p-1.5 md:p-2 hover:bg-gray-100 rounded-full transition-colors","aria-label":"Close description",children:(0,t.jsx)(u.X,{className:"w-4 h-4 md:w-5 md:h-5 text-foreground"})})]}),(0,t.jsxs)("div",{className:"text-center py-2 md:py-3 border-y border-border",children:[(0,t.jsx)("div",{className:"text-2xl md:text-3xl font-display font-black text-foreground",children:m(l.price)}),(0,t.jsx)("p",{className:"text-xs md:text-sm text-muted-foreground mt-1",children:"per month"})]}),e.description&&(0,t.jsx)("div",{className:"text-xs md:text-sm text-muted-foreground leading-relaxed prose prose-sm max-w-none",dangerouslySetInnerHTML:{__html:e.description?e.description.replace(/<p style="text-align: justify"><br><\/p>/g,"").replace(/<p style="text-align: justify">/g,"<p>").replace(/<p><br><\/p>/g,"").trim():""}}),(0,t.jsxs)("div",{className:"border-t border-border pt-2 md:pt-4",children:[(0,t.jsx)("h4",{className:"text-xs md:text-sm font-bold text-foreground uppercase tracking-wide mb-2 md:mb-3",children:"What's Included:"}),(0,t.jsx)("ul",{className:"space-y-1 md:space-y-2",children:f.map((e,a)=>(0,t.jsxs)("li",{className:"flex items-start gap-2",children:[(0,t.jsx)(o.Check,{className:`w-3 h-3 md:w-4 md:h-4 ${d?"text-brand-orange":"text-brand-teal"} flex-shrink-0 mt-0.5`}),(0,t.jsx)("span",{className:"text-xs md:text-sm text-muted-foreground",children:e})]},a))})]}),(0,t.jsxs)("div",{className:"space-y-2 md:space-y-3 mt-auto pt-2 md:pt-4",children:[(0,t.jsx)(n.Button,{onClick:()=>c(l.id),className:`w-full ${y} text-white font-bold py-3 md:py-6 text-sm md:text-base rounded-full shadow-lg hover:shadow-xl transform hover:-translate-y-1 transition-all duration-300`,size:"lg",children:"Subscribe Now"}),(0,t.jsx)("p",{className:"text-[10px] md:text-xs text-muted-foreground text-center",children:"Free shipping • Cancel anytime"})]})]})})})]})})}e.s(["SubscriptionSection",0,function({products:e}){var u,m;let x,{addToCart:p}
1=(0,d.useSubblyCart)(),{formatAmount:b}=(0,c.useFormatAmount)(),[g,f]=(0,a.useState)(null),v=e.find(e=>e.name.includes("Original")),y=e.find(e=>e.name.includes("Slim")),w=e.find(e=>e.name.includes("Literal")),j=async e=>{await p({productId:e,quantity:1})},N=async()=>{g&&await j(g)};return(0,t.jsx)("section",{id:"subscribe",className:"relative section-spacing bg-white overflow-hidden scroll-mt-24",children:(0,t.jsx)("div",{className:"content-container relative z-10",children:(0,t.jsxs)("div",{className:"max-w-7xl mx-auto",children:[(0,t.jsxs)(i.motion.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-100px"},transition:{duration:.7,ease:[.22,1,.36,1]},className:"text-center space-y-3 mb-10",children:[(0,t.jsx)("h2",{className:"text-4xl md:text-5xl font-display font-black text-foreground uppercase tracking-tight",children:"Our Subscription Boxes"}),(0,t.jsx)("div",{className:"w-24 h-1 bg-gradient-to-r from-brand-purple via-brand-orange to-brand-purple mx-auto rounded-full"}),(0,t.jsx)("p",{className:"text-xl text-muted-foreground max-w-3xl mx-auto leading-relaxed pt-2",children:"Read banned books. Choose the subscription that fits your reading style."})]}),(0,t.jsxs)("div",{className:"grid md:grid-cols-3 gap-8 max-w-7xl mx-auto",children:[v&&v.plans[0]&&(0,t.jsx)(h,{product:v,plan:v.plans[0],featured:!0,onSubscribe:j,formatAmou
1nt:b,delay:.1}),y&&y.plans[0]&&(0,t.jsx)(h,{product:y,plan:y.plans[0],onSubscribe:j,formatAmount:b,delay:.2}),w&&w.plans.length>0&&(0,t.jsxs)(i.motion.div,{initial:{opacity:0,y:40},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-80px"},transition:{duration:.7,delay:.3,ease:[.22,1,.36,1]},className:"group relative bg-white rounded-3xl overflow-hidden shadow-lg hover:shadow-2xl transition-all duration-300 border-2 border-transparent hover:border-brand-purple hover:-translate-y-2",children:[(0,t.jsx)("div",{className:"absolute inset-0 bg-gradient-to-br from-brand-purple/5 to-brand-orange/5 opacity-0 group-hover:opacity-100 transition-opacity duration-500"}),(0,t.jsxs)("div",{className:"relative",children:[w.images[0]&&(0,t.jsxs)(s.default,{href:`/products/${w.slug}`,"aria-label":`View ${w.name} details`,className:"relative aspect-[3/4] w-full overflow-hidden block cursor-pointer",children:[(0,t.jsx)(r.default,{src:w.images[0].url,alt:w.name,fill:!0,sizes:"(max-width: 768px) 100vw, 33vw",className:"object-cover group-hover:scale-105 transition-transform duration-500"}),(0,t.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/60 to-transparent"}),(0,t.jsx)("div",{className:"absolute bottom-4 left-4 right-4",children:(0,t.jsx)("h3",{className:"text-2xl font-subheading font-black text-white drop-shadow-lg group-hover:underline underline-offset-4 decoration-2",children:w.name})})]}),(0,t.jsxs)("div",{className:"p-5 space-y-4",children:[w.description?(0,t.jsx)("div",{className:"text-muted-foreground text-center leading-relaxed",dangerouslySetInnerHTML:{__html:w.description.replace(/<p style="text-align: justify"><br><\/p>/g,"").replace(/<p style="text-align: justify">/g,"<p>").replace(/<p><br><\/p>/g,"").trim()}}):(0,t.jsx)("p",{className:"text-muted-foreground text-center leading-relaxed",children:(u=w.name).includes("Original")?"Banned Books Box is a family-run business aimed at getting censored books into the hands of readers and thinkers. Simply by buying this box, you'll be standing up for silenced authors and supporting the spread of diverse ideas. Each original box includes two books and a few handpicked bookish goodies.":u.includes("Slim")?"A lighter option with 1 banned book and select bookish items.":u.includes("Literal")?"You just want to get down to business, and we respect that. The literal box contains just banned books, no fancy stuff. Choose 1 or 2 books per month.":"Monthly banned book subscription"}),(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsx)("label",{className:"block text-sm font-bold text-foreground uppercase tracking-wide",children:"Choose Your Plan"}),(0,t.jsxs)(l.Select,{value:g?.toString(),onValueChange:e=>f(Number(e)),children:[(0,t.jsx)(l.SelectTrigger,{className:"w-full h-12 border-2 border-brand-purple/30 rounded-xl font-medium",children:(0,t.jsx)(l.SelectValue,{placeholder:"Select number of books"})}),(0,t.jsx)(l.SelectContent,{children:w.plans.map(e=>(0,t.jsxs)(l.SelectItem,{value:e.id.toString(),children:[e.pricingName||e.name," - ",b(e.price),"/month"]},e.id))})]})]}),g&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"text-center py-4 border-y border-border",children:[(0,t.jsx)("div",{className:"text-4xl font-display font-black text-foreground",children:b(w.plans.find(e=>e.id===g)?.price||0)}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground mt-1",children:"per month"})]}),(0,t.jsx)("ul",{className:"space-y-3",children:(m=w.plans.find(e=>e.id===g)?.pricingName||"",x=m?.includes("1 book")?"1":"2",[`${x} banned ${"1"===x?"book":"books"} per month`,"No extra items","Info card about each book","Support banned authors","Books-only option"]).map((e,a)=>(0,t.jsxs)("li",{className:"flex items-start gap-3",children:[(0,t.jsx)(o.Check,{className:"w-5 h-5 text-brand-purple flex-shrink-0 mt-0.5"}),(0,t.jsx)("span",{className:"text-sm text-muted-foreground",children:e})]},a))})]}),(0,t.jsx)(n.Button,{onClick:N,disabled:!g,className:"w-full bg-brand-purple hover:bg-brand-purple/90 text-white font-bold py-6 text-base rounded-full shadow-lg hover:shadow-xl transform hover:-translate-y-1 transition-all duration-300 disabled:opacity-50 disabled:cursor-not-allowed disabled:transform-none",size:"lg",children:"Subscribe Now"}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground text-center",children:"Free shipping • Cancel anytime"})]})]})]})]})]})})})}],32480)},48225,(e,t,a)=>{"use strict";var r=e.r(76594),s="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=r.useState,i=r.useEffect,n=r.useLayoutEffect,l=r.useDebugValue;function d(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!s(e,a)}catch(e){return!0}}var c="u"<typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var a=t(),r=o({inst:{value:a,getSnapshot:t}}),s=r[0].inst,c=r[1];return n(function(){s.value=a,s.getSnapshot=t,d(s)&&c({inst:s})},[e,a,t]),i(function(){return d(s)&&c({inst:s}),e(function(){d(s)&&c({inst:s})})},[e]),l(a),a};a.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},40331,(e,t,a)=>{"use strict";
1t.exports=e.r(48225)},6584,e=>{"use strict";var t=e.i(2639),a=e.i(76594),r=e.i(7933),s=e.i(75610),o=e.i(7040),i=e.i(65647),n=e.i(69437),l=e.i(24605),d=e.i(40029),c=e.i(61618),u=e.i(15883),h=e.i(40331);function m(){return()=>{}}var x="Avatar",[p,b]=(0,l.createContextScope)(x),[g,f]=p(x),v=a.forwardRef((e,r)=>{let{__scopeAvatar:s,...o}=e,[i,n]=a.useState("idle");return(0,t.jsx)(g,{scope:s,imageLoadingStatus:i,onImageLoadingStatusChange:n,children:(0,t.jsx)(u.Primitive.span,{...o,ref:r})})});v.displayName=x;var y="AvatarImage";a.forwardRef((e,r)=>{let{__scopeAvatar:s,src:o,onLoadingStatusChange:i=()=>{},...n}=e,l=f(y,s),x=function(e,{referrerPolicy:t,crossOrigin:r}){let s=(0,h.useSyncExternalStore)(m,()=>!0,()=>!1),o=a.useRef(null),i=s?(o.current||(o.current=new window.Image),o.current):null,[n,l]=a.useState(()=>N(i,e));return(0,c.useLayoutEffect)(()=>{l(N(i,e))},[i,e]),(0,c.useLayoutEffect)(()=>{let e=e=>()=>{l(e)};if(!i)return;let a=e("loaded"),s=e("error");return i.addEventListener("load",a),i.addEventListener("error",s),t&&(i.referrerPolicy=t),"string"==typeof r&&(i.crossOrigin=r),()=>{i.removeEventListener("load",a),i.removeEventListener("error",s)}},[i,r,t]),n}(o,n),p=(0,d.useCallbackRef)(e=>{i(e),l.onImageLoadingStatusChange(e)});return(0,c.useLayoutEffect)(()=>{"idle"!==x&&p(x)},[x,p]),"loaded"===x?(0,t.jsx)(u.Primitive.img,{...n,ref:r,src:o}):null}).displayName=y;var w="AvatarFallback",j=a.forwardRef((e,r)=>{let{__scopeAvatar:s,delayMs:o,...i}=e,n=f(w,s),[l,d]=a.useState(void 0===o);return a.useEffect(()=>{if(void 0!==o){let e=window.setTimeout(()=>d(!0),o);return()=>window.clearTimeout(e)}},[o]),l&&"loaded"!==n.imageLoadingStatus?(0,t.jsx)(u.Primitive.span,{...i,ref:r}):null});function N(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}j.displayName=w;var k=e.i(75157);function S({className:e,...a}){return(0,t.jsx)(v,{"data-slot":"avatar",className:(0,k.cn)("relative flex size-8 shrink-0 overflow-hidden rounded-full",e),...a})}function C({className:e,...a}){return(0,t.jsx)(j,{"data-slot":"avatar-fallback",className:(0,k.cn)("bg-muted flex size-full items-center justify-center rounded-full",e),...a})}var B=e.i(19455);let I=[{name:"Erin M.",initials:"EM",title:"Stories Behind the Bans",text:"I enjoy learning about books that I wouldn't usually look into reading, the stories behind their authors and where and why they were banned, and the bookish goodies.",rating:5,helpful:28,notHelpful:0,timeAgo:"1 month ago",verified:!1},{name:"Webb L.",initials:"WL",title:"Thoughtfully Researched",text:"I enjoy the thoughtfully written and well researched background about each book and why it was banned or challenged.",rating:5,helpful:35,notHelpful:0,timeAgo:"2 weeks ago",verified:!1},{name:"Rachel S.",initials:"RS",title:"A Unique Gift",text:"I received this subscription as a gift, and it was so unique and thoughtful! I enjoy the surprise of getting new books every month, and I like that they make me hear stories that I might not have found on my own. Keep doing such good work!",rating:5,helpful:42,notHelpful:0,timeAgo:"3 weeks ago",verified:!1},{name:"Tiffany H.",initials:"TH",title:"Knowledge and Trinkets",text:"I have two dragons inside me, one seeks knowledge and one enjoys trinkets. The banned books box feeds both! My goal going into this was to read more and support banned books but the empathy, knowledge and understanding of the world at large has grown more than I thought possible.",rating:5,helpful:18,notHelpful:0,timeAgo:"1 month ago",verified:!1},{name:"Kasey A.",initials:"KA",title:"Broadening My Interests",text:"I especially love that I am getting some great books that I might not necessarily have picked up on my own. It is really broadening my interests and turning me onto some new stuff. And cool bookmarks, obviously!",rating:5,helpful:24,notHelpful:0,timeAgo:"3 weeks ago",verified:!1}];e.s(["TestimonialsSection",0,function(){let[e,l]=(0,a.useState)(0),d=Math.ceil(I.length/3),c=I.slice(3*e,(e+1)*3);return(0,t.jsxs)("section",{className:"relative pt-16 md:pt-20 pb-8 md:pb-10 bg-gradient-to-br from-blue-50 via-purple-50 to-teal-50 overflow-hidden",children:[(0,t.jsx)("div",{className:"absolute top-0 left-0 w-full overflow-hidden leading-none",children:(0,t.jsx)("svg",{className:"relative block w-full h-16 md:h-20",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1200 120",preserveAspectRatio:"none",children:(0,t.jsx)("path",{d:"M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z",className:"fill-white"})})}),(0,t.jsx)("div",{className:"container mx-auto px-4 relative z-10",children:(0,t.jsxs)("div",{className:"max-w-7xl mx-auto",children:[(0,t.jsx)(i.motion.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-100px"},transition:{duration:.7,ease:[.22,1,.36,1]},className:"text-center space-y-3 mb-12",children:(0,t.jsx)("h2",{className:"text-4xl md:text-5xl font-display font-black text-brand-deep-purple uppercase tracking-tight",children:"What Are Readers Saying?"})}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("div",{children:(0,t.jsx)(n.AnimatePresence,{mode:"wait",children:(0,t.jsx)(i.motion.div,{initial:{opacity:0,y:20}
1,animate:{opacity:1,y:0},exit:{opacity:0,y:-20},transition:{duration:.4},className:"grid md:grid-cols-3 gap-6",children:c.map((e,a)=>(0,t.jsxs)(i.motion.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.3,delay:.1*a},className:"group relative bg-white rounded-2xl p-6 shadow-md hover:shadow-2xl transition-all duration-300 border border-gray-100 hover:border-brand-teal flex flex-col",children:[(0,t.jsx)("div",{className:"flex gap-1 mb-4",children:[...Array(e.rating)].map((e,a)=>(0,t.jsx)(r.Star,{className:"w-5 h-5 fill-brand-orange text-brand-orange"},a))}),(0,t.jsx)("p",{className:"text-foreground text-lg leading-relaxed mb-6 flex-grow",children:e.text}),(0,t.jsx)("div",{className:"border-t border-gray-100 pt-4",children:(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)(S,{className:"w-10 h-10 border-2 border-brand-teal/20",children:(0,t.jsx)(C,{className:"bg-gradient-to-br from-brand-teal to-brand-purple text-white font-semibold text-sm",children:e.initials})}),(0,t.jsx)("div",{className:"flex-1",children:(0,t.jsx)("p",{className:"font-semibold text-sm text-foreground",children:e.name})})]})})]},a))},e)})}),d>1&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(B.Button,{onClick:()=>{l(e=>0===e?d-1:e-1)},variant:"ghost",size:"icon",className:"absolute -left-4 top-1/2 -translate-y-1/2 bg-white shadow-lg hover:shadow-xl rounded-full h-12 w-12 hover:bg-brand-teal hover:text-white transition-all duration-300 cursor-pointer",children:(0,t.jsx)(s.ChevronLeft,{className:"h-6 w-6"})}),(0,t.jsx)(B.Button,{onClick:()=>{l(e=>e===d-1?0:e+1)},variant:"ghost",size:"icon",className:"absolute -right-4 top-1/2 -translate-y-1/2 bg-white shadow-lg hover:shadow-xl rounded-full h-12 w-12 hover:bg-brand-teal hover:text-white transition-all duration-300 cursor-pointer",children:(0,t.jsx)(o.ChevronRight,{className:"h-6 w-6"})})]})]}),(0,t.jsx)("div",{className:"flex justify-center gap-2 mt-10",children:[...Array(d)].map((a,r)=>(0,t.jsx)("button",{onClick:()=>l(r),className:(0,k.cn)("h-2.5 rounded-full transition-all duration-300 cursor-pointer",e===r?"w-10 bg-brand-teal":"w-2.5 bg-gray-300 hover:bg-brand-teal/50"),"aria-label":`Go to testimonials page ${r+1}`},r))})]})})]})}],6584)},68304,e=>{"use strict";var t=e.i(2639),a=e.i(76594),r=e.i(7933),s=e.i(65535),o=e.i(86274),i=e.i(42601),n=e.i(65647),l=e.i(19455),d=e.i(75157),c=e.i(73872);function u({value:e,onChange:s}){let[o,i]=(0,a.useState)(0);return(0,t.jsx)("div",{className:"flex gap-1.5",children:[1,2,3,4,5].map(a=>(0,t.jsx)("button",{type:"button",onMouseEnter:()=>i(a),onMouseLeave:()=>i(0),onClick:()=>s(a),className:"cursor-pointer p-0.5 transition-transform duration-200 hover:scale-110","aria-label":`Rate ${a} star${a>1?"s":""}`,children:(0,t.jsx)(r.Star,{className:(0,d.cn)("w-7 h-7 transition-colors duration-200",(o||e)>=a?"fill-brand-orange text-brand-orange":"fill-transparent text-gray-300")})},a))})}e.s(["ReviewFormSection",0,function(){let[e,r]=(0,a.useState)({name:"",email:"",rating:0,message:""}),[d,h]=(0,a.useState)("idle"),m=async t=>{if(t.preventDefault(),0===e.rating)return;h("submitting");let{name:a,email:s,rating:o,message:i}=e,n="★".repeat(o)+"☆".repeat(5-o);try{(await (0,c.submitToWeb3Forms)({subject:`New Review from ${a} — ${n}`,from_name:"Banned Books Box Review Form",name:a,email:s,rating:`${n} (${o}/5)`,review:i||"No written review provided"})).success?(h("success"),r({name:"",email:"",rating:0,message:""})):h("error")}catch{h("error")}};return(0,t.jsxs)("section",{className:"relative pb-16 md:pb-20 bg-gradient-to-br from-blue-50 via-purple-50 to-teal-50 overflow-hidden",children:[(0,t.jsx)("div",{className:"container mx-auto px-4 relative z-10",children:(0,t.jsxs)("div",{className:"max-w-7xl mx-auto",children:[(0,t.jsx)(n.motion.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-100px"},transition:{duration:.7,ease:[.22,1,.36,1]},className:"text-center space-y-3 pt-10 md:pt-12 mb-10 md:mb-12",children:(0,t.jsx)("h2",{className:"text-3xl md:text-4xl font-display font-black text-brand-deep-purple uppercase tracking-tight",children:"We'd love to hear from you!"})}),(0,t.jsx)(n.motion.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-80px"},transition:{duration:.7,ease:[.22,1,.36,1]},className:"bg-white rounded-2xl p-8 md:p-10 shadow-md border border-gray-100",children:"success"===d?(0,t.jsxs)(n.motion.div,{initial:{opacity:0,scale:.95}
1,animate:{opacity:1,scale:1},transition:{duration:.4},className:"flex flex-col items-center gap-4 py-8",children:[(0,t.jsx)("div",{className:"w-16 h-16 rounded-full bg-green-50 flex items-center justify-center",children:(0,t.jsx)(o.CheckCircle2,{className:"h-8 w-8 text-green-600"})}),(0,t.jsx)("p",{className:"text-lg font-semibold text-foreground text-center",children:"Thank you for your feedback!"}),(0,t.jsx)("p",{className:"text-muted-foreground text-center max-w-md",children:"We appreciate you taking the time to share your experience with Banned Books Box."}),(0,t.jsx)(l.Button,{type:"button",onClick:()=>h("idle"),variant:"ghost",className:"mt-2 text-brand-teal hover:text-brand-teal/80 cursor-pointer",children:"Submit another review"})]}):(0,t.jsxs)("form",{onSubmit:m,className:"space-y-6",children:[(0,t.jsxs)("div",{className:"grid md:grid-cols-2 gap-6",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("label",{htmlFor:"review-name",className:"text-sm font-semibold text-foreground",children:["Name",(0,t.jsx)("span",{className:"text-brand-orange",children:"*"})]}),(0,t.jsx)("input",{id:"review-name",type:"text",value:e.name,onChange:t=>r({...e,name:t.target.value}),required:!0,className:"w-full px-4 py-3 bg-gray-50 border-2 border-transparent focus:border-brand-teal rounded-xl outline-none text-foreground placeholder:text-muted-foreground transition-all"})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("label",{htmlFor:"review-email",className:"text-sm font-semibold text-foreground",children:["Email",(0,t.jsx)("span",{className:"text-brand-orange",children:"*"})]}),(0,t.jsx)("input",{id:"review-email",type:"email",placeholder:"We won't share this with anyone",value:e.email,onChange:t=>r({...e,email:t.target.value}),required:!0,className:"w-full px-4 py-3 bg-gray-50 border-2 border-transparent focus:border-brand-teal rounded-xl outline-none text-foreground placeholder:text-muted-foreground transition-all"})]})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("label",{className:"text-sm font-semibold text-foreground",children:["How would you rate Banned Books Box?",(0,t.jsx)("span",{className:"text-brand-orange",children:"*"})]}),(0,t.jsx)(u,{value:e.rating,onChange:t=>r({...e,rating:t})})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("label",{htmlFor:"review-message",className:"text-sm font-semibold text-foreground",children:"Tell Us More!"}),(0,t.jsx)("textarea",{id:"review-message",placeholder:"We may share this in the section above",value:e.message,onChange:t=>r({...e,message:t.target.value}),rows:4,className:"w-full px-4 py-3 bg-gray-50 border-2 border-transparent focus:border-brand-teal rounded-xl outline-none text-foreground placeholder:text-muted-foreground resize-none transition-all"})]}),"error"===d&&(0,t.jsxs)("div",{className:"flex items-center gap-3 p-4 bg-red-50 border-2 border-red-200 rounded-xl",children:[(0,t.jsx)(i.AlertCircle,{className:"h-5 w-5 text-red-600 flex-shrink-0"}),(0,t.jsx)("p",{className:"text-red-800 font-medium",children:"Something went wrong. Please try again."})]}),(0,t.jsx)("div",{className:"flex justify-center",children:(0,t.jsx)(l.Button,{type:"submit",disabled:"submitting"===d||0===e.rating,className:"bg-brand-teal hover:bg-brand-teal/90 text-white font-bold px-12 py-6 text-lg rounded-xl transition-all hover:shadow-xl disabled:opacity-50 disabled:cursor-not-allowed cursor-pointer",children:"submitting"===d?(0,t.jsxs)("span",{className:"flex items-center justify-center gap-2",children:[(0,t.jsx)(s.Loader2,{className:"h-5 w-5 animate-spin"}),"Submitting..."]}):"Submit"})})]})})]})}),(0,t.jsx)("div",{className:"absolute bottom-0 left-0 w-full overflow-hidden leading-none rotate-180",children:(0,t.jsx)("svg",{className:"relative block w-full h-16 md:h-20",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1200 120",preserveAspectRatio:"none",children:(0,t.jsx)("path",{d:"M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z",className:"fill-white"})})})]})}])},35992,e=>{"use strict";var t=e.i(2639),a=e.i(76594),r=e.i(65647),s=e.i(26028),o=e.i(88476),i=e.i(28236),n=e.i(39001),l=e.i(52086),d=e.i(93772),c=e.i(19455),u=e.i(40979);
1function h({product:e,index:s,onBuy:o,isAdding:m,formatAmount:x}){let[p,b]=(0,a.useState)(!1),g=e.variants[0],f=e.images[0],v=(0,u.isProductInStock)(e);return(0,t.jsx)(r.motion.div,{initial:{opacity:0,y:40,scale:.95},whileInView:{opacity:1,y:0,scale:1},viewport:{once:!0,margin:"-80px"},transition:{duration:.6,delay:.15*s,ease:[.22,1,.36,1]},className:"relative w-full min-h-[600px]",style:{perspective:"1000px"},children:(0,t.jsxs)("div",{className:`relative w-full h-full transition-transform duration-700 preserve-3d ${p?"rotate-y-180":""}`,style:{transformStyle:"preserve-3d",transform:p?"rotateY(180deg)":"rotateY(0deg)",minHeight:"600px"},children:[(0,t.jsx)("div",{className:"absolute inset-0 w-full h-full backface-hidden",style:{backfaceVisibility:"hidden"},children:(0,t.jsxs)("div",{className:"group relative bg-white rounded-2xl overflow-hidden shadow-lg hover:shadow-2xl transition-all duration-300 border-2 border-white hover:border-brand-teal h-full flex flex-col",children:[(0,t.jsxs)(n.default,{href:`/products/${e.slug}`,"aria-label":`View ${e.name} details`,className:"relative aspect-[3/4] overflow-hidden bg-soft-gray block cursor-pointer",children:[f?(0,t.jsx)(i.default,{src:f.url,alt:e.name,fill:!0,sizes:"(max-width: 768px) 50vw, 25vw",className:`object-cover group-hover:scale-105 transition-transform duration-500 ${v?"":"grayscale opacity-70"}`}):(0,t.jsx)("div",{className:"absolute inset-0 flex items-center justify-center bg-gradient-to-br from-brand-teal/10 to-brand-purple/10",children:(0,t.jsx)("div",{className:"text-6xl opacity-30",children:"📚"})}),!v&&(0,t.jsx)("span",{className:"absolute top-4 right-4 bg-foreground text-background px-4 py-1.5 rounded-full text-xs font-bold uppercase tracking-wider shadow-md",children:"Out of Stock"})]}),(0,t.jsxs)("div",{className:"p-4 space-y-3 flex flex-col flex-grow",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("h3",{className:"font-subheading font-bold text-lg line-clamp-2",children:(0,t.jsx)(n.default,{href:`/products/${e.slug}`,className:"text-foreground hover:text-brand-teal transition-colors cursor-pointer",children:e.name})}),(0,t.jsx)("div",{className:"text-2xl font-display font-black text-brand-teal",children:x(g?.price||0)}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground leading-relaxed line-clamp-2",dangerouslySetInnerHTML:{__html:(()=>{if(!e.description)return"Curated banned and challenged books delivered to your door.";let t=e.description.replace(/<\/(p|div|li|h[1-6])>\s*<(p|div|li|h[1-6])[^>]*>/gi," ").replace(/<[^>]*>/g,"").replace(/&nbsp;/g," ").trim();return(t=(t=t.replace(/BannedTogether/g,"Banned Together")).replace(/Banned Together/g,"<em>Banned Together</em>")).length>120?t.substring(0,120)+"...":t})()}})]}),(0,t.jsxs)("div",{className:"flex gap-2 mt-auto",children:[(0,t.jsx)(c.Button,{onClick:()=>b(!0),variant:"outline",className:"flex-1 border-2 border-foreground
1/20 hover:border-foreground/40 font-semibold py-5 rounded-full",children:"Read More"}),(0,t.jsx)(c.Button,{onClick:o,disabled:m||!g||!v,className:"flex-1 bg-brand-teal hover:bg-brand-teal/90 text-white font-bold py-5 rounded-full shadow-lg hover:shadow-xl transform hover:-translate-y-1 transition-all duration-300 disabled:opacity-50 disabled:cursor-not-allowed disabled:transform-none",children:m?(0,t.jsx)("span",{className:"flex items-center justify-center gap-2",children:(0,t.jsx)("span",{className:"animate-spin",children:"⏳"})}):v?(0,t.jsxs)("span",{className:"flex items-center justify-center gap-2",children:[(0,t.jsx)(d.ShoppingCart,{className:"w-4 h-4"}),"Buy"]}):(0,t.jsx)("span",{className:"text-xs",children:"Out of Stock"})})]})]})]})}),(0,t.jsx)("div",{className:"absolute inset-0 w-full h-full backface-hidden",style:{backfaceVisibility:"hidden",transform:"rotateY(180deg)"},children:(0,t.jsx)("div",{className:"relative bg-white rounded-2xl shadow-lg border-2 border-brand-teal h-full flex flex-col overflow-hidden",children:(0,t.jsxs)("div",{className:"relative p-6 space-y-4 flex flex-col flex-grow overflow-y-auto",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between border-b border-border pb-4",children:[(0,t.jsx)("h3",{className:"text-xl font-subheading font-black text-foreground",children:e.name}),(0,t.jsx)("button",{onClick:()=>b(!1),className:"p-2 hover:bg-gray-100 rounded-full transition-colors","aria-label":"Close description",children:(0,t.jsx)(l.X,{className:"w-5 h-5 text-foreground"})})]}),(0,t.jsxs)("div",{className:"text-center py-3 border-y border-border",children:[(0,t.jsx)("div",{className:"text-3xl font-display font-black text-brand-teal",children:x(g?.price||0)}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground mt-1",children:"one-time purchase"})]}),e.description&&(0,t.jsx)("div",{className:"text-sm text-muted-foreground leading-relaxed prose prose-sm max-w-none flex-grow",dangerouslySetInnerHTML:{__html:e.description?e.description.replace(/<p style="text-align: justify"><br><\/p>/g,"").replace(/<p style="text-align: justify">/g,"<p>").replace(/<p><br><\/p>/g,"").replace(/<br\s*\/?>/g,"</p><p>").replace(/<p>\s*<\/p>/g,"").trim():"Curated banned and challenged books delivered to your door. Support literary freedom with every purchase."}}),(0,t.jsxs)("div",{className:"space-y-3 mt-auto pt-4",children:[(0,t.jsx)(c.Button,{onClick:o,disabled:m||!g||!v,className:"w-full bg-brand-teal hover:bg-brand-teal/90 text-white font-bold py-6 text-base rounded-full shadow-lg hover:shadow-xl transform hover:-translate-y-1 transition-all duration-300 disabled:opacity-50 disabled:cursor-not-allowed disabled:transform-none",children:m?(0,t.jsxs)("span",{className:"flex items-center justify-center gap-2",children:[(0,t.jsx)("span",{className:"animate-spin",children:"⏳"})," Adding to Cart..."]}):v?(0,t.jsxs)("span",{className:"flex items-center justify-center gap-2",children:[(0,t.jsx)(d.ShoppingCart,{className:"w-5 h-5"}),"Buy Now"]}):(0,t.jsx)("span",{children:"Out of Stock"})}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground text-center",children:v?"Ships within 3 business days":"Currently unavailable — check back soon"})]})]})})})]})})}let m=(0,e.i(61034).default)("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);function x({index:e=0}){let[s,o]=(0,a.useState)(!1),u="Classic Box",h="$47.00",p=`
2    <p class="mb-4">Book bans aren't new—and they're not just coming for today's stories. At Banned Books Box, we typically feature books published within the past decade, focusing on contemporary voices and the challenges they face today. But advocacy is what drives everything we do—and sometimes that means looking back.</p>
3    <p class="mb-4">That's why we're releasing a limited-time throwback box featuring a deluxe edition of George Orwell's dystopian classic <em>1984</em>. This elegant edition includes a leatherette cover, gilt edging, and a ribbon marker.</p>
4    <p class="font-semibold mb-2">Inside the box, you'll also find:</p>
5    <ul class="list-disc pl-5 mb-4 space-y-1">
6      <li>A 1-inch pinback button featuring Joe Biel's <em>Orwell Was Right</em> art</li>
7      <li>A standout sticker from AnneArchy: <em>Do Not Comply With the Whims of the Regime</em></li>
8      <li><em>Fight Fascism</em>, an informational zine from Erin Fong Studio in collaboration with Emily Andrews</li>
9    </ul>
10    <p>Since Orwell's fiction still feels a bit too real.</p>
11  `,b=()=>{window.open("https://checkout.bannedbooksbox.com/checkout/buy/416576","_blank")};return(0,t.jsx)(r.motion.div,{initial:{opacity:0,y:40,scale:.95},whileInView:{opacity:1,y:0,scale:1},viewport:{once:!0,margin:"-80px"},transition:{duration:.6,delay:.15*e,ease:[.22,1,.36,1]},className:"relative w-full min-h-[600px]",style:{perspective:"1000px"},children:(0,t.jsxs)("div",{className:`relative w-full h-full transition-transform duration-700 preserve-3d ${s?"rotate-y-180":""}`,style:{transformStyle:"preserve-3d",transform:s?"rotateY(180deg)":"rotateY(0deg)",minHeight:"600px"},children:[(0,t.jsx)("div",{className:"absolute inset-0 w-full h-full backface-hidden",style:{backfaceVisibility:"hidden"},children:(0,t.jsxs)("div",{className:"group relative bg-white rounded-2xl overflow-hidden shadow-lg hover:shadow-2xl transition-all duration-300 border-2 border-white hover:border-brand-orange h-full flex flex-col",children:[(0,t.jsx)(n.default,{href:"/products/classic-box","aria-label":`View ${u} details`,className:"relative aspect-[3/4] overflow-hidden bg-gradient-to-br from-brand-orange/5 to-brand-purple/5 block cursor-pointer",children:(0,t.jsx)(i.default,{src:"https://subbly-production-builder.nyc3.cdn.digitaloceanspaces.com/projects/01KC301CDB3WZB91C4GDKDCF8J/uploads/a2ce69c2-f425-4b04-b37e-8e2cdff56e63-1984.jpg",alt:u,fill:!0,sizes:"(max-width: 768px) 100vw, 50vw",className:"object-cover object-[center_25%] group-hover:scale-105 transition-transform duration-500"})}),(0,t.jsxs)("div",{className:"p-4 space-y-3 flex flex-col flex-grow",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("h3",{className:"font-subheading font-bold text-lg line-clamp-2",children:(0,t.jsx)(n.default,{href:"/products/classic-box",className:"text-foreground hover:text-brand-orange transition-colors cursor-pointer",children:u})}),(0,t.jsx)("div",{className:"text-2xl font-display font-black text-brand-orange",children:h}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground leading-relaxed line-clamp-2",children:"Purchase your box today—supply is limited."})]}),(0,t.jsxs)("div",{className:"flex gap-2 mt-auto",children:[(0,t.jsx)(c.Button,{onClick:()=>o(!0),variant:"outline",className:"flex-1 border-2 border-foreground
11/20 hover:border-foreground/40 font-semibold py-5 rounded-full",children:"Read More"}),(0,t.jsx)(c.Button,{onClick:b,className:"flex-1 bg-brand-orange hover:bg-brand-orange/90 text-white font-bold py-5 rounded-full shadow-lg hover:shadow-xl transform hover:-translate-y-1 transition-all duration-300",children:(0,t.jsxs)("span",{className:"flex items-center justify-center gap-2",children:[(0,t.jsx)(d.ShoppingCart,{className:"w-4 h-4"}),"Buy"]})})]})]})]})}),(0,t.jsx)("div",{className:"absolute inset-0 w-full h-full backface-hidden",style:{backfaceVisibility:"hidden",transform:"rotateY(180deg)"},children:(0,t.jsx)("div",{className:"relative bg-white rounded-2xl shadow-lg border-2 border-brand-orange h-full flex flex-col overflow-hidden",children:(0,t.jsxs)("div",{className:"relative p-6 space-y-4 flex flex-col flex-grow overflow-y-auto",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between border-b border-border pb-4",children:[(0,t.jsx)("h3",{className:"text-xl font-subheading font-black text-foreground",children:u}),(0,t.jsx)("button",{onClick:()=>o(!1),className:"p-2 hover:bg-gray-100 rounded-full transition-colors","aria-label":"Close description",children:(0,t.jsx)(l.X,{className:"w-5 h-5 text-foreground"})})]}),(0,t.jsxs)("div",{className:"text-center py-3 border-y border-border",children:[(0,t.jsx)("div",{className:"text-3xl font-display font-black text-brand-orange",children:h}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground mt-1",children:"one-time purchase"})]}),(0,t.jsx)("div",{className:"text-sm text-muted-foreground leading-relaxed prose prose-sm max-w-none flex-grow",dangerouslySetInnerHTML:{__html:p}}),(0,t.jsxs)("div",{className:"space-y-3 mt-auto pt-4",children:[(0,t.jsx)(c.Button,{onClick:b,className:"w-full bg-brand-orange hover:bg-brand-orange/90 text-white font-bold py-6 text-base rounded-full shadow-lg hover:shadow-xl transform hover:-translate-y-1 transition-all duration-300",children:(0,t.jsxs)("span",{className:"flex items-center justify-center gap-2",children:[(0,t.jsx)(m,{className:"w-5 h-5"}),"Buy Now"]})}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground text-center",children:"Ships within 3 business days"})]})]})})})]})})}e.s(["SingleBoxesSection",0,function({products:e}){let{addToCart:i}
11=(0,s.useSubblyCart)(),{formatAmount:n}=(0,o.useFormatAmount)(),[l,d]=(0,a.useState)({}),c=async e=>{let t=e.variants[0];if(t&&(0,u.isProductInStock)(e)){d(t=>({...t,[e.id]:!0}));try{await i({productId:t.id,quantity:1})}finally{d(t=>({...t,[e.id]:!1}))}}};return(0,t.jsxs)("section",{id:"shop",className:"relative py-12 md:py-16 bg-bg-teal-light overflow-hidden scroll-mt-24",children:[(0,t.jsx)("div",{className:"absolute top-10 right-10 w-96 h-96 bg-brand-purple/5 rounded-full blur-3xl"}),(0,t.jsx)("div",{className:"absolute bottom-10 left-10 w-96 h-96 bg-brand-orange/5 rounded-full blur-3xl"}),(0,t.jsx)("div",{className:"container mx-auto px-4 relative z-10",children:(0,t.jsxs)("div",{className:"max-w-7xl mx-auto",children:[(0,t.jsxs)(r.motion.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-100px"},transition:{duration:.7,ease:[.22,1,.36,1]},className:"text-center space-y-3 mb-8",children:[(0,t.jsx)("h2",{className:"text-4xl md:text-5xl font-display font-black text-foreground uppercase tracking-tight",children:"Shop Single Boxes"}),(0,t.jsx)("div",{className:"w-24 h-1 bg-gradient-to-r from-brand-orange via-brand-teal to-brand-orange mx-auto rounded-full"}),(0,t.jsxs)("p",{className:"text-xl text-muted-foreground max-w-3xl mx-auto leading-relaxed font-normal rounded-none pt-2",children:["Not ready for a subscription? Purchase individual boxes and books.",(0,t.jsx)("br",{}),"Perfect for gifts or trying before you commit."]})]}),(0,t.jsxs)("div",{className:"grid md:grid-cols-3 gap-8 max-w-7xl mx-auto",children:[(0,t.jsx)(x,{index:0}),e.map((e,a)=>(0,t.jsx)(h,{product:e,index:a+1,onBuy:()=>
11c(e),isAdding:l[e.id]||!1,formatAmount:n},e.id))]})]})})]})}],35992)}]);

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.