PageSourceSearch

https://bookpod.co.il/_next/static/chunks/7852-e757713fe0332ccb.js?dpl=dpl_5SURVHwzAYpMZB3uJP1jxBpKFpSz

js bookpod.co.il collected 2026-10-01 10:33:34 UTC 18,857 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7852],{4647:function(e,l,t){t.d(l,{default:function(){return o}});var n=t(7437),r=t(8353),a=t(2964);let i={src:"/brand/logo.png",width:199,height:61},s={src:"/brand/logo-co-il.png",width:349,height:138};function o(e){let{light:l=!1,onClick:t,className:o="h-[61px]"}=e,{isGlobal:c,storeKey:d}=(0,a.mT)(),u=c?i:s;return"bookplus"===d?(0,n.jsx)(r.default,{href:"/",onClick:t,className:"flex shrink-0 items-center","aria-label":"ספר פלוס",children:(0,n.jsx)("span",{dir:"rtl",className:"whitespace-nowrap text-[34px] font-bold leading-none tracking-tight ".concat(l?"text-ui-content":"text-white"),children:"ספר פלוס"})}):(0,n.jsx)(r.default,{href:"/",onClick:t,className:"flex shrink-0 items-center","aria-label":"BookPod",children:(0,n.jsx)("img",{src:u.src,alt:"BookPod",width:u.width,height:u.height,className:"".concat(o," w-auto ").concat(l?"theme-logo-on-light invert":"")})})}},4340:function(e,l,t){t.d(l,{CategoriesProvider:function(){return i},L:function(){return s}});var n=t(7437),r=t(2265);let a=(0,r.createContext)([]);function i(e){let{tree:l=[],children:t}=e;return(0,n.jsx)(a.Provider,{value:l,children:t})}function s(){return(0,r.useContext)(a)}},3484:function(e,l,t){t.d(l,{ConciergeProvider:function(){return s},O:function(){return o}});var n=t(7437),r=t(2265);let a=(0,t(166).default)(()=>Promise.all([t.e(3145),t.e(8767),t.e(6711),t.e(3398)]).then(t.bind(t,3398)),{loadableGenerated:{webpack:()=>[3398]},ssr:!1}),i=(0,r.createContext)(null);function s(e){let{children:l}=e,[t,s]=(0,r.useState)(!1),[o,c]=(0,r.useState)(""),[d,u]=(0,r.useState)(!1),b=(0,r.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";c("string"==typeof e?e:""),u(!0),s(!0)},[]),f=(0,r.useCallback)(()=>s(!1),[]),p=(0,r.useMemo)(()=>({openConcierge:b,closeConcierge:f,isOpen:t}),[b,f,t]);return(0,n.jsxs)(i.Provider,{value:p,children:[l,d&&(0,n.jsx)(a,{open:t,seed:o,onClose:f})]})}function o(){return(0,r.useContext)(i)||{openConcierge:()=>{},closeConcierge:()=>{},isOpen:!1}}},3330:function(e,l,t){t.d(l,{default:function(){return p},r:function(){return m},_:function(){return g}});var n=t(7437),r=t(2265),a=t(8353),i=t(9102),s=t(7192),o=t(5609),c=t(8590);let d=e=>null==e?"":String(e),u=(0,r.createContext)(null),b=e=>{var l,t;return d(null!==(t=null!==(l=null==e?void 0:e.id)&&void 0!==l?l:null==e?void 0:e.bookid)&&void 0!==t?t:null==e?void 0:e.bookId)},f=()=>!1;function p(e){let{children:l}=e,{authenticated:t,getToken:a}=(0,i.a)(),{dir:f,t:p}=(0,s.Q)(),[x,m]=(0,r.useState)(!1),[g,k]=(0,r.useState)(null),y=(0,r.useRef)(null),v=(0,r.useRef)(null),w=(0,r.useRef)(null);w.current||(w.current=function(){let e=new Set,l=new Set,t=()=>{l.forEach(e=>e())};return{has:l=>e.has(d(l)),set(l,n){let r=d(l);if(!r||e.has(r)===n)return;let a=new Set(e);n?a.add(r):a.delete(r),e=a,t()},replace(l){let n=new Set(Array.from(l||[],d).filter(Boolean));!function(e,l){if(e.size!==l.size)return!1;for(let t of e)if(!l.has(t))return!1;return!0}(e,n)&&(e=n,t())},subscribe:e=>(l.add(e),()=>l.delete(e))}}());let j=w.current,N=(0,r.useCallback)(function(e,l){let t=arguments.length>2&&void 0!==arguments[2]&&arguments[2];k({title:e||p("book.fallbackTitle","הספר"),liked:l,error:t}),y.current&&clearTimeout(y.current),y.current=setTimeout(()=>k(null),4e3)},[p]);(0,r.useEffect)(()=>{if(!t){j.replace([]),v.current=null;return}let e=!1;return(async()=>{var l,t;let n=null!==(l=await Promise.resolve(null==a?void 0:a()).catch(()=>null))&&void 0!==l?l:null,r=v.current;if(v.current=null,r){m(!1);let e="add"===r.type?r.book:r,l=b(e);l&&(await (0,c.AB)(l,!0,n)?(N(e.title,!0),"add"===r.type&&(null===(t=r.onSuccess)||void 0===t||t.call(r))):N(e.title,!0,!0))}let i=await (0,c.dJ)(n);if(e)return;let s=new Set;i.forEach(e=>{let l=b(e);l&&s.add(l)}),j.replace(s)})(),()=>{e=!0}},[t,j,a,N]),(0,r.useEffect)(()=>()=>y.current&&clearTimeout(y.current),[]);let C=(0,r.useCallback)(async(e,l)=>{var t;j.set(e,l);let n=null!==(t=await Promise.resolve(null==a?void 0:a()).catch(()=>null))&&void 0!==t?t:null,r=await (0,c.AB)(e,l,n);return r||j.set(e,!l),r},[j,a]),A=(0,r.useCallback)(async e=>{let l=b(e);
1if(!l)return;if(!t){v.current=e,m(!0);return}let n=!j.has(l),r=await C(l,n);N(null==e?void 0:e.title,n,!r)},[t,j,C,N]),S=(0,r.useCallback)(async function(e){let{onSuccess:l}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=b(e);if(!n)return!1;if(!t)return v.current={type:"add",book:e,onSuccess:l},m(!0),!1;if(j.has(n))return N(null==e?void 0:e.title,!0),null==l||l(),!0;let r=await C(n,!0);return N(null==e?void 0:e.title,!0,!r),r&&(null==l||l()),r},[t,j,C,N]),P=(0,r.useCallback)((e,l)=>{j.set(e,l)},[j]);(0,r.useEffect)(()=>{let e=e=>{var l,t;let n=null==e?void 0:null===(l=e.detail)||void 0===l?void 0:l.id,r=null==e?void 0:null===(t=e.detail)||void 0===t?void 0:t.liked;null!=n&&"boolean"==typeof r&&P(n,r)};return window.addEventListener("bookpod:favorite-changed",e),()=>window.removeEventListener("bookpod:favorite-changed",e)},[P]);let F=(0,r.useMemo)(()=>({isFavorite:j.has,subscribe:j.subscribe,toggleFavorite:A,addFavorite:S,setFavoriteLocal:P}),[S,j,P,A]);return(0,n.jsxs)(u.Provider,{value:F,children:[l,(0,n.jsx)(o.default,{open:x,onClose:()=>{m(!1),v.current=null},initialMode:"login"}),(0,n.jsx)(h,{toast:g,dir:f,t:p})]})}function h(e){let{toast:l,dir:t,t:r}=e,i=(null==l?void 0:l.error)?r("common.favoriteError","לא הצלחנו לעדכן את המועדפים. נסו שוב."):(null==l?void 0:l.liked)?r("common.favoriteAdded","נוסף למועדפים"):r("common.favoriteRemoved","הוסר מהמועדפים");return(0,n.jsx)("div",{"aria-live":(null==l?void 0:l.error)?"assertive":"polite","aria-atomic":"true",dir:t,"data-visible":!!l,className:"favorites-toast fixed inset-x-4 z-[300] lg:inset-x-auto lg:left-1/2 ".concat(l?"opacity-100":"pointer-events-none opacity-0"),children:l&&(0,n.jsxs)("div",{role:l.error?"alert":"status",className:"flex min-h-[60px] w-full items-center gap-3 rounded-2xl bg-black px-3 py-2 text-white shadow-[0_10px_30px_rgba(0,0,0,0.3)] lg:min-h-0 lg:w-auto lg:rounded-full lg:px-6 lg:py-3",children:[(0,n.jsx)("span",{className:"grid h-7 w-7 shrink-0 place-items-center rounded-full lg:h-6 lg:w-6 ".concat(l.error?"bg-red-500 text-white":l.liked?"bg-brand-green text-black":"bg-white/15 text-white"),children:l.error?(0,n.jsx)("span",{className:"text-[15px] font-bold leading-none","aria-hidden":"true",children:"!"}):(0,n.jsx)("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:l.liked?"currentColor":"none","aria-hidden":"true",children:(0,n.jsx)("path",{d:"M12.62 20.81c-.34.12-.9.12-1.24 0C8.48 19.82 2 15.69 2 8.69 2 5.6 4.49 3.1 7.56 3.1c1.82 0 3.43.88 4.44 2.24a5.53 5.53 0 0 1 4.44-2.24C19.51 3.1 22 5.6 22 8.69c0 7-6.48 11.13-9.38 12.12Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,n.jsxs)("span",{className:"min-w-0 flex-1 text-[14px] font-medium leading-[19px] lg:flex-none lg:text-[15px] lg:leading-normal",children:[(0,n.jsx)("bdi",{dir:"auto",className:"block truncate font-semibold lg:inline lg:overflow-visible lg:whitespace-normal",children:l.title})," ",(0,n.jsx)("span",{className:"block text-white/70 lg:inline lg:text-white",children:i})]}),l.liked&&!l.error&&(0,n.jsx)(a.default,{href:"/account?tab=favorites",className:"inline-flex h-11 shrink-0 items-center rounded-full bg-brand-green px-3.5 text-[13px] font-semibold text-black transition-colors active:bg-white lg:h-auto lg:rounded-none lg:bg-transparent lg:px-0 lg:text-[14px] lg:text-brand-green lg:underline-offset-2 lg:hover:underline",children:r("common.toFavorites","למועדפים")})]})})}let x={isFavorite:()=>!1,subscribe:()=>()=>{},toggleFavorite:()=>{},addFavorite:async()=>!1,setFavoriteLocal:()=>{}};function m(){var e;return null!==(e=(0,r.useContext)(u))&&void 0!==e?e:x}function g(e){let l=m(),t=d(e),n=(0,r.useCallback)(()=>l.isFavorite(t),[l,t]);return(0,r.useSyncExternalStore)(l.subscribe,n,f)}},6052:function(e,l,t){t.d(l,{Iv:function(){return h},ZP:function(){return x},bW:function(){return f}});var n=t(7437),r=t(8353),a=t(4190),i=t(6780),s=t(7192),o=t(2964),c=t(9102),d=t(4340),u=t(3486),b=t(7397);let f=[{key:"grpThriller",title:"מתח ומסתורין",items:[{key:"thrPsych",label:"מתח פסיכולוגי"},{key:"thrPI",label:"בלש פרטי"},{key:"thrCrime",label:"פשע ומשטרה"},{key:"thrThriller",label:"טרילר"}]},{key:"grpFantasySciFi",title:'פנטזיה ומד"ב',items:[{key:"fsEpic",label:"פנטזיה אפית"},{key:"fsUrban",label:"פנטזיה עירונית"},{key:"fsDystopia",label:"דיסטופיה"},{key:"fsTimeTravel",label:"מסע בזמן"},{key:"fsMythology",label:"מיתולוגיה"},{key:"fsSpace",label:"חלל והרפתקאות"},{key:"fsAliensVampires",label:"חייזרים וערפדים"}]},{key:"grpRomance",title:"רומן רומנטי",items:[{key:"romContemporary",label:"רומנטיקה עכשווית"},{key:"romHistorical",label:"רומן היסטורי"},{key:"romFirstLove",label:"אהבה ראשונה"},{key:"romComedy",label:"קומדיה רומנטית"},{key:"romMature",label:"אהבה בגיל מבוגר"}]},{key:"grpYA",title:"נוער – YA",items:[{key:"yaFantasy",label:"פנטזיה YA"},{key:"yaRomance",label:"רומנס נעורים"},{key:"yaThriller",label:"מתח נוער"},{key:"yaIdentity",label:"זהות ושייכות"},{key:"yaSciFi",label:'מד"ב YA'},{key:"yaRealistic",label:"ריאליסטי"}]},{key:"grpKids",title:"ספרי ילדים",items:[{key:"kidsAge03",label:"גיל 0-3"},{key:"kidsAge46",label:"גיל 4-6"},{key:"kidsAge79",label:"גיל 7-9"},{key:"kidsAge1012",label:"גיל 10-12"},{key:"kidsHoly",label:"ספרי קודש"},{key:"kidsHolidays",label:"חגים ומועדים"}]},{key:"grpDrama",title:"דרמה וספרות",items:[{key:"drmFamily",label:"דרמה משפחתית"},{key:"drmWomensFiction",label:"ספרות נשים"},{key:"drmIsraeli",label:"ספרות ישראלית"},{key:"drmHumor",label:"הומור וסאטירה"},{key:"drmPoetry",label:"שירה"},{key:"drmAutobiography",label:"אוטוביוגרפיה"}]},{key:"grpBusiness",title:"עסקים וכלכלה",items:[{key:"bizStartup",label:"יזמות וסטארטאפ"},{key:"bizMarketing",label:"שיווק ומכירות"},{key:"bizStocks",label:"בורסה והשקעות"},{key:"bizPersonalFinance",label:"כלכלה אישית"},{key:"bizManagement",label:"ניהול ומנהיגות"},{key:"bizProductivity",label:"פרודוקטיביות"}]},{key:"grpJudaism",title:"יהדות",items:[{key:"judHalacha",label:"הלכה ומעשה"},{key:"judThought",label:"מחשבת ישראל"},{key:"judKabbalah",label:"קבלה וחסידות"},{key:"judRabbinic",label:"ספרות רבנית"},{key:"judZionism",label:"זהות וציונות"},{key:"judOct7",label:"7 באוקטובר"}]},{key:"grpPsychHealth",title:"פסיכולוגיה ובריאות",items:[{key:"psyBehavioral",label:"פסיכולוגיה התנה×
1’ותית"},{key:"psyParenting",label:"הורות"},{key:"psySelfCare",label:"טיפול עצמי"},{key:"psyNutrition",label:"תזונה ובריאות"},{key:"psySleep",label:"שינה ואנרגיה"},{key:"psyTrauma",label:"טראומה והחלמה"}]}],p=[{key:"pillNew",label:"חדש בבוקפוד",brandLabel:e=>"חדש ב".concat(e),href:"/new",tone:"bg-brand-green"},{key:"pillRecommended",label:"המומלצים שלנו",href:"/our-picks",tone:"bg-[#76AAE5]"},{key:"pillBestsellers",label:"רבי מכר",href:"/best-sellers",tone:"bg-white"},{key:"pillPro",label:"ספרי Pro",href:"/pro",tone:"bg-[#B794F4]"}],h=e=>(0,a.cw)(e);function x(e){let{open:l,onClose:t,panelId:x}=e,{brandName:g}=(0,o.mT)(),{t:k,dir:y}=(0,s.Q)(),{authenticated:v}=(0,c.a)(),w=function(e){let l=(0,d.L)();return l&&l.length?(0,i.Y)(l,"show_in_mega_menu").map(e=>({id:"db-".concat(e.value),title:e.label,href:(0,a.cw)(e.value),items:(e.children||[]).map(e=>({id:"db-".concat(e.value),label:e.label,href:(0,a.cw)(e.value)}))})):f.map(l=>({id:l.key,title:e("mega.".concat(l.key),l.title),href:null,items:l.items.map(l=>({id:l.key,label:e("mega.".concat(l.key),l.label),href:h(l.label)}))}))}(k),{ready:j,selectedBookIds:N,selectedBooks:C,selectedOptions:A,tasteSummary:S,tasteVector:P,openTasteProfile:F}=(0,u.G)();return(0,n.jsxs)("nav",{id:x,"aria-label":k("header.allCategories","כל הקטגוריות"),dir:y,"aria-hidden":!l,inert:l?void 0:"",className:"absolute inset-x-0 top-full z-50 h-[679px] overflow-hidden bg-[#2A2A2A] text-white transition duration-150 ease-out ".concat(l?"opacity-100 translate-y-0":"pointer-events-none -translate-y-1 opacity-0"),children:[(0,n.jsx)("div",{className:"absolute start-0 top-0 h-[679px] w-[329px] bg-black"}),(0,n.jsx)("div",{className:"no-scrollbar absolute end-[267px] top-[64px] grid max-h-[560px] w-[1240px] grid-cols-[repeat(5,167px)] content-start gap-x-[97px] gap-y-[58px] overflow-x-hidden overflow-y-auto overscroll-contain pe-[17px]",children:w.map(e=>(0,n.jsxs)("div",{className:"flex w-[167px] flex-col gap-[13px] text-start",children:[e.href?(0,n.jsx)(r.default,{href:e.href,onClick:t,dir:y,className:"text-[20px] font-bold leading-[1.2] text-brand-green transition-opacity hover:opacity-80",children:e.title}):(0,n.jsx)("h3",{dir:y,className:"text-[20px] font-bold leading-[1.2] text-brand-green",children:e.title}),e.items.map(e=>(0,n.jsx)(r.default,{href:e.href,onClick:t,dir:y,title:e.label,className:"block max-w-full overflow-hidden text-ellipsis whitespace-nowrap text-[18px] leading-[1.2] text-white transition-colors hover:text-brand-green",children:e.label},e.id))]},e.id))}),(0,n.jsxs)("div",{className:"absolute start-0 top-0 flex h-[679px] w-[329px] flex-col items-center gap-[44px] px-[37px] pt-[37px]",children:[(0,n.jsx)("div",{className:"flex w-[245px] flex-col gap-[15px]",children:p.map(e=>(0,n.jsxs)(r.default,{href:e.href,onClick:t,className:"relative flex h-[52px] items-center justify-start rounded-[13px] ps-[22px] pe-[52px] ".concat(e.tone),children:[(0,n.jsx)("span",{className:"w-full text-start text-[18px] font-bold leading-none text-black",children:k("mega.".concat(e.key),e.brandLabel?e.brandLabel(g):e.label)}),(0,n.jsx)("span",{className:"absolute end-[13px] top-1/2 grid h-[26px] w-[26px] -translate-y-1/2 place-items-center rounded-full bg-black",children:(0,n.jsx)(m,{})})]},e.key))}),(0,n.jsx)(b.Z,{ready:j,selectedOptions:A,selectedBookIds:N,selectedBooks:C,tasteSummary:S,tasteVector:P,managementMode:v,onEdit:()=>{null==t||t(),window.setTimeout(()=>F(),0)},className:"w-[245px]"})]})]})}function m(){return(0,n.jsx)("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",className:"dir-flip",children:(0,n.jsx)("path",{d:"M15 6l-6 6 6 6",stroke:"#fff",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round"})})}},7397:function(e,l,t){t.d(l,{Z:function(){return i}});var n=t(7437),r=t(7192),a=t(5759);function i(e){var l,t;let{ready:i,selectedOptions:s=[],selectedBookIds:o=[],selectedBooks:c=[],tasteSummary:d,tasteVector:u,onEdit:b,managementMode:f=!1,className:p=""}=e,{t:h}=(0,r.Q)(),x=(0,a.jo)({selectedOptions:s,tasteSummary:d}),m=Math.max(o.length,(null==d?void 0:null===(l=d.source)||void 0===l?void 0:l.selectedBookCount)||0),g=Math.max(s.length,(null==d?void 0:null===(t=d.source)||void 0===t?void 0:t.selectedPreferenceCount)||0),k=m>0||g>0,y=f||k,v=x.slice(0,4),w=Math.max(0,x.length-v.length),j=c.filter(e=>null==e?void 0:e.cover).slice(0,3),N=k?h("preferences.tasteBasedOn","מבוסס על {books} ספרים ו־{preferences} העדפות").replace("{books}",String(m)).replace("{preferences}",String(g)):h("preferences.tasteFromActivity","לומד מהבחירות ומהפעילות שלכם");return(0,n.jsxs)("section",{className:"rounded-[14px] border border-white/15 bg-[#202020] p-3.5 ".concat(p),children:[(0,n.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,n.jsxs)("div",{className:"flex min-w-0 items-center gap-2",children:[(0,n.jsx)("span",{className:"h-2 w-2 shrink-0 rounded-full bg-brand-green","aria-hidden":"true"}),(0,n.jsx)("h3",{className:"truncate text-[15px] font-semibold text-white",children:y?h("preferences.myTaste","הטעם שלי"):h("preferences.menuQuestion","מה מעניין אותך?")})]}),i&&y?(0,n.jsx)("button",{type:"button",onClick:b,className:"shrink-0 rounded-sm text-[12px] font-medium text-brand-green underline-offset-4 hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand-green focus-visible:ring-offset-2 focus-visible:ring-offset-[#202020]",children:f?h("preferences.manageTaste","ניהול"):h("preferences.editTaste","עריכה")}):null]}),i?y?(0,n.jsxs)(n.Fragment,{children:[v.length?(0,n.jsxs)("div",{className:"mt-3 flex flex-wrap gap-1.5",children:[v.map(e=>(0,n.jsx)("span",{className:"max-w-full rounded-full border border-white/30 px-2.5 py-1 text-[12px] leading-5 text-white",children:(0,n.jsx)("bdi",{dir:"auto",className:"block truncate",children:e})},e)),w>0?(0,n.jsxs)("span",{className:"rounded-full bg-white/10 px-2.5 py-1 text-[12px] leading-5 text-white/75",children:["+",w]}):null]}):null,(0,n.jsxs)("div",{className:"mt-3 flex items-center gap-2.5",children:[j.length?(0,n.jsx)("div",{className:"flex shrink-0 -space-x-2 rtl:space-x-reverse","aria-hidden":"true",children:j.map(e=>(0,n.jsx)("img",{src:e.cover,alt:"",className:"h-9 w-7 rounded-[4px] border border-[#202020] bg-white/10 object-cover shadow-sm",loading:"lazy",decoding:"async"},e.id))}):null,(0,n.jsx)("p",{className:"min-w-0 text-[11px] leading-4 text-white/60",children:N})]}),(null==u?void 0:u.status)==="ready"?(0,n.jsx)("p",{className:"mt-2 text-[11px] text-brand-green/90",children:h("preferences.personalRecommendationsActive","המלצות אישיות פעילות")}):null]}):(0,n.jsx)("button",{type:"button",onClick:b,className:"mt-3 flex min-h-10 w-full items-center justify-center rounded-[10px] bg-brand-green px-3 text-center text-[14px] font-semibold text-black transition-colors hover:bg-white focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-offset-2 focus-visible:ring-offset-[#202020]",children:h("preferences.menuSetup","התאימו לי ספרים")}):(0,n.jsxs)("div",{className:"mt-3 space-y-2",role:"status","aria-live":"polite","aria-busy":"true","aria-label":h("preferences.loading","טוען העדפות…"),children:[(0,n.jsx)("span",{className:"block h-7 w-full animate-pulse rounded-full bg-white/15"}),(0,n.jsx)("span",{className:"block h-3 w-3/4 animate-pulse rounded-full bg-white/10"})]})]})}},6780:function(e,l,t){t.d(l,{Y:function(){return function e(l,t){return Array.isArray(l)?l.filter(e=>
1e&&"object"==typeof e&&!Array.isArray(e)&&!1!==e[t]).map(l=>({...l,children:e(l.children,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.