1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},s=(new e.Error).stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="a3e8b0a9-bb36-4b5e-89c1-ed781ab34b6a",e._sentryDebugIdIdentifier="sentry-dbid-a3e8b0a9-bb36-4b5e-89c1-ed781ab34b6a")}()}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[332],{16760:(e,s,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return t(53034)}])},18977:(e,s,t)=>{"use strict";t.d(s,{W:()=>r});var a=t(47451),l=t(35040);let i={some:0,all:1};function r(e,{root:s,margin:t,amount:n,once:c=!1,initial:o=!1}={}){let[d,x]=(0,a.useState)(o);return(0,a.useEffect)(()=>{if(!e.current||c&&d)return;let a={root:s&&s.current||void 0,margin:t,amount:n};return function(e,s,{root:t,margin:a,amount:r="some"}={}){let n=(0,l.K)(e),c=new WeakMap,o=new IntersectionObserver(e=>{e.forEach(e=>{let t=c.get(e.target);if(!!t!==e.isIntersecting)if(e.isIntersecting){let t=s(e.target,e);"function"==typeof t?c.set(e.target,t):o.unobserve(e.target)}else"function"==typeof t&&(t(e),c.delete(e.target))})},{root:t,rootMargin:a,threshold:"number"==typeof r?r:i[r]});return n.forEach(e=>o.observe(e)),()=>o.disconnect()}(e.current,()=>(x(!0),c?void 0:()=>x(!1)),a)},[s,e,t,c,n]),d}},53034:(e,s,t)=>{"use strict";t.r(s),t.d(s,{__N_SSP:()=>L,default:()=>S});var a=t(28019),l=t(38387),i=t(76002),r=t(47451),n=t(19157),c=t.n(n),o=t(10210),d=t(8750),x=t.n(d);let p=e=>(0,a.jsxs)(c(),{href:encodeURI(e.seo_url),className:"rounded-lg flex flex-col bg-white shadow-[0_3px_10px_rgba(0,0,0,0.13)] overflow-hidden",children:[(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)(x(),{className:"w-full h-[187px] object-cover",src:e.image||"https://placehold.co/600x400/EEE/31343C",alt:"Featured Item",width:338,height:190,priority:!0}),(0,a.jsx)("span",{className:"absolute ltr:left-[20px] rtl:right-[20px] top-[10px] w-[calc(100%_-_40px)]",children:e.type&&(0,a.jsx)(o.L,{purchasable:e.purchasable,duration:e.duration,type:e.type,date:e.date,is_adult_content:e.is_adult_content,is_live:e.is_live,countdown:e.countdown})})]}),(0,a.jsxs)("div",{className:"text-celtic-rush relative",children:[e.subject&&(0,a.jsx)("p",{className:"bg-granulated-sugar rounded-[10px] max-w-[80%] font-[400] text-[14px] text-celtic-rush mx-auto px-[10px] absolute translate-y-[-50%] ml-[20px] border-white-cliffs border-[1px] truncate",children:e.subject}),(0,a.jsx)("p",{className:"h-[73px] px-[18px] text-[16px] mb-[10px] pt-[20px] font-[500] text-celtic-rush line-clamp-2",children:e.title?e.title:e.name})]})]});var m=t(95166),u=t(69562),h=t(60051),j=t(18977),f=t(47101);let g=e=>{let{category:s,siteId:t}=e,n=(0,r.useRef)(null),c=(0,j.W)(n,{once:!0,margin:"200px 0px"}),[o,d]=(0,r.useState)(null),[x,p]=(0,r.useState)(0);return(0,r.useEffect)(()=>{if(!c||null!==o)return;let e=!1;return(async()=>{try{var a,l,r;let n,c=0;if("holiday-parsha"===s.template_slug&&s.holiday_parsha_series_view===f.j.DETAILED){let e=s,l=!e.holiday_parsha_series||!e.holiday_parsha_series.length,r=(null==(a=e.holiday_parsha_series)?void 0:a.length)&&"object"!=typeof e.holiday_parsha_series[0];(l||r)&&(e=(await (0,i.nA)(s.id,t)).category),c=(n=e.holiday_parsha_series||[]).length}else{let e=await (0,i.JS)({slugOrId:s.id,site_id:t,limit:5,page:1,getAll:!0});n=null!=(l=null==e?void 0:e.items)?l:[],c=null!=(r=null==e?void 0:e.total_items)?r:0}e||(d(n),p(c))}catch(s){e||(d([]),p(0))}})(),()=>{e=!0}},[c,o,s,t]),(0,a.jsx)(h.P.div,{ref:n,className:"col-span-10 pt-[10px]",initial:{opacity:0}
1,animate:{opacity:1},transition:{duration:1,ease:"easeOut"},children:o?"holiday-parsha"===s.template_slug&&s.holiday_parsha_series_view===f.j.DETAILED?(0,a.jsx)(l.jQ,{title:s.name,items:o,viewType:f.j.DETAILED,viewAllLink:s.seo_url,compact:!0}):(0,a.jsx)(l.FN,{title:s.name,items:o,totalItems:x,viewAllLink:s.seo_url,compact:!0}):(0,a.jsx)(l.UJ,{compact:!0})})},v=e=>{let{rest_posters:s}=e,{t}=(0,m.A)("common"),[n,c]=(0,r.useState)([]),[o,d]=(0,r.useState)(null),[x,p]=(0,r.useState)(null),u=Number("2"),j=(0,r.useCallback)(async()=>{let e=await (0,i.Ir)(u);e&&!Array.isArray(e)&&Array.isArray(e.data)?e=e.data:Array.isArray(e)||(e=[]),c(e);let s=e.some(e=>"This Week's Parsha"===e.name),t=e.some(e=>"Upcoming Holiday"===e.name),a=[];t&&a.push((0,i.El)(u,"holidays").then(async e=>{if(e){let t=0;if(e.holiday_parsha_series_view===f.j.DETAILED)t=(e.holiday_parsha_series||[]).length;else{var s;let a=await (0,i.JS)({slugOrId:e.id,site_id:u,limit:5,page:1,getAll:!0});t=null!=(s=null==a?void 0:a.total_items)?s:0}d({cat:e,total:t})}})),s&&a.push((0,i.bc)(u).then(async e=>{e&&p(await Promise.all(e.map(async e=>{let s=0;if(e.holiday_parsha_series_view===f.j.DETAILED)s=(e.holiday_parsha_series||[]).length;else{var t;let a=await (0,i.JS)({slugOrId:e.id,site_id:u,limit:5,page:1,getAll:!0});s=null!=(t=null==a?void 0:a.total_items)?t:0}return{cat:e,total:s}})))})),a.length>0&&await Promise.all(a)},[u]);return(0,r.useEffect)(()=>{j()},[j]),(0,a.jsx)(a.Fragment,{children:n&&!!n.length&&n.map((e,i)=>{if("Featured Classes"===e.name)return(0,a.jsx)(h.P.div,{className:"col-span-10",initial:{opacity:0}
1,animate:{opacity:1},transition:{duration:1,ease:"easeOut"},children:(0,a.jsx)(l.FN,{title:t("featured_classes"),items:s,compact:!0})},i);if("Upcoming Holiday"===e.name){var r,n;if(!o)return null;let{cat:e,total:s}=o,c=e.holiday_parsha_series_view===f.j.DETAILED,d=c?null!=(r=e.holiday_parsha_series)?r:[]:null!=(n=e.items)?n:[];return(0,a.jsxs)(h.P.div,{className:"pt-[10px]",initial:{opacity:0},animate:{opacity:1},transition:{duration:1,ease:"easeOut"},children:[(0,a.jsx)("h3",{className:"font-[500] text-[16px] text-[#71858E] pt-[10px]",children:t("holidays_box")}),(0,a.jsx)("div",{className:"col-span-10",children:!!d.length&&(c?(0,a.jsx)(l.jQ,{title:e.name,items:d,viewType:f.j.DETAILED,viewAllLink:e.seo_url,compact:!0}):(0,a.jsx)(l.FN,{title:e.name,items:d,totalItems:s,viewAllLink:e.seo_url,compact:!0}))})]},i)}return"This Week's Parsha"===e.name?x?(0,a.jsxs)(h.P.div,{className:"pt-[10px]",initial:{opacity:0},animate:{opacity:1},transition:{duration:1,ease:"easeOut"},children:[(0,a.jsx)("h3",{className:"font-[500] text-[16px] text-[#71858E] pt-[10px]",children:t("parsha_week")}),x.map((e,s)=>{var t,i;let{cat:r,total:n}=e,c=r.holiday_parsha_series_view===f.j.DETAILED,o=c?null!=(t=r.holiday_parsha_series)?t:[]:null!=(i=r.items)?i:[];return(0,a.jsx)("div",{children:!!o.length&&(0,a.jsx)("div",{className:"col-span-10 pb-[10px]",children:c?(0,a.jsx)(l.jQ,{title:r.name,items:o,viewType:f.j.DETAILED,viewAllLink:r.seo_url,compact:!0}):(0,a.jsx)(l.FN,{title:r.name,items:o,totalItems:n,viewAllLink:r.seo_url,compact:!0})})},s)})]},i):null:e.category_id&&e.category?(0,a.jsx)(g,{category:e.category,siteId:u},i):null})})};var _=t(49460),y=t.n(_);let b=()=>{let{t:e}=(0,m.A)("common"),[s,t]=(0,r.useState)([]),{data:{data:n,total_pages:c,current_page:o},onNextPage:d}=(0,i.Pb)({type:s,site_id:Number("2"),limit:12}),x=(0,r.useCallback)(e=>{t(y()(s,[e]))},[s]),p=(0,r.useCallback)(()=>{t([])},[]);return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"mx-auto",children:[(0,a.jsx)("div",{className:" pb-[20px]",children:(0,a.jsx)(l.Cu,{onTypeChange:x,types:s,onClear:p})}),(0,a.jsx)("div",{className:"pb-[40px]",children:(0,a.jsxs)("div",{className:"grid grid-cols-12 gap-7",children:[(0,a.jsxs)("div",{className:"flex flex-col col-span-9 max-xl:col-span-12",children:[(0,a.jsx)("div",{className:"grid grid-cols-3 max-xl:grid-cols-2 max-sm:grid-cols-1 gap-5",children:n.map((e,s)=>(0,a.jsx)(l.f3,{...e},s))}),o<c&&(0,a.jsx)("button",{className:"mx-auto mt-[30px] bg-citronella font-[700] text-[14px] tracking-[2px] text-white hover:bg-citronella-darken py-[15px] px-[30px] rounded-[30px] w-fit flex justify-center uppercase transition ease-in-out duration-300 cursor-pointer",onClick:d,children:e("load_more")})]}),(0,a.jsx)("div",{className:"col-span-3 max-xl:col-span-12",children:(0,a.jsx)(l.z6,{})})]})})]})})};var N=t(53661),w=t(64716),k=t(51105),E=t(18031),A=t(35992),I=t.n(A);let D=e=>{let{title:s,subject:t,image:l,seo_url:i,go_live_date:r,site_id:n}=e;I().locale(5===Number("2")?"he":"en-ca");let o=I().tz(r,"America/New_York"),d=I().tz.guess(),p=o.clone().tz(d);return(0,a.jsxs)(c(),{href:2==n?"https://theyeshiva.net"+i:"https://lilmod.net/"+i,className:"flex flex-col",children:[(0,a.jsx)(x(),{className:"w-full rounded-[8px] object-cover mb-[10px]",src:l||"/images/image-placeholder.png",alt:s,width:350,height:213,priority:!0}),(0,a.jsx)("h3",{className:"text-celtic-rush mb-[5px] font-[500] text-[18px]",children:s}),(0,a.jsx)("p",{className:"text-[15px] text-dark-gray",children:t}),(0,a.jsxs)("p",{className:"text-[15px] text-dark-gray",children:[(0,a.jsx)("span",{children:p.format("dddd, MMMM D, Y")+" "}),(0,a.jsx)("span",{children:"\xb7"}),(0,a.jsxs)("span",{children:[" "," "+p.format("h:mm a")]})]})]})},M=()=>{let[e,s]=(0,r.useState)(0),{data:{data:t,end_date:n,start_date:c,total_pages:o,current_page:d,total_items:x},onNextPage:p}=(0,i.wk)({week:e,limit:12}),{t:u}=(0,m.A)("common");return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"mx-auto flex justify-between items-start text-celtic-rush flex-col gap-[10px]",children:[(0,a.jsxs)("p",{className:"flex items-center justify-start text-[20px]",children:[(0,a.jsx)(l.CT,{color:"citronella"}),(0,a.jsx)("span",{className:"text-[22px] ltr:ml-[10px] rtl:mr-[10px]",children:c&&n&&((0,N.GP)((0,w.H)("".concat(c)),"MMM")===(0,N.GP)((0,w.H)("".concat(n)),"MMM")?(0,N.GP)((0,w.H)("".concat(c)),"MMMM d",{locale:5===Number("2")?k.he:E.c})+"-"+(0,N.GP)((0,w.H)("".concat(n)),"d",{locale:5===Number("2")?k.he:E.c}):(0,N.GP)((0,w.H)("".concat(c)),"MMMM d",{locale:5===Number("2")?k.he:E.c})+"-"+(0,N.GP)((0,w.H)("".concat(n)),"MMMM d",{locale:5===Number("2")?k.he:E.c}))})]}),(0,a.jsxs)("div",{className:"flex gap-[15px] mb-[20px] w-full rtl:flex-row-reverse",children:[(0,a.jsxs)("div",{className:"border-[1px] border-citronella font-[500] py-[8px] px-[20px] rtl:flex-row-reverse rounded-[8px] w-full flex justify-center items-center text-[16px] cursor-pointer",children:[(0,a.jsx)(l.YJ,{color:"citronella",size:"1x"}),(0,a.jsx)("span",{className:"ml-[8px]",onClick:()=>{s(e=>e-1)},children:u("previous_week")})]}),(0,a.jsxs)("div",{className:"border-[1px] border-citronella rtl:flex-row-reverse font-[500] py-[8px] px-[20px] rounded-[8px] w-full flex justify-center items-center text-[16px] cursor-pointer",children:[(0,a.jsx)("span",{className:"mr-[8px]",onClick:()=>{s(e=>e+1)},children:u("next_week")}),(0,a.jsx)(l.vK,{color:"citronella",size:"1x"})]})]})]}),(0,a.jsx)("div",{className:"mx-auto flex flex-col gap-[25px]",children:t&&t.map((e,s)=>(0,a.jsx)(D,{...e},s))}),x<1&&(0,a.jsx)("section",{className:"text-celtic-rush text-center text-[24px]",children:u("no_weekly_classes")}),x>11&&d<o&&(0,a.jsx)("button",{className:"mx-auto mt-[30px] bg-citronella font-[700] text-[14px] tracking-[2px] text-white hover:bg-citronella-darken py-[15px] px-[30px] rounded-[30px] w-fit flex justify-center uppercase transition ease-in-out duration-300 cursor-pointer",onClick:p,children:u("load_more")})]})},P=["Home","Recent","Upcoming"],T=e=>{let{rest_posters:s}=e,[t,l]=(0,r.useState)("Home"),[i,n]=(0,r.useState)({Home:!0,Recent:!1,Upcoming:!1});return(0,a.jsxs)(h.P.div,{className:"container sm:mx-auto py-[20px]",children:[(0,a.jsx)("div",{className:"flex w-full justify-around",children:P.map(e=>(0,a.jsx)("button",{onClick:()=>(e=>{l(e),i[e]||n(s=>({...s,[e]:!0}))})(e),className:"pb-[8px] w-1/3 border-b-[2px] ".concat(t===e?"border-b-citronella-darken text-citronella-darken":"text-celtic-rush border-b-explosive-grey "),children:e},e))}),(0,a.jsxs)("div",{className:"pt-[20px]",children:[i.Home&&(0,a.jsx)("div",{style:{display:"Home"===t?"block":"none"},children:(0,a.jsx)(v,{rest_posters:s})}),i.Recent&&(0,a.jsx)("div",{style:{display:"Recent"===t?"block":"none"},children:(0,a.jsx)(b,{})}),i.Upcoming&&(0,a.jsx)("div",{style:{display:"Upcoming"===t?"block":"none"},children:(0,a.jsx)(M,{})})]})]})};var L=!0;function S(e){let{t:s}=(0,m.A)("common"),[t,n,c,...o]=e.featured_items,[d,x]=(0,r.useState)(null),{innerWidth:h}=(0,u.A)();(0,r.useEffect)(()=>{(0,i.of)(Number("2")).then(e=>{x(null==e?void 0:e.comment)})},[]);let[j,f]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{f(!0)},[]),(0,a.jsx)("div",{children:j&&h?(0,a.jsx)(a.Fragment,{children:h>767?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"bg-gibraltar-sea py-[30px] mb-[30px]",children:(0,a.jsx)("div",{className:"container sm:mx-auto",children:(0,a.jsxs)("div",{className:"grid grid-cols-12 gap-7",children:[(0,a.jsx)("div",{className:"col-span-12 md:col-span-4 xl:col-span-6 h-[100%]",children:t&&(0,a.jsx)(l.O6,{version:"standart",...t})}),(0,a.jsx)("div",{className:"col-span-12 md:col-span-8 xl:col-span-3 h-[100%]",children:(0,a.jsxs)("div",{className:"grid grid-cols-12 gap-6 h-[100%]",children:[(0,a.jsx)("div",{className:"col-span-12 md:col-span-6 xl:col-span-12",children:n&&(0,a.jsx)(l.O6,{version:"minimal",...n})}),(0,a.jsx)("div",{className:"col-span-12 md:col-span-6 xl:col-span-12",children:c&&(0,a.jsx)(l.O6,{version:"minimal",...c})})]})}),(0,a.jsx)("div",{className:"col-span-12 xl:col-span-3 h-[100%]",children:(0,a.jsx)(l.DE,{events:e.sc
1heduled_items,notice:d})})]})})}),(0,a.jsx)("div",{className:"container mx-auto pb-[40px]",children:(0,a.jsxs)("div",{className:"grid grid-cols-10 gap-6",children:[(0,a.jsx)("div",{className:"grid grid-cols-1 min-[480px]:grid-cols-2 md:grid-cols-3 gap-5 col-span-10 xl:col-span-7 h-fit",children:o.map((e,s)=>(0,a.jsx)(p,{...e},s))}),(0,a.jsx)("div",{className:"hidden xl:block col-span-3",children:(0,a.jsx)(l.z6,{})})]})})]}):(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(T,{rest_posters:e.featured_items})})}):null})}S.getLayout=function(e){return(0,a.jsx)(l.PE,{children:e})}}},e=>{e.O(0,[661,260,636,593,792],()=>e(e.s=16760)),_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.