1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8462],{6231:function(e,t,n){n.d(t,{Z:function(){return c}});var r=n(7437),o=n(2265),i=n(4887),l=n(7192),a=n(4617);function s(){return(0,r.jsx)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none","aria-hidden":"true",children:(0,r.jsx)("path",{d:"M7.5 7.5 24.5 24.5M24.5 7.5 7.5 24.5",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round"})})}function u(){return(0,r.jsx)("svg",{className:"h-auto w-[250px] sm:w-[342px]",viewBox:"0 0 342 250",fill:"none","aria-hidden":"true",children:(0,r.jsxs)("g",{transform:"translate(45 22)",children:[(0,r.jsx)("rect",{x:"21",y:"55",width:"154",height:"166",rx:"3",fill:"#47F5A6",transform:"rotate(-24 21 55)"}),(0,r.jsx)("rect",{x:"59",y:"29",width:"154",height:"166",rx:"3",fill:"#EF4962",transform:"rotate(-13 59 29)"}),(0,r.jsx)("rect",{x:"102",y:"18",width:"154",height:"166",rx:"3",fill:"#050505",transform:"rotate(-3 102 18)"}),(0,r.jsx)("rect",{x:"139",y:"22",width:"154",height:"166",rx:"3",fill:"#7697D3",transform:"rotate(9 139 22)"}),(0,r.jsxs)("g",{transform:"rotate(19 223 119)",children:[(0,r.jsx)("rect",{x:"139",y:"28",width:"174",height:"184",rx:"3",fill:"#47F5A6"}),(0,r.jsx)("path",{d:"M226 87c4.7 18.7 13.3 27.3 32 32-18.7 4.7-27.3 13.3-32 32-4.7-18.7-13.3-27.3-32-32 18.7-4.7 27.3-13.3 32-32Z",fill:"white"})]})]})})}function c(e){let{open:t,bookId:n,onClose:c}=e,{t:d,dir:f}=(0,l.Q)(),[m,p]=(0,o.useState)(!1),[h,x]=(0,o.useState)(!1),[b,g]=(0,o.useState)(!1),v=(0,o.useRef)(null),y=(0,o.useRef)(null),w=(0,o.useRef)(null),k=(0,o.useId)(),j=(0,a.KO)(n);(0,o.useEffect)(()=>(p(!0),()=>clearTimeout(w.current)),[]),(0,o.useEffect)(()=>{if(clearTimeout(w.current),t&&j){x(!0);let e=requestAnimationFrame(()=>g(!0));return()=>cancelAnimationFrame(e)}return g(!1),w.current=setTimeout(()=>x(!1),180),()=>clearTimeout(w.current)},[t,j]);let _=(0,o.useCallback)(()=>{g(!1),clearTimeout(w.current),w.current=setTimeout(()=>{x(!1),null==c||c()},180)},[c]);return((0,o.useEffect)(()=>{if(!h)return;let e=document.body.style.overflow,t=e=>{if("Escape"===e.key){_();return}if("Tab"!==e.key||!v.current)return;let t=[...v.current.querySelectorAll('button, [href], [tabindex]:not([tabindex="-1"])')].filter(e=>!e.disabled&&"true"!==e.getAttribute("aria-hidden"));if(!t.length)return;let n=t[0],r=t[t.length-1];e.shiftKey&&document.activeElement===n?(e.preventDefault(),r.focus()):e.shiftKey||document.activeElement!==r||(e.preventDefault(),n.focus())};document.body.style.overflow="hidden",document.addEventListener("keydown",t);let n=setTimeout(()=>{var e;return null===(e=y.current)||void 0===e?void 0:e.focus()},30);return()=>{clearTimeout(n),document.removeEventListener("keydown",t),document.body.style.overflow=e}},[h,_]),m&&h&&j)?(0,i.createPortal)((0,r.jsxs)("div",{className:"fixed inset-0 z-[300] flex items-end justify-center sm:items-center sm:p-5",dir:f,children:[(0,r.jsx)("div",{"aria-hidden":"true",onMouseDown:_,className:"absolute inset-0 bg-black/65 transition-opacity motion-reduce:transition-none ".concat(b?"opacity-100 duration-300":"opacity-0 duration-150")}),(0,r.jsx)("div",{className:"relative z-10 flex w-full justify-center",onMouseDown:e=>e.target===e.currentTarget&&_(),children:(0,r.jsxs)("section",{ref:v,role:"dialog","aria-modal":"true","aria-labelledby":k,onMouseDown:e=>e.stopPropagation(),className:"relative max-h-[92dvh] w-full max-w-[440px] text-center text-black transition will-change-transform motion-reduce:transition-none motion-reduce:transform-none sm:w-[594px] sm:max-w-[94vw] ".concat(b?"translate-y-0 scale-100 opacity-100 duration-300 ease-[cubic-bezier(0.16,1,0.3,1)]":"translate-y-full scale-[0.98] opacity-0 duration-150 ease-out sm:translate-y-3"),children:[(0,r.jsx)("button",{ref:y,type:"button",onClick:_,"aria-label":d("cart.ebookAppClose","ס××רת ×××× ××ר×ת ××פ××קצ××"),className:"absolute left-1/2 top-0 z-10 grid h-[64px] w-[64px] -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 sm:h-[74px] sm:w-[74px]",children:(0,r.jsx)(s,{})}),(0,r.jsxs)("div",{className:"flex max-h-[92dvh] min-h-[650px] w-full flex-col items-center overflow-y-auto rounded-t-[28px] bg-white px-6 pb-[calc(2rem+env(safe-area-inset-bottom))] pt-14 shadow-[0_26px_58px_rgba(0,0,0,0.10),0_105px_105px_rgba(0,0,0,0.09)] sm:min-h-[680px] sm:rou
1nded-[18px] sm:px-10 sm:pb-10 sm:pt-[58px] lg:min-h-[749px]",children:[(0,r.jsx)("div",{className:"mt-2 flex min-h-[235px] items-center justify-center sm:mt-0 sm:min-h-[295px]",children:(0,r.jsx)(u,{})}),(0,r.jsx)("h2",{id:k,className:"mt-1 max-w-[430px] text-[34px] font-bold leading-[1.08] sm:mt-2 sm:text-[42px]",children:d("cart.ebookAppTitle","×ספר ש×× ×××× ××פ××קצ××")}),(0,r.jsxs)("p",{className:"mt-5 text-[19px] font-medium leading-7 sm:text-[22px]",children:[d("cart.ebookAppDownload","×××ר×ת ××פ××קצ××"),(0,r.jsx)("br",{}),(0,r.jsx)("a",{href:j,className:"underline decoration-1 underline-offset-4",children:d("cart.ebookAppLink","×××¥ ×××")})]}),(0,r.jsxs)("div",{className:"mt-7 flex flex-col items-center justify-center gap-3 sm:flex-row sm:gap-4",children:[(0,r.jsx)("a",{href:j,"aria-label":d("cart.ebookAppGoogle","פת××ת ×ספר ×-BookPod ××× ×ר××××"),className:"transition-transform hover:scale-[1.03] focus-visible:outline-none focus-visible:ring-4 focus-visible:ring-brand-green/40",children:(0,r.jsx)("img",{src:"/brand/badge-google-play.svg",alt:"Google Play",className:"theme-invert-on-dark h-[46px] w-[156px]"})}),(0,r.jsx)("a",{href:j,"aria-label":d("cart.ebookAppApple","פת××ת ×ספר ×-BookPod ××××פ××"),className:"transition-transform hover:scale-[1.03] focus-visible:outline-none focus-visible:ring-4 focus-visible:ring-brand-green/40",children:(0,r.jsx)("img",{src:"/brand/badge-app-store.svg",alt:"App Store",className:"theme-invert-on-dark h-[46px] w-[156px]"})})]})]})]})})]}),document.body):null}},3433:function(e,t,n){n.d(t,{D:function(){return r}});function r(e,t){let n=null==t?"":String(t);return n?function(e){if("string"!=typeof e)return null;let t=e.split(".")[1];if(!t||"function"!=typeof globalThis.atob)return null;try{let e=t.replace(/-/g,"+").replace(/_/g,"/"),n=e.padEnd(4*Math.ceil(e.length/4),"="),r=JSON.parse(globalThis.atob(n)),o=(null==r?void 0:r.user_id)||(null==r?void 0:r.sub);return null==o?null:String(o)}catch(e){return null}}(e)===n:!e}},9558:function(e,t,n){n.d(t,{S3:function(){return o},Z2:function(){return i},wi:function(){return l}});var r=n(257);r.env.NEXT_PUBLIC_DASHBOARD_API_BASE,r.env.NEXT_PUBLIC_CLOUD_API_BASE;let o="438748273",i="s1qvnoDkSeVzX1y1VKJhGUVoeuDBr38pzJ2mivBd2B2iRTv5cm",l=!0},4617:function(e,t,n){n.d(t,{KO:function(){return i},fV:function(){return l},vl:function(){return s},xE:function(){return a}});let r="bookpod_pending_ebook_purchase_v1",o=new Set(["digital","ebook","e-book","epub"]);function i(e){let t=String(null!=e?e:"").trim();return t?"".concat("https://bookpod.app.link/?&bookid=").concat(encodeURIComponent(t)):null}function l(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=e.find(e=>{let t=String((null==e?void 0:e.format)||(null==e?void 0:e.type)||"").trim().toLowerCase();return(null==e?void 0:e.id)!=null&&o.has(t)});return t?{bookId:t.id,title:t.title||""}:null}function a(e){try{if(!(null==e?void 0:e.bookId)){window.sessionStorage.removeItem(r);return}window.sessionStorage.setItem(r,JSON.stringify(e))}catch(e){}}function s(){try{let e=window.sessionStorage.getItem(r);if(window.sessionStorage.removeItem(r),!e)return null;let t=JSON.parse(e);return(null==t?void 0:t.bookId)?t:null}catch(e){return null}}},5173:function(e,t,n){n.d(t,{a:function(){return o},q:function(){return r}});let r=/already has a (payment|recorded payment) attempt|unresolved payment attempt|linked to another payment/i;function o(){let{status:e=null,error:t=null,paymentState:n=null}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return 409===e||r.test(String(t||""))?{reason:"wallet_claimed",notifyAdmins:!1,offerRetry:!1,checkPayment:!0}:(null==n?void 0:n.ok)!==!0?{reason:"wallet_indeterminate",notifyAdmins:!0,offerRetry:!1,checkPayment:!0}:!0!==n.chargeable?{reason:"wallet_claimed",notifyAdmins:!1,offerRetry:!1,checkPayment:!0}:{reason:"wallet_failed",notifyAdmins:!0,offerRetry:!0,checkPayment:!1}}},4383:function(e,t,n){n.d(t,{d:function(){return i},o:function(){return o}});var r=n(5582);function o(){return{applePay:void 0!==window.ApplePaySession,googlePay:!0}}async function i(e){let{orderNumber:t,surface:n="store",customer:o={},language:i,returnBase:l,token:a,onRedirect:s}=e;if(!t)return{ok:!1,error:"missing_order"};try{let{ok:e,status:u,code:c,retryAfterSeconds:d,redirectUrl:f,error:m}=await (0,r.ay)({orderNumber:t,surface:n,customer:o,language:i,returnBase:l},a);if(!e||!f)return{ok:!1,status:u,code:c,retryAfterSeconds:d,error:m||"redirect_failed"};return null==s||s({orderNumber:t}),window.location.assign(f),{ok:!0}}catch(e){return{ok:!1,status:0,error:e.message||"redirect_failed"}}}}}]);
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.