jcal-zmanim 1.1.6 → 1.1.8

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.
Files changed (41) hide show
  1. package/dist/JCal/Dafyomi.js +66 -68
  2. package/dist/JCal/Dafyomi.js.map +1 -1
  3. package/dist/JCal/Location.js +17 -18
  4. package/dist/JCal/Location.js.map +1 -1
  5. package/dist/JCal/Molad.js +33 -35
  6. package/dist/JCal/Molad.js.map +1 -1
  7. package/dist/JCal/PirkeiAvos.js +143 -145
  8. package/dist/JCal/PirkeiAvos.js.map +1 -1
  9. package/dist/JCal/Sedra.js +40 -44
  10. package/dist/JCal/Sedra.js.map +1 -1
  11. package/dist/JCal/Zmanim.js +61 -62
  12. package/dist/JCal/Zmanim.js.map +1 -1
  13. package/dist/JCal/ZmanimUtils.d.ts +3 -3
  14. package/dist/JCal/ZmanimUtils.d.ts.map +1 -1
  15. package/dist/JCal/ZmanimUtils.js +246 -225
  16. package/dist/JCal/ZmanimUtils.js.map +1 -1
  17. package/dist/JCal/jDate.d.ts +1 -1
  18. package/dist/JCal/jDate.d.ts.map +1 -1
  19. package/dist/JCal/jDate.js +158 -157
  20. package/dist/JCal/jDate.js.map +1 -1
  21. package/dist/Locations.d.ts +1 -1
  22. package/dist/Locations.d.ts.map +1 -1
  23. package/dist/Locations.js +62 -30
  24. package/dist/Locations.js.map +1 -1
  25. package/dist/Notifications.d.ts +3 -3
  26. package/dist/Notifications.d.ts.map +1 -1
  27. package/dist/Notifications.js +171 -153
  28. package/dist/Notifications.js.map +1 -1
  29. package/dist/Utils.d.ts +3 -3
  30. package/dist/Utils.d.ts.map +1 -1
  31. package/dist/Utils.js +210 -160
  32. package/dist/Utils.js.map +1 -1
  33. package/dist/ZmanTypes.d.ts +1 -1
  34. package/dist/ZmanTypes.d.ts.map +1 -1
  35. package/dist/ZmanTypes.js +28 -32
  36. package/dist/ZmanTypes.js.map +1 -1
  37. package/dist/index.d.ts +71 -1
  38. package/dist/index.d.ts.map +1 -1
  39. package/dist/index.js +36 -41
  40. package/dist/index.js.map +1 -1
  41. package/package.json +2 -1
@@ -1,17 +1,36 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
1
+ var __read = (this && this.__read) || function (o, n) {
2
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
3
+ if (!m) return o;
4
+ var i = m.call(o), r, ar = [], e;
5
+ try {
6
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
7
+ }
8
+ catch (error) { e = { error: error }; }
9
+ finally {
10
+ try {
11
+ if (r && !r.done && (m = i["return"])) m.call(i);
12
+ }
13
+ finally { if (e) throw e.error; }
14
+ }
15
+ return ar;
16
+ };
17
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
18
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
19
+ if (ar || !(i in from)) {
20
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
21
+ ar[i] = from[i];
22
+ }
23
+ }
24
+ return to.concat(ar || Array.prototype.slice.call(from));
4
25
  };
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"));
12
- const dayNotes = [];
13
- const tefillahNotes = [];
14
- let showEnglish = false, dayInfo, showGaonShirShelYom = true, israel = true;
26
+ import { Utils, DaysOfWeek } from './Utils.js';
27
+ import jDate from './JCal/jDate.js';
28
+ import Molad from './JCal/Molad.js';
29
+ import PirkeiAvos from './JCal/PirkeiAvos.js';
30
+ import ZmanimUtils from './JCal/ZmanimUtils.js';
31
+ var dayNotes = [];
32
+ var tefillahNotes = [];
33
+ var showEnglish = false, dayInfo, showGaonShirShelYom = true, israel = true;
15
34
  /**
16
35
  * Get shul notifications for the given date and location
17
36
  * @param date
@@ -22,36 +41,36 @@ let showEnglish = false, dayInfo, showGaonShirShelYom = true, israel = true;
22
41
  * @param showDafYomi
23
42
  * @returns {{ dayNotes: string[], tefillahNotes: string[]}}
24
43
  */
25
- function getNotifications(date, time, location, english, showGaonShir, showDafYomi) {
26
- const { sdate, jdate } = Utils_1.Utils.bothDates(date);
44
+ export function getNotifications(date, time, location, english, showGaonShir, showDafYomi) {
45
+ var _a = Utils.bothDates(date), sdate = _a.sdate, jdate = _a.jdate;
27
46
  dayNotes.length = 0;
28
47
  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);
48
+ var month = jdate.Month, day = jdate.Day, dow = jdate.DayOfWeek, _b = ZmanimUtils.getBasicShulZmanim(date, location), chatzosHayom = _b.chatzosHayom, chatzosHalayla = _b.chatzosHalayla, alos = _b.alos, shkia = _b.shkia, isAfterChatzosHayom = Utils.isTimeAfter(chatzosHayom, time), isAfterChatzosHalayla = (typeof (chatzosHalayla) !== 'undefined') &&
49
+ (Utils.isTimeAfter(chatzosHalayla, time) || (chatzosHalayla.hour > 12 && time.hour < 12)), //Chatzos is before 0:00 and time is after 0:00
50
+ 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
51
  dayInfo = {
33
- jdate,
34
- sdate,
35
- month,
36
- day,
37
- dow,
38
- isAfterChatzosHayom,
39
- isAfterChatzosHalayla,
40
- isAfterAlos,
41
- isAfterShkia,
42
- isDaytime,
43
- isNightTime,
44
- isMorning,
45
- isAfternoon,
46
- isYomTov,
47
- isLeapYear,
48
- noTachnun,
49
- location,
52
+ jdate: jdate,
53
+ sdate: sdate,
54
+ month: month,
55
+ day: day,
56
+ dow: dow,
57
+ isAfterChatzosHayom: isAfterChatzosHayom,
58
+ isAfterChatzosHalayla: isAfterChatzosHalayla,
59
+ isAfterAlos: isAfterAlos,
60
+ isAfterShkia: isAfterShkia,
61
+ isDaytime: isDaytime,
62
+ isNightTime: isNightTime,
63
+ isMorning: isMorning,
64
+ isAfternoon: isAfternoon,
65
+ isYomTov: isYomTov,
66
+ isLeapYear: isLeapYear,
67
+ noTachnun: noTachnun,
68
+ location: location,
50
69
  };
51
70
  showEnglish = english;
52
71
  israel = location.Israel;
53
72
  showGaonShirShelYom = (typeof showGaonShir === 'undefined' ? israel : !!showGaonShir);
54
- if (dow === Utils_1.DaysOfWeek.SHABBOS) {
73
+ if (dow === DaysOfWeek.SHABBOS) {
55
74
  getShabbosNotifications();
56
75
  }
57
76
  else {
@@ -59,7 +78,7 @@ function getNotifications(date, time, location, english, showGaonShir, showDafYo
59
78
  }
60
79
  getAroundTheYearNotifications();
61
80
  if (dayInfo.noTachnun && isDaytime && !isYomTov) {
62
- if (dow !== Utils_1.DaysOfWeek.SHABBOS) {
81
+ if (dow !== DaysOfWeek.SHABBOS) {
63
82
  addTefillahNote('No Tachnun', 'א"א תחנון');
64
83
  }
65
84
  else if (isAfternoon) {
@@ -77,20 +96,19 @@ function getNotifications(date, time, location, english, showGaonShir, showDafYo
77
96
  //If it is after the earliest Nacht during Sefiras Ha'omer
78
97
  if (isNotBeinHasmashos &&
79
98
  ((month === 1 && day > 15) || month === 2 || (month === 3 && day < 6))) {
80
- const dayOfSefirah = jdate.getDayOfOmer();
99
+ var dayOfSefirah = jdate.getDayOfOmer();
81
100
  if (dayOfSefirah > 0) {
82
- addTefillahNote(Utils_1.Utils.getOmerNusach(dayOfSefirah, 'ashkenaz'));
101
+ addTefillahNote(Utils.getOmerNusach(dayOfSefirah, 'ashkenaz'));
83
102
  }
84
103
  }
85
104
  //return only unique values
86
105
  return {
87
- dayNotes: [...new Set(dayNotes)],
88
- tefillahNotes: [...new Set(tefillahNotes)],
106
+ dayNotes: __spreadArray([], __read(new Set(dayNotes)), false),
107
+ tefillahNotes: __spreadArray([], __read(new Set(tefillahNotes)), false),
89
108
  };
90
109
  }
91
- exports.getNotifications = getNotifications;
92
110
  function getShabbosNotifications() {
93
- const { month, day, isLeapYear, isMorning, isYomTov, jdate, isDaytime, isAfternoon, } = dayInfo;
111
+ var month = dayInfo.month, day = dayInfo.day, isLeapYear = dayInfo.isLeapYear, isMorning = dayInfo.isMorning, isYomTov = dayInfo.isYomTov, jdate = dayInfo.jdate, isDaytime = dayInfo.isDaytime, isAfternoon = dayInfo.isAfternoon;
94
112
  if (month === 1 && day > 7 && day < 15) {
95
113
  addDayNote('Shabbos Hagadol', 'שבת הגדול');
96
114
  }
@@ -115,16 +133,16 @@ function getShabbosNotifications() {
115
133
  addDayNote('Parshas Hachodesh', 'פרשת החודש');
116
134
  }
117
135
  if (isMorning && !isYomTov) {
118
- const sedra = jdate.getSedra(israel);
136
+ var sedra = jdate.getSedra(israel);
119
137
  if (sedra.sedras.length > 0) {
120
- addTefillahNote(`Kriyas Hatorah Parshas ${sedra.toString()}`, `קה"ת פרשת ${sedra.toStringHeb()}`);
138
+ addTefillahNote("Kriyas Hatorah Parshas ".concat(sedra.toString()), "\u05E7\u05D4\"\u05EA \u05E4\u05E8\u05E9\u05EA ".concat(sedra.toStringHeb()));
121
139
  }
122
140
  //All months but Tishrei have Shabbos Mevarchim on the Shabbos before Rosh Chodesh
123
141
  if (month !== 6 && day > 22 && day < 30) {
124
- const nextMonth = jdate.addMonths(1);
142
+ var nextMonth = jdate.addMonths(1);
125
143
  addTefillahNote('The molad will be ' +
126
- Molad_1.default.getString(nextMonth.Year, nextMonth.Month), 'המולד יהיה ב' +
127
- Molad_1.default.getStringHeb(nextMonth.Year, nextMonth.Month));
144
+ Molad.getString(nextMonth.Year, nextMonth.Month), 'המולד יהיה ב' +
145
+ Molad.getStringHeb(nextMonth.Year, nextMonth.Month));
128
146
  addTefillahNote('Bircas Hachodesh', 'מברכים החודש');
129
147
  if (month !== 1 && month !== 2) {
130
148
  addTefillahNote('No Av Harachamim', 'א"א אב הרחמים');
@@ -152,24 +170,24 @@ function getShabbosNotifications() {
152
170
  }
153
171
  //Kriyas Hatora - Shabbos by mincha - besides for Yom Kippur
154
172
  if (isAfternoon && !(month === 7 && day === 10)) {
155
- const sedra = jdate.addDays(1).getSedra(israel);
173
+ var sedra = jdate.addDays(1).getSedra(israel);
156
174
  addTefillahNote('Kriyas Hatorah Mincha Parshas ' + sedra.sedras[0].eng, 'קה"ת במנחה פרשת ' + sedra.sedras[0].heb);
157
175
  }
158
176
  if (isAfternoon &&
159
177
  ((month === 1 && day > 21) ||
160
178
  (month <= 6 && !(month === 5 && [8, 9].includes(day))))) {
161
- const prakim = PirkeiAvos_1.default.getPrakim(jdate, israel);
179
+ var prakim = PirkeiAvos.getPrakim(jdate, israel);
162
180
  if (prakim.length > 0) {
163
181
  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(' ו'));
182
+ prakim.map(function (s) { return "Perek ".concat(Utils.toJewishNumber(s)); }).join(' and '), 'פרקי אבות - ' +
183
+ prakim.map(function (s) { return "\u05E4\u05E8\u05E7 ".concat(Utils.toJewishNumber(s)); }).join(' ו'));
166
184
  }
167
185
  }
168
186
  }
169
187
  function getWeekDayNotifications() {
170
- const { isNightTime, dow, isYomTov, month, day, isMorning, jdate, location, isDaytime, isAfternoon, } = dayInfo;
188
+ var isNightTime = dayInfo.isNightTime, dow = dayInfo.dow, isYomTov = dayInfo.isYomTov, month = dayInfo.month, day = dayInfo.day, isMorning = dayInfo.isMorning, jdate = dayInfo.jdate, location = dayInfo.location, isDaytime = dayInfo.isDaytime, isAfternoon = dayInfo.isAfternoon;
171
189
  //מוצאי שבת
172
- if (isNightTime && dow === Utils_1.DaysOfWeek.SUNDAY) {
190
+ if (isNightTime && dow === DaysOfWeek.SUNDAY) {
173
191
  //הבדלה בתפילה for מוצאי שבת
174
192
  addTefillahNote((month === 1 && day === 15) || (month === 3 && day === 6)
175
193
  ? 'ותודיעינו'
@@ -193,11 +211,11 @@ function getWeekDayNotifications() {
193
211
  //when it's not chol hamoed, chanuka, purim, a fast day or rosh chodesh
194
212
  if (isMorning &&
195
213
  !isYomTov &&
196
- (dow === Utils_1.DaysOfWeek.MONDAY || dow === Utils_1.DaysOfWeek.THURSDAY) &&
214
+ (dow === DaysOfWeek.MONDAY || dow === DaysOfWeek.THURSDAY) &&
197
215
  !hasOwnKriyasHatorah(jdate, location)) {
198
- const sedra = jdate.getSedra(israel);
216
+ var sedra = jdate.getSedra(israel);
199
217
  if (sedra.sedras.length > 0) {
200
- addTefillahNote(`Kriyas Hatorah Parshas ${sedra.sedras[0].eng}`, `קה"ת פרשת ${sedra.sedras[0].heb}`);
218
+ addTefillahNote("Kriyas Hatorah Parshas ".concat(sedra.sedras[0].eng), "\u05E7\u05D4\"\u05EA \u05E4\u05E8\u05E9\u05EA ".concat(sedra.sedras[0].heb));
201
219
  }
202
220
  }
203
221
  //Rosh Chodesh
@@ -211,15 +229,15 @@ function getWeekDayNotifications() {
211
229
  //Rosh Chodesh Teves is during Chanuka
212
230
  if (isDaytime && month !== 10 && !(month === 9 && day === 30)) {
213
231
  addTefillahNote('Chatzi Hallel', 'חצי הלל');
214
- if (isMorning && dow !== Utils_1.DaysOfWeek.SHABBOS) {
232
+ if (isMorning && dow !== DaysOfWeek.SHABBOS) {
215
233
  noLaminatzeach();
216
234
  }
217
235
  }
218
236
  }
219
237
  //Yom Kippur Kattan
220
238
  else if (month !== 6 &&
221
- ((dow < Utils_1.DaysOfWeek.FRIDAY && day === 29) ||
222
- (dow === Utils_1.DaysOfWeek.THURSDAY && day === 28)) &&
239
+ ((dow < DaysOfWeek.FRIDAY && day === 29) ||
240
+ (dow === DaysOfWeek.THURSDAY && day === 28)) &&
223
241
  isAfternoon) {
224
242
  addTefillahNote('Yom Kippur Kattan', 'יו"כ קטן');
225
243
  }
@@ -228,21 +246,21 @@ function getWeekDayNotifications() {
228
246
  }
229
247
  }
230
248
  function getAroundTheYearNotifications() {
231
- const { month, day, isNightTime, dow, isAfternoon, isDaytime, isMorning, isAfterChatzosHalayla, jdate, isLeapYear, location, } = dayInfo;
249
+ var month = dayInfo.month, day = dayInfo.day, isNightTime = dayInfo.isNightTime, dow = dayInfo.dow, isAfternoon = dayInfo.isAfternoon, isDaytime = dayInfo.isDaytime, isMorning = dayInfo.isMorning, isAfterChatzosHalayla = dayInfo.isAfterChatzosHalayla, jdate = dayInfo.jdate, isLeapYear = dayInfo.isLeapYear, location = dayInfo.location;
232
250
  switch (month) {
233
251
  case 1: //Nissan
234
252
  dayInfo.noTachnun = true;
235
253
  if (day > 15) {
236
254
  addTefillahNote('Morid Hatal', 'מוריד הטל');
237
255
  }
238
- if (dow !== Utils_1.DaysOfWeek.SHABBOS && day > 15 && day !== 21) {
256
+ if (dow !== DaysOfWeek.SHABBOS && day > 15 && day !== 21) {
239
257
  addTefillahNote('Vesain Bracha', 'ותן ברכה');
240
258
  }
241
259
  if (isMorning &&
242
- dow !== Utils_1.DaysOfWeek.SHABBOS &&
260
+ dow !== DaysOfWeek.SHABBOS &&
243
261
  [14, 16, 17, 18, 19, 20].includes(day)) {
244
262
  addTefillahNote('No Mizmor Lesodah', 'א"א מזמור לתודה');
245
- if (dow !== Utils_1.DaysOfWeek.SHABBOS) {
263
+ if (dow !== DaysOfWeek.SHABBOS) {
246
264
  noLaminatzeach();
247
265
  }
248
266
  }
@@ -254,7 +272,7 @@ function getAroundTheYearNotifications() {
254
272
  }
255
273
  if (showGaonShirShelYom &&
256
274
  isDaytime &&
257
- dow !== Utils_1.DaysOfWeek.SHABBOS) {
275
+ dow !== DaysOfWeek.SHABBOS) {
258
276
  addTefillahNote('שיר של יום - קי"ד - בצאת ישראל');
259
277
  }
260
278
  addTefillahNote('Ya`aleh V`yavo', 'יעלה ויבא');
@@ -265,7 +283,7 @@ function getAroundTheYearNotifications() {
265
283
  addTefillahNote('Morid Hatal', 'מוריד הטל');
266
284
  if (showGaonShirShelYom &&
267
285
  isDaytime &&
268
- dow !== Utils_1.DaysOfWeek.SHABBOS) {
286
+ dow !== DaysOfWeek.SHABBOS) {
269
287
  addTefillahNote('שיר של יום - קי"ד - בצאת ישראל');
270
288
  }
271
289
  addTefillahNote('Ya`aleh V`yavo', 'יעלה ויבא');
@@ -277,7 +295,7 @@ function getAroundTheYearNotifications() {
277
295
  if (israel) {
278
296
  addTefillahNote('Yizkor', 'יזכור');
279
297
  }
280
- if (showGaonShirShelYom && dow !== Utils_1.DaysOfWeek.SHABBOS) {
298
+ if (showGaonShirShelYom && dow !== DaysOfWeek.SHABBOS) {
281
299
  addTefillahNote('שיר של יום - י"ח - למנצח לעבד ה\'');
282
300
  }
283
301
  }
@@ -285,14 +303,14 @@ function getAroundTheYearNotifications() {
285
303
  else {
286
304
  addDayNote('Chol Ha`moed Pesach', 'פסח - חול המועד');
287
305
  addTefillahNote('Ya`aleh Viyavo', 'יעלה ויבא');
288
- if (isMorning && dow !== Utils_1.DaysOfWeek.SHABBOS)
306
+ if (isMorning && dow !== DaysOfWeek.SHABBOS)
289
307
  noLaminatzeach();
290
308
  if (showGaonShirShelYom &&
291
309
  isDaytime &&
292
- dow !== Utils_1.DaysOfWeek.SHABBOS) {
310
+ dow !== DaysOfWeek.SHABBOS) {
293
311
  switch (day) {
294
312
  case 16:
295
- if (dow === Utils_1.DaysOfWeek.SUNDAY) {
313
+ if (dow === DaysOfWeek.SUNDAY) {
296
314
  addTefillahNote('שיר של יום - קי"ד - בצאת ישראל');
297
315
  }
298
316
  else {
@@ -300,7 +318,7 @@ function getAroundTheYearNotifications() {
300
318
  }
301
319
  break;
302
320
  case 17:
303
- if (dow === Utils_1.DaysOfWeek.MONDAY) {
321
+ if (dow === DaysOfWeek.MONDAY) {
304
322
  addTefillahNote('שיר של יום - ע"ח - משכיל לאסף');
305
323
  }
306
324
  else {
@@ -308,8 +326,8 @@ function getAroundTheYearNotifications() {
308
326
  }
309
327
  break;
310
328
  case 18:
311
- if (dow === Utils_1.DaysOfWeek.TUESDAY ||
312
- dow === Utils_1.DaysOfWeek.SUNDAY) {
329
+ if (dow === DaysOfWeek.TUESDAY ||
330
+ dow === DaysOfWeek.SUNDAY) {
313
331
  addTefillahNote("שיר של יום - פ' - למנצח אל שושנים");
314
332
  }
315
333
  else {
@@ -317,7 +335,7 @@ function getAroundTheYearNotifications() {
317
335
  }
318
336
  break;
319
337
  case 19:
320
- if (dow === Utils_1.DaysOfWeek.THURSDAY) {
338
+ if (dow === DaysOfWeek.THURSDAY) {
321
339
  addTefillahNote('שיר של יום - קל"ה - הללוי-ה הללו את שם');
322
340
  }
323
341
  else {
@@ -325,7 +343,7 @@ function getAroundTheYearNotifications() {
325
343
  }
326
344
  break;
327
345
  case 20:
328
- if (dow === Utils_1.DaysOfWeek.FRIDAY) {
346
+ if (dow === DaysOfWeek.FRIDAY) {
329
347
  addTefillahNote('שיר של יום - ס"ו - למנצח שיר מזמור');
330
348
  }
331
349
  else {
@@ -351,11 +369,11 @@ function getAroundTheYearNotifications() {
351
369
  }
352
370
  addTefillahNote('Ya`aleh V`yavo', 'יעלה ויבא');
353
371
  }
354
- if (dow !== Utils_1.DaysOfWeek.SHABBOS && isMorning) {
372
+ if (dow !== DaysOfWeek.SHABBOS && isMorning) {
355
373
  noLaminatzeach();
356
374
  }
357
375
  }
358
- if (dow === Utils_1.DaysOfWeek.SHABBOS &&
376
+ if (dow === DaysOfWeek.SHABBOS &&
359
377
  ([15, 16, 17, 18, 19, 20, 21].includes(day) ||
360
378
  (!israel && day === 22))) {
361
379
  addTefillahNote('Shir Hashirim', 'מגילת שיר השירים');
@@ -364,7 +382,7 @@ function getAroundTheYearNotifications() {
364
382
  case 2: //Iyar
365
383
  if (day <= 15) {
366
384
  addTefillahNote('Morid Hatal', 'מוריד הטל');
367
- if (dow !== Utils_1.DaysOfWeek.SHABBOS) {
385
+ if (dow !== DaysOfWeek.SHABBOS) {
368
386
  addTefillahNote('V`sain Bracha', 'ותן ברכה');
369
387
  }
370
388
  }
@@ -380,9 +398,9 @@ function getAroundTheYearNotifications() {
380
398
  }
381
399
  //Baha"b
382
400
  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 &&
401
+ ((dow === DaysOfWeek.MONDAY && day > 3 && day < 13) ||
402
+ (dow === DaysOfWeek.THURSDAY && day > 6 && day < 14) ||
403
+ (dow === DaysOfWeek.MONDAY &&
386
404
  day > 10 &&
387
405
  day < 18 &&
388
406
  day !== 14))) {
@@ -411,7 +429,7 @@ function getAroundTheYearNotifications() {
411
429
  else if (day === 7) {
412
430
  if (israel) {
413
431
  addDayNote('Issru Chag', 'איסרו חג');
414
- if (isMorning && dow !== Utils_1.DaysOfWeek.SHABBOS) {
432
+ if (isMorning && dow !== DaysOfWeek.SHABBOS) {
415
433
  noLaminatzeach();
416
434
  }
417
435
  }
@@ -427,8 +445,8 @@ function getAroundTheYearNotifications() {
427
445
  break;
428
446
  case 4: //Tammuz
429
447
  if (isDaytime &&
430
- ((day === 17 && Utils_1.DaysOfWeek.SHABBOS !== 6) ||
431
- (day === 18 && dow === Utils_1.DaysOfWeek.SUNDAY))) {
448
+ ((day === 17 && DaysOfWeek.SHABBOS !== 6) ||
449
+ (day === 18 && dow === DaysOfWeek.SUNDAY))) {
432
450
  if (isDaytime) {
433
451
  addDayNote('Shiva Asar B`Tamuz', 'י"ז בתמוז');
434
452
  addTefillahNote('Avinu Malkeinu', 'אבינו מלכנו');
@@ -440,22 +458,22 @@ function getAroundTheYearNotifications() {
440
458
  }
441
459
  break;
442
460
  case 5: //Av
443
- if (isAfternoon && day === 8 && dow !== Utils_1.DaysOfWeek.FRIDAY) {
461
+ if (isAfternoon && day === 8 && dow !== DaysOfWeek.FRIDAY) {
444
462
  dayInfo.noTachnun = true;
445
463
  }
446
- else if ((day === 9 && dow !== Utils_1.DaysOfWeek.SHABBOS) ||
447
- (day === 10 && dow === Utils_1.DaysOfWeek.SUNDAY)) {
464
+ else if ((day === 9 && dow !== DaysOfWeek.SHABBOS) ||
465
+ (day === 10 && dow === DaysOfWeek.SUNDAY)) {
448
466
  addDayNote('Tish B`Av', 'תשעה באב');
449
467
  if (isDaytime) {
450
468
  addTefillahNote('Kinos', 'קינות');
451
469
  addTefillahNote('Aneinu', 'עננו');
452
- if (isMorning && dow !== Utils_1.DaysOfWeek.SHABBOS) {
470
+ if (isMorning && dow !== DaysOfWeek.SHABBOS) {
453
471
  noLaminatzeach();
454
472
  }
455
473
  }
456
474
  else {
457
475
  addTefillahNote('Megilas Eicha', 'מגילת איכה');
458
- if (isNightTime && dow === Utils_1.DaysOfWeek.SUNDAY) {
476
+ if (isNightTime && dow === DaysOfWeek.SUNDAY) {
459
477
  addTefillahNote('No Vihi Noam', 'א"א ויהי נועם');
460
478
  }
461
479
  }
@@ -472,19 +490,19 @@ function getAroundTheYearNotifications() {
472
490
  case 6: //Ellul
473
491
  addTefillahNote('L`Dovid Hashem Ori', 'לדוד ה');
474
492
  if (day > 20 &&
475
- dow !== Utils_1.DaysOfWeek.SHABBOS &&
493
+ dow !== DaysOfWeek.SHABBOS &&
476
494
  (isAfterChatzosHalayla || isMorning)) {
477
- let startedSelichos = day >= 26;
495
+ var startedSelichos = day >= 26;
478
496
  if (day < 26) {
479
- const daysToRH = 30 - day, dowRH = (daysToRH + dow) % 7;
497
+ var daysToRH = 30 - day, dowRH = (daysToRH + dow) % 7;
480
498
  switch (dowRH) {
481
- case Utils_1.DaysOfWeek.MONDAY:
499
+ case DaysOfWeek.MONDAY:
482
500
  startedSelichos = day >= 22;
483
501
  break;
484
- case Utils_1.DaysOfWeek.TUESDAY:
502
+ case DaysOfWeek.TUESDAY:
485
503
  startedSelichos = day >= 21;
486
504
  break;
487
- case Utils_1.DaysOfWeek.SHABBOS:
505
+ case DaysOfWeek.SHABBOS:
488
506
  startedSelichos = day >= 24;
489
507
  break;
490
508
  }
@@ -500,16 +518,16 @@ function getAroundTheYearNotifications() {
500
518
  case 7: //Tishrei
501
519
  if (day < 11) {
502
520
  addTefillahNote('Hamelech Hakadosh', 'המלך הקדוש');
503
- if (dow !== Utils_1.DaysOfWeek.SHABBOS && day !== 9) {
521
+ if (dow !== DaysOfWeek.SHABBOS && day !== 9) {
504
522
  addTefillahNote('Avinu Malkeinu', 'אבינו מלכנו');
505
523
  }
506
524
  }
507
525
  //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) {
526
+ if (day > 4 && day < 10 && dow !== DaysOfWeek.SHABBOS) {
509
527
  addTefillahNote('Selichos', 'סליחות');
510
528
  addTefillahNote('Hamelech Hamishpat', 'המלך המשפט');
511
529
  }
512
- if (dow === Utils_1.DaysOfWeek.SHABBOS && day > 2 && day < 10) {
530
+ if (dow === DaysOfWeek.SHABBOS && day > 2 && day < 10) {
513
531
  addDayNote('Shabbos Shuva', 'שבת שובה');
514
532
  }
515
533
  if (day >= 10) {
@@ -518,7 +536,7 @@ function getAroundTheYearNotifications() {
518
536
  switch (day) {
519
537
  case 1:
520
538
  addDayNote('Rosh Hashana', 'ראש השנה');
521
- if (dow !== Utils_1.DaysOfWeek.SHABBOS && isDaytime) {
539
+ if (dow !== DaysOfWeek.SHABBOS && isDaytime) {
522
540
  addTefillahNote('Tekias Shofar', 'תקיעת שופר');
523
541
  if (showGaonShirShelYom) {
524
542
  addTefillahNote('שיר של יום - פ"א - למנצח על הגתית');
@@ -536,14 +554,14 @@ function getAroundTheYearNotifications() {
536
554
  if (showGaonShirShelYom) {
537
555
  addTefillahNote('שיר של יום - פ"א - למנצח על הגתית');
538
556
  }
539
- if (dow === Utils_1.DaysOfWeek.SUNDAY && isAfternoon) {
557
+ if (dow === DaysOfWeek.SUNDAY && isAfternoon) {
540
558
  addDayNote('Tashlich', 'תשליך');
541
559
  }
542
560
  }
543
561
  addTefillahNote('Ya`aleh V`yavo', 'יעלה ויבא');
544
562
  break;
545
563
  case 3:
546
- if (dow !== Utils_1.DaysOfWeek.SHABBOS) {
564
+ if (dow !== DaysOfWeek.SHABBOS) {
547
565
  if (isDaytime) {
548
566
  addDayNote('Fast of Tzom Gedalya', 'צום גדליה');
549
567
  addTefillahNote('Aneinu', 'עננו');
@@ -555,7 +573,7 @@ function getAroundTheYearNotifications() {
555
573
  }
556
574
  break;
557
575
  case 4:
558
- if (dow === Utils_1.DaysOfWeek.SUNDAY) {
576
+ if (dow === DaysOfWeek.SUNDAY) {
559
577
  if (isDaytime) {
560
578
  addDayNote('Fast of Tzom Gedalya', 'צום גדליה');
561
579
  addTefillahNote('Aneinu', 'עננו');
@@ -565,7 +583,7 @@ function getAroundTheYearNotifications() {
565
583
  }
566
584
  addTefillahNote('Hamelech Hamishpat', 'המלך המשפט');
567
585
  }
568
- else if (dow !== Utils_1.DaysOfWeek.SHABBOS) {
586
+ else if (dow !== DaysOfWeek.SHABBOS) {
569
587
  addTefillahNote('Hamelech Hamishpat', 'המלך המשפט');
570
588
  if (isAfterChatzosHalayla || isMorning) {
571
589
  addTefillahNote('Selichos', 'סליחות');
@@ -576,17 +594,17 @@ function getAroundTheYearNotifications() {
576
594
  addDayNote('Erev Yom Kippur', 'ערב יום כיפור');
577
595
  if (isMorning) {
578
596
  addTefillahNote('No Mizmor L`Sodah', 'א"א מזמור לתודה');
579
- if (dow !== Utils_1.DaysOfWeek.SHABBOS) {
597
+ if (dow !== DaysOfWeek.SHABBOS) {
580
598
  noLaminatzeach();
581
599
  }
582
- if (dow === Utils_1.DaysOfWeek.FRIDAY) {
600
+ if (dow === DaysOfWeek.FRIDAY) {
583
601
  addTefillahNote('Avinu Malkeinu', 'אבינו מלכנו');
584
602
  }
585
603
  }
586
604
  else if (isAfternoon) {
587
605
  addTefillahNote('Vidduy', 'ודוי בעמידה');
588
606
  }
589
- if (isDaytime && dow !== Utils_1.DaysOfWeek.FRIDAY) {
607
+ if (isDaytime && dow !== DaysOfWeek.FRIDAY) {
590
608
  addTefillahNote('No Avinu Malkeinu', 'א"א אבינו מלכנו');
591
609
  }
592
610
  dayInfo.noTachnun = true;
@@ -596,7 +614,7 @@ function getAroundTheYearNotifications() {
596
614
  addDayNote("לפני ה' תטהרו");
597
615
  if (isDaytime) {
598
616
  addTefillahNote('Yizkor', 'יזכור');
599
- if (showGaonShirShelYom && dow !== Utils_1.DaysOfWeek.SHABBOS) {
617
+ if (showGaonShirShelYom && dow !== DaysOfWeek.SHABBOS) {
600
618
  addTefillahNote('שיר של יום - ל"ב - לדוד משכיל');
601
619
  }
602
620
  }
@@ -610,7 +628,7 @@ function getAroundTheYearNotifications() {
610
628
  addTefillahNote('Ya`aleh V`yavo', 'יעלה ויבא');
611
629
  if (isDaytime) {
612
630
  addTefillahNote('Full Hallel', 'הלל השלם');
613
- if (dow !== Utils_1.DaysOfWeek.SHABBOS) {
631
+ if (dow !== DaysOfWeek.SHABBOS) {
614
632
  addTefillahNote('Hoshanos - למען אמתך', 'הושענות - למען אמתך');
615
633
  addTefillahNote('Kah Keli', 'קה קלי');
616
634
  if (showGaonShirShelYom) {
@@ -640,27 +658,27 @@ function getAroundTheYearNotifications() {
640
658
  switch (day) {
641
659
  case 16:
642
660
  addTefillahNote('הושענות - ' +
643
- (dow === Utils_1.DaysOfWeek.SUNDAY
661
+ (dow === DaysOfWeek.SUNDAY
644
662
  ? 'למען אמתך'
645
663
  : 'אבן שתיה'));
646
664
  if (showGaonShirShelYom &&
647
- dow !== Utils_1.DaysOfWeek.SHABBOS) {
665
+ dow !== DaysOfWeek.SHABBOS) {
648
666
  addTefillahNote('שיר של יום - כ"ט - ..הבו לה\' בני אלים');
649
667
  }
650
668
  break;
651
669
  case 17:
652
670
  addTefillahNote((showEnglish ? 'Hoshanos' : 'הושענות') +
653
671
  ' - ' +
654
- (dow === Utils_1.DaysOfWeek.SHABBOS
672
+ (dow === DaysOfWeek.SHABBOS
655
673
  ? 'אום נצורה'
656
674
  : 'אערוך שועי'));
657
675
  if (showGaonShirShelYom &&
658
- dow !== Utils_1.DaysOfWeek.SHABBOS) {
676
+ dow !== DaysOfWeek.SHABBOS) {
659
677
  addTefillahNote("שיר של יום - נ' - מזמור לאסף");
660
678
  }
661
679
  break;
662
680
  case 18:
663
- if (dow === Utils_1.DaysOfWeek.SUNDAY) {
681
+ if (dow === DaysOfWeek.SUNDAY) {
664
682
  addTefillahNote((showEnglish ? 'Hoshanos' : 'הושענות') +
665
683
  ' - ' +
666
684
  'אערוך שועי');
@@ -669,21 +687,21 @@ function getAroundTheYearNotifications() {
669
687
  }
670
688
  }
671
689
  else {
672
- if (dow === Utils_1.DaysOfWeek.TUESDAY) {
690
+ if (dow === DaysOfWeek.TUESDAY) {
673
691
  addTefillahNote((showEnglish
674
692
  ? 'Hoshanos'
675
693
  : 'הושענות') +
676
694
  ' - ' +
677
695
  'אבן שתיה');
678
696
  }
679
- else if (dow === Utils_1.DaysOfWeek.THURSDAY) {
697
+ else if (dow === DaysOfWeek.THURSDAY) {
680
698
  addTefillahNote((showEnglish
681
699
  ? 'Hoshanos'
682
700
  : 'הושענות') +
683
701
  ' - ' +
684
702
  'אום אני חומה');
685
703
  }
686
- else if (dow === Utils_1.DaysOfWeek.FRIDAY) {
704
+ else if (dow === DaysOfWeek.FRIDAY) {
687
705
  addTefillahNote((showEnglish
688
706
  ? 'Hoshanos'
689
707
  : 'הושענות') +
@@ -691,7 +709,7 @@ function getAroundTheYearNotifications() {
691
709
  'א-ל למושעות');
692
710
  }
693
711
  if (showGaonShirShelYom &&
694
- dow !== Utils_1.DaysOfWeek.SHABBOS) {
712
+ dow !== DaysOfWeek.SHABBOS) {
695
713
  addTefillahNote('שיר של יום - צ"ד - ..מי יקום לי..');
696
714
  }
697
715
  }
@@ -699,12 +717,12 @@ function getAroundTheYearNotifications() {
699
717
  case 19:
700
718
  addTefillahNote((showEnglish ? 'Hoshanos' : 'הושענות') +
701
719
  ' - ' +
702
- (dow === Utils_1.DaysOfWeek.SHABBOS
720
+ (dow === DaysOfWeek.SHABBOS
703
721
  ? 'אום נצורה'
704
722
  : 'א-ל למושעות'));
705
723
  if (showGaonShirShelYom &&
706
- dow !== Utils_1.DaysOfWeek.SHABBOS) {
707
- if (dow === Utils_1.DaysOfWeek.MONDAY) {
724
+ dow !== DaysOfWeek.SHABBOS) {
725
+ if (dow === DaysOfWeek.MONDAY) {
708
726
  addTefillahNote('שיר של יום - צ"ד - ..מי יקום לי..');
709
727
  }
710
728
  else {
@@ -715,12 +733,12 @@ function getAroundTheYearNotifications() {
715
733
  case 20:
716
734
  addTefillahNote((showEnglish ? 'Hoshanos' : 'הושענות') +
717
735
  ' - ' +
718
- (dow === Utils_1.DaysOfWeek.SHABBOS
736
+ (dow === DaysOfWeek.SHABBOS
719
737
  ? 'אום נצורה'
720
738
  : 'אדון המושיע'));
721
739
  if (showGaonShirShelYom &&
722
- dow !== Utils_1.DaysOfWeek.SHABBOS) {
723
- if (dow === Utils_1.DaysOfWeek.THURSDAY) {
740
+ dow !== DaysOfWeek.SHABBOS) {
741
+ if (dow === DaysOfWeek.THURSDAY) {
724
742
  addTefillahNote('שיר של יום - פ"א - למנצח על הגתית');
725
743
  }
726
744
  else {
@@ -741,7 +759,7 @@ function getAroundTheYearNotifications() {
741
759
  addTefillahNote('Hoshanos', 'הושענות');
742
760
  addTefillahNote('Full Hallel', 'הלל השלם');
743
761
  if (showGaonShirShelYom) {
744
- if (dow === Utils_1.DaysOfWeek.FRIDAY) {
762
+ if (dow === DaysOfWeek.FRIDAY) {
745
763
  addTefillahNote('שיר של יום - פ"ב - מזמור לאסף');
746
764
  }
747
765
  else {
@@ -762,7 +780,7 @@ function getAroundTheYearNotifications() {
762
780
  addTefillahNote('Yizkor', 'יזכור');
763
781
  addTefillahNote('Tefilas Geshem', 'תפילת גשם');
764
782
  addTefillahNote('משיב הרוח ומוריד הגשם');
765
- if (showGaonShirShelYom && dow !== Utils_1.DaysOfWeek.SHABBOS) {
783
+ if (showGaonShirShelYom && dow !== DaysOfWeek.SHABBOS) {
766
784
  addTefillahNote('שיר של יום - י"ב - למנצח על השמינית');
767
785
  }
768
786
  }
@@ -780,12 +798,12 @@ function getAroundTheYearNotifications() {
780
798
  if (isNightTime) {
781
799
  addDayNote('א גוטען ווינטער', 'חורף טוב');
782
800
  }
783
- else if (dow !== Utils_1.DaysOfWeek.SHABBOS && isMorning) {
801
+ else if (dow !== DaysOfWeek.SHABBOS && isMorning) {
784
802
  noLaminatzeach();
785
803
  }
786
804
  }
787
805
  }
788
- else if (dow === Utils_1.DaysOfWeek.SHABBOS &&
806
+ else if (dow === DaysOfWeek.SHABBOS &&
789
807
  [15, 17, 18, 19, 20].includes(day)) {
790
808
  addTefillahNote('Megilas Koheles', 'מגילת קהלת');
791
809
  }
@@ -798,25 +816,25 @@ function getAroundTheYearNotifications() {
798
816
  break;
799
817
  case 8: //Cheshvan
800
818
  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))) {
819
+ ((dow === DaysOfWeek.MONDAY && day > 3 && day < 13) ||
820
+ (dow === DaysOfWeek.THURSDAY && day > 6 && day < 14) ||
821
+ (dow === DaysOfWeek.MONDAY && day > 10 && day < 18))) {
804
822
  addTefillahNote('Ba`Hab', 'סליחות בה"ב');
805
823
  addTefillahNote('Avinu Malkeinu', 'אבינו מלכנו');
806
824
  }
807
825
  if (day <= 22) {
808
826
  addTefillahNote('Mashiv Haruach U`Morid Hageshem', 'משיב הרוח ומוריד הגשם');
809
827
  }
810
- if (day >= 7 && dow !== Utils_1.DaysOfWeek.SHABBOS) {
828
+ if (day >= 7 && dow !== DaysOfWeek.SHABBOS) {
811
829
  addTefillahNote('V`sain Tal U`matar', 'ותן טל ומטר');
812
830
  }
813
831
  break;
814
832
  case 9: //Kislev
815
- if (day <= 7 && dow !== Utils_1.DaysOfWeek.SHABBOS) {
833
+ if (day <= 7 && dow !== DaysOfWeek.SHABBOS) {
816
834
  addTefillahNote('V`sain Tal U`matar', 'ותן טל ומטר');
817
835
  }
818
836
  else if (day === 24 &&
819
- dow !== Utils_1.DaysOfWeek.SHABBOS &&
837
+ dow !== DaysOfWeek.SHABBOS &&
820
838
  isAfternoon) {
821
839
  dayInfo.noTachnun = true;
822
840
  }
@@ -826,24 +844,24 @@ function getAroundTheYearNotifications() {
826
844
  addTefillahNote('Al Hanissim', 'על הניסים');
827
845
  if (isDaytime) {
828
846
  addTefillahNote('Full Hallel', 'הלל השלם');
829
- if (isMorning && dow !== Utils_1.DaysOfWeek.SHABBOS)
847
+ if (isMorning && dow !== DaysOfWeek.SHABBOS)
830
848
  noLaminatzeach();
831
849
  if (showGaonShirShelYom &&
832
850
  day !== 30 &&
833
- dow !== Utils_1.DaysOfWeek.SHABBOS) {
851
+ dow !== DaysOfWeek.SHABBOS) {
834
852
  addTefillahNote("שיר של יום - ל' - מזמור שיר חנוכת הבית");
835
853
  }
836
854
  }
837
855
  }
838
856
  break;
839
857
  case 10: //Teves
840
- if (day <= (jDate_1.default.isShortKislev(jdate.Year) ? 3 : 2)) {
858
+ if (day <= (jDate.isShortKislev(jdate.Year) ? 3 : 2)) {
841
859
  dayInfo.noTachnun = true;
842
860
  addDayNote('Chanukah', 'חנוכה');
843
861
  addTefillahNote('Al Hanissim', 'על הניסים');
844
862
  if (isDaytime) {
845
863
  addTefillahNote('Full Hallel', 'הלל השלם');
846
- if (isMorning && dow !== Utils_1.DaysOfWeek.SHABBOS) {
864
+ if (isMorning && dow !== DaysOfWeek.SHABBOS) {
847
865
  noLaminatzeach();
848
866
  if (day !== 1 && showGaonShirShelYom) {
849
867
  addTefillahNote("שיר של יום - ל' - מזמור שיר חנוכת הבית");
@@ -882,7 +900,7 @@ function getAroundTheYearNotifications() {
882
900
  ? 'Shushan Purim Katan'
883
901
  : 'שושן פורים קטן');
884
902
  dayInfo.noTachnun = true;
885
- if (isMorning && dow !== Utils_1.DaysOfWeek.SHABBOS) {
903
+ if (isMorning && dow !== DaysOfWeek.SHABBOS) {
886
904
  noLaminatzeach();
887
905
  }
888
906
  }
@@ -890,8 +908,8 @@ function getAroundTheYearNotifications() {
890
908
  else {
891
909
  //The "real" Adar: the only one in a non-leap-year or Adar Sheini
892
910
  if (isDaytime &&
893
- ((day === 11 && dow === Utils_1.DaysOfWeek.THURSDAY) ||
894
- (day === 13 && dow !== Utils_1.DaysOfWeek.SHABBOS))) {
911
+ ((day === 11 && dow === DaysOfWeek.THURSDAY) ||
912
+ (day === 13 && dow !== DaysOfWeek.SHABBOS))) {
895
913
  if (isMorning) {
896
914
  addDayNote('Fast of Ta`anis Esther', 'תענית אסתר');
897
915
  addTefillahNote('Selichos', 'סליחות');
@@ -901,14 +919,14 @@ function getAroundTheYearNotifications() {
901
919
  }
902
920
  else {
903
921
  //Only ירושלים says על הניסים on ט"ו
904
- const isYerushalayim = location.Name === 'ירושלים';
922
+ var isYerushalayim = location.Name === 'ירושלים';
905
923
  if (day === 14) {
906
924
  dayInfo.noTachnun = true;
907
- if (isMorning && dow !== Utils_1.DaysOfWeek.SHABBOS) {
925
+ if (isMorning && dow !== DaysOfWeek.SHABBOS) {
908
926
  noLaminatzeach();
909
927
  }
910
928
  //On a Purim Meshulash in Yerushalayim, מגילת אסתר is on י"ד
911
- if (!isYerushalayim || dow === Utils_1.DaysOfWeek.FRIDAY) {
929
+ if (!isYerushalayim || dow === DaysOfWeek.FRIDAY) {
912
930
  addDayNote('Megilas Esther', 'מגילת אסתר');
913
931
  if (!isYerushalayim) {
914
932
  addDayNote('Purim', 'פורים');
@@ -928,18 +946,18 @@ function getAroundTheYearNotifications() {
928
946
  }
929
947
  else if (day === 15) {
930
948
  dayInfo.noTachnun = true;
931
- if (isMorning && dow !== Utils_1.DaysOfWeek.SHABBOS) {
949
+ if (isMorning && dow !== DaysOfWeek.SHABBOS) {
932
950
  noLaminatzeach();
933
951
  }
934
952
  if (isYerushalayim) {
935
953
  addDayNote('Purim', 'פורים');
936
954
  addTefillahNote('Al Hanissim', 'על הניסים');
937
- if (dow !== Utils_1.DaysOfWeek.SHABBOS) {
955
+ if (dow !== DaysOfWeek.SHABBOS) {
938
956
  addDayNote('Megilas Esther', 'מגילת אסתר');
939
957
  }
940
958
  if (showGaonShirShelYom &&
941
959
  isDaytime &&
942
- dow !== Utils_1.DaysOfWeek.SHABBOS) {
960
+ dow !== DaysOfWeek.SHABBOS) {
943
961
  addTefillahNote('שיר של יום - כ"ב - למנצח על אילת השחר');
944
962
  }
945
963
  }
@@ -955,7 +973,7 @@ function getAroundTheYearNotifications() {
955
973
  'לוד',
956
974
  ].includes(location.Name)) {
957
975
  addDayNote('Purim D`Mukafin', 'פורים דמוקפין');
958
- if (dow !== Utils_1.DaysOfWeek.SHABBOS) {
976
+ if (dow !== DaysOfWeek.SHABBOS) {
959
977
  addDayNote('(Megilas Esther)', '(מגילת אסתר)');
960
978
  }
961
979
  }
@@ -965,7 +983,7 @@ function getAroundTheYearNotifications() {
965
983
  }
966
984
  else if (day === 16 &&
967
985
  isYerushalayim &&
968
- dow === Utils_1.DaysOfWeek.SUNDAY) {
986
+ dow === DaysOfWeek.SUNDAY) {
969
987
  addDayNote('Purim Seuda and Mishloach Manos', 'סעודת פורים ומשלוח מנות');
970
988
  }
971
989
  }
@@ -977,19 +995,19 @@ function noLaminatzeach() {
977
995
  addTefillahNote('No Laminatzeach', 'א"א למנצח');
978
996
  }
979
997
  function addDayNote(englishOrDefaultText, hebrewText) {
980
- const note = showEnglish || !hebrewText ? englishOrDefaultText : hebrewText;
998
+ var note = showEnglish || !hebrewText ? englishOrDefaultText : hebrewText;
981
999
  if (!dayNotes.includes(note)) {
982
1000
  dayNotes.push(note);
983
1001
  }
984
1002
  }
985
1003
  function addTefillahNote(englishOrDefaultText, hebrewText) {
986
- const note = showEnglish || !hebrewText ? englishOrDefaultText : hebrewText;
1004
+ var note = showEnglish || !hebrewText ? englishOrDefaultText : hebrewText;
987
1005
  if (!tefillahNotes.includes(note)) {
988
1006
  tefillahNotes.push(note);
989
1007
  }
990
1008
  }
991
1009
  function hasOwnKriyasHatorah(jdate, location) {
992
- const { Month, Day, DayOfWeek } = jdate;
1010
+ var Month = jdate.Month, Day = jdate.Day, DayOfWeek = jdate.DayOfWeek;
993
1011
  //Rosh chodesh
994
1012
  if (Day === 1 || Day === 30) {
995
1013
  return true;
@@ -1009,10 +1027,10 @@ function hasOwnKriyasHatorah(jdate, location) {
1009
1027
  case 10:
1010
1028
  return (Day === 10 ||
1011
1029
  Day < 3 ||
1012
- (Day === 3 && jDate_1.default.isShortKislev(jdate.Year)));
1030
+ (Day === 3 && jDate.isShortKislev(jdate.Year)));
1013
1031
  case 12:
1014
1032
  case 13:
1015
- return (Month === (jDate_1.default.isJdLeapY(jdate.Year) ? 13 : 12) &&
1033
+ return (Month === (jDate.isJdLeapY(jdate.Year) ? 13 : 12) &&
1016
1034
  (Day === 13 || Day === (location.Name === 'ירושלים' ? 15 : 14)));
1017
1035
  default:
1018
1036
  return false;