1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3214],{30060:(e,a,t)=>{"use strict";t.d(a,{A:()=>i});var r=t(37876),n=t(14e3),l=t(40944),s=t(45857);function i({asset:e,className:a,children:t,useAuth:o,action:d="download",purchased:m}){let h=(0,n.useRouter)(),{isLoggedIn:c}=(0,l.QN)();return(0,r.jsx)("a",{className:a,onClick:()=>{o&&!c?h.push("/login"):((0,s.f0)({action:d,category:"engagement",label:"Download",value:1}),m?h.push(e):h.push(`/api/download/${e}`))},children:t})}},47024:(e,a,t)=>{"use strict";t.r(a),t.d(a,{default:()=>N});var r=t(37876),n=t(6724),l=t(14232),s=t(14873),i=t(64131),o=t(47224),d=t.n(o),m=t(99860),h=t(30060);let c=e=>{let a=["","one","two","three","four","five","six","seven","eight","nine","ten","eleven","twelve","thirteen","fourteen","fifteen","sixteen","seventeen","eighteen","nineteen"],t=["","","twenty","thirty","forty","fifty"];if(e<20)return a[e];let r=Math.floor(e/10),n=e%10;return 0===n?t[r]:`${t[r]}-${a[n]}`},u={1:"×××",2:"×©× ×",3:"ש×ש×",4:"×ר××¢×",5:"××ש×",6:"שש×",7:"ש××¢×",8:"ש××× ×",9:"תשע×",10:"עשר×",11:"××× ×¢×©×¨",12:"×©× ×× ×¢×©×¨",13:"ש××©× ×¢×©×¨",14:"×ר××¢× ×¢×©×¨",15:"×××©× ×¢×©×¨",16:"×©×©× ×¢×©×¨",17:"ש××¢× ×¢×©×¨",18:"ש××× × ×¢×©×¨",19:"×ª×©×¢× ×¢×©×¨",20:"עשר××"},y={1:"ש×××¢ ×××",2:"×©× × ×©×××¢×ת",3:"ש××©× ×©×××¢×ת",4:"×ר××¢× ×©×××¢×ת",5:"×××©× ×©×××¢×ת",6:"×©×©× ×©×××¢×ת",7:"ש××¢× ×©×××¢×ת"},g={1:"×××× ×××",2:"××©× × ××××",3:"×ש××©× ××××",4:"××ר××¢× ××××",5:"××××©× ××××",6:"××©×©× ××××"},p=e=>e<=20?u[e]:e<30?`${u[e-20]} ×עשר××`:30===e?"ש×ש××":e<40?`${u[e-30]} ×ש×ש××`:40===e?"×ר××¢××":e<50?`${u[e-40]} ××ר××¢××`:"",_=e=>{let a,t,r=Math.floor((e-1)/7),n=e-7*r;return{englishText:0===r?`Today is ${c(e)} ${1===e?"day":"days"} of the Omer.`:`Today is ${c(e)} days, which is ${c(r)} ${1===r?"week":"weeks"} and ${c(n)} ${1===n?"day":"days"} of the Omer.`,hebrewText:(a=Math.floor(e/7),t=e-7*a,0===a?`×××× ${p(e)} ××× ××¢××ר.`:0===t?`×××× ${p(e)} ××× ×©×× ${y[a]} ××¢××ר.`:`×××× ${p(e)} ××× ×©×× ${y[a]} ${g[t]} ××¢××ר.`)}};function x({onPopularClick:e,currentHebrewDate:a,currentHebrewYear:t,cholHamoedPesach:n=null,gregorianYear:o=new Date().getFullYear()}){let[c,u]=(0,l.useState)(!1),[y,g]=(0,l.useState)(null),[p,f]=(0,l.useState)([]);(0,l.useEffect)(()=>{let e=(0,m.I7)(o),a=[];for(let t=0;t<49;t++){let r=new Date(e);r.setDate(e.getDate()+t);let n=(0,m.HQ)(r);a.push({omerDay:t+1,gregorianDate:new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric"}).format(r),pesachCalendarLabel:function(e,a){if(17===a)return"Dag BaOmer";if(33===a)return"Lag B'Omer";if(!e||"Nisan"!==e.monthEnglish)return null;let t=e.day;return 16===t?"Pesach II":17===t?"Chol Hamoed III":18===t?"Chol Hamoed IV":19===t?"Chol Hamoed V":20===t?"Chol Hamoed VI":21===t?"Pesach VII":22===t?"Pesach VIII":null}(n,t+1)})}f(a)},[o]);let D=a&&a?"Nisan"===a.monthEnglish&&a.day>=16?a.day-15:"Iyar"===a.monthEnglish?a.day+15:"Sivan"===a.monthEnglish&&a.day<=5?a.day+44:0:0;if(0===D)return null;let b=y&&p[y-1]?.pesachCalendarLabel,w=b&&b?({"Pesach II":{title:"Pesach Day II",detail:"This Hebrew date is the second festival day of Passover (diaspora). The counting of the Omer begins on 16 Nisan; the first day of Pesach (15 Nisan) is the previous calendar day and is not shown as a day of the Omer."},"Chol Hamoed III":{title:"Chol Hamoed Pesach â day III",detail:"Intermediate festival day during Passover. Work is permitted in many communities; the joy and restrictions of the holiday continue."},"Chol Hamoed IV":{title:"Chol Hamoed Pesach â day IV",detail:"Intermediate festival day during Passover. Work is permitted in many communities; the joy and restrictions of the holiday continue."},"Chol Hamoed V":{title:"Chol Hamoed Pesach â day V",detail:"Intermediate festival day during Passover. Work is permitted in many communities; the joy and restrictions of the holiday continue."}
1,"Chol Hamoed VI":{title:"Chol Hamoed Pesach â day VI",detail:"Intermediate festival day during Passover. Work is permitted in many communities; the joy and restrictions of the holiday continue."},"Pesach VII":{title:"Pesach Day VII",detail:"Festival day marking the final day of Passover in Israel and the seventh day in the diaspora; commemorates the crossing of the sea."},"Pesach VIII":{title:"Pesach Day VIII",detail:"Additional festival day observed in the diaspora only, concluding the Passover season."},"Dag BaOmer":{title:"Dag BaOmer",detail:"A lighthearted custom observed by some communities on day 17 of the Omer (2 Iyyar), inspired by the 153 fish in John 21 and celebrated with a fish meal."},"Lag B'Omer":{title:"Lag B'Omer",detail:"Day 33 of the Omer, traditionally marked as Lag B'Omer, a joyful break in the semi-mourning customs of the Omer period."}})[b]??{title:b,detail:"A special day during or adjacent to the Passover season."}:null,C=()=>({psalm:"Psalm 67",text:"God be gracious to us and bless us and make His face to shine upon us. Selah, that your way may be known on earth, your saving power among all peoples. Let the peoples praise you, O God! Let all the peoples praise you! Let the nations be glad and sing for joy, for you judge the peoples with equity and guide the nations upon earth. Selah Let the peoples praise you, O God! Let all the peoples praise you! The earth has yielded its increase; God, our God, shall bless us. God shall bless us; let all the ends of the earth fear him! (Psalm 67)"});return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:`${d().omerContainer} py-5 px-3 px-md-6 px-lg-5 px-xl-6 px-xxl-7`,style:{backgroundImage:'url("https://us-east-1.graphassets.com/APqS8y7QATaCvy9gijJ3oz/SCHa1ekmR0GxClAsycC9")'},children:(0,r.jsxs)("div",{className:d().omerContent,children:[(0,r.jsxs)("div",{className:"d-flex flex-column flex-md-row justify-content-between align-items-start mb-4",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("h5",{className:`${d().header} mb-2 em-spacing-05 fw-bold`,children:`Counting of the Omer: ${t?` ${t}`:""}`}),n&&(0,r.jsxs)("div",{className:`small fw-semibold em-spacing-02 mb-1 text-uppercase ${d().pesachOmerLabel}`,children:["Chol Hamoed Pesach (Day"," ",n,")"]}),a&&(0,r.jsx)("div",{className:"small text-uppercase fw-semibold em-spacing-02 text-gray-500",children:a.fullDate})]}),(0,r.jsxs)("div",{className:"d-flex flex-column flex-md-row gap-2",children:[(0,r.jsx)(h.A,{asset:"cmmdrlj129bpz06iqn6g9uck4",className:"btn btn-xs btn-primary mt-3 mt-md-0 ms-md-2 text-nowrap",children:"Download Chart"}),(0,r.jsx)(s.A,{variant:"outline-dark",size:"xs",onClick:e,className:` ${d().learnMoreBtn} mt-1 mt-md-0 text-nowrap`,children:"Learn More"})]})]}),(0,r.jsx)("div",{className:"d-flex justify-content-center align-items-start mx-n2",children:(()=>{let e=[];for(let a=-2;a<=2;a++){let t=D+a;t>0&&t<=49&&e.push(t)}return e})().map(e=>(0,r.jsxs)("button",{type:"button",onClick:()=>{g(e),u(!0)},className:`${d().dayBox} ${e===D?d().currentDay:""} mx-lg-5 mx-md-3 mx-sm-2 mx-2`,children:[(0,r.jsx)("span",{className:d().dayLabel,children:"Day"}),(0,r.jsx)("span",{className:d().dayNumber,children:e}),p[e-1]&&(0,r.jsx)("span",{className:d().dayDate,children:p[e-1].gregorianDate}),p[e-1]?.pesachCalendarLabel&&(0,r.jsx)("span",{className:d().pesachOmerLabel,lang:"en",children:p[e-1].pesachCalendarLabel})]},e))})]})}),(0,r.jsx)(i.A,{show:c,onHide:()=>u(!1),fullscreen:window.innerWidth<=1200,size:"xl",centered:!0,dialogClassName:"modal-90",style:{backgroundColor:"white"},children:(0,r.jsx)("div",{className:d().modalRadius,children:(0,r.jsx)(i.A.Body,{className:"p-0",children:(0,r.jsxs)("div",{className:"row g-0 h-100",children:[(0,r.jsx)("div",{className:"col-12 col-lg-5 order-lg-2",children:y&&(0,r.jsxs)("div",{className:d().modalInfo,children:[(0,r.jsxs)("h2",{className:d().dayTitle,children:[(0,r.jsx)("span",{children:"Day "}),y]}),w&&(0,r.jsxs)("div",{className:d().modalPesachSpecialBlock,children:[(0,r.jsx)("h3",{className:d().modalPesachSpecialTitle,children:w.title}),(0,r.jsx)("p",{className:d().modalPesachSpecialDetail,children:w.detail})]}),(0,r.jsx)("h3",{className:d().blessingTitle,children:"Counting the Omer"}),(0,r.jsx)("p",{className:d().dayDescription,children:_(y).englishText}),(0,r.jsx)("p",{className:d().omerHebrewBlessing,lang:"he",dir:"rtl",children:_(y).hebrewText}),(0,r.jsx)("h5",{className:d().prayerSubtitle,children:C().psalm}),(0,r.jsx)("p",{className:d().prayerText,children:C().text}),(0,r.jsxs)("div",{className:d().buttonContainer,children:[(0,r.jsx)(h.A,{asset:"cmmdrlj129bpz06iqn6g9uck4",className:"btn btn-primary btn-xs pb-0",children:"Download Chart"}),(0,r.jsx)(s.A,{variant:"outline-light",onClick:()=>u(!1),className:d().closeButton,children:"Close"})]})]})}),(0,r.jsx)("div",{className:"col-12 col-lg-7 order-lg-1",children:(0,r.jsx)("div",{className:d().modalCalendar,children:(0,r.jsxs)("div",{className:d().modalContent,children:[(0,r.jsxs)("h3",{className:d().modalTitle,children:["Counting the Omer",t&&(0,r.jsx)("span",{className:d().year,children:t})]}),(0,r.jsx)("p",{className:`${d().modalPesachLegend} px-xl-5`,children:"Gold dot: Passover, Chol Hamoed, Lag B'Omer, or Dag BaOmer â select a day to read details on the right."}),(0,r.jsx)("div",{className:"container-fluid px-xl-5",children:(0,r.jsx)("div",{className:d().dayGrid,children:Array(7).fill().map((e,a)=>Array(7).fill().map((e,t)=>{let n=7*a+t+1;if(n>49)return null;let l=p[n-1];return(0,r.jsxs)("button",{type:"button",onClick:()=>g(n),"aria-label":l?.pesachCalendarLabel?`Day ${n}, ${l.pesachCalendarLabel}`:`Day ${n}`,className:`${d().modalDayBox} 2 ${l?.pesachCalendarLabel?d().modalDayBoxHasPesach:""} 3 ${n===D?d().currentDay:""} 4 ${n===y?d().selected:""}`,children:[(0,r.jsx)("span",{className:d().dayLabel,children:"Day"}),(0,r.jsx)("span",{className:d().dayNumber,children:n}),l&&(0,r.jsx)("span",{className:d().dayDate,children:l.gregorianDate})]},n)}))})})]})})})]})})})})]})}var f=t(59644),D=t(99431),b=t(94513),w=t(48230),C=t.n(w);function N(){return(0,r.jsx)(f.A,{fluid:!0,className:"p-10",children:(0,r.jsxs)(D.A,{className:"g
4-0",children:[(0,r.jsxs)(b.A,{xs:12,md:8,className:"bg-light p-3",children:[(0,r.jsx)("h1",{children:"Omer Counter"}),(0,r.jsx)(x,{})]}),(0,r.jsxs)(b.A,{xs:12,md:4,className:"bg-dark text-white p-3",children:[(0,r.jsx)("h2",{children:"Related Links"}),(0,r.jsxs)("ul",{children:[(0,r.jsx)("li",{children:(0,r.jsx)(C(),{href:"/internal/test",children:"Test"})}),(0,r.jsx)("li",{children:(0,r.jsx)(C(),{href:"/internal/test/omer-counter",children:"Omer Counter"})})]})]})]})})}N.getLayout=n.Gz},47224:e=>{e.exports={omerContainer:"Omer_omerContainer__YXfuX",omerContent:"Omer_omerContent__gCF6N",header:"Omer_header__q1SZC",learnMoreBtn:"Omer_learnMoreBtn__Wl0QZ",dayGrid:"Omer_dayGrid__bVNbv",dayBox:"Omer_dayBox__EHU2t",currentDay:"Omer_currentDay__sj0yG",dayLabel:"Omer_dayLabel__fGuul",dayNumber:"Omer_dayNumber__lHgbJ",dayDate:"Omer_dayDate__bbzMT",selected:"Omer_selected__R8IYc",pesachOmerLabel:"Omer_pesachOmerLabel__k9GDS",modalDayBox:"Omer_modalDayBox__Hk0v2 Omer_dayBox__EHU2t",pesachOmerNote:"Omer_pesachOmerNote__nWbYn",modalCalendar:"Omer_modalCalendar__XSJff",modalContent:"Omer_modalContent__5_mnh",modalRadius:"Omer_modalRadius__2HXIc",modalTitle:"Omer_modalTitle__x5bBD",year:"Omer_year__ZUGXY",modalPesachCaption:"Omer_modalPesachCaption__zd152",modalPesachSpecialBlock:"Omer_modalPesachSpecialBlock__6tIIK",modalPesachSpecialTitle:"Omer_modalPesachSpecialTitle__q3I_u",modalPesachSpecialDetail:"Omer_modalPesachSpecialDetail__1atvq",omerHebrewBlessing:"Omer_omerHebrewBlessing__MQetW",modalPesachLegend:"Omer_modalPesachLegend__WG_xx",modalDayBoxHasPesach:"Omer_modalDayBoxHasPesach__XtLHF",modalInfo:"Omer_modalInfo__gb_Av",dayTitle:"Omer_dayTitle__GBrhi",dayDescription:"Omer_dayDescription__Z9Z1D",hebrew:"Omer_hebrew__Q_HiH",blessingTitle:"Omer_blessingTitle__ua9id",prayerSubtitle:"Omer_prayerSubtitle__Gzp4j",prayerText:"Omer_prayerText__S1G4y",closeButton:"Omer_closeButton__s2WNu",printButton:"Omer_printButton__dR0tB",buttonContainer:"Omer_buttonContainer__hOTnu"}},48431:(e,a,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/internal/test",function(){return t(47024)}])},99860:(e,a,t)=>{"use strict";t.d(a,{$j:()=>n,AV:()=>r,BJ:()=>s,ES:()=>l,G6:()=>i,HQ:()=>g,I7:()=>p,JR:()=>o,MD:()=>m,QC:()=>c,ZD:()=>d,vH:()=>h});let r=()=>{let e=new Date,a=e.getFullYear().toString(),t=(e.getMonth()+1).toString(),r=e.getDate().toString(),n=t.split(""),l=r.split("");return`${a}-${n[1]?t:`0${n[0]}`}-${l[1]?r:`0${l[0]}`}`},n=(e,a={})=>new Intl.DateTimeFormat("en-US",{timeZone:"UTC",...a}).format(e?new Date(e):new Date),l=e=>n(e,{day:"2-digit",month:"2-digit",year:"numeric"}),s=e=>{let a=n(e,{weekday:"short"}).substring(0,3),t=n(e,{month:"short"}),r=n(e,{day:"numeric"});return`${a}, ${t} ${r}`},i=e=>n(e,{day:"numeric",month:"short",year:"numeric"}),o=(e,a)=>{let t=e?new Date(e):new Date,r=a?new Date(a):new Date,n=["JAN","FEB","MAR","APR","MAY","JUN","JUL","AUG","SEP","OCT","NOV","DEC"],l=`${t.getUTCDate()}`.padStart(2,"0"),s=n[t.getUTCMonth()],i=`${r.getUTCDate()}`.padStart(2,"0");return{startMonth:s,startDay:l,endMonth:n[r.getUTCMonth()],endDay:i,isSameDay:t.getUTCDate()===r.getUTCDate()&&t.getUTCMonth()===r.getUTCMonth()&&t.getUTCFullYear()===r.getUTCFullYear()}},d=e=>{let a=e?new Date(e):new Date,t=a.getFullYear().toString(),r=a.toLocaleString("en-us",{month:"long"}),n=a.getDate();return`${n} ${r} ${t}`},m=e=>{let a=e?new Date(e):new Date;if(isNaN(a.getTime()))return e.substr(0,10);let t=a.toLocaleString("en-us",{day:"numeric",month:"short",year:"numeric"}).split(" ");if(t.length<3){let e=a.getDate(),t=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][a.getMonth()],r=a.getFullYear();return`${e} ${t} ${r}`}let r=t[0],n=t[1],l=t[2];return`${r} ${n} ${l}`},h=e=>{let a=new Date,t=new Date(e),r=d(e),n=new Date(a-t),l=n.getUTCDate()-1;return l<3&&(r=l<1?`${n.getHours()} Hours ago`:`${n.getDate()} Days ago`),r},c=(e,a,t=!1)=>{let r=new Date(e.replace(/-/g,"/")),n=new Date(a.replace(/-/g,"/")),l=r.getDate(),s=n.getDate(),i=r.toLocaleString("en-us",{month:t?"short":"long"}),o=r.toLocaleString("en-us",{month:"short"}
4),d=n.toLocaleString("en-us",{month:t?"short":"long"}),m=n.toLocaleString("en-us",{month:"short"}),h=r.getFullYear().toString(),c=n.getFullYear().toString();return h===c?i===d?`${i} ${l} - ${s}, ${h}`:`${o} ${l} - ${m} ${s}, ${h}`:`${o} ${l}, ${h} - ${m} ${s}, ${c}`},u=new Map,y={Tishri:"Tishri",Cheshvan:"Cheshvan",Kislev:"Kislev",Tevet:"Tevet",Shevat:"Shevat",Adar:"Adar","Adar I":"Adar I","Adar II":"Adar II",Nisan:"Nisan",Iyar:"Iyar",Sivan:"Sivan",Tammuz:"Tammuz",Av:"Av",Elul:"Elul"},g=(e=new Date,a=null,t=null)=>{let r=a&&t?`${e.toISOString()}-${a}-${t}`:e.toISOString();if(u.has(r))return u.get(r);try{let a,t=e;if(e.getHours()>=19){let a=new Date(e);a.setDate(a.getDate()+1),t=a}let n=new Intl.DateTimeFormat("en-u-ca-hebrew",{month:"numeric",year:"numeric"}),l=new Intl.DateTimeFormat("he-u-ca-hebrew",{month:"long"}),s=new Intl.DateTimeFormat("en-u-ca-hebrew",{day:"numeric",month:"long",year:"numeric"}).format(t),i=n.format(t),o=l.format(t),d=s.split(" "),m=d.find(e=>/\d/.test(e)),h=d.find(e=>!/\d/.test(e));if(!m||!h)throw Error("Invalid Hebrew date parts");let c=parseInt(i.split("/")[0],10),g=(a=new Intl.DateTimeFormat("en-u-ca-hebrew",{year:"numeric"}).format(e),[3,6,8,11,14,17,19].includes(a%19));(h.includes("Adar")||"Adar"===h)&&(g?6===c||o.includes("××ר ×")?h="Adar I":(7===c||o.includes("××ר ×"))&&(h="Adar II"):h="Adar");let p={day:parseInt(m.replace(/\D/g,""),10),monthEnglish:y[h]||h,fullDate:s,isLeapYear:g,numericMonth:c,hebrewMonth:o};return u.set(r,p),p}catch(e){return console.error("Error in getCurrentHebrewDate:",e),{day:1,monthEnglish:"Tishri",fullDate:"Error",isLeapYear:!1}}},p=(e=new Date().getFullYear())=>{for(let a=2;a<5;a++)for(let t=1;t<31;t++){let r=new Date(e,a,t),n=g(r);if("Nisan"===n.monthEnglish&&16===n.day)return r}return new Date}}},e=>{e.O(0,[636,6593,8792],()=>e(e.s=48431)),_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.