jcal-zmanim 1.5.12 → 1.5.14
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.
- package/README.md +51 -23
- package/dist/README.md +51 -23
- package/dist/index.cjs +74 -59
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +46 -31
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -2,6 +2,35 @@
|
|
|
2
2
|
|
|
3
3
|
A comprehensive JavaScript library for the Jewish Calendar.
|
|
4
4
|
|
|
5
|
+
## Table of Contents
|
|
6
|
+
|
|
7
|
+
### Getting Started
|
|
8
|
+
|
|
9
|
+
- [Installation](#to-add-jcal-zmanim-to-your-project)
|
|
10
|
+
- [Basic Usage](#some-basic-uses-of-jcal-zmanim)
|
|
11
|
+
|
|
12
|
+
### API Reference
|
|
13
|
+
|
|
14
|
+
- [The jDate Object](#the-jdate-object)
|
|
15
|
+
- [Creating a jDate](#creating-a-jdate-instance)
|
|
16
|
+
- [Properties and Functions](#jdate-instance-properties-and-functions)
|
|
17
|
+
- [Static Properties and Functions](#jdate-static-properties-and-functions)
|
|
18
|
+
- [The Location Object](#the-location-object)
|
|
19
|
+
- [Finding a Location](#finding-a-location)
|
|
20
|
+
- [Properties and Functions](#location-properties-and-functions)
|
|
21
|
+
- [Creating a Location](#creating-a-new-location)
|
|
22
|
+
- [Polar Regions](#polar-regions)
|
|
23
|
+
- [Zmanim](#zmanim)
|
|
24
|
+
- [Zmanim Types](#zmanim-types)
|
|
25
|
+
- [Calculate other Zmanim](#calculate-other-zmanim)
|
|
26
|
+
- [The Sedra Object](#the-sedra-object)
|
|
27
|
+
- [The Dafyomi Object](#the-dafyomi-object)
|
|
28
|
+
- [The Molad Functions](#the-molad-functions)
|
|
29
|
+
- [Daily Notifications](#daily-notifications-and-shul-notifications)
|
|
30
|
+
- [The Utils Functions](#the-utils-functions)
|
|
31
|
+
|
|
32
|
+
---
|
|
33
|
+
|
|
5
34
|
### To add _jcal-zmanim_ to your project
|
|
6
35
|
|
|
7
36
|
> _npm install jcal-zmanim_
|
|
@@ -10,13 +39,6 @@ OR
|
|
|
10
39
|
|
|
11
40
|
> _yarn add jcal-zmanim_
|
|
12
41
|
|
|
13
|
-
### Performance
|
|
14
|
-
|
|
15
|
-
As of version 1.5.8, `jcal-zmanim` includes built-in caching for complex astronomical and calendar calculations.
|
|
16
|
-
|
|
17
|
-
- **Zmanim Caching:** Sunrise/Sunset calculations are cached per date/location to improve performance when rendering calendars or lists of zmanim.
|
|
18
|
-
- **Calendar Caching:** Year-based calculations are cached to speed up date conversions and manipulations.
|
|
19
|
-
|
|
20
42
|
### Some basic uses of _jcal-zmanim_
|
|
21
43
|
|
|
22
44
|
##### Print out todays Jewish Date
|
|
@@ -144,19 +166,25 @@ The code above, prints out to the console:
|
|
|
144
166
|
|
|
145
167
|
## The jDate object
|
|
146
168
|
|
|
147
|
-
A _jDate_ is a single day in the Jewish Calendar
|
|
169
|
+
A **_jDate_** is a **single day in the Jewish Calendar**.<br>
|
|
148
170
|
It is used as the basic date unit throughout jcal-zmanim.
|
|
149
171
|
|
|
150
172
|
```javascript
|
|
151
173
|
import { jDate } from "jcal-zmanim";
|
|
152
174
|
|
|
153
|
-
//
|
|
175
|
+
//Create a jDate object for todays Date.
|
|
154
176
|
const jdate = new jDate();
|
|
155
|
-
|
|
156
|
-
//The following will output the above Jewish Date in the format: Thursday, the 3rd of Kislev 5784.
|
|
157
177
|
console.log(jdate.toString());
|
|
178
|
+
//Output: Wednesday, the 18th of Teves 5786
|
|
179
|
+
|
|
180
|
+
//Create a jDate object for January 9 2035.
|
|
181
|
+
const jdate2 = new jDate("January 9 2035");
|
|
182
|
+
console.log(jdate2.toStringHeb());
|
|
183
|
+
//Output: יום שלישי כ"ח טבת תשצ"ה
|
|
158
184
|
```
|
|
159
185
|
|
|
186
|
+
It is important to note that in jcal-zmanim, the Jewish Months start at Nissan (1) and end at Adar Sheini (13) as it is in the Torah.
|
|
187
|
+
|
|
160
188
|
### Creating a jDate instance
|
|
161
189
|
|
|
162
190
|
A jDate can be created in a number of ways:
|
|
@@ -164,7 +192,7 @@ A jDate can be created in a number of ways:
|
|
|
164
192
|
#### Create a jDate using the jDate constructor
|
|
165
193
|
|
|
166
194
|
- `const jdate = new jDate()` - Sets the Jewish Date for the current system date
|
|
167
|
-
- `const jdate = new jDate(
|
|
195
|
+
- `const jdate = new jDate(Date)` - Sets to the Jewish date on the given Javascript/Typescript Date object
|
|
168
196
|
- `const jdate = new jDate("January 1 2045")` - Accepts any valid javascript Date string (uses JavaScript's new Date(string))
|
|
169
197
|
- `const jdate = new jDate(jewishYear, jewishMonth, jewishDay)` - Months start at 1. Nissan is month 1 Adar Sheini is 13.
|
|
170
198
|
- `const jdate = new jDate(jewishYear, jewishMonth)` - Same as above, with Day defaulting to 1
|
|
@@ -175,20 +203,20 @@ A jDate can be created in a number of ways:
|
|
|
175
203
|
- `const jdate = new jDate(jewishYear, jewishMonth, jewishDay, absoluteDate)` - Most efficient constructor. Needs no calculations at all.
|
|
176
204
|
- `const jdate = new jDate( { year: 5776, month: 4, day: 5, abs: 122548708 } )` - same as new jDate(jewishYear, jewishMonth, jewishDay, absoluteDate)
|
|
177
205
|
|
|
178
|
-
|
|
206
|
+
### Static jDate Constructors
|
|
179
207
|
|
|
180
|
-
- `jDate
|
|
208
|
+
- Besides for `new jDate()`, you can also use `jDate.now()` to get the current Jewish Date.
|
|
181
209
|
|
|
182
210
|
```javascript
|
|
183
|
-
//To print out the current Jewish Date in English.
|
|
184
|
-
console.log(jDate.toJDate().toString());
|
|
185
211
|
//A shortcut to get the current jDate.
|
|
186
212
|
const currentJDate = jDate.now();
|
|
213
|
+
//To print out the current Jewish Date in English.
|
|
214
|
+
console.log(currentJDate.toString());
|
|
187
215
|
//To print out the current Jewish Date in Hebrew:
|
|
188
|
-
console.log(
|
|
216
|
+
console.log(currentJDate.toStringHeb());
|
|
189
217
|
```
|
|
190
218
|
|
|
191
|
-
- `jDate.toJDate(Date)`
|
|
219
|
+
- The static function `jDate.toJDate(Date)` can also be used to convert a Javascript Date object to a jDate object.
|
|
192
220
|
- `jDate.toJDate("January 1 2045")` - Accepts any valid Javascript Date string (uses string constructor of Date object)
|
|
193
221
|
|
|
194
222
|
```javascript
|
|
@@ -343,13 +371,13 @@ import { Location } from "jcal-zmanim";
|
|
|
343
371
|
|
|
344
372
|
const myLocation = new Location(
|
|
345
373
|
"Nowhere", // The location name
|
|
346
|
-
"יהופיץ", //The name in Hebrew
|
|
374
|
+
"יהופיץ", // The name in Hebrew
|
|
347
375
|
false, // This place is not in Israel
|
|
348
|
-
35.01
|
|
349
|
-
|
|
350
|
-
11, // The Time Zone: The number of hours offset from UTC
|
|
376
|
+
35.01, // The latitude. North is positive
|
|
377
|
+
155.23, // The longitude. East is negative
|
|
378
|
+
11, // The Time Zone: The number of hours offset from UTC
|
|
351
379
|
1106, // The elevation in Meters. (Feet x 3.2808)
|
|
352
|
-
18 // The number of minutes before sunset candles are lit on Erev Shabbos
|
|
380
|
+
18 // The number of minutes before sunset candles are lit on Erev Shabbos
|
|
353
381
|
);
|
|
354
382
|
```
|
|
355
383
|
|
package/dist/README.md
CHANGED
|
@@ -2,6 +2,35 @@
|
|
|
2
2
|
|
|
3
3
|
A comprehensive JavaScript library for the Jewish Calendar.
|
|
4
4
|
|
|
5
|
+
## Table of Contents
|
|
6
|
+
|
|
7
|
+
### Getting Started
|
|
8
|
+
|
|
9
|
+
- [Installation](#to-add-jcal-zmanim-to-your-project)
|
|
10
|
+
- [Basic Usage](#some-basic-uses-of-jcal-zmanim)
|
|
11
|
+
|
|
12
|
+
### API Reference
|
|
13
|
+
|
|
14
|
+
- [The jDate Object](#the-jdate-object)
|
|
15
|
+
- [Creating a jDate](#creating-a-jdate-instance)
|
|
16
|
+
- [Properties and Functions](#jdate-instance-properties-and-functions)
|
|
17
|
+
- [Static Properties and Functions](#jdate-static-properties-and-functions)
|
|
18
|
+
- [The Location Object](#the-location-object)
|
|
19
|
+
- [Finding a Location](#finding-a-location)
|
|
20
|
+
- [Properties and Functions](#location-properties-and-functions)
|
|
21
|
+
- [Creating a Location](#creating-a-new-location)
|
|
22
|
+
- [Polar Regions](#polar-regions)
|
|
23
|
+
- [Zmanim](#zmanim)
|
|
24
|
+
- [Zmanim Types](#zmanim-types)
|
|
25
|
+
- [Calculate other Zmanim](#calculate-other-zmanim)
|
|
26
|
+
- [The Sedra Object](#the-sedra-object)
|
|
27
|
+
- [The Dafyomi Object](#the-dafyomi-object)
|
|
28
|
+
- [The Molad Functions](#the-molad-functions)
|
|
29
|
+
- [Daily Notifications](#daily-notifications-and-shul-notifications)
|
|
30
|
+
- [The Utils Functions](#the-utils-functions)
|
|
31
|
+
|
|
32
|
+
---
|
|
33
|
+
|
|
5
34
|
### To add _jcal-zmanim_ to your project
|
|
6
35
|
|
|
7
36
|
> _npm install jcal-zmanim_
|
|
@@ -10,13 +39,6 @@ OR
|
|
|
10
39
|
|
|
11
40
|
> _yarn add jcal-zmanim_
|
|
12
41
|
|
|
13
|
-
### Performance
|
|
14
|
-
|
|
15
|
-
As of version 1.5.8, `jcal-zmanim` includes built-in caching for complex astronomical and calendar calculations.
|
|
16
|
-
|
|
17
|
-
- **Zmanim Caching:** Sunrise/Sunset calculations are cached per date/location to improve performance when rendering calendars or lists of zmanim.
|
|
18
|
-
- **Calendar Caching:** Year-based calculations are cached to speed up date conversions and manipulations.
|
|
19
|
-
|
|
20
42
|
### Some basic uses of _jcal-zmanim_
|
|
21
43
|
|
|
22
44
|
##### Print out todays Jewish Date
|
|
@@ -144,19 +166,25 @@ The code above, prints out to the console:
|
|
|
144
166
|
|
|
145
167
|
## The jDate object
|
|
146
168
|
|
|
147
|
-
A _jDate_ is a single day in the Jewish Calendar
|
|
169
|
+
A **_jDate_** is a **single day in the Jewish Calendar**.<br>
|
|
148
170
|
It is used as the basic date unit throughout jcal-zmanim.
|
|
149
171
|
|
|
150
172
|
```javascript
|
|
151
173
|
import { jDate } from "jcal-zmanim";
|
|
152
174
|
|
|
153
|
-
//
|
|
175
|
+
//Create a jDate object for todays Date.
|
|
154
176
|
const jdate = new jDate();
|
|
155
|
-
|
|
156
|
-
//The following will output the above Jewish Date in the format: Thursday, the 3rd of Kislev 5784.
|
|
157
177
|
console.log(jdate.toString());
|
|
178
|
+
//Output: Wednesday, the 18th of Teves 5786
|
|
179
|
+
|
|
180
|
+
//Create a jDate object for January 9 2035.
|
|
181
|
+
const jdate2 = new jDate("January 9 2035");
|
|
182
|
+
console.log(jdate2.toStringHeb());
|
|
183
|
+
//Output: יום שלישי כ"ח טבת תשצ"ה
|
|
158
184
|
```
|
|
159
185
|
|
|
186
|
+
It is important to note that in jcal-zmanim, the Jewish Months start at Nissan (1) and end at Adar Sheini (13) as it is in the Torah.
|
|
187
|
+
|
|
160
188
|
### Creating a jDate instance
|
|
161
189
|
|
|
162
190
|
A jDate can be created in a number of ways:
|
|
@@ -164,7 +192,7 @@ A jDate can be created in a number of ways:
|
|
|
164
192
|
#### Create a jDate using the jDate constructor
|
|
165
193
|
|
|
166
194
|
- `const jdate = new jDate()` - Sets the Jewish Date for the current system date
|
|
167
|
-
- `const jdate = new jDate(
|
|
195
|
+
- `const jdate = new jDate(Date)` - Sets to the Jewish date on the given Javascript/Typescript Date object
|
|
168
196
|
- `const jdate = new jDate("January 1 2045")` - Accepts any valid javascript Date string (uses JavaScript's new Date(string))
|
|
169
197
|
- `const jdate = new jDate(jewishYear, jewishMonth, jewishDay)` - Months start at 1. Nissan is month 1 Adar Sheini is 13.
|
|
170
198
|
- `const jdate = new jDate(jewishYear, jewishMonth)` - Same as above, with Day defaulting to 1
|
|
@@ -175,20 +203,20 @@ A jDate can be created in a number of ways:
|
|
|
175
203
|
- `const jdate = new jDate(jewishYear, jewishMonth, jewishDay, absoluteDate)` - Most efficient constructor. Needs no calculations at all.
|
|
176
204
|
- `const jdate = new jDate( { year: 5776, month: 4, day: 5, abs: 122548708 } )` - same as new jDate(jewishYear, jewishMonth, jewishDay, absoluteDate)
|
|
177
205
|
|
|
178
|
-
|
|
206
|
+
### Static jDate Constructors
|
|
179
207
|
|
|
180
|
-
- `jDate
|
|
208
|
+
- Besides for `new jDate()`, you can also use `jDate.now()` to get the current Jewish Date.
|
|
181
209
|
|
|
182
210
|
```javascript
|
|
183
|
-
//To print out the current Jewish Date in English.
|
|
184
|
-
console.log(jDate.toJDate().toString());
|
|
185
211
|
//A shortcut to get the current jDate.
|
|
186
212
|
const currentJDate = jDate.now();
|
|
213
|
+
//To print out the current Jewish Date in English.
|
|
214
|
+
console.log(currentJDate.toString());
|
|
187
215
|
//To print out the current Jewish Date in Hebrew:
|
|
188
|
-
console.log(
|
|
216
|
+
console.log(currentJDate.toStringHeb());
|
|
189
217
|
```
|
|
190
218
|
|
|
191
|
-
- `jDate.toJDate(Date)`
|
|
219
|
+
- The static function `jDate.toJDate(Date)` can also be used to convert a Javascript Date object to a jDate object.
|
|
192
220
|
- `jDate.toJDate("January 1 2045")` - Accepts any valid Javascript Date string (uses string constructor of Date object)
|
|
193
221
|
|
|
194
222
|
```javascript
|
|
@@ -343,13 +371,13 @@ import { Location } from "jcal-zmanim";
|
|
|
343
371
|
|
|
344
372
|
const myLocation = new Location(
|
|
345
373
|
"Nowhere", // The location name
|
|
346
|
-
"יהופיץ", //The name in Hebrew
|
|
374
|
+
"יהופיץ", // The name in Hebrew
|
|
347
375
|
false, // This place is not in Israel
|
|
348
|
-
35.01
|
|
349
|
-
|
|
350
|
-
11, // The Time Zone: The number of hours offset from UTC
|
|
376
|
+
35.01, // The latitude. North is positive
|
|
377
|
+
155.23, // The longitude. East is negative
|
|
378
|
+
11, // The Time Zone: The number of hours offset from UTC
|
|
351
379
|
1106, // The elevation in Meters. (Feet x 3.2808)
|
|
352
|
-
18 // The number of minutes before sunset candles are lit on Erev Shabbos
|
|
380
|
+
18 // The number of minutes before sunset candles are lit on Erev Shabbos
|
|
353
381
|
);
|
|
354
382
|
```
|
|
355
383
|
|
package/dist/index.cjs
CHANGED
|
@@ -69,6 +69,7 @@ function _inherits(subClass, superClass) {
|
|
|
69
69
|
if (superClass) _set_prototype_of(subClass, superClass);
|
|
70
70
|
}
|
|
71
71
|
function _instanceof(left, right) {
|
|
72
|
+
"@swc/helpers - instanceof";
|
|
72
73
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
73
74
|
return !!right[Symbol.hasInstance](left);
|
|
74
75
|
} else {
|
|
@@ -160,20 +161,20 @@ var __defProp = Object.defineProperty;
|
|
|
160
161
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
161
162
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
162
163
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
163
|
-
var __export = function(target, all) {
|
|
164
|
+
var __export = function __export(target, all) {
|
|
164
165
|
for(var name in all)__defProp(target, name, {
|
|
165
166
|
get: all[name],
|
|
166
167
|
enumerable: true
|
|
167
168
|
});
|
|
168
169
|
};
|
|
169
|
-
var __copyProps = function(to, from, except, desc) {
|
|
170
|
+
var __copyProps = function __copyProps(to, from, except, desc) {
|
|
170
171
|
if (from && (typeof from === "undefined" ? "undefined" : _type_of(from)) === "object" || typeof from === "function") {
|
|
171
172
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
172
173
|
try {
|
|
173
174
|
var _loop = function() {
|
|
174
175
|
var key = _step.value;
|
|
175
176
|
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
176
|
-
get: function() {
|
|
177
|
+
get: function get() {
|
|
177
178
|
return from[key];
|
|
178
179
|
},
|
|
179
180
|
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
@@ -197,7 +198,7 @@ var __copyProps = function(to, from, except, desc) {
|
|
|
197
198
|
}
|
|
198
199
|
return to;
|
|
199
200
|
};
|
|
200
|
-
var __toCommonJS = function(mod) {
|
|
201
|
+
var __toCommonJS = function __toCommonJS(mod) {
|
|
201
202
|
return __copyProps(__defProp({}, "__esModule", {
|
|
202
203
|
value: true
|
|
203
204
|
}), mod);
|
|
@@ -205,76 +206,76 @@ var __toCommonJS = function(mod) {
|
|
|
205
206
|
// src/index.ts
|
|
206
207
|
var index_exports = {};
|
|
207
208
|
__export(index_exports, {
|
|
208
|
-
Dafyomi: function() {
|
|
209
|
+
Dafyomi: function Dafyomi1() {
|
|
209
210
|
return Dafyomi;
|
|
210
211
|
},
|
|
211
|
-
DaysOfWeek: function() {
|
|
212
|
+
DaysOfWeek: function DaysOfWeek1() {
|
|
212
213
|
return DaysOfWeek;
|
|
213
214
|
},
|
|
214
|
-
DaysOfWeekEng: function() {
|
|
215
|
+
DaysOfWeekEng: function DaysOfWeekEng1() {
|
|
215
216
|
return DaysOfWeekEng;
|
|
216
217
|
},
|
|
217
|
-
DaysOfWeekHeb: function() {
|
|
218
|
+
DaysOfWeekHeb: function DaysOfWeekHeb1() {
|
|
218
219
|
return DaysOfWeekHeb;
|
|
219
220
|
},
|
|
220
|
-
JewishMonthsEng: function() {
|
|
221
|
+
JewishMonthsEng: function JewishMonthsEng1() {
|
|
221
222
|
return JewishMonthsEng;
|
|
222
223
|
},
|
|
223
|
-
JewishMonthsHeb: function() {
|
|
224
|
+
JewishMonthsHeb: function JewishMonthsHeb1() {
|
|
224
225
|
return JewishMonthsHeb;
|
|
225
226
|
},
|
|
226
|
-
JewishMonthsNames: function() {
|
|
227
|
+
JewishMonthsNames: function JewishMonthsNames1() {
|
|
227
228
|
return JewishMonthsNames;
|
|
228
229
|
},
|
|
229
|
-
Location: function() {
|
|
230
|
+
Location: function Location1() {
|
|
230
231
|
return Location;
|
|
231
232
|
},
|
|
232
|
-
Locations: function() {
|
|
233
|
+
Locations: function Locations1() {
|
|
233
234
|
return Locations;
|
|
234
235
|
},
|
|
235
|
-
Molad: function() {
|
|
236
|
+
Molad: function Molad1() {
|
|
236
237
|
return Molad;
|
|
237
238
|
},
|
|
238
|
-
PirkeiAvos: function() {
|
|
239
|
+
PirkeiAvos: function PirkeiAvos1() {
|
|
239
240
|
return PirkeiAvos;
|
|
240
241
|
},
|
|
241
|
-
SecularMonthsEng: function() {
|
|
242
|
+
SecularMonthsEng: function SecularMonthsEng1() {
|
|
242
243
|
return SecularMonthsEng;
|
|
243
244
|
},
|
|
244
|
-
Sedra: function() {
|
|
245
|
+
Sedra: function Sedra1() {
|
|
245
246
|
return Sedra;
|
|
246
247
|
},
|
|
247
|
-
Utils: function() {
|
|
248
|
+
Utils: function Utils1() {
|
|
248
249
|
return Utils;
|
|
249
250
|
},
|
|
250
|
-
ZmanTypeIds: function() {
|
|
251
|
+
ZmanTypeIds: function ZmanTypeIds1() {
|
|
251
252
|
return ZmanTypeIds;
|
|
252
253
|
},
|
|
253
|
-
ZmanTypes: function() {
|
|
254
|
+
ZmanTypes: function ZmanTypes1() {
|
|
254
255
|
return ZmanTypes;
|
|
255
256
|
},
|
|
256
|
-
Zmanim: function() {
|
|
257
|
+
Zmanim: function Zmanim1() {
|
|
257
258
|
return Zmanim;
|
|
258
259
|
},
|
|
259
|
-
ZmanimUtils: function() {
|
|
260
|
+
ZmanimUtils: function ZmanimUtils1() {
|
|
260
261
|
return ZmanimUtils;
|
|
261
262
|
},
|
|
262
|
-
closestDistanceMatch: function() {
|
|
263
|
+
closestDistanceMatch: function closestDistanceMatch1() {
|
|
263
264
|
return closestDistanceMatch;
|
|
264
265
|
},
|
|
265
|
-
closestNameMatch: function() {
|
|
266
|
+
closestNameMatch: function closestNameMatch1() {
|
|
266
267
|
return closestNameMatch;
|
|
267
268
|
},
|
|
268
|
-
findLocation: function() {
|
|
269
|
+
findLocation: function findLocation1() {
|
|
269
270
|
return findLocation;
|
|
270
271
|
},
|
|
271
|
-
getNotifications: function() {
|
|
272
|
+
getNotifications: function getNotifications1() {
|
|
272
273
|
return getNotifications;
|
|
273
274
|
},
|
|
274
|
-
getZmanType: function() {
|
|
275
|
+
getZmanType: function getZmanType1() {
|
|
275
276
|
return getZmanType;
|
|
276
277
|
},
|
|
277
|
-
jDate: function() {
|
|
278
|
+
jDate: function jDate1() {
|
|
278
279
|
return jDate;
|
|
279
280
|
}
|
|
280
281
|
});
|
|
@@ -301,22 +302,13 @@ var DateUtils = /*#__PURE__*/ function() {
|
|
|
301
302
|
value: /**
|
|
302
303
|
* Add two character suffix to number. e.g. 21st, 102nd, 93rd, 500th
|
|
303
304
|
*/ function toSuffixed(num) {
|
|
304
|
-
var
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
case "2":
|
|
312
|
-
suffix = "nd";
|
|
313
|
-
break;
|
|
314
|
-
case "3":
|
|
315
|
-
suffix = "rd";
|
|
316
|
-
break;
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
return t + suffix;
|
|
305
|
+
var suffixes = [
|
|
306
|
+
"th",
|
|
307
|
+
"st",
|
|
308
|
+
"nd",
|
|
309
|
+
"rd"
|
|
310
|
+
];
|
|
311
|
+
return num.toString() + (suffixes[(num % 100 - 20) % 10] || suffixes[num % 10] || suffixes[0]);
|
|
320
312
|
}
|
|
321
313
|
},
|
|
322
314
|
{
|
|
@@ -738,7 +730,7 @@ var _Zmanim = /*#__PURE__*/ function() {
|
|
|
738
730
|
value: /**
|
|
739
731
|
* @param {Date} date
|
|
740
732
|
*/ function dayOfYear(date) {
|
|
741
|
-
var month = date.getMonth(), isLeap = function() {
|
|
733
|
+
var month = date.getMonth(), isLeap = function isLeap() {
|
|
742
734
|
return DateUtils.isSecularLeapYear(date.getFullYear());
|
|
743
735
|
}, yearDay = [
|
|
744
736
|
0,
|
|
@@ -3612,7 +3604,7 @@ var yearTypeList = [
|
|
|
3612
3604
|
7
|
|
3613
3605
|
];
|
|
3614
3606
|
var elapsedDaysCache = /* @__PURE__ */ new Map();
|
|
3615
|
-
var getElapsedDays = function(year) {
|
|
3607
|
+
var getElapsedDays = function getElapsedDays(year) {
|
|
3616
3608
|
if (elapsedDaysCache.has(year)) return elapsedDaysCache.get(year);
|
|
3617
3609
|
var daysCounter = 0;
|
|
3618
3610
|
var months = DateUtils.toInt(235 * DateUtils.toInt((year - 1) / 19) + // Leap months this cycle
|
|
@@ -13549,7 +13541,7 @@ var _ZmanimUtils = /*#__PURE__*/ function() {
|
|
|
13549
13541
|
}
|
|
13550
13542
|
break;
|
|
13551
13543
|
case ZmanTypeIds.SofZmanEatingChometz:
|
|
13552
|
-
if (shaaZmanisMga && jdate.Month === 1 && jdate.Day === 14
|
|
13544
|
+
if (shaaZmanisMga && jdate.Month === 1 && jdate.Day === 14) {
|
|
13553
13545
|
zmanTimes.push({
|
|
13554
13546
|
zmanType: zmanType,
|
|
13555
13547
|
time: Utils.addMinutes(sunrise, -90 + offset + shaaZmanisMga * 4)
|
|
@@ -13557,7 +13549,7 @@ var _ZmanimUtils = /*#__PURE__*/ function() {
|
|
|
13557
13549
|
}
|
|
13558
13550
|
break;
|
|
13559
13551
|
case ZmanTypeIds.SofZmanBurnChometz:
|
|
13560
|
-
if (shaaZmanisMga && jdate.Month === 1 && (jdate.Day === 14 || jdate.DayOfWeek === DaysOfWeek.FRIDAY && jdate.Day === 13)
|
|
13552
|
+
if (shaaZmanisMga && jdate.Month === 1 && (jdate.Day === 14 && jdate.DayOfWeek !== DaysOfWeek.SHABBOS || jdate.DayOfWeek === DaysOfWeek.FRIDAY && jdate.Day === 13)) {
|
|
13561
13553
|
zmanTimes.push({
|
|
13562
13554
|
zmanType: zmanType,
|
|
13563
13555
|
time: Utils.addMinutes(sunrise, -90 + offset + shaaZmanisMga * 5)
|
|
@@ -13846,9 +13838,28 @@ function getAroundTheYearNotifications() {
|
|
|
13846
13838
|
if (dow !== DaysOfWeek.SHABBOS && day > 15 && day !== 21) {
|
|
13847
13839
|
addTefillahNote("Vesain Bracha", "\u05D5\u05EA\u05DF \u05D1\u05E8\u05DB\u05D4");
|
|
13848
13840
|
}
|
|
13841
|
+
if (!isNightTime && (dow !== DaysOfWeek.THURSDAY && day === 13 || dow === DaysOfWeek.WEDNESDAY && day === 12)) {
|
|
13842
|
+
addDayNote("Bedikas Chometz Tonight", "\u05D1\u05D3\u05D9\u05E7\u05EA \u05D7\u05DE\u05E5 \u05D1\u05E2\u05E8\u05D1");
|
|
13843
|
+
}
|
|
13849
13844
|
if (isNightTime && (dow !== DaysOfWeek.FRIDAY && day === 14 || dow === DaysOfWeek.THURSDAY && day === 13)) {
|
|
13850
13845
|
addDayNote("Bedikas Chometz", "\u05D1\u05D3\u05D9\u05E7\u05EA \u05D7\u05DE\u05E5");
|
|
13851
13846
|
}
|
|
13847
|
+
if (day === 14) {
|
|
13848
|
+
var eatingZman = ZmanimUtils.getZmanTimes([
|
|
13849
|
+
getZmanType(ZmanTypeIds.SofZmanEatingChometz)
|
|
13850
|
+
], sdate, jdate, location)[0];
|
|
13851
|
+
if (eatingZman && eatingZman.time) {
|
|
13852
|
+
addDayNote("Sof Zman Eating Chometz: ".concat(Utils.getTimeString(eatingZman.time)), "סוף זמן אכילת חמץ: ".concat(Utils.getTimeString(eatingZman.time)));
|
|
13853
|
+
}
|
|
13854
|
+
}
|
|
13855
|
+
if (day === 14 && dow !== DaysOfWeek.SHABBOS || day === 13 && dow === DaysOfWeek.FRIDAY) {
|
|
13856
|
+
var burnZman = ZmanimUtils.getZmanTimes([
|
|
13857
|
+
getZmanType(ZmanTypeIds.SofZmanBurnChometz)
|
|
13858
|
+
], sdate, jdate, location)[0];
|
|
13859
|
+
if (burnZman && burnZman.time) {
|
|
13860
|
+
addDayNote("Sof Zman Burn Chometz: ".concat(Utils.getTimeString(burnZman.time)), "סוף זמן ביעור חמץ: ".concat(Utils.getTimeString(burnZman.time)));
|
|
13861
|
+
}
|
|
13862
|
+
}
|
|
13852
13863
|
if (isMorning && dow !== DaysOfWeek.SHABBOS && [
|
|
13853
13864
|
14,
|
|
13854
13865
|
16,
|
|
@@ -14023,9 +14034,9 @@ function getAroundTheYearNotifications() {
|
|
|
14023
14034
|
}
|
|
14024
14035
|
break;
|
|
14025
14036
|
case JewishMonthsNames.TAMUZ:
|
|
14026
|
-
if (
|
|
14037
|
+
if (day === 17 && DaysOfWeek.SHABBOS !== 6 || day === 18 && dow === DaysOfWeek.SUNDAY) {
|
|
14038
|
+
addDayNote("Shiva Asar B`Tamuz", '\u05D9"\u05D6 \u05D1\u05EA\u05DE\u05D5\u05D6');
|
|
14027
14039
|
if (isDaytime) {
|
|
14028
|
-
addDayNote("Shiva Asar B`Tamuz", '\u05D9"\u05D6 \u05D1\u05EA\u05DE\u05D5\u05D6');
|
|
14029
14040
|
addTefillahNote("Avinu Malkeinu", "\u05D0\u05D1\u05D9\u05E0\u05D5 \u05DE\u05DC\u05DB\u05E0\u05D5");
|
|
14030
14041
|
addTefillahNote("Aneinu", "\u05E2\u05E0\u05E0\u05D5");
|
|
14031
14042
|
}
|
|
@@ -14039,8 +14050,8 @@ function getAroundTheYearNotifications() {
|
|
|
14039
14050
|
dayInfo.noTachnun = true;
|
|
14040
14051
|
} else if (day === 9 && dow !== DaysOfWeek.SHABBOS || day === 10 && dow === DaysOfWeek.SUNDAY) {
|
|
14041
14052
|
addDayNote("Tish B`Av", "\u05EA\u05E9\u05E2\u05D4 \u05D1\u05D0\u05D1");
|
|
14053
|
+
addTefillahNote("Kinos", "\u05E7\u05D9\u05E0\u05D5\u05EA");
|
|
14042
14054
|
if (isDaytime) {
|
|
14043
|
-
addTefillahNote("Kinos", "\u05E7\u05D9\u05E0\u05D5\u05EA");
|
|
14044
14055
|
addTefillahNote("Aneinu", "\u05E2\u05E0\u05E0\u05D5");
|
|
14045
14056
|
if (isMorning && dow !== DaysOfWeek.SHABBOS) {
|
|
14046
14057
|
noLaminatzeach();
|
|
@@ -14131,8 +14142,8 @@ function getAroundTheYearNotifications() {
|
|
|
14131
14142
|
break;
|
|
14132
14143
|
case 3:
|
|
14133
14144
|
if (dow !== DaysOfWeek.SHABBOS) {
|
|
14145
|
+
addDayNote("Fast of Tzom Gedalya", "\u05E6\u05D5\u05DD \u05D2\u05D3\u05DC\u05D9\u05D4");
|
|
14134
14146
|
if (isDaytime) {
|
|
14135
|
-
addDayNote("Fast of Tzom Gedalya", "\u05E6\u05D5\u05DD \u05D2\u05D3\u05DC\u05D9\u05D4");
|
|
14136
14147
|
addTefillahNote("Aneinu", "\u05E2\u05E0\u05E0\u05D5");
|
|
14137
14148
|
}
|
|
14138
14149
|
if (isAfterChatzosHalayla || isMorning) {
|
|
@@ -14143,8 +14154,8 @@ function getAroundTheYearNotifications() {
|
|
|
14143
14154
|
break;
|
|
14144
14155
|
case 4:
|
|
14145
14156
|
if (dow === DaysOfWeek.SUNDAY) {
|
|
14157
|
+
addDayNote("Fast of Tzom Gedalya", "\u05E6\u05D5\u05DD \u05D2\u05D3\u05DC\u05D9\u05D4");
|
|
14146
14158
|
if (isDaytime) {
|
|
14147
|
-
addDayNote("Fast of Tzom Gedalya", "\u05E6\u05D5\u05DD \u05D2\u05D3\u05DC\u05D9\u05D4");
|
|
14148
14159
|
addTefillahNote("Aneinu", "\u05E2\u05E0\u05E0\u05D5");
|
|
14149
14160
|
}
|
|
14150
14161
|
if (isAfterChatzosHalayla || isMorning) {
|
|
@@ -14390,13 +14401,15 @@ function getAroundTheYearNotifications() {
|
|
|
14390
14401
|
}
|
|
14391
14402
|
}
|
|
14392
14403
|
}
|
|
14393
|
-
} else if (day === 10
|
|
14404
|
+
} else if (day === 10) {
|
|
14394
14405
|
addDayNote("Fast of Asara B`Teves", "\u05E2\u05E9\u05E8\u05D4 \u05D1\u05D8\u05D1\u05EA");
|
|
14395
14406
|
if (isMorning) {
|
|
14396
14407
|
addTefillahNote("Selichos", "\u05E1\u05DC\u05D9\u05D7\u05D5\u05EA");
|
|
14397
14408
|
}
|
|
14398
|
-
|
|
14399
|
-
|
|
14409
|
+
if (isDaytime) {
|
|
14410
|
+
addTefillahNote("Avinu Malkeinu", "\u05D0\u05D1\u05D9\u05E0\u05D5 \u05DE\u05DC\u05DB\u05E0\u05D5");
|
|
14411
|
+
addTefillahNote("Aneinu", "\u05E2\u05E0\u05E0\u05D5");
|
|
14412
|
+
}
|
|
14400
14413
|
}
|
|
14401
14414
|
break;
|
|
14402
14415
|
case JewishMonthsNames.SHVAT:
|
|
@@ -14424,12 +14437,14 @@ function getAroundTheYearNotifications() {
|
|
|
14424
14437
|
}
|
|
14425
14438
|
} else {
|
|
14426
14439
|
if (isDaytime && (day === 11 && dow === DaysOfWeek.THURSDAY || day === 13 && dow !== DaysOfWeek.SHABBOS)) {
|
|
14440
|
+
addDayNote("Fast of Ta`anis Esther", "\u05EA\u05E2\u05E0\u05D9\u05EA \u05D0\u05E1\u05EA\u05E8");
|
|
14427
14441
|
if (isMorning) {
|
|
14428
|
-
addDayNote("Fast of Ta`anis Esther", "\u05EA\u05E2\u05E0\u05D9\u05EA \u05D0\u05E1\u05EA\u05E8");
|
|
14429
14442
|
addTefillahNote("Selichos", "\u05E1\u05DC\u05D9\u05D7\u05D5\u05EA");
|
|
14430
14443
|
}
|
|
14431
|
-
|
|
14432
|
-
|
|
14444
|
+
if (isDaytime) {
|
|
14445
|
+
addTefillahNote("Avinu Malkeinu", "\u05D0\u05D1\u05D9\u05E0\u05D5 \u05DE\u05DC\u05DB\u05E0\u05D5");
|
|
14446
|
+
addTefillahNote("Aneinu", "\u05E2\u05E0\u05E0\u05D5");
|
|
14447
|
+
}
|
|
14433
14448
|
} else {
|
|
14434
14449
|
var isYerushalayim = location.Name === "Jerusalem" || location.NameHebrew === "\u05D9\u05E8\u05D5\u05E9\u05DC\u05D9\u05DD";
|
|
14435
14450
|
if (day === 14) {
|