@tap-payments/auth-jsconnect 2.10.1-beta → 2.10.1-sandbox
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/README.md +2 -2
- package/build/@types/app.d.ts +9 -2
- package/build/@types/app.js +8 -0
- package/build/@types/form.d.ts +3 -0
- package/build/@types/index.d.ts +1 -0
- package/build/@types/index.js +1 -0
- package/build/@types/terminal.d.ts +116 -0
- package/build/@types/terminal.js +1 -0
- package/build/api/account.d.ts +1 -0
- package/build/api/account.js +7 -0
- package/build/api/auth.d.ts +10 -1
- package/build/api/index.d.ts +8 -1
- package/build/api/index.js +3 -1
- package/build/api/terminal.d.ts +28 -0
- package/build/api/terminal.js +45 -0
- package/build/app/rootReducer.d.ts +1 -0
- package/build/app/rootReducer.js +3 -1
- package/build/app/settings.d.ts +1 -0
- package/build/app/settings.js +9 -4
- package/build/app/store.d.ts +2 -0
- package/build/assets/currencies/AEDSymbol.d.ts +7 -0
- package/build/assets/currencies/AEDSymbol.js +28 -0
- package/build/assets/currencies/SARSymbol.d.ts +7 -0
- package/build/assets/currencies/SARSymbol.js +28 -0
- package/build/assets/currencies/index.d.ts +2 -0
- package/build/assets/currencies/index.js +2 -0
- package/build/assets/currencies/utils.d.ts +4 -0
- package/build/assets/currencies/utils.js +6 -0
- package/build/assets/locales/ar.json +48 -6
- package/build/assets/locales/en.json +51 -9
- package/build/components/DeviceCard/DeviceCard.d.ts +18 -0
- package/build/components/DeviceCard/DeviceCard.js +103 -0
- package/build/components/DeviceCard/index.d.ts +3 -0
- package/build/components/DeviceCard/index.js +2 -0
- package/build/components/OTPTimer/OTPTimer.d.ts +2 -1
- package/build/components/OTPTimer/OTPTimer.js +4 -4
- package/build/components/TextWithCurrency/TextWithCurrency.d.ts +7 -0
- package/build/components/TextWithCurrency/TextWithCurrency.js +14 -0
- package/build/components/TextWithCurrency/index.d.ts +2 -0
- package/build/components/TextWithCurrency/index.js +2 -0
- package/build/constants/api.d.ts +1 -1
- package/build/constants/api.js +2 -2
- package/build/constants/app.d.ts +15 -2
- package/build/constants/app.js +158 -13
- package/build/constants/assets.d.ts +12 -3
- package/build/constants/assets.js +123 -105
- package/build/constants/dummy.js +27 -20
- package/build/constants/flows.d.ts +15 -0
- package/build/constants/flows.js +15 -0
- package/build/constants/validation.d.ts +2 -0
- package/build/constants/validation.js +2 -0
- package/build/features/app/auth/authStore.d.ts +24 -5
- package/build/features/app/auth/authStore.js +186 -89
- package/build/features/app/business/businessStore.js +53 -29
- package/build/features/app/connect/connectStore.js +47 -35
- package/build/features/app/connectExpress/connectExpressStore.d.ts +14 -3
- package/build/features/app/connectExpress/connectExpressStore.js +301 -109
- package/build/features/app/individual/individualStore.js +0 -1
- package/build/features/app/kyc/kycStore.js +49 -25
- package/build/features/app/tax/taxStore.js +1 -1
- package/build/features/app/terminal/terminalStore.d.ts +109 -0
- package/build/features/app/terminal/terminalStore.js +673 -0
- package/build/features/auth/screens/OTP/OTP.d.ts +13 -2
- package/build/features/auth/screens/OTP/OTP.js +15 -3
- package/build/features/auth/screens/OTP/index.d.ts +1 -2
- package/build/features/auth/screens/Passcode/Passcode.d.ts +16 -0
- package/build/features/auth/screens/Passcode/Passcode.js +82 -0
- package/build/features/auth/screens/Passcode/PasscodeInput.d.ts +6 -0
- package/build/features/auth/screens/Passcode/PasscodeInput.js +42 -0
- package/build/features/auth/screens/Passcode/index.d.ts +2 -0
- package/build/features/auth/screens/Passcode/index.js +2 -0
- package/build/features/auth/screens/Passcode/validation.d.ts +8 -0
- package/build/features/auth/screens/Passcode/validation.js +4 -0
- package/build/features/brand/screens/BrandActivities/ExpectedSalesRange.js +3 -8
- package/build/features/business/screens/Customers/ExpectedSalesRange.js +3 -8
- package/build/features/business/screens/MobileOwnership/CollectMobileOwnership.js +3 -4
- package/build/features/connect/screens/MobileOwnership/CollectMobileOwnership.js +3 -4
- package/build/features/connectExpress/screens/GenericPrepareDataLoading/GenericPrepareDataLoading.d.ts +3 -0
- package/build/features/connectExpress/screens/GenericPrepareDataLoading/GenericPrepareDataLoading.js +9 -0
- package/build/features/connectExpress/screens/GenericPrepareDataLoading/index.d.ts +2 -0
- package/build/features/connectExpress/screens/GenericPrepareDataLoading/index.js +2 -0
- package/build/features/connectExpress/screens/MobileOwnership/CollectMobileOwnership.js +3 -4
- package/build/features/connectExpress/screens/VerifyMobileAuthOTP/OTPInput.d.ts +5 -0
- package/build/features/connectExpress/screens/VerifyMobileAuthOTP/OTPInput.js +49 -0
- package/build/features/connectExpress/screens/VerifyMobileAuthOTP/VerifyMobileAuthOTP.d.ts +5 -0
- package/build/features/connectExpress/screens/VerifyMobileAuthOTP/VerifyMobileAuthOTP.js +88 -0
- package/build/features/connectExpress/screens/VerifyMobileAuthOTP/index.d.ts +3 -0
- package/build/features/connectExpress/screens/VerifyMobileAuthOTP/index.js +2 -0
- package/build/features/connectExpress/screens/VerifyMobileAuthOTP/validation.d.ts +8 -0
- package/build/features/connectExpress/screens/VerifyMobileAuthOTP/validation.js +4 -0
- package/build/features/connectExpress/screens/VerifyNafath/VerifyNafath.js +9 -3
- package/build/features/entity/screens/EntityCapital/CapitalPaid.js +3 -7
- package/build/features/entity/screens/EntityCapital/CapitalShareValue.js +3 -7
- package/build/features/featuresScreens.d.ts +1 -0
- package/build/features/featuresScreens.js +77 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.js +3 -8
- package/build/features/individual/screens/AdditionalIndividualInfo/ShareValue.js +3 -8
- package/build/features/kyc/screens/Terms/Terms.js +8 -2
- package/build/features/kyc/screens/Users/Users.js +1 -1
- package/build/features/shared/Background/LogoBackground.js +5 -17
- package/build/features/shared/Button/Button.js +2 -3
- package/build/features/shared/Button/FlowsButtons.js +3 -2
- package/build/features/shared/Input/Input.d.ts +1 -1
- package/build/features/shared/PushNotification/PushNotification.d.ts +11 -0
- package/build/features/shared/PushNotification/PushNotification.js +34 -0
- package/build/features/shared/PushNotification/index.d.ts +2 -0
- package/build/features/shared/PushNotification/index.js +2 -0
- package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.js +2 -2
- package/build/features/shared/SuccessScreen/SuccessScreen.d.ts +3 -1
- package/build/features/shared/SuccessScreen/SuccessScreen.js +2 -2
- package/build/features/terminal/Terminal.d.ts +14 -0
- package/build/features/terminal/Terminal.js +95 -0
- package/build/features/terminal/index.d.ts +1 -0
- package/build/features/terminal/index.js +1 -0
- package/build/features/terminal/screens/LinkNewTerminal/LinkNewTerminal.d.ts +3 -0
- package/build/features/terminal/screens/LinkNewTerminal/LinkNewTerminal.js +69 -0
- package/build/features/terminal/screens/LinkNewTerminal/index.d.ts +2 -0
- package/build/features/terminal/screens/LinkNewTerminal/index.js +2 -0
- package/build/features/terminal/screens/LinkNewTerminal/styles.d.ts +10 -0
- package/build/features/terminal/screens/LinkNewTerminal/styles.js +28 -0
- package/build/features/terminal/screens/LinkedSuccess/LinkedSuccess.d.ts +3 -0
- package/build/features/terminal/screens/LinkedSuccess/LinkedSuccess.js +51 -0
- package/build/features/terminal/screens/LinkedSuccess/index.d.ts +2 -0
- package/build/features/terminal/screens/LinkedSuccess/index.js +2 -0
- package/build/features/terminal/screens/LinkedTerminalInfo/LinkedTerminalInfo.d.ts +3 -0
- package/build/features/terminal/screens/LinkedTerminalInfo/LinkedTerminalInfo.js +50 -0
- package/build/features/terminal/screens/LinkedTerminalInfo/index.d.ts +2 -0
- package/build/features/terminal/screens/LinkedTerminalInfo/index.js +2 -0
- package/build/features/terminal/screens/Loading/Loading.d.ts +4 -0
- package/build/features/terminal/screens/Loading/Loading.js +10 -0
- package/build/features/terminal/screens/Loading/index.d.ts +2 -0
- package/build/features/terminal/screens/Loading/index.js +2 -0
- package/build/features/terminal/screens/NoTerminalDeviceLinked/NoTerminalDeviceLinked.d.ts +3 -0
- package/build/features/terminal/screens/NoTerminalDeviceLinked/NoTerminalDeviceLinked.js +56 -0
- package/build/features/terminal/screens/NoTerminalDeviceLinked/index.d.ts +2 -0
- package/build/features/terminal/screens/NoTerminalDeviceLinked/index.js +2 -0
- package/build/features/terminal/screens/NoTerminalDeviceLinked/styles.d.ts +36 -0
- package/build/features/terminal/screens/NoTerminalDeviceLinked/styles.js +34 -0
- package/build/features/terminal/screens/OperatorError/OperatorError.d.ts +5 -0
- package/build/features/terminal/screens/OperatorError/OperatorError.js +9 -0
- package/build/features/terminal/screens/OperatorError/index.d.ts +2 -0
- package/build/features/terminal/screens/OperatorError/index.js +2 -0
- package/build/features/terminal/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +3 -0
- package/build/features/terminal/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +21 -0
- package/build/features/terminal/screens/ResetPasswordSuccess/index.d.ts +2 -0
- package/build/features/terminal/screens/ResetPasswordSuccess/index.js +2 -0
- package/build/features/terminal/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +3 -0
- package/build/features/terminal/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +31 -0
- package/build/features/terminal/screens/SuccessWithFlowButtons/index.d.ts +2 -0
- package/build/features/terminal/screens/SuccessWithFlowButtons/index.js +2 -0
- package/build/features/terminal/screens/TerminalDeviceList/DeviceList.d.ts +9 -0
- package/build/features/terminal/screens/TerminalDeviceList/DeviceList.js +20 -0
- package/build/features/terminal/screens/TerminalDeviceList/TerminalDeviceList.d.ts +3 -0
- package/build/features/terminal/screens/TerminalDeviceList/TerminalDeviceList.js +144 -0
- package/build/features/terminal/screens/TerminalDeviceList/index.d.ts +2 -0
- package/build/features/terminal/screens/TerminalDeviceList/index.js +2 -0
- package/build/features/terminal/screens/TerminalDeviceList/styles.d.ts +9 -0
- package/build/features/terminal/screens/TerminalDeviceList/styles.js +13 -0
- package/build/features/terminal/screens/TerminalListPage/TerminalListPage.d.ts +3 -0
- package/build/features/terminal/screens/TerminalListPage/TerminalListPage.js +42 -0
- package/build/features/terminal/screens/TerminalListPage/index.d.ts +2 -0
- package/build/features/terminal/screens/TerminalListPage/index.js +2 -0
- package/build/features/terminal/screens/UnlinkedSuccess/UnlinkedSuccess.d.ts +3 -0
- package/build/features/terminal/screens/UnlinkedSuccess/UnlinkedSuccess.js +53 -0
- package/build/features/terminal/screens/UnlinkedSuccess/index.d.ts +2 -0
- package/build/features/terminal/screens/UnlinkedSuccess/index.js +2 -0
- package/build/features/terminal/screens/UnlinkedTerminalInfo/UnlinkedTerminalInfo.d.ts +3 -0
- package/build/features/terminal/screens/UnlinkedTerminalInfo/UnlinkedTerminalInfo.js +98 -0
- package/build/features/terminal/screens/UnlinkedTerminalInfo/index.d.ts +2 -0
- package/build/features/terminal/screens/UnlinkedTerminalInfo/index.js +2 -0
- package/build/features/terminal/screens/UnlinkedTerminalInfo/styles.d.ts +26 -0
- package/build/features/terminal/screens/UnlinkedTerminalInfo/styles.js +30 -0
- package/build/features/terminal/screens/Verify/OTPInput.d.ts +7 -0
- package/build/features/terminal/screens/Verify/OTPInput.js +51 -0
- package/build/features/terminal/screens/Verify/Verify.d.ts +5 -0
- package/build/features/terminal/screens/Verify/Verify.js +85 -0
- package/build/features/terminal/screens/Verify/index.d.ts +2 -0
- package/build/features/terminal/screens/Verify/index.js +2 -0
- package/build/features/terminal/screens/Verify/validation.d.ts +8 -0
- package/build/features/terminal/screens/Verify/validation.js +4 -0
- package/build/features/terminal/screens/shared/Header.d.ts +10 -0
- package/build/features/terminal/screens/shared/Header.js +30 -0
- package/build/features/terminal/screens/shared/TerminalList.d.ts +11 -0
- package/build/features/terminal/screens/shared/TerminalList.js +25 -0
- package/build/features/terminal/screens/shared/index.d.ts +5 -0
- package/build/features/terminal/screens/shared/index.js +5 -0
- package/build/features/terminal/screens/shared/styles.d.ts +196 -0
- package/build/features/terminal/screens/shared/styles.js +155 -0
- package/build/features/terminal/screens/shared/utils.d.ts +7 -0
- package/build/features/terminal/screens/shared/utils.js +24 -0
- package/build/hooks/useAppConfig.js +1 -1
- package/build/hooks/useAppDispatch.d.ts +1 -0
- package/build/index.d.ts +3 -2
- package/build/index.js +4 -2
- package/build/theme/palette.js +12 -0
- package/build/theme/typography.js +4 -0
- package/build/utils/common.d.ts +1 -1
- package/build/utils/common.js +6 -4
- package/build/utils/error.d.ts +1 -0
- package/build/utils/error.js +3 -0
- package/build/utils/string.d.ts +3 -2
- package/build/utils/string.js +10 -1
- package/package.json +3 -4
|
@@ -135,13 +135,17 @@
|
|
|
135
135
|
"call_center_placeholder": "رقم هاتف خدمة الإتصال",
|
|
136
136
|
"cancel": "إلغاء",
|
|
137
137
|
"capital_paid_hint": "00000",
|
|
138
|
+
"capital_paid_input_label": "رأس المال المدفوع",
|
|
138
139
|
"capital_paid_label": "رأس المال المدفوع ({{currency}})",
|
|
140
|
+
"capital_paid_input_label": "رأس المال المدفوع",
|
|
139
141
|
"capital_paid_required": "Please Enter paid amount",
|
|
140
142
|
"capital_share_count_hint": "00000",
|
|
141
143
|
"capital_share_count_label": "عدد اسهم رأس المال",
|
|
142
144
|
"capital_share_count_required": "Please Enter share count",
|
|
143
145
|
"capital_share_value_hint": "00000",
|
|
146
|
+
"capital_share_value_input_label": "قيمة السهم",
|
|
144
147
|
"capital_share_value_label": "قيمة السهم ({{currency}})",
|
|
148
|
+
"capital_share_value_input_label": "قيمة السهم",
|
|
145
149
|
"capital_share_value_required": "Please Enter share value",
|
|
146
150
|
"category": "الفئة",
|
|
147
151
|
"category_name": "اسم الفئة",
|
|
@@ -207,6 +211,7 @@
|
|
|
207
211
|
"create_new_entity": "Create Entity",
|
|
208
212
|
"creating_account_description": "هذه العملية تحتاج وقت...",
|
|
209
213
|
"creating_account_title": "جارى انشاء الحساب",
|
|
214
|
+
"current_mobile_number": "رقم الجوال الحالي",
|
|
210
215
|
"customer_base_name_hint": "اختر محليًا إذا كنت تبيع فقط في البلد الذي تقيم فيه. اختر إقليميًا إذا كنت تبيع أيضًا لدول مجلس التعاون الخليجي الأخرى. اختر عالمياً إذا كنت تبيع إلى أي دولة خارج دول مجلس التعاون الخليجي.",
|
|
211
216
|
"data_loading_desc": "الرجاء الانتظار أثناء تحضير البيانات",
|
|
212
217
|
"data_loading_title": "تحضير البيانات",
|
|
@@ -279,7 +284,9 @@
|
|
|
279
284
|
"entity_type": "نوع الكيان",
|
|
280
285
|
"entity_type_required": "Please select at least one entity type",
|
|
281
286
|
"expected_customers_to_serve": "عدد العملاء شهريا",
|
|
287
|
+
"expected_sale_per_month": "البيع المتوقع في الشهر؟",
|
|
282
288
|
"expected_sales_monthly": "البيع المتوقع في الشهر؟ ({{currency}})",
|
|
289
|
+
"expected_sale_per_month": "البيع المتوقع في الشهر؟",
|
|
283
290
|
"expected_sales_yearly": "ما هي المبيعات المتوقعة لعملك شهريًا؟",
|
|
284
291
|
"expected_served_monthly": "عدد العملاء شهريا",
|
|
285
292
|
"expiry_date": "تاريخ الإنتهاء",
|
|
@@ -375,7 +382,6 @@
|
|
|
375
382
|
"kyc_terms_title": "وثائق قانونية",
|
|
376
383
|
"kyc_token_invalid": "الرجاء مراجعة رابط المرسل اليك",
|
|
377
384
|
"kyc_users_description": "يرجى اختيار رقم هوية الممثل المعتمد للموافقة عليه مع {{provider}}",
|
|
378
|
-
"kyc_privacy_policy": "سياسة الخصوصية",
|
|
379
385
|
"language": "English",
|
|
380
386
|
"license_info": "معلومات الترخيص",
|
|
381
387
|
"license_name_hint": "Enter legal name",
|
|
@@ -400,11 +406,14 @@
|
|
|
400
406
|
"mobile_app_label": "تطبيقات هاتف",
|
|
401
407
|
"mobile_button_label": "المتابعة عن طريق رقم الجوال",
|
|
402
408
|
"mobile_number_description": "ابدأ فورًا باستخدام رقم هاتفك المحمول",
|
|
409
|
+
"mobile_ownership_title": "يرجى تحديث رقم هاتفك المحمول المسجل ليتوافق مع هويتك.",
|
|
403
410
|
"month": "الشهر",
|
|
411
|
+
"monthly_income": "ما هو دخلك الشهري؟ ",
|
|
404
412
|
"nafath_button_label": "المتابعة عن طريق نفاذ",
|
|
405
413
|
"nafath_verification_description_check": "يرجى الدخول إلى تطبيق نفاذ الخاص بك وإدخال رقم الطلب أعلاه للمصادقة.",
|
|
406
414
|
"nafath_verification_description_error": "حاول مرة اخرى",
|
|
407
415
|
"nafath_verification_description_wait": "يرجى الدخول إلى تطبيق نفاذ الخاص بك وإدخال رقم الطلب أعلاه للمصادقة.",
|
|
416
|
+
"nafath_verification_failed": "تأكد من الموافقة على الطلب المرسل عبر تطبيق نفاذ، يرجى محاولة إرسال طلب جديد.",
|
|
408
417
|
"nafath_verification_redirection_message": "سيتم إعادة توجيهك الآن",
|
|
409
418
|
"nafath_verification_title_check": "المصادقة مع تطبيق نفاذ",
|
|
410
419
|
"nafath_verification_title_error": "لا يمكننا تأكيد المصادقة الخاصة بك",
|
|
@@ -414,6 +423,7 @@
|
|
|
414
423
|
"national_id_placeholder": "0000000000",
|
|
415
424
|
"national_id_title": "الهوية الوطنية",
|
|
416
425
|
"nationality_label": "الجنسية",
|
|
426
|
+
"new_mobile_number": "رقم الجوال الجديد",
|
|
417
427
|
"next": "التالي",
|
|
418
428
|
"no": "لا",
|
|
419
429
|
"no_results": "لا نتائج",
|
|
@@ -483,6 +493,7 @@
|
|
|
483
493
|
"please_choose_is_authorized": "الرجاء التأكيد إذا كنت أنت المستخدم المصرح له",
|
|
484
494
|
"please_choose_relative_pep": "هل أنت أو أحد أقاربك شخص مكشوف علنًا (PEP)",
|
|
485
495
|
"please_enter_actual_income": "ما هو دخلك الشهري ({{currency}}) ؟ ",
|
|
496
|
+
"monthly_income": "ما هو دخلك الشهري؟ ",
|
|
486
497
|
"please_enter_employer_name": "يرجى إدخال اسم منشأه العمل الخاص بك",
|
|
487
498
|
"please_try_again_after_few_minutes": "يمكنك محاولة تسجيل الدخول مرة أخرى بعد {{minutes}} دقيقة",
|
|
488
499
|
"powered_by": "بواسطة",
|
|
@@ -522,7 +533,9 @@
|
|
|
522
533
|
"share_count_hint": "0",
|
|
523
534
|
"share_count_label": "عدد الأسهم",
|
|
524
535
|
"share_value_hint": "0000",
|
|
536
|
+
"share_value_input_label": "قيمة السهم",
|
|
525
537
|
"share_value_label": "قيمة السهم ({{currency}})",
|
|
538
|
+
"share_value_input_label": "قيمة السهم",
|
|
526
539
|
"sign_up": "Sign up",
|
|
527
540
|
"signed_up": "تسجيل الدخول",
|
|
528
541
|
"signin_email_label": "البريد الألكتروني",
|
|
@@ -595,6 +608,34 @@
|
|
|
595
608
|
"tax_success_header_title": "اكتملت الضريبة",
|
|
596
609
|
"tax_success_title": "تم تحديث المعلومات الضريبية الخاصة بعملك التجاري.",
|
|
597
610
|
"team_size_title": "حجم الفريق",
|
|
611
|
+
"terminal_device_id": "رقم تعريف جهاز الكاشير",
|
|
612
|
+
"terminal_devices": "{{name}} أجهزة",
|
|
613
|
+
"terminal_flow_pending": "أجهزة نقاط الدفع",
|
|
614
|
+
"terminal_go_to_board": "الانتقال إلى اللوحة",
|
|
615
|
+
"terminal_id": "رقم تعريف جهاز نقطة الدفع",
|
|
616
|
+
"terminal_link": "ربط",
|
|
617
|
+
"terminal_link_terminal": "ربط جهاز نقطة الدفع",
|
|
618
|
+
"terminal_linked": "تمَّ الربط",
|
|
619
|
+
"terminal_linked_success": "تم ربط جهاز نقطة الدفع {{device}} الخاص بك بنجاح!",
|
|
620
|
+
"terminal_linked_with": "مرتبط مع",
|
|
621
|
+
"terminal_manage_terminals": "إدارة أجهزة نقاط الدفع",
|
|
622
|
+
"terminal_new_request_will_send": "لتأكيد الربط تمَّ إرسال طلب ربط جديد إلى تطبيق الـ Terminal من تاب.",
|
|
623
|
+
"terminal_no_terminal_linked": "لا يوجد أجهزة نقاط دفع مرتبطة",
|
|
624
|
+
"terminal_no_terminal_linked_description": "سيتم عرض أجهزة نقاط الدفع المرتبطة هنا عند توفّرها",
|
|
625
|
+
"terminal_or_use_code": "أو استخدم الرمز",
|
|
626
|
+
"terminal_paired_with": "مقترن بـ",
|
|
627
|
+
"terminal_push_notification_link_new_terminal_failed": "حدث خطأ. يرجى المحاولة لاحقاً",
|
|
628
|
+
"terminal_qr_code_description": "افتح تطبيق تاب على جهاز نقطة الدفع، ثم اختر جهاز نقطة الدفع المرتبط من قائمة المزيد.",
|
|
629
|
+
"terminal_request_denied": "تمَّ رفض طلب ربط جهاز نقطة الدفع {{device }}",
|
|
630
|
+
"terminal_request_will_send": "لتأكيد الربط سيتم إرسال طلب إلى تطبيق الـ Terminal من تاب.",
|
|
631
|
+
"terminal_resend_request": "إعادة إرسال الطلب",
|
|
632
|
+
"terminal_select_device": "اختر جهاز نقطة الدفع",
|
|
633
|
+
"terminal_send_link_request": "إرسال طلب الربط",
|
|
634
|
+
"terminal_serial_number": "الرقم التسلسلي",
|
|
635
|
+
"terminal_unlink": "إلغاء الربط",
|
|
636
|
+
"terminal_unlinked": "غير مرتبط",
|
|
637
|
+
"terminal_unlinked_success": "تم إلغاء ربط جهاز نقطة الدفع {{device}} الخاص بك بنجاح!",
|
|
638
|
+
"terminal_with": "مع",
|
|
598
639
|
"terms_and_conditions_link_title": "الشروط والاحكام",
|
|
599
640
|
"the nin format is not valid": "هل يمكنك التحقق من رقم الهوية الذي تم إدخاله.",
|
|
600
641
|
"title_article": "مذكرة التأسيس",
|
|
@@ -615,6 +656,8 @@
|
|
|
615
656
|
"unified_number_hint": "000000",
|
|
616
657
|
"unified_number_label": "الرقم الموحد",
|
|
617
658
|
"unified_number_required": "Unified Number Required",
|
|
659
|
+
"update_later": "سأقوم بالتحديث لاحقاً",
|
|
660
|
+
"update_mobile_number": "تحديث رقم الجوال",
|
|
618
661
|
"uploaded_file": "file",
|
|
619
662
|
"vat_id": "رقم الضريبي المميز",
|
|
620
663
|
"vat_id_placeholder": "00000000",
|
|
@@ -634,9 +677,8 @@
|
|
|
634
677
|
"yes": "نعم",
|
|
635
678
|
"your_brand_details": "تفاصيل علامتك التجارية",
|
|
636
679
|
"يرجى التحقق من اسم تطبيق ابل": "",
|
|
637
|
-
"
|
|
638
|
-
"
|
|
639
|
-
"
|
|
640
|
-
"
|
|
641
|
-
"update_later": "سأقوم بالتحديث لاحقاً"
|
|
680
|
+
"passcode_title": "الرجاء إدخال رمز المرور الخاص بك",
|
|
681
|
+
"sign_in_with_otp": "تسجيل الدخول باستخدام رمز التحقق (OTP)",
|
|
682
|
+
"passcode_required": "الرجاء إدخال رمز المرور المطلوب",
|
|
683
|
+
"login_with_passcode": "تسجيل الدخول باستخدام رمز المرور"
|
|
642
684
|
}
|
|
@@ -134,13 +134,17 @@
|
|
|
134
134
|
"call_center_placeholder": "Enter your call center number",
|
|
135
135
|
"cancel": "Cancel",
|
|
136
136
|
"capital_paid_hint": "00000",
|
|
137
|
+
"capital_paid_input_label": "Capital Paid",
|
|
137
138
|
"capital_paid_label": "Capital Paid ({{currency}})",
|
|
139
|
+
"capital_paid_input_label": "Capital Paid",
|
|
138
140
|
"capital_paid_required": "Please Enter paid amount",
|
|
139
141
|
"capital_share_count_hint": "00000",
|
|
140
142
|
"capital_share_count_label": "Capital Share Count",
|
|
141
143
|
"capital_share_count_required": "Please Enter share count",
|
|
142
144
|
"capital_share_value_hint": "00000",
|
|
145
|
+
"capital_share_value_input_label": "Capital Share Value",
|
|
143
146
|
"capital_share_value_label": "Capital Share Value ({{currency}})",
|
|
147
|
+
"capital_share_value_input_label": "Capital Share Value",
|
|
144
148
|
"capital_share_value_required": "Please Enter share value",
|
|
145
149
|
"category": "Category",
|
|
146
150
|
"category_name": "Category name",
|
|
@@ -214,6 +218,7 @@
|
|
|
214
218
|
"create_new_entity": "Create Entity",
|
|
215
219
|
"creating_account_description": "This might take a moment...",
|
|
216
220
|
"creating_account_title": "Creating your account",
|
|
221
|
+
"current_mobile_number": "Current mobile number",
|
|
217
222
|
"customer_base_name_hint": "Choose local if you sell only in the country where you are based. Choose regional if you also sell to other GCC countries. Choose worldwide if you sell to any country outside the GCC.",
|
|
218
223
|
"data_loading_desc": "Please wait as we are preparing data",
|
|
219
224
|
"data_loading_title": "Preparing data",
|
|
@@ -256,7 +261,7 @@
|
|
|
256
261
|
"enter_license_no": "Freelance registration",
|
|
257
262
|
"enter_license_number": "Please enter license number at least 5 chars",
|
|
258
263
|
"enter_national_id": "Identification number",
|
|
259
|
-
"enter_served_monthly": "Customers
|
|
264
|
+
"enter_served_monthly": "Customers served per month",
|
|
260
265
|
"enter_strong_password": "Please enter strong password.",
|
|
261
266
|
"enter_valid_birth_date": "Please enter a valid birth date.",
|
|
262
267
|
"enter_valid_brand_name": "Please enter a valid brand name.",
|
|
@@ -286,10 +291,12 @@
|
|
|
286
291
|
"entity_success_title": "Entity Updated Successfully",
|
|
287
292
|
"entity_type": "Entity Type",
|
|
288
293
|
"entity_type_required": "Please select at least one entity type",
|
|
289
|
-
"expected_customers_to_serve": "Customers
|
|
294
|
+
"expected_customers_to_serve": "Customers served per month",
|
|
295
|
+
"expected_sale_per_month": "Expected sale per month?",
|
|
290
296
|
"expected_sales_monthly": "Expected sale per month? ({{currency}})",
|
|
297
|
+
"expected_sale_per_month": "Expected sale per month?",
|
|
291
298
|
"expected_sales_yearly": "What is the expected sales for your business per month?",
|
|
292
|
-
"expected_served_monthly": "Customers
|
|
299
|
+
"expected_served_monthly": "Customers served per month",
|
|
293
300
|
"expiry_date": "Date of expiry",
|
|
294
301
|
"express_account_already_created_close_button": "Close",
|
|
295
302
|
"express_account_already_created_description": "Your Account is already created",
|
|
@@ -389,7 +396,6 @@
|
|
|
389
396
|
"kyc_token_invalid": "May you please verify link of which you are trying to open.",
|
|
390
397
|
"kyc_users_description": "Please select an authorized registered ID to approve with {{provider}}",
|
|
391
398
|
"kyc_verification": "Know Your Customer (KYC)",
|
|
392
|
-
"kyc_privacy_policy": "Privacy Policy",
|
|
393
399
|
"language": "العربية",
|
|
394
400
|
"license_info": "License information",
|
|
395
401
|
"license_name_hint": "Enter legal name",
|
|
@@ -415,11 +421,14 @@
|
|
|
415
421
|
"mobile_app_label": "Mobile App",
|
|
416
422
|
"mobile_button_label": "Continue with Mobile",
|
|
417
423
|
"mobile_number_description": "Start instantly with your Mobile Number",
|
|
424
|
+
"mobile_ownership_title": "Please update your mobile number to match you national ID",
|
|
418
425
|
"month": "Month",
|
|
426
|
+
"monthly_income": "Monthly income",
|
|
419
427
|
"nafath_button_label": "Continue with Nafath",
|
|
420
428
|
"nafath_verification_description_check": "Please go to your NAFATH app and enter the above request number to authenticate.",
|
|
421
429
|
"nafath_verification_description_error": "Please try again",
|
|
422
430
|
"nafath_verification_description_wait": "Please go to your NAFATH app and enter the above request number to authenticate.",
|
|
431
|
+
"nafath_verification_failed": "Make sure to approve the request sent through Nafath App, please try to send a new request.",
|
|
423
432
|
"nafath_verification_redirection_message": "You will be redirected now",
|
|
424
433
|
"nafath_verification_title_check": "Authenticate with NAFATH app",
|
|
425
434
|
"nafath_verification_title_error": "We cannot confirm your authentication",
|
|
@@ -429,6 +438,7 @@
|
|
|
429
438
|
"national_id_placeholder": "0000000000",
|
|
430
439
|
"national_id_title": "National ID",
|
|
431
440
|
"nationality_label": "Nationality",
|
|
441
|
+
"new_mobile_number": "New mobile number",
|
|
432
442
|
"next": "Next",
|
|
433
443
|
"no": "No",
|
|
434
444
|
"no login credentials available": "May you please verify the entered email address. (Note - Please make sure to enter an email address associated with Tap)",
|
|
@@ -499,6 +509,7 @@
|
|
|
499
509
|
"please_choose_is_authorized": "Please tell us if you are the authorized user",
|
|
500
510
|
"please_choose_relative_pep": "Are you or one of your relatives a Publicly Exposed Person (PEP)",
|
|
501
511
|
"please_enter_actual_income": "Monthly income ({{currency}})",
|
|
512
|
+
"monthly_income": "Monthly income",
|
|
502
513
|
"please_enter_employer_name": "Please enter the name of your employer",
|
|
503
514
|
"please_try_again_after_few_minutes": "You can try to login again after {{minutes}} mins",
|
|
504
515
|
"powered_by": "Powered by",
|
|
@@ -544,7 +555,9 @@
|
|
|
544
555
|
"share_count_hint": "0",
|
|
545
556
|
"share_count_label": "Share Count",
|
|
546
557
|
"share_value_hint": "0000",
|
|
558
|
+
"share_value_input_label": "Share Value",
|
|
547
559
|
"share_value_label": "Share Value ({{currency}})",
|
|
560
|
+
"share_value_input_label": "Share Value",
|
|
548
561
|
"sign_up": "Sign up",
|
|
549
562
|
"signed_up": "Signed up",
|
|
550
563
|
"signin_email_label": "Email address",
|
|
@@ -620,6 +633,34 @@
|
|
|
620
633
|
"tax_success_header_title": "Tax completed",
|
|
621
634
|
"tax_success_title": "Your tax details are updated",
|
|
622
635
|
"team_size_title": "Team Size",
|
|
636
|
+
"terminal_device_id": "Device ID",
|
|
637
|
+
"terminal_devices": "{{name}} Devices",
|
|
638
|
+
"terminal_flow_pending": "Terminals",
|
|
639
|
+
"terminal_go_to_board": "Go to Board",
|
|
640
|
+
"terminal_id": "Terminal ID",
|
|
641
|
+
"terminal_link": "Link",
|
|
642
|
+
"terminal_link_terminal": "Link Terminal",
|
|
643
|
+
"terminal_linked": "Linked",
|
|
644
|
+
"terminal_linked_success": "Your terminal {{device}} is linked successfully",
|
|
645
|
+
"terminal_linked_with": "Linked with",
|
|
646
|
+
"terminal_manage_terminals": "Manage Terminals",
|
|
647
|
+
"terminal_new_request_will_send": "A new link request bas ben sent to Tap Terminal app to confirm linking.",
|
|
648
|
+
"terminal_no_terminal_linked": "No Terminal Linked",
|
|
649
|
+
"terminal_no_terminal_linked_description": "We will list the linked terminals here when available",
|
|
650
|
+
"terminal_or_use_code": "or use code",
|
|
651
|
+
"terminal_paired_with": "Paired with",
|
|
652
|
+
"terminal_push_notification_link_new_terminal_failed": "Something went wrong. Please try again later",
|
|
653
|
+
"terminal_qr_code_description": "Open the Tap app on the terminal and select Linked Terminal from the More menu.",
|
|
654
|
+
"terminal_request_denied": "The Request to link Terminal {{device}} has been denied.",
|
|
655
|
+
"terminal_request_will_send": "A request will be sent to Tap Terminal app to confirm linking.",
|
|
656
|
+
"terminal_resend_request": "Resend Request",
|
|
657
|
+
"terminal_select_device": "Select device",
|
|
658
|
+
"terminal_send_link_request": "Send linking request",
|
|
659
|
+
"terminal_serial_number": "Serial no",
|
|
660
|
+
"terminal_unlink": "Unlink",
|
|
661
|
+
"terminal_unlinked": "Unlinked",
|
|
662
|
+
"terminal_unlinked_success": "Your terminal {{device}} is unlinked successfully",
|
|
663
|
+
"terminal_with": "with",
|
|
623
664
|
"terms_and_conditions_link_title": "terms and conditions",
|
|
624
665
|
"the nin format is not valid": "May you please verify the entered identification number.",
|
|
625
666
|
"title_article": "Article of association",
|
|
@@ -641,6 +682,8 @@
|
|
|
641
682
|
"unified_number_hint": "00000",
|
|
642
683
|
"unified_number_label": "Unified Number",
|
|
643
684
|
"unified_number_required": "Unified Number Required",
|
|
685
|
+
"update_later": "I'll update later",
|
|
686
|
+
"update_mobile_number": "Update mobile number",
|
|
644
687
|
"upload_bank_statement": "Please upload the bank statement",
|
|
645
688
|
"upload_file": "Select a file from your computer",
|
|
646
689
|
"uploaded_file": "file",
|
|
@@ -661,9 +704,8 @@
|
|
|
661
704
|
"year": "Year",
|
|
662
705
|
"yes": "Yes",
|
|
663
706
|
"your_brand_details": "Your brand details",
|
|
664
|
-
"
|
|
665
|
-
"
|
|
666
|
-
"
|
|
667
|
-
"
|
|
668
|
-
"update_later": "I'll update later"
|
|
707
|
+
"passcode_title": "Please enter your passcode",
|
|
708
|
+
"sign_in_with_otp": "Sign in with OTP",
|
|
709
|
+
"passcode_required": "Please enter the required Passcode",
|
|
710
|
+
"login_with_passcode": "Login with Passcode"
|
|
669
711
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { CardProps } from '@mui/material/Card';
|
|
3
|
+
export interface DeviceCardProps extends CardProps {
|
|
4
|
+
image?: string;
|
|
5
|
+
name: string;
|
|
6
|
+
deviceId: string;
|
|
7
|
+
deviceIdLabel?: string;
|
|
8
|
+
isLinked?: boolean;
|
|
9
|
+
pairedWith?: string;
|
|
10
|
+
badge?: boolean;
|
|
11
|
+
border?: boolean;
|
|
12
|
+
loading?: boolean;
|
|
13
|
+
arrow?: boolean;
|
|
14
|
+
endAdornment?: React.ReactNode;
|
|
15
|
+
}
|
|
16
|
+
export declare const DeviceCard: ({ image, name, deviceId, deviceIdLabel, isLinked, pairedWith, onClick, badge, border, arrow, loading, endAdornment, ...rest }: DeviceCardProps) => JSX.Element;
|
|
17
|
+
declare const _default: React.MemoExoticComponent<({ image, name, deviceId, deviceIdLabel, isLinked, pairedWith, onClick, badge, border, arrow, loading, endAdornment, ...rest }: DeviceCardProps) => JSX.Element>;
|
|
18
|
+
export default _default;
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
23
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
|
+
import { memo } from 'react';
|
|
25
|
+
import { useTranslation } from 'react-i18next';
|
|
26
|
+
import { alpha, styled } from '@mui/material/styles';
|
|
27
|
+
import ArrowForwardIosIcon from '@mui/icons-material/ArrowForwardIos';
|
|
28
|
+
import Card from '@mui/material/Card';
|
|
29
|
+
import Box from '@mui/material/Box';
|
|
30
|
+
import Typography from '@mui/material/Typography';
|
|
31
|
+
import Icon from '../Icon';
|
|
32
|
+
import Loader from '../Loader';
|
|
33
|
+
var DeviceCardContainer = styled(Card, { shouldForwardProp: function (prop) { return !['showBorder'].includes(prop.toString()); } })(function (_a) {
|
|
34
|
+
var _b = _a.theme, spacing = _b.spacing, _c = _b.palette, background = _c.background, components = _c.components, showBorder = _a.showBorder;
|
|
35
|
+
return (__assign({ display: 'flex', alignItems: 'center', justifyContent: 'space-between', padding: spacing(2), borderRadius: spacing(0.5), boxShadow: 'none', width: '100%', backgroundColor: background.default, minHeight: spacing(14.125), position: 'relative' }, (showBorder && {
|
|
36
|
+
border: "1px solid ".concat(components.deviceCard.border)
|
|
37
|
+
})));
|
|
38
|
+
});
|
|
39
|
+
var DeviceDetails = styled(Box)(function (_a) {
|
|
40
|
+
var spacing = _a.theme.spacing;
|
|
41
|
+
return ({
|
|
42
|
+
display: 'flex',
|
|
43
|
+
alignItems: 'center',
|
|
44
|
+
gap: spacing(3.125)
|
|
45
|
+
});
|
|
46
|
+
});
|
|
47
|
+
var DeviceImage = styled(Icon)(function (_a) {
|
|
48
|
+
var spacing = _a.theme.spacing;
|
|
49
|
+
return ({
|
|
50
|
+
width: spacing(4.5),
|
|
51
|
+
height: 'auto',
|
|
52
|
+
objectFit: 'contain'
|
|
53
|
+
});
|
|
54
|
+
});
|
|
55
|
+
var DeviceInfo = styled(Box)(function (_a) {
|
|
56
|
+
var spacing = _a.theme.spacing;
|
|
57
|
+
return ({
|
|
58
|
+
display: 'flex',
|
|
59
|
+
flexDirection: 'column',
|
|
60
|
+
gap: spacing(1)
|
|
61
|
+
});
|
|
62
|
+
});
|
|
63
|
+
var DeviceTitle = styled(Typography)(function (_a) {
|
|
64
|
+
var _b = _a.theme, typography = _b.typography, palette = _b.palette;
|
|
65
|
+
return (__assign(__assign({}, typography.subtitle1), { color: palette.components.deviceCard.title, fontWeight: typography.fontWeightBold }));
|
|
66
|
+
});
|
|
67
|
+
var DeviceIdInfo = styled(Box)(function (_a) {
|
|
68
|
+
var _b = _a.theme, typography = _b.typography, palette = _b.palette, spacing = _b.spacing;
|
|
69
|
+
return (__assign(__assign({}, typography.caption_small), { color: alpha(palette.text.primary, 0.6), display: 'flex', flexDirection: 'column', gap: spacing(0.5) }));
|
|
70
|
+
});
|
|
71
|
+
var DeviceIdBold = styled('strong')(function (_a) {
|
|
72
|
+
var palette = _a.theme.palette;
|
|
73
|
+
return ({
|
|
74
|
+
color: palette.components.deviceCard.title
|
|
75
|
+
});
|
|
76
|
+
});
|
|
77
|
+
var Badge = styled(Box, { shouldForwardProp: function (prop) { return !['active'].includes(prop.toString()); } })(function (_a) {
|
|
78
|
+
var _b = _a.theme, direction = _b.direction, spacing = _b.spacing, palette = _b.palette, typography = _b.typography, active = _a.active;
|
|
79
|
+
return (__assign(__assign(__assign({ backgroundColor: palette.components.deviceCard.statusBackground, color: palette.components.deviceCard.statusText }, typography.caption), { fontWeight: typography.fontWeightSemiBold, padding: spacing(0.5, 1, 0.5, 1), position: 'absolute', top: 0, left: direction === 'rtl' ? 0 : 'unset', right: direction === 'rtl' ? 'unset' : '0', borderBottomLeftRadius: spacing(0.5) }), (active && {
|
|
80
|
+
backgroundColor: alpha(palette.primary.main, 0.1),
|
|
81
|
+
color: palette.primary.main
|
|
82
|
+
})));
|
|
83
|
+
});
|
|
84
|
+
var ArrowIcon = styled(ArrowForwardIosIcon)(function (_a) {
|
|
85
|
+
var _b = _a.theme, palette = _b.palette, direction = _b.direction;
|
|
86
|
+
return (__assign({ color: palette.components.deviceCard.title, fontSize: '16px' }, (direction === 'rtl' && {
|
|
87
|
+
transform: 'rotate(180deg)'
|
|
88
|
+
})));
|
|
89
|
+
});
|
|
90
|
+
export var DeviceCard = function (_a) {
|
|
91
|
+
var image = _a.image, name = _a.name, deviceId = _a.deviceId, deviceIdLabel = _a.deviceIdLabel, isLinked = _a.isLinked, pairedWith = _a.pairedWith, onClick = _a.onClick, badge = _a.badge, border = _a.border, arrow = _a.arrow, loading = _a.loading, endAdornment = _a.endAdornment, rest = __rest(_a, ["image", "name", "deviceId", "deviceIdLabel", "isLinked", "pairedWith", "onClick", "badge", "border", "arrow", "loading", "endAdornment"]);
|
|
92
|
+
var t = useTranslation().t;
|
|
93
|
+
var getEndComponent = function () {
|
|
94
|
+
if (endAdornment)
|
|
95
|
+
return endAdornment;
|
|
96
|
+
if (loading)
|
|
97
|
+
return _jsx(Loader, { innerColor: 'black', outerColor: 'black', size: 10, style: { height: 24, width: 24 }, toggleAnimation: !!loading });
|
|
98
|
+
if (arrow)
|
|
99
|
+
return _jsx(ArrowIcon, {});
|
|
100
|
+
};
|
|
101
|
+
return (_jsxs(DeviceCardContainer, __assign({ onClick: onClick, sx: { cursor: onClick ? 'pointer' : 'default' }, showBorder: border }, rest, { children: [_jsxs(DeviceDetails, { children: [image && _jsx(DeviceImage, { src: image, alt: 'Device' }), _jsxs(DeviceInfo, { children: [_jsx(DeviceTitle, { children: name }), _jsxs(DeviceIdInfo, { children: [pairedWith && (_jsxs("span", { children: [t('terminal_paired_with'), ": ", _jsx(DeviceIdBold, { children: pairedWith })] })), _jsxs("span", { children: [t(deviceIdLabel !== null && deviceIdLabel !== void 0 ? deviceIdLabel : 'terminal_device_id'), ": ", _jsx(DeviceIdBold, { children: deviceId }), "`"] })] })] })] }), badge && _jsx(Badge, __assign({ active: isLinked }, { children: isLinked ? t('terminal_linked') : t('terminal_unlinked') })), _jsx(Box, __assign({ display: 'flex', alignItems: 'center' }, { children: getEndComponent() }))] })));
|
|
102
|
+
};
|
|
103
|
+
export default memo(DeviceCard);
|
|
@@ -4,9 +4,10 @@ export interface OTPTimerProps extends BoxProps {
|
|
|
4
4
|
timeInSeconds?: number;
|
|
5
5
|
timeEndLabel: string;
|
|
6
6
|
onResetClick?: () => void;
|
|
7
|
+
failed?: boolean;
|
|
7
8
|
}
|
|
8
9
|
declare const _default: React.MemoExoticComponent<{
|
|
9
|
-
({ timeInSeconds, timeEndLabel, onResetClick, ...rest }: OTPTimerProps): JSX.Element;
|
|
10
|
+
({ timeInSeconds, timeEndLabel, onResetClick, failed, ...rest }: OTPTimerProps): JSX.Element;
|
|
10
11
|
defaultProps: {
|
|
11
12
|
time: number;
|
|
12
13
|
};
|
|
@@ -44,7 +44,7 @@ var OTPTimerTextStyled = styled(Text)(function (_a) {
|
|
|
44
44
|
});
|
|
45
45
|
});
|
|
46
46
|
var OTPTimerComponent = function (_a) {
|
|
47
|
-
var timeInSeconds = _a.timeInSeconds, timeEndLabel = _a.timeEndLabel, onResetClick = _a.onResetClick, rest = __rest(_a, ["timeInSeconds", "timeEndLabel", "onResetClick"]);
|
|
47
|
+
var timeInSeconds = _a.timeInSeconds, timeEndLabel = _a.timeEndLabel, onResetClick = _a.onResetClick, failed = _a.failed, rest = __rest(_a, ["timeInSeconds", "timeEndLabel", "onResetClick", "failed"]);
|
|
48
48
|
var _b = React.useState(timeInSeconds || 60), timeValue = _b[0], seTimeValue = _b[1];
|
|
49
49
|
React.useEffect(function () {
|
|
50
50
|
if (timeValue <= 0)
|
|
@@ -55,14 +55,14 @@ var OTPTimerComponent = function (_a) {
|
|
|
55
55
|
return function () { return clearInterval(interval); };
|
|
56
56
|
}, [timeValue]);
|
|
57
57
|
var resetTimer = function () {
|
|
58
|
-
if (onResetClick && timeValue == 0) {
|
|
58
|
+
if (onResetClick && (timeValue == 0 || failed)) {
|
|
59
59
|
onResetClick();
|
|
60
60
|
seTimeValue(timeInSeconds || 60);
|
|
61
61
|
}
|
|
62
62
|
};
|
|
63
63
|
return (_jsx(OTPTimerStyled, __assign({ onClick: resetTimer }, rest, { children: _jsx(OTPTimerTextStyled, __assign({ variant: 'h4', color: 'primary', sx: {
|
|
64
|
-
cursor: timeValue <= 0 && onResetClick ? 'pointer' : 'default'
|
|
65
|
-
} }, { children: timeValue > 0 ? (timeValue > 9 ? "00:".concat(timeValue) : "00:0".concat(timeValue)) : timeEndLabel })) })));
|
|
64
|
+
cursor: (timeValue <= 0 || failed) && onResetClick ? 'pointer' : 'default'
|
|
65
|
+
} }, { children: timeValue > 0 && !failed ? (timeValue > 9 ? "00:".concat(timeValue) : "00:0".concat(timeValue)) : timeEndLabel })) })));
|
|
66
66
|
};
|
|
67
67
|
OTPTimerComponent.defaultProps = {
|
|
68
68
|
time: 59
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { getCurrencyByCountryIso2 } from '../../utils';
|
|
3
|
+
import { CURRENCY_ICON } from '../../assets/currencies';
|
|
4
|
+
var TextWithCurrency = function (_a) {
|
|
5
|
+
var text = _a.text, countryCode = _a.countryCode;
|
|
6
|
+
if (!countryCode)
|
|
7
|
+
return _jsx(_Fragment, { children: text });
|
|
8
|
+
var currencyCode = getCurrencyByCountryIso2(countryCode);
|
|
9
|
+
var CurrencyIcon = CURRENCY_ICON[countryCode];
|
|
10
|
+
if (CurrencyIcon)
|
|
11
|
+
return (_jsxs("span", { children: [text, " (", _jsx(CurrencyIcon, {}), ")"] }));
|
|
12
|
+
return (_jsxs("span", { children: [text, currencyCode ? " (".concat(currencyCode, ")") : ''] }));
|
|
13
|
+
};
|
|
14
|
+
export default TextWithCurrency;
|
package/build/constants/api.d.ts
CHANGED
|
@@ -11,8 +11,8 @@ export declare const ENDPOINT_PATHS: {
|
|
|
11
11
|
MIGRATION_STATUS: string;
|
|
12
12
|
SANDBOX_BASE_URL: string;
|
|
13
13
|
PRODUCTION_BASE_URL: string;
|
|
14
|
+
PRODUCTION_BASE_URL_SA: string;
|
|
14
15
|
DEV_BASE_URL: string;
|
|
15
|
-
BETA_BASE_URL: string;
|
|
16
16
|
BUSINESS_COUNTRIES: string;
|
|
17
17
|
COUNTRIES: string;
|
|
18
18
|
IP: string;
|
package/build/constants/api.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var SANDBOX_BASE_URL = 'https://connect-mw.sandbox.tap.company/middleware';
|
|
2
2
|
var PRODUCTION_BASE_URL = 'https://connect-mw.tap.company/middleware';
|
|
3
|
+
var PRODUCTION_BASE_URL_SA = 'https://connect-mw.tap.com.sa/middleware';
|
|
3
4
|
var DEV_BASE_URL = 'https://connect-mw.dev.tap.company/middleware';
|
|
4
|
-
var BETA_BASE_URL = 'https://connect-mw.beta.tap.company/middleware';
|
|
5
5
|
var API_BUSINESS_COUNTRIES = 'https://godata.sandbox.tap.company/api/v1/business/country/list';
|
|
6
6
|
var API_COUNTRIES = 'https://utilities.tap.company/api/v1/country/list';
|
|
7
7
|
var CURRENCY_PATH = 'https://utilities.tap.company/api/v1/currency/iso';
|
|
@@ -69,8 +69,8 @@ export var ENDPOINT_PATHS = {
|
|
|
69
69
|
MIGRATION_STATUS: MIGRATION_STATUS,
|
|
70
70
|
SANDBOX_BASE_URL: SANDBOX_BASE_URL,
|
|
71
71
|
PRODUCTION_BASE_URL: PRODUCTION_BASE_URL,
|
|
72
|
+
PRODUCTION_BASE_URL_SA: PRODUCTION_BASE_URL_SA,
|
|
72
73
|
DEV_BASE_URL: DEV_BASE_URL,
|
|
73
|
-
BETA_BASE_URL: BETA_BASE_URL,
|
|
74
74
|
BUSINESS_COUNTRIES: API_BUSINESS_COUNTRIES,
|
|
75
75
|
COUNTRIES: API_COUNTRIES,
|
|
76
76
|
IP: IP_PATH,
|
package/build/constants/app.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { ScreenStepNavigation, BusinessType } from '../@types';
|
|
1
|
+
import { ScreenStepNavigation, BusinessType, TerminalInfo, TerminalDeviceInfo } from '../@types';
|
|
2
2
|
export declare const CONNECT_DEV_URL = "https://connect.dev.tap.company";
|
|
3
3
|
export declare const CONNECT_SANDBOX_URL = "https://connect.sandbox.tap.company";
|
|
4
|
-
export declare const CONNECT_BETA_URL = "https://connect.beta.tap.company";
|
|
5
4
|
export declare const CONNECT_PROD_URL = "https://connect.tap.company";
|
|
6
5
|
export declare const CLIENT_ORIGIN: string;
|
|
7
6
|
export declare const TAP_WEBSITE = "https://www.tap.company/";
|
|
@@ -11,9 +10,11 @@ export declare const LOCAL_STORAGE_KEYS: {
|
|
|
11
10
|
languageMode: string;
|
|
12
11
|
};
|
|
13
12
|
export declare const SCOPE_AUTH = "auth";
|
|
13
|
+
export declare const SCOPE_MERCHANT = "merchant";
|
|
14
14
|
export declare const DEFAULT_COUNTRY_ISO2 = "KW";
|
|
15
15
|
export declare const NAFATH_VERIFICATION_FAILED = "nafath_verification_failed";
|
|
16
16
|
export declare const COLLECT_DOB_INFO_NAFATH = "collect_date_of_birth";
|
|
17
|
+
export declare const TERMINAL_PUSH_NOTIFICATION_FAILED = "terminal_push_notification_link_new_terminal_failed";
|
|
17
18
|
export declare const LANGUAGE_ABBREVIATIONS: {
|
|
18
19
|
ENGLISH: string;
|
|
19
20
|
ARABIC: string;
|
|
@@ -43,6 +44,7 @@ export declare const TAX_SCREENS_NAVIGATION: Array<ScreenStepNavigation>;
|
|
|
43
44
|
export declare const SigIn_SCREENS_NAVIGATION: Array<ScreenStepNavigation>;
|
|
44
45
|
export declare const ENTITY_SCREENS_NAVIGATION: Array<ScreenStepNavigation>;
|
|
45
46
|
export declare const BRAND_SCREENS_NAVIGATION: Array<ScreenStepNavigation>;
|
|
47
|
+
export declare const TERMINAL_SCREENS_NAVIGATION: Array<ScreenStepNavigation>;
|
|
46
48
|
export declare const DefaultDeviceInfo: {
|
|
47
49
|
source: string;
|
|
48
50
|
device: {
|
|
@@ -120,6 +122,7 @@ export declare const AUTH_STEP_NAMES: {
|
|
|
120
122
|
CREATE_AUTH_NID: string;
|
|
121
123
|
VERIFY_AUTH_NID: string;
|
|
122
124
|
UPDATE_DOB_INFO: string;
|
|
125
|
+
CREATE_AUTH_PASSCODE: string;
|
|
123
126
|
};
|
|
124
127
|
export declare const CONNECT_EXPRESS_STEP_NAMES: {
|
|
125
128
|
CREATE_AUTH_MOBILE: string;
|
|
@@ -139,6 +142,7 @@ export declare const CONNECT_EXPRESS_STEP_NAMES: {
|
|
|
139
142
|
CONNECT_EXPRESS_SUCCESS: string;
|
|
140
143
|
COLLECT_MOBILE_OWNERSHIP: string;
|
|
141
144
|
COLLECT_MOBILE_OWNERSHIP_SKIPPED: string;
|
|
145
|
+
VERIFY_AUTH_MOBILE_OTP: string;
|
|
142
146
|
};
|
|
143
147
|
export declare const SignIn_STEP_NAMES: {
|
|
144
148
|
CREATE_AUTH_MOBILE: string;
|
|
@@ -212,6 +216,13 @@ export declare const KYC_STEP_NAMES: {
|
|
|
212
216
|
KYC_VERIFY_NAFATH: string;
|
|
213
217
|
KYC_COMPLETED: string;
|
|
214
218
|
};
|
|
219
|
+
export declare const TERMINAL_STEP_NAMES: {
|
|
220
|
+
PHONE_AUTH: string;
|
|
221
|
+
INFO: string;
|
|
222
|
+
SUCCESS: string;
|
|
223
|
+
CREATE_AUTH: string;
|
|
224
|
+
CREATE_TERMINAL_AUTH: string;
|
|
225
|
+
};
|
|
215
226
|
export declare const RSA_FRONTEND_MW_PUBLIC_KEY = "-----BEGIN PUBLIC KEY-----\nMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCgC9kH1SQvjbXAUXd0PbrDUG8P\nLhRig9pJNBmdQBZjihuaxfkzYu6ToMbIMAfmYgVgQw338/y7aQ8X3m03CXNIlkxo\nOwxKCA8ymKsZQptXJn9IxlPO7yjoFgTFBrpmTgvcC4XO1uoUYTAPq3szK8kj4zgT\nucWG1hSKsOdRU7sl/wIDAQAB\n-----END PUBLIC KEY-----";
|
|
216
227
|
export declare const ENCRYPTION_FLAG = "encryption_contract";
|
|
217
228
|
export declare const BACKEND_ENCRYPTION_FLAG = "backend_encryption_contract";
|
|
@@ -306,4 +317,6 @@ interface CountryToCurrencyMapping {
|
|
|
306
317
|
[countryCode: string]: string;
|
|
307
318
|
}
|
|
308
319
|
export declare const COUNTRY_TO_CURRENCY: CountryToCurrencyMapping;
|
|
320
|
+
export declare const SELECTED_TERMINAL_DEVICE_DEFAULT_INFO: TerminalDeviceInfo;
|
|
321
|
+
export declare const SELECTED_TERMINAL_DEFAULT_INFO: TerminalInfo;
|
|
309
322
|
export {};
|