@tap-payments/auth-jsconnect 2.10.2-development → 2.10.4-development
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/build/assets/locales/ar.json +39 -11
- package/build/assets/locales/en.json +42 -41
- package/build/constants/app.js +12 -6
- package/build/constants/flows.d.ts +2 -1
- package/build/constants/flows.js +3 -2
- package/build/features/app/terminal/terminalStore.js +5 -2
- package/build/features/featuresScreens.js +6 -1
- package/build/features/terminal/screens/LinkNewTerminal/LinkNewTerminal.js +1 -1
- package/build/features/terminal/screens/LinkedTerminalInfo/LinkedTerminalInfo.js +1 -1
- package/build/features/terminal/screens/TerminalDeviceList/TerminalDeviceList.js +38 -23
- package/build/features/terminal/screens/TerminalDeviceList/styles.d.ts +0 -12
- package/build/features/terminal/screens/TerminalDeviceList/styles.js +1 -44
- package/build/features/terminal/screens/TerminalListPage/TerminalListPage.d.ts +3 -0
- package/build/features/terminal/screens/TerminalListPage/TerminalListPage.js +41 -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/UnlinkedTerminalInfo/UnlinkedTerminalInfo.js +2 -2
- package/build/features/terminal/screens/UnlinkedTerminalInfo/styles.d.ts +0 -18
- package/build/features/terminal/screens/UnlinkedTerminalInfo/styles.js +3 -71
- 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/{UnlinkedTerminalInfo → shared}/TerminalList.d.ts +3 -1
- package/build/features/terminal/screens/shared/TerminalList.js +25 -0
- package/build/features/terminal/screens/shared/index.d.ts +3 -0
- package/build/features/terminal/screens/shared/index.js +3 -0
- package/build/features/terminal/screens/shared/styles.d.ts +33 -0
- package/build/features/terminal/screens/shared/styles.js +105 -0
- package/build/utils/string.js +1 -1
- package/package.json +1 -1
- package/build/features/terminal/screens/TerminalDeviceList/Header.d.ts +0 -6
- package/build/features/terminal/screens/TerminalDeviceList/Header.js +0 -23
- package/build/features/terminal/screens/UnlinkedTerminalInfo/TerminalList.js +0 -16
|
@@ -135,15 +135,15 @@
|
|
|
135
135
|
"call_center_placeholder": "رقم هاتف خدمة الإتصال",
|
|
136
136
|
"cancel": "إلغاء",
|
|
137
137
|
"capital_paid_hint": "00000",
|
|
138
|
-
"capital_paid_label": "رأس المال المدفوع ({{currency}})",
|
|
139
138
|
"capital_paid_input_label": "رأس المال المدفوع",
|
|
139
|
+
"capital_paid_label": "رأس المال المدفوع ({{currency}})",
|
|
140
140
|
"capital_paid_required": "Please Enter paid amount",
|
|
141
141
|
"capital_share_count_hint": "00000",
|
|
142
142
|
"capital_share_count_label": "عدد اسهم رأس المال",
|
|
143
143
|
"capital_share_count_required": "Please Enter share count",
|
|
144
144
|
"capital_share_value_hint": "00000",
|
|
145
|
-
"capital_share_value_label": "قيمة السهم ({{currency}})",
|
|
146
145
|
"capital_share_value_input_label": "قيمة السهم",
|
|
146
|
+
"capital_share_value_label": "قيمة السهم ({{currency}})",
|
|
147
147
|
"capital_share_value_required": "Please Enter share value",
|
|
148
148
|
"category": "الفئة",
|
|
149
149
|
"category_name": "اسم الفئة",
|
|
@@ -209,6 +209,7 @@
|
|
|
209
209
|
"create_new_entity": "Create Entity",
|
|
210
210
|
"creating_account_description": "هذه العملية تحتاج وقت...",
|
|
211
211
|
"creating_account_title": "جارى انشاء الحساب",
|
|
212
|
+
"current_mobile_number": "رقم الجوال الحالي",
|
|
212
213
|
"customer_base_name_hint": "اختر محليًا إذا كنت تبيع فقط في البلد الذي تقيم فيه. اختر إقليميًا إذا كنت تبيع أيضًا لدول مجلس التعاون الخليجي الأخرى. اختر عالمياً إذا كنت تبيع إلى أي دولة خارج دول مجلس التعاون الخليجي.",
|
|
213
214
|
"data_loading_desc": "الرجاء الانتظار أثناء تحضير البيانات",
|
|
214
215
|
"data_loading_title": "تحضير البيانات",
|
|
@@ -281,8 +282,8 @@
|
|
|
281
282
|
"entity_type": "نوع الكيان",
|
|
282
283
|
"entity_type_required": "Please select at least one entity type",
|
|
283
284
|
"expected_customers_to_serve": "عدد العملاء شهريا",
|
|
284
|
-
"expected_sales_monthly": "البيع المتوقع في الشهر؟ ({{currency}})",
|
|
285
285
|
"expected_sale_per_month": "البيع المتوقع في الشهر؟",
|
|
286
|
+
"expected_sales_monthly": "البيع المتوقع في الشهر؟ ({{currency}})",
|
|
286
287
|
"expected_sales_yearly": "ما هي المبيعات المتوقعة لعملك شهريًا؟",
|
|
287
288
|
"expected_served_monthly": "عدد العملاء شهريا",
|
|
288
289
|
"expiry_date": "تاريخ الإنتهاء",
|
|
@@ -378,7 +379,6 @@
|
|
|
378
379
|
"kyc_terms_title": "وثائق قانونية",
|
|
379
380
|
"kyc_token_invalid": "الرجاء مراجعة رابط المرسل اليك",
|
|
380
381
|
"kyc_users_description": "يرجى اختيار رقم هوية الممثل المعتمد للموافقة عليه مع {{provider}}",
|
|
381
|
-
"kyc_privacy_policy": "سياسة الخصوصية",
|
|
382
382
|
"language": "English",
|
|
383
383
|
"license_info": "معلومات الترخيص",
|
|
384
384
|
"license_name_hint": "Enter legal name",
|
|
@@ -403,11 +403,14 @@
|
|
|
403
403
|
"mobile_app_label": "تطبيقات هاتف",
|
|
404
404
|
"mobile_button_label": "المتابعة عن طريق رقم الجوال",
|
|
405
405
|
"mobile_number_description": "ابدأ فورًا باستخدام رقم هاتفك المحمول",
|
|
406
|
+
"mobile_ownership_title": "يرجى تحديث رقم هاتفك المحمول المسجل ليتوافق مع هويتك.",
|
|
406
407
|
"month": "الشهر",
|
|
408
|
+
"monthly_income": "ما هو دخلك الشهري؟ ",
|
|
407
409
|
"nafath_button_label": "المتابعة عن طريق نفاذ",
|
|
408
410
|
"nafath_verification_description_check": "يرجى الدخول إلى تطبيق نفاذ الخاص بك وإدخال رقم الطلب أعلاه للمصادقة.",
|
|
409
411
|
"nafath_verification_description_error": "حاول مرة اخرى",
|
|
410
412
|
"nafath_verification_description_wait": "يرجى الدخول إلى تطبيق نفاذ الخاص بك وإدخال رقم الطلب أعلاه للمصادقة.",
|
|
413
|
+
"nafath_verification_failed": "تأكد من الموافقة على الطلب المرسل عبر تطبيق نفاذ، يرجى محاولة إرسال طلب جديد.",
|
|
411
414
|
"nafath_verification_redirection_message": "سيتم إعادة توجيهك الآن",
|
|
412
415
|
"nafath_verification_title_check": "المصادقة مع تطبيق نفاذ",
|
|
413
416
|
"nafath_verification_title_error": "لا يمكننا تأكيد المصادقة الخاصة بك",
|
|
@@ -417,6 +420,7 @@
|
|
|
417
420
|
"national_id_placeholder": "0000000000",
|
|
418
421
|
"national_id_title": "الهوية الوطنية",
|
|
419
422
|
"nationality_label": "الجنسية",
|
|
423
|
+
"new_mobile_number": "رقم الجوال الجديد",
|
|
420
424
|
"next": "التالي",
|
|
421
425
|
"no": "لا",
|
|
422
426
|
"no_results": "لا نتائج",
|
|
@@ -486,7 +490,6 @@
|
|
|
486
490
|
"please_choose_is_authorized": "الرجاء التأكيد إذا كنت أنت المستخدم المصرح له",
|
|
487
491
|
"please_choose_relative_pep": "هل أنت أو أحد أقاربك شخص مكشوف علنًا (PEP)",
|
|
488
492
|
"please_enter_actual_income": "ما هو دخلك الشهري ({{currency}}) ؟ ",
|
|
489
|
-
"monthly_income": "ما هو دخلك الشهري؟ ",
|
|
490
493
|
"please_enter_employer_name": "يرجى إدخال اسم منشأه العمل الخاص بك",
|
|
491
494
|
"please_try_again_after_few_minutes": "يمكنك محاولة تسجيل الدخول مرة أخرى بعد {{minutes}} دقيقة",
|
|
492
495
|
"powered_by": "بواسطة",
|
|
@@ -526,8 +529,8 @@
|
|
|
526
529
|
"share_count_hint": "0",
|
|
527
530
|
"share_count_label": "عدد الأسهم",
|
|
528
531
|
"share_value_hint": "0000",
|
|
529
|
-
"share_value_label": "قيمة السهم ({{currency}})",
|
|
530
532
|
"share_value_input_label": "قيمة السهم",
|
|
533
|
+
"share_value_label": "قيمة السهم ({{currency}})",
|
|
531
534
|
"sign_up": "Sign up",
|
|
532
535
|
"signed_up": "تسجيل الدخول",
|
|
533
536
|
"signin_email_label": "البريد الألكتروني",
|
|
@@ -600,6 +603,34 @@
|
|
|
600
603
|
"tax_success_header_title": "اكتملت الضريبة",
|
|
601
604
|
"tax_success_title": "تم تحديث المعلومات الضريبية الخاصة بعملك التجاري.",
|
|
602
605
|
"team_size_title": "حجم الفريق",
|
|
606
|
+
"terminal_device_id": "رقم تعريف جهاز الكاشير",
|
|
607
|
+
"terminal_devices": "{{name}} أجهزة",
|
|
608
|
+
"terminal_flow_pending": "أجهزة نقاط الدفع",
|
|
609
|
+
"terminal_go_to_board": "الانتقال إلى اللوحة",
|
|
610
|
+
"terminal_id": "رقم تعريف جهاز نقطة الدفع",
|
|
611
|
+
"terminal_link": "ربط",
|
|
612
|
+
"terminal_link_terminal": "ربط جهاز نقطة الدفع",
|
|
613
|
+
"terminal_linked": "تمَّ الربط",
|
|
614
|
+
"terminal_linked_success": "تم ربط جهاز نقطة الدفع {{device}} الخاص بك بنجاح!",
|
|
615
|
+
"terminal_linked_with": "مرتبط مع",
|
|
616
|
+
"terminal_manage_terminals": "إدارة أجهزة نقاط الدفع",
|
|
617
|
+
"terminal_new_request_will_send": "لتأكيد الربط تمَّ إرسال طلب ربط جديد إلى تطبيق الـ Terminal من تاب.",
|
|
618
|
+
"terminal_no_terminal_linked": "لا يوجد أجهزة نقاط دفع مرتبطة",
|
|
619
|
+
"terminal_no_terminal_linked_description": "سيتم عرض أجهزة نقاط الدفع المرتبطة هنا عند توفّرها",
|
|
620
|
+
"terminal_or_use_code": "أو استخدم الرمز",
|
|
621
|
+
"terminal_paired_with": "مقترن بـ",
|
|
622
|
+
"terminal_push_notification_link_new_terminal_failed": "حدث خطأ. يرجى المحاولة لاحقاً",
|
|
623
|
+
"terminal_qr_code_description": "افتح تطبيق تاب على جهاز نقطة الدفع، ثم اختر جهاز نقطة الدفع المرتبط من قائمة المزيد.",
|
|
624
|
+
"terminal_request_denied": "تمَّ رفض طلب ربط جهاز نقطة الدفع {{device }}",
|
|
625
|
+
"terminal_request_will_send": "لتأكيد الربط سيتم إرسال طلب إلى تطبيق الـ Terminal من تاب.",
|
|
626
|
+
"terminal_resend_request": "إعادة إرسال الطلب",
|
|
627
|
+
"terminal_select_device": "اختر جهاز نقطة الدفع",
|
|
628
|
+
"terminal_send_link_request": "إرسال طلب الربط",
|
|
629
|
+
"terminal_serial_number": "الرقم التسلسلي",
|
|
630
|
+
"terminal_unlink": "إلغاء الربط",
|
|
631
|
+
"terminal_unlinked": "غير مرتبط",
|
|
632
|
+
"terminal_unlinked_success": "تم إلغاء ربط جهاز نقطة الدفع {{device}} الخاص بك بنجاح!",
|
|
633
|
+
"terminal_with": "مع",
|
|
603
634
|
"terms_and_conditions_link_title": "الشروط والاحكام",
|
|
604
635
|
"the nin format is not valid": "هل يمكنك التحقق من رقم الهوية الذي تم إدخاله.",
|
|
605
636
|
"title_article": "مذكرة التأسيس",
|
|
@@ -620,6 +651,8 @@
|
|
|
620
651
|
"unified_number_hint": "000000",
|
|
621
652
|
"unified_number_label": "الرقم الموحد",
|
|
622
653
|
"unified_number_required": "Unified Number Required",
|
|
654
|
+
"update_later": "سأقوم بالتحديث لاحقاً",
|
|
655
|
+
"update_mobile_number": "تحديث رقم الجوال",
|
|
623
656
|
"uploaded_file": "file",
|
|
624
657
|
"vat_id": "رقم الضريبي المميز",
|
|
625
658
|
"vat_id_placeholder": "00000000",
|
|
@@ -639,11 +672,6 @@
|
|
|
639
672
|
"yes": "نعم",
|
|
640
673
|
"your_brand_details": "تفاصيل علامتك التجارية",
|
|
641
674
|
"يرجى التحقق من اسم تطبيق ابل": "",
|
|
642
|
-
"mobile_ownership_title": "لتفعيل استلام الايداعات، يرجى تحديث رقم هاتفك المحمول المسجل ليتوافق مع هويتك.",
|
|
643
|
-
"current_mobile_number": "رقم الجوال الحالي",
|
|
644
|
-
"new_mobile_number": "رقم الجوال الجديد",
|
|
645
|
-
"update_mobile_number": "تحديث رقم الجوال",
|
|
646
|
-
"update_later": "سأقوم بالتحديث لاحقاً",
|
|
647
675
|
"passcode_title": "الرجاء إدخال رمز المرور الخاص بك",
|
|
648
676
|
"sign_in_with_otp": "تسجيل الدخول باستخدام رمز التحقق (OTP)",
|
|
649
677
|
"passcode_required": "الرجاء إدخال رمز المرور المطلوب",
|
|
@@ -134,15 +134,15 @@
|
|
|
134
134
|
"call_center_placeholder": "Enter your call center number",
|
|
135
135
|
"cancel": "Cancel",
|
|
136
136
|
"capital_paid_hint": "00000",
|
|
137
|
-
"capital_paid_label": "Capital Paid ({{currency}})",
|
|
138
137
|
"capital_paid_input_label": "Capital Paid",
|
|
138
|
+
"capital_paid_label": "Capital Paid ({{currency}})",
|
|
139
139
|
"capital_paid_required": "Please Enter paid amount",
|
|
140
140
|
"capital_share_count_hint": "00000",
|
|
141
141
|
"capital_share_count_label": "Capital Share Count",
|
|
142
142
|
"capital_share_count_required": "Please Enter share count",
|
|
143
143
|
"capital_share_value_hint": "00000",
|
|
144
|
-
"capital_share_value_label": "Capital Share Value ({{currency}})",
|
|
145
144
|
"capital_share_value_input_label": "Capital Share Value",
|
|
145
|
+
"capital_share_value_label": "Capital Share Value ({{currency}})",
|
|
146
146
|
"capital_share_value_required": "Please Enter share value",
|
|
147
147
|
"category": "Category",
|
|
148
148
|
"category_name": "Category name",
|
|
@@ -216,6 +216,7 @@
|
|
|
216
216
|
"create_new_entity": "Create Entity",
|
|
217
217
|
"creating_account_description": "This might take a moment...",
|
|
218
218
|
"creating_account_title": "Creating your account",
|
|
219
|
+
"current_mobile_number": "Current mobile number",
|
|
219
220
|
"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.",
|
|
220
221
|
"data_loading_desc": "Please wait as we are preparing data",
|
|
221
222
|
"data_loading_title": "Preparing data",
|
|
@@ -258,7 +259,7 @@
|
|
|
258
259
|
"enter_license_no": "Freelance registration",
|
|
259
260
|
"enter_license_number": "Please enter license number at least 5 chars",
|
|
260
261
|
"enter_national_id": "Identification number",
|
|
261
|
-
"enter_served_monthly": "Customers
|
|
262
|
+
"enter_served_monthly": "Customers served per month",
|
|
262
263
|
"enter_strong_password": "Please enter strong password.",
|
|
263
264
|
"enter_valid_birth_date": "Please enter a valid birth date.",
|
|
264
265
|
"enter_valid_brand_name": "Please enter a valid brand name.",
|
|
@@ -288,11 +289,11 @@
|
|
|
288
289
|
"entity_success_title": "Entity Updated Successfully",
|
|
289
290
|
"entity_type": "Entity Type",
|
|
290
291
|
"entity_type_required": "Please select at least one entity type",
|
|
291
|
-
"expected_customers_to_serve": "Customers
|
|
292
|
-
"expected_sales_monthly": "Expected sale per month? ({{currency}})",
|
|
292
|
+
"expected_customers_to_serve": "Customers served per month",
|
|
293
293
|
"expected_sale_per_month": "Expected sale per month?",
|
|
294
|
+
"expected_sales_monthly": "Expected sale per month? ({{currency}})",
|
|
294
295
|
"expected_sales_yearly": "What is the expected sales for your business per month?",
|
|
295
|
-
"expected_served_monthly": "Customers
|
|
296
|
+
"expected_served_monthly": "Customers served per month",
|
|
296
297
|
"expiry_date": "Date of expiry",
|
|
297
298
|
"express_account_already_created_close_button": "Close",
|
|
298
299
|
"express_account_already_created_description": "Your Account is already created",
|
|
@@ -392,7 +393,6 @@
|
|
|
392
393
|
"kyc_token_invalid": "May you please verify link of which you are trying to open.",
|
|
393
394
|
"kyc_users_description": "Please select an authorized registered ID to approve with {{provider}}",
|
|
394
395
|
"kyc_verification": "Know Your Customer (KYC)",
|
|
395
|
-
"kyc_privacy_policy": "Privacy Policy",
|
|
396
396
|
"language": "العربية",
|
|
397
397
|
"license_info": "License information",
|
|
398
398
|
"license_name_hint": "Enter legal name",
|
|
@@ -418,11 +418,14 @@
|
|
|
418
418
|
"mobile_app_label": "Mobile App",
|
|
419
419
|
"mobile_button_label": "Continue with Mobile",
|
|
420
420
|
"mobile_number_description": "Start instantly with your Mobile Number",
|
|
421
|
+
"mobile_ownership_title": "Please update your mobile number to match you national ID",
|
|
421
422
|
"month": "Month",
|
|
423
|
+
"monthly_income": "Monthly income",
|
|
422
424
|
"nafath_button_label": "Continue with Nafath",
|
|
423
425
|
"nafath_verification_description_check": "Please go to your NAFATH app and enter the above request number to authenticate.",
|
|
424
426
|
"nafath_verification_description_error": "Please try again",
|
|
425
427
|
"nafath_verification_description_wait": "Please go to your NAFATH app and enter the above request number to authenticate.",
|
|
428
|
+
"nafath_verification_failed": "Make sure to approve the request sent through Nafath App, please try to send a new request.",
|
|
426
429
|
"nafath_verification_redirection_message": "You will be redirected now",
|
|
427
430
|
"nafath_verification_title_check": "Authenticate with NAFATH app",
|
|
428
431
|
"nafath_verification_title_error": "We cannot confirm your authentication",
|
|
@@ -432,6 +435,7 @@
|
|
|
432
435
|
"national_id_placeholder": "0000000000",
|
|
433
436
|
"national_id_title": "National ID",
|
|
434
437
|
"nationality_label": "Nationality",
|
|
438
|
+
"new_mobile_number": "New mobile number",
|
|
435
439
|
"next": "Next",
|
|
436
440
|
"no": "No",
|
|
437
441
|
"no login credentials available": "May you please verify the entered email address. (Note - Please make sure to enter an email address associated with Tap)",
|
|
@@ -502,7 +506,6 @@
|
|
|
502
506
|
"please_choose_is_authorized": "Please tell us if you are the authorized user",
|
|
503
507
|
"please_choose_relative_pep": "Are you or one of your relatives a Publicly Exposed Person (PEP)",
|
|
504
508
|
"please_enter_actual_income": "Monthly income ({{currency}})",
|
|
505
|
-
"monthly_income": "Monthly income",
|
|
506
509
|
"please_enter_employer_name": "Please enter the name of your employer",
|
|
507
510
|
"please_try_again_after_few_minutes": "You can try to login again after {{minutes}} mins",
|
|
508
511
|
"powered_by": "Powered by",
|
|
@@ -548,8 +551,8 @@
|
|
|
548
551
|
"share_count_hint": "0",
|
|
549
552
|
"share_count_label": "Share Count",
|
|
550
553
|
"share_value_hint": "0000",
|
|
551
|
-
"share_value_label": "Share Value ({{currency}})",
|
|
552
554
|
"share_value_input_label": "Share Value",
|
|
555
|
+
"share_value_label": "Share Value ({{currency}})",
|
|
553
556
|
"sign_up": "Sign up",
|
|
554
557
|
"signed_up": "Signed up",
|
|
555
558
|
"signin_email_label": "Email address",
|
|
@@ -625,6 +628,34 @@
|
|
|
625
628
|
"tax_success_header_title": "Tax completed",
|
|
626
629
|
"tax_success_title": "Your tax details are updated",
|
|
627
630
|
"team_size_title": "Team Size",
|
|
631
|
+
"terminal_device_id": "Device ID",
|
|
632
|
+
"terminal_devices": "{{name}} Devices",
|
|
633
|
+
"terminal_flow_pending": "Terminals",
|
|
634
|
+
"terminal_go_to_board": "Go to Board",
|
|
635
|
+
"terminal_id": "Terminal ID",
|
|
636
|
+
"terminal_link": "Link",
|
|
637
|
+
"terminal_link_terminal": "Link Terminal",
|
|
638
|
+
"terminal_linked": "Linked",
|
|
639
|
+
"terminal_linked_success": "Your terminal {{device}} is linked successfully",
|
|
640
|
+
"terminal_linked_with": "Linked with",
|
|
641
|
+
"terminal_manage_terminals": "Manage Terminals",
|
|
642
|
+
"terminal_new_request_will_send": "A new link request bas ben sent to Tap Terminal app to confirm linking.",
|
|
643
|
+
"terminal_no_terminal_linked": "No Terminal Linked",
|
|
644
|
+
"terminal_no_terminal_linked_description": "We will list the linked terminals here when available",
|
|
645
|
+
"terminal_or_use_code": "or use code",
|
|
646
|
+
"terminal_paired_with": "Paired with",
|
|
647
|
+
"terminal_push_notification_link_new_terminal_failed": "Something went wrong. Please try again later",
|
|
648
|
+
"terminal_qr_code_description": "Open the Tap app on the terminal and select Linked Terminal from the More menu.",
|
|
649
|
+
"terminal_request_denied": "The Request to link Terminal {{device}} has been denied.",
|
|
650
|
+
"terminal_request_will_send": "A request will be sent to Tap Terminal app to confirm linking.",
|
|
651
|
+
"terminal_resend_request": "Resend Request",
|
|
652
|
+
"terminal_select_device": "Select device",
|
|
653
|
+
"terminal_send_link_request": "Send linking request",
|
|
654
|
+
"terminal_serial_number": "Serial no",
|
|
655
|
+
"terminal_unlink": "Unlink",
|
|
656
|
+
"terminal_unlinked": "Unlinked",
|
|
657
|
+
"terminal_unlinked_success": "Your terminal {{device}} is unlinked successfully",
|
|
658
|
+
"terminal_with": "with",
|
|
628
659
|
"terms_and_conditions_link_title": "terms and conditions",
|
|
629
660
|
"the nin format is not valid": "May you please verify the entered identification number.",
|
|
630
661
|
"title_article": "Article of association",
|
|
@@ -646,6 +677,8 @@
|
|
|
646
677
|
"unified_number_hint": "00000",
|
|
647
678
|
"unified_number_label": "Unified Number",
|
|
648
679
|
"unified_number_required": "Unified Number Required",
|
|
680
|
+
"update_later": "I'll update later",
|
|
681
|
+
"update_mobile_number": "Update mobile number",
|
|
649
682
|
"upload_bank_statement": "Please upload the bank statement",
|
|
650
683
|
"upload_file": "Select a file from your computer",
|
|
651
684
|
"uploaded_file": "file",
|
|
@@ -666,38 +699,6 @@
|
|
|
666
699
|
"year": "Year",
|
|
667
700
|
"yes": "Yes",
|
|
668
701
|
"your_brand_details": "Your brand details",
|
|
669
|
-
"mobile_ownership_title": "To enable bank payouts, please update your registered mobile number to match your national ID.",
|
|
670
|
-
"current_mobile_number": "Current mobile number",
|
|
671
|
-
"new_mobile_number": "New mobile number",
|
|
672
|
-
"update_mobile_number": "Update mobile number",
|
|
673
|
-
"update_later": "I'll update later",
|
|
674
|
-
"terminal_manage_terminals": "Manage Terminals",
|
|
675
|
-
"terminal_link_terminal": "Link Terminal",
|
|
676
|
-
"terminal_linked": "Linked",
|
|
677
|
-
"terminal_link": "Link",
|
|
678
|
-
"terminal_unlinked": "Unlinked",
|
|
679
|
-
"terminal_paired_with": "Paired with",
|
|
680
|
-
"terminal_device_id": "Device ID",
|
|
681
|
-
"terminal_serial_number": "Serial no",
|
|
682
|
-
"terminal_qr_code_description": "Open the Tap app on the terminal and select Linked Terminal from the More menu.",
|
|
683
|
-
"terminal_or_use_code": "or use code",
|
|
684
|
-
"terminal_unlink": "Unlink",
|
|
685
|
-
"terminal_linked_with": "Linked with",
|
|
686
|
-
"terminal_send_link_request": "Send linking request",
|
|
687
|
-
"terminal_request_will_send": "A request will be sent to Tap Terminal app to confirm linking.",
|
|
688
|
-
"terminal_new_request_will_send": "A new link request bas ben sent to Tap Terminal app to confirm linking.",
|
|
689
|
-
"terminal_resend_request": "Resend Request",
|
|
690
|
-
"terminal_with": "with",
|
|
691
|
-
"terminal_request_denied": "The Request to link Terminal {{device}} has been denied.",
|
|
692
|
-
"terminal_go_to_board": "Go to Board",
|
|
693
|
-
"terminal_linked_success": "Your terminal {{device}} is linked successfully",
|
|
694
|
-
"terminal_unlinked_success": "Your terminal {{device}} is unlinked successfully",
|
|
695
|
-
"terminal_no_terminal_linked": "No Terminal Linked",
|
|
696
|
-
"terminal_no_terminal_linked_description": "We will list the linked terminals here when available",
|
|
697
|
-
"terminal_push_notification_link_new_terminal_failed": "Something went wrong. Please try again later",
|
|
698
|
-
"terminal_id": "Terminal ID",
|
|
699
|
-
"terminal_devices": "{{name}} Devices",
|
|
700
|
-
"terminal_flow_pending": "Terminals",
|
|
701
702
|
"passcode_title": "Please enter your passcode",
|
|
702
703
|
"sign_in_with_otp": "Sign in with OTP",
|
|
703
704
|
"passcode_required": "Please enter the required Passcode",
|
package/build/constants/app.js
CHANGED
|
@@ -975,13 +975,13 @@ export var BRAND_SCREENS_NAVIGATION = [
|
|
|
975
975
|
export var TERMINAL_SCREENS_NAVIGATION = [
|
|
976
976
|
{
|
|
977
977
|
name: CONNECT_FLOWS.terminal.verify,
|
|
978
|
-
next: [CONNECT_FLOWS.terminal.
|
|
978
|
+
next: [CONNECT_FLOWS.terminal.terminalDeviceList, CONNECT_FLOWS.terminal.noTerminalLinked],
|
|
979
979
|
prev: CONNECT_FLOWS.terminal.board,
|
|
980
980
|
order: 1
|
|
981
981
|
},
|
|
982
982
|
{
|
|
983
983
|
name: CONNECT_FLOWS.terminal.loadingData,
|
|
984
|
-
next: CONNECT_FLOWS.terminal.
|
|
984
|
+
next: CONNECT_FLOWS.terminal.terminalDeviceList,
|
|
985
985
|
prev: '',
|
|
986
986
|
order: 1
|
|
987
987
|
},
|
|
@@ -998,11 +998,17 @@ export var TERMINAL_SCREENS_NAVIGATION = [
|
|
|
998
998
|
order: 2
|
|
999
999
|
},
|
|
1000
1000
|
{
|
|
1001
|
-
name: CONNECT_FLOWS.terminal.
|
|
1002
|
-
next: [CONNECT_FLOWS.terminal.
|
|
1001
|
+
name: CONNECT_FLOWS.terminal.terminalDeviceList,
|
|
1002
|
+
next: [CONNECT_FLOWS.terminal.terminalList, CONNECT_FLOWS.terminal.linkedTerminalInfo, CONNECT_FLOWS.terminal.unlinkedTerminalInfo],
|
|
1003
1003
|
prev: CONNECT_FLOWS.terminal.board,
|
|
1004
1004
|
order: 2
|
|
1005
1005
|
},
|
|
1006
|
+
{
|
|
1007
|
+
name: CONNECT_FLOWS.terminal.terminalList,
|
|
1008
|
+
next: CONNECT_FLOWS.terminal.terminalLinkNew,
|
|
1009
|
+
prev: CONNECT_FLOWS.terminal.terminalDeviceList,
|
|
1010
|
+
order: 3
|
|
1011
|
+
},
|
|
1006
1012
|
{
|
|
1007
1013
|
name: CONNECT_FLOWS.terminal.terminalLinkNew,
|
|
1008
1014
|
next: CONNECT_FLOWS.terminal.terminalLinkedSuccess,
|
|
@@ -1012,13 +1018,13 @@ export var TERMINAL_SCREENS_NAVIGATION = [
|
|
|
1012
1018
|
{
|
|
1013
1019
|
name: CONNECT_FLOWS.terminal.linkedTerminalInfo,
|
|
1014
1020
|
next: CONNECT_FLOWS.terminal.terminalUnlinkedSuccess,
|
|
1015
|
-
prev: CONNECT_FLOWS.terminal.
|
|
1021
|
+
prev: CONNECT_FLOWS.terminal.terminalDeviceList,
|
|
1016
1022
|
order: 3
|
|
1017
1023
|
},
|
|
1018
1024
|
{
|
|
1019
1025
|
name: CONNECT_FLOWS.terminal.unlinkedTerminalInfo,
|
|
1020
1026
|
next: CONNECT_FLOWS.terminal.terminalLinkedSuccess,
|
|
1021
|
-
prev: CONNECT_FLOWS.terminal.
|
|
1027
|
+
prev: CONNECT_FLOWS.terminal.terminalDeviceList,
|
|
1022
1028
|
order: 3
|
|
1023
1029
|
},
|
|
1024
1030
|
{
|
|
@@ -28,7 +28,7 @@ export declare const CONNECT_FLOWS: {
|
|
|
28
28
|
operatorError: string;
|
|
29
29
|
verify: string;
|
|
30
30
|
noTerminalLinked: string;
|
|
31
|
-
|
|
31
|
+
terminalDeviceList: string;
|
|
32
32
|
terminalLinkNew: string;
|
|
33
33
|
linkedTerminalInfo: string;
|
|
34
34
|
unlinkedTerminalInfo: string;
|
|
@@ -36,5 +36,6 @@ export declare const CONNECT_FLOWS: {
|
|
|
36
36
|
terminalUnlinkedSuccess: string;
|
|
37
37
|
board: string;
|
|
38
38
|
resetPassword: string;
|
|
39
|
+
terminalList: string;
|
|
39
40
|
};
|
|
40
41
|
};
|
package/build/constants/flows.js
CHANGED
|
@@ -29,13 +29,14 @@ export var CONNECT_FLOWS = {
|
|
|
29
29
|
operatorError: 'TERMINAL_OPERATOR_ERROR_STEP',
|
|
30
30
|
verify: 'TERMINAL_VERIFY_OTP_STEP',
|
|
31
31
|
noTerminalLinked: 'TERMINAL_NO_TERMINAL_LINKED',
|
|
32
|
-
|
|
32
|
+
terminalDeviceList: 'TERMINAL_DEVICE_LIST_STEP',
|
|
33
33
|
terminalLinkNew: 'TERMINAL_LINK_NEW_STEP',
|
|
34
34
|
linkedTerminalInfo: 'TERMINAL_LINKED_INFO_STEP',
|
|
35
35
|
unlinkedTerminalInfo: 'TERMINAL_UNLINKED_INFO_STEP',
|
|
36
36
|
terminalLinkedSuccess: 'TERMINAL_LINKED_SUCCESS_STEP',
|
|
37
37
|
terminalUnlinkedSuccess: 'TERMINAL_UNLINKED_SUCCESS_STEP',
|
|
38
38
|
board: 'TERMINAL_BOARD_STEP',
|
|
39
|
-
resetPassword: 'TERMINAL_RESET_PASSWORD'
|
|
39
|
+
resetPassword: 'TERMINAL_RESET_PASSWORD',
|
|
40
|
+
terminalList: 'TERMINAL_LIST_STEP'
|
|
40
41
|
}
|
|
41
42
|
};
|
|
@@ -85,7 +85,7 @@ export var verifyToken = createAsyncThunk('terminal/verifyLeadToken', function (
|
|
|
85
85
|
return [4, API.terminalService.retrieveTerminalDeviceList([merchant_id])];
|
|
86
86
|
case 2:
|
|
87
87
|
terminalData = _d.sent();
|
|
88
|
-
nextScreen = ((_c = terminalData === null || terminalData === void 0 ? void 0 : terminalData.terminal_devices) === null || _c === void 0 ? void 0 : _c.length) ? CONNECT_FLOWS.terminal.
|
|
88
|
+
nextScreen = ((_c = terminalData === null || terminalData === void 0 ? void 0 : terminalData.terminal_devices) === null || _c === void 0 ? void 0 : _c.length) ? CONNECT_FLOWS.terminal.terminalDeviceList : CONNECT_FLOWS.terminal.noTerminalLinked;
|
|
89
89
|
return [2, {
|
|
90
90
|
data: data,
|
|
91
91
|
token: token,
|
|
@@ -141,7 +141,7 @@ export var verifyTokenOTP = createAsyncThunk('terminal/verifyOtp', function (par
|
|
|
141
141
|
return [4, API.terminalService.retrieveTerminalDeviceList([merchant_id])];
|
|
142
142
|
case 2:
|
|
143
143
|
terminalData = _h.sent();
|
|
144
|
-
nextScreen = ((_e = terminalData === null || terminalData === void 0 ? void 0 : terminalData.terminal_devices) === null || _e === void 0 ? void 0 : _e.length) ? CONNECT_FLOWS.terminal.
|
|
144
|
+
nextScreen = ((_e = terminalData === null || terminalData === void 0 ? void 0 : terminalData.terminal_devices) === null || _e === void 0 ? void 0 : _e.length) ? CONNECT_FLOWS.terminal.terminalDeviceList : CONNECT_FLOWS.terminal.noTerminalLinked;
|
|
145
145
|
(_g = (_f = settings.data.appConfig).onStepCompleted) === null || _g === void 0 ? void 0 : _g.call(_f, settings.data.activeScreen.name, { otp: params.otp });
|
|
146
146
|
return [2, { data: data, terminalData: terminalData, formData: params, nextScreen: nextScreen }];
|
|
147
147
|
}
|
|
@@ -513,14 +513,17 @@ export var terminalSlice = createSlice({
|
|
|
513
513
|
state.error = action.error.message;
|
|
514
514
|
})
|
|
515
515
|
.addCase(linkNewTerminal.pending, function (state) {
|
|
516
|
+
state.loading = true;
|
|
516
517
|
state.error = null;
|
|
517
518
|
})
|
|
518
519
|
.addCase(linkNewTerminal.fulfilled, function (state, action) {
|
|
520
|
+
state.loading = false;
|
|
519
521
|
state.error = null;
|
|
520
522
|
var data = action.payload.data;
|
|
521
523
|
state.data.responseData = __assign(__assign({}, state.data.responseData), { linkNewTerminalData: data });
|
|
522
524
|
})
|
|
523
525
|
.addCase(linkNewTerminal.rejected, function (state, action) {
|
|
526
|
+
state.loading = false;
|
|
524
527
|
state.error = action.error.message;
|
|
525
528
|
})
|
|
526
529
|
.addCase(retrieveTerminalList.fulfilled, function (state, action) {
|
|
@@ -146,6 +146,7 @@ import TerminalOperatorErrorPage from './terminal/screens/OperatorError';
|
|
|
146
146
|
import TerminalVerifyPage from './terminal/screens/Verify';
|
|
147
147
|
import NoTerminalDeviceLinkedPage from './terminal/screens/NoTerminalDeviceLinked';
|
|
148
148
|
import TerminalDeviceListPage from './terminal/screens/TerminalDeviceList';
|
|
149
|
+
import TerminalListPage from './terminal/screens/TerminalListPage';
|
|
149
150
|
import LinkNewTerminalPage from './terminal/screens/LinkNewTerminal';
|
|
150
151
|
import LinkedTerminalInfoPage from './terminal/screens/LinkedTerminalInfo';
|
|
151
152
|
import UnlinkedTerminalInfoPage from './terminal/screens/UnlinkedTerminalInfo';
|
|
@@ -735,13 +736,17 @@ export var terminalFeatureScreens = [
|
|
|
735
736
|
element: NoTerminalDeviceLinkedPage
|
|
736
737
|
},
|
|
737
738
|
{
|
|
738
|
-
name: CONNECT_FLOWS.terminal.
|
|
739
|
+
name: CONNECT_FLOWS.terminal.terminalDeviceList,
|
|
739
740
|
element: TerminalDeviceListPage
|
|
740
741
|
},
|
|
741
742
|
{
|
|
742
743
|
name: CONNECT_FLOWS.terminal.terminalLinkNew,
|
|
743
744
|
element: LinkNewTerminalPage
|
|
744
745
|
},
|
|
746
|
+
{
|
|
747
|
+
name: CONNECT_FLOWS.terminal.terminalList,
|
|
748
|
+
element: TerminalListPage
|
|
749
|
+
},
|
|
745
750
|
{
|
|
746
751
|
name: CONNECT_FLOWS.terminal.linkedTerminalInfo,
|
|
747
752
|
element: LinkedTerminalInfoPage
|
|
@@ -31,7 +31,7 @@ var LinkNewTerminal = function () {
|
|
|
31
31
|
var _f = React.useState(false), success = _f[0], setSuccess = _f[1];
|
|
32
32
|
var _g = React.useState(false), failed = _g[0], setFailed = _g[1];
|
|
33
33
|
var terminalInfo = data.terminalInfo, responseData = data.responseData;
|
|
34
|
-
var _h = responseData || {}, terminalData = _h.terminalData, linkNewTerminalData = _h.linkNewTerminalData;
|
|
34
|
+
var _h = responseData || {}, terminalData = _h.terminalData, linkNewTerminalData = _h.linkNewTerminalData, terminalList = _h.terminalList;
|
|
35
35
|
var terminal_devices = (terminalData || {}).terminal_devices;
|
|
36
36
|
var qrCode = (_a = linkNewTerminalData === null || linkNewTerminalData === void 0 ? void 0 : linkNewTerminalData.authentication) === null || _a === void 0 ? void 0 : _a.qr;
|
|
37
37
|
var code = (_b = linkNewTerminalData === null || linkNewTerminalData === void 0 ? void 0 : linkNewTerminalData.authentication) === null || _b === void 0 ? void 0 : _b.code;
|
|
@@ -43,7 +43,7 @@ var LinkedTerminalInfo = function () {
|
|
|
43
43
|
.catch(function () { });
|
|
44
44
|
};
|
|
45
45
|
var handleOnBack = function () {
|
|
46
|
-
dispatch(handlePrevScreenStep(CONNECT_FLOWS.terminal.
|
|
46
|
+
dispatch(handlePrevScreenStep(CONNECT_FLOWS.terminal.terminalDeviceList));
|
|
47
47
|
};
|
|
48
48
|
return (_jsxs(ScreenContainer, __assign({ minHeight: 224, sx: { pl: 2.5, pr: 2.5 }, justifyContent: 'space-between' }, { children: [_jsxs(Container, { children: [_jsx(DeviceCard, { badge: true, image: image_url, name: display_name, deviceId: getId(selectedTerminalDevice), deviceIdLabel: getIdLabel(selectedTerminalDevice), pairedWith: getPairedWith(selectedTerminalDevice), isLinked: linked }), _jsx(LinkWithText, { children: t('terminal_linked_with') }), _jsx(DeviceCard, { sx: { minHeight: spacing(10), borderRadius: spacing(1), background: palette.components.deviceCard.deviceInfoBackground }, image: deviceImage || '', name: deviceName || '', deviceId: deviceId !== null && deviceId !== void 0 ? deviceId : '', isLinked: linked })] }), _jsx(Button, __assign({ sx: { ml: 0, mr: 0 }, loading: loading, onBackClicked: handleOnBack, onClick: handleOnNext, isAr: isAr }, { children: t('terminal_unlink') }))] })));
|
|
49
49
|
};
|
|
@@ -54,40 +54,39 @@ import { handleNextScreenStep, handlePrevScreenStep } from '../../../../app/sett
|
|
|
54
54
|
import { useAppDispatch, useAppSelector } from '../../../../hooks';
|
|
55
55
|
import Button from '../../../../components/Button';
|
|
56
56
|
import Loader from '../../../../components/Loader';
|
|
57
|
-
import {
|
|
58
|
-
import Header from '
|
|
57
|
+
import { retrieveBoardDetails, retrieveBoardStatus, retrieveTerminalList, storeSelectedTerminalDevice, terminalSelector } from '../../../app/terminal/terminalStore';
|
|
58
|
+
import { Header, Container, TextTypography } from '../shared';
|
|
59
59
|
import DeviceList from './DeviceList';
|
|
60
|
-
import { Container, TextTypography } from '../shared';
|
|
61
60
|
var TerminalDeviceList = function () {
|
|
62
61
|
var t = useTranslation().t;
|
|
63
62
|
var dispatch = useAppDispatch();
|
|
64
63
|
var _a = useAppSelector(terminalSelector), data = _a.data, loading = _a.loading, terminalListLoading = _a.terminalListLoading;
|
|
65
|
-
var _b =
|
|
64
|
+
var _b = React.useState(false), newLinkClicked = _b[0], setNewLinkClicked = _b[1];
|
|
65
|
+
var _c = data.responseData || {}, boardFlows = _c.boardFlows, authData = _c.authData, boardData = _c.boardData, terminalData = _c.terminalData, terminalList = _c.terminalList;
|
|
66
66
|
var terminal_devices = (terminalData || {}).terminal_devices;
|
|
67
|
-
var
|
|
67
|
+
var _d = React.useMemo(function () {
|
|
68
68
|
var linked = terminal_devices === null || terminal_devices === void 0 ? void 0 : terminal_devices.filter(function (d) { return d.linked; });
|
|
69
69
|
var unLinked = terminal_devices === null || terminal_devices === void 0 ? void 0 : terminal_devices.filter(function (d) { return !d.linked; });
|
|
70
70
|
return { linkedDevices: linked, unLinkedDevices: unLinked };
|
|
71
|
-
}, [terminal_devices]), linkedDevices =
|
|
72
|
-
var handleOnClickNewTerminalLink = function () {
|
|
73
|
-
|
|
74
|
-
.
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
};
|
|
85
|
-
var
|
|
71
|
+
}, [terminal_devices]), linkedDevices = _d.linkedDevices, unLinkedDevices = _d.unLinkedDevices;
|
|
72
|
+
var handleOnClickNewTerminalLink = function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
73
|
+
return __generator(this, function (_a) {
|
|
74
|
+
switch (_a.label) {
|
|
75
|
+
case 0:
|
|
76
|
+
setNewLinkClicked(true);
|
|
77
|
+
return [4, retrieveTerminalListAsync()];
|
|
78
|
+
case 1:
|
|
79
|
+
_a.sent();
|
|
80
|
+
dispatch(handleNextScreenStep(CONNECT_FLOWS.terminal.terminalList));
|
|
81
|
+
return [2];
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
}); };
|
|
85
|
+
var retrieveTerminalListAsync = function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
86
86
|
var err_1;
|
|
87
87
|
return __generator(this, function (_a) {
|
|
88
88
|
switch (_a.label) {
|
|
89
89
|
case 0:
|
|
90
|
-
dispatch(storeSelectedTerminalDevice(terminal));
|
|
91
90
|
if (!!(terminalList === null || terminalList === void 0 ? void 0 : terminalList.length)) return [3, 4];
|
|
92
91
|
_a.label = 1;
|
|
93
92
|
case 1:
|
|
@@ -100,7 +99,23 @@ var TerminalDeviceList = function () {
|
|
|
100
99
|
err_1 = _a.sent();
|
|
101
100
|
console.log('Error while retrieving terminal list error', err_1);
|
|
102
101
|
return [3, 4];
|
|
103
|
-
case 4:
|
|
102
|
+
case 4: return [2];
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
}); };
|
|
106
|
+
var handleOnClickLinkedTerminal = function (terminal) {
|
|
107
|
+
dispatch(storeSelectedTerminalDevice(terminal));
|
|
108
|
+
dispatch(handleNextScreenStep(CONNECT_FLOWS.terminal.linkedTerminalInfo));
|
|
109
|
+
};
|
|
110
|
+
var handleOnClickUnlinkedTerminal = function (terminal) { return __awaiter(void 0, void 0, void 0, function () {
|
|
111
|
+
return __generator(this, function (_a) {
|
|
112
|
+
switch (_a.label) {
|
|
113
|
+
case 0:
|
|
114
|
+
setNewLinkClicked(false);
|
|
115
|
+
dispatch(storeSelectedTerminalDevice(terminal));
|
|
116
|
+
return [4, retrieveTerminalListAsync()];
|
|
117
|
+
case 1:
|
|
118
|
+
_a.sent();
|
|
104
119
|
dispatch(handleNextScreenStep(CONNECT_FLOWS.terminal.unlinkedTerminalInfo));
|
|
105
120
|
return [2];
|
|
106
121
|
}
|
|
@@ -124,6 +139,6 @@ var TerminalDeviceList = function () {
|
|
|
124
139
|
})
|
|
125
140
|
.catch(function () { });
|
|
126
141
|
};
|
|
127
|
-
return (_jsxs(ScreenContainer, __assign({ minHeight: 200, sx: { pl: 2.5, pr: 2.5 }, justifyContent: 'space-between' }, { children: [_jsxs(Container, { children: [_jsx(Header, { onLinkClick: handleOnClickNewTerminalLink }), _jsx(DeviceList, { devices: linkedDevices, onClick: handleOnClickLinkedTerminal }), !!(unLinkedDevices === null || unLinkedDevices === void 0 ? void 0 : unLinkedDevices.length) && _jsx(TextTypography, __assign({ sx: { pt: 1, pb: 1 } }, { children: t('terminal_unlinked') })), _jsx(DeviceList, { loading: terminalListLoading, devices: unLinkedDevices, onClick: handleOnClickUnlinkedTerminal })] }), _jsx(Button, __assign({ sx: { mb: 1.5, mt: 1.5 }, onClick: function () { return handleOnBack(); }, variant: 'text' }, { children: loading ? _jsx(Loader, { innerColor: 'black', outerColor: 'black', size: 15, toggleAnimation: !!loading }) : t('back') }))] })));
|
|
142
|
+
return (_jsxs(ScreenContainer, __assign({ minHeight: 200, sx: { pl: 2.5, pr: 2.5 }, justifyContent: 'space-between' }, { children: [_jsxs(Container, { children: [_jsx(Header, { onLinkClick: handleOnClickNewTerminalLink, loading: terminalListLoading && newLinkClicked }), _jsx(DeviceList, { devices: linkedDevices, onClick: handleOnClickLinkedTerminal }), !!(unLinkedDevices === null || unLinkedDevices === void 0 ? void 0 : unLinkedDevices.length) && _jsx(TextTypography, __assign({ sx: { pt: 1, pb: 1 } }, { children: t('terminal_unlinked') })), _jsx(DeviceList, { loading: terminalListLoading && !newLinkClicked, devices: unLinkedDevices, onClick: handleOnClickUnlinkedTerminal })] }), _jsx(Button, __assign({ sx: { mb: 1.5, mt: 1.5 }, onClick: function () { return handleOnBack(); }, variant: 'text' }, { children: loading ? _jsx(Loader, { innerColor: 'black', outerColor: 'black', size: 15, toggleAnimation: !!loading }) : t('back') }))] })));
|
|
128
143
|
};
|
|
129
144
|
export default React.memo(TerminalDeviceList);
|
|
@@ -1,16 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const Container: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
3
|
-
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
4
|
-
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
5
|
-
export declare const LinkButton: import("@emotion/styled").StyledComponent<import("@mui/material/Button").ButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
6
|
-
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
7
|
-
}, "className" | "style" | "classes" | "color" | "children" | "sx" | "tabIndex" | "action" | "size" | "disabled" | "variant" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "href" | "startIcon"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
8
|
-
export declare const AddIconContainer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
9
|
-
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
10
|
-
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
11
|
-
export declare const LinkText: import("@emotion/styled").StyledComponent<import("@mui/material/Typography").TypographyOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
12
|
-
ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
|
|
13
|
-
}, "left" | "right" | "className" | "style" | "classes" | "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "bottom" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "marginInline" | "marginInlineStart" | "marginInlineEnd" | "marginBlock" | "marginBlockStart" | "marginBlockEnd" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "paddingInline" | "paddingInlineStart" | "paddingInlineEnd" | "paddingBlock" | "paddingBlockStart" | "paddingBlockEnd" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform" | "children" | "sx" | "variant" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
14
2
|
export declare const DeviceListContainer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
15
3
|
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
16
4
|
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|