1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8694],{8982:function(e,t,r){Promise.resolve().then(r.t.bind(r,7960,23)),Promise.resolve().then(r.bind(r,9102)),Promise.resolve().then(r.bind(r,7388)),Promise.resolve().then(r.bind(r,4340)),Promise.resolve().then(r.bind(r,3484)),Promise.resolve().then(r.bind(r,2964)),Promise.resolve().then(r.bind(r,3330)),Promise.resolve().then(r.bind(r,3432)),Promise.resolve().then(r.bind(r,4332)),Promise.resolve().then(r.bind(r,9877)),Promise.resolve().then(r.bind(r,7192)),Promise.resolve().then(r.bind(r,8353)),Promise.resolve().then(r.bind(r,4636)),Promise.resolve().then(r.bind(r,1755)),Promise.resolve().then(r.bind(r,5377)),Promise.resolve().then(r.bind(r,3486)),Promise.resolve().then(r.bind(r,6950)),Promise.resolve().then(r.t.bind(r,8003,23))},3432:function(e,t,r){"use strict";r.d(t,{default:function(){return l}});var n=r(7437),a=r(7192);function l(){let{t:e}=(0,a.Q)(),t="".concat(e("footer.contact","×צ×רת קשר")," â WhatsApp");return(0,n.jsx)("a",{href:"https://api.whatsapp.com/send/?phone=97226516996&text&type=phone_number&app_absent=0",target:"_blank",rel:"noopener noreferrer","aria-label":t,title:t,className:"floating-whatsapp-button fixed end-[18px] z-[55] grid h-12 w-12 place-items-center rounded-full bg-[#339966] text-white shadow-[0_8px_24px_rgba(0,0,0,0.24)] hover:bg-[#2d8659] hover:shadow-[0_10px_28px_rgba(0,0,0,0.3)] focus-visible:outline-none focus-visible:ring-4 focus-visible:ring-[#339966]/35 lg:end-[30px]",children:(0,n.jsx)("svg",{width:"25",height:"25",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:(0,n.jsx)("path",{d:"M16.75 13.96c.25.13.41.2.46.3.06.11.04.61-.21 1.18-.2.56-1.24 1.1-1.7 1.12-.46.02-.47.36-2.96-.73-2.49-1.09-3.99-3.75-4.11-3.92-.12-.17-.96-1.38-.92-2.61.05-1.22.69-1.8.95-2.04.24-.26.51-.29.68-.26h.47c.15 0 .36-.06.55.45l.69 1.87c.06.13.1.28.01.44l-.27.41-.39.42c-.12.12-.26.25-.12.5.12.26.62 1.09 1.32 1.78.91.88 1.71 1.17 1.95 1.3.24.14.39.12.54-.04l.81-.94c.19-.25.35-.19.58-.11l1.67.88M12 2a10 10 0 0 1 10 10 10 10 0 0 1-10 10c-1.97 0-3.8-.57-5.35-1.55L2 22l1.55-4.65A9.969 9.969 0 0 1 2 12 10 10 0 0 1 12 2m0 2a8 8 0 0 0-8 8c0 1.72.54 3.31 1.46 4.61L4.5 19.5l2.89-.96A7.95 7.95 0 0 0 12 20a8 8 0 0 0 8-8 8 8 0 0 0-8-8z"})})})}},4332:function(e,t,r){"use strict";r.d(t,{default:function(){return l}});var n=r(2265),a=r(9376);function l(e){let{measurementId:t}=e,r=(0,a.usePathname)(),l=(0,a.useSearchParams)();return(0,n.useEffect)(()=>{if(!t||!r)return;let e=null==l?void 0:l.toString(),n=e?"".concat(r,"?").concat(e):r;window.dataLayer=window.dataLayer||[],(window.gtag||function(){window.dataLayer.push(arguments)})("event","page_view",{page_path:n,page_location:window.location.href,page_title:document.title,send_to:t})},[t,r,l]),null}},9877:function(e,t,r){"use strict";r.d(t,{default:function(){return s}});var n=r(7437),a=r(8667),l=r(2265),o=r(9102);let i="515663131572-6p0utlmchtuctkg2g5r4f8jjdi7mrbl6.apps.googleusercontent.com";function s(){let{authenticated:e,loading:t,loginWithGoogleIdToken:r}=(0,o.a)(),[s,c]=(0,l.useState)(!1),d=(0,l.useRef)(!1),u=(0,l.useRef)(!1),h=(0,l.useCallback)(async e=>{if(null==e?void 0:e.credential)try{var t,n,a,l;await r(e.credential),null===(l=window.google)||void 0===l||null===(a=l.accounts)||void 0===a||null===(n=a.id)||void 0===n||null===(t=n.cancel)||void 0===t||t.call(n)}catch(e){console.error("Google One Tap sign-in failed",e)}},[r]);return((0,l.useEffect)(()=>{var r,n,a;let l=null===(n=window.google)||void 0===n?void 0:null===(r=n.accounts)||void 0===r?void 0:r.id;if(i&&s&&!t&&l){if(e){null===(a=l.cancel)||void 0===a||a.call(l);return}u.current||function(){try{return"1"===window.sessionStorage.getItem("bookpod-google-one-tap-suppressed")}catch(e){return!1}}()||(d.current||(l.initialize({client_id:i,callback:h,auto_select:!1,cancel_on_tap_outside:!0,context:"signin",itp_support:!0}),d.current=!0),u.current=!0,l.prompt())}},[e,h,t,s]),i)?(0,n.jsx)(a.default,{id:"google-identity-services",src:"https://accounts.google.com/gsi/client",strategy:"afterInteractive",onReady:()=>c(!0)}):null}},4636:function(e,t,r){"use strict";r.d(t,{default:function(){return H}});var n=r(7437),a=r(2265),l=r(8353),o=r(9376),i=r(7192),s=r(9102),c=r(7388),d=r(5609),u=r(6052),h=r(4340),m=r(3486),p=r(7397),x=r
1(4190),f=r(6780),b=r(556),g=r(2713),v=r(1725),w=r(3818),k=r(2964),j=r(4647),y=r(3654);let N=[{id:"new",i18nKey:"header.navNew",label:"××ש ×××קפ××",href:"/new"},{id:"our-picks",i18nKey:"mega.pillRecommended",label:"×××××צ×× ×©×× ×",href:"/our-picks"},{id:"best-sellers",i18nKey:"mega.pillBestsellers",label:"ר×× ××ר",href:"/best-sellers"},{id:"pro",i18nKey:"mega.pillPro",label:"×¡×¤×¨× Pro",href:"/pro"},{id:"authors",i18nKey:"header.navAuthors",label:"××××¢ ×ס×פר××",href:"https://lp.bookpod.co.il",external:!0,israelOnly:!0}],C=e=>{let{children:t,size:r=24,className:a=""}=e;return(0,n.jsx)("svg",{width:r,height:r,viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",className:"shrink-0 ".concat(a),children:t})},E=e=>{let{size:t=24}=e;return(0,n.jsx)(C,{size:t,children:(0,n.jsx)("path",{d:"M1.7 4.3h20.6M1.7 12h20.6M1.7 19.7h20.6",stroke:"currentColor",strokeWidth:"1.55",strokeLinecap:"round"})})},L=()=>(0,n.jsx)(C,{children:(0,n.jsx)("path",{d:"M6 6l12 12M18 6L6 18",stroke:"currentColor",strokeWidth:"1.9",strokeLinecap:"round"})}),_=e=>{let{size:t=24}=e;return(0,n.jsxs)(C,{size:t,children:[(0,n.jsx)("path",{d:"M4.97 1.5h14.06c.93 0 1.71.69 1.83 1.6l2.07 17.23a1.93 1.93 0 0 1-1.91 2.17H2.98a1.93 1.93 0 0 1-1.91-2.17L3.14 3.1A1.84 1.84 0 0 1 4.97 1.5Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinejoin:"round"}),(0,n.jsx)("path",{d:"M7.71 7.97c.47 3.43 2.01 5.14 4.29 5.14s3.81-1.71 4.29-5.14",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})},P=e=>{let{size:t=24}=e;return(0,n.jsx)(C,{size:t,children:(0,n.jsx)("path",{d:"M12 20.3l-1.3-1.2C6 14.9 3.2 12.4 3.2 9.3A4.3 4.3 0 0 1 12 6.9a4.3 4.3 0 0 1 8.8 2.4c0 3.1-2.8 5.6-7.5 9.8L12 20.3Z",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})})},M=e=>{let{size:t=24}=e;return(0,n.jsxs)(C,{size:t,children:[(0,n.jsx)("circle",{cx:"12",cy:"8.4",r:"4.1",stroke:"currentColor",strokeWidth:"1.5"}),(0,n.jsx)("path",{d:"M4 21c0-4.4 3.6-7 8-7s8 2.6 8 7",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})},z=e=>{let{size:t=24}=e;return(0,n.jsx)(C,{size:t,children:(0,n.jsx)("path",{d:"M2.9 10.4 12 2.6l9.1 7.8v9.2a2 2 0 0 1-2 2H4.9a2 2 0 0 1-2-2Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})},A=e=>{let{size:t=24}=e;return(0,n.jsxs)(C,{size:t,children:[(0,n.jsx)("circle",{cx:"10.8",cy:"10.8",r:"7.7",stroke:"currentColor",strokeWidth:"1.5"}),(0,n.jsx)("path",{d:"m16.4 16.4 5.2 5.2",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})},S=()=>(0,n.jsxs)("svg",{width:"19.4",height:"17.3",viewBox:"0 0 28 25",fill:"none","aria-hidden":"true",className:"shrink-0",children:[(0,n.jsx)("path",{d:"M14.0244 0C19.8032 0.000118032 24.4883 4.68503 24.4883 10.4639C24.4882 13.0279 23.5631 15.3748 22.0322 17.1943L27.6865 22.8486C28.0769 23.2392 28.077 23.8722 27.6865 24.2627C27.296 24.653 26.6629 24.653 26.2725 24.2627L20.6055 18.5957C18.8076 20.0525 16.5187 20.9277 14.0244 20.9277C8.96379 20.9277 4.74278 17.3345 3.77148 12.5605H5.82324C6.75636 16.2205 10.074 18.9277 14.0244 18.9277C18.6985 18.9276 22.488 15.1379 22.4883 10.4639C22.4883 5.7896 18.6987 2.00012 14.0244 2C12.4737 2 11.0214 2.41843 9.77148 3.14648C9.38639 2.57402 8.89566 2.07895 8.32715 1.68848C9.96681 0.621725 11.9225 0 14.0244 0Z",fill:"currentColor"}),(0,n.jsx)("path",{d:"M4.5 2.0459C5.27145 4.13071 6.91519 5.77445 9 6.5459C6.91519 7.31735 5.27145 8.96109 4.5 11.0459C3.72855 8.96109 2.08481 7.31735 0 6.5459C2.08481 5.77445 3.72855 4.13071 4.5 2.0459Z",fill:"currentColor"})]}),T=()=>(0,n.jsxs)("svg",{width:"23.596",height:"23.596",viewBox:"0 0 28 28",fill:"none","aria-hidden":"true",className:"shrink-0",children:[(0,n.jsx)("path",{d:"M5.8 1.75h16.4c1.08 0 1.99.8 2.13 1.87l2.42 20.1a2.25 2.25 0 0 1-2.23 2.53H3.48a2.25 2.25 0 0 1-2.23-2.53l2.42-20.1A2.15 2.15 0 0 1 5.8 1.75Z",stroke:"currentColor",strokeWidth:"1.75",strokeLinejoin:"round"}),(0,n.jsx)("path",{d:"M9 9.3c.55 4 2.35 6 5 6s4.45-2 5-6",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round"})]}),W=()=>(0,n.jsx)("svg",{width:"23.596",height:"23.596",viewBox:"0 0 28 28",fill:"none","aria-hidden":"true",className:"shrink-0",children:(0,n.jsx)("path",{d:"M2 5h24M2 14h24M2 23h24",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"})}),O=()=>(0,n.jsxs)(C,{children:[(0,n.jsx)("path",{d:"M15 12H4m0 0l3.5-3.5M4 12l3.5 3.5",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",className:"dir-flip"}),(0,n.jsx)("path",{d:"M12 4h6a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2h-6",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})]}),R=()=>(0,n.jsx)(C,{size:18,className:"transition-transform duration-200 group-open:rotate-180",children:(0,n.jsx)("path",{d:"M6 9l6 6 6-6",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})});function K(e){if(!e)return[];let t=Array.from(e.querySelectorAll('a[href], button:not([disabled]), input:not([disabled]), [tabindex]:not
1([tabindex="-1"])')).filter(e=>null!==e.offsetParent||e===document.activeElement);return t.filter((e,r)=>{if(!(e instanceof HTMLInputElement)||"radio"!==e.type||!e.name)return!0;let n=t.filter(t=>t instanceof HTMLInputElement&&"radio"===t.type&&t.name===e.name);return e===(n.find(e=>e.checked)||n[0])&&t.indexOf(e)===r})}function F(e){let{open:t,onClose:r,onOpenAuth:o}=e,{t:c,dir:d,locale:v,setLocale:w,locales:C}=(0,i.Q)(),{authenticated:E,user:z,logout:A}=(0,s.a)(),{ready:S,selectedBookIds:T,selectedBooks:W,selectedOptions:F,tasteSummary:D,tasteVector:H,openTasteProfile:I}=(0,m.G)(),B=(0,h.L)(),{isGlobal:Z,storeKey:Q}=(0,k.mT)(),q=Z||"bookplus"===Q?N.filter(e=>!e.israelOnly):N,V=(0,a.useRef)(null);if((0,a.useEffect)(()=>{if(!t)return;let e=document.activeElement,n=document.body.style.overflow;document.body.style.overflow="hidden";let a=K(V.current)[0];a&&a.focus();let l=e=>{if("Escape"===e.key){e.stopPropagation(),r();return}if("Tab"===e.key){let t=K(V.current);if(!t.length)return;let r=t[0],n=t[t.length-1];e.shiftKey&&document.activeElement===r?(e.preventDefault(),n.focus()):e.shiftKey||document.activeElement!==n||(e.preventDefault(),r.focus())}};return document.addEventListener("keydown",l,!0),()=>{document.body.style.overflow=n,document.removeEventListener("keydown",l,!0),e&&"function"==typeof e.focus&&e.focus()}},[t,r,V]),!t)return null;let U=(0,f.Y)(B,"show_in_mega_menu"),Y=B&&B.length?U.map(e=>({id:"db-".concat(e.value),title:e.label,href:(0,x.cw)(e.value),items:(e.children||[]).map(e=>({id:"db-".concat(e.value),label:e.label,href:(0,x.cw)(e.value)}))})):u.bW.map(e=>({id:e.key,title:c("mega.".concat(e.key),e.title),href:null,items:e.items.map(e=>({id:e.key,label:c("mega.".concat(e.key),e.label),href:(0,u.Iv)(e.label)}))})),G=(null==z?void 0:z.displayName)||((null==z?void 0:z.email)?z.email.split("@")[0]:c("header.myAccount","××ש××× ×©××")),J="flex items-center gap-3 rounded-xl px-3 py-3 text-[16px] text-neutral-800 transition-colors hover:bg-neutral-100 active:bg-neutral-100";return(0,n.jsxs)("div",{className:"fixed inset-0 z-[80] lg:hidden",role:"dialog","aria-modal":"true","aria-label":c("header.menu","תפר××"),dir:d,children:[(0,n.jsx)("button",{type:"button","aria-hidden":"true",tabIndex:-1,className:"modal-backdrop absolute inset-0 bg-black/45",onClick:r}),(0,n.jsxs)("div",{ref:V,className:"drawer-panel absolute inset-y-0 start-0 flex w-[86%] max-w-[360px] flex-col bg-white shadow-[0_0_40px_rgba(0,0,0,0.35)]",style:{"--drawer-from":"rtl"===d?"100%":"-100%"},children:[(0,n.jsxs)("div",{className:"flex items-center justify-between border-b border-black/10 px-4 py-3",children:[(0,n.jsx)(j.default,{light:!0,onClick:r,className:"h-8"}),(0,n.jsx)("button",{type:"button",onClick:r,"aria-label":c("header.close","ס××ר×"),className:"grid h-11 w-11 place-items-center rounded-full text-neutral-700 transition-colors hover:bg-neutral-100",children:(0,n.jsx)(L,{})})]}),(0,n.jsxs)("div",{className:"flex-1 overflow-y-auto overscroll-contain px-2 py-2",children:[q.map(e=>(0,n.jsx)(l.default,{href:e.href,target:e.external?"_blank":void 0,rel:e.external?"noopener noreferrer":void 0,onClick:r,className:J,children:"bookplus"===Q&&"new"===e.id?c("header.navNewNeutral","××ש"):c(e.i18nKey,e.label)},e.id)),(0,n.jsx)(p.Z,{ready:S,selectedOptions:F,selectedBookIds:T,selectedBooks:W,tasteSummary:D,tasteVector:H,managementMode:E,onEdit:()=>{r(),window.setTimeout(()=>I(),0)},className:"mx-3 my-3 w-auto bg-[#202020]"}),(0,n.jsx)("div",{className:"mt-1 px-3 pb-1 pt-3 text-[12px] font-semibold uppercase tracking-wide text-neutral-400",children:c("header.allCategories","×× ××§×××ר××ת")}),Y.map(e=>e.items.length>0?(0,n.jsxs)("details",{className:"group border-b border-black/5",children:[(0,n.jsxs)("summary",{className:"flex cursor-pointer list-none items-center justify-between rounded-xl px-3 py-3 text-[16px] font-medium text-neutral-900 transition-colors hover:bg-neutral-100 [&::-webkit-details-marker]:hidden",children:[(0,n.jsx)("bdi",{dir:"auto",children:e.title}),(0,n.jsx)("span",{className:"text-neutral-400",children:(0,n.jsx)(R,{})})]}),(0,n.jsxs)("div",{className:"pb-2",children:[e.href&&(0,n.jsx)(l.default,{href:e.href,onClick:r,className:"block rounded-lg px-6 py-2.5 text-[15px] font-medium text-neutral-700 transition-colors hover:bg-neutral-100 hover:text-neutral-900",children:(0,g.g)(c("header.allInCategory","××× ×{name}"),{name:e.title})}),e.items.map(e=>(0,n.jsx)(l.default,{href:e.href,onClick:r,className:"block rounded-lg px-6 py-2.5 text-[15px] text-neutral-600 transition-colors hover:bg-neutral-100 hover:text-neutral-900",children:(0,n.jsx)("bdi",{dir:"auto",children:e.label})},e.id))]})]},e.id):(0,n.jsx)(l.default,{href:e.href||"#",onClick:r,className:"block border-b border-black/5 rounded-xl px-3 py-3 text-[16px] font-medium text-neutral-900 transition-colors hover:bg-neutral-100",children:(0,n.jsx)("bdi",{dir:"auto",children:e.title})},e.id)),(0,n.jsxs)(l.default,{href:"/cart",onClick:r,className:"".concat(J," mt-3"),children:[(0,n.jsx)(_,{}),c("header.cart","×¡× ××§× ××ת")]}),(0,n.jsx)("div",{className:"mt-3 px-3 pb-1 text-[12px] font-semibold uppercase tracking-wide text-neutral-400",children:c("header.myAccount","××ש××× ×©××")}),E?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(l.default,{href:"/account",onClick:r,className:J,children:[(0,n.jsx)(M,{}),(0,n.jsx)("bdi",{dir:"auto",className:"truncate",children:G})]}),(0,n.jsxs)(l.default,{href:"/account?tab=favorites",onClick:r,className:J,children:[(0,n.jsx)(P,{}),c("header.favorites","×××¢×פ××")]}),(0,n.jsxs)("button",{type:"button",onClick:()=>{A(),r()},className:"".concat(J," w-full text-start"),children:[(0,n.jsx)(O,{}),c("header.logout","××ª× ×ª×§×ת")]})]}):(0,n.jsxs)("button",{type:"button",onClick:()=>{r(),o()},className:"mx-3 mt-1 flex h-12 w-[calc(100%-1.5rem)] items-center justify-center gap-2 rounded-full bg-brand-green text-[16px] font-semibold text-black",children:[(0,n.jsx)(M,{}),c("header.login","×ת××ר×ת")]}),(0,n.jsx)("div",{className:"mt-3 px-3 pb-1 text-[12px] font-semibold uppercase tracking-wide text-neutral-400",children:c("header.language","שפ×")}),(0,n.jsx)("div",{className:"flex flex-wrap gap-2 px-3 pb-4",children:C.map(e=>{let t=e===v;return(0,n.jsxs)("button",{type:"button",onClick:()=>{w(e),r()},"aria-pressed":t,className:"flex items-center gap-2 rounded-full border px-3 py-2 text-[14px] transition-colors ".concat(t?"border-brand-green bg-brand-green/10 font-semibold text-neutral-900":"border-black/10 text-neutral-700 hover:border-neutral-300"),children:[(0,n.jsx)("span",{className:"text-[18px] leading-none",children:b.Hm[e]}),(0,n.jsx)("bdi",{dir:"auto",children:b.Ok[e]})]},e)})}),(0,n.jsx)(y.I,{className:"mx-3 mb-5 rounded-2xl border border-ui-border/10 bg-ui-raised p-3 text-ui-content",legendClassName:"text-[12px] font-semibold uppercase tracking-wide text-ui-muted"})]})]})]})}function D(e){let{routePath:t,drawerOpen:r,onOpenDrawer:o,onSearchNavigate:d,onOpenAuth:u}=e,{t:h,dir:m}=(0,i.Q)(),{authenticated:p}=(0,s.a)(),{count:x,registerCartTarget:f,bump:b}=(0,c.j)(),g=(0,a.useRef)(null);(0,a.useEffect)(()=>f(g.current),[f]);let v=null;r?v="menu":"/search"===t?v="search":"/"===t?v="home":"/category"===t||(null==t?void 0:t.startsWith("/category/"))?v="menu":"/cart"===t?v="cart":"/account"===t&&(v="account");let w=e=>"mobile-tab-item relative flex h-[50px] min-w-0 flex-1 items-center justify-center rounded-full outline-none ".concat(v===e?"mobile-tab-active text-[#72EFAF] before:absolute before:h-[50px] before:w-[78px] before:rounded-[72px] before:bg-[#1C1C1C] before:content-['']":"text-white"),k=p?h("header.myAccount","××ש××× ×©××"):h("header.login","×ת××ר×ת");return!t||t.startsWith("/checkout")?null:(0,n.jsxs)("nav",{"aria-label":h("header.mobileNavigation","× ×××× ×¨×ש×"),className:"mobile-tab-bar fixed left-1/2 z-[60] flex h-[68px] w-[calc(100%-46px)] max-w-[394px] items-center rounded-[63px] bg-black px-[14.5px] lg:hidden",dir:m,children:[(0,n.jsx)("button",{type:"button",onClick:o,"aria-label":h("header.menu","תפר××"),"aria-haspopup":"dialog","aria-expanded":r,"aria-pressed":"menu"===v,className:w("menu"),children:(0,n.jsx)("span",{className:"mobile-tab-icon relative z-10 grid place-items-center",children:(0,n.jsx)(E,{size:28})})}),(0,n.jsx)(l.default,{href:"/","aria-label":h("header.home","××£ ×××ת"),"aria-current":"home"===v?"page":void 0,className:w("home"),children:(0,n.jsx)("span",{className:"mobile-tab-icon relative z-10 grid place-items-center",children:(0,n.jsx)(z,{size:28})})}),(0,n.jsx)(l.default,{href:"/search",onClick:d,"aria-label":h("header.searchAria","××פ×ש ספר"),"aria-current":"search"===v?"page":void 0,className:w("search"),children:(0,n.jsx)("span",{className:"mobile-tab-icon relative z-10 grid place-items-center",children:(0,n.jsx)(A,{size:28})})}),(0,n.jsx)(l.default,{href:"/cart","aria-label":"".concat(h("header.cart","×¡× ××§× ××ת")).concat(x?" (".concat(x,")"):""),"aria-current":"cart"===v?"page":void 0,className:w("cart"),children:(0,n.jsxs)("span",{ref:g,className:"mobile-tab-icon relative z-10 grid place-items-center",children:[b>0&&(0,n.jsx)("span",{"aria-hidden":"true",className:"pointer-events-none absolute left-1/2 top-1/2 h-7 w-7 rounded-full border-2 border-brand-green animate-[cart-ring_0.6s_ease-out_forwards] motion-reduce:hidden"},"mobile-cart-ring-".concat(b)),(0,n.jsx)("span",{className:"block ".concat(b>0?"animate-[cart-pop_0.55s_ease] motion-reduce:animate-none":""),children:(0,n.jsx)(_,{size:28})},"mobile-cart-bag-".concat(b)),x>0&&(0,n.jsx)("span",{className:"absolute -end-2 -top-2 grid h-4 min-w-4 place-items-center rounded-full bg-brand-green px-1 text-[10px] font-bold leading-none text-black ".concat(b>0?"animate-[cart-pop_0.55s_ease] motion-reduce:animate-none":""),children:x>99?"99+":x},"mobile-cart-badge-".concat(b))]})}),p?(0,n.jsx)(l.default,{href:"/account","aria-label":k,"aria-current":"account"===v?"page":void 0,className:w("account"),children:(0,n.jsx)("span",{className:"mobile-tab-icon relative z-10 grid place-items-center",children:(0,n.jsx)(M,{size:28})})}):(0,n.jsx)("button",{type:"button",onClick:u,"aria-label":k,className:w("account"),children:(0,n.jsx)("span",{className:"mobile-tab-icon relative z-10 grid place-items-center",children:(0,n.jsx)(M,{size:28})})})]})}function H(){let{t:e,dir:t}=(0,i.Q)(),{count:r,mobileCheckoutActive:s}=(0,c.j)(),u=(0,o.usePathname)(),h=(0,v.L3)(u),m="/book"===h||h.startsWith("/book/")||h.startsWith("/book-set/"),[p,x]=(0,a.useState)(!1),[f,b]=(0,a.useState)(!1),g=(0,a.useCallback)(()=>x(!1),[]);(0,a.useEffect)(()=>{x(!1)},[u]),(0,a.useEffect)(()=>
1{if(!window.visualViewport||!u)return;let e=document.documentElement,t=0,r=!1,n=()=>{t=0;let n=(0,w.Yo)(r);if(!n)return;let a=(0,w.K0)(n);r=a.keyboardOpen,null===a.offset?e.style.removeProperty("--mobile-tab-visual-offset"):e.style.setProperty("--mobile-tab-visual-offset","".concat(a.offset,"px")),a.keyboardOpen?e.dataset.keyboardOpen="true":delete e.dataset.keyboardOpen},a=()=>{t||(t=window.requestAnimationFrame(n))};n();let l=window.visualViewport;return l.addEventListener("resize",a),l.addEventListener("scroll",a),window.addEventListener("resize",a),window.addEventListener("scroll",a,{passive:!0}),()=>{t&&window.cancelAnimationFrame(t),l.removeEventListener("resize",a),l.removeEventListener("scroll",a),window.removeEventListener("resize",a),window.removeEventListener("scroll",a),e.style.removeProperty("--mobile-tab-visual-offset"),delete e.dataset.keyboardOpen}},[u]);let k=(0,a.useCallback)(e=>{"/search"===h&&(e.preventDefault(),window.dispatchEvent(new Event("bookpod:focus-mobile-search")))},[h]),y="relative grid shrink-0 place-items-center rounded-full transition-opacity hover:opacity-75 before:absolute before:-inset-x-[5px] before:-inset-y-[13px] before:content-['']";return(0,n.jsxs)(n.Fragment,{children:["/search"!==h&&(0,n.jsx)("header",{className:"relative z-[70] h-[var(--mobile-header-height)] w-full border-b lg:hidden ".concat("bg-ink text-white border-white/10"),dir:t,children:(0,n.jsxs)("div",{className:"flex h-full items-center px-[19px]",children:[(0,n.jsx)(j.default,{light:!1,className:"h-[44px]"}),(0,n.jsx)("span",{className:"min-w-3 flex-1"}),(0,n.jsx)(l.default,{href:"/search",onClick:k,"aria-label":e("header.searchAria","××פ×ש ספר"),className:"relative grid h-[37.475px] w-[37.475px] shrink-0 place-items-center rounded-full bg-[#A7F7D2] text-black transition-transform active:scale-[0.97] before:absolute before:-inset-x-[3px] before:-inset-y-[12.75px] before:content-['']",children:(0,n.jsx)(S,{})}),(0,n.jsxs)("div",{className:"ms-[4.164px] flex h-[37.475px] w-[85.361px] shrink-0 items-center gap-[11.798px] rounded-full bg-[#292929] px-[13.186px]",children:[(0,n.jsxs)(l.default,{href:"/cart","aria-label":"".concat(e("header.cart","×¡× ××§× ××ת")).concat(r?" (".concat(r,")"):""),className:y,children:[(0,n.jsx)(T,{}),r>0&&(0,n.jsx)("span",{className:"absolute -end-[5px] -top-[5px] z-10 grid h-[14px] min-w-[14px] place-items-center rounded-full bg-brand-green px-[3px] text-[9px] font-bold leading-none text-black",children:r>99?"99+":r})]}),(0,n.jsx)("button",{type:"button",onClick:()=>x(!0),"aria-label":e("header.menu","תפר××"),"aria-haspopup":"dialog","aria-expanded":p,className:y,children:(0,n.jsx)(W,{})})]})]})}),!s&&!m&&(0,n.jsx)(D,{routePath:h,drawerOpen:p,onOpenDrawer:()=>x(!0),onSearchNavigate:k,onOpenAuth:()=>b(!0)}),(0,n.jsx)(F,{open:p,onClose:g,onOpenAuth:()=>b(!0)}),(0,n.jsx)(d.default,{open:f,onClose:()=>b(!1),initialMode:"login"})]})}},1755:function(e,t,r){"use strict";r.d(t,{default:function(){return i}});var n=r(7437),a=r(2265),l=r(9376),o=r(7192);function i(){let e=(0,l.usePathname)(),t=(0,l.useSearchParams)(),{t:r}=(0,o.Q)(),[i,s]=(0,a.useState)(!1),c=(0,a.useRef)(!1),d=(0,a.useRef)(""),u=(0,a.useRef)(null),h=(0,a.useCallback)(()=>{c.current=!1,d.current="",document.documentElement.removeAttribute("data-navigation-pending"),s(!1),u.current&&(window.clearTimeout(u.current),u.current=null)},[]),m=(0,a.useCallback)(e=>{c.current=!0,d.current=e,document.documentElement.setAttribute("data-navigation-pending","true"),s(!0),u.current&&window.clearTimeout(u.current),u.current=window.setTimeout(h,15e3)},[h]);(0,a.useEffect)(()=>{function e(e){if(0!==e.button||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey)return;let t=function(e){let t;if(!e||e.hasAttribute("download")||"true"===e.getAttribute("aria-disabled"))return null;let r=(e.getAttribute("target")||"").toLowerCase();if(r&&"_self"!==r)return null;try{t=new URL(e.href,window.location.href)}catch(e){return null}let n=new URL(window.location.href);return t.origin===n.origin&&["http:","https:"].includes(t.protocol)&&(t.pathname!==n.pathname||t.search!==n.search)?t.href:null}(function(e){var t;let r=(null==e?void 0:e.nodeType)===1?e:null==e?void 0:e.parentElement;return(null==r?void 0:null===(t=r.closest)||void 0===t?void 0:t.call(r,"a[href]"))||null}(e.target));if(t){if(c.current&&d.current===t){e.preventDefault();return}m(t)}}return document.addEventListener("click",e,!0),()=>document.removeEventListener("click",e,!0)},[m]);let p="".concat(e||"","?").concat((null==t?void 0:t.toString())||"");(0,a.useEffect)(()=>{h()},[p,h]),(0,a.useEffect)(()=>()=>{document.documentElement.removeAttribute("data-navigation-pending"),u.current&&window.clearTimeout(u.current)},[]);let x=r("common.loadingPage","פ×ת××× ×ת ××¢××× ×××â¦");return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"navigation-transition","data-active":i?"true":"false","aria-hidden":"true",children:(0,n.jsx)("div",{className:"navigation-progress-line"})}),(0,n.jsx)("span",{className:"sr-only",role:"status","aria-live":"polite","aria-atomic":"true",children:i?x:""})]})}},5377:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return c}});var n=r(7437),a=r(2265),l=r(4887),o=r(7192);function i(){return(0,n.jsx)("svg",{width:"30",height:"30",viewBox:"0 0 30 30",fill:"none","aria-hidden":"true",children:(0,n.jsx)("path",{d:"M7 7l16 16M23 7 7 23",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"})})}function s(){return(0,n.jsxs)("div",{className:"relative h-[209px] w-[238px] lg:h-[250px] lg:w-[283px]","aria-hidden":"true",children:[(0,n.jsx)("img",{src:"/brand/newsletter-mark.svg",alt:"",className:"h-full w-full object-contain"}),(0,n.jsx)("img",{src:"/brand/newsletter-star.svg",alt:"",className:"absolute left-[58%] top-[62%] h-auto w-[50px] -translate-x-1/2 -translate-y-1/2 lg:w-[60px]"})]})}function c(e){let{className:t="",label:r}=e,{t:c,dir:d}=(0,o.Q)(),[u,h]=(0,a.useState)(!1),[m,p]=(0,a.useState)(!1),[x,f]=(0,a.useState)(!1),[b,g]=(0,a.useState)(""),[v,w]=(0,a.useState)(null),[k,j]=(0,a.useState)(0),[y,N]=(0,a.useState)(!1),C=(0,a.useRef)(null),E=(0,a.useRef)(null),L=(0,a.useRef)(null),_=(0,a.useRef)(null),P=(0,a.useRef)(null),M=(0,a.useId)();(0,a.useEffect)(()=>(h(!0),()=>clearTimeout(P.current)),[]);let z=(0,a.useCallback)(()=>{clearTimeout(P.current),p(!0),requestAnimationFrame(()=>f(!0))},[]);(0,a.useEffect)(()=>{var e;k>0&&(null===(e=_.current)||void 0===e||e.focus())},[k]);let A=(0,a.useCallback)((e,t)=>{w({tone:e,text:t}),j(e=>e+1)},[]),S=(0,a.useCallback)(async e=>{e.preventDefault();let t=b.trim();N(!0);try{let e=await fetch("/api/newsletter",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:t})}
1),r=await e.json().catch(()=>({}));e.ok?(A("ok",c("footer.newsletterThanks","ת×××! × ×¨×©××ª× ×× ×××××ר.")),g("")):(null==r?void 0:r.error)==="invalid_email"?A("error",c("footer.newsletterBadEmail","×ת××ת ××××´× ×× ×ª×§×× ×, ×××××× [email protected]")):A("error",c("footer.newsletterUnavailable","××רש×× ××× × ×××× × ×ר××¢. ×פשר ××ת×× ×× × ×[email protected] ×× ×ס××£ ×ת××."))}catch(e){A("error",c("footer.newsletterNetwork","ש×××ת תקש×רת. × ×¡× ×©××."))}finally{N(!1)}},[A,b,c]),T=(0,a.useCallback)(()=>{f(!1),clearTimeout(P.current),P.current=setTimeout(()=>{var e;p(!1),null===(e=C.current)||void 0===e||e.focus()},180)},[]);(0,a.useEffect)(()=>{if(!m)return;let e=document.body.style.overflow,t=e=>{if("Escape"===e.key){T();return}if("Tab"!==e.key||!L.current)return;let t=[...L.current.querySelectorAll('button, input, [href], [tabindex]:not([tabindex="-1"])')].filter(e=>!e.disabled&&"true"!==e.getAttribute("aria-hidden"));if(!t.length)return;let r=t[0],n=t[t.length-1];e.shiftKey&&document.activeElement===r?(e.preventDefault(),n.focus()):e.shiftKey||document.activeElement!==n||(e.preventDefault(),r.focus())};document.body.style.overflow="hidden",document.addEventListener("keydown",t);let r=setTimeout(()=>{var e;return null===(e=E.current)||void 0===e?void 0:e.focus()},30);return()=>{clearTimeout(r),document.removeEventListener("keydown",t),document.body.style.overflow=e}},[m,T]);let W=u&&m?(0,l.createPortal)((0,n.jsxs)("div",{className:"fixed inset-0 z-[250] overflow-y-auto",dir:d,children:[(0,n.jsx)("div",{"aria-hidden":"true",className:"pointer-events-none fixed inset-0 bg-black/65 transition-opacity motion-reduce:transition-none ".concat(x?"opacity-100 duration-300":"opacity-0 duration-150")}),(0,n.jsx)("div",{className:"relative flex min-h-full items-start justify-center px-5 pb-10 pt-[13dvh]",onMouseDown:e=>{e.target===e.currentTarget&&T()},children:(0,n.jsxs)("section",{ref:L,role:"dialog","aria-modal":"true","aria-labelledby":M,onMouseDown:e=>e.stopPropagation(),className:"relative flex min-h-[570px] w-full max-w-[360px] flex-col items-center rounded-[26px] bg-white px-3 pb-8 pt-[42px] text-center text-black shadow-[0_26px_58px_rgba(0,0,0,0.10),0_105px_105px_rgba(0,0,0,0.09)] transition will-change-transform motion-reduce:transition-none motion-reduce:transform-none lg:min-h-[680px] lg:max-w-[500px] lg:rounded-[16px] lg:pt-[48px] ".concat(x?"translate-y-0 scale-100 opacity-100 duration-300 ease-[cubic-bezier(0.16,1,0.3,1)]":"translate-y-3 scale-[0.97] opacity-0 duration-150 ease-out"),children:[(0,n.jsx)("button",{ref:E,type:"button",onClick:T,"aria-label":c("footer.newsletterClose","ס××רת ×××× ××רש××"),className:"absolute left-1/2 top-0 grid h-[54px] w-[54px] -translate-x-1/2 -translate-y-1/2 place-items-center rounded-full bg-brand-green text-black shadow-sm transition-transform hover:rotate-90 focus-visible:outline-none focus-visible:ring-4 focus-visible:ring-white/80 lg:h-[58px] lg:w-[58px]",children:(0,n.jsx)(i,{})}),(0,n.jsx)(s,{}),(0,n.jsxs)("h2",{id:M,className:"mt-2 w-full max-w-[286px] text-[28px] font-bold leading-none tracking-normal lg:mt-[14px] lg:max-w-[342px] lg:text-[34px]",children:[c("footer.newsletterTitleStart","× ×¨×©××× ×"),(0,n.jsx)("mark",{className:"rounded-[8px] bg-[#FFE85C] px-1 text-black",children:c("footer.newsletterTitleMark","× ×××××ר")}),(0,n.jsx)("br",{}),c("footer.newsletterTitleEnd","×××× ××§× ×× ×ר×ש×× ×")]}),(0,n.jsx)("p",{className:"mt-[14px] w-full max-w-[220px] text-[18px] font-medium leading-6 lg:mt-[15px] lg:max-w-[250px] lg:text-[20px] lg:leading-[29px]",children:c("footer.newsletterSubtitle","××ת ×× ××× ××ת ××××צע×× ×¨×ש×× ×× ×××××")}),(0,n.jsxs)("form",{className:"mt-3 w-full max-w-[292px] text-start lg:mt-[14px]",onSubmit:S,children:[(0,n.jsx)("label",{htmlFor:"".concat(M,"-email"),className:"mb-[5px] block text-[15px] leading-[18px] text-black",children:c("footer.newsletterEmailLabel","×××ר ×××§×ר×× ×")}),(0,n.jsx)("input",{id:"".concat(M,"-email"),type:"email",inputMode:"email",autoComplete:"email",required:!0,dir:b?"ltr":d,value:b,onChange:e=>g(e.target.value),placeholder:c("footer.newsletterEmailPlaceholder","×××ר ×××§×ר×× ×"),className:"h-12 w-full rounded-[7px] border border-black/45 bg-white px-4 text-start text-[15px] outline-none transition placeholder:text-black/40 focu
1s:border-black focus:ring-2 focus:ring-brand-green/45"}),(0,n.jsx)("button",{type:"submit",disabled:y,className:"mt-3 flex h-12 w-full items-center justify-center rounded-[7px] bg-brand-green text-[16px] font-medium text-black transition hover:brightness-95 focus-visible:outline-none focus-visible:ring-4 focus-visible:ring-brand-green/35 active:scale-[0.99] disabled:opacity-60",children:y?c("footer.newsletterSending","ש×××â¦"):c("footer.newsletterSubmit","×רש××")}),(0,n.jsx)("p",{ref:_,role:(null==v?void 0:v.tone)==="error"?"alert":"status","aria-atomic":"true",tabIndex:-1,dir:"auto",className:v?"mt-3 text-start text-[14px] font-medium ".concat("error"===v.tone?"text-red-700":"text-black"):"",children:(null==v?void 0:v.text)||""})]})]})})]}),document.body):null;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("button",{ref:C,type:"button",onClick:z,className:t,children:r||c("footer.newsletter","×רש×× ×× ×××××ר")}),W]})}},2713:function(e,t,r){"use strict";r.d(t,{S:function(){return o},g:function(){return l}});var n=r(2265);let a=/(\{[A-Za-z0-9_]+\})/;function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return String(e).split(a).map((e,r)=>{let a=e.startsWith("{")&&e.endsWith("}")?e.slice(1,-1):null;if(!a||!Object.prototype.hasOwnProperty.call(t,a))return e;let l=t[a],o=null!==l&&"object"==typeof l&&Object.prototype.hasOwnProperty.call(l,"value"),i=o?l.value:l,s=o&&l.dir||"auto";return(0,n.createElement)("bdi",{key:"".concat(a,"-").concat(r),dir:s},i)})}function o(e){let{text:t,values:r}=e;return l(t,r)}},3818:function(e,t,r){"use strict";function n(e){let{visualHeight:t,layoutHeight:r,offsetTop:n=0,scale:a=1,devicePixelRatio:l=1,wasKeyboardOpen:o=!1}=e,i=a>1.01,s=!i&&r-t>(o?100:150);if(s||i)return{keyboardOpen:s,offset:null};let c=l||1;return{keyboardOpen:!1,offset:Math.min(0,Math.round((t-r+n)*c)/c)}}function a(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=window.visualViewport;return t?{visualHeight:t.height,layoutHeight:document.documentElement.clientHeight,offsetTop:t.offsetTop,scale:t.scale,devicePixelRatio:window.devicePixelRatio||1,wasKeyboardOpen:e}:null}r.d(t,{K0:function(){return n},Yo:function(){return a}})},7960:function(){}},function(e){e.O(0,[3587,2103,8667,1244,9318,5609,3654,7852,2971,2117,1744],function(){return e(e.s=8982)}),_N_E=e.O()}]);
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.