@oxyhq/services 5.17.18 → 5.18.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.
- package/lib/commonjs/core/mixins/OxyServices.features.js +372 -0
- package/lib/commonjs/core/mixins/OxyServices.features.js.map +1 -0
- package/lib/commonjs/core/mixins/index.js +3 -2
- package/lib/commonjs/core/mixins/index.js.map +1 -1
- package/lib/commonjs/ui/components/GroupedItem.js +11 -1
- package/lib/commonjs/ui/components/GroupedItem.js.map +1 -1
- package/lib/commonjs/ui/components/SettingRow.js +17 -4
- package/lib/commonjs/ui/components/SettingRow.js.map +1 -1
- package/lib/commonjs/ui/components/feedback/FormInput.js +72 -0
- package/lib/commonjs/ui/components/feedback/FormInput.js.map +1 -0
- package/lib/commonjs/ui/components/feedback/ProgressIndicator.js +33 -0
- package/lib/commonjs/ui/components/feedback/ProgressIndicator.js.map +1 -0
- package/lib/commonjs/ui/components/feedback/constants.js +59 -0
- package/lib/commonjs/ui/components/feedback/constants.js.map +1 -0
- package/lib/commonjs/ui/components/feedback/feedbackStyles.js +262 -0
- package/lib/commonjs/ui/components/feedback/feedbackStyles.js.map +1 -0
- package/lib/commonjs/ui/components/feedback/index.js +54 -0
- package/lib/commonjs/ui/components/feedback/index.js.map +1 -0
- package/lib/commonjs/ui/components/feedback/types.js +6 -0
- package/lib/commonjs/ui/components/feedback/types.js.map +1 -0
- package/lib/commonjs/ui/components/feedback/useFeedbackForm.js +52 -0
- package/lib/commonjs/ui/components/feedback/useFeedbackForm.js.map +1 -0
- package/lib/commonjs/ui/components/modals/DeleteAccountModal.js +282 -0
- package/lib/commonjs/ui/components/modals/DeleteAccountModal.js.map +1 -0
- package/lib/commonjs/ui/components/modals/index.js +14 -0
- package/lib/commonjs/ui/components/modals/index.js.map +1 -0
- package/lib/commonjs/ui/components/payment/PaymentDetailsStep.js +309 -0
- package/lib/commonjs/ui/components/payment/PaymentDetailsStep.js.map +1 -0
- package/lib/commonjs/ui/components/payment/PaymentMethodStep.js +79 -0
- package/lib/commonjs/ui/components/payment/PaymentMethodStep.js.map +1 -0
- package/lib/commonjs/ui/components/payment/PaymentReviewStep.js +108 -0
- package/lib/commonjs/ui/components/payment/PaymentReviewStep.js.map +1 -0
- package/lib/commonjs/ui/components/payment/PaymentSuccessStep.js +79 -0
- package/lib/commonjs/ui/components/payment/PaymentSuccessStep.js.map +1 -0
- package/lib/commonjs/ui/components/payment/PaymentSummaryStep.js +176 -0
- package/lib/commonjs/ui/components/payment/PaymentSummaryStep.js.map +1 -0
- package/lib/commonjs/ui/components/payment/constants.js +53 -0
- package/lib/commonjs/ui/components/payment/constants.js.map +1 -0
- package/lib/commonjs/ui/components/payment/index.js +80 -0
- package/lib/commonjs/ui/components/payment/index.js.map +1 -0
- package/lib/commonjs/ui/components/payment/paymentStyles.js +409 -0
- package/lib/commonjs/ui/components/payment/paymentStyles.js.map +1 -0
- package/lib/commonjs/ui/components/payment/types.js +6 -0
- package/lib/commonjs/ui/components/payment/types.js.map +1 -0
- package/lib/commonjs/ui/hooks/index.js +26 -0
- package/lib/commonjs/ui/hooks/index.js.map +1 -1
- package/lib/commonjs/ui/hooks/useAsyncAction.js +95 -0
- package/lib/commonjs/ui/hooks/useAsyncAction.js.map +1 -0
- package/lib/commonjs/ui/hooks/useSettingToggle.js +126 -0
- package/lib/commonjs/ui/hooks/useSettingToggle.js.map +1 -0
- package/lib/commonjs/ui/navigation/routes.js +1 -0
- package/lib/commonjs/ui/navigation/routes.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountCenterScreen.js +4 -2
- package/lib/commonjs/ui/screens/AccountCenterScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountOverviewScreen.js +33 -30
- package/lib/commonjs/ui/screens/AccountOverviewScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/FAQScreen.js +315 -0
- package/lib/commonjs/ui/screens/FAQScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/FeedbackScreen.js +73 -590
- package/lib/commonjs/ui/screens/FeedbackScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/HelpSupportScreen.js +8 -7
- package/lib/commonjs/ui/screens/HelpSupportScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PaymentGatewayScreen.js +67 -1395
- package/lib/commonjs/ui/screens/PaymentGatewayScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ProfileScreen.js +13 -5
- package/lib/commonjs/ui/screens/ProfileScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/SavesCollectionsScreen.js +16 -10
- package/lib/commonjs/ui/screens/SavesCollectionsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/karma/KarmaCenterScreen.js +23 -11
- package/lib/commonjs/ui/screens/karma/KarmaCenterScreen.js.map +1 -1
- package/lib/module/core/mixins/OxyServices.features.js +369 -0
- package/lib/module/core/mixins/OxyServices.features.js.map +1 -0
- package/lib/module/core/mixins/index.js +3 -2
- package/lib/module/core/mixins/index.js.map +1 -1
- package/lib/module/ui/components/GroupedItem.js +11 -1
- package/lib/module/ui/components/GroupedItem.js.map +1 -1
- package/lib/module/ui/components/SettingRow.js +17 -4
- package/lib/module/ui/components/SettingRow.js.map +1 -1
- package/lib/module/ui/components/feedback/FormInput.js +67 -0
- package/lib/module/ui/components/feedback/FormInput.js.map +1 -0
- package/lib/module/ui/components/feedback/ProgressIndicator.js +28 -0
- package/lib/module/ui/components/feedback/ProgressIndicator.js.map +1 -0
- package/lib/module/ui/components/feedback/constants.js +55 -0
- package/lib/module/ui/components/feedback/constants.js.map +1 -0
- package/lib/module/ui/components/feedback/feedbackStyles.js +257 -0
- package/lib/module/ui/components/feedback/feedbackStyles.js.map +1 -0
- package/lib/module/ui/components/feedback/index.js +8 -0
- package/lib/module/ui/components/feedback/index.js.map +1 -0
- package/lib/module/ui/components/feedback/types.js +4 -0
- package/lib/module/ui/components/feedback/types.js.map +1 -0
- package/lib/module/ui/components/feedback/useFeedbackForm.js +47 -0
- package/lib/module/ui/components/feedback/useFeedbackForm.js.map +1 -0
- package/lib/module/ui/components/modals/DeleteAccountModal.js +276 -0
- package/lib/module/ui/components/modals/DeleteAccountModal.js.map +1 -0
- package/lib/module/ui/components/modals/index.js +4 -0
- package/lib/module/ui/components/modals/index.js.map +1 -0
- package/lib/module/ui/components/payment/PaymentDetailsStep.js +303 -0
- package/lib/module/ui/components/payment/PaymentDetailsStep.js.map +1 -0
- package/lib/module/ui/components/payment/PaymentMethodStep.js +73 -0
- package/lib/module/ui/components/payment/PaymentMethodStep.js.map +1 -0
- package/lib/module/ui/components/payment/PaymentReviewStep.js +102 -0
- package/lib/module/ui/components/payment/PaymentReviewStep.js.map +1 -0
- package/lib/module/ui/components/payment/PaymentSuccessStep.js +73 -0
- package/lib/module/ui/components/payment/PaymentSuccessStep.js.map +1 -0
- package/lib/module/ui/components/payment/PaymentSummaryStep.js +170 -0
- package/lib/module/ui/components/payment/PaymentSummaryStep.js.map +1 -0
- package/lib/module/ui/components/payment/constants.js +47 -0
- package/lib/module/ui/components/payment/constants.js.map +1 -0
- package/lib/module/ui/components/payment/index.js +10 -0
- package/lib/module/ui/components/payment/index.js.map +1 -0
- package/lib/module/ui/components/payment/paymentStyles.js +404 -0
- package/lib/module/ui/components/payment/paymentStyles.js.map +1 -0
- package/lib/module/ui/components/payment/types.js +4 -0
- package/lib/module/ui/components/payment/types.js.map +1 -0
- package/lib/module/ui/hooks/index.js +2 -0
- package/lib/module/ui/hooks/index.js.map +1 -1
- package/lib/module/ui/hooks/useAsyncAction.js +89 -0
- package/lib/module/ui/hooks/useAsyncAction.js.map +1 -0
- package/lib/module/ui/hooks/useSettingToggle.js +120 -0
- package/lib/module/ui/hooks/useSettingToggle.js.map +1 -0
- package/lib/module/ui/navigation/routes.js +1 -0
- package/lib/module/ui/navigation/routes.js.map +1 -1
- package/lib/module/ui/screens/AccountCenterScreen.js +4 -2
- package/lib/module/ui/screens/AccountCenterScreen.js.map +1 -1
- package/lib/module/ui/screens/AccountOverviewScreen.js +33 -30
- package/lib/module/ui/screens/AccountOverviewScreen.js.map +1 -1
- package/lib/module/ui/screens/FAQScreen.js +310 -0
- package/lib/module/ui/screens/FAQScreen.js.map +1 -0
- package/lib/module/ui/screens/FeedbackScreen.js +64 -581
- package/lib/module/ui/screens/FeedbackScreen.js.map +1 -1
- package/lib/module/ui/screens/HelpSupportScreen.js +8 -7
- package/lib/module/ui/screens/HelpSupportScreen.js.map +1 -1
- package/lib/module/ui/screens/PaymentGatewayScreen.js +67 -1397
- package/lib/module/ui/screens/PaymentGatewayScreen.js.map +1 -1
- package/lib/module/ui/screens/ProfileScreen.js +13 -5
- package/lib/module/ui/screens/ProfileScreen.js.map +1 -1
- package/lib/module/ui/screens/SavesCollectionsScreen.js +16 -10
- package/lib/module/ui/screens/SavesCollectionsScreen.js.map +1 -1
- package/lib/module/ui/screens/karma/KarmaCenterScreen.js +23 -11
- package/lib/module/ui/screens/karma/KarmaCenterScreen.js.map +1 -1
- package/lib/typescript/core/mixins/OxyServices.features.d.ts +229 -0
- package/lib/typescript/core/mixins/OxyServices.features.d.ts.map +1 -0
- package/lib/typescript/core/mixins/index.d.ts +71 -1
- package/lib/typescript/core/mixins/index.d.ts.map +1 -1
- package/lib/typescript/ui/components/GroupedItem.d.ts +5 -1
- package/lib/typescript/ui/components/GroupedItem.d.ts.map +1 -1
- package/lib/typescript/ui/components/SettingRow.d.ts +6 -0
- package/lib/typescript/ui/components/SettingRow.d.ts.map +1 -1
- package/lib/typescript/ui/components/feedback/FormInput.d.ts +20 -0
- package/lib/typescript/ui/components/feedback/FormInput.d.ts.map +1 -0
- package/lib/typescript/ui/components/feedback/ProgressIndicator.d.ts +11 -0
- package/lib/typescript/ui/components/feedback/ProgressIndicator.d.ts.map +1 -0
- package/lib/typescript/ui/components/feedback/constants.d.ts +5 -0
- package/lib/typescript/ui/components/feedback/constants.d.ts.map +1 -0
- package/lib/typescript/ui/components/feedback/feedbackStyles.d.ts +280 -0
- package/lib/typescript/ui/components/feedback/feedbackStyles.d.ts.map +1 -0
- package/lib/typescript/ui/components/feedback/index.d.ts +7 -0
- package/lib/typescript/ui/components/feedback/index.d.ts.map +1 -0
- package/lib/typescript/ui/components/feedback/types.d.ts +46 -0
- package/lib/typescript/ui/components/feedback/types.d.ts.map +1 -0
- package/lib/typescript/ui/components/feedback/useFeedbackForm.d.ts +9 -0
- package/lib/typescript/ui/components/feedback/useFeedbackForm.d.ts.map +1 -0
- package/lib/typescript/ui/components/modals/DeleteAccountModal.d.ts +19 -0
- package/lib/typescript/ui/components/modals/DeleteAccountModal.d.ts.map +1 -0
- package/lib/typescript/ui/components/modals/index.d.ts +2 -0
- package/lib/typescript/ui/components/modals/index.d.ts.map +1 -0
- package/lib/typescript/ui/components/payment/PaymentDetailsStep.d.ts +21 -0
- package/lib/typescript/ui/components/payment/PaymentDetailsStep.d.ts.map +1 -0
- package/lib/typescript/ui/components/payment/PaymentMethodStep.d.ts +14 -0
- package/lib/typescript/ui/components/payment/PaymentMethodStep.d.ts.map +1 -0
- package/lib/typescript/ui/components/payment/PaymentReviewStep.d.ts +16 -0
- package/lib/typescript/ui/components/payment/PaymentReviewStep.d.ts.map +1 -0
- package/lib/typescript/ui/components/payment/PaymentSuccessStep.d.ts +10 -0
- package/lib/typescript/ui/components/payment/PaymentSuccessStep.d.ts.map +1 -0
- package/lib/typescript/ui/components/payment/PaymentSummaryStep.d.ts +15 -0
- package/lib/typescript/ui/components/payment/PaymentSummaryStep.d.ts.map +1 -0
- package/lib/typescript/ui/components/payment/constants.d.ts +7 -0
- package/lib/typescript/ui/components/payment/constants.d.ts.map +1 -0
- package/lib/typescript/ui/components/payment/index.d.ts +9 -0
- package/lib/typescript/ui/components/payment/index.d.ts.map +1 -0
- package/lib/typescript/ui/components/payment/paymentStyles.d.ts +396 -0
- package/lib/typescript/ui/components/payment/paymentStyles.d.ts.map +1 -0
- package/lib/typescript/ui/components/payment/types.d.ts +40 -0
- package/lib/typescript/ui/components/payment/types.d.ts.map +1 -0
- package/lib/typescript/ui/hooks/index.d.ts +2 -0
- package/lib/typescript/ui/hooks/index.d.ts.map +1 -1
- package/lib/typescript/ui/hooks/useAsyncAction.d.ts +51 -0
- package/lib/typescript/ui/hooks/useAsyncAction.d.ts.map +1 -0
- package/lib/typescript/ui/hooks/useSettingToggle.d.ts +55 -0
- package/lib/typescript/ui/hooks/useSettingToggle.d.ts.map +1 -0
- package/lib/typescript/ui/navigation/routes.d.ts +1 -1
- package/lib/typescript/ui/navigation/routes.d.ts.map +1 -1
- package/lib/typescript/ui/screens/AccountOverviewScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/FAQScreen.d.ts +5 -0
- package/lib/typescript/ui/screens/FAQScreen.d.ts.map +1 -0
- package/lib/typescript/ui/screens/FeedbackScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/HelpSupportScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/PaymentGatewayScreen.d.ts +3 -15
- package/lib/typescript/ui/screens/PaymentGatewayScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/ProfileScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/SavesCollectionsScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/karma/KarmaCenterScreen.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/core/mixins/OxyServices.features.ts +428 -0
- package/src/core/mixins/index.ts +20 -17
- package/src/ui/components/GroupedItem.tsx +19 -1
- package/src/ui/components/SettingRow.tsx +26 -4
- package/src/ui/components/feedback/FormInput.tsx +84 -0
- package/src/ui/components/feedback/ProgressIndicator.tsx +35 -0
- package/src/ui/components/feedback/constants.ts +22 -0
- package/src/ui/components/feedback/feedbackStyles.ts +247 -0
- package/src/ui/components/feedback/index.ts +6 -0
- package/src/ui/components/feedback/types.ts +52 -0
- package/src/ui/components/feedback/useFeedbackForm.ts +44 -0
- package/src/ui/components/modals/DeleteAccountModal.tsx +294 -0
- package/src/ui/components/modals/index.ts +1 -0
- package/src/ui/components/payment/PaymentDetailsStep.tsx +222 -0
- package/src/ui/components/payment/PaymentMethodStep.tsx +89 -0
- package/src/ui/components/payment/PaymentReviewStep.tsx +126 -0
- package/src/ui/components/payment/PaymentSuccessStep.tsx +71 -0
- package/src/ui/components/payment/PaymentSummaryStep.tsx +159 -0
- package/src/ui/components/payment/constants.ts +39 -0
- package/src/ui/components/payment/index.ts +9 -0
- package/src/ui/components/payment/paymentStyles.ts +397 -0
- package/src/ui/components/payment/types.ts +45 -0
- package/src/ui/hooks/index.ts +3 -1
- package/src/ui/hooks/useAsyncAction.ts +129 -0
- package/src/ui/hooks/useSettingToggle.ts +147 -0
- package/src/ui/navigation/routes.ts +2 -0
- package/src/ui/screens/AccountCenterScreen.tsx +2 -2
- package/src/ui/screens/AccountOverviewScreen.tsx +35 -37
- package/src/ui/screens/FAQScreen.tsx +332 -0
- package/src/ui/screens/FeedbackScreen.tsx +91 -626
- package/src/ui/screens/HelpSupportScreen.tsx +7 -5
- package/src/ui/screens/PaymentGatewayScreen.tsx +96 -1275
- package/src/ui/screens/ProfileScreen.tsx +11 -6
- package/src/ui/screens/SavesCollectionsScreen.tsx +19 -10
- package/src/ui/screens/karma/KarmaCenterScreen.tsx +10 -10
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
+
const ProgressIndicator = /*#__PURE__*/_react.default.memo(({
|
|
12
|
+
currentStep,
|
|
13
|
+
totalSteps,
|
|
14
|
+
colors,
|
|
15
|
+
styles
|
|
16
|
+
}) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
17
|
+
style: styles.progressContainer,
|
|
18
|
+
accessibilityRole: "progressbar",
|
|
19
|
+
accessibilityLabel: `Step ${currentStep + 1} of ${totalSteps}`,
|
|
20
|
+
children: Array.from({
|
|
21
|
+
length: totalSteps
|
|
22
|
+
}, (_, index) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
23
|
+
style: [styles.progressDot, currentStep === index ? {
|
|
24
|
+
backgroundColor: colors.primary,
|
|
25
|
+
width: 24
|
|
26
|
+
} : {
|
|
27
|
+
backgroundColor: colors.border
|
|
28
|
+
}]
|
|
29
|
+
}, index))
|
|
30
|
+
}));
|
|
31
|
+
ProgressIndicator.displayName = 'ProgressIndicator';
|
|
32
|
+
var _default = exports.default = ProgressIndicator;
|
|
33
|
+
//# sourceMappingURL=ProgressIndicator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_jsxRuntime","e","__esModule","default","ProgressIndicator","React","memo","currentStep","totalSteps","colors","styles","jsx","View","style","progressContainer","accessibilityRole","accessibilityLabel","children","Array","from","length","_","index","progressDot","backgroundColor","primary","width","border","displayName","_default","exports"],"sourceRoot":"../../../../../src","sources":["ui/components/feedback/ProgressIndicator.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAAoC,IAAAE,WAAA,GAAAF,OAAA;AAAA,SAAAD,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAUpC,MAAMG,iBAAmD,gBAAGC,cAAK,CAACC,IAAI,CAAC,CAAC;EACpEC,WAAW;EACXC,UAAU;EACVC,MAAM;EACNC;AACJ,CAAC,kBACG,IAAAV,WAAA,CAAAW,GAAA,EAACZ,YAAA,CAAAa,IAAI;EAACC,KAAK,EAAEH,MAAM,CAACI,iBAAkB;EAACC,iBAAiB,EAAC,aAAa;EAACC,kBAAkB,EAAE,QAAQT,WAAW,GAAG,CAAC,OAAOC,UAAU,EAAG;EAAAS,QAAA,EACjIC,KAAK,CAACC,IAAI,CAAC;IAAEC,MAAM,EAAEZ;EAAW,CAAC,EAAE,CAACa,CAAC,EAAEC,KAAK,kBACzC,IAAAtB,WAAA,CAAAW,GAAA,EAACZ,YAAA,CAAAa,IAAI;IAEDC,KAAK,EAAE,CACHH,MAAM,CAACa,WAAW,EAClBhB,WAAW,KAAKe,KAAK,GACjB;MAAEE,eAAe,EAAEf,MAAM,CAACgB,OAAO;MAAEC,KAAK,EAAE;IAAG,CAAC,GAC9C;MAAEF,eAAe,EAAEf,MAAM,CAACkB;IAAO,CAAC;EACxC,GANGL,KAOR,CACJ;AAAC,CACA,CACT,CAAC;AAEFlB,iBAAiB,CAACwB,WAAW,GAAG,mBAAmB;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAA3B,OAAA,GAErCC,iBAAiB","ignoreList":[]}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.PRIORITY_LEVELS = exports.FEEDBACK_TYPES = exports.CATEGORIES = void 0;
|
|
7
|
+
const FEEDBACK_TYPES = exports.FEEDBACK_TYPES = [{
|
|
8
|
+
id: 'bug',
|
|
9
|
+
label: 'Bug Report',
|
|
10
|
+
icon: 'bug',
|
|
11
|
+
color: '#FF3B30',
|
|
12
|
+
description: 'Report a problem or issue'
|
|
13
|
+
}, {
|
|
14
|
+
id: 'feature',
|
|
15
|
+
label: 'Feature Request',
|
|
16
|
+
icon: 'bulb',
|
|
17
|
+
color: '#007AFF',
|
|
18
|
+
description: 'Suggest a new feature'
|
|
19
|
+
}, {
|
|
20
|
+
id: 'general',
|
|
21
|
+
label: 'General Feedback',
|
|
22
|
+
icon: 'chatbubble',
|
|
23
|
+
color: '#34C759',
|
|
24
|
+
description: 'Share your thoughts'
|
|
25
|
+
}, {
|
|
26
|
+
id: 'support',
|
|
27
|
+
label: 'Support Request',
|
|
28
|
+
icon: 'help-circle',
|
|
29
|
+
color: '#FF9500',
|
|
30
|
+
description: 'Get help with something'
|
|
31
|
+
}];
|
|
32
|
+
const PRIORITY_LEVELS = exports.PRIORITY_LEVELS = [{
|
|
33
|
+
id: 'low',
|
|
34
|
+
label: 'Low',
|
|
35
|
+
icon: 'arrow-down',
|
|
36
|
+
color: '#34C759'
|
|
37
|
+
}, {
|
|
38
|
+
id: 'medium',
|
|
39
|
+
label: 'Medium',
|
|
40
|
+
icon: 'remove',
|
|
41
|
+
color: '#FF9500'
|
|
42
|
+
}, {
|
|
43
|
+
id: 'high',
|
|
44
|
+
label: 'High',
|
|
45
|
+
icon: 'arrow-up',
|
|
46
|
+
color: '#FF3B30'
|
|
47
|
+
}, {
|
|
48
|
+
id: 'critical',
|
|
49
|
+
label: 'Critical',
|
|
50
|
+
icon: 'warning',
|
|
51
|
+
color: '#FF0000'
|
|
52
|
+
}];
|
|
53
|
+
const CATEGORIES = exports.CATEGORIES = {
|
|
54
|
+
bug: ['UI/UX', 'Performance', 'Authentication', 'File Management', 'Billing', 'Other'],
|
|
55
|
+
feature: ['User Interface', 'File Management', 'Security', 'Performance', 'Integration', 'Other'],
|
|
56
|
+
general: ['User Experience', 'Design', 'Performance', 'Documentation', 'Other'],
|
|
57
|
+
support: ['Account Issues', 'Billing', 'Technical Problems', 'Feature Questions', 'Other']
|
|
58
|
+
};
|
|
59
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["FEEDBACK_TYPES","exports","id","label","icon","color","description","PRIORITY_LEVELS","CATEGORIES","bug","feature","general","support"],"sourceRoot":"../../../../../src","sources":["ui/components/feedback/constants.ts"],"mappings":";;;;;;AAEO,MAAMA,cAA8B,GAAAC,OAAA,CAAAD,cAAA,GAAG,CAC1C;EAAEE,E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AC;EACtFC,OAAO,EAAE,CAAC,gBAAgB,EAAE,iBAAiB,EAAE,UAAU,EAAE,aAAa,EAAE,aAAa,EAAE,OAAO,CAAC;EACjGC,OAAO,EAAE,CAAC,iBAAiB,EAAE,QAAQ,EAAE,aAAa,EAAE,eAAe,EAAE,OAAO,CAAC;EAC/EC,OAAO,EAAE,CAAC,gBAAgB,EAAE,SAAS,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,OAAO;AAC7F,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.createFeedbackStyles = void 0;
|
|
7
|
+
var _reactNative = require("react-native");
|
|
8
|
+
var _spacing = require("../../constants/spacing");
|
|
9
|
+
const createFeedbackStyles = colors => _reactNative.StyleSheet.create({
|
|
10
|
+
container: {
|
|
11
|
+
flex: 1
|
|
12
|
+
},
|
|
13
|
+
fullBleed: {
|
|
14
|
+
width: '100%',
|
|
15
|
+
alignSelf: 'stretch'
|
|
16
|
+
},
|
|
17
|
+
scrollContent: {
|
|
18
|
+
flexGrow: 1,
|
|
19
|
+
..._spacing.screenContentStyle
|
|
20
|
+
},
|
|
21
|
+
stepContainer: {
|
|
22
|
+
flex: 1,
|
|
23
|
+
justifyContent: 'flex-start',
|
|
24
|
+
alignItems: 'flex-start'
|
|
25
|
+
},
|
|
26
|
+
modernHeader: {
|
|
27
|
+
alignItems: 'flex-start',
|
|
28
|
+
width: '100%',
|
|
29
|
+
marginBottom: 24
|
|
30
|
+
},
|
|
31
|
+
stepTitle: {
|
|
32
|
+
fontFamily: _reactNative.Platform.OS === 'web' ? 'Phudu' : 'Phudu-Bold',
|
|
33
|
+
fontWeight: _reactNative.Platform.OS === 'web' ? 'bold' : undefined,
|
|
34
|
+
fontSize: 42,
|
|
35
|
+
lineHeight: 48,
|
|
36
|
+
marginBottom: 12,
|
|
37
|
+
textAlign: 'left',
|
|
38
|
+
letterSpacing: -1
|
|
39
|
+
},
|
|
40
|
+
modernSubtitle: {
|
|
41
|
+
fontSize: 18,
|
|
42
|
+
lineHeight: 24,
|
|
43
|
+
textAlign: 'left',
|
|
44
|
+
opacity: 0.8,
|
|
45
|
+
marginBottom: 24
|
|
46
|
+
},
|
|
47
|
+
inputContainer: {
|
|
48
|
+
width: '100%',
|
|
49
|
+
marginBottom: 24
|
|
50
|
+
},
|
|
51
|
+
premiumInputWrapper: {
|
|
52
|
+
flexDirection: 'row',
|
|
53
|
+
alignItems: 'center',
|
|
54
|
+
height: 56,
|
|
55
|
+
borderRadius: 16,
|
|
56
|
+
paddingHorizontal: 20,
|
|
57
|
+
borderWidth: 2,
|
|
58
|
+
backgroundColor: colors.inputBackground
|
|
59
|
+
},
|
|
60
|
+
textAreaWrapper: {
|
|
61
|
+
flexDirection: 'column',
|
|
62
|
+
alignItems: 'flex-start',
|
|
63
|
+
minHeight: 120,
|
|
64
|
+
borderRadius: 16,
|
|
65
|
+
paddingHorizontal: 20,
|
|
66
|
+
paddingVertical: 16,
|
|
67
|
+
borderWidth: 2,
|
|
68
|
+
backgroundColor: colors.inputBackground
|
|
69
|
+
},
|
|
70
|
+
inputIcon: {
|
|
71
|
+
marginRight: 12
|
|
72
|
+
},
|
|
73
|
+
inputContent: {
|
|
74
|
+
flex: 1
|
|
75
|
+
},
|
|
76
|
+
modernLabel: {
|
|
77
|
+
fontSize: 12,
|
|
78
|
+
fontWeight: '500',
|
|
79
|
+
marginBottom: 2
|
|
80
|
+
},
|
|
81
|
+
modernInput: {
|
|
82
|
+
flex: 1,
|
|
83
|
+
fontSize: 16,
|
|
84
|
+
height: '100%'
|
|
85
|
+
},
|
|
86
|
+
textArea: {
|
|
87
|
+
flex: 1,
|
|
88
|
+
fontSize: 16,
|
|
89
|
+
textAlignVertical: 'top',
|
|
90
|
+
minHeight: 80
|
|
91
|
+
},
|
|
92
|
+
categoryContainer: {
|
|
93
|
+
marginBottom: 24
|
|
94
|
+
},
|
|
95
|
+
checkboxContainer: {
|
|
96
|
+
flexDirection: 'row',
|
|
97
|
+
alignItems: 'center',
|
|
98
|
+
marginBottom: 24
|
|
99
|
+
},
|
|
100
|
+
checkbox: {
|
|
101
|
+
width: 24,
|
|
102
|
+
height: 24,
|
|
103
|
+
borderRadius: 6,
|
|
104
|
+
borderWidth: 2,
|
|
105
|
+
marginRight: 12,
|
|
106
|
+
alignItems: 'center',
|
|
107
|
+
justifyContent: 'center'
|
|
108
|
+
},
|
|
109
|
+
checkboxText: {
|
|
110
|
+
fontSize: 16,
|
|
111
|
+
flex: 1
|
|
112
|
+
},
|
|
113
|
+
button: {
|
|
114
|
+
flexDirection: 'row',
|
|
115
|
+
alignItems: 'center',
|
|
116
|
+
justifyContent: 'center',
|
|
117
|
+
paddingVertical: 18,
|
|
118
|
+
paddingHorizontal: 32,
|
|
119
|
+
borderRadius: 16,
|
|
120
|
+
marginVertical: 8,
|
|
121
|
+
gap: 8,
|
|
122
|
+
width: '100%',
|
|
123
|
+
..._reactNative.Platform.select({
|
|
124
|
+
web: {
|
|
125
|
+
boxShadow: '0 4px 8px rgba(0,0,0,0.3)'
|
|
126
|
+
},
|
|
127
|
+
default: {
|
|
128
|
+
shadowOffset: {
|
|
129
|
+
width: 0,
|
|
130
|
+
height: 4
|
|
131
|
+
},
|
|
132
|
+
shadowOpacity: 0.3,
|
|
133
|
+
shadowRadius: 8,
|
|
134
|
+
elevation: 6
|
|
135
|
+
}
|
|
136
|
+
})
|
|
137
|
+
},
|
|
138
|
+
buttonText: {
|
|
139
|
+
color: '#FFFFFF',
|
|
140
|
+
fontSize: 16,
|
|
141
|
+
fontWeight: '600',
|
|
142
|
+
letterSpacing: 0.5
|
|
143
|
+
},
|
|
144
|
+
navigationButtons: {
|
|
145
|
+
flexDirection: 'row',
|
|
146
|
+
justifyContent: 'center',
|
|
147
|
+
marginTop: 16,
|
|
148
|
+
marginBottom: 8,
|
|
149
|
+
width: '100%',
|
|
150
|
+
gap: 8
|
|
151
|
+
},
|
|
152
|
+
navButton: {
|
|
153
|
+
flexDirection: 'row',
|
|
154
|
+
alignItems: 'center',
|
|
155
|
+
paddingVertical: 6,
|
|
156
|
+
paddingHorizontal: 12,
|
|
157
|
+
gap: 6,
|
|
158
|
+
minWidth: 70,
|
|
159
|
+
borderWidth: 1,
|
|
160
|
+
..._reactNative.Platform.select({
|
|
161
|
+
web: {
|
|
162
|
+
boxShadow: '0 2px 4px rgba(0,0,0,0.1)'
|
|
163
|
+
},
|
|
164
|
+
default: {
|
|
165
|
+
shadowOffset: {
|
|
166
|
+
width: 0,
|
|
167
|
+
height: 2
|
|
168
|
+
},
|
|
169
|
+
shadowOpacity: 0.1,
|
|
170
|
+
shadowRadius: 4,
|
|
171
|
+
elevation: 2
|
|
172
|
+
}
|
|
173
|
+
})
|
|
174
|
+
},
|
|
175
|
+
backButton: {
|
|
176
|
+
backgroundColor: 'transparent',
|
|
177
|
+
borderTopLeftRadius: 35,
|
|
178
|
+
borderBottomLeftRadius: 35,
|
|
179
|
+
borderTopRightRadius: 12,
|
|
180
|
+
borderBottomRightRadius: 12
|
|
181
|
+
},
|
|
182
|
+
nextButton: {
|
|
183
|
+
backgroundColor: 'transparent',
|
|
184
|
+
borderTopRightRadius: 35,
|
|
185
|
+
borderBottomRightRadius: 35,
|
|
186
|
+
borderTopLeftRadius: 12,
|
|
187
|
+
borderBottomLeftRadius: 12
|
|
188
|
+
},
|
|
189
|
+
navButtonText: {
|
|
190
|
+
fontSize: 13,
|
|
191
|
+
fontWeight: '500'
|
|
192
|
+
},
|
|
193
|
+
progressContainer: {
|
|
194
|
+
flexDirection: 'row',
|
|
195
|
+
justifyContent: 'center',
|
|
196
|
+
marginBottom: 20,
|
|
197
|
+
marginTop: 8
|
|
198
|
+
},
|
|
199
|
+
progressDot: {
|
|
200
|
+
height: 10,
|
|
201
|
+
width: 10,
|
|
202
|
+
borderRadius: 5,
|
|
203
|
+
marginHorizontal: 6,
|
|
204
|
+
borderWidth: 2,
|
|
205
|
+
borderColor: '#fff',
|
|
206
|
+
..._reactNative.Platform.select({
|
|
207
|
+
web: {
|
|
208
|
+
boxShadow: '0 1px 2px rgba(0,0,0,0.08)'
|
|
209
|
+
},
|
|
210
|
+
default: {
|
|
211
|
+
shadowColor: colors.primary,
|
|
212
|
+
shadowOpacity: 0.08,
|
|
213
|
+
shadowOffset: {
|
|
214
|
+
width: 0,
|
|
215
|
+
height: 1
|
|
216
|
+
},
|
|
217
|
+
shadowRadius: 2,
|
|
218
|
+
elevation: 1
|
|
219
|
+
}
|
|
220
|
+
})
|
|
221
|
+
},
|
|
222
|
+
summaryContainer: {
|
|
223
|
+
padding: 0,
|
|
224
|
+
marginBottom: 24,
|
|
225
|
+
width: '100%'
|
|
226
|
+
},
|
|
227
|
+
summaryRow: {
|
|
228
|
+
flexDirection: 'row',
|
|
229
|
+
marginBottom: 10
|
|
230
|
+
},
|
|
231
|
+
summaryLabel: {
|
|
232
|
+
fontSize: 15,
|
|
233
|
+
width: 90
|
|
234
|
+
},
|
|
235
|
+
summaryValue: {
|
|
236
|
+
fontSize: 15,
|
|
237
|
+
fontWeight: '600',
|
|
238
|
+
flex: 1
|
|
239
|
+
},
|
|
240
|
+
successContainer: {
|
|
241
|
+
alignItems: 'center',
|
|
242
|
+
justifyContent: 'center',
|
|
243
|
+
padding: 40
|
|
244
|
+
},
|
|
245
|
+
successIcon: {
|
|
246
|
+
marginBottom: 24
|
|
247
|
+
},
|
|
248
|
+
successTitle: {
|
|
249
|
+
fontSize: 24,
|
|
250
|
+
fontWeight: 'bold',
|
|
251
|
+
marginBottom: 12,
|
|
252
|
+
textAlign: 'center'
|
|
253
|
+
},
|
|
254
|
+
successMessage: {
|
|
255
|
+
fontSize: 16,
|
|
256
|
+
textAlign: 'center',
|
|
257
|
+
opacity: 0.8,
|
|
258
|
+
marginBottom: 24
|
|
259
|
+
}
|
|
260
|
+
});
|
|
261
|
+
exports.createFeedbackStyles = createFeedbackStyles;
|
|
262
|
+
//# sourceMappingURL=feedbackStyles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_spacing","createFeedbackStyles","colors","StyleSheet","create","container","flex","fullBleed","width","alignSelf","scrollContent","flexGrow","screenContentStyle","stepContainer","justifyContent","alignItems","modernHeader","marginBottom","stepTitle","fontFamily","Platform","OS","fontWeight","undefined","fontSize","lineHeight","textAlign","letterSpacing","modernSubtitle","opacity","inputContainer","premiumInputWrapper","flexDirection","height","borderRadius","paddingHorizontal","borderWidth","backgroundColor","inputBackground","textAreaWrapper","minHeight","paddingVertical","inputIcon","marginRight","inputContent","modernLabel","modernInput","textArea","textAlignVertical","categoryContainer","checkboxContainer","checkbox","checkboxText","button","marginVertical","gap","select","web","boxShadow","default","shadowOffset","shadowOpacity","shadowRadius","elevation","buttonText","color","navigationButtons","marginTop","navButton","minWidth","backButton","borderTopLeftRadius","borderBottomLeftRadius","borderTopRightRadius","borderBottomRightRadius","nextButton","navButtonText","progressContainer","progressDot","marginHorizontal","borderColor","shadowColor","primary","summaryContainer","padding","summaryRow","summaryLabel","summaryValue","successContainer","successIcon","successTitle","successMessage","exports"],"sourceRoot":"../../../../../src","sources":["ui/components/feedback/feedbackStyles.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AAGO,MAAME,oBAAoB,GAAIC,MAAsB,IAAKC,uBAAU,CAACC,MAAM,CAAC;EAC9EC,SAAS,EAAE;IACPC,IAAI,EAAE;EACV,CAAC;EACDC,SAAS,EAAE;IACPC,KAAK,EAAE,MAAM;IACbC,SAAS,EAAE;EACf,CAAC;EACDC,aAAa,EAAE;IACXC,QAAQ,EAAE,CAAC;IACX,GAAGC;EACP,CAAC;EACDC,aAAa,EAAE;IACXP,IAAI,EAAE,CAAC;IACPQ,cAAc,EAAE,YAAY;IAC5BC,UAAU,EAAE;EAChB,CAAC;EACD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AAE;EACf,CAAC;EACDiE,cAAc,EAAE;IACZnE,QAAQ,EAAE,EAAE;IACZE,SAAS,EAAE,QAAQ;IACnBG,OAAO,EAAE,GAAG;IACZZ,YAAY,EAAE;EAClB;AACJ,CAAC,CAAC;AAAC2E,OAAA,CAAA3F,oBAAA,GAAAA,oBAAA","ignoreList":[]}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "CATEGORIES", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _constants.CATEGORIES;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "FEEDBACK_TYPES", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return _constants.FEEDBACK_TYPES;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "FormInput", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () {
|
|
21
|
+
return _FormInput.default;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "PRIORITY_LEVELS", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function () {
|
|
27
|
+
return _constants.PRIORITY_LEVELS;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
Object.defineProperty(exports, "ProgressIndicator", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function () {
|
|
33
|
+
return _ProgressIndicator.default;
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
Object.defineProperty(exports, "createFeedbackStyles", {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: function () {
|
|
39
|
+
return _feedbackStyles.createFeedbackStyles;
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
Object.defineProperty(exports, "useFeedbackForm", {
|
|
43
|
+
enumerable: true,
|
|
44
|
+
get: function () {
|
|
45
|
+
return _useFeedbackForm.useFeedbackForm;
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
var _FormInput = _interopRequireDefault(require("./FormInput"));
|
|
49
|
+
var _ProgressIndicator = _interopRequireDefault(require("./ProgressIndicator"));
|
|
50
|
+
var _useFeedbackForm = require("./useFeedbackForm");
|
|
51
|
+
var _feedbackStyles = require("./feedbackStyles");
|
|
52
|
+
var _constants = require("./constants");
|
|
53
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
54
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_FormInput","_interopRequireDefault","require","_ProgressIndicator","_useFeedbackForm","_feedbackStyles","_constants","e","__esModule","default"],"sourceRoot":"../../../../../src","sources":["ui/components/feedback/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,kBAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,gBAAA,GAAAF,OAAA;AACA,IAAAG,eAAA,GAAAH,OAAA;AACA,IAAAI,UAAA,GAAAJ,OAAA;AAA0E,SAAAD,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["ui/components/feedback/types.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useFeedbackForm = void 0;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
const useFeedbackForm = () => {
|
|
9
|
+
const [feedbackData, setFeedbackData] = (0, _react.useState)({
|
|
10
|
+
type: 'general',
|
|
11
|
+
title: '',
|
|
12
|
+
description: '',
|
|
13
|
+
priority: 'medium',
|
|
14
|
+
category: '',
|
|
15
|
+
contactEmail: '',
|
|
16
|
+
systemInfo: true
|
|
17
|
+
});
|
|
18
|
+
const [feedbackState, setFeedbackState] = (0, _react.useState)({
|
|
19
|
+
status: 'idle',
|
|
20
|
+
message: ''
|
|
21
|
+
});
|
|
22
|
+
const updateField = (0, _react.useCallback)((field, value) => {
|
|
23
|
+
setFeedbackData(prev => ({
|
|
24
|
+
...prev,
|
|
25
|
+
[field]: value
|
|
26
|
+
}));
|
|
27
|
+
}, []);
|
|
28
|
+
const resetForm = (0, _react.useCallback)(() => {
|
|
29
|
+
setFeedbackData({
|
|
30
|
+
type: 'general',
|
|
31
|
+
title: '',
|
|
32
|
+
description: '',
|
|
33
|
+
priority: 'medium',
|
|
34
|
+
category: '',
|
|
35
|
+
contactEmail: '',
|
|
36
|
+
systemInfo: true
|
|
37
|
+
});
|
|
38
|
+
setFeedbackState({
|
|
39
|
+
status: 'idle',
|
|
40
|
+
message: ''
|
|
41
|
+
});
|
|
42
|
+
}, []);
|
|
43
|
+
return {
|
|
44
|
+
feedbackData,
|
|
45
|
+
feedbackState,
|
|
46
|
+
setFeedbackState,
|
|
47
|
+
updateField,
|
|
48
|
+
resetForm
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
exports.useFeedbackForm = useFeedbackForm;
|
|
52
|
+
//# sourceMappingURL=useFeedbackForm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","require","useFeedbackForm","feedbackData","setFeedbackData","useState","type","title","description","priority","category","contactEmail","systemInfo","feedbackState","setFeedbackState","status","message","updateField","useCallback","field","value","prev","resetForm","exports"],"sourceRoot":"../../../../../src","sources":["ui/components/feedback/useFeedbackForm.ts"],"mappings":";;;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