PageSourceSearch

https://mantralingua.com/build/assets/UpsellBook-DXq9X4Os.js

js mantralingua.com collected 2026-09-24 19:31:35 UTC 7,660 bytes, 1 lines download raw bytes

1import{r as t,p as g,j as e,c as f,L as b,u as Z,H as j,d as m}from"./app-I9F_6UEm.js";import{B as w}from"./Button-DQCZeME8.js";import{G as L}from"./GuestLayout-7D8r9Bk7.js";import{f as v}from"./priceUtils-BJsy9OAc.js";import"./BaseLayout-B4g8AKOz.js";const A=new Map([["bold",t.createElement(t.Fragment,null,t.createElement("path",{d:"M140,128v40a12,12,0,0,1-24,0V128a12,12,0,0,1,24,0Zm28.06-1.19-4,40a12,12,0,0,0,10.75,13.13c.4,0,.81.06,1.2.06a12,12,0,0,0,11.93-10.81l4-40a12,12,0,0,0-23.88-2.38Zm-80.12,0a12,12,0,0,0-23.88,2.38l4,40A12,12,0,0,0,80,180c.39,0,.8,0,1.2-.06a12,12,0,0,0,10.75-13.13Zm156-37.22-15.07,113A20.06,20.06,0,0,1,209,220H47a20.06,20.06,0,0,1-19.82-17.36l-15.07-113A12,12,0,0,1,24,76H66.55L119,16.1a12,12,0,0,1,18.06,0L189.45,76H232a12,12,0,0,1,11.89,13.59ZM98.45,76h59.1L128,42.22Zm119.84,24H37.71l12.8,96h155Z"}))],["duotone",t.createElement(t.Fragment,null,t.createElement("path",{d:"M232,88,216.93,201.06A8,8,0,0,1,209,208H47a8,8,0,0,1-7.93-6.94L24,88Z",opacity:"0.2"}),t.createElement("path",{d:"M136,120v56a8,8,0,0,1-16,0V120a8,8,0,0,1,16,0Zm36.84-.8-5.6,56A8,8,0,0,0,174.4,184a7.32,7.32,0,0,0,.81,0,8,8,0,0,0,7.95-7.2l5.6-56a8,8,0,0,0-15.92-1.6Zm-89.68,0a8,8,0,0,0-15.92,1.6l5.6,56a8,8,0,0,0,8,7.2,7.32,7.32,0,0,0,.81,0,8,8,0,0,0,7.16-8.76ZM239.93,89.06,224.86,202.12A16.06,16.06,0,0,1,209,216H47a16.06,16.06,0,0,1-15.86-13.88L16.07,89.06A8,8,0,0,1,24,80H68.37L122,18.73a8,8,0,0,1,12,0L187.63,80H232a8,8,0,0,1,7.93,9.06ZM89.63,80h76.74L128,36.15ZM222.86,96H33.14L47,200H209Z"}))],["fill",t.createElement(t.Fragment,null,t.createElement("path",{d:"M238,82.73A8,8,0,0,0,232,80H187.63L134,18.73a8,8,0,0,0-12,0L68.37,80H24a8,8,0,0,0-7.93,9.06L31.14,202.12A16.06,16.06,0,0,0,47,216H209a16.06,16.06,0,0,0,15.86-13.88L239.93,89.06A8,8,0,0,0,238,82.73ZM81.6,184a7.32,7.32,0,0,1-.81,0,8,8,0,0,1-8-7.2l-5.6-56a8,8,0,0,1,15.92-1.6l5.6,56A8,8,0,0,1,81.6,184Zm54.4-8a8,8,0,0,1-16,0V120a8,8,0,0,1,16,0ZM89.63,80,128,36.15,166.37,80Zm99.13,40.8-5.6,56a8,8,0,0,1-7.95,7.2,7.32,7.32,0,0,1-.81,0,8,8,0,0,1-7.16-8.76l5.6-56a8,8,0,0,1,15.92,1.6Z"}))],["light",t.createElement(t.Fragment,null,t.createElement("path",{d:"M134,120v56a6,6,0,0,1-12,0V120a6,6,0,0,1,12,0Zm40.83-.6-5.6,56A6,6,0,0,0,174.6,182l.61,0a6,6,0,0,0,6-5.4l5.6-56a6,6,0,0,0-11.94-1.2Zm-93.66,0a6,6,0,0,0-11.94,1.2l5.6,56a6,6,0,0,0,6,5.4l.61,0a6,6,0,0,0,5.37-6.57ZM238,88.79,222.87,201.85A14,14,0,0,1,209,214H47a14,14,0,0,1-13.87-12.15L18.05,88.79A6,6,0,0,1,24,82H69.28l54.2-61.95a6,6,0,0,1,9,0l54.2,62H232A6,6,0,0,1,238,88.79ZM85.22,82h85.56L128,33.11ZM225.15,94H30.85L45,200.26A2,2,0,0,0,47,202H209a2,2,0,0,0,2-1.74Z"}))],["regular",t.createElement(t.Fragment,null,t.createElement("path",{d:"M136,120v56a8,8,0,0,1-16,0V120a8,8,0,0,1,16,0Zm36.84-.8-5.6,56A8,8,0,0,0,174.4,184a7.32,7.32,0,0,0,.81,0,8,8,0,0,0,7.95-7.2l5.6-56a8,8,0,0,0-15.92-1.6Zm-89.68,0a8,8,0,0,0-15.92,1.6l5.6,56a8,8,0,0,0,8,7.2,7.32,7.32,0,0,0,.81,0,8,8,0,0,0,7.16-8.76ZM239.93,89.06,224.86,202.12A16.06,16.06,0,0,1,209,216H47a16.06,16.06,0,0,1-15.86-13.88L16.07,89.06A8,8,0,0,1,24,80H68.37L122,18.73a8,8,0,0,1,12,0L187.63,80H232a8,8,0,0,1,7.93,9.06ZM89.63,80h76.74L128,36.15ZM222.86,96H33.14L47,200H209Z"}))],["thin",t.createElement(t.Fragment,null,t.createElement("path",{d:"M132,120v56a4,4,0,0,1-8,0V120a4,4,0,0,1,8,0Zm49.2-4a4,4,0,0,0-4.38,3.58l-5.6,56A4,4,0,0,0,174.8,180l.41,0a4,4,0,0,0,4-3.6l5.6-56A4,4,0,0,0,181.2,116ZM74.8,116a4,4,0,0,0-3.58,4.38l5.6,56a4,4,0,0,0,4,3.6l.41,0a4,4,0,0,0,3.58-4.38l-5.6-56A4,4,0,0,0,74.8,116ZM236,88.53,220.89,201.59A12,12,0,0,1,209,212H47a12,12,0,0,1-11.89-10.41L20,88.53A4,4,0,0,1,21,85.37,4,4,0,0,1,24,84H70.18L125,21.37a4,4,0,0,1,6,0L185.82,84H232a4,4,0,0,1,3,1.37A4,4,0,0,1,236,88.53ZM80.82,84h94.36L128,30.07Zm146.61,8H28.57L43,200.53A4,4,0,0,0,47,204H209a4,4,0,0,0,4-3.47Z"}))]]),u=t.forwardRef((s,l)=>t.createElement(g,{ref:l,...s,weights:A}));u.displayName="BasketIcon";function H({image:s,href:l}){const n=e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"w-full bg-cover bg-center pt-[100%] saturate-[1.15] md:w-[296px]",style:{backgroundImage:`url(${s})`}}),e.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-black-0/60 opacity-0 transition-opacity group-hover:opacity-100",children:e.jsx("span",{className:"text-p-md font-semibold text-white-0",children:"View more"})})]}),r="group relative block w-full overflow-hidden md:w-[296px]";return l?e.jsx(b,{href:l,className:r,children:n}):e.jsx("div",{className:r,children:n})}function k({image:s,href:l,title:n,price:r,description:o,buttonText:c="Select",buttonVariant:i="outline",onButtonClick:d}){return e.jsx("div",{className:"w-full max-w-[765px] bg-blue-25 p-6",children:e.jsxs("div",{className:"flex flex-col overflow-hidden rounded-[4px] bg-white-0 shadow-realistic md:flex-row",children:[s&&e.jsx("div",{className:"flex",children:e.jsx(H,{image:s,href:l})}),e.jsxs("div",{className:"text-black flex flex-1 flex-col items-center gap-2 p-6 text-center",children:[n&&e.jsx("h3",{className:"text-[19px] font-bold",children:n}),r&&e.jsx("h4",{className:"text-[19px] font-extrabold",children:r}),o&&e.jsx("p",{className:"text-[13px]",children:o}),e.jsx("button",{onClick:d,className:`flex w-full items-center justify-center gap-[10px] rounded-[4px] border border-black-0 bg-blue-500 p-3 text-[13px] ${i==="outline"?"bg-green-100 text-black-0":"text-white-0"}`,children:i==="outline"?e.jsxs(e.Fragment,{children:["Added to basket"," ",e.jsx(f,{weight:"duotone",size:18})]}):e.jsxs(e.Fragment,{children:["Add to basket"," ",e.jsx(u,{weight:"duotone",size:18})]})})]})]})})}const N={penpal:"PENpal is a clever device that brings our books, posters, and stickers to life by playing audio when touched, creating a fun, multi-sensory reading experience for children. Compatible with over 1,700 dual-language titles in English and more than 60 other languages.",classroompen:"ClassroomPEN allows you to bring the sound of our books, posters, and stickers wirelessly into the classroom through a Bluetooth-enabled speaker. Using the same technology as PENpal, ClassroomPEN can read over 1,700 books and charts in 60+ languages, making shared learning more engaging for the whole class."};function E(s,l){const n=(s==null?void 0:s.toLowerCase())??"";return N[n]??l}function F(s){const{products:l,currencySymbol:n}=s,r=t.useMemo(()=>(l==null?void 0:l.data)??[],[l]),[o,c]=t.useState(null),{processing:i,post:d,setData:x}=Z({products:{}}
1);function h(a){if(o===a){c(null);return}c(a),x(()=>({products:{[a]:1}}))}const p=()=>{if(o){d("/basket/store",{onSuccess:()=>{m.visit("/basket",{replace:!0})}});return}m.visit("/basket",{replace:!0})};return e.jsxs(L,{children:[e.jsx(j,{title:"Shop Books - Mantra Lingua"}),e.jsxs("div",{className:"bg-blue-25 p-4 text-center",children:[e.jsx("h2",{className:"text-black text-h4 font-bold",children:"Enhance with Audio and Digital"}),e.jsx("p",{className:"text-black text-p-md font-normal",children:"Upgrade Your Experience with Interactive Options"})]}),e.jsxs("div",{className:"bg-white-0 p-6",children:[e.jsx("div",{className:"mb-6 flex flex-col items-center justify-center gap-4 md:flex-row",children:r.map(a=>e.jsx(k,{image:a.image,href:`/shop-extra/${a.id}/${a.slug}`,title:a.name||"",price:a.price!=null?`${n}${v(a.price)}`:void 0,description:E(a.name,a.short_description),buttonText:"Select",buttonVariant:o===a.id?"outline":"default",onButtonClick:()=>h(a.id)},a.id))}),e.jsx("div",{className:"mx-auto flex max-w-[1600px] flex-row items-center justify-center",children:e.jsx(w,{text:i?"Adding...":"Continue",variant:"outline",className:"w-[300px] p-3",textSize:" !text-[14px] font-normal",disabled:i,onClick:()=>p()})})]})]})}export{F as default};

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.