jcal-zmanim 1.1.6 → 1.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,14 +1,8 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.getNotifications = void 0;
7
- const Utils_1 = require("./Utils");
8
- const jDate_1 = __importDefault(require("./JCal/jDate"));
9
- const Molad_1 = __importDefault(require("./JCal/Molad"));
10
- const PirkeiAvos_1 = __importDefault(require("./JCal/PirkeiAvos"));
11
- const ZmanimUtils_1 = __importDefault(require("./JCal/ZmanimUtils"));
1
+ import { Utils, DaysOfWeek } from './Utils';
2
+ import jDate from './JCal/jDate';
3
+ import Molad from './JCal/Molad';
4
+ import PirkeiAvos from './JCal/PirkeiAvos';
5
+ import ZmanimUtils from './JCal/ZmanimUtils';
12
6
  const dayNotes = [];
13
7
  const tefillahNotes = [];
14
8
  let showEnglish = false, dayInfo, showGaonShirShelYom = true, israel = true;
@@ -22,13 +16,13 @@ let showEnglish = false, dayInfo, showGaonShirShelYom = true, israel = true;
22
16
  * @param showDafYomi
23
17
  * @returns {{ dayNotes: string[], tefillahNotes: string[]}}
24
18
  */
25
- function getNotifications(date, time, location, english, showGaonShir, showDafYomi) {
26
- const { sdate, jdate } = Utils_1.Utils.bothDates(date);
19
+ export function getNotifications(date, time, location, english, showGaonShir, showDafYomi) {
20
+ const { sdate, jdate } = Utils.bothDates(date);
27
21
  dayNotes.length = 0;
28
22
  tefillahNotes.length = 0;
29
- const month = jdate.Month, day = jdate.Day, dow = jdate.DayOfWeek, { chatzosHayom, chatzosHalayla, alos, shkia, } = ZmanimUtils_1.default.getBasicShulZmanim(date, location), isAfterChatzosHayom = Utils_1.Utils.isTimeAfter(chatzosHayom, time), isAfterChatzosHalayla = (typeof (chatzosHalayla) !== 'undefined') &&
30
- (Utils_1.Utils.isTimeAfter(chatzosHalayla, time) || (chatzosHalayla.hour > 12 && time.hour < 12)), //Chatzos is before 0:00 and time is after 0:00
31
- isAfterAlos = Utils_1.Utils.isTimeAfter(alos, time), isAfterShkia = Utils_1.Utils.isTimeAfter(shkia, time), isDaytime = isAfterAlos && !isAfterShkia, isNightTime = !isDaytime, isNotBeinHasmashos = !isAfterShkia || Utils_1.Utils.isTimeAfter(Utils_1.Utils.addMinutes(shkia, 18), time), isMorning = isDaytime && !isAfterChatzosHayom, isAfternoon = isDaytime && isAfterChatzosHayom, isYomTov = jdate.isYomTovOrCholHamoed(location.Israel), isLeapYear = jDate_1.default.isJdLeapY(jdate.Year), noTachnun = isAfternoon && (dow === Utils_1.DaysOfWeek.FRIDAY || day === 29);
23
+ const month = jdate.Month, day = jdate.Day, dow = jdate.DayOfWeek, { chatzosHayom, chatzosHalayla, alos, shkia, } = ZmanimUtils.getBasicShulZmanim(date, location), isAfterChatzosHayom = Utils.isTimeAfter(chatzosHayom, time), isAfterChatzosHalayla = (typeof (chatzosHalayla) !== 'undefined') &&
24
+ (Utils.isTimeAfter(chatzosHalayla, time) || (chatzosHalayla.hour > 12 && time.hour < 12)), //Chatzos is before 0:00 and time is after 0:00
25
+ isAfterAlos = Utils.isTimeAfter(alos, time), isAfterShkia = Utils.isTimeAfter(shkia, time), isDaytime = isAfterAlos && !isAfterShkia, isNightTime = !isDaytime, isNotBeinHasmashos = !isAfterShkia || Utils.isTimeAfter(Utils.addMinutes(shkia, 18), time), isMorning = isDaytime && !isAfterChatzosHayom, isAfternoon = isDaytime && isAfterChatzosHayom, isYomTov = jdate.isYomTovOrCholHamoed(location.Israel), isLeapYear = jDate.isJdLeapY(jdate.Year), noTachnun = isAfternoon && (dow === DaysOfWeek.FRIDAY || day === 29);
32
26
  dayInfo = {
33
27
  jdate,
34
28
  sdate,
@@ -51,7 +45,7 @@ function getNotifications(date, time, location, english, showGaonShir, showDafYo
51
45
  showEnglish = english;
52
46
  israel = location.Israel;
53
47
  showGaonShirShelYom = (typeof showGaonShir === 'undefined' ? israel : !!showGaonShir);
54
- if (dow === Utils_1.DaysOfWeek.SHABBOS) {
48
+ if (dow === DaysOfWeek.SHABBOS) {
55
49
  getShabbosNotifications();
56
50
  }
57
51
  else {
@@ -59,7 +53,7 @@ function getNotifications(date, time, location, english, showGaonShir, showDafYo
59
53
  }
60
54
  getAroundTheYearNotifications();
61
55
  if (dayInfo.noTachnun && isDaytime && !isYomTov) {
62
- if (dow !== Utils_1.DaysOfWeek.SHABBOS) {
56
+ if (dow !== DaysOfWeek.SHABBOS) {
63
57
  addTefillahNote('No Tachnun', 'א"א תחנון');
64
58
  }
65
59
  else if (isAfternoon) {
@@ -79,7 +73,7 @@ function getNotifications(date, time, location, english, showGaonShir, showDafYo
79
73
  ((month === 1 && day > 15) || month === 2 || (month === 3 && day < 6))) {
80
74
  const dayOfSefirah = jdate.getDayOfOmer();
81
75
  if (dayOfSefirah > 0) {
82
- addTefillahNote(Utils_1.Utils.getOmerNusach(dayOfSefirah, 'ashkenaz'));
76
+ addTefillahNote(Utils.getOmerNusach(dayOfSefirah, 'ashkenaz'));
83
77
  }
84
78
  }
85
79
  //return only unique values
@@ -88,7 +82,6 @@ function getNotifications(date, time, location, english, showGaonShir, showDafYo
88
82
  tefillahNotes: [...new Set(tefillahNotes)],
89
83
  };
90
84
  }
91
- exports.getNotifications = getNotifications;
92
85
  function getShabbosNotifications() {
93
86
  const { month, day, isLeapYear, isMorning, isYomTov, jdate, isDaytime, isAfternoon, } = dayInfo;
94
87
  if (month === 1 && day > 7 && day < 15) {
@@ -123,8 +116,8 @@ function getShabbosNotifications() {
123
116
  if (month !== 6 && day > 22 && day < 30) {
124
117
  const nextMonth = jdate.addMonths(1);
125
118
  addTefillahNote('The molad will be ' +
126
- Molad_1.default.getString(nextMonth.Year, nextMonth.Month), 'המולד יהיה ב' +
127
- Molad_1.default.getStringHeb(nextMonth.Year, nextMonth.Month));
119
+ Molad.getString(nextMonth.Year, nextMonth.Month), 'המולד יהיה ב' +
120
+ Molad.getStringHeb(nextMonth.Year, nextMonth.Month));
128
121
  addTefillahNote('Bircas Hachodesh', 'מברכים החודש');
129
122
  if (month !== 1 && month !== 2) {
130
123
  addTefillahNote('No Av Harachamim', 'א"א אב הרחמים');
@@ -158,18 +151,18 @@ function getShabbosNotifications() {
158
151
  if (isAfternoon &&
159
152
  ((month === 1 && day > 21) ||
160
153
  (month <= 6 && !(month === 5 && [8, 9].includes(day))))) {
161
- const prakim = PirkeiAvos_1.default.getPrakim(jdate, israel);
154
+ const prakim = PirkeiAvos.getPrakim(jdate, israel);
162
155
  if (prakim.length > 0) {
163
156
  addDayNote('Pirkei Avos - ' +
164
- prakim.map(s => `Perek ${Utils_1.Utils.toJewishNumber(s)}`).join(' and '), 'פרקי אבות - ' +
165
- prakim.map(s => `פרק ${Utils_1.Utils.toJewishNumber(s)}`).join(' ו'));
157
+ prakim.map(s => `Perek ${Utils.toJewishNumber(s)}`).join(' and '), 'פרקי אבות - ' +
158
+ prakim.map(s => `פרק ${Utils.toJewishNumber(s)}`).join(' ו'));
166
159
  }
167
160
  }
168
161
  }
169
162
  function getWeekDayNotifications() {
170
163
  const { isNightTime, dow, isYomTov, month, day, isMorning, jdate, location, isDaytime, isAfternoon, } = dayInfo;
171
164
  //מוצאי שבת
172
- if (isNightTime && dow === Utils_1.DaysOfWeek.SUNDAY) {
165
+ if (isNightTime && dow === DaysOfWeek.SUNDAY) {
173
166
  //הבדלה בתפילה for מוצאי שבת
174
167
  addTefillahNote((month === 1 && day === 15) || (month === 3 && day === 6)
175
168
  ? 'ותודיעינו'
@@ -193,7 +186,7 @@ function getWeekDayNotifications() {
193
186
  //when it's not chol hamoed, chanuka, purim, a fast day or rosh chodesh
194
187
  if (isMorning &&
195
188
  !isYomTov &&
196
- (dow === Utils_1.DaysOfWeek.MONDAY || dow === Utils_1.DaysOfWeek.THURSDAY) &&
189
+ (dow === DaysOfWeek.MONDAY || dow === DaysOfWeek.THURSDAY) &&
197
190
  !hasOwnKriyasHatorah(jdate, location)) {
198
191
  const sedra = jdate.getSedra(israel);
199
192
  if (sedra.sedras.length > 0) {
@@ -211,15 +204,15 @@ function getWeekDayNotifications() {
211
204
  //Rosh Chodesh Teves is during Chanuka
212
205
  if (isDaytime && month !== 10 && !(month === 9 && day === 30)) {
213
206
  addTefillahNote('Chatzi Hallel', 'חצי הלל');
214
- if (isMorning && dow !== Utils_1.DaysOfWeek.SHABBOS) {
207
+ if (isMorning && dow !== DaysOfWeek.SHABBOS) {
215
208
  noLaminatzeach();
216
209
  }
217
210
  }
218
211
  }
219
212
  //Yom Kippur Kattan
220
213
  else if (month !== 6 &&
221
- ((dow < Utils_1.DaysOfWeek.FRIDAY && day === 29) ||
222
- (dow === Utils_1.DaysOfWeek.THURSDAY && day === 28)) &&
214
+ ((dow < DaysOfWeek.FRIDAY && day === 29) ||
215
+ (dow === DaysOfWeek.THURSDAY && day === 28)) &&
223
216
  isAfternoon) {
224
217
  addTefillahNote('Yom Kippur Kattan', 'יו"כ קטן');
225
218
  }
@@ -235,14 +228,14 @@ function getAroundTheYearNotifications() {
235
228
  if (day > 15) {
236
229
  addTefillahNote('Morid Hatal', 'מוריד הטל');
237
230
  }
238
- if (dow !== Utils_1.DaysOfWeek.SHABBOS && day > 15 && day !== 21) {
231
+ if (dow !== DaysOfWeek.SHABBOS && day > 15 && day !== 21) {
239
232
  addTefillahNote('Vesain Bracha', 'ותן ברכה');
240
233
  }
241
234
  if (isMorning &&
242
- dow !== Utils_1.DaysOfWeek.SHABBOS &&
235
+ dow !== DaysOfWeek.SHABBOS &&
243
236
  [14, 16, 17, 18, 19, 20].includes(day)) {
244
237
  addTefillahNote('No Mizmor Lesodah', 'א"א מזמור לתודה');
245
- if (dow !== Utils_1.DaysOfWeek.SHABBOS) {
238
+ if (dow !== DaysOfWeek.SHABBOS) {
246
239
  noLaminatzeach();
247
240
  }
248
241
  }
@@ -254,7 +247,7 @@ function getAroundTheYearNotifications() {
254
247
  }
255
248
  if (showGaonShirShelYom &&
256
249
  isDaytime &&
257
- dow !== Utils_1.DaysOfWeek.SHABBOS) {
250
+ dow !== DaysOfWeek.SHABBOS) {
258
251
  addTefillahNote('שיר של יום - קי"ד - בצאת ישראל');
259
252
  }
260
253
  addTefillahNote('Ya`aleh V`yavo', 'יעלה ויבא');
@@ -265,7 +258,7 @@ function getAroundTheYearNotifications() {
265
258
  addTefillahNote('Morid Hatal', 'מוריד הטל');
266
259
  if (showGaonShirShelYom &&
267
260
  isDaytime &&
268
- dow !== Utils_1.DaysOfWeek.SHABBOS) {
261
+ dow !== DaysOfWeek.SHABBOS) {
269
262
  addTefillahNote('שיר של יום - קי"ד - בצאת ישראל');
270
263
  }
271
264
  addTefillahNote('Ya`aleh V`yavo', 'יעלה ויבא');
@@ -277,7 +270,7 @@ function getAroundTheYearNotifications() {
277
270
  if (israel) {
278
271
  addTefillahNote('Yizkor', 'יזכור');
279
272
  }
280
- if (showGaonShirShelYom && dow !== Utils_1.DaysOfWeek.SHABBOS) {
273
+ if (showGaonShirShelYom && dow !== DaysOfWeek.SHABBOS) {
281
274
  addTefillahNote('שיר של יום - י"ח - למנצח לעבד ה\'');
282
275
  }
283
276
  }
@@ -285,14 +278,14 @@ function getAroundTheYearNotifications() {
285
278
  else {
286
279
  addDayNote('Chol Ha`moed Pesach', 'פסח - חול המועד');
287
280
  addTefillahNote('Ya`aleh Viyavo', 'יעלה ויבא');
288
- if (isMorning && dow !== Utils_1.DaysOfWeek.SHABBOS)
281
+ if (isMorning && dow !== DaysOfWeek.SHABBOS)
289
282
  noLaminatzeach();
290
283
  if (showGaonShirShelYom &&
291
284
  isDaytime &&
292
- dow !== Utils_1.DaysOfWeek.SHABBOS) {
285
+ dow !== DaysOfWeek.SHABBOS) {
293
286
  switch (day) {
294
287
  case 16:
295
- if (dow === Utils_1.DaysOfWeek.SUNDAY) {
288
+ if (dow === DaysOfWeek.SUNDAY) {
296
289
  addTefillahNote('שיר של יום - קי"ד - בצאת ישראל');
297
290
  }
298
291
  else {
@@ -300,7 +293,7 @@ function getAroundTheYearNotifications() {
300
293
  }
301
294
  break;
302
295
  case 17:
303
- if (dow === Utils_1.DaysOfWeek.MONDAY) {
296
+ if (dow === DaysOfWeek.MONDAY) {
304
297
  addTefillahNote('שיר של יום - ע"ח - משכיל לאסף');
305
298
  }
306
299
  else {
@@ -308,8 +301,8 @@ function getAroundTheYearNotifications() {
308
301
  }
309
302
  break;
310
303
  case 18:
311
- if (dow === Utils_1.DaysOfWeek.TUESDAY ||
312
- dow === Utils_1.DaysOfWeek.SUNDAY) {
304
+ if (dow === DaysOfWeek.TUESDAY ||
305
+ dow === DaysOfWeek.SUNDAY) {
313
306
  addTefillahNote("שיר של יום - פ' - למנצח אל שושנים");
314
307
  }
315
308
  else {
@@ -317,7 +310,7 @@ function getAroundTheYearNotifications() {
317
310
  }
318
311
  break;
319
312
  case 19:
320
- if (dow === Utils_1.DaysOfWeek.THURSDAY) {
313
+ if (dow === DaysOfWeek.THURSDAY) {
321
314
  addTefillahNote('שיר של יום - קל"ה - הללוי-ה הללו את שם');
322
315
  }
323
316
  else {
@@ -325,7 +318,7 @@ function getAroundTheYearNotifications() {
325
318
  }
326
319
  break;
327
320
  case 20:
328
- if (dow === Utils_1.DaysOfWeek.FRIDAY) {
321
+ if (dow === DaysOfWeek.FRIDAY) {
329
322
  addTefillahNote('שיר של יום - ס"ו - למנצח שיר מזמור');
330
323
  }
331
324
  else {
@@ -351,11 +344,11 @@ function getAroundTheYearNotifications() {
351
344
  }
352
345
  addTefillahNote('Ya`aleh V`yavo', 'יעלה ויבא');
353
346
  }
354
- if (dow !== Utils_1.DaysOfWeek.SHABBOS && isMorning) {
347
+ if (dow !== DaysOfWeek.SHABBOS && isMorning) {
355
348
  noLaminatzeach();
356
349
  }
357
350
  }
358
- if (dow === Utils_1.DaysOfWeek.SHABBOS &&
351
+ if (dow === DaysOfWeek.SHABBOS &&
359
352
  ([15, 16, 17, 18, 19, 20, 21].includes(day) ||
360
353
  (!israel && day === 22))) {
361
354
  addTefillahNote('Shir Hashirim', 'מגילת שיר השירים');
@@ -364,7 +357,7 @@ function getAroundTheYearNotifications() {
364
357
  case 2: //Iyar
365
358
  if (day <= 15) {
366
359
  addTefillahNote('Morid Hatal', 'מוריד הטל');
367
- if (dow !== Utils_1.DaysOfWeek.SHABBOS) {
360
+ if (dow !== DaysOfWeek.SHABBOS) {
368
361
  addTefillahNote('V`sain Bracha', 'ותן ברכה');
369
362
  }
370
363
  }
@@ -380,9 +373,9 @@ function getAroundTheYearNotifications() {
380
373
  }
381
374
  //Baha"b
382
375
  if (isMorning &&
383
- ((dow === Utils_1.DaysOfWeek.MONDAY && day > 3 && day < 13) ||
384
- (dow === Utils_1.DaysOfWeek.THURSDAY && day > 6 && day < 14) ||
385
- (dow === Utils_1.DaysOfWeek.MONDAY &&
376
+ ((dow === DaysOfWeek.MONDAY && day > 3 && day < 13) ||
377
+ (dow === DaysOfWeek.THURSDAY && day > 6 && day < 14) ||
378
+ (dow === DaysOfWeek.MONDAY &&
386
379
  day > 10 &&
387
380
  day < 18 &&
388
381
  day !== 14))) {
@@ -411,7 +404,7 @@ function getAroundTheYearNotifications() {
411
404
  else if (day === 7) {
412
405
  if (israel) {
413
406
  addDayNote('Issru Chag', 'איסרו חג');
414
- if (isMorning && dow !== Utils_1.DaysOfWeek.SHABBOS) {
407
+ if (isMorning && dow !== DaysOfWeek.SHABBOS) {
415
408
  noLaminatzeach();
416
409
  }
417
410
  }
@@ -427,8 +420,8 @@ function getAroundTheYearNotifications() {
427
420
  break;
428
421
  case 4: //Tammuz
429
422
  if (isDaytime &&
430
- ((day === 17 && Utils_1.DaysOfWeek.SHABBOS !== 6) ||
431
- (day === 18 && dow === Utils_1.DaysOfWeek.SUNDAY))) {
423
+ ((day === 17 && DaysOfWeek.SHABBOS !== 6) ||
424
+ (day === 18 && dow === DaysOfWeek.SUNDAY))) {
432
425
  if (isDaytime) {
433
426
  addDayNote('Shiva Asar B`Tamuz', 'י"ז בתמוז');
434
427
  addTefillahNote('Avinu Malkeinu', 'אבינו מלכנו');
@@ -440,22 +433,22 @@ function getAroundTheYearNotifications() {
440
433
  }
441
434
  break;
442
435
  case 5: //Av
443
- if (isAfternoon && day === 8 && dow !== Utils_1.DaysOfWeek.FRIDAY) {
436
+ if (isAfternoon && day === 8 && dow !== DaysOfWeek.FRIDAY) {
444
437
  dayInfo.noTachnun = true;
445
438
  }
446
- else if ((day === 9 && dow !== Utils_1.DaysOfWeek.SHABBOS) ||
447
- (day === 10 && dow === Utils_1.DaysOfWeek.SUNDAY)) {
439
+ else if ((day === 9 && dow !== DaysOfWeek.SHABBOS) ||
440
+ (day === 10 && dow === DaysOfWeek.SUNDAY)) {
448
441
  addDayNote('Tish B`Av', 'תשעה באב');
449
442
  if (isDaytime) {
450
443
  addTefillahNote('Kinos', 'קינות');
451
444
  addTefillahNote('Aneinu', 'עננו');
452
- if (isMorning && dow !== Utils_1.DaysOfWeek.SHABBOS) {
445
+ if (isMorning && dow !== DaysOfWeek.SHABBOS) {
453
446
  noLaminatzeach();
454
447
  }
455
448
  }
456
449
  else {
457
450
  addTefillahNote('Megilas Eicha', 'מגילת איכה');
458
- if (isNightTime && dow === Utils_1.DaysOfWeek.SUNDAY) {
451
+ if (isNightTime && dow === DaysOfWeek.SUNDAY) {
459
452
  addTefillahNote('No Vihi Noam', 'א"א ויהי נועם');
460
453
  }
461
454
  }
@@ -472,19 +465,19 @@ function getAroundTheYearNotifications() {
472
465
  case 6: //Ellul
473
466
  addTefillahNote('L`Dovid Hashem Ori', 'לדוד ה');
474
467
  if (day > 20 &&
475
- dow !== Utils_1.DaysOfWeek.SHABBOS &&
468
+ dow !== DaysOfWeek.SHABBOS &&
476
469
  (isAfterChatzosHalayla || isMorning)) {
477
470
  let startedSelichos = day >= 26;
478
471
  if (day < 26) {
479
472
  const daysToRH = 30 - day, dowRH = (daysToRH + dow) % 7;
480
473
  switch (dowRH) {
481
- case Utils_1.DaysOfWeek.MONDAY:
474
+ case DaysOfWeek.MONDAY:
482
475
  startedSelichos = day >= 22;
483
476
  break;
484
- case Utils_1.DaysOfWeek.TUESDAY:
477
+ case DaysOfWeek.TUESDAY:
485
478
  startedSelichos = day >= 21;
486
479
  break;
487
- case Utils_1.DaysOfWeek.SHABBOS:
480
+ case DaysOfWeek.SHABBOS:
488
481
  startedSelichos = day >= 24;
489
482
  break;
490
483
  }
@@ -500,16 +493,16 @@ function getAroundTheYearNotifications() {
500
493
  case 7: //Tishrei
501
494
  if (day < 11) {
502
495
  addTefillahNote('Hamelech Hakadosh', 'המלך הקדוש');
503
- if (dow !== Utils_1.DaysOfWeek.SHABBOS && day !== 9) {
496
+ if (dow !== DaysOfWeek.SHABBOS && day !== 9) {
504
497
  addTefillahNote('Avinu Malkeinu', 'אבינו מלכנו');
505
498
  }
506
499
  }
507
500
  //Days of Rosh Hashana, Tzom Gedaliah and Yom Kippur are dealt with individually below.
508
- if (day > 4 && day < 10 && dow !== Utils_1.DaysOfWeek.SHABBOS) {
501
+ if (day > 4 && day < 10 && dow !== DaysOfWeek.SHABBOS) {
509
502
  addTefillahNote('Selichos', 'סליחות');
510
503
  addTefillahNote('Hamelech Hamishpat', 'המלך המשפט');
511
504
  }
512
- if (dow === Utils_1.DaysOfWeek.SHABBOS && day > 2 && day < 10) {
505
+ if (dow === DaysOfWeek.SHABBOS && day > 2 && day < 10) {
513
506
  addDayNote('Shabbos Shuva', 'שבת שובה');
514
507
  }
515
508
  if (day >= 10) {
@@ -518,7 +511,7 @@ function getAroundTheYearNotifications() {
518
511
  switch (day) {
519
512
  case 1:
520
513
  addDayNote('Rosh Hashana', 'ראש השנה');
521
- if (dow !== Utils_1.DaysOfWeek.SHABBOS && isDaytime) {
514
+ if (dow !== DaysOfWeek.SHABBOS && isDaytime) {
522
515
  addTefillahNote('Tekias Shofar', 'תקיעת שופר');
523
516
  if (showGaonShirShelYom) {
524
517
  addTefillahNote('שיר של יום - פ"א - למנצח על הגתית');
@@ -536,14 +529,14 @@ function getAroundTheYearNotifications() {
536
529
  if (showGaonShirShelYom) {
537
530
  addTefillahNote('שיר של יום - פ"א - למנצח על הגתית');
538
531
  }
539
- if (dow === Utils_1.DaysOfWeek.SUNDAY && isAfternoon) {
532
+ if (dow === DaysOfWeek.SUNDAY && isAfternoon) {
540
533
  addDayNote('Tashlich', 'תשליך');
541
534
  }
542
535
  }
543
536
  addTefillahNote('Ya`aleh V`yavo', 'יעלה ויבא');
544
537
  break;
545
538
  case 3:
546
- if (dow !== Utils_1.DaysOfWeek.SHABBOS) {
539
+ if (dow !== DaysOfWeek.SHABBOS) {
547
540
  if (isDaytime) {
548
541
  addDayNote('Fast of Tzom Gedalya', 'צום גדליה');
549
542
  addTefillahNote('Aneinu', 'עננו');
@@ -555,7 +548,7 @@ function getAroundTheYearNotifications() {
555
548
  }
556
549
  break;
557
550
  case 4:
558
- if (dow === Utils_1.DaysOfWeek.SUNDAY) {
551
+ if (dow === DaysOfWeek.SUNDAY) {
559
552
  if (isDaytime) {
560
553
  addDayNote('Fast of Tzom Gedalya', 'צום גדליה');
561
554
  addTefillahNote('Aneinu', 'עננו');
@@ -565,7 +558,7 @@ function getAroundTheYearNotifications() {
565
558
  }
566
559
  addTefillahNote('Hamelech Hamishpat', 'המלך המשפט');
567
560
  }
568
- else if (dow !== Utils_1.DaysOfWeek.SHABBOS) {
561
+ else if (dow !== DaysOfWeek.SHABBOS) {
569
562
  addTefillahNote('Hamelech Hamishpat', 'המלך המשפט');
570
563
  if (isAfterChatzosHalayla || isMorning) {
571
564
  addTefillahNote('Selichos', 'סליחות');
@@ -576,17 +569,17 @@ function getAroundTheYearNotifications() {
576
569
  addDayNote('Erev Yom Kippur', 'ערב יום כיפור');
577
570
  if (isMorning) {
578
571
  addTefillahNote('No Mizmor L`Sodah', 'א"א מזמור לתודה');
579
- if (dow !== Utils_1.DaysOfWeek.SHABBOS) {
572
+ if (dow !== DaysOfWeek.SHABBOS) {
580
573
  noLaminatzeach();
581
574
  }
582
- if (dow === Utils_1.DaysOfWeek.FRIDAY) {
575
+ if (dow === DaysOfWeek.FRIDAY) {
583
576
  addTefillahNote('Avinu Malkeinu', 'אבינו מלכנו');
584
577
  }
585
578
  }
586
579
  else if (isAfternoon) {
587
580
  addTefillahNote('Vidduy', 'ודוי בעמידה');
588
581
  }
589
- if (isDaytime && dow !== Utils_1.DaysOfWeek.FRIDAY) {
582
+ if (isDaytime && dow !== DaysOfWeek.FRIDAY) {
590
583
  addTefillahNote('No Avinu Malkeinu', 'א"א אבינו מלכנו');
591
584
  }
592
585
  dayInfo.noTachnun = true;
@@ -596,7 +589,7 @@ function getAroundTheYearNotifications() {
596
589
  addDayNote("לפני ה' תטהרו");
597
590
  if (isDaytime) {
598
591
  addTefillahNote('Yizkor', 'יזכור');
599
- if (showGaonShirShelYom && dow !== Utils_1.DaysOfWeek.SHABBOS) {
592
+ if (showGaonShirShelYom && dow !== DaysOfWeek.SHABBOS) {
600
593
  addTefillahNote('שיר של יום - ל"ב - לדוד משכיל');
601
594
  }
602
595
  }
@@ -610,7 +603,7 @@ function getAroundTheYearNotifications() {
610
603
  addTefillahNote('Ya`aleh V`yavo', 'יעלה ויבא');
611
604
  if (isDaytime) {
612
605
  addTefillahNote('Full Hallel', 'הלל השלם');
613
- if (dow !== Utils_1.DaysOfWeek.SHABBOS) {
606
+ if (dow !== DaysOfWeek.SHABBOS) {
614
607
  addTefillahNote('Hoshanos - למען אמתך', 'הושענות - למען אמתך');
615
608
  addTefillahNote('Kah Keli', 'קה קלי');
616
609
  if (showGaonShirShelYom) {
@@ -640,27 +633,27 @@ function getAroundTheYearNotifications() {
640
633
  switch (day) {
641
634
  case 16:
642
635
  addTefillahNote('הושענות - ' +
643
- (dow === Utils_1.DaysOfWeek.SUNDAY
636
+ (dow === DaysOfWeek.SUNDAY
644
637
  ? 'למען אמתך'
645
638
  : 'אבן שתיה'));
646
639
  if (showGaonShirShelYom &&
647
- dow !== Utils_1.DaysOfWeek.SHABBOS) {
640
+ dow !== DaysOfWeek.SHABBOS) {
648
641
  addTefillahNote('שיר של יום - כ"ט - ..הבו לה\' בני אלים');
649
642
  }
650
643
  break;
651
644
  case 17:
652
645
  addTefillahNote((showEnglish ? 'Hoshanos' : 'הושענות') +
653
646
  ' - ' +
654
- (dow === Utils_1.DaysOfWeek.SHABBOS
647
+ (dow === DaysOfWeek.SHABBOS
655
648
  ? 'אום נצורה'
656
649
  : 'אערוך שועי'));
657
650
  if (showGaonShirShelYom &&
658
- dow !== Utils_1.DaysOfWeek.SHABBOS) {
651
+ dow !== DaysOfWeek.SHABBOS) {
659
652
  addTefillahNote("שיר של יום - נ' - מזמור לאסף");
660
653
  }
661
654
  break;
662
655
  case 18:
663
- if (dow === Utils_1.DaysOfWeek.SUNDAY) {
656
+ if (dow === DaysOfWeek.SUNDAY) {
664
657
  addTefillahNote((showEnglish ? 'Hoshanos' : 'הושענות') +
665
658
  ' - ' +
666
659
  'אערוך שועי');
@@ -669,21 +662,21 @@ function getAroundTheYearNotifications() {
669
662
  }
670
663
  }
671
664
  else {
672
- if (dow === Utils_1.DaysOfWeek.TUESDAY) {
665
+ if (dow === DaysOfWeek.TUESDAY) {
673
666
  addTefillahNote((showEnglish
674
667
  ? 'Hoshanos'
675
668
  : 'הושענות') +
676
669
  ' - ' +
677
670
  'אבן שתיה');
678
671
  }
679
- else if (dow === Utils_1.DaysOfWeek.THURSDAY) {
672
+ else if (dow === DaysOfWeek.THURSDAY) {
680
673
  addTefillahNote((showEnglish
681
674
  ? 'Hoshanos'
682
675
  : 'הושענות') +
683
676
  ' - ' +
684
677
  'אום אני חומה');
685
678
  }
686
- else if (dow === Utils_1.DaysOfWeek.FRIDAY) {
679
+ else if (dow === DaysOfWeek.FRIDAY) {
687
680
  addTefillahNote((showEnglish
688
681
  ? 'Hoshanos'
689
682
  : 'הושענות') +
@@ -691,7 +684,7 @@ function getAroundTheYearNotifications() {
691
684
  'א-ל למושעות');
692
685
  }
693
686
  if (showGaonShirShelYom &&
694
- dow !== Utils_1.DaysOfWeek.SHABBOS) {
687
+ dow !== DaysOfWeek.SHABBOS) {
695
688
  addTefillahNote('שיר של יום - צ"ד - ..מי יקום לי..');
696
689
  }
697
690
  }
@@ -699,12 +692,12 @@ function getAroundTheYearNotifications() {
699
692
  case 19:
700
693
  addTefillahNote((showEnglish ? 'Hoshanos' : 'הושענות') +
701
694
  ' - ' +
702
- (dow === Utils_1.DaysOfWeek.SHABBOS
695
+ (dow === DaysOfWeek.SHABBOS
703
696
  ? 'אום נצורה'
704
697
  : 'א-ל למושעות'));
705
698
  if (showGaonShirShelYom &&
706
- dow !== Utils_1.DaysOfWeek.SHABBOS) {
707
- if (dow === Utils_1.DaysOfWeek.MONDAY) {
699
+ dow !== DaysOfWeek.SHABBOS) {
700
+ if (dow === DaysOfWeek.MONDAY) {
708
701
  addTefillahNote('שיר של יום - צ"ד - ..מי יקום לי..');
709
702
  }
710
703
  else {
@@ -715,12 +708,12 @@ function getAroundTheYearNotifications() {
715
708
  case 20:
716
709
  addTefillahNote((showEnglish ? 'Hoshanos' : 'הושענות') +
717
710
  ' - ' +
718
- (dow === Utils_1.DaysOfWeek.SHABBOS
711
+ (dow === DaysOfWeek.SHABBOS
719
712
  ? 'אום נצורה'
720
713
  : 'אדון המושיע'));
721
714
  if (showGaonShirShelYom &&
722
- dow !== Utils_1.DaysOfWeek.SHABBOS) {
723
- if (dow === Utils_1.DaysOfWeek.THURSDAY) {
715
+ dow !== DaysOfWeek.SHABBOS) {
716
+ if (dow === DaysOfWeek.THURSDAY) {
724
717
  addTefillahNote('שיר של יום - פ"א - למנצח על הגתית');
725
718
  }
726
719
  else {
@@ -741,7 +734,7 @@ function getAroundTheYearNotifications() {
741
734
  addTefillahNote('Hoshanos', 'הושענות');
742
735
  addTefillahNote('Full Hallel', 'הלל השלם');
743
736
  if (showGaonShirShelYom) {
744
- if (dow === Utils_1.DaysOfWeek.FRIDAY) {
737
+ if (dow === DaysOfWeek.FRIDAY) {
745
738
  addTefillahNote('שיר של יום - פ"ב - מזמור לאסף');
746
739
  }
747
740
  else {
@@ -762,7 +755,7 @@ function getAroundTheYearNotifications() {
762
755
  addTefillahNote('Yizkor', 'יזכור');
763
756
  addTefillahNote('Tefilas Geshem', 'תפילת גשם');
764
757
  addTefillahNote('משיב הרוח ומוריד הגשם');
765
- if (showGaonShirShelYom && dow !== Utils_1.DaysOfWeek.SHABBOS) {
758
+ if (showGaonShirShelYom && dow !== DaysOfWeek.SHABBOS) {
766
759
  addTefillahNote('שיר של יום - י"ב - למנצח על השמינית');
767
760
  }
768
761
  }
@@ -780,12 +773,12 @@ function getAroundTheYearNotifications() {
780
773
  if (isNightTime) {
781
774
  addDayNote('א גוטען ווינטער', 'חורף טוב');
782
775
  }
783
- else if (dow !== Utils_1.DaysOfWeek.SHABBOS && isMorning) {
776
+ else if (dow !== DaysOfWeek.SHABBOS && isMorning) {
784
777
  noLaminatzeach();
785
778
  }
786
779
  }
787
780
  }
788
- else if (dow === Utils_1.DaysOfWeek.SHABBOS &&
781
+ else if (dow === DaysOfWeek.SHABBOS &&
789
782
  [15, 17, 18, 19, 20].includes(day)) {
790
783
  addTefillahNote('Megilas Koheles', 'מגילת קהלת');
791
784
  }
@@ -798,25 +791,25 @@ function getAroundTheYearNotifications() {
798
791
  break;
799
792
  case 8: //Cheshvan
800
793
  if (isDaytime &&
801
- ((dow === Utils_1.DaysOfWeek.MONDAY && day > 3 && day < 13) ||
802
- (dow === Utils_1.DaysOfWeek.THURSDAY && day > 6 && day < 14) ||
803
- (dow === Utils_1.DaysOfWeek.MONDAY && day > 10 && day < 18))) {
794
+ ((dow === DaysOfWeek.MONDAY && day > 3 && day < 13) ||
795
+ (dow === DaysOfWeek.THURSDAY && day > 6 && day < 14) ||
796
+ (dow === DaysOfWeek.MONDAY && day > 10 && day < 18))) {
804
797
  addTefillahNote('Ba`Hab', 'סליחות בה"ב');
805
798
  addTefillahNote('Avinu Malkeinu', 'אבינו מלכנו');
806
799
  }
807
800
  if (day <= 22) {
808
801
  addTefillahNote('Mashiv Haruach U`Morid Hageshem', 'משיב הרוח ומוריד הגשם');
809
802
  }
810
- if (day >= 7 && dow !== Utils_1.DaysOfWeek.SHABBOS) {
803
+ if (day >= 7 && dow !== DaysOfWeek.SHABBOS) {
811
804
  addTefillahNote('V`sain Tal U`matar', 'ותן טל ומטר');
812
805
  }
813
806
  break;
814
807
  case 9: //Kislev
815
- if (day <= 7 && dow !== Utils_1.DaysOfWeek.SHABBOS) {
808
+ if (day <= 7 && dow !== DaysOfWeek.SHABBOS) {
816
809
  addTefillahNote('V`sain Tal U`matar', 'ותן טל ומטר');
817
810
  }
818
811
  else if (day === 24 &&
819
- dow !== Utils_1.DaysOfWeek.SHABBOS &&
812
+ dow !== DaysOfWeek.SHABBOS &&
820
813
  isAfternoon) {
821
814
  dayInfo.noTachnun = true;
822
815
  }
@@ -826,24 +819,24 @@ function getAroundTheYearNotifications() {
826
819
  addTefillahNote('Al Hanissim', 'על הניסים');
827
820
  if (isDaytime) {
828
821
  addTefillahNote('Full Hallel', 'הלל השלם');
829
- if (isMorning && dow !== Utils_1.DaysOfWeek.SHABBOS)
822
+ if (isMorning && dow !== DaysOfWeek.SHABBOS)
830
823
  noLaminatzeach();
831
824
  if (showGaonShirShelYom &&
832
825
  day !== 30 &&
833
- dow !== Utils_1.DaysOfWeek.SHABBOS) {
826
+ dow !== DaysOfWeek.SHABBOS) {
834
827
  addTefillahNote("שיר של יום - ל' - מזמור שיר חנוכת הבית");
835
828
  }
836
829
  }
837
830
  }
838
831
  break;
839
832
  case 10: //Teves
840
- if (day <= (jDate_1.default.isShortKislev(jdate.Year) ? 3 : 2)) {
833
+ if (day <= (jDate.isShortKislev(jdate.Year) ? 3 : 2)) {
841
834
  dayInfo.noTachnun = true;
842
835
  addDayNote('Chanukah', 'חנוכה');
843
836
  addTefillahNote('Al Hanissim', 'על הניסים');
844
837
  if (isDaytime) {
845
838
  addTefillahNote('Full Hallel', 'הלל השלם');
846
- if (isMorning && dow !== Utils_1.DaysOfWeek.SHABBOS) {
839
+ if (isMorning && dow !== DaysOfWeek.SHABBOS) {
847
840
  noLaminatzeach();
848
841
  if (day !== 1 && showGaonShirShelYom) {
849
842
  addTefillahNote("שיר של יום - ל' - מזמור שיר חנוכת הבית");
@@ -882,7 +875,7 @@ function getAroundTheYearNotifications() {
882
875
  ? 'Shushan Purim Katan'
883
876
  : 'שושן פורים קטן');
884
877
  dayInfo.noTachnun = true;
885
- if (isMorning && dow !== Utils_1.DaysOfWeek.SHABBOS) {
878
+ if (isMorning && dow !== DaysOfWeek.SHABBOS) {
886
879
  noLaminatzeach();
887
880
  }
888
881
  }
@@ -890,8 +883,8 @@ function getAroundTheYearNotifications() {
890
883
  else {
891
884
  //The "real" Adar: the only one in a non-leap-year or Adar Sheini
892
885
  if (isDaytime &&
893
- ((day === 11 && dow === Utils_1.DaysOfWeek.THURSDAY) ||
894
- (day === 13 && dow !== Utils_1.DaysOfWeek.SHABBOS))) {
886
+ ((day === 11 && dow === DaysOfWeek.THURSDAY) ||
887
+ (day === 13 && dow !== DaysOfWeek.SHABBOS))) {
895
888
  if (isMorning) {
896
889
  addDayNote('Fast of Ta`anis Esther', 'תענית אסתר');
897
890
  addTefillahNote('Selichos', 'סליחות');
@@ -904,11 +897,11 @@ function getAroundTheYearNotifications() {
904
897
  const isYerushalayim = location.Name === 'ירושלים';
905
898
  if (day === 14) {
906
899
  dayInfo.noTachnun = true;
907
- if (isMorning && dow !== Utils_1.DaysOfWeek.SHABBOS) {
900
+ if (isMorning && dow !== DaysOfWeek.SHABBOS) {
908
901
  noLaminatzeach();
909
902
  }
910
903
  //On a Purim Meshulash in Yerushalayim, מגילת אסתר is on י"ד
911
- if (!isYerushalayim || dow === Utils_1.DaysOfWeek.FRIDAY) {
904
+ if (!isYerushalayim || dow === DaysOfWeek.FRIDAY) {
912
905
  addDayNote('Megilas Esther', 'מגילת אסתר');
913
906
  if (!isYerushalayim) {
914
907
  addDayNote('Purim', 'פורים');
@@ -928,18 +921,18 @@ function getAroundTheYearNotifications() {
928
921
  }
929
922
  else if (day === 15) {
930
923
  dayInfo.noTachnun = true;
931
- if (isMorning && dow !== Utils_1.DaysOfWeek.SHABBOS) {
924
+ if (isMorning && dow !== DaysOfWeek.SHABBOS) {
932
925
  noLaminatzeach();
933
926
  }
934
927
  if (isYerushalayim) {
935
928
  addDayNote('Purim', 'פורים');
936
929
  addTefillahNote('Al Hanissim', 'על הניסים');
937
- if (dow !== Utils_1.DaysOfWeek.SHABBOS) {
930
+ if (dow !== DaysOfWeek.SHABBOS) {
938
931
  addDayNote('Megilas Esther', 'מגילת אסתר');
939
932
  }
940
933
  if (showGaonShirShelYom &&
941
934
  isDaytime &&
942
- dow !== Utils_1.DaysOfWeek.SHABBOS) {
935
+ dow !== DaysOfWeek.SHABBOS) {
943
936
  addTefillahNote('שיר של יום - כ"ב - למנצח על אילת השחר');
944
937
  }
945
938
  }
@@ -955,7 +948,7 @@ function getAroundTheYearNotifications() {
955
948
  'לוד',
956
949
  ].includes(location.Name)) {
957
950
  addDayNote('Purim D`Mukafin', 'פורים דמוקפין');
958
- if (dow !== Utils_1.DaysOfWeek.SHABBOS) {
951
+ if (dow !== DaysOfWeek.SHABBOS) {
959
952
  addDayNote('(Megilas Esther)', '(מגילת אסתר)');
960
953
  }
961
954
  }
@@ -965,7 +958,7 @@ function getAroundTheYearNotifications() {
965
958
  }
966
959
  else if (day === 16 &&
967
960
  isYerushalayim &&
968
- dow === Utils_1.DaysOfWeek.SUNDAY) {
961
+ dow === DaysOfWeek.SUNDAY) {
969
962
  addDayNote('Purim Seuda and Mishloach Manos', 'סעודת פורים ומשלוח מנות');
970
963
  }
971
964
  }
@@ -1009,10 +1002,10 @@ function hasOwnKriyasHatorah(jdate, location) {
1009
1002
  case 10:
1010
1003
  return (Day === 10 ||
1011
1004
  Day < 3 ||
1012
- (Day === 3 && jDate_1.default.isShortKislev(jdate.Year)));
1005
+ (Day === 3 && jDate.isShortKislev(jdate.Year)));
1013
1006
  case 12:
1014
1007
  case 13:
1015
- return (Month === (jDate_1.default.isJdLeapY(jdate.Year) ? 13 : 12) &&
1008
+ return (Month === (jDate.isJdLeapY(jdate.Year) ? 13 : 12) &&
1016
1009
  (Day === 13 || Day === (location.Name === 'ירושלים' ? 15 : 14)));
1017
1010
  default:
1018
1011
  return false;