powr-sdk-web 5.6.4 → 5.6.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -71,8 +71,8 @@ function PowrActivityList(_ref) {
71
71
  return /*#__PURE__*/_react["default"].createElement("div", {
72
72
  className: className,
73
73
  style: _objectSpread(_objectSpread(_objectSpread({}, containerStyle), style), {}, {
74
- padding: '28px',
75
- textAlign: 'center',
74
+ padding: '20px 24px',
75
+ textAlign: 'left',
76
76
  color: '#6b7280'
77
77
  })
78
78
  }, "Loading\u2026");
@@ -81,7 +81,8 @@ function PowrActivityList(_ref) {
81
81
  return /*#__PURE__*/_react["default"].createElement("div", {
82
82
  className: className,
83
83
  style: _objectSpread(_objectSpread(_objectSpread({}, containerStyle), style), {}, {
84
- padding: '28px',
84
+ padding: '20px 24px',
85
+ textAlign: 'left',
85
86
  color: '#b91c1c'
86
87
  })
87
88
  }, error);
@@ -90,8 +91,8 @@ function PowrActivityList(_ref) {
90
91
  return /*#__PURE__*/_react["default"].createElement("div", {
91
92
  className: className,
92
93
  style: _objectSpread(_objectSpread(_objectSpread({}, containerStyle), style), {}, {
93
- padding: '28px',
94
- textAlign: 'center',
94
+ padding: '20px 24px',
95
+ textAlign: 'left',
95
96
  color: '#6b7280'
96
97
  })
97
98
  }, emptyMessage || 'No items for this date.');
@@ -32,6 +32,7 @@ var wrapperStyle = {
32
32
  display: 'flex',
33
33
  flexDirection: 'column',
34
34
  gap: '16px',
35
+ width: '100%',
35
36
  fontFamily: 'Roboto, sans-serif'
36
37
  };
37
38
 
@@ -77,7 +78,7 @@ function PowrBaseActivities(_ref) {
77
78
  var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
78
79
  var _yield$apiCall, data, ok, list, _t;
79
80
  return _regenerator().w(function (_context) {
80
- while (1) switch (_context.n) {
81
+ while (1) switch (_context.p = _context.n) {
81
82
  case 0:
82
83
  setLoading(true);
83
84
  setError(null);
@@ -34,7 +34,9 @@ var PowrLogin = function PowrLogin(_ref) {
34
34
  mode = _ref$mode === void 0 ? 'toggle' : _ref$mode,
35
35
  projectId = _ref.projectId,
36
36
  _ref$requirePhoneVeri = _ref.requirePhoneVerification,
37
- requirePhoneVerification = _ref$requirePhoneVeri === void 0 ? true : _ref$requirePhoneVeri;
37
+ requirePhoneVerification = _ref$requirePhoneVeri === void 0 ? true : _ref$requirePhoneVeri,
38
+ _ref$showForgotPasswo = _ref.showForgotPassword,
39
+ showForgotPassword = _ref$showForgotPasswo === void 0 ? true : _ref$showForgotPasswo;
38
40
  var _useState = (0, _react.useState)(function () {
39
41
  switch (mode) {
40
42
  case 'login':
@@ -155,7 +157,7 @@ var PowrLogin = function PowrLogin(_ref) {
155
157
  var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(phone) {
156
158
  var appVerifier, confirmationResult, _t, _t2;
157
159
  return _regenerator().w(function (_context2) {
158
- while (1) switch (_context2.n) {
160
+ while (1) switch (_context2.p = _context2.n) {
159
161
  case 0:
160
162
  setOtpLoading(true);
161
163
  setError('');
@@ -254,7 +256,7 @@ var PowrLogin = function PowrLogin(_ref) {
254
256
  var _ref4 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3() {
255
257
  var result, _t3, _t4;
256
258
  return _regenerator().w(function (_context3) {
257
- while (1) switch (_context3.n) {
259
+ while (1) switch (_context3.p = _context3.n) {
258
260
  case 0:
259
261
  setLoading(true);
260
262
  setError('');
@@ -337,7 +339,7 @@ var PowrLogin = function PowrLogin(_ref) {
337
339
  _args4 = arguments,
338
340
  _t5;
339
341
  return _regenerator().w(function (_context4) {
340
- while (1) switch (_context4.n) {
342
+ while (1) switch (_context4.p = _context4.n) {
341
343
  case 0:
342
344
  skipPhoneValidation = _args4.length > 1 && _args4[1] !== undefined ? _args4[1] : false;
343
345
  if (e) e.preventDefault();
@@ -480,7 +482,7 @@ var PowrLogin = function PowrLogin(_ref) {
480
482
  var _ref6 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee5() {
481
483
  var _yield$apiCall2, data, ok, _t6;
482
484
  return _regenerator().w(function (_context5) {
483
- while (1) switch (_context5.n) {
485
+ while (1) switch (_context5.p = _context5.n) {
484
486
  case 0:
485
487
  if (formData.phoneOrEmail.trim()) {
486
488
  _context5.n = 1;
@@ -677,13 +679,13 @@ var PowrLogin = function PowrLogin(_ref) {
677
679
  style: styles.checkbox
678
680
  }), /*#__PURE__*/_react["default"].createElement("span", {
679
681
  style: styles.checkboxText
680
- }, "Remember me")), /*#__PURE__*/_react["default"].createElement("button", {
682
+ }, "Remember me")), showForgotPassword && /*#__PURE__*/_react["default"].createElement("button", {
681
683
  type: "button",
682
684
  onClick: function onClick() {
683
685
  return setShowOtpOption(!showOtpOption);
684
686
  },
685
687
  style: styles.forgotPasswordLink
686
- }, "Forgot password?")), isLogin && showOtpOption && /*#__PURE__*/_react["default"].createElement("div", {
688
+ }, "Forgot password?")), isLogin && showForgotPassword && showOtpOption && /*#__PURE__*/_react["default"].createElement("div", {
687
689
  style: styles.otpSection
688
690
  }, /*#__PURE__*/_react["default"].createElement("p", {
689
691
  style: styles.otpText
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = void 0;
7
7
  var _react = _interopRequireDefault(require("react"));
8
- var _powrSdkWeb = require("powr-sdk-web");
8
+ var _likes = _interopRequireDefault(require("../likes"));
9
9
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
10
10
  var BlogCard = function BlogCard(_ref) {
11
11
  var imageUrl = _ref.imageUrl,
@@ -35,7 +35,7 @@ var BlogCard = function BlogCard(_ref) {
35
35
  className: "font-semibold text-sm text-gray-800"
36
36
  }, author || 'Unknown'), /*#__PURE__*/_react["default"].createElement("div", {
37
37
  className: "text-xs text-gray-500"
38
- }, date)), /*#__PURE__*/_react["default"].createElement(_powrSdkWeb.PowrLike, {
38
+ }, date)), /*#__PURE__*/_react["default"].createElement(_likes["default"], {
39
39
  userId: userId,
40
40
  projectId: projectId,
41
41
  contentId: contentId
@@ -41,7 +41,7 @@ var PowrBaseBlogs = function PowrBaseBlogs(_ref) {
41
41
  var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
42
42
  var _yield$apiCall, data, ok, _t;
43
43
  return _regenerator().w(function (_context) {
44
- while (1) switch (_context.n) {
44
+ while (1) switch (_context.p = _context.n) {
45
45
  case 0:
46
46
  _context.p = 0;
47
47
  _context.n = 1;
@@ -144,7 +144,7 @@ function PowrCalendarStrip(_ref) {
144
144
  fontWeight: 600,
145
145
  color: '#111827'
146
146
  }
147
- }, "Calendar"), /*#__PURE__*/_react["default"].createElement("div", {
147
+ }, "Activity"), /*#__PURE__*/_react["default"].createElement("div", {
148
148
  style: {
149
149
  display: 'flex',
150
150
  alignItems: 'center',
@@ -102,7 +102,7 @@ var PowrBaseChat = function PowrBaseChat(_ref) {
102
102
  var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
103
103
  var _yield$apiCall, data, ok, convos, groupId, hasGroup, _refetch$data, _refetch$data2, refetch, projectGroup, _t;
104
104
  return _regenerator().w(function (_context) {
105
- while (1) switch (_context.n) {
105
+ while (1) switch (_context.p = _context.n) {
106
106
  case 0:
107
107
  if (!(!projectId || !apiUrl)) {
108
108
  _context.n = 1;
@@ -188,7 +188,7 @@ var PowrBaseChat = function PowrBaseChat(_ref) {
188
188
  var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
189
189
  var _yield$apiCall2, data, ok, _t2;
190
190
  return _regenerator().w(function (_context2) {
191
- while (1) switch (_context2.n) {
191
+ while (1) switch (_context2.p = _context2.n) {
192
192
  case 0:
193
193
  if (!(!projectId || !apiUrl)) {
194
194
  _context2.n = 1;
@@ -234,7 +234,7 @@ var PowrBaseChat = function PowrBaseChat(_ref) {
234
234
  var _ref4 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3() {
235
235
  var _data$data, _yield$apiCall3, data, ok, _t3;
236
236
  return _regenerator().w(function (_context3) {
237
- while (1) switch (_context3.n) {
237
+ while (1) switch (_context3.p = _context3.n) {
238
238
  case 0:
239
239
  if (!(!projectGroupName || !(participantIds !== null && participantIds !== void 0 && participantIds.length) || !projectId || !apiUrl)) {
240
240
  _context3.n = 1;
@@ -284,7 +284,7 @@ var PowrBaseChat = function PowrBaseChat(_ref) {
284
284
  var _ref5 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4(userId) {
285
285
  var _yield$apiCall4, data, ok, _t4;
286
286
  return _regenerator().w(function (_context4) {
287
- while (1) switch (_context4.n) {
287
+ while (1) switch (_context4.p = _context4.n) {
288
288
  case 0:
289
289
  _context4.p = 0;
290
290
  _context4.n = 1;
@@ -326,7 +326,7 @@ var PowrBaseChat = function PowrBaseChat(_ref) {
326
326
  var _ref6 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee5(conversationId) {
327
327
  var _yield$apiCall5, data, ok, _t5;
328
328
  return _regenerator().w(function (_context5) {
329
- while (1) switch (_context5.n) {
329
+ while (1) switch (_context5.p = _context5.n) {
330
330
  case 0:
331
331
  _context5.p = 0;
332
332
  setLoading(true);
@@ -369,7 +369,7 @@ var PowrBaseChat = function PowrBaseChat(_ref) {
369
369
  var _ref7 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee6() {
370
370
  var _yield$apiCall6, data, ok, _t6;
371
371
  return _regenerator().w(function (_context6) {
372
- while (1) switch (_context6.n) {
372
+ while (1) switch (_context6.p = _context6.n) {
373
373
  case 0:
374
374
  if (!(!message.trim() || !selectedChat || sending)) {
375
375
  _context6.n = 1;
@@ -121,7 +121,7 @@ var PowrBaseComments = function PowrBaseComments(_ref) {
121
121
  var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
122
122
  var _yield$apiCall, data, ok, sorted, _t;
123
123
  return _regenerator().w(function (_context) {
124
- while (1) switch (_context.n) {
124
+ while (1) switch (_context.p = _context.n) {
125
125
  case 0:
126
126
  if (contentId) {
127
127
  _context.n = 1;
@@ -169,7 +169,7 @@ var PowrBaseComments = function PowrBaseComments(_ref) {
169
169
  var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
170
170
  var commentPayload, _yield$apiCall2, data, ok, temp, _t2;
171
171
  return _regenerator().w(function (_context2) {
172
- while (1) switch (_context2.n) {
172
+ while (1) switch (_context2.p = _context2.n) {
173
173
  case 0:
174
174
  if (!(!contentId || !newComment.trim() && selectedFiles.length === 0)) {
175
175
  _context2.n = 1;
@@ -274,7 +274,7 @@ var PowrBaseComments = function PowrBaseComments(_ref) {
274
274
  var _ref4 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(id, content) {
275
275
  var newText, _yield$apiCall3, data, ok, _t3;
276
276
  return _regenerator().w(function (_context3) {
277
- while (1) switch (_context3.n) {
277
+ while (1) switch (_context3.p = _context3.n) {
278
278
  case 0:
279
279
  if (!onCommentEdit) {
280
280
  _context3.n = 1;
@@ -323,7 +323,7 @@ var PowrBaseComments = function PowrBaseComments(_ref) {
323
323
  var _ref5 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4(id) {
324
324
  var _yield$apiCall4, data, ok, _t4;
325
325
  return _regenerator().w(function (_context4) {
326
- while (1) switch (_context4.n) {
326
+ while (1) switch (_context4.p = _context4.n) {
327
327
  case 0:
328
328
  if (!onCommentDelete) {
329
329
  _context4.n = 1;
@@ -44,7 +44,7 @@ var PowrBaseFeedsAdmin = function PowrBaseFeedsAdmin(_ref) {
44
44
  var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
45
45
  var _yield$apiCall, data, ok, _t;
46
46
  return _regenerator().w(function (_context) {
47
- while (1) switch (_context.n) {
47
+ while (1) switch (_context.p = _context.n) {
48
48
  case 0:
49
49
  _context.p = 0;
50
50
  _context.n = 1;
@@ -79,7 +79,7 @@ var PowrBaseFeedsAdmin = function PowrBaseFeedsAdmin(_ref) {
79
79
  var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
80
80
  var _yield$apiCall2, data, ok, _t2;
81
81
  return _regenerator().w(function (_context2) {
82
- while (1) switch (_context2.n) {
82
+ while (1) switch (_context2.p = _context2.n) {
83
83
  case 0:
84
84
  if (selectedPost) {
85
85
  _context2.n = 1;
@@ -58,7 +58,7 @@ var CreatePost = function CreatePost(_ref) {
58
58
  var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(e) {
59
59
  var postData, _yield$apiCall, data, ok, _t;
60
60
  return _regenerator().w(function (_context) {
61
- while (1) switch (_context.n) {
61
+ while (1) switch (_context.p = _context.n) {
62
62
  case 0:
63
63
  e.preventDefault();
64
64
 
@@ -131,7 +131,7 @@ var CreatePost = function CreatePost(_ref) {
131
131
  var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(files) {
132
132
  var uploadedFiles, _iterator, _step, file, formData, _yield$apiCall2, data, ok, _t2, _t3;
133
133
  return _regenerator().w(function (_context2) {
134
- while (1) switch (_context2.n) {
134
+ while (1) switch (_context2.p = _context2.n) {
135
135
  case 0:
136
136
  uploadedFiles = [];
137
137
  _iterator = _createForOfIteratorHelper(files);
@@ -68,7 +68,7 @@ var FeedPost = function FeedPost(_ref) {
68
68
  var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
69
69
  var _yield$apiCall, data, ok, _t;
70
70
  return _regenerator().w(function (_context) {
71
- while (1) switch (_context.n) {
71
+ while (1) switch (_context.p = _context.n) {
72
72
  case 0:
73
73
  if (editContent.trim()) {
74
74
  _context.n = 1;
@@ -118,7 +118,7 @@ var FeedPost = function FeedPost(_ref) {
118
118
  var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
119
119
  var _yield$apiCall2, data, ok, _t2;
120
120
  return _regenerator().w(function (_context2) {
121
- while (1) switch (_context2.n) {
121
+ while (1) switch (_context2.p = _context2.n) {
122
122
  case 0:
123
123
  if (confirm('Are you sure you want to delete this post?')) {
124
124
  _context2.n = 1;
@@ -78,7 +78,7 @@ var PowrBaseFeed = function PowrBaseFeed(_ref) {
78
78
  _args = arguments,
79
79
  _t;
80
80
  return _regenerator().w(function (_context) {
81
- while (1) switch (_context.n) {
81
+ while (1) switch (_context.p = _context.n) {
82
82
  case 0:
83
83
  pageNum = _args.length > 0 && _args[0] !== undefined ? _args[0] : 1;
84
84
  append = _args.length > 1 && _args[1] !== undefined ? _args[1] : false;
@@ -75,7 +75,7 @@ var PowrFormsAdmin = function PowrFormsAdmin(_ref) {
75
75
  var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
76
76
  var _yield$apiCall, data, ok, _t;
77
77
  return _regenerator().w(function (_context) {
78
- while (1) switch (_context.n) {
78
+ while (1) switch (_context.p = _context.n) {
79
79
  case 0:
80
80
  _context.p = 0;
81
81
  setLoading(true);
@@ -129,7 +129,7 @@ var PowrFormsAdmin = function PowrFormsAdmin(_ref) {
129
129
  var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(formName) {
130
130
  var _yield$apiCall2, data, ok, _t2;
131
131
  return _regenerator().w(function (_context2) {
132
- while (1) switch (_context2.n) {
132
+ while (1) switch (_context2.p = _context2.n) {
133
133
  case 0:
134
134
  setLoadingResponses(true);
135
135
  _context2.p = 1;
@@ -180,7 +180,7 @@ var PowrFormsAdmin = function PowrFormsAdmin(_ref) {
180
180
  var _ref4 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3() {
181
181
  var formData, _yield$apiCall3, result, ok, errorMessage, _errorMessage, _t3;
182
182
  return _regenerator().w(function (_context3) {
183
- while (1) switch (_context3.n) {
183
+ while (1) switch (_context3.p = _context3.n) {
184
184
  case 0:
185
185
  if (!(!projectId || !selectedFile)) {
186
186
  _context3.n = 1;
@@ -72,7 +72,7 @@ var PowrForm = function PowrForm(_ref) {
72
72
  var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
73
73
  var response, apiResponse, formData, _t;
74
74
  return _regenerator().w(function (_context) {
75
- while (1) switch (_context.n) {
75
+ while (1) switch (_context.p = _context.n) {
76
76
  case 0:
77
77
  if (!(!formName || !projectId)) {
78
78
  _context.n = 1;
@@ -121,7 +121,7 @@ var PowrForm = function PowrForm(_ref) {
121
121
  var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(data) {
122
122
  var finalData, response, resData, errorMsg, _errorMsg, _error$response, _errorMsg2, _t2;
123
123
  return _regenerator().w(function (_context2) {
124
- while (1) switch (_context2.n) {
124
+ while (1) switch (_context2.p = _context2.n) {
125
125
  case 0:
126
126
  setHasSubmitted(true);
127
127
  setSubmitError(null);
@@ -144,7 +144,7 @@ var PowrBaseFunctionsAdmin = function PowrBaseFunctionsAdmin(_ref) {
144
144
  var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
145
145
  var _yield$apiCall, data, ok, errorMsg, _t;
146
146
  return _regenerator().w(function (_context) {
147
- while (1) switch (_context.n) {
147
+ while (1) switch (_context.p = _context.n) {
148
148
  case 0:
149
149
  _context.p = 0;
150
150
  setLoading(true);
@@ -215,7 +215,7 @@ var PowrBaseFunctionsAdmin = function PowrBaseFunctionsAdmin(_ref) {
215
215
  var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
216
216
  var errorMsg, _yield$apiCall2, result, ok, successMsg, _errorMsg, _t2;
217
217
  return _regenerator().w(function (_context2) {
218
- while (1) switch (_context2.n) {
218
+ while (1) switch (_context2.p = _context2.n) {
219
219
  case 0:
220
220
  if (!(!formData.name || !formData.path)) {
221
221
  _context2.n = 1;
@@ -303,7 +303,7 @@ var PowrBaseFunctionsAdmin = function PowrBaseFunctionsAdmin(_ref) {
303
303
  var _ref4 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3() {
304
304
  var errorMsg, _yield$apiCall3, result, ok, successMsg, _errorMsg2, _t3;
305
305
  return _regenerator().w(function (_context3) {
306
- while (1) switch (_context3.n) {
306
+ while (1) switch (_context3.p = _context3.n) {
307
307
  case 0:
308
308
  if (!(!editingFunction || !editFormData.code)) {
309
309
  _context3.n = 1;
@@ -104,7 +104,7 @@ var PowrBaseInvoicesAdmin = function PowrBaseInvoicesAdmin(_ref) {
104
104
  var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
105
105
  var _yield$apiCall, data, ok, _t;
106
106
  return _regenerator().w(function (_context) {
107
- while (1) switch (_context.n) {
107
+ while (1) switch (_context.p = _context.n) {
108
108
  case 0:
109
109
  setLoading(true);
110
110
  setError(null);
@@ -153,7 +153,7 @@ var PowrBaseInvoicesAdmin = function PowrBaseInvoicesAdmin(_ref) {
153
153
  var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(e) {
154
154
  var _yield$apiCall2, data, ok, _t2;
155
155
  return _regenerator().w(function (_context2) {
156
- while (1) switch (_context2.n) {
156
+ while (1) switch (_context2.p = _context2.n) {
157
157
  case 0:
158
158
  e.preventDefault();
159
159
  setAddLoading(true);
@@ -318,7 +318,7 @@ var PowrBaseInvoicesAdmin = function PowrBaseInvoicesAdmin(_ref) {
318
318
  var _ref4 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(e) {
319
319
  var _yield$apiCall3, data, ok, _t3;
320
320
  return _regenerator().w(function (_context3) {
321
- while (1) switch (_context3.n) {
321
+ while (1) switch (_context3.p = _context3.n) {
322
322
  case 0:
323
323
  e.preventDefault();
324
324
  if (editInvoiceId) {
@@ -36,7 +36,7 @@ var PowrBaseInvoice = function PowrBaseInvoice(_ref) {
36
36
  var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
37
37
  var _yield$apiCall, data, ok, _t;
38
38
  return _regenerator().w(function (_context) {
39
- while (1) switch (_context.n) {
39
+ while (1) switch (_context.p = _context.n) {
40
40
  case 0:
41
41
  _context.p = 0;
42
42
  _context.n = 1;
@@ -83,7 +83,7 @@ var PowrLike = function PowrLike(_ref2) {
83
83
  var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
84
84
  var endpoint, _yield$apiCall, data, ok, _t;
85
85
  return _regenerator().w(function (_context) {
86
- while (1) switch (_context.n) {
86
+ while (1) switch (_context.p = _context.n) {
87
87
  case 0:
88
88
  setLoading(true);
89
89
  _context.p = 1;
@@ -124,7 +124,7 @@ var PowrLike = function PowrLike(_ref2) {
124
124
  var _ref4 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
125
125
  var endpoint, _yield$apiCall2, data, ok, _t2;
126
126
  return _regenerator().w(function (_context2) {
127
- while (1) switch (_context2.n) {
127
+ while (1) switch (_context2.p = _context2.n) {
128
128
  case 0:
129
129
  if (userId) {
130
130
  _context2.n = 1;
@@ -168,7 +168,7 @@ var PowrLike = function PowrLike(_ref2) {
168
168
  var _ref5 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3() {
169
169
  var endpoint, _t3;
170
170
  return _regenerator().w(function (_context3) {
171
- while (1) switch (_context3.n) {
171
+ while (1) switch (_context3.p = _context3.n) {
172
172
  case 0:
173
173
  setSubmitting(true);
174
174
  _context3.p = 1;
@@ -84,7 +84,7 @@ var PowrBaseNotificationsAdmin = function PowrBaseNotificationsAdmin(_ref) {
84
84
  var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
85
85
  var _yield$apiCall, data, ok, _t;
86
86
  return _regenerator().w(function (_context) {
87
- while (1) switch (_context.n) {
87
+ while (1) switch (_context.p = _context.n) {
88
88
  case 0:
89
89
  setLoading(true);
90
90
  setError(null);
@@ -162,7 +162,7 @@ var PowrBaseNotificationsAdmin = function PowrBaseNotificationsAdmin(_ref) {
162
162
  var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
163
163
  var _yield$apiCall2, result, ok, _t2;
164
164
  return _regenerator().w(function (_context2) {
165
- while (1) switch (_context2.n) {
165
+ while (1) switch (_context2.p = _context2.n) {
166
166
  case 0:
167
167
  _context2.p = 0;
168
168
  _context2.n = 1;
@@ -237,7 +237,7 @@ var PowrBaseNotificationsAdmin = function PowrBaseNotificationsAdmin(_ref) {
237
237
  var _ref4 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3() {
238
238
  var _yield$apiCall3, data, ok, _t3;
239
239
  return _regenerator().w(function (_context3) {
240
- while (1) switch (_context3.n) {
240
+ while (1) switch (_context3.p = _context3.n) {
241
241
  case 0:
242
242
  setLoadingGCS(true);
243
243
  _context3.p = 1;
@@ -85,7 +85,7 @@ var PowrVerify = function PowrVerify(_ref) {
85
85
  var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
86
86
  var phoneNumber, appVerifier, confirmation, _t, _t2;
87
87
  return _regenerator().w(function (_context) {
88
- while (1) switch (_context.n) {
88
+ while (1) switch (_context.p = _context.n) {
89
89
  case 0:
90
90
  setLoading(true);
91
91
  setError('');
@@ -150,7 +150,7 @@ var PowrVerify = function PowrVerify(_ref) {
150
150
  var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
151
151
  var result, token, _t3, _t4;
152
152
  return _regenerator().w(function (_context2) {
153
- while (1) switch (_context2.n) {
153
+ while (1) switch (_context2.p = _context2.n) {
154
154
  case 0:
155
155
  setLoading(true);
156
156
  setError('');
@@ -25,7 +25,7 @@ function _getReviews() {
25
25
  _getReviews = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(_ref) {
26
26
  var projectId, entityId, apiUrl, _yield$apiCall, data, ok, _t;
27
27
  return _regenerator().w(function (_context2) {
28
- while (1) switch (_context2.n) {
28
+ while (1) switch (_context2.p = _context2.n) {
29
29
  case 0:
30
30
  projectId = _ref.projectId, entityId = _ref.entityId, apiUrl = _ref.apiUrl;
31
31
  _context2.p = 1;
@@ -86,7 +86,7 @@ var PowrBaseSlidesAdmin = function PowrBaseSlidesAdmin(_ref) {
86
86
  var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(projectId) {
87
87
  var _yield$apiCall, bannerInfo, ok, _t;
88
88
  return _regenerator().w(function (_context) {
89
- while (1) switch (_context.n) {
89
+ while (1) switch (_context.p = _context.n) {
90
90
  case 0:
91
91
  _context.p = 0;
92
92
  _context.n = 1;
@@ -165,7 +165,7 @@ var PowrBaseSlidesAdmin = function PowrBaseSlidesAdmin(_ref) {
165
165
  var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
166
166
  var _yield$apiCall2, data, ok, _t2;
167
167
  return _regenerator().w(function (_context2) {
168
- while (1) switch (_context2.n) {
168
+ while (1) switch (_context2.p = _context2.n) {
169
169
  case 0:
170
170
  setIsSubmitting(true);
171
171
  _context2.p = 1;
@@ -229,7 +229,7 @@ var PowrBaseSlidesAdmin = function PowrBaseSlidesAdmin(_ref) {
229
229
  var _ref4 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3() {
230
230
  var response, data, _t3;
231
231
  return _regenerator().w(function (_context3) {
232
- while (1) switch (_context3.n) {
232
+ while (1) switch (_context3.p = _context3.n) {
233
233
  case 0:
234
234
  setLoadingGCS(true);
235
235
  _context3.p = 1;
@@ -27,7 +27,7 @@ function _getSlides() {
27
27
  _getSlides = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(_ref) {
28
28
  var projectId, tag, apiUrl, _yield$apiCall, data, ok, _t;
29
29
  return _regenerator().w(function (_context2) {
30
- while (1) switch (_context2.n) {
30
+ while (1) switch (_context2.p = _context2.n) {
31
31
  case 0:
32
32
  projectId = _ref.projectId, tag = _ref.tag, apiUrl = _ref.apiUrl;
33
33
  _context2.p = 1;
@@ -74,7 +74,7 @@ var PowrBaseTasksAdmin = function PowrBaseTasksAdmin(_ref) {
74
74
  var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
75
75
  var _yield$apiCall, data, ok, _t;
76
76
  return _regenerator().w(function (_context) {
77
- while (1) switch (_context.n) {
77
+ while (1) switch (_context.p = _context.n) {
78
78
  case 0:
79
79
  _context.p = 0;
80
80
  _context.n = 1;
@@ -112,7 +112,7 @@ var PowrBaseTasksAdmin = function PowrBaseTasksAdmin(_ref) {
112
112
  var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
113
113
  var _yield$apiCall2, data, ok, _t2;
114
114
  return _regenerator().w(function (_context2) {
115
- while (1) switch (_context2.n) {
115
+ while (1) switch (_context2.p = _context2.n) {
116
116
  case 0:
117
117
  _context2.p = 0;
118
118
  _context2.n = 1;
@@ -143,7 +143,7 @@ var PowrBaseTasksAdmin = function PowrBaseTasksAdmin(_ref) {
143
143
  var _ref4 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(e) {
144
144
  var endpoint, method, _yield$apiCall3, data, ok, _t3;
145
145
  return _regenerator().w(function (_context3) {
146
- while (1) switch (_context3.n) {
146
+ while (1) switch (_context3.p = _context3.n) {
147
147
  case 0:
148
148
  e.preventDefault();
149
149
  _context3.p = 1;
@@ -186,7 +186,7 @@ var PowrBaseTasksAdmin = function PowrBaseTasksAdmin(_ref) {
186
186
  var _ref5 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4(taskId, isActive) {
187
187
  var _yield$apiCall4, data, ok, _t4;
188
188
  return _regenerator().w(function (_context4) {
189
- while (1) switch (_context4.n) {
189
+ while (1) switch (_context4.p = _context4.n) {
190
190
  case 0:
191
191
  _context4.p = 0;
192
192
  _context4.n = 1;
@@ -225,7 +225,7 @@ var PowrBaseTasksAdmin = function PowrBaseTasksAdmin(_ref) {
225
225
  var _ref6 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee5(taskId) {
226
226
  var _yield$apiCall5, data, ok, _t5;
227
227
  return _regenerator().w(function (_context5) {
228
- while (1) switch (_context5.n) {
228
+ while (1) switch (_context5.p = _context5.n) {
229
229
  case 0:
230
230
  _context5.p = 0;
231
231
  _context5.n = 1;
@@ -262,7 +262,7 @@ var PowrBaseTasksAdmin = function PowrBaseTasksAdmin(_ref) {
262
262
  var _ref7 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee6(taskId) {
263
263
  var _yield$apiCall6, data, ok, _t6;
264
264
  return _regenerator().w(function (_context6) {
265
- while (1) switch (_context6.n) {
265
+ while (1) switch (_context6.p = _context6.n) {
266
266
  case 0:
267
267
  if (confirm('Are you sure you want to delete this task?')) {
268
268
  _context6.n = 1;