powr-sdk-web 5.3.2 → 5.3.4
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/dist/activities/index.js +1 -1
- package/dist/auth/index.js +10 -8
- package/dist/blogs/index.js +1 -1
- package/dist/chat/index.js +5 -5
- package/dist/comments/index.js +2 -2
- package/dist/feeds/admin.js +2 -2
- package/dist/feeds/components/CreatePost.js +2 -2
- package/dist/feeds/components/FeedPost.js +2 -2
- package/dist/feeds/index.js +1 -1
- package/dist/forms/admin.js +3 -3
- package/dist/forms/index.js +2 -2
- package/dist/functions/admin.js +3 -3
- package/dist/invoice/index.js +140 -0
- package/dist/invoices/admin.js +3 -3
- package/dist/invoices/index.js +1 -1
- package/dist/likes/index.js +3 -3
- package/dist/notifications/admin.js +3 -3
- package/dist/powrVerify/index.js +2 -2
- package/dist/reviews/index.js +1 -1
- package/dist/slides/admin.js +3 -3
- package/dist/swiper/index.js +1 -1
- package/dist/tasks/admin.js +6 -6
- package/dist/tasks/index.js +7 -7
- package/dist/tools/PowrBaseTools.js +6 -6
- package/dist/tools/PowrToolConfig.js +1 -1
- package/dist/uploader/index.js +2 -2
- package/dist/users/admin.js +1 -1
- package/dist/utils/firebase.js +9 -9
- package/dist/waitlists/admin.js +2 -2
- package/dist/waitlists/index.js +1 -1
- package/package.json +2 -2
package/dist/activities/index.js
CHANGED
|
@@ -53,7 +53,7 @@ function PowrBaseActivities(_ref) {
|
|
|
53
53
|
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
54
54
|
var _yield$apiCall, data, ok, _t;
|
|
55
55
|
return _regenerator().w(function (_context) {
|
|
56
|
-
while (1) switch (_context.
|
|
56
|
+
while (1) switch (_context.n) {
|
|
57
57
|
case 0:
|
|
58
58
|
setLoading(true);
|
|
59
59
|
setError(null);
|
package/dist/auth/index.js
CHANGED
|
@@ -32,7 +32,9 @@ var PowrLogin = function PowrLogin(_ref) {
|
|
|
32
32
|
appLogo = _ref.appLogo,
|
|
33
33
|
_ref$mode = _ref.mode,
|
|
34
34
|
mode = _ref$mode === void 0 ? 'toggle' : _ref$mode,
|
|
35
|
-
projectId = _ref.projectId
|
|
35
|
+
projectId = _ref.projectId,
|
|
36
|
+
_ref$requirePhoneVeri = _ref.requirePhoneVerification,
|
|
37
|
+
requirePhoneVerification = _ref$requirePhoneVeri === void 0 ? true : _ref$requirePhoneVeri;
|
|
36
38
|
var _useState = (0, _react.useState)(function () {
|
|
37
39
|
switch (mode) {
|
|
38
40
|
case 'login':
|
|
@@ -153,7 +155,7 @@ var PowrLogin = function PowrLogin(_ref) {
|
|
|
153
155
|
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(phone) {
|
|
154
156
|
var appVerifier, confirmationResult, _t, _t2;
|
|
155
157
|
return _regenerator().w(function (_context2) {
|
|
156
|
-
while (1) switch (_context2.
|
|
158
|
+
while (1) switch (_context2.n) {
|
|
157
159
|
case 0:
|
|
158
160
|
setOtpLoading(true);
|
|
159
161
|
setError('');
|
|
@@ -252,7 +254,7 @@ var PowrLogin = function PowrLogin(_ref) {
|
|
|
252
254
|
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3() {
|
|
253
255
|
var result, _t3, _t4;
|
|
254
256
|
return _regenerator().w(function (_context3) {
|
|
255
|
-
while (1) switch (_context3.
|
|
257
|
+
while (1) switch (_context3.n) {
|
|
256
258
|
case 0:
|
|
257
259
|
setLoading(true);
|
|
258
260
|
setError('');
|
|
@@ -335,7 +337,7 @@ var PowrLogin = function PowrLogin(_ref) {
|
|
|
335
337
|
_args4 = arguments,
|
|
336
338
|
_t5;
|
|
337
339
|
return _regenerator().w(function (_context4) {
|
|
338
|
-
while (1) switch (_context4.
|
|
340
|
+
while (1) switch (_context4.n) {
|
|
339
341
|
case 0:
|
|
340
342
|
skipPhoneValidation = _args4.length > 1 && _args4[1] !== undefined ? _args4[1] : false;
|
|
341
343
|
if (e) e.preventDefault();
|
|
@@ -374,7 +376,7 @@ var PowrLogin = function PowrLogin(_ref) {
|
|
|
374
376
|
if (!isLogin && formData.password !== formData.confirmPassword) {
|
|
375
377
|
errors.confirmPassword = 'Passwords do not match';
|
|
376
378
|
}
|
|
377
|
-
if (!isLogin && !isPhoneVerified) {
|
|
379
|
+
if (!isLogin && requirePhoneVerification && !isPhoneVerified) {
|
|
378
380
|
errors.phoneOrEmail = 'Please verify your phone number first';
|
|
379
381
|
}
|
|
380
382
|
if (!(Object.keys(errors).length > 0)) {
|
|
@@ -478,7 +480,7 @@ var PowrLogin = function PowrLogin(_ref) {
|
|
|
478
480
|
var _ref6 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee5() {
|
|
479
481
|
var _yield$apiCall2, data, ok, _t6;
|
|
480
482
|
return _regenerator().w(function (_context5) {
|
|
481
|
-
while (1) switch (_context5.
|
|
483
|
+
while (1) switch (_context5.n) {
|
|
482
484
|
case 0:
|
|
483
485
|
if (formData.phoneOrEmail.trim()) {
|
|
484
486
|
_context5.n = 1;
|
|
@@ -593,9 +595,9 @@ var PowrLogin = function PowrLogin(_ref) {
|
|
|
593
595
|
required: true
|
|
594
596
|
}), fieldErrors.phoneOrEmail && /*#__PURE__*/_react["default"].createElement("div", {
|
|
595
597
|
style: styles.fieldError
|
|
596
|
-
}, fieldErrors.phoneOrEmail), !isLogin && /*#__PURE__*/_react["default"].createElement("div", {
|
|
598
|
+
}, fieldErrors.phoneOrEmail), !isLogin && requirePhoneVerification && /*#__PURE__*/_react["default"].createElement("div", {
|
|
597
599
|
style: styles.helpText
|
|
598
|
-
}, "Registration requires phone verification for security"), !isLogin && isValidPhone(formData.phoneOrEmail) && !isPhoneVerified && /*#__PURE__*/_react["default"].createElement("button", {
|
|
600
|
+
}, "Registration requires phone verification for security"), !isLogin && requirePhoneVerification && isValidPhone(formData.phoneOrEmail) && !isPhoneVerified && /*#__PURE__*/_react["default"].createElement("button", {
|
|
599
601
|
type: "button",
|
|
600
602
|
onClick: function onClick() {
|
|
601
603
|
return sendFirebaseOtp(formatPhone(formData.phoneOrEmail));
|
package/dist/blogs/index.js
CHANGED
|
@@ -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.
|
|
44
|
+
while (1) switch (_context.n) {
|
|
45
45
|
case 0:
|
|
46
46
|
_context.p = 0;
|
|
47
47
|
_context.n = 1;
|
package/dist/chat/index.js
CHANGED
|
@@ -94,7 +94,7 @@ var PowrBaseChat = function PowrBaseChat(_ref) {
|
|
|
94
94
|
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
95
95
|
var _yield$apiCall, data, ok, _t;
|
|
96
96
|
return _regenerator().w(function (_context) {
|
|
97
|
-
while (1) switch (_context.
|
|
97
|
+
while (1) switch (_context.n) {
|
|
98
98
|
case 0:
|
|
99
99
|
_context.p = 0;
|
|
100
100
|
console.log('Fetching conversations...');
|
|
@@ -133,7 +133,7 @@ var PowrBaseChat = function PowrBaseChat(_ref) {
|
|
|
133
133
|
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
|
|
134
134
|
var _yield$apiCall2, data, ok, _t2;
|
|
135
135
|
return _regenerator().w(function (_context2) {
|
|
136
|
-
while (1) switch (_context2.
|
|
136
|
+
while (1) switch (_context2.n) {
|
|
137
137
|
case 0:
|
|
138
138
|
_context2.p = 0;
|
|
139
139
|
console.log('Fetching users...');
|
|
@@ -173,7 +173,7 @@ var PowrBaseChat = function PowrBaseChat(_ref) {
|
|
|
173
173
|
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(userId) {
|
|
174
174
|
var _yield$apiCall3, data, ok, _t3;
|
|
175
175
|
return _regenerator().w(function (_context3) {
|
|
176
|
-
while (1) switch (_context3.
|
|
176
|
+
while (1) switch (_context3.n) {
|
|
177
177
|
case 0:
|
|
178
178
|
_context3.p = 0;
|
|
179
179
|
_context3.n = 1;
|
|
@@ -215,7 +215,7 @@ var PowrBaseChat = function PowrBaseChat(_ref) {
|
|
|
215
215
|
var _ref5 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4(conversationId) {
|
|
216
216
|
var _yield$apiCall4, data, ok, _t4;
|
|
217
217
|
return _regenerator().w(function (_context4) {
|
|
218
|
-
while (1) switch (_context4.
|
|
218
|
+
while (1) switch (_context4.n) {
|
|
219
219
|
case 0:
|
|
220
220
|
_context4.p = 0;
|
|
221
221
|
setLoading(true);
|
|
@@ -259,7 +259,7 @@ var PowrBaseChat = function PowrBaseChat(_ref) {
|
|
|
259
259
|
var _ref6 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee5() {
|
|
260
260
|
var _yield$apiCall5, data, ok, _t5;
|
|
261
261
|
return _regenerator().w(function (_context5) {
|
|
262
|
-
while (1) switch (_context5.
|
|
262
|
+
while (1) switch (_context5.n) {
|
|
263
263
|
case 0:
|
|
264
264
|
if (!(!message.trim() || !selectedChat || sending)) {
|
|
265
265
|
_context5.n = 1;
|
package/dist/comments/index.js
CHANGED
|
@@ -90,7 +90,7 @@ var PowrBaseComments = function PowrBaseComments(_ref) {
|
|
|
90
90
|
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
91
91
|
var _yield$apiCall, data, ok, sortedComments, _t;
|
|
92
92
|
return _regenerator().w(function (_context) {
|
|
93
|
-
while (1) switch (_context.
|
|
93
|
+
while (1) switch (_context.n) {
|
|
94
94
|
case 0:
|
|
95
95
|
if (contentId) {
|
|
96
96
|
_context.n = 1;
|
|
@@ -141,7 +141,7 @@ var PowrBaseComments = function PowrBaseComments(_ref) {
|
|
|
141
141
|
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3() {
|
|
142
142
|
var commentPayload, _yield$apiCall2, data, ok, tempNewComment, _t2;
|
|
143
143
|
return _regenerator().w(function (_context3) {
|
|
144
|
-
while (1) switch (_context3.
|
|
144
|
+
while (1) switch (_context3.n) {
|
|
145
145
|
case 0:
|
|
146
146
|
if (!(!contentId || !newComment.trim() && selectedFiles.length === 0)) {
|
|
147
147
|
_context3.n = 1;
|
package/dist/feeds/admin.js
CHANGED
|
@@ -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.
|
|
47
|
+
while (1) switch (_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.
|
|
82
|
+
while (1) switch (_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.
|
|
61
|
+
while (1) switch (_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.
|
|
134
|
+
while (1) switch (_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.
|
|
71
|
+
while (1) switch (_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.
|
|
121
|
+
while (1) switch (_context2.n) {
|
|
122
122
|
case 0:
|
|
123
123
|
if (confirm('Are you sure you want to delete this post?')) {
|
|
124
124
|
_context2.n = 1;
|
package/dist/feeds/index.js
CHANGED
|
@@ -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.
|
|
81
|
+
while (1) switch (_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;
|
package/dist/forms/admin.js
CHANGED
|
@@ -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.
|
|
78
|
+
while (1) switch (_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.
|
|
132
|
+
while (1) switch (_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.
|
|
183
|
+
while (1) switch (_context3.n) {
|
|
184
184
|
case 0:
|
|
185
185
|
if (!(!projectId || !selectedFile)) {
|
|
186
186
|
_context3.n = 1;
|
package/dist/forms/index.js
CHANGED
|
@@ -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.
|
|
75
|
+
while (1) switch (_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.
|
|
124
|
+
while (1) switch (_context2.n) {
|
|
125
125
|
case 0:
|
|
126
126
|
setHasSubmitted(true);
|
|
127
127
|
setSubmitError(null);
|
package/dist/functions/admin.js
CHANGED
|
@@ -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.
|
|
147
|
+
while (1) switch (_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.
|
|
218
|
+
while (1) switch (_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.
|
|
306
|
+
while (1) switch (_context3.n) {
|
|
307
307
|
case 0:
|
|
308
308
|
if (!(!editingFunction || !editFormData.code)) {
|
|
309
309
|
_context3.n = 1;
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
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); }
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports["default"] = void 0;
|
|
8
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t2 in e) "default" !== _t2 && {}.hasOwnProperty.call(e, _t2) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t2)) && (i.get || i.set) ? o(f, _t2, i) : f[_t2] = e[_t2]); return f; })(e, t); }
|
|
10
|
+
function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = "function" == typeof Symbol ? Symbol : {}, n = r.iterator || "@@iterator", o = r.toStringTag || "@@toStringTag"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, "_invoke", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (c = i[4] || 3, u = i[5] === e ? i[3] : i[5], i[4] = 3, i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError("Generator is already running"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = "next"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i["return"]) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine2(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, "Generator"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, "toString", function () { return "[object Generator]"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }
|
|
11
|
+
function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { if (r) i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n;else { var o = function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); }; o("next", 0), o("throw", 1), o("return", 2); } }, _regeneratorDefine2(e, r, n, t); }
|
|
12
|
+
function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
|
|
13
|
+
function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
|
|
14
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
15
|
+
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."); }
|
|
16
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
17
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
18
|
+
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; } }
|
|
19
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
20
|
+
var PowrBaseInvoice = function PowrBaseInvoice(_ref) {
|
|
21
|
+
var _invoice$customerInfo, _invoice$customerInfo2, _invoice$customerInfo3, _invoice$customerInfo4, _invoice$serviceSecti, _invoice$serviceSecti2, _invoice$serviceSecti3, _invoice$paymentSecti, _invoice$paymentSecti2, _invoice$paymentSecti3, _invoice$paymentSecti4, _invoice$serviceSecti4, _invoice$serviceSecti5;
|
|
22
|
+
var projectId = _ref.projectId,
|
|
23
|
+
invoiceId = _ref.invoiceId;
|
|
24
|
+
var _useState = (0, _react.useState)(null),
|
|
25
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
26
|
+
invoice = _useState2[0],
|
|
27
|
+
setInvoice = _useState2[1];
|
|
28
|
+
var _useState3 = (0, _react.useState)(true),
|
|
29
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
30
|
+
loading = _useState4[0],
|
|
31
|
+
setLoading = _useState4[1];
|
|
32
|
+
(0, _react.useEffect)(function () {
|
|
33
|
+
var fetchInvoice = /*#__PURE__*/function () {
|
|
34
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
35
|
+
var response, data, _t;
|
|
36
|
+
return _regenerator().w(function (_context) {
|
|
37
|
+
while (1) switch (_context.n) {
|
|
38
|
+
case 0:
|
|
39
|
+
_context.p = 0;
|
|
40
|
+
_context.n = 1;
|
|
41
|
+
return fetch("https://api.powrbase.cloud/invoice/".concat(invoiceId, "?projectId=").concat(projectId));
|
|
42
|
+
case 1:
|
|
43
|
+
response = _context.v;
|
|
44
|
+
_context.n = 2;
|
|
45
|
+
return response.json();
|
|
46
|
+
case 2:
|
|
47
|
+
data = _context.v;
|
|
48
|
+
setInvoice(data === null || data === void 0 ? void 0 : data.invoice);
|
|
49
|
+
_context.n = 4;
|
|
50
|
+
break;
|
|
51
|
+
case 3:
|
|
52
|
+
_context.p = 3;
|
|
53
|
+
_t = _context.v;
|
|
54
|
+
console.error("Error fetching invoice:", _t);
|
|
55
|
+
case 4:
|
|
56
|
+
_context.p = 4;
|
|
57
|
+
setLoading(false);
|
|
58
|
+
return _context.f(4);
|
|
59
|
+
case 5:
|
|
60
|
+
return _context.a(2);
|
|
61
|
+
}
|
|
62
|
+
}, _callee, null, [[0, 3, 4, 5]]);
|
|
63
|
+
}));
|
|
64
|
+
return function fetchInvoice() {
|
|
65
|
+
return _ref2.apply(this, arguments);
|
|
66
|
+
};
|
|
67
|
+
}();
|
|
68
|
+
fetchInvoice();
|
|
69
|
+
}, [invoiceId, projectId]);
|
|
70
|
+
if (loading) return /*#__PURE__*/_react["default"].createElement("div", null, "Loading...");
|
|
71
|
+
if (!invoice) return /*#__PURE__*/_react["default"].createElement("div", null, "No invoice found.");
|
|
72
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
73
|
+
className: "z-50 flex items-center justify-center"
|
|
74
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
75
|
+
className: "bg-white rounded-lg shadow-lg max-w-3xl w-full p-4 md:p-8 relative flex flex-col md:flex-row gap-8",
|
|
76
|
+
style: {
|
|
77
|
+
maxHeight: "90vh",
|
|
78
|
+
overflowY: "auto",
|
|
79
|
+
margin: "5vw",
|
|
80
|
+
boxSizing: "border-box"
|
|
81
|
+
}
|
|
82
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
83
|
+
className: "flex-1 min-w-0"
|
|
84
|
+
}, /*#__PURE__*/_react["default"].createElement("h2", {
|
|
85
|
+
className: "text-2xl font-bold mb-6"
|
|
86
|
+
}, "Invoice Details"), /*#__PURE__*/_react["default"].createElement("div", {
|
|
87
|
+
className: "mb-4"
|
|
88
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
89
|
+
className: "text-lg font-semibold"
|
|
90
|
+
}, invoice.invoiceNumber), /*#__PURE__*/_react["default"].createElement("div", {
|
|
91
|
+
className: "text-gray-500 text-sm"
|
|
92
|
+
}, "Issued: ", invoice.dateOfIssue), /*#__PURE__*/_react["default"].createElement("div", {
|
|
93
|
+
className: "text-sm mt-2"
|
|
94
|
+
}, "Status:", " ", /*#__PURE__*/_react["default"].createElement("span", {
|
|
95
|
+
className: invoice.paymentStatus === "Paid" ? "text-green-600" : "text-yellow-600"
|
|
96
|
+
}, invoice.paymentStatus))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
97
|
+
className: "mb-4"
|
|
98
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
99
|
+
className: "font-semibold mb-1"
|
|
100
|
+
}, "Customer"), /*#__PURE__*/_react["default"].createElement("div", {
|
|
101
|
+
className: "text-sm"
|
|
102
|
+
}, (_invoice$customerInfo = invoice.customerInfo) === null || _invoice$customerInfo === void 0 ? void 0 : _invoice$customerInfo.name), /*#__PURE__*/_react["default"].createElement("div", {
|
|
103
|
+
className: "text-sm text-gray-500"
|
|
104
|
+
}, (_invoice$customerInfo2 = invoice.customerInfo) === null || _invoice$customerInfo2 === void 0 ? void 0 : _invoice$customerInfo2.email), /*#__PURE__*/_react["default"].createElement("div", {
|
|
105
|
+
className: "text-sm text-gray-500"
|
|
106
|
+
}, "Phone: ", (_invoice$customerInfo3 = invoice.customerInfo) === null || _invoice$customerInfo3 === void 0 ? void 0 : _invoice$customerInfo3.phoneNumber), /*#__PURE__*/_react["default"].createElement("div", {
|
|
107
|
+
className: "text-sm text-gray-500"
|
|
108
|
+
}, "Customer ID: ", (_invoice$customerInfo4 = invoice.customerInfo) === null || _invoice$customerInfo4 === void 0 ? void 0 : _invoice$customerInfo4.customerId)), /*#__PURE__*/_react["default"].createElement("div", {
|
|
109
|
+
className: "mb-4"
|
|
110
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
111
|
+
className: "font-semibold mb-1"
|
|
112
|
+
}, "Service"), /*#__PURE__*/_react["default"].createElement("div", {
|
|
113
|
+
className: "text-sm"
|
|
114
|
+
}, (_invoice$serviceSecti = invoice.serviceSection) === null || _invoice$serviceSecti === void 0 ? void 0 : _invoice$serviceSecti.serviceTitle), /*#__PURE__*/_react["default"].createElement("div", {
|
|
115
|
+
className: "text-sm text-gray-500"
|
|
116
|
+
}, "Provider: ", (_invoice$serviceSecti2 = invoice.serviceSection) === null || _invoice$serviceSecti2 === void 0 ? void 0 : _invoice$serviceSecti2.providerName), /*#__PURE__*/_react["default"].createElement("div", {
|
|
117
|
+
className: "text-sm text-gray-500"
|
|
118
|
+
}, "Duration: ", (_invoice$serviceSecti3 = invoice.serviceSection) === null || _invoice$serviceSecti3 === void 0 ? void 0 : _invoice$serviceSecti3.duration))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
119
|
+
className: "w-full md:w-80 flex-shrink-0 bg-gray-50 rounded-lg p-6 flex flex-col justify-between"
|
|
120
|
+
}, /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
121
|
+
className: "font-semibold mb-2"
|
|
122
|
+
}, "Payment Summary"), /*#__PURE__*/_react["default"].createElement("div", {
|
|
123
|
+
className: "flex justify-between text-sm mb-1"
|
|
124
|
+
}, /*#__PURE__*/_react["default"].createElement("span", null, "Base Amount"), /*#__PURE__*/_react["default"].createElement("span", null, "\u20B9", (_invoice$paymentSecti = invoice.paymentSection) === null || _invoice$paymentSecti === void 0 || (_invoice$paymentSecti = _invoice$paymentSecti.baseAmount) === null || _invoice$paymentSecti === void 0 ? void 0 : _invoice$paymentSecti.toLocaleString())), /*#__PURE__*/_react["default"].createElement("div", {
|
|
125
|
+
className: "flex justify-between text-sm mb-1"
|
|
126
|
+
}, /*#__PURE__*/_react["default"].createElement("span", null, "Tax"), /*#__PURE__*/_react["default"].createElement("span", null, "\u20B9", (_invoice$paymentSecti2 = invoice.paymentSection) === null || _invoice$paymentSecti2 === void 0 || (_invoice$paymentSecti2 = _invoice$paymentSecti2.tax) === null || _invoice$paymentSecti2 === void 0 ? void 0 : _invoice$paymentSecti2.toLocaleString())), /*#__PURE__*/_react["default"].createElement("div", {
|
|
127
|
+
className: "flex justify-between text-sm mb-1"
|
|
128
|
+
}, /*#__PURE__*/_react["default"].createElement("span", null, "Discount"), /*#__PURE__*/_react["default"].createElement("span", null, "-\u20B9", (_invoice$paymentSecti3 = invoice.paymentSection) === null || _invoice$paymentSecti3 === void 0 || (_invoice$paymentSecti3 = _invoice$paymentSecti3.discount) === null || _invoice$paymentSecti3 === void 0 ? void 0 : _invoice$paymentSecti3.toLocaleString())), /*#__PURE__*/_react["default"].createElement("div", {
|
|
129
|
+
className: "flex justify-between text-base font-bold border-t pt-2 mt-2"
|
|
130
|
+
}, /*#__PURE__*/_react["default"].createElement("span", null, "Total"), /*#__PURE__*/_react["default"].createElement("span", null, "\u20B9", (_invoice$paymentSecti4 = invoice.paymentSection) === null || _invoice$paymentSecti4 === void 0 || (_invoice$paymentSecti4 = _invoice$paymentSecti4.totalAmount) === null || _invoice$paymentSecti4 === void 0 ? void 0 : _invoice$paymentSecti4.toLocaleString()))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
131
|
+
className: "mt-8"
|
|
132
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
133
|
+
className: "font-semibold mb-1"
|
|
134
|
+
}, "Schedule"), /*#__PURE__*/_react["default"].createElement("div", {
|
|
135
|
+
className: "text-sm"
|
|
136
|
+
}, (_invoice$serviceSecti4 = invoice.serviceSection) === null || _invoice$serviceSecti4 === void 0 ? void 0 : _invoice$serviceSecti4.schedule), /*#__PURE__*/_react["default"].createElement("div", {
|
|
137
|
+
className: "text-sm text-gray-500"
|
|
138
|
+
}, "Mode: ", (_invoice$serviceSecti5 = invoice.serviceSection) === null || _invoice$serviceSecti5 === void 0 ? void 0 : _invoice$serviceSecti5.deliveryMode)))));
|
|
139
|
+
};
|
|
140
|
+
var _default = exports["default"] = PowrBaseInvoice;
|
package/dist/invoices/admin.js
CHANGED
|
@@ -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.
|
|
107
|
+
while (1) switch (_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.
|
|
156
|
+
while (1) switch (_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.
|
|
321
|
+
while (1) switch (_context3.n) {
|
|
322
322
|
case 0:
|
|
323
323
|
e.preventDefault();
|
|
324
324
|
if (editInvoiceId) {
|
package/dist/invoices/index.js
CHANGED
|
@@ -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.
|
|
39
|
+
while (1) switch (_context.n) {
|
|
40
40
|
case 0:
|
|
41
41
|
_context.p = 0;
|
|
42
42
|
_context.n = 1;
|
package/dist/likes/index.js
CHANGED
|
@@ -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.
|
|
86
|
+
while (1) switch (_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.
|
|
127
|
+
while (1) switch (_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.
|
|
171
|
+
while (1) switch (_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.
|
|
87
|
+
while (1) switch (_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.
|
|
165
|
+
while (1) switch (_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.
|
|
240
|
+
while (1) switch (_context3.n) {
|
|
241
241
|
case 0:
|
|
242
242
|
setLoadingGCS(true);
|
|
243
243
|
_context3.p = 1;
|
package/dist/powrVerify/index.js
CHANGED
|
@@ -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.
|
|
88
|
+
while (1) switch (_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.
|
|
153
|
+
while (1) switch (_context2.n) {
|
|
154
154
|
case 0:
|
|
155
155
|
setLoading(true);
|
|
156
156
|
setError('');
|
package/dist/reviews/index.js
CHANGED
|
@@ -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.
|
|
28
|
+
while (1) switch (_context2.n) {
|
|
29
29
|
case 0:
|
|
30
30
|
projectId = _ref.projectId, entityId = _ref.entityId, apiUrl = _ref.apiUrl;
|
|
31
31
|
_context2.p = 1;
|
package/dist/slides/admin.js
CHANGED
|
@@ -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.
|
|
89
|
+
while (1) switch (_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.
|
|
168
|
+
while (1) switch (_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.
|
|
232
|
+
while (1) switch (_context3.n) {
|
|
233
233
|
case 0:
|
|
234
234
|
setLoadingGCS(true);
|
|
235
235
|
_context3.p = 1;
|
package/dist/swiper/index.js
CHANGED
|
@@ -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.
|
|
30
|
+
while (1) switch (_context2.n) {
|
|
31
31
|
case 0:
|
|
32
32
|
projectId = _ref.projectId, tag = _ref.tag, apiUrl = _ref.apiUrl;
|
|
33
33
|
_context2.p = 1;
|
package/dist/tasks/admin.js
CHANGED
|
@@ -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.
|
|
77
|
+
while (1) switch (_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.
|
|
115
|
+
while (1) switch (_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.
|
|
146
|
+
while (1) switch (_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.
|
|
189
|
+
while (1) switch (_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.
|
|
228
|
+
while (1) switch (_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.
|
|
265
|
+
while (1) switch (_context6.n) {
|
|
266
266
|
case 0:
|
|
267
267
|
if (confirm('Are you sure you want to delete this task?')) {
|
|
268
268
|
_context6.n = 1;
|
package/dist/tasks/index.js
CHANGED
|
@@ -254,7 +254,7 @@ var PowrBaseTasks = function PowrBaseTasks(_ref) {
|
|
|
254
254
|
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
255
255
|
var _yield$apiCall, data, ok, _t;
|
|
256
256
|
return _regenerator().w(function (_context) {
|
|
257
|
-
while (1) switch (_context.
|
|
257
|
+
while (1) switch (_context.n) {
|
|
258
258
|
case 0:
|
|
259
259
|
_context.p = 0;
|
|
260
260
|
_context.n = 1;
|
|
@@ -292,7 +292,7 @@ var PowrBaseTasks = function PowrBaseTasks(_ref) {
|
|
|
292
292
|
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
|
|
293
293
|
var _yield$apiCall2, data, ok, _t2;
|
|
294
294
|
return _regenerator().w(function (_context2) {
|
|
295
|
-
while (1) switch (_context2.
|
|
295
|
+
while (1) switch (_context2.n) {
|
|
296
296
|
case 0:
|
|
297
297
|
_context2.p = 0;
|
|
298
298
|
_context2.n = 1;
|
|
@@ -323,7 +323,7 @@ var PowrBaseTasks = function PowrBaseTasks(_ref) {
|
|
|
323
323
|
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(e) {
|
|
324
324
|
var endpoint, method, _yield$apiCall3, data, ok, _t3;
|
|
325
325
|
return _regenerator().w(function (_context3) {
|
|
326
|
-
while (1) switch (_context3.
|
|
326
|
+
while (1) switch (_context3.n) {
|
|
327
327
|
case 0:
|
|
328
328
|
e.preventDefault();
|
|
329
329
|
_context3.p = 1;
|
|
@@ -366,7 +366,7 @@ var PowrBaseTasks = function PowrBaseTasks(_ref) {
|
|
|
366
366
|
var _ref5 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4(taskId, isActive) {
|
|
367
367
|
var _yield$apiCall4, data, ok, _t4;
|
|
368
368
|
return _regenerator().w(function (_context4) {
|
|
369
|
-
while (1) switch (_context4.
|
|
369
|
+
while (1) switch (_context4.n) {
|
|
370
370
|
case 0:
|
|
371
371
|
_context4.p = 0;
|
|
372
372
|
_context4.n = 1;
|
|
@@ -405,7 +405,7 @@ var PowrBaseTasks = function PowrBaseTasks(_ref) {
|
|
|
405
405
|
var _ref6 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee5(taskId) {
|
|
406
406
|
var _yield$apiCall5, data, ok, _t5;
|
|
407
407
|
return _regenerator().w(function (_context5) {
|
|
408
|
-
while (1) switch (_context5.
|
|
408
|
+
while (1) switch (_context5.n) {
|
|
409
409
|
case 0:
|
|
410
410
|
_context5.p = 0;
|
|
411
411
|
// Add task to executing set
|
|
@@ -455,7 +455,7 @@ var PowrBaseTasks = function PowrBaseTasks(_ref) {
|
|
|
455
455
|
var _ref7 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee6(taskId) {
|
|
456
456
|
var _yield$apiCall6, data, ok, _t6;
|
|
457
457
|
return _regenerator().w(function (_context6) {
|
|
458
|
-
while (1) switch (_context6.
|
|
458
|
+
while (1) switch (_context6.n) {
|
|
459
459
|
case 0:
|
|
460
460
|
if (confirm('Are you sure you want to delete this task?')) {
|
|
461
461
|
_context6.n = 1;
|
|
@@ -548,7 +548,7 @@ var PowrBaseTasks = function PowrBaseTasks(_ref) {
|
|
|
548
548
|
var _ref8 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee7(taskId) {
|
|
549
549
|
var _yield$apiCall7, data, ok, _t7;
|
|
550
550
|
return _regenerator().w(function (_context7) {
|
|
551
|
-
while (1) switch (_context7.
|
|
551
|
+
while (1) switch (_context7.n) {
|
|
552
552
|
case 0:
|
|
553
553
|
_context7.p = 0;
|
|
554
554
|
_context7.n = 1;
|
|
@@ -179,7 +179,7 @@ var PowrBaseTools = function PowrBaseTools(_ref) {
|
|
|
179
179
|
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
180
180
|
var _yield$apiCall, data, ok, _t;
|
|
181
181
|
return _regenerator().w(function (_context) {
|
|
182
|
-
while (1) switch (_context.
|
|
182
|
+
while (1) switch (_context.n) {
|
|
183
183
|
case 0:
|
|
184
184
|
_context.p = 0;
|
|
185
185
|
setLoading(true);
|
|
@@ -221,7 +221,7 @@ var PowrBaseTools = function PowrBaseTools(_ref) {
|
|
|
221
221
|
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
|
|
222
222
|
var _yield$apiCall2, data, ok, _t2;
|
|
223
223
|
return _regenerator().w(function (_context2) {
|
|
224
|
-
while (1) switch (_context2.
|
|
224
|
+
while (1) switch (_context2.n) {
|
|
225
225
|
case 0:
|
|
226
226
|
_context2.p = 0;
|
|
227
227
|
_context2.n = 1;
|
|
@@ -256,7 +256,7 @@ var PowrBaseTools = function PowrBaseTools(_ref) {
|
|
|
256
256
|
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(toolId, enabled) {
|
|
257
257
|
var _yield$apiCall3, data, ok, _t3;
|
|
258
258
|
return _regenerator().w(function (_context3) {
|
|
259
|
-
while (1) switch (_context3.
|
|
259
|
+
while (1) switch (_context3.n) {
|
|
260
260
|
case 0:
|
|
261
261
|
_context3.p = 0;
|
|
262
262
|
_context3.n = 1;
|
|
@@ -302,7 +302,7 @@ var PowrBaseTools = function PowrBaseTools(_ref) {
|
|
|
302
302
|
var _ref5 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4(toolId) {
|
|
303
303
|
var _yield$apiCall4, data, ok, _t4;
|
|
304
304
|
return _regenerator().w(function (_context4) {
|
|
305
|
-
while (1) switch (_context4.
|
|
305
|
+
while (1) switch (_context4.n) {
|
|
306
306
|
case 0:
|
|
307
307
|
_context4.p = 0;
|
|
308
308
|
_context4.n = 1;
|
|
@@ -331,7 +331,7 @@ var PowrBaseTools = function PowrBaseTools(_ref) {
|
|
|
331
331
|
var _ref6 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee5(toolId, actionId, params) {
|
|
332
332
|
var _yield$apiCall5, data, ok, _t5;
|
|
333
333
|
return _regenerator().w(function (_context5) {
|
|
334
|
-
while (1) switch (_context5.
|
|
334
|
+
while (1) switch (_context5.n) {
|
|
335
335
|
case 0:
|
|
336
336
|
_context5.p = 0;
|
|
337
337
|
_context5.n = 1;
|
|
@@ -406,7 +406,7 @@ var PowrBaseTools = function PowrBaseTools(_ref) {
|
|
|
406
406
|
var _ref7 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee6(config) {
|
|
407
407
|
var _yield$apiCall6, data, ok, _t6;
|
|
408
408
|
return _regenerator().w(function (_context6) {
|
|
409
|
-
while (1) switch (_context6.
|
|
409
|
+
while (1) switch (_context6.n) {
|
|
410
410
|
case 0:
|
|
411
411
|
_context6.p = 0;
|
|
412
412
|
_context6.n = 1;
|
|
@@ -176,7 +176,7 @@ var PowrToolConfig = function PowrToolConfig(_ref) {
|
|
|
176
176
|
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
177
177
|
var _t;
|
|
178
178
|
return _regenerator().w(function (_context) {
|
|
179
|
-
while (1) switch (_context.
|
|
179
|
+
while (1) switch (_context.n) {
|
|
180
180
|
case 0:
|
|
181
181
|
setLoading(true);
|
|
182
182
|
_context.p = 1;
|
package/dist/uploader/index.js
CHANGED
|
@@ -71,7 +71,7 @@ var PowrBaseUploader = function PowrBaseUploader(_ref) {
|
|
|
71
71
|
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(file) {
|
|
72
72
|
var formData, _yield$apiCall, data, ok, _t;
|
|
73
73
|
return _regenerator().w(function (_context) {
|
|
74
|
-
while (1) switch (_context.
|
|
74
|
+
while (1) switch (_context.n) {
|
|
75
75
|
case 0:
|
|
76
76
|
formData = new FormData();
|
|
77
77
|
formData.append('file', file);
|
|
@@ -110,7 +110,7 @@ var PowrBaseUploader = function PowrBaseUploader(_ref) {
|
|
|
110
110
|
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(filesList) {
|
|
111
111
|
var uploadedFiles, totalFiles, completedFiles, placeholderFiles, _loop, i, updatedFiles, _t2;
|
|
112
112
|
return _regenerator().w(function (_context3) {
|
|
113
|
-
while (1) switch (_context3.
|
|
113
|
+
while (1) switch (_context3.n) {
|
|
114
114
|
case 0:
|
|
115
115
|
if (!(!filesList || isUploading)) {
|
|
116
116
|
_context3.n = 1;
|
package/dist/users/admin.js
CHANGED
|
@@ -48,7 +48,7 @@ var PowrBaseUsersAdmin = function PowrBaseUsersAdmin(_ref) {
|
|
|
48
48
|
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
49
49
|
var _yield$apiCall, data, ok, _t;
|
|
50
50
|
return _regenerator().w(function (_context) {
|
|
51
|
-
while (1) switch (_context.
|
|
51
|
+
while (1) switch (_context.n) {
|
|
52
52
|
case 0:
|
|
53
53
|
_context.p = 0;
|
|
54
54
|
setLoading(true);
|
package/dist/utils/firebase.js
CHANGED
|
@@ -45,14 +45,14 @@ function _asyncToGenerator(n) { return function () { var t = this, e = arguments
|
|
|
45
45
|
// };
|
|
46
46
|
|
|
47
47
|
var firebaseConfig = {
|
|
48
|
-
apiKey: process.env.REACT_APP_FIREBASE_API_KEY || "
|
|
49
|
-
authDomain: process.env.REACT_APP_FIREBASE_AUTH_DOMAIN || "
|
|
50
|
-
projectId: process.env.REACT_APP_FIREBASE_PROJECT_ID || "
|
|
51
|
-
storageBucket: process.env.REACT_APP_FIREBASE_STORAGE_BUCKET || "
|
|
52
|
-
messagingSenderId: process.env.REACT_APP_FIREBASE_MESSAGING_SENDER_ID || "
|
|
53
|
-
appId: process.env.REACT_APP_FIREBASE_APP_ID || "1:
|
|
54
|
-
measurementId: process.env.REACT_APP_FIREBASE_MEASUREMENT_ID || "G-
|
|
55
|
-
databaseURL: process.env.REACT_APP_FIREBASE_DATABASE_URL ||
|
|
48
|
+
apiKey: process.env.REACT_APP_FIREBASE_API_KEY || "AIzaSyDat2fOUObvO2VYjLmFCw6rEtXJ2ifgVes",
|
|
49
|
+
authDomain: process.env.REACT_APP_FIREBASE_AUTH_DOMAIN || "urbanstall-a4c7b.firebaseapp.com",
|
|
50
|
+
projectId: process.env.REACT_APP_FIREBASE_PROJECT_ID || "urbanstall-a4c7b",
|
|
51
|
+
storageBucket: process.env.REACT_APP_FIREBASE_STORAGE_BUCKET || "urbanstall-a4c7b.appspot.com",
|
|
52
|
+
messagingSenderId: process.env.REACT_APP_FIREBASE_MESSAGING_SENDER_ID || "215923273605",
|
|
53
|
+
appId: process.env.REACT_APP_FIREBASE_APP_ID || "1:215923273605:web:7b60fd3f961efbd0be9eec",
|
|
54
|
+
measurementId: process.env.REACT_APP_FIREBASE_MEASUREMENT_ID || "G-KQ36ZTNCD5",
|
|
55
|
+
databaseURL: process.env.REACT_APP_FIREBASE_DATABASE_URL || "https://urbanstall-a4c7b.firebaseio.com"
|
|
56
56
|
};
|
|
57
57
|
var app = exports.app = (0, _app.initializeApp)(firebaseConfig);
|
|
58
58
|
var functions = exports.functions = (0, _functions.getFunctions)(app);
|
|
@@ -61,7 +61,7 @@ var fireAsync = /*#__PURE__*/function () {
|
|
|
61
61
|
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(method, params) {
|
|
62
62
|
var callable, result, _t;
|
|
63
63
|
return _regenerator().w(function (_context) {
|
|
64
|
-
while (1) switch (_context.
|
|
64
|
+
while (1) switch (_context.n) {
|
|
65
65
|
case 0:
|
|
66
66
|
callable = (0, _functions.httpsCallable)(functions, method);
|
|
67
67
|
_context.p = 1;
|
package/dist/waitlists/admin.js
CHANGED
|
@@ -58,7 +58,7 @@ var PowrWaitListAdmin = function PowrWaitListAdmin(_ref) {
|
|
|
58
58
|
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
59
59
|
var _yield$apiCall, data, ok, _t;
|
|
60
60
|
return _regenerator().w(function (_context) {
|
|
61
|
-
while (1) switch (_context.
|
|
61
|
+
while (1) switch (_context.n) {
|
|
62
62
|
case 0:
|
|
63
63
|
_context.p = 0;
|
|
64
64
|
setLoading(true);
|
|
@@ -120,7 +120,7 @@ var PowrWaitListAdmin = function PowrWaitListAdmin(_ref) {
|
|
|
120
120
|
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
|
|
121
121
|
var _yield$apiCall2, result, ok, _t2;
|
|
122
122
|
return _regenerator().w(function (_context2) {
|
|
123
|
-
while (1) switch (_context2.
|
|
123
|
+
while (1) switch (_context2.n) {
|
|
124
124
|
case 0:
|
|
125
125
|
if (formData.email) {
|
|
126
126
|
_context2.n = 1;
|
package/dist/waitlists/index.js
CHANGED
|
@@ -45,7 +45,7 @@ var PowrWaitList = function PowrWaitList(_ref) {
|
|
|
45
45
|
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(e) {
|
|
46
46
|
var _yield$apiCall, data, ok, _t;
|
|
47
47
|
return _regenerator().w(function (_context) {
|
|
48
|
-
while (1) switch (_context.
|
|
48
|
+
while (1) switch (_context.n) {
|
|
49
49
|
case 0:
|
|
50
50
|
e.preventDefault();
|
|
51
51
|
setLoading(true);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "powr-sdk-web",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.4",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "babel src -d dist --copy-files",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"license": "MIT",
|
|
19
19
|
"repository": {
|
|
20
20
|
"type": "git",
|
|
21
|
-
"url": "https://github.com/lawaziatech/powr-sdk-web.git"
|
|
21
|
+
"url": "git+https://github.com/lawaziatech/powr-sdk-web.git"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"filepond": "*",
|