PageSourceSearch

https://www.bookplus.co.il/_next/static/chunks/5609-efce447e95eb2b9f.js?dpl=dpl_5SURVHwzAYpMZB3uJP1jxBpKFpSz

js bookplus.co.il collected 2026-10-03 02:49:11 UTC 12,970 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5609],{5609:function(e,t,a){a.r(t),a.d(t,{default:function(){return m}});var r=a(7437),n=a(2265),l=a(4887),s=a(9102),i=a(1794),o=a(7192),c=a(8734);function u(){return(0,r.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 48 48","aria-hidden":"true",children:[(0,r.jsx)("path",{fill:"#EA4335",d:"M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z"}),(0,r.jsx)("path",{fill:"#4285F4",d:"M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z"}),(0,r.jsx)("path",{fill:"#FBBC05",d:"M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z"}),(0,r.jsx)("path",{fill:"#34A853",d:"M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z"})]})}function d(e){let{off:t}=e;return t?(0,r.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,r.jsx)("path",{d:"M9.88 9.88a3 3 0 1 0 4.24 4.24"}),(0,r.jsx)("path",{d:"M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68"}),(0,r.jsx)("path",{d:"M6.61 6.61A13.5 13.5 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61"}),(0,r.jsx)("line",{x1:"2",y1:"2",x2:"22",y2:"22"})]}):(0,r.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,r.jsx)("path",{d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z"}),(0,r.jsx)("circle",{cx:"12",cy:"12",r:"3"})]})}let h="mt-1 w-full h-12 rounded-[10px] border border-black/20 bg-white px-4 text-[16px] text-black text-start outline-none focus:border-black/50",x="block text-[14px] text-black text-start";function m(e){let{open:t,onClose:a,initialMode:m="login",onAuthenticated:p,overlayClassName:f="z-[100]"}=e,{t:b,dir:v}=(0,o.Q)(),{login:y,register:w,loginWithGoogle:g,forgotPassword:k}=(0,s.a)(),j=e=>{let t=function(e){switch(e){case"auth/invalid-email":return{key:"errInvalidEmail",he:"כתובת אימייל לא תקינה"};case"auth/user-not-found":case"auth/wrong-password":case"auth/invalid-credential":return{key:"errWrongCredentials",he:"אימייל או סיסמה שגויים"};case"auth/email-already-in-use":return{key:"errEmailInUse",he:"כתובת האימייל כבר רשומה במערכת"};case"auth/weak-password":return{key:"errWeakPassword",he:"הסיסמה חייבת להכיל לפחות 6 תווים"};case"auth/too-many-requests":return{key:"errTooManyRequests",he:"יותר מדי ניסיונות. נסו שוב מאוחר יותר"};case"auth/popup-closed-by-user":case"auth/cancelled-popup-request":return null;default:return{key:"errGeneric",he:"אירעה שגיאה. נסו שוב"}}}(e);return t?b("auth.".concat(t.key),t.he):""},[N,C]=(0,n.useState)(m),[E,L]=(0,n.useState)(""),[S,B]=(0,n.useState)(""),[M,P]=(0,n.useState)(""),[T,A]=(0,n.useState)(!1),[F,z]=(0,n.useState)(""),[q,W]=(0,n.useState)(""),[_,I]=(0,n.useState)(!1),[R,G]=(0,n.useState)(!1),[Z,D]=(0,n.useState)(0),[H,K]=(0,n.useState)(!1),O=(0,n.useRef)(null),Q=(0,n.useRef)(null),U=(0,n.useId)(),J=(0,n.useCallback)(e=>{z(e),D(e=>e+1)},[]);(0,n.useEffect)(()=>{var e;Z>0&&(null===(e=Q.current)||void 0===e||e.focus())},[Z]),(0,c.Z)(t,O),(0,n.useEffect)(()=>G(!0),[]);let V=(0,n.useRef)(a);(0,n.useEffect)(()=>{V.current=a},[a]);let X=(0,n.useCallback)(()=>{K(!1),setTimeout(()=>{var e;return null===(e=V.current)||void 0===e?void 0:e.call(V)},220)},[]);if((0,n.useEffect)(()=>{if(!t){K(!1);return}C(m),z(""),W("");let e=setTimeout(()=>K(!0),10);return()=>clearTimeout(e)},[t,m]),(0,n.useEffect)(()=>{if(!t)return;let e=e=>"Escape"===e.key&&X();document.addEventListener("keydown",e);let a=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",e),document.body.style.overflow=a}},[t,X]),!t||!R)return null;let Y="signup"===N,$=E?"auto":v,ee=S?"ltr":v,et=M?"ltr":v,ea=async e=>{e.preventDefault(),z(""),W(""),I(!0);try{let e;e=Y?await w(S.trim(),M,E.trim()):await y(S.trim(),M),null==p||p(e),X()}catch(e){J(j(null==e?void 0:e.code)||b("auth.errGeneric","אירעה שגיאה. נסו שוב"))}finally{I(!1)}},er=async()=>{z(""),W(""),I(!0);try{let e=await g();null==p||p(e),X()}catch(t){let e=j(null==t?void 0:t.code);e&&J(e)}finally{I(!1)}},en=async()=>
1{if(!S.trim()){J(b("auth.errEnterEmailForReset","הזינו את כתובת האימייל כדי לאפס סיסמה"));return}z("");try{await k(S.trim()),W(b("auth.resetEmailSent","שלחנו לכם קישור לאיפוס סיסמה לאימייל"))}catch(e){J(j(null==e?void 0:e.code)||b("auth.errGeneric","אירעה שגיאה. נסו שוב"))}};return(0,l.createPortal)((0,r.jsxs)("div",{className:"fixed inset-0 ".concat(f," flex items-center justify-center p-4"),dir:v,onClick:e=>{e.stopPropagation(),X()},children:[(0,r.jsx)("div",{"aria-hidden":"true",className:"absolute inset-0 bg-black/50 backdrop-blur-sm transition-opacity ease-out motion-reduce:transition-none ".concat(H?"opacity-100 duration-300":"opacity-0 duration-200")}),(0,r.jsxs)("div",{ref:O,role:"dialog","aria-modal":"true","aria-labelledby":U,tabIndex:-1,onClick:e=>e.stopPropagation(),className:"relative w-full max-w-[420px] rounded-[20px] bg-white px-8 pb-8 pt-12 shadow-[0_30px_80px_rgba(0,0,0,0.35)] transition will-change-transform motion-reduce:transition-none motion-reduce:transform-none ".concat(H?"opacity-100 translate-y-0 scale-100 duration-300 ease-[cubic-bezier(0.16,1,0.3,1)]":"opacity-0 translate-y-3 scale-95 duration-200 ease-[cubic-bezier(0.4,0,1,1)]"),children:[(0,r.jsx)(i.Z,{onClick:X,label:b("auth.close","סגירה")}),(0,r.jsxs)("h2",{id:U,className:"text-center text-[28px] font-bold leading-tight text-black",children:[b("auth.welcomeLine1","ברוכים הבאים"),(0,r.jsx)("br",{}),b("auth.welcomeLine2","ל-bookpod")]}),(0,r.jsxs)("form",{onSubmit:ea,className:"mt-6 space-y-4",children:[Y&&(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{htmlFor:"".concat(U,"-name"),className:x,children:b("auth.fullNameLabel","שם מלא")}),(0,r.jsx)("input",{id:"".concat(U,"-name"),className:h,type:"text",dir:$,value:E,onChange:e=>L(e.target.value),placeholder:b("auth.fullNamePlaceholder","שם מלא"),autoComplete:"name",required:!0})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{htmlFor:"".concat(U,"-email"),className:x,children:b("auth.emailLabel","דואר אלקטרוני")}),(0,r.jsx)("input",{id:"".concat(U,"-email"),className:h,type:"email",dir:ee,value:S,onChange:e=>B(e.target.value),placeholder:b("auth.emailPlaceholder","דואר אלקטרוני"),autoComplete:"email",required:!0})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{htmlFor:"".concat(U,"-password"),className:x,children:b("auth.passwordLabel","סיסמה")}),(0,r.jsxs)("div",{className:"relative",dir:et,children:[(0,r.jsx)("input",{id:"".concat(U,"-password"),className:"".concat(h," pe-11"),type:T?"text":"password",dir:et,value:M,onChange:e=>P(e.target.value),placeholder:Y?b("auth.createPasswordPlaceholder","צרו סיסמה"):b("auth.passwordPlaceholder","סיסמה"),autoComplete:Y?"new-password":"current-password",required:!0}),(0,r.jsx)("button",{type:"button",onClick:()=>A(e=>!e),"aria-label":T?b("auth.hidePassword","הסתר סיסמה"):b("auth.showPassword","הצג סיסמה"),className:"absolute end-2.5 top-1/2 grid h-6 w-6 -translate-y-1/2 place-items-center text-neutral-500",children:(0,r.jsx)(d,{off:T})})]}),Y?(0,r.jsx)("p",{className:"mt-1.5 text-start text-[13px] text-[#3B5BF5]",children:b("auth.passwordHint","הסיסמה שלכם ב-8 תווים לפחות, אותיות ומספרים")}):(0,r.jsx)("button",{type:"button",onClick:en,className:"mt-1.5 block w-full text-start text-[13px] text-[#3B5BF5] underline",children:b("auth.forgotPassword","שכחתם את הסיסמה שלכם?")})]}),(0,r.jsx)("p",{ref:Q,role:"alert","aria-atomic":"true",tabIndex:-1,dir:"auto",className:F?"text-start text-[14px] font-medium text-red-600":"",children:F}),(0,r.jsx)("p",{role:"status","aria-atomic":"true",dir:"auto",className:q?"text-start text-[14px] font-medium text-green-700":"",children:q}),(0,r.jsx)("button",{type:"submit",disabled:_,className:"flex h-12 w-full items-center justify-center rounded-[10px] bg-brand-green text-[16px] font-medium text-black transition-opacity disabled:opacity-60",children:_?"...":Y?b("auth.signupButton","הרשמה"):b("auth.loginButton","התחברות")})]}),(0,r.jsxs)("div",{className:"my-4 flex items-center gap-3",children:[(0,r.jsx)("span",{className:"h-px flex-1 bg-black/15"}),(0,r.jsx)("span",{className:"text-[14px] text-neutral-500",children:b("auth.or","או")}),(0,r.jsx)("span",{className:"h-px flex-1 bg-black/15"})]}),(0,r.jsxs)("button",{type:"button",onClick:er,disabled:_,className:"flex h-12 w-full items-center justify-center gap-2 rounded-[10px] border border-black/20 bg-white text-[16px] text-black transition-colors hover:bg-black/[0.03] disabled:opacity-60",children:[(0,r.jsx)(u,{}),Y?b("auth.signupWithGoogle","הרשמה באמצעות גוגל"):b("auth.loginWithGoogle","התחברות באמצעות גוגל")]}),(0,r.jsxs)("p",{className:"mt-4 text-center text-[14px] text-black",children:[Y?b("auth.haveAccount","יש לכם חשבון? "):b("auth.noAccount","אין לכם חשבון? "),(0,r.jsx)("button",{type:"button",onClick:()=>{C(Y?"login":"signup"),z(""),W("")},className:"font-medium text-[#3B5BF5] underline",children:Y?b("auth.switchToLogin","התחברו"):b("auth.switchToSignup","הרשמו")})]}),(0,r.jsxs)("p",{className:"mt-3 text-center text-[12px] leading-[18px] text-neutral-500",children:[b("auth.termsIntro","בעצם ההתחברות אתם מסכימים ל"),(0,r.jsx)("span",{className:"underline",children:b("auth.termsOfService","תנאי השירות")}),b("auth.termsMid"," של בוקפוד ומאשרים שקראתם את "),(0,r.jsx)("span",{className:"underline",children:b("auth.privacyPolicy","מדיניות הפרטיות")}),b("auth.termsAnd"," שלנו ואת "),(0,r.jsx)("span",{className:"underline",children:b("auth.siteTerms","תקנון האתר")})]})]})]}),document.body)}},1794:function(e,t,a){a.d(t,{Z:function(){return l}});var r=a(7437);let n={card:"-top-6",fullscreen:"top-[calc(env(safe-area-inset-top)+0.75rem)] sm:-top-6"};function l(e){let{label:t,onClick:a,disabled:l=!1,placement:s="card",mobileSide:i=!1,variant:o="default"}=e,c="preferences-intro"===o,u=c?"-top-[37px]":n[s]||n.card;return(0,r.jsx)("button",{type:"button",onClick:a,disabled:l,"aria-label":t,className:"absolute z-20 grid place-items-center rounded-full bg-brand-green text-black shadow-md transition-transform duration-200 hover:rotate-90 hover:scale-105 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-black focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 ".concat(c?"left-1/2 h-[74px] w-[74px] -translate-x-1/2":i?"end-4 h-10 w-10 sm:end-auto sm:left-1/2 sm:h-12 sm:w-12 sm:-translate-x-1/2":"left-1/2 h-12 w-12 -translate-x-1/2"," ").concat(u),children:(0,r.jsx)("svg",{width:c?33:22,height:c?33:22,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:c?2:2.2,strokeLinecap:"round","aria-hidden":"true",className:!c&&i?"h-[18px] w-[18px] sm:h-[22px] sm:w-[22px]":"",children:(0,r.jsx)("path",{d:c?"M5 5l14 14M19 5L5 19":"M6 6l12 12M18 6L6 18"})})})}},8734:function(e,t,a){a.d(t,{Z:function(){return l}});var r=a(2265);function n(e){return e?Array.from(e.querySelectorAll('button:not([disabled]), [href], input
1:not([disabled]):not([type="hidden"]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])')).filter(e=>null!==e.offsetParent):[]}function l(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{yieldTo:l=!1,initialFocusRef:s=null}=a,i=(0,r.useRef)(null);(0,r.useEffect)(()=>{if(!e)return;i.current=document.activeElement;let a=setTimeout(()=>{var e;let a=t.current;if(!a)return;let r=(null==s?void 0:s.current)||n(a)[0]||a;null==r||null===(e=r.focus)||void 0===e||e.call(r)},0);return()=>{var e;clearTimeout(a);let t=i.current;t&&document.contains(t)&&(null===(e=t.focus)||void 0===e||e.call(t))}},[e,t,s]),(0,r.useEffect)(()=>{if(!e||l)return;let a=e=>{if("Tab"!==e.key)return;let a=t.current;if(!a)return;let r=n(a);if(!r.length)return;let l=r[0],s=r[r.length-1],i=a.contains(document.activeElement);e.shiftKey&&(document.activeElement===l||!i)?(e.preventDefault(),s.focus()):e.shiftKey||document.activeElement!==s&&i||(e.preventDefault(),l.focus())};return document.addEventListener("keydown",a),()=>document.removeEventListener("keydown",a)},[e,l,t])}}}]);

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.