@twreporter/core 1.22.1 → 1.23.0

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.
@@ -4,23 +4,17 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports["default"] = exports.SUBCATEGORY_PATH = exports.SUBCATEGORY_LABEL = exports.SUBCATEGORY_ID = exports.GET_SUBCATEGORY_PATH_FROM_ID = exports.GET_CATEGORY_PATH_FROM_ID = exports.CATEGORY_SET = exports.CATEGORY_PATH = exports.CATEGORY_ORDER = exports.CATEGORY_LABEL = exports.CATEGORY_ID = void 0;
7
-
8
7
  var _CATEGORY_LABEL, _CATEGORY_ID, _SUBCATEGORY_LABEL, _SUBCATEGORY_ID, _CATEGORY_SET;
9
-
8
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
10
9
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
11
-
12
10
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
13
-
14
11
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
15
-
16
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
17
-
18
- function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
19
-
12
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
13
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
20
14
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
21
-
22
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
23
-
15
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
16
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
17
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
24
18
  var categoryPath = {
25
19
  world: 'world',
26
20
  humanrights: 'humanrights',
@@ -35,30 +29,24 @@ var categoryPath = {
35
29
  photography: 'photography',
36
30
  foundation: 'foundation'
37
31
  };
38
- var CATEGORY_PATH = Object.freeze(categoryPath);
39
- exports.CATEGORY_PATH = CATEGORY_PATH;
40
- var CATEGORY_ORDER = [categoryPath.world, categoryPath.humanrights, categoryPath.politicsAndSociety, categoryPath.health, categoryPath.environment, categoryPath.econ, categoryPath.culture, categoryPath.education];
41
- exports.CATEGORY_ORDER = CATEGORY_ORDER;
42
- var CATEGORY_LABEL = (_CATEGORY_LABEL = {}, _defineProperty(_CATEGORY_LABEL, categoryPath.world, '國際兩岸'), _defineProperty(_CATEGORY_LABEL, categoryPath.humanrights, '人權司法'), _defineProperty(_CATEGORY_LABEL, categoryPath.politicsAndSociety, '政治社會'), _defineProperty(_CATEGORY_LABEL, categoryPath.health, '醫療健康'), _defineProperty(_CATEGORY_LABEL, categoryPath.environment, '環境永續'), _defineProperty(_CATEGORY_LABEL, categoryPath.econ, '經濟產業'), _defineProperty(_CATEGORY_LABEL, categoryPath.culture, '文化生活'), _defineProperty(_CATEGORY_LABEL, categoryPath.education, '教育校園'), _defineProperty(_CATEGORY_LABEL, categoryPath.podcast, 'Podcast'), _defineProperty(_CATEGORY_LABEL, categoryPath.opinion, '評論'), _defineProperty(_CATEGORY_LABEL, categoryPath.photography, '影像'), _defineProperty(_CATEGORY_LABEL, categoryPath.foundation, '基金會消息'), _CATEGORY_LABEL); // todo: update id when db ready
32
+ var CATEGORY_PATH = exports.CATEGORY_PATH = Object.freeze(categoryPath);
33
+ var CATEGORY_ORDER = exports.CATEGORY_ORDER = [categoryPath.world, categoryPath.humanrights, categoryPath.politicsAndSociety, categoryPath.health, categoryPath.environment, categoryPath.econ, categoryPath.culture, categoryPath.education];
34
+ var CATEGORY_LABEL = exports.CATEGORY_LABEL = (_CATEGORY_LABEL = {}, _defineProperty(_CATEGORY_LABEL, categoryPath.world, '國際兩岸'), _defineProperty(_CATEGORY_LABEL, categoryPath.humanrights, '人權司法'), _defineProperty(_CATEGORY_LABEL, categoryPath.politicsAndSociety, '政治社會'), _defineProperty(_CATEGORY_LABEL, categoryPath.health, '醫療健康'), _defineProperty(_CATEGORY_LABEL, categoryPath.environment, '環境永續'), _defineProperty(_CATEGORY_LABEL, categoryPath.econ, '經濟產業'), _defineProperty(_CATEGORY_LABEL, categoryPath.culture, '文化生活'), _defineProperty(_CATEGORY_LABEL, categoryPath.education, '教育校園'), _defineProperty(_CATEGORY_LABEL, categoryPath.podcast, 'Podcast'), _defineProperty(_CATEGORY_LABEL, categoryPath.opinion, '評論'), _defineProperty(_CATEGORY_LABEL, categoryPath.photography, '影像'), _defineProperty(_CATEGORY_LABEL, categoryPath.foundation, '基金會消息'), _CATEGORY_LABEL);
43
35
 
44
- exports.CATEGORY_LABEL = CATEGORY_LABEL;
45
- var CATEGORY_ID = (_CATEGORY_ID = {}, _defineProperty(_CATEGORY_ID, categoryPath.world, '63206383207bf7c5f871622c'), _defineProperty(_CATEGORY_ID, categoryPath.humanrights, '63206383207bf7c5f8716234'), _defineProperty(_CATEGORY_ID, categoryPath.politicsAndSociety, '63206383207bf7c5f871623d'), _defineProperty(_CATEGORY_ID, categoryPath.health, '63206383207bf7c5f8716245'), _defineProperty(_CATEGORY_ID, categoryPath.environment, '63206383207bf7c5f871624d'), _defineProperty(_CATEGORY_ID, categoryPath.econ, '63206383207bf7c5f8716254'), _defineProperty(_CATEGORY_ID, categoryPath.culture, '63206383207bf7c5f8716259'), _defineProperty(_CATEGORY_ID, categoryPath.education, '63206383207bf7c5f8716260'), _defineProperty(_CATEGORY_ID, categoryPath.podcast, '63206383207bf7c5f8716266'), _defineProperty(_CATEGORY_ID, categoryPath.opinion, '63206383207bf7c5f8716269'), _defineProperty(_CATEGORY_ID, categoryPath.photography, '574d028748fa171000c45d48'), _defineProperty(_CATEGORY_ID, categoryPath.foundation, '656ecd09822294615dce5ad3'), _CATEGORY_ID); // flip CATEGORY_ID to a {id: path} object
36
+ // todo: update id when db ready
37
+ var CATEGORY_ID = exports.CATEGORY_ID = (_CATEGORY_ID = {}, _defineProperty(_CATEGORY_ID, categoryPath.world, '63206383207bf7c5f871622c'), _defineProperty(_CATEGORY_ID, categoryPath.humanrights, '63206383207bf7c5f8716234'), _defineProperty(_CATEGORY_ID, categoryPath.politicsAndSociety, '63206383207bf7c5f871623d'), _defineProperty(_CATEGORY_ID, categoryPath.health, '63206383207bf7c5f8716245'), _defineProperty(_CATEGORY_ID, categoryPath.environment, '63206383207bf7c5f871624d'), _defineProperty(_CATEGORY_ID, categoryPath.econ, '63206383207bf7c5f8716254'), _defineProperty(_CATEGORY_ID, categoryPath.culture, '63206383207bf7c5f8716259'), _defineProperty(_CATEGORY_ID, categoryPath.education, '63206383207bf7c5f8716260'), _defineProperty(_CATEGORY_ID, categoryPath.podcast, '63206383207bf7c5f8716266'), _defineProperty(_CATEGORY_ID, categoryPath.opinion, '63206383207bf7c5f8716269'), _defineProperty(_CATEGORY_ID, categoryPath.photography, '574d028748fa171000c45d48'), _defineProperty(_CATEGORY_ID, categoryPath.foundation, '656ecd09822294615dce5ad3'), _CATEGORY_ID);
46
38
 
47
- exports.CATEGORY_ID = CATEGORY_ID;
39
+ // flip CATEGORY_ID to a {id: path} object
48
40
  var categoryIDToPath = {};
49
41
  Object.entries(CATEGORY_ID).forEach(function (_ref) {
50
42
  var _ref2 = _slicedToArray(_ref, 2),
51
- key = _ref2[0],
52
- value = _ref2[1];
53
-
43
+ key = _ref2[0],
44
+ value = _ref2[1];
54
45
  categoryIDToPath[value] = key;
55
46
  });
56
-
57
- var GET_CATEGORY_PATH_FROM_ID = function GET_CATEGORY_PATH_FROM_ID(id) {
47
+ var GET_CATEGORY_PATH_FROM_ID = exports.GET_CATEGORY_PATH_FROM_ID = function GET_CATEGORY_PATH_FROM_ID(id) {
58
48
  return categoryIDToPath[id];
59
49
  };
60
-
61
- exports.GET_CATEGORY_PATH_FROM_ID = GET_CATEGORY_PATH_FROM_ID;
62
50
  var subcategoryPath = {
63
51
  all: 'all',
64
52
  hk: 'hk',
@@ -120,36 +108,28 @@ var subcategoryPath = {
120
108
  award: 'award',
121
109
  cooperation: 'cooperation'
122
110
  };
123
- var SUBCATEGORY_PATH = Object.freeze(subcategoryPath);
124
- exports.SUBCATEGORY_PATH = SUBCATEGORY_PATH;
125
- var SUBCATEGORY_LABEL = (_SUBCATEGORY_LABEL = {}, _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.all, '全部'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.hk, '香港'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.china, '中國'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.us, '美國'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.jpAndKr, '日韓'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.indoPacific, '東南亞與印太'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.europe, '歐洲'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.others, '其他'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.gender, '性別'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.labor, '勞動'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.immigrant, '移工與移民'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.housingJustice, '居住正義'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.transformationalJustice, '轉型正義'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.socialAdministration, '社政安置'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.justice, '獄政司法'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.digital, '數位人權'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.election, '選舉'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.politicalPartyAndLocalFaction, '政黨與地方政治'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.policy, '政策'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.transportation, '交通'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.foodSafety, '食安'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.informationWarfare, '資訊戰'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.socialwatch, '社會觀察'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.pandemic, '疫情'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.healthPolicy, '醫療政策'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.biotech, '生物科技'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.patientAutonomy, '病人自主權利'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.psychology, '心理'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.longTermCare, '長照'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.publicHealth, '公共衛生'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.cicularEconomy, '循環經濟'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.ocean, '海洋'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.mountainAndForest, '山林'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.animal, '動物'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.climateChange, '能源與氣候變遷'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.pollution, '環境污染'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.naturalDisaster, '自然災害'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.economy, '經濟'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.energyEcon, '能源'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.agriculture, '農林漁牧'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.technology, '科技'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.peAndSports, '體育'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.movie, '電影'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.publishing, '出版'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.music, '音樂'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.dramaAndTheatre, '戲劇'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.art, '藝術'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.scientificResearch, '科學研究'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.higherEducation, '高等教育'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.teens, '青少年'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.parenting, '育兒'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.lowBirthRate, '少子化'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.theRealStory, 'The Real Story'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.onTheGround, 'On the Ground 路邊攤計畫'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.bookReview, '書摘與書評'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.letter, '讀者投書'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.milestone, '營運紀事'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.award, '得獎肯定'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.cooperation, '公益合作'), _SUBCATEGORY_LABEL);
126
- exports.SUBCATEGORY_LABEL = SUBCATEGORY_LABEL;
127
- var SUBCATEGORY_ID = (_SUBCATEGORY_ID = {}, _defineProperty(_SUBCATEGORY_ID, subcategoryPath.all, ''), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.hk, '63206383207bf7c5f871622d'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.china, '63206383207bf7c5f871622e'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.us, '63206383207bf7c5f871622f'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.jpAndKr, '63206383207bf7c5f8716230'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.indoPacific, '63206383207bf7c5f8716231'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.europe, '63206383207bf7c5f8716232'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.others, '63206383207bf7c5f8716233'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.gender, '63206383207bf7c5f8716235'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.labor, '63206383207bf7c5f8716236'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.immigrant, '63206383207bf7c5f8716237'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.housingJustice, '63206383207bf7c5f8716238'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.transformationalJustice, '63206383207bf7c5f8716239'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.socialAdministration, '63206383207bf7c5f871623a'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.justice, '63206383207bf7c5f871623b'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.digital, '63206383207bf7c5f871623c'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.election, '63206383207bf7c5f871623e'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.politicalPartyAndLocalFaction, '63206383207bf7c5f871623f'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.policy, '63206383207bf7c5f8716240'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.transportation, '63206383207bf7c5f8716241'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.foodSafety, '63206383207bf7c5f8716242'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.informationWarfare, '63206383207bf7c5f8716243'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.socialwatch, '63206383207bf7c5f8716244'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.pandemic, '63206383207bf7c5f8716246'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.healthPolicy, '63206383207bf7c5f8716247'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.biotech, '63206383207bf7c5f8716248'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.patientAutonomy, '63206383207bf7c5f8716249'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.psychology, '63206383207bf7c5f871624a'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.longTermCare, '63206383207bf7c5f871624b'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.publicHealth, '63206383207bf7c5f871624c'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.cicularEconomy, '63206383207bf7c5f871624e'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.ocean, '63206383207bf7c5f871624f'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.mountainAndForest, '63206383207bf7c5f8716250'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.animal, '63206383207bf7c5f8716251'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.climateChange, '633407174a9cab5ac7a90738'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.pollution, '63206383207bf7c5f8716252'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.naturalDisaster, '63206383207bf7c5f8716253'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.economy, '63206383207bf7c5f8716255'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.energyEcon, '63206383207bf7c5f8716256'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.agriculture, '63206383207bf7c5f8716257'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.technology, '63206383207bf7c5f8716258'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.peAndSports, '63206383207bf7c5f871625a'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.movie, '63206383207bf7c5f871625b'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.publishing, '63206383207bf7c5f871625c'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.music, '63206383207bf7c5f871625d'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.dramaAndTheatre, '63206383207bf7c5f871625e'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.art, '63206383207bf7c5f871625f'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.scientificResearch, '63206383207bf7c5f8716261'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.higherEducation, '63206383207bf7c5f8716262'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.teens, '63206383207bf7c5f8716263'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.parenting, '63206383207bf7c5f8716264'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.lowBirthRate, '63206383207bf7c5f8716265'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.theRealStory, '63206383207bf7c5f8716267'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.onTheGround, '63206383207bf7c5f8716268'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.bookReview, '63206383207bf7c5f871626a'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.letter, '63206383207bf7c5f871626b'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.milestone, '656ecd09822294615dce5ad4'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.award, '656ecd09822294615dce5ad5'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.cooperation, '656ecd09822294615dce5ad6'), _SUBCATEGORY_ID); // flip SUBCATEGORY_ID to a {id: path} object
111
+ var SUBCATEGORY_PATH = exports.SUBCATEGORY_PATH = Object.freeze(subcategoryPath);
112
+ var SUBCATEGORY_LABEL = exports.SUBCATEGORY_LABEL = (_SUBCATEGORY_LABEL = {}, _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.all, '全部'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.hk, '香港'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.china, '中國'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.us, '美國'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.jpAndKr, '日韓'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.indoPacific, '東南亞與印太'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.europe, '歐洲'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.others, '其他'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.gender, '性別'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.labor, '勞動'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.immigrant, '移工與移民'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.housingJustice, '居住正義'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.transformationalJustice, '轉型正義'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.socialAdministration, '社政安置'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.justice, '獄政司法'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.digital, '數位人權'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.election, '選舉'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.politicalPartyAndLocalFaction, '政黨與地方政治'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.policy, '政策'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.transportation, '交通'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.foodSafety, '食安'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.informationWarfare, '資訊戰'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.socialwatch, '社會觀察'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.pandemic, '疫情'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.healthPolicy, '醫療政策'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.biotech, '生物科技'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.patientAutonomy, '病人自主權利'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.psychology, '心理'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.longTermCare, '長照'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.publicHealth, '公共衛生'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.cicularEconomy, '循環經濟'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.ocean, '海洋'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.mountainAndForest, '山林'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.animal, '動物'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.climateChange, '能源與氣候變遷'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.pollution, '環境污染'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.naturalDisaster, '自然災害'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.economy, '經濟'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.energyEcon, '能源'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.agriculture, '農林漁牧'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.technology, '科技'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.peAndSports, '體育'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.movie, '電影'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.publishing, '出版'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.music, '音樂'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.dramaAndTheatre, '戲劇'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.art, '藝術'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.scientificResearch, '科學研究'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.higherEducation, '高等教育'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.teens, '青少年'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.parenting, '育兒'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.lowBirthRate, '少子化'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.theRealStory, 'The Real Story'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.onTheGround, 'On the Ground 路邊攤計畫'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.bookReview, '書摘與書評'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.letter, '讀者投書'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.milestone, '營運紀事'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.award, '得獎肯定'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.cooperation, '公益合作'), _SUBCATEGORY_LABEL);
113
+ var SUBCATEGORY_ID = exports.SUBCATEGORY_ID = (_SUBCATEGORY_ID = {}, _defineProperty(_SUBCATEGORY_ID, subcategoryPath.all, ''), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.hk, '63206383207bf7c5f871622d'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.china, '63206383207bf7c5f871622e'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.us, '63206383207bf7c5f871622f'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.jpAndKr, '63206383207bf7c5f8716230'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.indoPacific, '63206383207bf7c5f8716231'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.europe, '63206383207bf7c5f8716232'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.others, '63206383207bf7c5f8716233'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.gender, '63206383207bf7c5f8716235'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.labor, '63206383207bf7c5f8716236'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.immigrant, '63206383207bf7c5f8716237'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.housingJustice, '63206383207bf7c5f8716238'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.transformationalJustice, '63206383207bf7c5f8716239'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.socialAdministration, '63206383207bf7c5f871623a'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.justice, '63206383207bf7c5f871623b'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.digital, '63206383207bf7c5f871623c'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.election, '63206383207bf7c5f871623e'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.politicalPartyAndLocalFaction, '63206383207bf7c5f871623f'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.policy, '63206383207bf7c5f8716240'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.transportation, '63206383207bf7c5f8716241'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.foodSafety, '63206383207bf7c5f8716242'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.informationWarfare, '63206383207bf7c5f8716243'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.socialwatch, '63206383207bf7c5f8716244'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.pandemic, '63206383207bf7c5f8716246'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.healthPolicy, '63206383207bf7c5f8716247'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.biotech, '63206383207bf7c5f8716248'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.patientAutonomy, '63206383207bf7c5f8716249'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.psychology, '63206383207bf7c5f871624a'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.longTermCare, '63206383207bf7c5f871624b'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.publicHealth, '63206383207bf7c5f871624c'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.cicularEconomy, '63206383207bf7c5f871624e'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.ocean, '63206383207bf7c5f871624f'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.mountainAndForest, '63206383207bf7c5f8716250'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.animal, '63206383207bf7c5f8716251'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.climateChange, '633407174a9cab5ac7a90738'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.pollution, '63206383207bf7c5f8716252'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.naturalDisaster, '63206383207bf7c5f8716253'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.economy, '63206383207bf7c5f8716255'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.energyEcon, '63206383207bf7c5f8716256'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.agriculture, '63206383207bf7c5f8716257'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.technology, '63206383207bf7c5f8716258'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.peAndSports, '63206383207bf7c5f871625a'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.movie, '63206383207bf7c5f871625b'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.publishing, '63206383207bf7c5f871625c'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.music, '63206383207bf7c5f871625d'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.dramaAndTheatre, '63206383207bf7c5f871625e'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.art, '63206383207bf7c5f871625f'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.scientificResearch, '63206383207bf7c5f8716261'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.higherEducation, '63206383207bf7c5f8716262'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.teens, '63206383207bf7c5f8716263'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.parenting, '63206383207bf7c5f8716264'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.lowBirthRate, '63206383207bf7c5f8716265'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.theRealStory, '63206383207bf7c5f8716267'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.onTheGround, '63206383207bf7c5f8716268'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.bookReview, '63206383207bf7c5f871626a'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.letter, '63206383207bf7c5f871626b'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.milestone, '656ecd09822294615dce5ad4'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.award, '656ecd09822294615dce5ad5'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.cooperation, '656ecd09822294615dce5ad6'), _SUBCATEGORY_ID);
128
114
 
129
- exports.SUBCATEGORY_ID = SUBCATEGORY_ID;
115
+ // flip SUBCATEGORY_ID to a {id: path} object
130
116
  var subcategoryIDToPath = {};
131
117
  Object.entries(SUBCATEGORY_ID).filter(function (_ref3) {
132
118
  var _ref4 = _slicedToArray(_ref3, 2),
133
- key = _ref4[0],
134
- value = _ref4[1];
135
-
119
+ key = _ref4[0],
120
+ value = _ref4[1];
136
121
  return key !== subcategoryPath.all;
137
122
  }).forEach(function (_ref5) {
138
123
  var _ref6 = _slicedToArray(_ref5, 2),
139
- key = _ref6[0],
140
- value = _ref6[1];
141
-
124
+ key = _ref6[0],
125
+ value = _ref6[1];
142
126
  subcategoryIDToPath[value] = key;
143
127
  });
144
-
145
- var GET_SUBCATEGORY_PATH_FROM_ID = function GET_SUBCATEGORY_PATH_FROM_ID(id) {
128
+ var GET_SUBCATEGORY_PATH_FROM_ID = exports.GET_SUBCATEGORY_PATH_FROM_ID = function GET_SUBCATEGORY_PATH_FROM_ID(id) {
146
129
  return subcategoryIDToPath[id];
147
130
  };
148
-
149
- exports.GET_SUBCATEGORY_PATH_FROM_ID = GET_SUBCATEGORY_PATH_FROM_ID;
150
- var CATEGORY_SET = (_CATEGORY_SET = {}, _defineProperty(_CATEGORY_SET, categoryPath.world, [subcategoryPath.all, subcategoryPath.hk, subcategoryPath.china, subcategoryPath.us, subcategoryPath.jpAndKr, subcategoryPath.indoPacific, subcategoryPath.europe, subcategoryPath.others]), _defineProperty(_CATEGORY_SET, categoryPath.humanrights, [subcategoryPath.all, subcategoryPath.gender, subcategoryPath.labor, subcategoryPath.immigrant, subcategoryPath.housingJustice, subcategoryPath.transformationalJustice, subcategoryPath.socialAdministration, subcategoryPath.justice, subcategoryPath.digital]), _defineProperty(_CATEGORY_SET, categoryPath.politicsAndSociety, [subcategoryPath.all, subcategoryPath.election, subcategoryPath.politicalPartyAndLocalFaction, subcategoryPath.policy, subcategoryPath.transportation, subcategoryPath.foodSafety, subcategoryPath.informationWarfare, subcategoryPath.socialwatch]), _defineProperty(_CATEGORY_SET, categoryPath.health, [subcategoryPath.all, subcategoryPath.pandemic, subcategoryPath.healthPolicy, subcategoryPath.biotech, subcategoryPath.patientAutonomy, subcategoryPath.psychology, subcategoryPath.longTermCare, subcategoryPath.publicHealth]), _defineProperty(_CATEGORY_SET, categoryPath.environment, [subcategoryPath.all, subcategoryPath.ocean, subcategoryPath.mountainAndForest, subcategoryPath.animal, subcategoryPath.climateChange, subcategoryPath.cicularEconomy, subcategoryPath.pollution, subcategoryPath.naturalDisaster]), _defineProperty(_CATEGORY_SET, categoryPath.econ, [subcategoryPath.all, subcategoryPath.economy, subcategoryPath.energyEcon, subcategoryPath.agriculture, subcategoryPath.technology]), _defineProperty(_CATEGORY_SET, categoryPath.culture, [subcategoryPath.all, subcategoryPath.peAndSports, subcategoryPath.movie, subcategoryPath.publishing, subcategoryPath.music, subcategoryPath.dramaAndTheatre, subcategoryPath.art]), _defineProperty(_CATEGORY_SET, categoryPath.education, [subcategoryPath.all, subcategoryPath.scientificResearch, subcategoryPath.higherEducation, subcategoryPath.teens, subcategoryPath.parenting, subcategoryPath.lowBirthRate]), _defineProperty(_CATEGORY_SET, categoryPath.podcast, [subcategoryPath.all, subcategoryPath.theRealStory, subcategoryPath.onTheGround]), _defineProperty(_CATEGORY_SET, categoryPath.opinion, [subcategoryPath.all, subcategoryPath.bookReview, subcategoryPath.letter]), _defineProperty(_CATEGORY_SET, categoryPath.foundation, [subcategoryPath.all, subcategoryPath.milestone, subcategoryPath.award, subcategoryPath.cooperation]), _CATEGORY_SET);
151
- exports.CATEGORY_SET = CATEGORY_SET;
152
- var _default = {
131
+ var CATEGORY_SET = exports.CATEGORY_SET = (_CATEGORY_SET = {}, _defineProperty(_CATEGORY_SET, categoryPath.world, [subcategoryPath.all, subcategoryPath.hk, subcategoryPath.china, subcategoryPath.us, subcategoryPath.jpAndKr, subcategoryPath.indoPacific, subcategoryPath.europe, subcategoryPath.others]), _defineProperty(_CATEGORY_SET, categoryPath.humanrights, [subcategoryPath.all, subcategoryPath.gender, subcategoryPath.labor, subcategoryPath.immigrant, subcategoryPath.housingJustice, subcategoryPath.transformationalJustice, subcategoryPath.socialAdministration, subcategoryPath.justice, subcategoryPath.digital]), _defineProperty(_CATEGORY_SET, categoryPath.politicsAndSociety, [subcategoryPath.all, subcategoryPath.election, subcategoryPath.politicalPartyAndLocalFaction, subcategoryPath.policy, subcategoryPath.transportation, subcategoryPath.foodSafety, subcategoryPath.informationWarfare, subcategoryPath.socialwatch]), _defineProperty(_CATEGORY_SET, categoryPath.health, [subcategoryPath.all, subcategoryPath.pandemic, subcategoryPath.healthPolicy, subcategoryPath.biotech, subcategoryPath.patientAutonomy, subcategoryPath.psychology, subcategoryPath.longTermCare, subcategoryPath.publicHealth]), _defineProperty(_CATEGORY_SET, categoryPath.environment, [subcategoryPath.all, subcategoryPath.ocean, subcategoryPath.mountainAndForest, subcategoryPath.animal, subcategoryPath.climateChange, subcategoryPath.cicularEconomy, subcategoryPath.pollution, subcategoryPath.naturalDisaster]), _defineProperty(_CATEGORY_SET, categoryPath.econ, [subcategoryPath.all, subcategoryPath.economy, subcategoryPath.energyEcon, subcategoryPath.agriculture, subcategoryPath.technology]), _defineProperty(_CATEGORY_SET, categoryPath.culture, [subcategoryPath.all, subcategoryPath.peAndSports, subcategoryPath.movie, subcategoryPath.publishing, subcategoryPath.music, subcategoryPath.dramaAndTheatre, subcategoryPath.art]), _defineProperty(_CATEGORY_SET, categoryPath.education, [subcategoryPath.all, subcategoryPath.scientificResearch, subcategoryPath.higherEducation, subcategoryPath.teens, subcategoryPath.parenting, subcategoryPath.lowBirthRate]), _defineProperty(_CATEGORY_SET, categoryPath.podcast, [subcategoryPath.all, subcategoryPath.theRealStory, subcategoryPath.onTheGround]), _defineProperty(_CATEGORY_SET, categoryPath.opinion, [subcategoryPath.all, subcategoryPath.bookReview, subcategoryPath.letter]), _defineProperty(_CATEGORY_SET, categoryPath.foundation, [subcategoryPath.all, subcategoryPath.milestone, subcategoryPath.award, subcategoryPath.cooperation]), _CATEGORY_SET);
132
+ var _default = exports["default"] = {
153
133
  CATEGORY_PATH: CATEGORY_PATH,
154
134
  CATEGORY_ORDER: CATEGORY_ORDER,
155
135
  CATEGORY_LABEL: CATEGORY_LABEL,
@@ -159,5 +139,4 @@ var _default = {
159
139
  SUBCATEGORY_LABEL: SUBCATEGORY_LABEL,
160
140
  SUBCATEGORY_ID: SUBCATEGORY_ID,
161
141
  CATEGORY_SET: CATEGORY_SET
162
- };
163
- exports["default"] = _default;
142
+ };
@@ -5,43 +5,43 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = exports.colorSupportive = exports.colorPodcast = exports.colorPhoto = exports.colorOpacity = exports.colorGrayscale = exports.colorBrand = exports.COLOR_SEMANTIC = exports.COLOR_PINK_ARTICLE = void 0;
7
7
  // brand: red
8
- var colorBrand = Object.freeze({
8
+ var colorBrand = exports.colorBrand = Object.freeze({
9
9
  faded: '#f4c6c6',
10
10
  pastel: '#f76977',
11
11
  main: '#f80b28',
12
12
  heavy: '#c40d23',
13
13
  dark: '#9b051e'
14
- }); // photography: blue
14
+ });
15
15
 
16
- exports.colorBrand = colorBrand;
17
- var colorPhoto = Object.freeze({
16
+ // photography: blue
17
+ var colorPhoto = exports.colorPhoto = Object.freeze({
18
18
  faded: '#abdef4',
19
19
  pastel: '#6d9be0',
20
20
  main: '#2f58cc',
21
21
  heavy: '#143071',
22
22
  dark: '#052142'
23
- }); // podcast: green
23
+ });
24
24
 
25
- exports.colorPhoto = colorPhoto;
26
- var colorPodcast = Object.freeze({
25
+ // podcast: green
26
+ var colorPodcast = exports.colorPodcast = Object.freeze({
27
27
  faded: '#c4f2dc',
28
28
  pastel: '#99ecc9',
29
29
  main: '#6ee5b5',
30
30
  heavy: '#3c927a',
31
31
  dark: '#0e3532'
32
- }); // supportive: brown
32
+ });
33
33
 
34
- exports.colorPodcast = colorPodcast;
35
- var colorSupportive = Object.freeze({
34
+ // supportive: brown
35
+ var colorSupportive = exports.colorSupportive = Object.freeze({
36
36
  faded: '#f0d5be',
37
37
  pastel: '#e3be98',
38
38
  main: '#c09662',
39
39
  heavy: '#9f7544',
40
40
  dark: '#7a522c'
41
- }); // neutral: grayscale
41
+ });
42
42
 
43
- exports.colorSupportive = colorSupportive;
44
- var colorGrayscale = Object.freeze({
43
+ // neutral: grayscale
44
+ var colorGrayscale = exports.colorGrayscale = Object.freeze({
45
45
  white: '#ffffff',
46
46
  gray100: '#f1f1f1',
47
47
  gray200: '#e2e2e2',
@@ -54,8 +54,7 @@ var colorGrayscale = Object.freeze({
54
54
  gray900: '#262626',
55
55
  black: '#000000'
56
56
  });
57
- exports.colorGrayscale = colorGrayscale;
58
- var colorOpacity = Object.freeze({
57
+ var colorOpacity = exports.colorOpacity = Object.freeze({
59
58
  white_0: 'rgba(255, 255, 255, 0.0)',
60
59
  'white_0.2': 'rgba(255, 255, 255, 0.2)',
61
60
  'white_0.5': 'rgba(255, 255, 255, 0.5)',
@@ -69,16 +68,15 @@ var colorOpacity = Object.freeze({
69
68
  'black_0.8': 'rgba(0, 0, 0, 0.8)',
70
69
  'black_0.05': 'rgba(0, 0, 0, 0.05)'
71
70
  });
72
- exports.colorOpacity = colorOpacity;
73
- var COLOR_SEMANTIC = Object.freeze({
71
+ var COLOR_SEMANTIC = exports.COLOR_SEMANTIC = Object.freeze({
74
72
  danger: '#c7000a',
75
73
  success: '#4db41d',
76
74
  info: '#1a7aeb',
77
75
  warning: '#fcaa0c'
78
- }); // color set used in articles with pink layout
76
+ });
79
77
 
80
- exports.COLOR_SEMANTIC = COLOR_SEMANTIC;
81
- var COLOR_PINK_ARTICLE = Object.freeze({
78
+ // color set used in articles with pink layout
79
+ var COLOR_PINK_ARTICLE = exports.COLOR_PINK_ARTICLE = Object.freeze({
82
80
  lightBlue: '#2440fb',
83
81
  blue: '#355ed3',
84
82
  darkBlue: '#08192d',
@@ -86,8 +84,7 @@ var COLOR_PINK_ARTICLE = Object.freeze({
86
84
  pink: '#fbafef',
87
85
  darkPink: '#ef7ede'
88
86
  });
89
- exports.COLOR_PINK_ARTICLE = COLOR_PINK_ARTICLE;
90
- var _default = {
87
+ var _default = exports["default"] = {
91
88
  colorBrand: colorBrand,
92
89
  colorPhoto: colorPhoto,
93
90
  colorPodcast: colorPodcast,
@@ -96,5 +93,4 @@ var _default = {
96
93
  colorOpacity: colorOpacity,
97
94
  COLOR_SEMANTIC: COLOR_SEMANTIC,
98
95
  COLOR_PINK_ARTICLE: COLOR_PINK_ARTICLE
99
- };
100
- exports["default"] = _default;
96
+ };
@@ -4,11 +4,10 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.DONATION_LINK_ANCHOR = void 0;
7
- var DONATION_LINK_ANCHOR = {
7
+ var DONATION_LINK_ANCHOR = exports.DONATION_LINK_ANCHOR = {
8
8
  value: 'value',
9
9
  impact: 'impact',
10
10
  faq: 'faq',
11
11
  contribute: 'contribute',
12
12
  plan: 'plan'
13
- };
14
- exports.DONATION_LINK_ANCHOR = DONATION_LINK_ANCHOR;
13
+ };
@@ -8,10 +8,9 @@ exports.EMAIL_SUBSCRIPTION_KEY = void 0;
8
8
  // behind_the_scenes: 219df4131b # 採訪幕後故事
9
9
  // operational_journal: ca9d491549 # 報導者營運手記
10
10
  // event_updates: 0345c43d67 # 活動資訊與最新動態
11
- var EMAIL_SUBSCRIPTION_KEY = {
11
+ var EMAIL_SUBSCRIPTION_KEY = exports.EMAIL_SUBSCRIPTION_KEY = {
12
12
  featured: 'featured',
13
13
  behindTheScenes: 'behind_the_scenes',
14
14
  operationalJournal: 'operational_journal',
15
15
  eventUpdates: 'event_updates'
16
- };
17
- exports.EMAIL_SUBSCRIPTION_KEY = EMAIL_SUBSCRIPTION_KEY;
16
+ };
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports["default"] = void 0;
7
- var _default = {
7
+ var _default = exports["default"] = {
8
8
  article: '/a/',
9
9
  interactiveArticle: '/i/',
10
10
  categories: '/categories/',
@@ -16,5 +16,4 @@ var _default = {
16
16
  aboutus: '/about-us',
17
17
  account: '/account',
18
18
  myReading: '/myreading'
19
- };
20
- exports["default"] = _default;
19
+ };
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports["default"] = void 0;
7
- var _default = {
7
+ var _default = exports["default"] = {
8
8
  donation: 'https://support.twreporter.org',
9
9
  github: 'https://github.com/twreporter',
10
10
  line: 'http://line.me/ti/p/%40nbs5015j',
@@ -16,5 +16,4 @@ var _default = {
16
16
  medium: 'https://medium.com/twreporter',
17
17
  twitter: 'https://twitter.com/tw_reporter_org',
18
18
  IJMBrochureDownloadLink: 'https://docs.google.com/forms/d/e/1FAIpQLSd0KW2gaBI0oXr1W-emtLEL6XXKQkLjB1lu1XMVmoYVbincug/viewform'
19
- };
20
- exports["default"] = _default;
19
+ };
@@ -10,7 +10,7 @@ var serif = 'serif';
10
10
  var robotoSlab = 'Roboto Slab';
11
11
  var notoSansTC = 'Noto Sans TC';
12
12
  var sansSerif = 'sans-serif';
13
- var fonts = {
13
+ var fonts = exports.fonts = {
14
14
  merriweather: merriweather,
15
15
  sourceHanSerifTC: sourceHanSerifTC,
16
16
  serif: serif,
@@ -18,23 +18,19 @@ var fonts = {
18
18
  notoSansTC: notoSansTC,
19
19
  sansSerif: sansSerif
20
20
  };
21
- exports.fonts = fonts;
22
- var fontWeight = {
21
+ var fontWeight = exports.fontWeight = {
23
22
  extraLight: '100',
24
23
  normal: '400',
25
24
  bold: '700'
26
25
  };
27
- exports.fontWeight = fontWeight;
28
- var fontFamily = {
26
+ var fontFamily = exports.fontFamily = {
29
27
  title: "".concat(merriweather, ", ").concat(sourceHanSerifTC, ", ").concat(serif),
30
28
  "default": "".concat(robotoSlab, ", ").concat(notoSansTC, ", ").concat(sansSerif),
31
29
  // use defaultFallback before ${notoSansTC} is fully loaded
32
30
  defaultFallback: "".concat(robotoSlab, ", ").concat(sansSerif)
33
31
  };
34
- exports.fontFamily = fontFamily;
35
- var _default = {
32
+ var _default = exports["default"] = {
36
33
  fonts: fonts,
37
34
  fontWeight: fontWeight,
38
35
  fontFamily: fontFamily
39
- };
40
- exports["default"] = _default;
36
+ };
@@ -4,7 +4,5 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.fundraisingId = exports["default"] = void 0;
7
- var fundraisingId = '公益勸募許可字號|衛部救字第 1121364182 號';
8
- exports.fundraisingId = fundraisingId;
9
- var _default = fundraisingId;
10
- exports["default"] = _default;
7
+ var fundraisingId = exports.fundraisingId = '公益勸募許可字號|衛部救字第 1121364182 號';
8
+ var _default = exports["default"] = fundraisingId;
@@ -4,8 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.target = void 0;
7
- var target = {
7
+ var target = exports.target = {
8
8
  self: '_self',
9
9
  blank: '_blank'
10
- };
11
- exports.target = target;
10
+ };
@@ -4,5 +4,4 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.INFOGRAM_ID = void 0;
7
- var INFOGRAM_ID = '630f029461ca4e07004ef530';
8
- exports.INFOGRAM_ID = INFOGRAM_ID;
7
+ var INFOGRAM_ID = exports.INFOGRAM_ID = '630f029461ca4e07004ef530';
@@ -4,12 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.redirect = exports.internal = exports.external = void 0;
7
- var external = 'external'; // html a tag
8
-
9
- exports.external = external;
10
- var internal = 'internal'; // react-router Link
11
-
12
- exports.internal = internal;
13
- var redirect = 'redirect'; // react-router router.push() or browserHistory.push()
14
-
15
- exports.redirect = redirect;
7
+ var external = exports.external = 'external'; // html a tag
8
+ var internal = exports.internal = 'internal'; // react-router Link
9
+ var redirect = exports.redirect = 'redirect'; // react-router router.push() or browserHistory.push()
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports["default"] = exports.MEMBER_ROLE = void 0;
7
- var MEMBER_ROLE = {
7
+ var MEMBER_ROLE = exports.MEMBER_ROLE = {
8
8
  explorer: 'explorer',
9
9
  action_taker: 'action_taker',
10
10
  trailblazer: 'trailblazer',
@@ -15,10 +15,7 @@ var MEMBER_ROLE = {
15
15
  trailblazer_ntch_3: 'trailblazer',
16
16
  // 兩廳院合作 廳院人
17
17
  trailblazer_ntch_12: 'trailblazer' // 兩廳院合作 廳院迷
18
-
19
18
  };
20
- exports.MEMBER_ROLE = MEMBER_ROLE;
21
- var _default = {
19
+ var _default = exports["default"] = {
22
20
  MEMBER_ROLE: MEMBER_ROLE
23
- };
24
- exports["default"] = _default;
21
+ };
@@ -4,5 +4,4 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.absoluteCentering = void 0;
7
- var absoluteCentering = "\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n";
8
- exports.absoluteCentering = absoluteCentering;
7
+ var absoluteCentering = exports.absoluteCentering = "\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n";
@@ -4,13 +4,9 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports["default"] = void 0;
7
-
8
7
  var _propTypes = _interopRequireDefault(require("prop-types"));
9
-
10
8
  var _releaseBranch = _interopRequireDefault(require("./release-branch"));
11
-
12
9
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
13
-
14
10
  var bookmark = _propTypes["default"].shape({
15
11
  id: _propTypes["default"].number,
16
12
  published_date: _propTypes["default"].number,
@@ -24,7 +20,6 @@ var bookmark = _propTypes["default"].shape({
24
20
  desc: _propTypes["default"].string,
25
21
  thumbnail: _propTypes["default"].string
26
22
  });
27
-
28
23
  var articleMetaForBookmark = _propTypes["default"].shape({
29
24
  slug: _propTypes["default"].string.isRequired,
30
25
  is_external: _propTypes["default"].bool.isRequired,
@@ -35,12 +30,9 @@ var articleMetaForBookmark = _propTypes["default"].shape({
35
30
  post_id: _propTypes["default"].string,
36
31
  category: _propTypes["default"].string
37
32
  });
38
-
39
33
  var releaseBranch = _propTypes["default"].oneOf([_releaseBranch["default"].master, _releaseBranch["default"].test, _releaseBranch["default"].staging, _releaseBranch["default"].preview, _releaseBranch["default"].release]);
40
-
41
- var _default = {
34
+ var _default = exports["default"] = {
42
35
  articleMetaForBookmark: articleMetaForBookmark,
43
36
  bookmark: bookmark,
44
37
  releaseBranch: releaseBranch
45
- };
46
- exports["default"] = _default;
38
+ };
@@ -4,12 +4,12 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.READ_PREFERENCE_ZH_TW = exports.READ_PREFERENCE_ORDER = exports.READ_PREFERENCE = void 0;
7
-
8
7
  var _READ_PREFERENCE_ZH_T;
9
-
10
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
11
-
12
- var READ_PREFERENCE = {
8
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
9
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
10
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
11
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
12
+ var READ_PREFERENCE = exports.READ_PREFERENCE = {
13
13
  international: 'international',
14
14
  crossStraits: 'cross_straits',
15
15
  humanRight: 'human_right',
@@ -25,8 +25,5 @@ var READ_PREFERENCE = {
25
25
  sport: 'sport',
26
26
  all: 'all'
27
27
  };
28
- exports.READ_PREFERENCE = READ_PREFERENCE;
29
- var READ_PREFERENCE_ZH_TW = (_READ_PREFERENCE_ZH_T = {}, _defineProperty(_READ_PREFERENCE_ZH_T, READ_PREFERENCE.international, '國際'), _defineProperty(_READ_PREFERENCE_ZH_T, READ_PREFERENCE.crossStraits, '兩岸'), _defineProperty(_READ_PREFERENCE_ZH_T, READ_PREFERENCE.humanRight, '人權'), _defineProperty(_READ_PREFERENCE_ZH_T, READ_PREFERENCE.society, '社會'), _defineProperty(_READ_PREFERENCE_ZH_T, READ_PREFERENCE.environment, '環境'), _defineProperty(_READ_PREFERENCE_ZH_T, READ_PREFERENCE.education, '教育'), _defineProperty(_READ_PREFERENCE_ZH_T, READ_PREFERENCE.politics, '政治'), _defineProperty(_READ_PREFERENCE_ZH_T, READ_PREFERENCE.economy, '經濟'), _defineProperty(_READ_PREFERENCE_ZH_T, READ_PREFERENCE.culture, '文化'), _defineProperty(_READ_PREFERENCE_ZH_T, READ_PREFERENCE.art, '藝術'), _defineProperty(_READ_PREFERENCE_ZH_T, READ_PREFERENCE.life, '生活'), _defineProperty(_READ_PREFERENCE_ZH_T, READ_PREFERENCE.health, '醫療'), _defineProperty(_READ_PREFERENCE_ZH_T, READ_PREFERENCE.sport, '體育'), _defineProperty(_READ_PREFERENCE_ZH_T, READ_PREFERENCE.all, '全部'), _READ_PREFERENCE_ZH_T);
30
- exports.READ_PREFERENCE_ZH_TW = READ_PREFERENCE_ZH_TW;
31
- var READ_PREFERENCE_ORDER = [READ_PREFERENCE.international, READ_PREFERENCE.economy, READ_PREFERENCE.art, READ_PREFERENCE.crossStraits, READ_PREFERENCE.culture, READ_PREFERENCE.life, READ_PREFERENCE.humanRight, READ_PREFERENCE.education, READ_PREFERENCE.health, READ_PREFERENCE.society, READ_PREFERENCE.politics, READ_PREFERENCE.sport, READ_PREFERENCE.environment];
32
- exports.READ_PREFERENCE_ORDER = READ_PREFERENCE_ORDER;
28
+ var READ_PREFERENCE_ZH_TW = exports.READ_PREFERENCE_ZH_TW = (_READ_PREFERENCE_ZH_T = {}, _defineProperty(_READ_PREFERENCE_ZH_T, READ_PREFERENCE.international, '國際'), _defineProperty(_READ_PREFERENCE_ZH_T, READ_PREFERENCE.crossStraits, '兩岸'), _defineProperty(_READ_PREFERENCE_ZH_T, READ_PREFERENCE.humanRight, '人權'), _defineProperty(_READ_PREFERENCE_ZH_T, READ_PREFERENCE.society, '社會'), _defineProperty(_READ_PREFERENCE_ZH_T, READ_PREFERENCE.environment, '環境'), _defineProperty(_READ_PREFERENCE_ZH_T, READ_PREFERENCE.education, '教育'), _defineProperty(_READ_PREFERENCE_ZH_T, READ_PREFERENCE.politics, '政治'), _defineProperty(_READ_PREFERENCE_ZH_T, READ_PREFERENCE.economy, '經濟'), _defineProperty(_READ_PREFERENCE_ZH_T, READ_PREFERENCE.culture, '文化'), _defineProperty(_READ_PREFERENCE_ZH_T, READ_PREFERENCE.art, '藝術'), _defineProperty(_READ_PREFERENCE_ZH_T, READ_PREFERENCE.life, '生活'), _defineProperty(_READ_PREFERENCE_ZH_T, READ_PREFERENCE.health, '醫療'), _defineProperty(_READ_PREFERENCE_ZH_T, READ_PREFERENCE.sport, '體育'), _defineProperty(_READ_PREFERENCE_ZH_T, READ_PREFERENCE.all, '全部'), _READ_PREFERENCE_ZH_T);
29
+ var READ_PREFERENCE_ORDER = exports.READ_PREFERENCE_ORDER = [READ_PREFERENCE.international, READ_PREFERENCE.economy, READ_PREFERENCE.art, READ_PREFERENCE.crossStraits, READ_PREFERENCE.culture, READ_PREFERENCE.life, READ_PREFERENCE.humanRight, READ_PREFERENCE.education, READ_PREFERENCE.health, READ_PREFERENCE.society, READ_PREFERENCE.politics, READ_PREFERENCE.sport, READ_PREFERENCE.environment];
@@ -4,18 +4,15 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.READING_TIME_UNIT_PAGE_TEXT = exports.READING_TIME_UNIT_CARD_TEXT = exports.READING_TIME_UNIT = void 0;
7
-
8
7
  var _Object$freeze, _Object$freeze2;
9
-
10
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
11
-
12
- var READING_TIME_UNIT = Object.freeze({
8
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
9
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
10
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
11
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
12
+ var READING_TIME_UNIT = exports.READING_TIME_UNIT = Object.freeze({
13
13
  minute: 'minute',
14
14
  hour: 'hour',
15
15
  day: 'day'
16
16
  });
17
- exports.READING_TIME_UNIT = READING_TIME_UNIT;
18
- var READING_TIME_UNIT_CARD_TEXT = Object.freeze((_Object$freeze = {}, _defineProperty(_Object$freeze, READING_TIME_UNIT.minute, '分鐘'), _defineProperty(_Object$freeze, READING_TIME_UNIT.hour, '小時'), _defineProperty(_Object$freeze, READING_TIME_UNIT.day, '天數'), _Object$freeze));
19
- exports.READING_TIME_UNIT_CARD_TEXT = READING_TIME_UNIT_CARD_TEXT;
20
- var READING_TIME_UNIT_PAGE_TEXT = Object.freeze((_Object$freeze2 = {}, _defineProperty(_Object$freeze2, READING_TIME_UNIT.minute, '分鐘'), _defineProperty(_Object$freeze2, READING_TIME_UNIT.hour, '小時'), _defineProperty(_Object$freeze2, READING_TIME_UNIT.day, '天'), _Object$freeze2));
21
- exports.READING_TIME_UNIT_PAGE_TEXT = READING_TIME_UNIT_PAGE_TEXT;
17
+ var READING_TIME_UNIT_CARD_TEXT = exports.READING_TIME_UNIT_CARD_TEXT = Object.freeze((_Object$freeze = {}, _defineProperty(_Object$freeze, READING_TIME_UNIT.minute, '分鐘'), _defineProperty(_Object$freeze, READING_TIME_UNIT.hour, '小時'), _defineProperty(_Object$freeze, READING_TIME_UNIT.day, '天數'), _Object$freeze));
18
+ var READING_TIME_UNIT_PAGE_TEXT = exports.READING_TIME_UNIT_PAGE_TEXT = Object.freeze((_Object$freeze2 = {}, _defineProperty(_Object$freeze2, READING_TIME_UNIT.minute, '分鐘'), _defineProperty(_Object$freeze2, READING_TIME_UNIT.hour, '小時'), _defineProperty(_Object$freeze2, READING_TIME_UNIT.day, ''), _Object$freeze2));
@@ -4,12 +4,9 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports["default"] = exports.BRANCH_PROP_TYPES = exports.BRANCH = void 0;
7
-
8
7
  var _propTypes = _interopRequireDefault(require("prop-types"));
9
-
10
8
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
-
12
- var BRANCH = {
9
+ var BRANCH = exports.BRANCH = {
13
10
  master: 'master',
14
11
  test: 'test',
15
12
  preview: 'preview',
@@ -18,12 +15,8 @@ var BRANCH = {
18
15
  next: 'next',
19
16
  dev: 'dev'
20
17
  };
21
- exports.BRANCH = BRANCH;
22
-
23
- var BRANCH_PROP_TYPES = _propTypes["default"].oneOf([BRANCH.master, BRANCH.staging, BRANCH.preview, BRANCH.release, BRANCH.dev]);
24
-
25
- exports.BRANCH_PROP_TYPES = BRANCH_PROP_TYPES;
26
- var _default = {
18
+ var BRANCH_PROP_TYPES = exports.BRANCH_PROP_TYPES = _propTypes["default"].oneOf([BRANCH.master, BRANCH.staging, BRANCH.preview, BRANCH.release, BRANCH.dev]);
19
+ var _default = exports["default"] = {
27
20
  master: 'master',
28
21
  // for dev
29
22
  test: 'test',
@@ -32,5 +25,4 @@ var _default = {
32
25
  staging: 'staging',
33
26
  release: 'release',
34
27
  dev: 'dev'
35
- };
36
- exports["default"] = _default;
28
+ };