PageSourceSearch

https://loveacrossborders.com/assets/SiteHeader-BqOOKgqK.js

js loveacrossborders.com collected 2026-10-08 14:15:58 UTC 4,080 bytes, 1 lines download raw bytes

1import{h as j,r as y,j as e,ac as b,L as s,l as f}from"./index-hs4a0mYW.js";const N=[["path",{d:"M16 10a4 4 0 0 1-8 0",key:"1ltviw"}],["path",{d:"M3.103 6.034h17.794",key:"awc11p"}],["path",{d:"M3.4 5.467a2 2 0 0 0-.4 1.2V20a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6.667a2 2 0 0 0-.4-1.2l-2-2.667A2 2 0 0 0 17 2H7a2 2 0 0 0-1.6.8z",key:"o988cm"}]],w=j("shopping-bag",N),c="lab-cart-v1",o=[],l=new Set;let d=null,i=o,x=!1;function h(){if(typeof window>"u"){i=o,d=null;return}const r=window.localStorage.getItem(c);if(r!==d){if(d=r,!r){i=o;return}try{const n=JSON.parse(r);i=Array.isArray(n)?n:o}catch{i=o}}}function p(){x||typeof window>"u"||(x=!0,h(),window.addEventListener("storage",r=>{r.key===c&&(h(),l.forEach(n=>n()))}))}function u(){return p(),i}function m(r){window.localStorage.setItem(c,JSON.stringify(r)),d=window.localStorage.getItem(c),i=r,l.forEach(n=>n())}function v(r){return p(),l.add(r),()=>{l.delete(r)}}function k(){return y.useSyncExternalStore(v,u,()=>o)}function E(r,n=1){const t=u().slice(),a=t.findIndex(g=>g.product_id===r.product_id);a>=0?t[a]={...t[a],quantity:Math.min(20,t[a].quantity+n)}:t.push({...r,quantity:n}),m(t)}function B(r,n){const t=u().map(a=>a.product_id===r?{...a,quantity:Math.max(1,Math.min(20,n))}:a);m(t)}function L(r){m(u().filter(n=>n.product_id!==r))}function M(){m([])}function S(r){return r.reduce((n,t)=>n+t.quantity,0)}function _(r){return r.reduce((n,t)=>n+t.price_cents*t.quantity,0)}function I(){const r=k(),n=S(r);return e.jsxs(e.Fragment,{children:[e.jsx(b,{}),e.jsx("header",{className:"border-b border-border bg-background",children:e.jsxs("div",{className:"mx-auto flex max-w-6xl items-center justify-between px-6 sm:px-8 py-5",children:[e.jsxs(s,{to:"/",className:"flex items-center gap-3 text-primary",children:[e.jsx("img",{src:f.url,alt:"Love Across Borders Publishing",className:"h-9 w-auto"}),e.jsx("span",{className:"hidden sm:inline font-serif text-xl",children:"Love Across Borders"})]}),e.jsxs("nav",{className:"flex items-center gap-5 sm:gap-6 text-sm text-muted-foreground",children:[e.jsx(s,{to:"/shop",className:"hover:text-foreground underline-offset-4 hover:underline",children:"Shop"}),e.jsx(s,{to:"/books",className:"hover:text-foreground underline-offset-4 hover:underline",children:"Books"}),e.jsx(s,{to:"/talkable-books",className:"hidden sm:inline hover:text-foreground underline-offset-4 hover:underline",children:"Talkable Books"}),e.jsx(s,{to:"/bundles",className:"hidden sm:inline hover:text-foreground underline-offset-4 hover:underline",children:"Bundles"}),e.jsx(s,{to:"/account/orders",className:"hidden sm:inline hover:text-foreground underline-offset-4 hover:underline",children:"Account"}),e.jsxs(s,{to:"/cart",className:"inline-flex items-center gap-1.5 text-foreground hover:text-primary transition-colors",children:[e.jsx(w,{className:"h-4 w-4","aria-hidden":!0}),e.jsx("span",{children:"Cart"}),n>0&&e.jsx("span",{className:"text-[10px] leading-none px-1.5 py-0.5 rounded-full bg-primary text-primary-foreground",children:n})]})]})]})})]})}function q({active:r}){const n=t=>`hover:text-foreground underline-offset-4 hover:underline ${r===t?"text-primary font-medium":"text-muted-foreground"}`;return e.jsx("header",{className:"border-b border-border bg-background",children:e.jsxs("div",{className:"mx-auto flex max-w-6xl items-center justify-between px-6 sm:px-8 py-5",children:[e.jsxs(s,{to:"/admin",className:"flex items-center gap-3 text-primary",children:[e.jsx("img",{src:f.url,alt:"",className:"h-9 w-auto"}),e.jsx("span",{className:"hidden sm:inline font-serif text-xl",children:"Admin"})]}),e.jsxs("nav",{className:"flex items-center gap-5 sm:gap-6 text-sm",children:[e.jsx(s,{to:"/admin",className:n("home"),children:"Home"}),e.jsx(s,{to:"/admin/shop",className:n("products"),children:"Products"}),e.jsx(s,{to:"/admin/orders",className:n("orders"),children:"Orders"}),e.jsx(s,{to:"/shop",className:"text-muted-foreground hover:text-foreground underline-offset-4 hover:underline",children:"View shop →"})]})]})})}export{q as A,I as S,B as a,L as b,_ as c,E as d,M as e,k as u};

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.