1import{r as o,j as e,t as a,l as p,L as s}from"./index-hs4a0mYW.js";import{u as f}from"./useServerFn-DgMZqDJQ.js";import{s as j}from"./newsletter.functions-BPJ19l6O.js";function g({source:d="footer"}){const u=f(j),[l,i]=o.useState(""),[r,c]=o.useState(!1),[x,m]=o.useState(!1);async function h(n){if(n.preventDefault(),!r){c(!0);try{(await u({data:{email:l,source:d}})).status==="already_confirmed"?a.success("You're already on the list."):a.success("Check your inbox to confirm."),m(!0),i("")}catch(t){a.error(t instanceof Error?t.message:"Could not subscribe.")}finally{c(!1)}}}return e.jsxs("form",{onSubmit:h,className:"space-y-2",children:[e.jsx("div",{className:"text-xs uppercase tracking-wider text-muted-foreground",children:"Newsletter"}),e.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:"Occasional letters on new work, ideas, and offers. No spam. Unsubscribe anytime."}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx("input",{type:"email",required:!0,value:l,onChange:n=>i(n.target.value),placeholder:"[email protected]",maxLength:255,className:"flex-1 px-3 py-2 text-sm rounded bg-card border border-border text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring"}),e.jsx("button",{type:"submit",disabled:r,className:"px-4 py-2 text-xs rounded bg-primary text-primary-foreground hover:opacity-90 disabled:opacity-50 uppercase tracking-wider",children:r?"â¦":x?"Sent":"Join"})]}),e.jsxs("p",{className:"text-[11px] text-muted-foreground",children:["By subscribing you agree to receive occasional emails and confirm you've read our"," ",e.jsx("a",{href:"/privacy",className:"underline",children:"Privacy Policy"}),"."]})]})}function y(){return e.jsxs("footer",{className:"border-t border-border bg-background text-foreground",children:[e.jsxs("div",{className:"mx-auto max-w-6xl px-8 py-12 grid gap-10 md:grid-cols-4 text-sm",children:[e.jsxs("div",{className:"md:col-span-1",children:[e.jsx("img",{src:p.url,alt:"Love Across Borders Publishing",className:"h-16 w-auto",loading:"lazy"}),e.jsx("p",{className:"mt-4 text-xs leading-relaxed text-muted-foreground",children:"The publishing imprint of Life of Experience. Books, ebooks, and a small shop."}),e.jsx("div",{className:"mt-6",children:e.jsx(g,{source:"footer"})})]}),e.jsxs("div",{children:[e.jsx("div",{className:"text-xs uppercase tracking-wider text-muted-foreground",children:"Shop"}),e.jsxs("ul",{className:"mt-3 space-y-1.5",children:[e.jsx("li",{children:e.jsx(s,{to:"/shop",className:"hover:underline underline-offset-4",children:"All products"})}),e.jsx("li",{children:e.jsx(s,{to:"/cart",className:"hover:underline underline-offset-4",children:"Cart"})}),e.jsx("li",{children:e.jsx(s,{to:"/pricing",className:"hover:underline underline-offset-4",children:"Pricing"})}),e.jsx("li",{children:e.jsx(s,{to:"/account/orders",className:"hover:underline underline-offset-4",children:"My orders"})}),e.jsx("li",{children:e.jsx(s,{to:"/support",className:"hover:underline underline-offset-4",children:"Support the work"})})]})]}),e.jsxs("div",{children:[e.jsx("div",{className:"text-xs uppercase tracking-wider text-muted-foreground",children:"Read"}),e.jsxs("ul",{className:"mt-3 space-y-1.5",children:[e.jsx("li",{children:e.jsx(s,{to:"/books",className:"hover:underline underline-offset-4",children:"Books"})}),e.jsx("li",{children:e.jsx(s,{to:"/also-by",className:"hover:underline underline-offset-4",children:"Also by Shaun J Apple"})})]}),e.jsx("div",{className:"mt-6 text-xs uppercase tracking-wider text-muted-foreground",children:"Labs (in progress)"}),e.jsxs("ul",{className:"mt-3 space-y-1.5 text-muted-foreground",children:[e.jsx("li",{children:e.jsx(s,{to:"/talkable-books",className:"hover:underline underline-offset-4",children:"Talkable Books"})}),e.jsx("li",{children:e.jsx(s,{to:"/twin",className:"hover:underline underline-offset-4",children:"AI Twin"})}),e.jsx("li",{children:e.jsx(s,{to:"/harm-reduction",className:"hover:underline underline-offset-4",children:"Harm Reduction"})})]})]}),e.jsxs("div",{children:[e.jsx("div",{className:"text-xs uppercase tracking-wider text-muted-foreground",children:"Across the network"}),e.jsxs("ul",{className:"mt-3 space-y-1.5",children:[e.jsxs("li",{children:[e.jsx("a",{href:"https://lifeofexperience.com",rel:"noopener",className:"text-primary hover:underline underline-offset-4",children:"lifeofexperience.com"}),e.jsx("div",{className:"text-xs text-muted-foreground",children:"Parent brand, community, and mentorship"})]}),e.jsxs("li",{className:"pt-1",children:[e.jsx("a",{href:"https://shaunapple.com",rel:"noopener",className:"text-primary hover:underline underline-offset-4",children:"shaunapple.com"}),e.jsx("div",{className:"text-xs text-muted-foreground",children:"The author, appearances, and long form writing"})]}),e.jsxs("li",{className:"pt-1",children:[e.jsx("a",{href:"https://loveacrossborders.com",rel:"noopener",className:"text-accent hover:underline underline-offset-4",children:"loveacrossborders.com"}),e.jsx("div",{className:"text-xs text-muted-foreground",children:"You are here. The publishing imprint."})]})]})]})]}),e.jsxs("div",{className:"mx-auto max-w-6xl px-8 py-5 flex flex-wrap items-center justify-between gap-3 text-xs text-muted-foreground border-t border-border",children:[e.jsxs("span",{children:["© ",new Date().getFullYear()," Life of Experience, LLC · Love Across Borders Publishing"]}),e.jsxs("nav",{className:"flex flex-wrap items-center gap-5",children:[e.jsx(s,{to:"/terms",children:"Terms"}),e.jsx(s,{to:"/privacy",children:"Privacy"}),e.jsx(s,{to:"/refunds",children:"Refunds"}),e.jsx(s,{to:"/help",children:"Help"}),e.jsx("a",{href:"mailto:[email protected]",children:"Contact"}),e.jsx(s,{to:"/admin",children:"Admin"})]})]})]})}export{y as S};
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.