UNPKG

768 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3class SasihDayInfo {
4 constructor(id, refId, name) {
5 this.id = id;
6 this.refId = refId;
7 this.name = name;
8 Object.freeze(this);
9 }
10 static get values() { return _C_VAL; }
11 static get PENANGGAL() { return _C_VAL[0]; }
12 static get PANGELONG() { return _C_VAL[1]; }
13 static get PURNAMA() { return _C_VAL[2]; }
14 static get TILEM() { return _C_VAL[3]; }
15 get reference() { return _C_VAL[this.refId]; }
16}
17exports.SasihDayInfo = SasihDayInfo;
18const _C_VAL = [
19 new SasihDayInfo(0, 0, "Penanggal"),
20 new SasihDayInfo(1, 1, "Pangelong"),
21 new SasihDayInfo(2, 0, "Purnama"),
22 new SasihDayInfo(3, 1, "Tilem"),
23];
24Object.freeze(_C_VAL);