PageSourceSearch

https://kitfei.org/_next/static/chunks/app/layout-aafa2a8d736a60c7.js

js kitfei.org collected 2026-10-09 01:17:08 UTC 26,949 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[185,925,410],{6056:function(e,t,r){Promise.resolve().then(r.bind(r,4888)),Promise.resolve().then(r.bind(r,8087)),Promise.resolve().then(r.bind(r,7239)),Promise.resolve().then(r.t.bind(r,8003,23)),Promise.resolve().then(r.t.bind(r,3760,23)),Promise.resolve().then(r.t.bind(r,1778,23)),Promise.resolve().then(r.t.bind(r,872,23)),Promise.resolve().then(r.t.bind(r,8835,23)),Promise.resolve().then(r.t.bind(r,1752,23)),Promise.resolve().then(r.t.bind(r,2778,23)),Promise.resolve().then(r.bind(r,7039)),Promise.resolve().then(r.bind(r,2834)),Promise.resolve().then(r.bind(r,1779)),Promise.resolve().then(r.bind(r,4973))},7239:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(7437),a=r(2265);t.default=function(e){let{html:t,height:r=null,width:i=null,children:s,dataNtpc:o=""}=e;return(0,a.useEffect)(()=>{o&&performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-".concat(o)}})},[o]),(0,n.jsxs)(n.Fragment,{children:[s,t?(0,n.jsx)("div",{style:{height:null!=r?"".concat(r,"px"):"auto",width:null!=i?"".concat(i,"px"):"auto"},"data-ntpc":o,dangerouslySetInnerHTML:{__html:t}}):null]})}},4888:function(e,t,r){"use strict";var n;let a;Object.defineProperty(t,"__esModule",{value:!0}),t.sendGAEvent=t.GoogleAnalytics=void 0;let i=r(7437),s=r(2265),o=(n=r(8667))&&n.__esModule?n:{default:n};t.GoogleAnalytics=function(e){let{gaId:t,dataLayerName:r="dataLayer"}=e;return void 0===a&&(a=r),(0,s.useEffect)(()=>{performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-ga"}})},[]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o.default,{id:"_next-ga-init",dangerouslySetInnerHTML:{__html:"\n          window['".concat(r,"'] = window['").concat(r,"'] || [];\n          function gtag(){window['").concat(r,"'].push(arguments);}\n          gtag('js', new Date());\n\n          gtag('config', '").concat(t,"');")}}),(0,i.jsx)(o.default,{id:"_next-ga",src:"https://www.googletagmanager.com/gtag/js?id=".concat(t)})]})},t.sendGAEvent=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(void 0===a){console.warn("@next/third-parties: GA has not been initialized");return}window[a]?window[a].push(arguments):console.warn("@next/third-parties: GA dataLayer ".concat(a," does not exist"))}},8087:function(e,t,r){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.sendGTMEvent=t.GoogleTagManager=void 0;let a=r(7437),i=r(2265),s=(n=r(8667))&&n.__esModule?n:{default:n},o="dataLayer";t.GoogleTagManager=function(e){let{gtmId:t,dataLayerName:r="dataLayer",auth:n,preview:c,dataLayer:l}=e;o=r;let d="dataLayer"!==r?"&l=".concat(r):"";return(0,i.useEffect)(()=>{performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-gtm"}})},[]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s.default,{id:"_next-gtm-init",dangerouslySetInnerHTML:{__html:"\n      (function(w,l){\n        w[l]=w[l]||[];\n        w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});\n        ".concat(l?"w[l].push(".concat(JSON.stringify(l),")"):"","\n      })(window,'").concat(r,"');")}}),(0,a.jsx)(s.default,{id:"_next-gtm","data-ntpc":"GTM",src:"https://www.googletagmanager.com/gtm.js?id=".concat(t).concat(d).concat(n?"&gtm_auth=".concat(n):"").concat(c?"&gtm_preview=".concat(c,"&gtm_cookies_win=x"):"")})]})},t.sendGTMEvent=(e,t)=>{let r=t||o;window[r]=window[r]||[],window[r].push(e)}},2369:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});let n=(0,r(9205).Z)("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]])},2489:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});let n=(0,r(9205).Z)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},257:function(e,t,r){"use strict";var n,a;e.exports=(null==(n=r.g.process)?void 0:n.env)&&"object"==typeof(null==(a=r.g.process)?void 0:a.env)?r.g.process:r(4227)},4227:function(e){!function(){var t={229:function(e){var t,r,n,a=e.exports={};function i(){throw Error("setTimeout has not been defined")}function s(){throw Error("clearTimeout has not been defined")}function o(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{r="function"==typeof clearTimeout?clearTimeout:s}
1catch(e){r=s}}();var c=[],l=!1,d=-1;function u(){l&&n&&(l=!1,n.length?c=n.concat(c):d=-1,c.length&&f())}function f(){if(!l){var e=o(u);l=!0;for(var t=c.length;t;){for(n=c,c=[];++d<t;)n&&n[d].run();d=-1,t=c.length}n=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function h(){}a.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];c.push(new m(e,t)),1!==c.length||l||o(f)},m.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={},a.on=h,a.addListener=h,a.once=h,a.off=h,a.removeListener=h,a.removeAllListeners=h,a.emit=h,a.prependListener=h,a.prependOnceListener=h,a.listeners=function(e){return[]},a.binding=function(e){throw Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(e){throw Error("process.chdir is not supported")},a.umask=function(){return 0}}},r={};function n(e){var a=r[e];if(void 0!==a)return a.exports;var i=r[e]={exports:{}},s=!0;try{t[e](i,i.exports,n),s=!1}finally{s&&delete r[e]}return i.exports}n.ab="//";var a=n(229);e.exports=a}()},7039:function(e,t,r){"use strict";r.d(t,{default:function(){return s}});var n=r(2265),a=r(9376),i=r(4371);function s(){let e=(0,a.usePathname)(),t=(0,a.useSearchParams)(),r=(0,n.useRef)(!0);return(0,n.useEffect)(()=>{let n=t.toString(),a=n?"".concat(e,"?").concat(n):e;if(r.current){r.current=!1;return}(0,i.Z0)(a)},[e,t]),null}},2834:function(e,t,r){"use strict";r.d(t,{default:function(){return c}});var n=r(7437),a=r(7648),i=r(3145),s=r(4371),o=r(8997);function c(){return(0,n.jsx)("footer",{className:"bg-gray-900 text-gray-300",children:(0,n.jsxs)("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-16",children:[(0,n.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-12",children:[(0,n.jsxs)("div",{children:[(0,n.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,n.jsx)("div",{className:"w-14 h-14 bg-white/10 rounded-lg flex items-center justify-center p-1",children:(0,n.jsx)(i.default,{src:"/logo.png",alt:"כתפי ענקים",width:48,height:48,className:"w-12 h-12 object-contain invert opacity-90"})}),(0,n.jsx)("h3",{className:"text-2xl font-bold font-display text-white",children:"כתפי ענקים"})]}),(0,n.jsx)("p",{className:"text-gray-400 text-sm leading-relaxed",children:'ילקוט פירושים מודרני, בהיר ומעמיק לתנ"ך, מבוסס על חוכמתם של גדולי פרשני המקרא לדורותיהם.'})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("h4",{className:"footer-heading text-white",children:"ניווט"}),(0,n.jsxs)("ul",{className:"space-y-3",children:[(0,n.jsx)("li",{children:(0,n.jsx)(a.default,{href:"/",className:"footer-link text-sm",onClick:()=>(0,s.L9)("click_footer_nav",{link_name:"דף הבית"}),children:"דף הבית"})}),(0,n.jsx)("li",{children:(0,n.jsx)(a.default,{href:"/dedicate",className:"footer-link text-sm",onClick:()=>(0,s.L9)("click_footer_nav",{link_name:"הקדשת פסוק לחלל צה״ל"}),children:"הקדשת פסוק לחלל צה״ל"})}),(0,n.jsx)("li",{children:(0,n.jsx)(a.default,{href:"/about",className:"footer-link text-sm",onClick:()=>(0,s.L9)("click_footer_nav",{link_name:"אודות הפרויקט"}),children:"אודות הפרויקט"})}),(0,n.jsx)("li",{children:(0,n.jsx)(a.default,{href:"/donate",className:"footer-link text-sm",onClick:()=>(0,s.L9)("click_footer_nav",{link_name:"תרומה"}),children:"תרומה"})}),(0,n.jsx)("li",{children:(0,n.jsx)(a.default,{href:"/newsletter",className:"footer-link text-sm",onClick:()=>(0,s.L9)("click_footer_nav",{link_name:"ניוזלטר"}),children:"ניוזלטר"})}),(0,n.jsx)("li",{children:(0,n.jsx)(a.default,{href:"/contact",className:"footer-link text-sm",onClick:()=>(0,s.L9)("click_footer_nav",{link_name:"צור קשר"}),children:"צור קשר"})})]})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("h4",{className:"footer-heading text-white",children:"לימוד פופולרי"}),(0,n.jsxs)("ul",{className:"space-y-3",children:[(0,n.jsx)("li",{children:(0,n.jsx)(a.default,{href:"/book/Genesis",className:"footer-link text-sm",onClick:()=>(0,s.L9)("click_footer_study",{book_name:"בראשית"}),children:"פירוש בראשית"})}),(0,n.jsx)("li",{children:(0,n.jsx)(a.default,{href:"/book/Exodus",className:"footer-link text-sm",onClick:()=>(0,s.L9)("click_footer_study",{book_name:"שמות"}),children:"פירוש שמות"})}),(0,n.jsx)("li",{children:(0,n.jsx)(a.default,{href:"/book/Psalms",className:"footer-link text-sm",onClick:()=>(0,s.L9)("click_footer_study",{book_name:"תהלים"}),children:"פירוש תהלים"})})]})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("h4",{className:"footer-heading text-white",children:"תמכו בנו"}),(0,n.jsx)("p",{className:"text-gray-400 text-sm leading-relaxed mb-4",children:"תחזוקת האתר והשבחת התוכן כרוכות בהוצאות מרובות. תרומה קטנה שלכם תסייע לנו להחזיק את הפלטפורמה."}),(0,n.jsxs)(a.default,{href:"/donate",className:"inline-flex items-center gap-2 btn-gold text-sm",onClick:()=>(0,s.L9)("click_donate",{source:"footer_cta"}),children:[(0,n.jsx)(o.Z,{size:16}),"לתרומה"]}),(0,n.jsxs)("p",{className:"text-gray-500 text-xs leading-relaxed mt-4",children:["מקורות הפסוקים זמינים באדיבות"," ",(0,n.jsx)("a",{href:"https://www.sefaria.org",target:"_blank",rel:"noopener noreferrer",className:"footer-link underline",children:"Sefaria"}),"."]})]})]}),(0,n.jsx)("div",{className:"border-t border-gray-800 mt-12 pt-8 text-center text-sm text-gray-500",children:(0,n.jsxs)("p",{children:["\xa9 ",new Date().getFullYear()," מכון כתפי ענקים. כל הזכויות שמורות."]})})]})})}},1779:function(e,t,r){"use strict";r.d(t,{default:function(){return b}});var n=r(7437),a=r(7648),i=r(3145),s=r(2265),o=r(4371),c=r(2489),l=r(9205);let d=(0,l.Z)("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);var u=r(2369);let f=(0,l.Z)("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}
1],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]),m=(0,l.Z)("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);var h=r(4973);function x(e){let{isMobile:t=!1,onActionComplete:r}=e,[a,c]=(0,s.useState)(!1),[l,d]=(0,s.useState)(!1),{user:x,loginWithGoogle:p,logout:b,deleteAccount:g,loadingAuth:y}=(0,h.c)(),v=async()=>{d(!0);try{await g(),(0,o.L9)("account_deleted"),c(!1),r&&r()}catch(e){console.error("Failed to delete account:",e),alert("שגיאה במחיקת החשבון. נסו להתנתק ולהתחבר מחדש ואז לנסות שוב.")}finally{d(!1)}};if(y)return(0,n.jsx)("div",{className:"h-9 w-24 animate-pulse bg-gray-100 rounded-lg"});if(!x){let e=async()=>{try{await p(),r&&r()}catch(e){alert("ההתחברות נכשלה. אנא ודאו שאינכם חוסמים חלונות קופצים (Pop-ups) או גלישה בסתר מחמירה.")}};return(0,n.jsx)("button",{onClick:e,className:t?"w-full mt-2 px-4 py-3 text-base font-medium text-center text-primary-700 bg-primary-50 rounded-lg hover:bg-primary-100 transition-colors":"px-4 py-2 text-sm font-medium text-primary-700 bg-primary-50 rounded-lg hover:bg-primary-100 transition-colors",children:"התחברות באמצעות גוגל"})}return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:t?"space-y-3 px-4":"flex items-center gap-3",children:[(0,n.jsxs)("div",{className:t?"flex items-center justify-between":"flex items-center gap-3",children:[(0,n.jsxs)("div",{className:"flex items-center gap-2 text-sm text-gray-700",children:[x.photoURL?(0,n.jsx)(i.default,{src:x.photoURL,alt:x.displayName||"User",width:t?36:28,height:t?36:28,className:"rounded-full border border-gray-200"}):(0,n.jsx)("div",{className:"".concat(t?"w-9 h-9":"w-7 h-7"," rounded-full bg-primary-100 flex items-center justify-center text-primary-700"),children:(0,n.jsx)(u.Z,{size:t?18:14})}),(0,n.jsx)("span",{className:"font-medium ".concat(t?"text-gray-800":"max-w-[100px] truncate"),children:x.displayName||"משתמש מחובר"})]}),(0,n.jsxs)("div",{className:t?"flex gap-2":"flex items-center gap-2",children:[!t&&(0,n.jsx)("button",{onClick:()=>c(!0),className:"text-gray-400 hover:text-red-600 transition-colors",title:"מחיקת חשבון","aria-label":"מחיקת חשבון",children:(0,n.jsx)(f,{size:16})}),(0,n.jsx)("button",{onClick:()=>{b(),r&&r()},className:t?"p-2 text-gray-500 hover:text-red-600 transition-colors rounded-lg hover:bg-red-50":"text-gray-400 hover:text-red-600 transition-colors",title:"התנתק","aria-label":"התנתק",children:(0,n.jsx)(m,{size:t?20:18})})]})]}),t&&(0,n.jsx)("button",{onClick:()=>c(!0),className:"w-full text-center text-sm text-red-600 hover:text-red-700 hover:bg-red-50 py-2 rounded-lg transition-colors",children:"מחיקת חשבון ונתונים"})]}),a&&(0,n.jsx)("div",{className:"fixed inset-0 z-[100] flex items-center justify-center bg-black/50 backdrop-blur-sm p-4",dir:"rtl",children:(0,n.jsxs)("div",{className:"bg-white rounded-2xl shadow-2xl max-w-md w-full p-6 space-y-4 animate-in fade-in zoom-in duration-200",children:[(0,n.jsxs)("div",{className:"flex items-center gap-3",children:[(0,n.jsx)("div",{className:"w-10 h-10 rounded-full bg-red-100 flex items-center justify-center",children:(0,n.jsx)(f,{size:20,className:"text-red-600"})}),(0,n.jsx)("h3",{className:"text-lg font-bold text-gray-900",children:"מחיקת חשבון"})]}),(0,n.jsxs)("div",{className:"space-y-2 text-gray-600 text-sm",children:[(0,n.jsx)("p",{children:"פעולה זו תמחק את חשבונך ואת כל הנתונים שלך מהמערכת, כולל:"}),(0,n.jsxs)("ul",{className:"list-disc list-inside space-y-1 mr-2",children:[(0,n.jsx)("li",{children:"היסטוריית פסוקים שלמדת"}),(0,n.jsx)("li",{children:"חשבון ההתחברות שלך"})]}),(0,n.jsx)("p",{className:"font-semibold text-red-700",children:"פעולה זו בלתי הפיכה."})]}),(0,n.jsxs)("div",{className:"flex gap-3 pt-2",children:[(0,n.jsx)("button",{onClick:()=>c(!1),disabled:l,className:"flex-1 px-4 py-2.5 text-sm font-medium text-gray-700 bg-gray-100 hover:bg-gray-200 rounded-lg transition-colors",children:"ביטול"}),(0,n.jsxs)("button",{onClick:v,disabled:l,className:"flex-1 px-4 py-2.5 text-sm font-bold text-white bg-red-600 hover:bg-red-700 rounded-lg transition-colors disabled:opacity-50 disabled:cursor-not-allowed flex items-center justify-center gap-2",children:[l&&(0,n.jsx)("span",{className:"animate-spin rounded-full h-4 w-4 border-b-2 border-white"}),l?"מוחק...":"מחיקת חשבון"]})]})]})})]})}let p=[{href:"/",label:"ראשי"},{href:"/dedicate",label:"הקדשת פסוק לחלל צה״ל"},{href:"/about",label:"אודות"},{href:"/donate",label:"תרומה"},{href:"/newsletter",label:"ניוזלטר"},{href:"/contact",label:"צור קשר"}];
1function b(){let[e,t]=(0,s.useState)(!1);return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("header",{className:"sticky top-0 z-50 bg-white/95 backdrop-blur-sm border-b border-gray-100 shadow-sm",children:[(0,n.jsx)("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:(0,n.jsxs)("div",{className:"flex items-center justify-between h-16",children:[(0,n.jsxs)(a.default,{href:"/",className:"flex items-center gap-2 group",children:[(0,n.jsx)(i.default,{src:"/logo.png",alt:"כתפי ענקים",width:36,height:36,className:"w-9 h-9 rounded-sm"}),(0,n.jsx)("span",{className:"text-xl font-bold font-display text-primary-700 group-hover:text-primary-800 transition-colors",children:"כתפי ענקים"})]}),(0,n.jsx)("nav",{className:"hidden md:flex items-center gap-1",children:p.map(e=>{let t="/dedicate"===e.href;return(0,n.jsx)(a.default,{href:e.href,className:"px-4 py-2 text-sm font-medium rounded-lg transition-colors ".concat(t?"text-amber-700 bg-amber-50 border border-amber-200 hover:bg-amber-100 shadow-sm":"text-gray-600 hover:text-primary-700 hover:bg-primary-50"),onClick:()=>(0,o.L9)("click_nav",{link_name:e.label,platform:"desktop"}),children:e.label},e.href)})}),(0,n.jsx)("div",{className:"hidden md:flex items-center mr-4 pr-4 border-r border-gray-200",children:(0,n.jsx)(x,{})}),(0,n.jsx)("button",{onClick:()=>t(!e),className:"md:hidden p-2 text-gray-600 hover:text-primary-700 hover:bg-gray-100 rounded-lg transition-colors","aria-label":e?"סגור תפריט":"פתח תפריט",children:e?(0,n.jsx)(c.Z,{size:24}):(0,n.jsx)(d,{size:24})})]})}),e&&(0,n.jsx)("nav",{className:"md:hidden border-t border-gray-100 bg-white",children:(0,n.jsxs)("div",{className:"px-4 py-3 space-y-1",children:[p.map(e=>{let r="/dedicate"===e.href;return(0,n.jsx)(a.default,{href:e.href,onClick:()=>{t(!1),(0,o.L9)("click_nav",{link_name:e.label,platform:"mobile"})},className:"block px-4 py-3 text-base font-medium rounded-lg transition-colors ".concat(r?"text-amber-700 bg-amber-50 border border-amber-200 hover:bg-amber-100 mb-2":"text-gray-700 hover:text-primary-700 hover:bg-primary-50"),children:e.label},e.href)}),(0,n.jsx)("div",{className:"pt-4 pb-2 border-t border-gray-100 mt-2",children:(0,n.jsx)(x,{isMobile:!0,onActionComplete:()=>t(!1)})})]})})]})})}},4973:function(e,t,r){"use strict";r.d(t,{UserProgressProvider:function(){return d},c:function(){return u}});var n=r(7437),a=r(2265),i=r(2148),s=r(925),o=r(6410),c=r(8734);let l=(0,a.createContext)(void 0);function d(e){let{children:t}=e,{user:r,loading:d}=(0,c.a)(),[u,f]=(0,a.useState)([]),[m,h]=(0,a.useState)(!0);(0,a.useEffect)(()=>{r?(0,s.fetchUserProgress)(r.uid).then(e=>{f(e),h(!1)}).catch(e=>{console.error("Failed to fetch user progress:",e),h(!1)}):(f([]),h(!1))},[r]);let x=async e=>{if(r&&!u.includes(e)){f(t=>[...t,e]);try{await (0,s.markVerseLearned)(r.uid,e)}catch(t){throw console.error("Failed to mark verse as learned:",t),f(t=>t.filter(t=>t!==e)),t}}},p=async()=>{let e=new i.hJ,t=(0,o.getAppAuth)();try{await (0,i.rh)(t,e)}catch(e){throw console.error("Login failed:",e),e}},b=async()=>{let e=(0,o.getAppAuth)();try{await (0,i.w7)(e)}catch(e){console.error("Logout failed:",e)}},g=async()=>{if(r)try{await (0,s.deleteUserData)(r.uid);try{await (0,i.h8)(r)}catch(e){if("auth/requires-recent-login"===e.code){console.warn("Delete user requires recent login, prompting for re-authentication...");let e=new i.hJ;await (0,i.bc)(r,e),await (0,i.h8)(r)}else throw e}f([])}catch(e){throw console.error("Failed to delete account:",e),e}};return(0,n.jsx)(l.Provider,{value:{user:r,loadingAuth:d||m,learnedVerses:u,markLearned:x,loginWithGoogle:p,logout:b,deleteAccount:g},children:t})}function u(){let e=(0,a.useContext)(l);if(void 0===e)throw Error("useUserProgress must be used within a UserProgressProvider");return e}},8734:function(e,t,r){"use strict";r.d(t,{J:function(){return c},a:function(){return o}});var n=r(2265),a=r(2148),i=r(6410);let s="rPGFWvKmsGTBCqFUiq70v3BD52B2";function o(){let[e,t]=(0,n.useState)(null),[r,o]=(0,n.useState)(!0);(0,n.useEffect)(()=>{let e=(0,i.getAppAuth)();return(0,a.Aj)(e,e=>{t(e),o(!1)})},[]);let c=!!e&&e.uid===s;return{user:e,loading:r,isAdmin:c}}
1function c(){let[e,t]=(0,n.useState)(null),[i,o]=(0,n.useState)(!0);(0,n.useEffect)(()=>{Promise.resolve().then(r.bind(r,6410)).then(e=>{let{getAdminAuth:r}=e,n=r();return(0,a.Aj)(n,e=>{t(e),o(!1)})})},[]);let c=!!e&&e.uid===s;return{user:e,loading:i,isAdmin:c}}},4371:function(e,t,r){"use strict";function n(e){window.dataLayer=window.dataLayer||[],window.dataLayer.push(e)}function a(e,t){let r={event:e};if(t)for(let[e,n]of Object.entries(t))void 0!==n&&(r[e]=n);n(r)}function i(e){n({event:"page_view",page_path:e,page_location:window.location.href,page_title:"undefined"!=typeof document?document.title:""})}r.d(t,{L9:function(){return a},Z0:function(){return i}})},6410:function(e,t,r){"use strict";let n,a;r.r(t),r.d(t,{app:function(){return m},authDb:function(){return f},db:function(){return u},getAdminAuth:function(){return x},getAppAuth:function(){return h}});var i=r(738),s=r(6943),o=r(2148);let c="mikra",l=(0,i.C6)().length?(0,i.Mq)():(0,i.ZF)({apiKey:"AIzaSyDWJRdHoPGjGxTeFcBoDMZBlkBHMeNInys",authDomain:"kitfei.firebaseapp.com",projectId:"kitfei",storageBucket:"kitfei.firebasestorage.app",messagingSenderId:"271520134020",appId:"1:271520134020:web:449645cbb94b7f312ea3d1"}),d=(0,i.C6)().find(e=>"mikraiApp"===e.name)||(0,i.ZF)({apiKey:"AIzaSyBISY1YrdPiCt_v92zhVZyoobWZF_6D1Sw",authDomain:"mikrai.firebaseapp.com",projectId:"mikrai",storageBucket:"mikrai.firebasestorage.app",messagingSenderId:"544352178362",appId:"1:544352178362:web:f037e91898aed7d4af7283"},"mikraiApp");try{n=(0,s.LV)(l,{})}catch(e){n=(0,s.ad)(l)}try{a=(0,s.LV)(d,{},c)}catch(e){a=(0,s.ad)(d,c)}let u=a,f=n,m=d;function h(){return(0,o.v0)(l)}function x(){return(0,o.v0)(d)}},925:function(e,t,r){"use strict";r.r(t),r.d(t,{approveDedication:function(){return m},deleteUserData:function(){return b},fetchApprovedDedication:function(){return d},fetchApprovedDedications:function(){return f},fetchComments:function(){return s},fetchPendingDedications:function(){return u},fetchUserProgress:function(){return x},markVerseLearned:function(){return p},rejectDedication:function(){return h},submitComment:function(){return o},submitDedication:function(){return c}});var n=r(6410),a=r(6943);let i=new Map;async function s(e,t,r){let s="".concat(e,"_").concat(t,"_").concat(r);if(i.has(s))return i.get(s);let o=(async()=>{let i=(0,a.collection)(n.db,"books",e,"chapters",t,"verses",r,"comments"),s=(0,a.IO)(i,(0,a.Xo)("timestamp","desc"),(0,a.b9)(50));return(await (0,a.PL)(s)).docs.map(e=>({id:e.id,...e.data()})).filter(e=>!e.isErrorReport)})();i.set(s,o);try{return await o}catch(e){throw i.delete(s),e}}async function o(e,t,r,s,o){let c=arguments.length>5&&void 0!==arguments[5]&&arguments[5],l=(0,a.collection)(n.db,"books",e,"chapters",t,"verses",r,"comments"),d=await (0,a.addDoc)(l,{textContent:s.slice(0,2e3),captchaToken:o,isErrorReport:c,timestamp:(0,a.serverTimestamp)()}),u="".concat(e,"_").concat(t,"_").concat(r);return i.delete(u),d.id}async function c(e,t,r,i,s,o,c,l,d){let u=(0,a.collection)(n.db,"dedications");return(await (0,a.addDoc)(u,{bookId:e,chapterId:t,verseId:r,verseKey:"".concat(e,"_").concat(t,"_").concat(r),soldierName:i.slice(0,200),yizkorLink:s.slice(0,1e3),dedicationText:o.slice(0,2e3),dedicatorName:c.slice(0,200),dedicatorEmail:l.slice(0,320),status:"pending",captchaToken:d,createdAt:(0,a.serverTimestamp)()})).id}let l=new Map;async function d(e,t,r){let i="".concat(e,"_").concat(t,"_").concat(r);if(l.has(i))return l.get(i);let s=(async()=>{let e=(0,a.collection)(n.db,"dedications"),t=(0,a.IO)(e,(0,a.ar)("verseKey","==",i),(0,a.ar)("status","==","approved"),(0,a.b9)(1)),r=await (0,a.PL)(t);if(r.empty)return null;let s=r.docs[0];return{id:s.id,...s.data()}})();l.set(i,s);try{return await s}catch(e){throw l.delete(i),e}}async function u(){let e=(0,a.collection)(n.db,"dedications"),t=(0,a.IO)(e,(0,a.ar)("status","==","pending"));return(await (0,a.PL)(t)).docs.map(e=>({id:e.id,...e.data()})).sort((e,t)=>{let r=e=>e?"object"==typeof e&&null!==e&&"toMillis"in e?e.toMillis():"object"==typeof e&&null!==e&&"seconds"in e?1e3*e.seconds:new Date(e).getTime()||0:0;return r(t.createdAt)-r(e.createdAt)})}async function f(){let e=(0,a.collection)(n.db,"dedications"),t=(0,a.IO)(e,(0,a.ar)("status","==","approved"));return(await (0,a.PL)(t)).docs.map(e=>({id:e.id,...e.data()})).sort((e,t)=>
1{let r=e=>e?"object"==typeof e&&null!==e&&"toMillis"in e?e.toMillis():"object"==typeof e&&null!==e&&"seconds"in e?1e3*e.seconds:new Date(e).getTime()||0:0;return r(t.createdAt)-r(e.createdAt)})}async function m(e){let t=(0,a.JU)(n.db,"dedications",e);await (0,a.r7)(t,{status:"approved",approvedAt:(0,a.serverTimestamp)()})}async function h(e){let t=(0,a.JU)(n.db,"dedications",e);await (0,a.r7)(t,{status:"rejected"})}async function x(e){let t=(0,a.JU)(n.authDb,"users",e),r=await (0,a.QT)(t);return r.exists()&&r.data().learnedVerses||[]}async function p(e,t){let r=(0,a.JU)(n.authDb,"users",e);await (0,a.pl)(r,{learnedVerses:(0,a.vr)(t)},{merge:!0})}async function b(e){let t=(0,a.JU)(n.authDb,"users",e);(await (0,a.QT)(t)).exists()&&await (0,a.oe)(t)}},2778:function(){},1752:function(e){e.exports={style:{fontFamily:"'__Bellefair_cad7ea', '__Bellefair_Fallback_cad7ea'",fontWeight:400,fontStyle:"normal"},className:"__className_cad7ea",variable:"__variable_cad7ea"}},872:function(e){e.exports={style:{fontFamily:"'__David_Libre_2b84b0', '__David_Libre_Fallback_2b84b0'",fontStyle:"normal"},className:"__className_2b84b0",variable:"__variable_2b84b0"}},1778:function(e){e.exports={style:{fontFamily:"'__Frank_Ruhl_Libre_fc7bfa', '__Frank_Ruhl_Libre_Fallback_fc7bfa'",fontStyle:"normal"},className:"__className_fc7bfa",variable:"__variable_fc7bfa"}},3760:function(e){e.exports={style:{fontFamily:"'__Heebo_cc19bd', '__Heebo_Fallback_cc19bd'",fontStyle:"normal"},className:"__className_cc19bd",variable:"__variable_cc19bd"}},8835:function(e){e.exports={style:{fontFamily:"'__Noto_Serif_Hebrew_1f1cab', '__Noto_Serif_Hebrew_Fallback_1f1cab'",fontWeight:400,fontStyle:"normal"},className:"__className_1f1cab",variable:"__variable_1f1cab"}},738:function(e,t,r){"use strict";r.d(t,{C6:function(){return n.C6},Mq:function(){return n.Mq},ZF:function(){return n.ZF}});var n=r(4300);(0,n.KN)("firebase","12.14.0","app")},2148:function(e,t,r){"use strict";r.d(t,{hJ:function(){return n.Y},h8:function(){return n.G},v0:function(){return n.p},Aj:function(){return n.z},bc:function(){return n.f},e5:function(){return n.ac},rh:function(){return n.d},w7:function(){return n.D}});var n=r(2360);r(4300),r(8582),r(9665),r(7350)}},function(e){e.O(0,[665,461,445,479,111,972,598,782,971,117,744],function(){return e(e.s=6056)}),_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.