esoftplay-event 0.0.0-p → 0.0.0-q
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/event/order_detail_waiting.tsx +3 -3
- package/fonts/Arial.ttf +0 -0
- package/fonts/ArialBold.ttf +0 -0
- package/fonts/DecoNumbers.ttf +0 -0
- package/fonts/MonoSpace.ttf +0 -0
- package/fonts/SFProText.ttf +0 -0
- package/fonts/digital.ttf +0 -0
- package/fonts/mono.ttf +0 -0
- package/id.json +1858 -0
- package/index.js +2 -8
- package/libs.json +1 -0
- package/package.json +1 -1
- package/publisher.js +84 -0
- package/.vscode/settings.json +0 -5
- package/App.tsx +0 -12
- package/GoogleService-Info.dc.plist +0 -38
- package/GoogleService-Info.debug.dc.plist +0 -38
- package/GoogleService-Info.debug.plist +0 -75
- package/GoogleService-Info.live.dc.plist +0 -38
- package/GoogleService-Info.live.plist +0 -38
- package/GoogleService-Info.plist +0 -75
- package/_templates/component/curl_page.tsx +0 -64
- package/_templates/component/slider2.tsx +0 -47
- package/_templates/event/artist_detail.tsx +0 -164
- package/_templates/event/artist_list.tsx +0 -212
- package/_templates/event/detail.tsx +0 -336
- package/_templates/event/seat_map.tsx +0 -24
- package/_templates/event/ticket_list.tsx +0 -759
- package/_templates/payment/event.tsx +0 -52
- package/_templates/payment/event_invitation.tsx +0 -201
- package/_templates/payment/list.tsx +0 -425
- package/_templates/payment/summary.tsx +0 -142
- package/_templates/tms/dashboard.tsx +0 -256
- package/_templates/tms/menu.tsx +0 -93
- package/_templates/user/login2.tsx +0 -257
- package/_templates/user/profile.tsx +0 -740
- package/_templates/user/profile_tms_list.tsx +0 -71
- package/app.debug.json +0 -137
- package/app.json +0 -147
- package/app.live.json +0 -128
- package/babel.config.js +0 -10
- package/check.mjs +0 -38
- package/checkOutsideModule.js +0 -41
- package/code-signing/certificate.pem +0 -18
- package/config.debug.json +0 -111
- package/config.debug.v1.json +0 -104
- package/config.debug.v2.json +0 -104
- package/config.live.json +0 -104
- package/config.v1.json +0 -104
- package/config.v2.json +0 -104
- package/convertImport.js +0 -53
- package/cpToBboEvent.js +0 -57
- package/eas.json +0 -40
- package/fcm_icon.js +0 -55
- package/find_missing_lang.mjs +0 -47
- package/find_string.mjs +0 -44
- package/heapsize.js +0 -20
- package/metro.config.js +0 -4
- package/modules/artist/detail.tsx +0 -522
- package/modules/artist/detail_multi.tsx +0 -549
- package/modules/artist/list.tsx +0 -166
- package/modules/bbo/config.ts +0 -25
- package/modules/bbo/index.tsx +0 -202
- package/modules/bbo/main.tsx +0 -410
- package/modules/bigbang/bbopay.tsx +0 -73
- package/modules/bigbang/card.tsx +0 -214
- package/modules/bigbang/card_history.tsx +0 -63
- package/modules/bigbang/cat_item.tsx +0 -26
- package/modules/bigbang/check_code.tsx +0 -161
- package/modules/bigbang/check_ticket.tsx +0 -73
- package/modules/bigbang/check_ticket_result.tsx +0 -384
- package/modules/bigbang/com_item.tsx +0 -47
- package/modules/bigbang/config.tsx +0 -16
- package/modules/bigbang/contact.tsx +0 -140
- package/modules/bigbang/dependents.tsx +0 -130
- package/modules/bigbang/dummy_page.tsx +0 -48
- package/modules/bigbang/event.tsx +0 -421
- package/modules/bigbang/event_item.tsx +0 -43
- package/modules/bigbang/faq.tsx +0 -115
- package/modules/bigbang/faq_detail.tsx +0 -69
- package/modules/bigbang/faq_list.tsx +0 -72
- package/modules/bigbang/gate.tsx +0 -96
- package/modules/bigbang/gate_info.tsx +0 -639
- package/modules/bigbang/gate_result.tsx +0 -80
- package/modules/bigbang/index.tsx +0 -202
- package/modules/bigbang/input_code.tsx +0 -136
- package/modules/bigbang/loading_page.tsx +0 -246
- package/modules/bigbang/loading_page_list.tsx +0 -121
- package/modules/bigbang/loading_pagefooter.tsx +0 -25
- package/modules/bigbang/main.tsx +0 -506
- package/modules/bigbang/menu_item.tsx +0 -26
- package/modules/bigbang/notif_index.tsx +0 -72
- package/modules/bigbang/payment.tsx +0 -465
- package/modules/bigbang/payment_detail.tsx +0 -291
- package/modules/bigbang/payment_detail_multi.tsx +0 -343
- package/modules/bigbang/payment_item.tsx +0 -62
- package/modules/bigbang/payment_list.tsx +0 -706
- package/modules/bigbang/payment_pin.tsx +0 -109
- package/modules/bigbang/product_item.tsx +0 -51
- package/modules/bigbang/product_item2.tsx +0 -65
- package/modules/bigbang/question.tsx +0 -64
- package/modules/bigbang/schedule_item.tsx +0 -75
- package/modules/bigbang/schedule_item2.tsx +0 -77
- package/modules/bigbang/shopping_cart.tsx +0 -104
- package/modules/bigbang/shopping_cart2.tsx +0 -79
- package/modules/bigbang/terms.tsx +0 -112
- package/modules/bigbang/test.tsx +0 -38
- package/modules/bigbang/test2.tsx +0 -22
- package/modules/bigbang/transaction.ts +0 -34
- package/modules/bill/detail.tsx +0 -147
- package/modules/bill/index.tsx +0 -171
- package/modules/cache/hit.ts +0 -32
- package/modules/cache/location.tsx +0 -22
- package/modules/cashier/coupon_transaksi_detail.tsx +0 -76
- package/modules/cashier/data.tsx +0 -34
- package/modules/cashier/index.tsx +0 -166
- package/modules/cashier/invoice.tsx +0 -228
- package/modules/cashier/invoice_detail.tsx +0 -105
- package/modules/cashier/invoice_item.tsx +0 -81
- package/modules/cashier/invoice_list.tsx +0 -154
- package/modules/cashier/invoice_list_transaction.tsx +0 -100
- package/modules/cashier/list.tsx +0 -259
- package/modules/cashier/list_coupon.tsx +0 -382
- package/modules/cashier/list_coupon_transaksi.tsx +0 -101
- package/modules/cashier/list_queue.tsx +0 -299
- package/modules/cashier/list_queue_item.tsx +0 -92
- package/modules/cashier/list_queue_item_countdown.tsx +0 -81
- package/modules/cashier/product.tsx +0 -52
- package/modules/cashier/product_item.tsx +0 -34
- package/modules/cashier/qr.tsx +0 -268
- package/modules/cashier/report.tsx +0 -199
- package/modules/cashier/report_coupon.tsx +0 -85
- package/modules/cashier/report_detail.tsx +0 -127
- package/modules/cashier/report_item.tsx +0 -88
- package/modules/chat/chat.tsx +0 -323
- package/modules/chat/chat_item.tsx +0 -430
- package/modules/chat/detail_user.tsx +0 -80
- package/modules/chat/index.tsx +0 -70
- package/modules/chat/item.tsx +0 -56
- package/modules/chat/loading.tsx +0 -82
- package/modules/chat/menu.tsx +0 -23
- package/modules/community/achievement.tsx +0 -195
- package/modules/community/banned.tsx +0 -64
- package/modules/community/category.tsx +0 -71
- package/modules/community/category_other.tsx +0 -99
- package/modules/community/config.tsx +0 -17
- package/modules/community/delete.tsx +0 -305
- package/modules/community/discuss.tsx +0 -559
- package/modules/community/edit_event_organizer.tsx +0 -288
- package/modules/community/edit_influencer.tsx +0 -338
- package/modules/community/edit_job.tsx +0 -1115
- package/modules/community/edit_talent.tsx +0 -374
- package/modules/community/education.tsx +0 -339
- package/modules/community/education_list.tsx +0 -100
- package/modules/community/education_majors.tsx +0 -49
- package/modules/community/eo_category.tsx +0 -201
- package/modules/community/eo_category_edit.tsx +0 -133
- package/modules/community/event_organizer.tsx +0 -472
- package/modules/community/exclude_job.tsx +0 -81
- package/modules/community/experience.tsx +0 -349
- package/modules/community/form.tsx +0 -36
- package/modules/community/index.tsx +0 -190
- package/modules/community/index_job_available.tsx +0 -52
- package/modules/community/influencer.tsx +0 -654
- package/modules/community/influencer_image_edit.tsx +0 -150
- package/modules/community/item.tsx +0 -84
- package/modules/community/job_available.tsx +0 -180
- package/modules/community/job_available_aplicant.tsx +0 -243
- package/modules/community/job_available_aplicant_item.tsx +0 -108
- package/modules/community/job_available_applicant_profile.tsx +0 -515
- package/modules/community/job_available_edit_job.tsx +0 -343
- package/modules/community/job_available_edit_tender.tsx +0 -486
- package/modules/community/job_available_employer.tsx +0 -139
- package/modules/community/job_available_employer_edit.tsx +0 -300
- package/modules/community/job_available_item.tsx +0 -169
- package/modules/community/job_available_item_detail.tsx +0 -278
- package/modules/community/job_seeker.tsx +0 -628
- package/modules/community/language.tsx +0 -47
- package/modules/community/location.tsx +0 -88
- package/modules/community/notice.tsx +0 -38
- package/modules/community/order.tsx +0 -145
- package/modules/community/other.tsx +0 -77
- package/modules/community/package_item.tsx +0 -118
- package/modules/community/post_job.tsx +0 -279
- package/modules/community/post_job_basic.tsx +0 -611
- package/modules/community/post_job_basic_date.tsx +0 -44
- package/modules/community/post_job_employer.tsx +0 -137
- package/modules/community/post_tender.tsx +0 -456
- package/modules/community/post_tender_contract.tsx +0 -377
- package/modules/community/profession.tsx +0 -66
- package/modules/community/registrasi_eo.tsx +0 -594
- package/modules/community/registrasi_influencer.tsx +0 -623
- package/modules/community/registrasi_job_seeker.tsx +0 -1043
- package/modules/community/registrasi_talent.tsx +0 -461
- package/modules/community/review_form.tsx +0 -90
- package/modules/community/review_item.tsx +0 -73
- package/modules/community/reviewing.tsx +0 -89
- package/modules/community/seeking_job.tsx +0 -312
- package/modules/community/special_other.tsx +0 -122
- package/modules/community/special_role_industri_position.tsx +0 -148
- package/modules/community/talent.tsx +0 -506
- package/modules/community/talent_images.tsx +0 -186
- package/modules/community/talent_skill.tsx +0 -285
- package/modules/community/talent_skill_edit.tsx +0 -369
- package/modules/community/talent_skill_item.tsx +0 -103
- package/modules/complaint/detail.tsx +0 -341
- package/modules/complaint/index.tsx +0 -309
- package/modules/component/accept.tsx +0 -43
- package/modules/component/alert.tsx +0 -33
- package/modules/component/avatar.tsx +0 -22
- package/modules/component/badge.tsx +0 -19
- package/modules/component/badge2.tsx +0 -20
- package/modules/component/blocked.tsx +0 -41
- package/modules/component/button.tsx +0 -37
- package/modules/component/calendar.tsx +0 -151
- package/modules/component/camera.debug.tsx +0 -187
- package/modules/component/camera.live.tsx +0 -214
- package/modules/component/camera.tsx +0 -187
- package/modules/component/camera_error_view.tsx +0 -35
- package/modules/component/cancellation.tsx +0 -71
- package/modules/component/card.tsx +0 -61
- package/modules/component/cart_item.tsx +0 -24
- package/modules/component/circle.tsx +0 -27
- package/modules/component/circural_progress.tsx +0 -52
- package/modules/component/countdownbig.tsx +0 -27
- package/modules/component/coupon.tsx +0 -70
- package/modules/component/dialog_custom.tsx +0 -40
- package/modules/component/dialog_otp.tsx +0 -79
- package/modules/component/fab.tsx +0 -25
- package/modules/component/failed.tsx +0 -42
- package/modules/component/footer.tsx +0 -20
- package/modules/component/footer_nav.tsx +0 -28
- package/modules/component/force_sync.tsx +0 -47
- package/modules/component/gender.tsx +0 -44
- package/modules/component/header.tsx +0 -131
- package/modules/component/header2.tsx +0 -68
- package/modules/component/header_chat.tsx +0 -68
- package/modules/component/header_home.tsx +0 -133
- package/modules/component/identity_input.tsx +0 -180
- package/modules/component/input.tsx +0 -36
- package/modules/component/input_circle_icon.tsx +0 -206
- package/modules/component/input_rectangle_icon.tsx +0 -203
- package/modules/component/input_rectangle_icon_right.tsx +0 -203
- package/modules/component/input_rectangle_touchable.tsx +0 -40
- package/modules/component/job_available_switcher.tsx +0 -37
- package/modules/component/keyboard_numeric.tsx +0 -42
- package/modules/component/label_input.tsx +0 -21
- package/modules/component/label_input2.tsx +0 -34
- package/modules/component/map.tsx +0 -132
- package/modules/component/message.tsx +0 -30
- package/modules/component/modal.tsx +0 -85
- package/modules/component/multi_select.tsx +0 -85
- package/modules/component/nav_tab.tsx +0 -28
- package/modules/component/new_chat.tsx +0 -65
- package/modules/component/new_chat_chat.tsx +0 -678
- package/modules/component/new_chat_item.tsx +0 -88
- package/modules/component/numberPicker.tsx +0 -39
- package/modules/component/number_picker.tsx +0 -55
- package/modules/component/otp.tsx +0 -89
- package/modules/component/payment_cc.tsx +0 -325
- package/modules/component/pending_trx.tsx +0 -50
- package/modules/component/popup.tsx +0 -30
- package/modules/component/progress_bar.tsx +0 -28
- package/modules/component/qr_bg.tsx +0 -24
- package/modules/component/qr_user.tsx +0 -47
- package/modules/component/rating.tsx +0 -51
- package/modules/component/rating_mini.tsx +0 -32
- package/modules/component/rating_new.tsx +0 -51
- package/modules/component/refresh_button.tsx +0 -40
- package/modules/component/register_container.tsx +0 -128
- package/modules/component/scanner.tsx +0 -271
- package/modules/component/scannerv2.tsx +0 -132
- package/modules/component/section.tsx +0 -33
- package/modules/component/section_notif.tsx +0 -21
- package/modules/component/select.tsx +0 -51
- package/modules/component/slider.tsx +0 -45
- package/modules/component/slidingup.tsx +0 -85
- package/modules/component/step.tsx +0 -29
- package/modules/component/tabheader.tsx +0 -48
- package/modules/component/text.tsx +0 -122
- package/modules/component/touchable.tsx +0 -20
- package/modules/component/translate.tsx +0 -50
- package/modules/components/header.tsx +0 -38
- package/modules/components/header_home.tsx +0 -77
- package/modules/components/section.tsx +0 -33
- package/modules/content/detail.tsx +0 -201
- package/modules/content/item.tsx +0 -52
- package/modules/content/list.tsx +0 -58
- package/modules/deals/brand_detail.tsx +0 -144
- package/modules/deals/brand_item.tsx +0 -28
- package/modules/deals/category_item.tsx +0 -37
- package/modules/deals/checkout.tsx +0 -177
- package/modules/deals/checkout_payment_method.tsx +0 -87
- package/modules/deals/detail.tsx +0 -339
- package/modules/deals/expander.tsx +0 -38
- package/modules/deals/header.tsx +0 -71
- package/modules/deals/home.tsx +0 -261
- package/modules/deals/item.tsx +0 -55
- package/modules/deals/list.tsx +0 -158
- package/modules/deals/list_filter.tsx +0 -125
- package/modules/deals/location.tsx +0 -69
- package/modules/deals/location_current.tsx +0 -16
- package/modules/deals/option.tsx +0 -81
- package/modules/deals/order.tsx +0 -166
- package/modules/deals/order_detail.tsx +0 -297
- package/modules/deals/order_item.tsx +0 -91
- package/modules/deals/search.tsx +0 -60
- package/modules/deals/section.tsx +0 -33
- package/modules/event/additional.tsx +0 -188
- package/modules/event/additional_input.tsx +0 -316
- package/modules/event/alert.tsx +0 -32
- package/modules/event/artist.tsx +0 -165
- package/modules/event/artist_detail.tsx +0 -521
- package/modules/event/artist_detail_multi.tsx +0 -548
- package/modules/event/badge.tsx +0 -22
- package/modules/event/block.tsx +0 -56
- package/modules/event/block_invitation.tsx +0 -48
- package/modules/event/button.tsx +0 -40
- package/modules/event/capture.tsx +0 -39
- package/modules/event/config.ts +0 -25
- package/modules/event/countdown.tsx +0 -72
- package/modules/event/countdown_base.tsx +0 -83
- package/modules/event/counter_cashier.tsx +0 -180
- package/modules/event/counter_cashier_report.tsx +0 -114
- package/modules/event/counter_cashier_sell.tsx +0 -135
- package/modules/event/counter_eo.tsx +0 -451
- package/modules/event/counter_history.tsx +0 -74
- package/modules/event/counter_history_item.tsx +0 -48
- package/modules/event/counter_info.tsx +0 -96
- package/modules/event/counter_lm.tsx +0 -273
- package/modules/event/counter_menu.tsx +0 -85
- package/modules/event/counter_report.tsx +0 -105
- package/modules/event/counter_report_breakdown.tsx +0 -93
- package/modules/event/counter_report_detail.tsx +0 -238
- package/modules/event/counter_report_detail_list.tsx +0 -56
- package/modules/event/counter_request.tsx +0 -136
- package/modules/event/counter_request_detail.tsx +0 -211
- package/modules/event/counter_section.tsx +0 -32
- package/modules/event/counter_send.tsx +0 -277
- package/modules/event/counter_status.tsx +0 -32
- package/modules/event/counter_type.tsx +0 -23
- package/modules/event/counter_user_list.tsx +0 -197
- package/modules/event/counter_user_list_item.tsx +0 -143
- package/modules/event/coupon.tsx +0 -124
- package/modules/event/coupon_claim.tsx +0 -198
- package/modules/event/coupon_claim_detail.tsx +0 -176
- package/modules/event/coupon_claim_history.tsx +0 -279
- package/modules/event/coupon_claim_reimburse.tsx +0 -110
- package/modules/event/coupon_claim_reimburse_history.tsx +0 -71
- package/modules/event/coupon_claim_reimburse_history_detail.tsx +0 -117
- package/modules/event/coupon_claim_staff.tsx +0 -256
- package/modules/event/coupon_detail.tsx +0 -98
- package/modules/event/coupon_event_list.tsx +0 -77
- package/modules/event/coupon_generate.tsx +0 -258
- package/modules/event/coupon_generate_event.tsx +0 -79
- package/modules/event/coupon_generate_list.tsx +0 -56
- package/modules/event/date_picker.tsx +0 -152
- package/modules/event/detail.tsx +0 -348
- package/modules/event/distribution_lock.ts +0 -18
- package/modules/event/entrance.tsx +0 -215
- package/modules/event/entrance_again.tsx +0 -199
- package/modules/event/entrance_failed.tsx +0 -190
- package/modules/event/entrance_idcard.tsx +0 -199
- package/modules/event/entrance_list.tsx +0 -264
- package/modules/event/entrance_list_item.tsx +0 -88
- package/modules/event/entrance_log.tsx +0 -130
- package/modules/event/entrance_success.tsx +0 -153
- package/modules/event/entrance_warning.tsx +0 -91
- package/modules/event/exchange_reward.tsx +0 -31
- package/modules/event/exchange_reward_result.tsx +0 -136
- package/modules/event/exchange_ticket.tsx +0 -233
- package/modules/event/exchange_ticket_list.tsx +0 -201
- package/modules/event/exchange_ticket_result.tsx +0 -210
- package/modules/event/exit.tsx +0 -91
- package/modules/event/exit_failed.tsx +0 -135
- package/modules/event/exit_list.tsx +0 -118
- package/modules/event/exit_log.tsx +0 -130
- package/modules/event/exit_success.tsx +0 -143
- package/modules/event/exit_temporary.tsx +0 -226
- package/modules/event/expander.tsx +0 -36
- package/modules/event/fab.tsx +0 -24
- package/modules/event/firebase_socket.debug.ts +0 -261
- package/modules/event/firebase_socket.live.ts +0 -337
- package/modules/event/firebase_socket.ts +0 -261
- package/modules/event/hall_in.tsx +0 -148
- package/modules/event/hall_in_failed.tsx +0 -270
- package/modules/event/hall_in_list.tsx +0 -222
- package/modules/event/hall_in_log.tsx +0 -134
- package/modules/event/hall_in_success.tsx +0 -132
- package/modules/event/hall_out.tsx +0 -143
- package/modules/event/hall_out_failed.tsx +0 -133
- package/modules/event/hall_out_list.tsx +0 -215
- package/modules/event/hall_out_log.tsx +0 -133
- package/modules/event/hall_out_success.tsx +0 -130
- package/modules/event/header.tsx +0 -131
- package/modules/event/header_home.tsx +0 -104
- package/modules/event/htmltext.tsx +0 -61
- package/modules/event/index.tsx +0 -302
- package/modules/event/input_rectangle.tsx +0 -208
- package/modules/event/item.tsx +0 -39
- package/modules/event/label_input.tsx +0 -23
- package/modules/event/list.tsx +0 -218
- package/modules/event/list_filter.tsx +0 -123
- package/modules/event/list_item.tsx +0 -76
- package/modules/event/list_item2.tsx +0 -78
- package/modules/event/loading_page.tsx +0 -248
- package/modules/event/log.tsx +0 -433
- package/modules/event/message.tsx +0 -32
- package/modules/event/notice.tsx +0 -41
- package/modules/event/order.tsx +0 -323
- package/modules/event/order_detail.tsx +0 -813
- package/modules/event/order_detail_payment.tsx +0 -153
- package/modules/event/order_detail_upgrade.tsx +0 -202
- package/modules/event/order_detail_upgrade_button.tsx +0 -59
- package/modules/event/order_detail_upgrade_payment.tsx +0 -223
- package/modules/event/order_detail_visitor.tsx +0 -196
- package/modules/event/order_detail_waiting.tsx +0 -538
- package/modules/event/order_history.tsx +0 -101
- package/modules/event/order_item.tsx +0 -118
- package/modules/event/order_lottery.tsx +0 -172
- package/modules/event/order_reschedule.tsx +0 -439
- package/modules/event/order_reschedule_list.tsx +0 -85
- package/modules/event/order_share_to.tsx +0 -219
- package/modules/event/order_share_to_detail.tsx +0 -181
- package/modules/event/order_status.tsx +0 -66
- package/modules/event/order_waiting.tsx +0 -142
- package/modules/event/pending_trx.tsx +0 -50
- package/modules/event/popup.tsx +0 -82
- package/modules/event/qc_idcard.tsx +0 -209
- package/modules/event/qc_idcard_failed.tsx +0 -78
- package/modules/event/qc_idcard_success.tsx +0 -68
- package/modules/event/qr_bg.tsx +0 -22
- package/modules/event/queue_out.tsx +0 -186
- package/modules/event/queue_pricing.tsx +0 -141
- package/modules/event/randomseat.tsx +0 -33
- package/modules/event/rating.tsx +0 -49
- package/modules/event/rating_mini.tsx +0 -35
- package/modules/event/refresh_button.tsx +0 -40
- package/modules/event/review.tsx +0 -117
- package/modules/event/review_add.tsx +0 -342
- package/modules/event/review_detail.tsx +0 -67
- package/modules/event/review_item.tsx +0 -76
- package/modules/event/scan_item.tsx +0 -66
- package/modules/event/schedule.tsx +0 -134
- package/modules/event/seat.tsx +0 -627
- package/modules/event/seat_autopick.tsx +0 -120
- package/modules/event/seat_map.tsx +0 -408
- package/modules/event/seat_map_matrix.tsx +0 -94
- package/modules/event/seat_map_test.tsx +0 -401
- package/modules/event/section.tsx +0 -35
- package/modules/event/section_menu.tsx +0 -40
- package/modules/event/secure_page.tsx +0 -33
- package/modules/event/share.ts +0 -20
- package/modules/event/sheet.tsx +0 -74
- package/modules/event/slider.tsx +0 -46
- package/modules/event/slidingup.tsx +0 -37
- package/modules/event/step.tsx +0 -29
- package/modules/event/tap.tsx +0 -30
- package/modules/event/ticket_list.tsx +0 -721
- package/modules/event/ticket_list2.tsx +0 -678
- package/modules/event/timer.tsx +0 -58
- package/modules/event/tms.tsx +0 -103
- package/modules/event/tms_add.tsx +0 -93
- package/modules/event/tms_add_result.tsx +0 -175
- package/modules/event/tms_check_code.tsx +0 -160
- package/modules/event/tms_check_ticket.tsx +0 -72
- package/modules/event/tms_check_ticket_result.tsx +0 -384
- package/modules/event/tms_dashboard.tsx +0 -89
- package/modules/event/tms_event_list.tsx +0 -69
- package/modules/event/tms_gate.tsx +0 -96
- package/modules/event/tms_gate_result.tsx +0 -80
- package/modules/event/tms_home.tsx +0 -639
- package/modules/event/tms_idcard.tsx +0 -200
- package/modules/event/tms_in.tsx +0 -215
- package/modules/event/tms_in_again.tsx +0 -199
- package/modules/event/tms_in_failed.tsx +0 -190
- package/modules/event/tms_in_hall.tsx +0 -148
- package/modules/event/tms_in_hall_failed.tsx +0 -270
- package/modules/event/tms_in_hall_list.tsx +0 -222
- package/modules/event/tms_in_hall_log.tsx +0 -134
- package/modules/event/tms_in_hall_success.tsx +0 -132
- package/modules/event/tms_in_list.tsx +0 -264
- package/modules/event/tms_in_log.tsx +0 -130
- package/modules/event/tms_in_success.tsx +0 -153
- package/modules/event/tms_in_warning.tsx +0 -91
- package/modules/event/tms_list_item.tsx +0 -88
- package/modules/event/tms_log.tsx +0 -434
- package/modules/event/tms_out.tsx +0 -91
- package/modules/event/tms_out_failed.tsx +0 -135
- package/modules/event/tms_out_hall.tsx +0 -143
- package/modules/event/tms_out_hall_failed.tsx +0 -133
- package/modules/event/tms_out_hall_list.tsx +0 -215
- package/modules/event/tms_out_hall_log.tsx +0 -133
- package/modules/event/tms_out_hall_success.tsx +0 -130
- package/modules/event/tms_out_list.tsx +0 -118
- package/modules/event/tms_out_log.tsx +0 -130
- package/modules/event/tms_out_success.tsx +0 -143
- package/modules/event/tms_out_temporary.tsx +0 -226
- package/modules/event/toggle.tsx +0 -30
- package/modules/event/transaction.ts +0 -34
- package/modules/event/turnstile_event_gate.tsx +0 -74
- package/modules/event/turnstile_event_item.tsx +0 -41
- package/modules/event/turnstile_event_list.tsx +0 -69
- package/modules/event/turnstile_event_ticket.tsx +0 -95
- package/modules/event/turnstile_settings.tsx +0 -327
- package/modules/event/turnstile_settings_otp.tsx +0 -58
- package/modules/event/turnstile_settings_status.tsx +0 -50
- package/modules/event/visitor_edit.tsx +0 -125
- package/modules/event/visitor_history.tsx +0 -61
- package/modules/event/visitor_history_item.tsx +0 -96
- package/modules/event/visitor_index.tsx +0 -175
- package/modules/event/visitor_input.tsx +0 -283
- package/modules/event/voucher.tsx +0 -148
- package/modules/event/voucher_multi.tsx +0 -180
- package/modules/feed/booking.tsx +0 -450
- package/modules/feed/eo.tsx +0 -281
- package/modules/feed/eo_detail.tsx +0 -557
- package/modules/feed/filter_location.tsx +0 -94
- package/modules/feed/filter_location2.tsx +0 -105
- package/modules/feed/filter_location_item.tsx +0 -130
- package/modules/feed/filter_location_list.tsx +0 -48
- package/modules/feed/images.tsx +0 -66
- package/modules/feed/index.tsx +0 -126
- package/modules/feed/influencer.tsx +0 -281
- package/modules/feed/influencer_detail.tsx +0 -596
- package/modules/feed/item.tsx +0 -46
- package/modules/feed/item2.tsx +0 -47
- package/modules/feed/job.tsx +0 -460
- package/modules/feed/job_available.tsx +0 -322
- package/modules/feed/job_available_detail.tsx +0 -377
- package/modules/feed/job_available_item.tsx +0 -114
- package/modules/feed/job_available_list.tsx +0 -311
- package/modules/feed/job_detail.tsx +0 -689
- package/modules/feed/job_filter.tsx +0 -69
- package/modules/feed/job_item.tsx +0 -62
- package/modules/feed/job_list.tsx +0 -204
- package/modules/feed/job_list_cv.tsx +0 -183
- package/modules/feed/job_list_school.tsx +0 -53
- package/modules/feed/list.tsx +0 -193
- package/modules/feed/location.tsx +0 -45
- package/modules/feed/menu.tsx +0 -26
- package/modules/feed/talent.tsx +0 -294
- package/modules/feed/talent_date.tsx +0 -127
- package/modules/feed/talent_detail.tsx +0 -688
- package/modules/feed/talent_list_review.tsx +0 -50
- package/modules/invoice/detail.tsx +0 -316
- package/modules/invoice/input.tsx +0 -513
- package/modules/invoice/payment_list.tsx +0 -93
- package/modules/lib/autosync.ts +0 -50
- package/modules/lib/block.tsx +0 -56
- package/modules/lib/bone.tsx +0 -51
- package/modules/lib/calendar.tsx +0 -218
- package/modules/lib/capture.tsx +0 -39
- package/modules/lib/carrousel2.tsx +0 -347
- package/modules/lib/curl.ts +0 -169
- package/modules/lib/dialog.tsx +0 -146
- package/modules/lib/dialogview.tsx +0 -59
- package/modules/lib/distribution_lock.ts +0 -18
- package/modules/lib/document.ts +0 -43
- package/modules/lib/editbox.tsx +0 -113
- package/modules/lib/htmltext.tsx +0 -61
- package/modules/lib/image.tsx +0 -388
- package/modules/lib/input_circle.tsx +0 -207
- package/modules/lib/input_circle2.tsx +0 -203
- package/modules/lib/input_rectangle.tsx +0 -198
- package/modules/lib/input_rectangle2.tsx +0 -233
- package/modules/lib/item.tsx +0 -23
- package/modules/lib/list.tsx +0 -107
- package/modules/lib/location.tsx +0 -39
- package/modules/lib/location_cleanup.ts +0 -15
- package/modules/lib/login.debug.ts +0 -84
- package/modules/lib/login.live.ts +0 -84
- package/modules/lib/login.ts +0 -84
- package/modules/lib/notif_translate.ts +0 -49
- package/modules/lib/notification.ts +0 -518
- package/modules/lib/notify.ts +0 -148
- package/modules/lib/pagination.tsx +0 -110
- package/modules/lib/pan.tsx +0 -132
- package/modules/lib/password.ts +0 -19
- package/modules/lib/pressable.tsx +0 -40
- package/modules/lib/print.ts +0 -20
- package/modules/lib/reinfinite.tsx +0 -100
- package/modules/lib/retry.tsx +0 -45
- package/modules/lib/scroll_sticky.tsx +0 -85
- package/modules/lib/share.ts +0 -20
- package/modules/lib/style.debug.ts +0 -109
- package/modules/lib/style.live.ts +0 -110
- package/modules/lib/style.ts +0 -109
- package/modules/lib/swipe.tsx +0 -74
- package/modules/lib/tap.tsx +0 -28
- package/modules/lib/test.tsx +0 -157
- package/modules/lib/textstyle.tsx +0 -265
- package/modules/lib/time_picker.tsx +0 -132
- package/modules/lib/translate.tsx +0 -41
- package/modules/lib/utils.ts +0 -365
- package/modules/lib/version.tsx +0 -87
- package/modules/lib/version_view.tsx +0 -26
- package/modules/lib/video.tsx +0 -44
- package/modules/lib/webview.tsx +0 -172
- package/modules/log/reporter.ts +0 -95
- package/modules/log/test.tsx +0 -150
- package/modules/market/account_buyer.tsx +0 -164
- package/modules/market/account_merchant.tsx +0 -390
- package/modules/market/address.tsx +0 -102
- package/modules/market/address_item.tsx +0 -145
- package/modules/market/chat.tsx +0 -23
- package/modules/market/checkout.tsx +0 -600
- package/modules/market/checkout_payment_method.tsx +0 -164
- package/modules/market/complaint_form.tsx +0 -102
- package/modules/market/countdown.tsx +0 -81
- package/modules/market/empty.tsx +0 -18
- package/modules/market/header_home.tsx +0 -89
- package/modules/market/home.tsx +0 -549
- package/modules/market/load_category.tsx +0 -25
- package/modules/market/location.tsx +0 -74
- package/modules/market/merchant_detail.tsx +0 -328
- package/modules/market/merchant_register.tsx +0 -94
- package/modules/market/merchant_saldo_history.tsx +0 -100
- package/modules/market/order_detail.tsx +0 -670
- package/modules/market/payment_list.tsx +0 -36
- package/modules/market/payment_offline.tsx +0 -76
- package/modules/market/payment_offline_detail.tsx +0 -121
- package/modules/market/payment_pin.tsx +0 -22
- package/modules/market/point_history.tsx +0 -78
- package/modules/market/product_category.tsx +0 -188
- package/modules/market/product_detail_description.tsx +0 -28
- package/modules/market/product_detail_general.tsx +0 -152
- package/modules/market/product_item.tsx +0 -234
- package/modules/market/style.ts +0 -15
- package/modules/market/terms.tsx +0 -22
- package/modules/market/withdraw.tsx +0 -213
- package/modules/mart/accept.tsx +0 -43
- package/modules/mart/account.tsx +0 -541
- package/modules/mart/account_empty.tsx +0 -43
- package/modules/mart/bag.tsx +0 -273
- package/modules/mart/bag_add_slideup.tsx +0 -184
- package/modules/mart/bag_float.tsx +0 -30
- package/modules/mart/bag_item.tsx +0 -156
- package/modules/mart/button.tsx +0 -49
- package/modules/mart/checkout.tsx +0 -207
- package/modules/mart/checkout_payment_method.tsx +0 -96
- package/modules/mart/complaint_conditions.tsx +0 -26
- package/modules/mart/complaint_detail.tsx +0 -290
- package/modules/mart/complaint_discuss.tsx +0 -364
- package/modules/mart/complaint_solution.tsx +0 -79
- package/modules/mart/complaint_step1.tsx +0 -51
- package/modules/mart/complaint_step2.tsx +0 -122
- package/modules/mart/complaint_step3.tsx +0 -168
- package/modules/mart/dc_account.tsx +0 -312
- package/modules/mart/dc_admin_order.tsx +0 -156
- package/modules/mart/dc_bundle_add.tsx +0 -72
- package/modules/mart/dc_bundle_edit.tsx +0 -81
- package/modules/mart/dc_bundle_input.tsx +0 -445
- package/modules/mart/dc_cart.tsx +0 -256
- package/modules/mart/dc_cart_add_slideup.tsx +0 -101
- package/modules/mart/dc_cart_item.tsx +0 -142
- package/modules/mart/dc_checkout.tsx +0 -175
- package/modules/mart/dc_detail.tsx +0 -277
- package/modules/mart/dc_edit.tsx +0 -274
- package/modules/mart/dc_list.tsx +0 -96
- package/modules/mart/dc_location_range.tsx +0 -140
- package/modules/mart/dc_mitra_product_report.tsx +0 -135
- package/modules/mart/dc_mitra_report_buy.tsx +0 -166
- package/modules/mart/dc_mitra_report_profit_loss.tsx +0 -163
- package/modules/mart/dc_mitra_report_profit_loss_detail.tsx +0 -79
- package/modules/mart/dc_mitra_report_sale.tsx +0 -165
- package/modules/mart/dc_mitra_report_stock.tsx +0 -98
- package/modules/mart/dc_mitra_report_stock_adjustment.tsx +0 -160
- package/modules/mart/dc_order.tsx +0 -126
- package/modules/mart/dc_order_detail.tsx +0 -297
- package/modules/mart/dc_order_detail_button_floating.tsx +0 -266
- package/modules/mart/dc_order_detail_buttons.tsx +0 -237
- package/modules/mart/dc_order_detail_finish.tsx +0 -218
- package/modules/mart/dc_order_detail_finish_bundle_item.tsx +0 -159
- package/modules/mart/dc_order_detail_finish_item.tsx +0 -248
- package/modules/mart/dc_order_detail_print.tsx +0 -125
- package/modules/mart/dc_order_detail_sticky.tsx +0 -266
- package/modules/mart/dc_order_item.tsx +0 -142
- package/modules/mart/dc_order_status.tsx +0 -60
- package/modules/mart/dc_product_add.tsx +0 -107
- package/modules/mart/dc_product_check.tsx +0 -56
- package/modules/mart/dc_product_detail.tsx +0 -282
- package/modules/mart/dc_product_edit.tsx +0 -88
- package/modules/mart/dc_product_input.tsx +0 -273
- package/modules/mart/dc_product_item.tsx +0 -141
- package/modules/mart/dc_product_list.tsx +0 -242
- package/modules/mart/dc_product_list_confirm.tsx +0 -188
- package/modules/mart/dc_product_main.tsx +0 -262
- package/modules/mart/dc_saldo_history.tsx +0 -78
- package/modules/mart/dc_scanner.tsx +0 -112
- package/modules/mart/detail.tsx +0 -297
- package/modules/mart/detail_search.tsx +0 -57
- package/modules/mart/edit.tsx +0 -111
- package/modules/mart/empty.tsx +0 -22
- package/modules/mart/header.tsx +0 -81
- package/modules/mart/header_home.tsx +0 -61
- package/modules/mart/home.tsx +0 -457
- package/modules/mart/image_picker.tsx +0 -60
- package/modules/mart/input.tsx +0 -276
- package/modules/mart/input_container.tsx +0 -24
- package/modules/mart/input_label.tsx +0 -22
- package/modules/mart/input_select.tsx +0 -35
- package/modules/mart/input_square.tsx +0 -67
- package/modules/mart/input_toggle.tsx +0 -34
- package/modules/mart/location.tsx +0 -102
- package/modules/mart/location_empty.tsx +0 -59
- package/modules/mart/lucky_draw.tsx +0 -134
- package/modules/mart/lucky_draw_detail.tsx +0 -137
- package/modules/mart/lucky_draw_history.tsx +0 -75
- package/modules/mart/lucky_draw_terms.tsx +0 -27
- package/modules/mart/lucky_draw_win.tsx +0 -26
- package/modules/mart/mitra_order.tsx +0 -162
- package/modules/mart/order.tsx +0 -138
- package/modules/mart/order_detail.tsx +0 -297
- package/modules/mart/order_detail_buttons.tsx +0 -365
- package/modules/mart/order_detail_item.tsx +0 -94
- package/modules/mart/order_detail_skeleton.tsx +0 -98
- package/modules/mart/order_detail_status.tsx +0 -91
- package/modules/mart/order_item.tsx +0 -152
- package/modules/mart/order_refund.tsx +0 -149
- package/modules/mart/order_status.tsx +0 -55
- package/modules/mart/point.tsx +0 -151
- package/modules/mart/point_exchange.tsx +0 -189
- package/modules/mart/point_exchange_history.tsx +0 -66
- package/modules/mart/point_history.tsx +0 -113
- package/modules/mart/point_list.tsx +0 -85
- package/modules/mart/product_add.tsx +0 -130
- package/modules/mart/product_check.tsx +0 -54
- package/modules/mart/product_detail.tsx +0 -275
- package/modules/mart/product_detail_description.tsx +0 -33
- package/modules/mart/product_detail_general.tsx +0 -113
- package/modules/mart/product_edit.tsx +0 -86
- package/modules/mart/product_input.tsx +0 -285
- package/modules/mart/product_item.tsx +0 -219
- package/modules/mart/product_list.tsx +0 -247
- package/modules/mart/product_main.tsx +0 -260
- package/modules/mart/product_search.tsx +0 -143
- package/modules/mart/product_stocks_adjust.tsx +0 -308
- package/modules/mart/register.tsx +0 -118
- package/modules/mart/reminder.tsx +0 -127
- package/modules/mart/review.tsx +0 -102
- package/modules/mart/scanner.tsx +0 -122
- package/modules/mart/search.tsx +0 -70
- package/modules/mart/section_menu.tsx +0 -46
- package/modules/mart/section_title.tsx +0 -32
- package/modules/merchant/branch.tsx +0 -70
- package/modules/merchant/branch_add.tsx +0 -275
- package/modules/merchant/detail.tsx +0 -64
- package/modules/merchant/detail_coupon.tsx +0 -115
- package/modules/merchant/edit.tsx +0 -271
- package/modules/merchant/index.tsx +0 -50
- package/modules/merchant/info.tsx +0 -107
- package/modules/merchant/item.tsx +0 -39
- package/modules/merchant/list_coupon.tsx +0 -74
- package/modules/merchant/list_invoice.tsx +0 -78
- package/modules/merchant/list_transaksi.tsx +0 -104
- package/modules/merchant/menu.tsx +0 -60
- package/modules/merchant/registrasi.tsx +0 -28
- package/modules/merchant/registrasi1.tsx +0 -118
- package/modules/merchant/registrasi2.tsx +0 -183
- package/modules/merchant/registrasi3.tsx +0 -113
- package/modules/merchant/registrasi4.tsx +0 -93
- package/modules/merchant/registrasi5.tsx +0 -136
- package/modules/merchant/registrasi6.tsx +0 -46
- package/modules/merchant/registrasi6_item.tsx +0 -36
- package/modules/merchant/registrasi7.tsx +0 -85
- package/modules/merchant/registrasi_merch.tsx +0 -257
- package/modules/merchant/terms.tsx +0 -53
- package/modules/notification/community.tsx +0 -112
- package/modules/notification/dc.tsx +0 -173
- package/modules/notification/event.tsx +0 -116
- package/modules/notification/index.tsx +0 -312
- package/modules/notification/item.tsx +0 -47
- package/modules/notification/marketplace.tsx +0 -175
- package/modules/notification/mitra.tsx +0 -177
- package/modules/notification/translate.tsx +0 -62
- package/modules/partner/detail.tsx +0 -50
- package/modules/partner/list.tsx +0 -59
- package/modules/payment/cc.tsx +0 -115
- package/modules/payment/cc_detail.tsx +0 -111
- package/modules/payment/cc_edit.tsx +0 -170
- package/modules/payment/cc_item.tsx +0 -45
- package/modules/payment/cc_web.tsx +0 -122
- package/modules/payment/cv.tsx +0 -126
- package/modules/payment/event_invitation.tsx +0 -261
- package/modules/payment/failed.tsx +0 -41
- package/modules/payment/talent.tsx +0 -263
- package/modules/payment/ticket.tsx +0 -625
- package/modules/payment/ticket_multi.tsx +0 -634
- package/modules/pos/business.tsx +0 -47
- package/modules/pos/business_detail.tsx +0 -205
- package/modules/pos/business_edit.tsx +0 -297
- package/modules/pos/cashier.tsx +0 -41
- package/modules/pos/cashier_invoice_detail.tsx +0 -175
- package/modules/pos/cashier_invoice_item.tsx +0 -63
- package/modules/pos/cashier_invoice_list.tsx +0 -102
- package/modules/pos/cashier_list.tsx +0 -84
- package/modules/pos/cashier_report.tsx +0 -158
- package/modules/pos/cashier_report_detail.tsx +0 -88
- package/modules/pos/cashier_report_item.tsx +0 -96
- package/modules/pos/comingsoon.tsx +0 -23
- package/modules/pos/index.tsx +0 -114
- package/modules/pos/outlet_list.tsx +0 -100
- package/modules/pos/outlet_report.tsx +0 -25
- package/modules/pos/payment_detail.tsx +0 -125
- package/modules/pos/pricing.tsx +0 -133
- package/modules/pos/pricing_payment.tsx +0 -195
- package/modules/pos/register.tsx +0 -412
- package/modules/pos/register_business.tsx +0 -333
- package/modules/pos/transaction.tsx +0 -338
- package/modules/pos/transaction_detail.tsx +0 -172
- package/modules/pos/waiting_payment.tsx +0 -61
- package/modules/pos/web_login.tsx +0 -108
- package/modules/ppob/button.tsx +0 -24
- package/modules/ppob/empty.tsx +0 -21
- package/modules/ppob/header.tsx +0 -35
- package/modules/ppob/hit.ts +0 -33
- package/modules/ppob/main_item.tsx +0 -61
- package/modules/ppob/payment.tsx +0 -238
- package/modules/ppob/ppob_item.tsx +0 -58
- package/modules/ppob/topup.tsx +0 -16
- package/modules/ppob/transaction_detail.tsx +0 -834
- package/modules/product/detail.tsx +0 -161
- package/modules/product/list.tsx +0 -74
- package/modules/quotation/add.tsx +0 -131
- package/modules/quotation/add_disc.tsx +0 -187
- package/modules/quotation/cancellation.tsx +0 -176
- package/modules/quotation/detail.tsx +0 -429
- package/modules/quotation/extra_days.tsx +0 -129
- package/modules/quotation/extra_days_approval.tsx +0 -124
- package/modules/quotation/index.tsx +0 -463
- package/modules/quotation/invoice.tsx +0 -188
- package/modules/quotation/order.tsx +0 -150
- package/modules/quotation/order_detail.tsx +0 -542
- package/modules/quotation/order_need_review.tsx +0 -85
- package/modules/quotation/order_status.tsx +0 -57
- package/modules/quotation/reschedule.tsx +0 -199
- package/modules/quotation/reschedule_approval.tsx +0 -143
- package/modules/quotation/revision.tsx +0 -224
- package/modules/review/buyer.tsx +0 -99
- package/modules/review/detail.tsx +0 -136
- package/modules/review/index.tsx +0 -207
- package/modules/review/talent.tsx +0 -77
- package/modules/search/index.tsx +0 -214
- package/modules/search/item.tsx +0 -55
- package/modules/search/list.tsx +0 -64
- package/modules/search/list2.tsx +0 -85
- package/modules/staff/id_card.tsx +0 -91
- package/modules/staff/id_card2.tsx +0 -84
- package/modules/ticket/detail.tsx +0 -814
- package/modules/ticket/detail_payment.tsx +0 -153
- package/modules/ticket/detail_upgrade.tsx +0 -164
- package/modules/ticket/detail_upgrade_button.tsx +0 -60
- package/modules/ticket/detail_upgrade_payment.tsx +0 -221
- package/modules/ticket/detail_visitor.tsx +0 -196
- package/modules/ticket/detail_waiting.tsx +0 -521
- package/modules/ticket/item.tsx +0 -118
- package/modules/ticket/lottery.tsx +0 -172
- package/modules/ticket/order.tsx +0 -324
- package/modules/ticket/order_history.tsx +0 -102
- package/modules/ticket/order_status.tsx +0 -66
- package/modules/ticket/order_waiting.tsx +0 -143
- package/modules/ticket/reschedule.tsx +0 -439
- package/modules/ticket/reschedule2.tsx +0 -176
- package/modules/ticket/reschedule_list.tsx +0 -85
- package/modules/ticket/share_to.tsx +0 -220
- package/modules/ticket/share_to_detail.tsx +0 -179
- package/modules/tms/gate_in.tsx +0 -147
- package/modules/tms/gate_in_list.tsx +0 -96
- package/modules/topup/bank2.tsx +0 -63
- package/modules/topup/cc_payment.tsx +0 -175
- package/modules/topup/cc_payment_detail.tsx +0 -100
- package/modules/topup/detail.tsx +0 -88
- package/modules/topup/index.tsx +0 -122
- package/modules/topup/input.tsx +0 -94
- package/modules/topup/item.tsx +0 -42
- package/modules/topup/list.tsx +0 -89
- package/modules/topup/nominal.tsx +0 -102
- package/modules/topup/payment.tsx +0 -150
- package/modules/transfer/index.tsx +0 -173
- package/modules/transfer/input.tsx +0 -181
- package/modules/transfer/list.tsx +0 -142
- package/modules/use/dates.tsx +0 -20
- package/modules/use/keep.tsx +0 -17
- package/modules/use/location.ts +0 -59
- package/modules/use/notif.ts +0 -32
- package/modules/use/paginate.tsx +0 -224
- package/modules/use/secure_page.tsx +0 -33
- package/modules/use/smartnotif.ts +0 -72
- package/modules/use/test.ts +0 -178
- package/modules/user/bank.tsx +0 -138
- package/modules/user/bank_add.tsx +0 -286
- package/modules/user/bank_list.tsx +0 -82
- package/modules/user/bank_otp.tsx +0 -141
- package/modules/user/bbopay.ts +0 -13
- package/modules/user/block.tsx +0 -128
- package/modules/user/class.ts +0 -142
- package/modules/user/confirm.tsx +0 -52
- package/modules/user/confirm_with.tsx +0 -45
- package/modules/user/coupon.tsx +0 -64
- package/modules/user/coupon_detail.tsx +0 -195
- package/modules/user/delete.tsx +0 -441
- package/modules/user/detail_pin.tsx +0 -78
- package/modules/user/devices.tsx +0 -260
- package/modules/user/edit_phone.tsx +0 -178
- package/modules/user/edit_phone_forget.tsx +0 -94
- package/modules/user/edit_phone_identity.tsx +0 -69
- package/modules/user/edit_phone_otp.tsx +0 -156
- package/modules/user/force_login.tsx +0 -198
- package/modules/user/help.tsx +0 -74
- package/modules/user/hook.tsx +0 -112
- package/modules/user/index.tsx +0 -113
- package/modules/user/language.tsx +0 -110
- package/modules/user/language_list.tsx +0 -106
- package/modules/user/language_list_item.tsx +0 -66
- package/modules/user/language_setting.tsx +0 -39
- package/modules/user/loading.tsx +0 -74
- package/modules/user/location.tsx +0 -57
- package/modules/user/location_country.tsx +0 -83
- package/modules/user/location_country_server.tsx +0 -84
- package/modules/user/location_gps.tsx +0 -175
- package/modules/user/location_item.tsx +0 -40
- package/modules/user/login.tsx +0 -346
- package/modules/user/menu_bigbank.tsx +0 -563
- package/modules/user/notification_list.tsx +0 -113
- package/modules/user/order.tsx +0 -22
- package/modules/user/otp.tsx +0 -224
- package/modules/user/otp_method.tsx +0 -90
- package/modules/user/password.tsx +0 -264
- package/modules/user/phone_check.tsx +0 -134
- package/modules/user/pin.tsx +0 -245
- package/modules/user/pin_alert.tsx +0 -27
- package/modules/user/pin_forget.tsx +0 -73
- package/modules/user/popup.tsx +0 -80
- package/modules/user/profile.tsx +0 -797
- package/modules/user/profile_edit.tsx +0 -472
- package/modules/user/profile_item.tsx +0 -38
- package/modules/user/profile_tms_list.tsx +0 -69
- package/modules/user/register.tsx +0 -36
- package/modules/user/register_detail.tsx +0 -288
- package/modules/user/register_email.tsx +0 -96
- package/modules/user/register_name.tsx +0 -400
- package/modules/user/register_phone.tsx +0 -131
- package/modules/user/register_with.tsx +0 -416
- package/modules/user/register_with_v2.tsx +0 -428
- package/modules/user/reminder.tsx +0 -72
- package/modules/user/saldo_refund.tsx +0 -80
- package/modules/user/saldo_refund_history.tsx +0 -97
- package/modules/user/scan_turnstile.tsx +0 -87
- package/modules/user/top_up_wallet.tsx +0 -211
- package/modules/user/top_up_wallet_detail.tsx +0 -115
- package/modules/user/top_up_wallet_list.tsx +0 -90
- package/modules/user/transaction.tsx +0 -111
- package/modules/user/transaction_detail.tsx +0 -150
- package/modules/user/weblogin.tsx +0 -118
- package/modules/visitor/edit.tsx +0 -127
- package/modules/visitor/history.tsx +0 -61
- package/modules/visitor/history_item.tsx +0 -96
- package/modules/visitor/index.tsx +0 -176
- package/modules/visitor/input.tsx +0 -285
- package/modules/visitor/menu.tsx +0 -24
- package/modules/withdraw/index.tsx +0 -123
- package/modules/withdraw/input.tsx +0 -225
- package/modules/withdraw/list.tsx +0 -37
- package/modules/withdraw/nationality.tsx +0 -49
- package/modules/withdraw/refund.tsx +0 -217
- package/modules/withdraw/upgrade1.tsx +0 -506
- package/modules/withdraw/waiting.tsx +0 -62
- package/moveOrRenameModule.js +0 -129
- package/nodarkandroid.js +0 -25
- package/package.debug.json +0 -122
- package/package.live.json +0 -118
- package/tsconfig.json +0 -25
- package/version.js +0 -32
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
// useLibs
|
|
2
|
-
// noPage
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export interface Notif_translate {
|
|
6
|
-
translate: any
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export default function m(): Notif_translate {
|
|
10
|
-
|
|
11
|
-
function translate(result: any) {
|
|
12
|
-
const notificationData = Array.isArray(result?.notifications) ? result?.notifications : result?.notifications?.list
|
|
13
|
-
let item: any = []
|
|
14
|
-
notificationData?.map?.((t: any) => {
|
|
15
|
-
t?.accounts.map((x: any) => {
|
|
16
|
-
x.tokens.map((y: any) => {
|
|
17
|
-
item.push({
|
|
18
|
-
user_id: x?.user_id,
|
|
19
|
-
group_id: x?.group_id,
|
|
20
|
-
created: t?.created,
|
|
21
|
-
access_token: result?.notifications?.access_token || "", //FCM v1
|
|
22
|
-
to: y,
|
|
23
|
-
sound: t?.sound,
|
|
24
|
-
title: t?.title,
|
|
25
|
-
body: t?.message,
|
|
26
|
-
params: JSON.stringify({
|
|
27
|
-
action: t?.data?.action,
|
|
28
|
-
module: t.data.module,
|
|
29
|
-
arguments: t?.data?.arguments
|
|
30
|
-
}),
|
|
31
|
-
data: {
|
|
32
|
-
action: t?.data?.action,
|
|
33
|
-
module: t.data.module,
|
|
34
|
-
title: t.data.title,
|
|
35
|
-
message: t.data.message,
|
|
36
|
-
params: t?.data?.arguments
|
|
37
|
-
}
|
|
38
|
-
});
|
|
39
|
-
})
|
|
40
|
-
})
|
|
41
|
-
})
|
|
42
|
-
return { notifications: item || [] }
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
return {
|
|
46
|
-
translate: translate
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
}
|
|
@@ -1,518 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
// noPage
|
|
3
|
-
import AsyncStorage from '@react-native-async-storage/async-storage';
|
|
4
|
-
import messaging from '@react-native-firebase/messaging';
|
|
5
|
-
import { LibCrypt } from 'esoftplay/cache/lib/crypt/import';
|
|
6
|
-
import { LibCurl } from 'esoftplay/cache/lib/curl/import';
|
|
7
|
-
import { LibNavigation } from 'esoftplay/cache/lib/navigation/import';
|
|
8
|
-
import { LibNotification } from 'esoftplay/cache/lib/notification/import';
|
|
9
|
-
import { LibObject } from 'esoftplay/cache/lib/object/import';
|
|
10
|
-
import { UserClass } from 'esoftplay/cache/user/class/import';
|
|
11
|
-
import { UserNotification } from 'esoftplay/cache/user/notification/import';
|
|
12
|
-
import esp from 'esoftplay/esp';
|
|
13
|
-
import useGlobalState, { useGlobalReturn } from 'esoftplay/global';
|
|
14
|
-
import moment from 'esoftplay/moment';
|
|
15
|
-
import { createTimeout } from 'esoftplay/timeout';
|
|
16
|
-
import * as Notifications from 'expo-notifications';
|
|
17
|
-
import { Alert, Linking, Platform } from "react-native";
|
|
18
|
-
/*
|
|
19
|
-
{
|
|
20
|
-
to: // exp token
|
|
21
|
-
data:{
|
|
22
|
-
action: // [route, dialog, ]
|
|
23
|
-
module: // routeName of ReactNavigation
|
|
24
|
-
params:
|
|
25
|
-
title:
|
|
26
|
-
message:
|
|
27
|
-
}
|
|
28
|
-
title:
|
|
29
|
-
body:
|
|
30
|
-
sound:
|
|
31
|
-
param:
|
|
32
|
-
ttl:
|
|
33
|
-
expiration:
|
|
34
|
-
priority:
|
|
35
|
-
badge:
|
|
36
|
-
} */
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
// const url = useGlobalState()
|
|
40
|
-
// Set up the notification handler for the app
|
|
41
|
-
const lastUrlState = useGlobalState<any>(undefined)
|
|
42
|
-
|
|
43
|
-
// Set up the notification handler for the app
|
|
44
|
-
Notifications.setNotificationHandler({
|
|
45
|
-
handleNotification: async () => ({
|
|
46
|
-
shouldShowAlert: true,
|
|
47
|
-
shouldPlaySound: true,
|
|
48
|
-
shouldSetBadge: true,
|
|
49
|
-
priority: Notifications.AndroidNotificationPriority.MAX,
|
|
50
|
-
}),
|
|
51
|
-
});
|
|
52
|
-
|
|
53
|
-
function rebuildNotificationData(data: any) {
|
|
54
|
-
const out: { title: string, body: string, data: any } = { title: '', body: '', data: null }
|
|
55
|
-
if (Platform.OS == 'android') {
|
|
56
|
-
if (data.notification) {
|
|
57
|
-
if (data.notification?.request?.content) {
|
|
58
|
-
out.title = data.notification?.request?.content?.title
|
|
59
|
-
out.body = data.notification?.request?.content?.body
|
|
60
|
-
out.data = { ...data.notification?.request?.content?.data, title: out.title, body: out.body }
|
|
61
|
-
} else if (data.notification?.title) {
|
|
62
|
-
out.title = data.notification?.title
|
|
63
|
-
out.body = data.notification?.body
|
|
64
|
-
out.data = { ...data?.data, title: out.title, body: out.body }
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
} else if (Platform.OS == 'ios') {
|
|
68
|
-
if (data.notification?.request?.content) {
|
|
69
|
-
out.title = data.notification?.request?.content?.title
|
|
70
|
-
out.body = data.notification?.request?.content?.body
|
|
71
|
-
if (data.notification?.request?.trigger?.payload) {
|
|
72
|
-
let rawData = data.notification?.request?.trigger?.payload
|
|
73
|
-
delete rawData["aps"]
|
|
74
|
-
delete rawData["google.c.sender.id"]
|
|
75
|
-
delete rawData["gcm.message_id"]
|
|
76
|
-
delete rawData["google.c.fid"]
|
|
77
|
-
delete rawData["google.c.a.e"]
|
|
78
|
-
out.data = { ...rawData, title: out.title, body: out.body }
|
|
79
|
-
} else {
|
|
80
|
-
out.data = { ...data.notification?.request?.content?.data, title: out.title, body: out.body }
|
|
81
|
-
}
|
|
82
|
-
} else if (data?.notification?.title) {
|
|
83
|
-
out.title = data.notification?.title
|
|
84
|
-
out.body = data.notification?.body
|
|
85
|
-
out.data = { ...data?.data, title: out.title, body: out.body }
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
return out
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
function checkNotifStorage(title?: string) {
|
|
93
|
-
AsyncStorage.getItem('remoteMessage').then((v) => {
|
|
94
|
-
try {
|
|
95
|
-
if (v) {
|
|
96
|
-
LibNotification.onAction(JSON.parse(v), title)
|
|
97
|
-
AsyncStorage.removeItem("remoteMessage")
|
|
98
|
-
}
|
|
99
|
-
} catch (error) {
|
|
100
|
-
|
|
101
|
-
}
|
|
102
|
-
})
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
// Handle push notifications when the app is in the background
|
|
106
|
-
messaging().setBackgroundMessageHandler(async (remoteMessage: any) => {
|
|
107
|
-
// handlePushNotification(remoteMessage)
|
|
108
|
-
AsyncStorage.setItem('remoteMessage', JSON.stringify(remoteMessage))
|
|
109
|
-
// if (remoteMessage) {
|
|
110
|
-
// }
|
|
111
|
-
// setTimeout(() => {
|
|
112
|
-
// checkNotifStorage("setBackgroundMessageHandler")
|
|
113
|
-
// }, 500);
|
|
114
|
-
});
|
|
115
|
-
|
|
116
|
-
messaging().onTokenRefresh((token) => {
|
|
117
|
-
AsyncStorage.getItem("token").then((old) => {
|
|
118
|
-
if (old != token) {
|
|
119
|
-
UserClass.sendToken(token)
|
|
120
|
-
}
|
|
121
|
-
})
|
|
122
|
-
})
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
function mainUrl(): string {
|
|
127
|
-
const { protocol, domain, uri } = esp.config()
|
|
128
|
-
return protocol + "://" + domain + uri;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
function readAll(ids: (string | number)[]) {
|
|
132
|
-
let url = mainUrl() + "user/push-read";
|
|
133
|
-
const { salt } = esp.config()
|
|
134
|
-
let post: any = {
|
|
135
|
-
notif_id: ids.join(','),
|
|
136
|
-
user_id: "",
|
|
137
|
-
secretkey: new LibCrypt().encode(salt + "|" + moment().serverFormat("YYYY-MM-DD hh:mm:ss"))
|
|
138
|
-
}
|
|
139
|
-
new LibCurl(url, post)
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
function splitArray(array: any[], maxLength: number): any[] {
|
|
143
|
-
const parts = maxLength // items per chunk
|
|
144
|
-
const splitedArray = array.reduce((resultArray: any, item, index) => {
|
|
145
|
-
const chunkIndex = Math.floor(index / parts)
|
|
146
|
-
if (!resultArray[chunkIndex]) {
|
|
147
|
-
resultArray[chunkIndex] = [] // start a new chunk
|
|
148
|
-
}
|
|
149
|
-
resultArray[chunkIndex].push(item)
|
|
150
|
-
return resultArray
|
|
151
|
-
}, [])
|
|
152
|
-
return splitedArray
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
export interface notificationTrigger {
|
|
157
|
-
delayInMinutes: number,
|
|
158
|
-
repeats?: boolean
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
export interface notificationContent {
|
|
162
|
-
title: string,
|
|
163
|
-
message: string,
|
|
164
|
-
module?: string,
|
|
165
|
-
url?: string
|
|
166
|
-
arguments?: any
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
const handlePushNotification = async (remoteMessage: any) => {
|
|
171
|
-
const notification = {
|
|
172
|
-
title: remoteMessage?.notification?.title,
|
|
173
|
-
body: remoteMessage?.notification?.body,
|
|
174
|
-
data: { ...remoteMessage.data, messageId: remoteMessage?.messageId }, // optional data payload
|
|
175
|
-
};
|
|
176
|
-
if (remoteMessage) {
|
|
177
|
-
AsyncStorage.setItem('remoteMessage', JSON.stringify(remoteMessage))
|
|
178
|
-
}
|
|
179
|
-
await Notifications.scheduleNotificationAsync({ content: notification, trigger: null });
|
|
180
|
-
};
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
export default {
|
|
184
|
-
state(): useGlobalReturn<any> {
|
|
185
|
-
return lastUrlState
|
|
186
|
-
},
|
|
187
|
-
effect() {
|
|
188
|
-
// Listen for push notifications when the app is in the foreground
|
|
189
|
-
// const uns = AppState.addEventListener('focus', () => {
|
|
190
|
-
// })
|
|
191
|
-
setTimeout(() => {
|
|
192
|
-
checkNotifStorage()
|
|
193
|
-
}, 500);
|
|
194
|
-
|
|
195
|
-
let unMessage = messaging().onMessage(handlePushNotification);
|
|
196
|
-
// Handle user opening the app from a notification (when the app is in the background)
|
|
197
|
-
let unonNotificationOpenedApp = messaging().onNotificationOpenedApp((remoteMessage) => {
|
|
198
|
-
if (remoteMessage) {
|
|
199
|
-
AsyncStorage.setItem('remoteMessage', JSON.stringify(remoteMessage))
|
|
200
|
-
}
|
|
201
|
-
setTimeout(() => {
|
|
202
|
-
checkNotifStorage("onNotificationOpenedApp")
|
|
203
|
-
}, 500);
|
|
204
|
-
});
|
|
205
|
-
|
|
206
|
-
// Check if the app was opened from a notification (when the app was completely quit)
|
|
207
|
-
messaging().getInitialNotification().then((remoteMessage) => {
|
|
208
|
-
if (remoteMessage) {
|
|
209
|
-
AsyncStorage.setItem('remoteMessage', JSON.stringify(remoteMessage))
|
|
210
|
-
}
|
|
211
|
-
setTimeout(() => {
|
|
212
|
-
checkNotifStorage("getInitialNotification")
|
|
213
|
-
}, 500);
|
|
214
|
-
});
|
|
215
|
-
|
|
216
|
-
return () => {
|
|
217
|
-
unMessage()
|
|
218
|
-
unonNotificationOpenedApp()
|
|
219
|
-
// uns.remove()
|
|
220
|
-
}
|
|
221
|
-
},
|
|
222
|
-
loadData(isFirst?: boolean): void {
|
|
223
|
-
let _uri = mainUrl() + "user/push-notif/desc"
|
|
224
|
-
let lastUrl = lastUrlState.get()
|
|
225
|
-
if (isFirst) {
|
|
226
|
-
lastUrl = undefined
|
|
227
|
-
}
|
|
228
|
-
if (lastUrl == -1) {
|
|
229
|
-
return
|
|
230
|
-
}
|
|
231
|
-
if (lastUrl && !isFirst) {
|
|
232
|
-
_uri = lastUrl
|
|
233
|
-
}
|
|
234
|
-
const user = UserClass.state().get()
|
|
235
|
-
if (!user?.id) {
|
|
236
|
-
Notifications.setBadgeCountAsync(0)
|
|
237
|
-
}
|
|
238
|
-
const { salt } = esp.config()
|
|
239
|
-
let post: any = {
|
|
240
|
-
user_id: "",
|
|
241
|
-
secretkey: new LibCrypt().encode(salt + "|" + moment().serverFormat("YYYY-MM-DD hh:mm:ss"))
|
|
242
|
-
}
|
|
243
|
-
if (user) {
|
|
244
|
-
post["user_id"] = user.id || user.user_id
|
|
245
|
-
post["group_id"] = user.group_id || esp.config('group_id')
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
new LibCurl(_uri, post,
|
|
249
|
-
(res: any) => {
|
|
250
|
-
if (res?.list?.length > 0) {
|
|
251
|
-
let urls: string[] = UserNotification.state().get().urls
|
|
252
|
-
if (isFirst) {
|
|
253
|
-
urls = []
|
|
254
|
-
}
|
|
255
|
-
if (urls && urls.indexOf(_uri) < 0) {
|
|
256
|
-
let { data, unread } = UserNotification.state().get()
|
|
257
|
-
let nUnread
|
|
258
|
-
if (isFirst) {
|
|
259
|
-
nUnread = res.list.filter((row: any) => row.status != 2).length
|
|
260
|
-
UserNotification.state().set({
|
|
261
|
-
data: res.list,
|
|
262
|
-
urls: [],
|
|
263
|
-
unread: nUnread
|
|
264
|
-
})
|
|
265
|
-
|
|
266
|
-
} else {
|
|
267
|
-
nUnread = unread + res.list.filter((row: any) => row.status != 2).length
|
|
268
|
-
data.push(...res.list)
|
|
269
|
-
UserNotification.state().set({
|
|
270
|
-
data: data,
|
|
271
|
-
urls: [_uri, ...urls],
|
|
272
|
-
unread: nUnread
|
|
273
|
-
})
|
|
274
|
-
}
|
|
275
|
-
Notifications.setBadgeCountAsync(nUnread)
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
if (res.next) {
|
|
279
|
-
lastUrlState.set(res.next)
|
|
280
|
-
} else {
|
|
281
|
-
lastUrlState.set(-1)
|
|
282
|
-
}
|
|
283
|
-
}, (msg) => {
|
|
284
|
-
|
|
285
|
-
}
|
|
286
|
-
)
|
|
287
|
-
},
|
|
288
|
-
add(id: number, user_id: number, group_id: number, title: string, message: string, params: string, status: 0 | 1 | 2, created?: string, updated?: string): void {
|
|
289
|
-
const item = { id, user_id, group_id, title, message, params, status, created, updated }
|
|
290
|
-
let data = UserNotification.state().get().data
|
|
291
|
-
data.unshift(item)
|
|
292
|
-
UserNotification.state().set({
|
|
293
|
-
...UserNotification.state().get(),
|
|
294
|
-
data: data
|
|
295
|
-
})
|
|
296
|
-
},
|
|
297
|
-
drop(): void {
|
|
298
|
-
UserNotification.state().reset()
|
|
299
|
-
},
|
|
300
|
-
markRead(id?: string | number, ..._ids: (string | number)[]): void {
|
|
301
|
-
let { data, unread, urls } = UserNotification.state().get()
|
|
302
|
-
let nUnread = unread > 0 ? unread - 1 : 0
|
|
303
|
-
let ids = [id, ..._ids]
|
|
304
|
-
ids.forEach((id) => {
|
|
305
|
-
const index = data.findIndex((row: any) => String(row.id) == String(id))
|
|
306
|
-
if (index > -1) {
|
|
307
|
-
data = LibObject.set(data, 2)(index, 'status')
|
|
308
|
-
nUnread = unread > 0 ? unread - 1 : 0
|
|
309
|
-
}
|
|
310
|
-
})
|
|
311
|
-
UserNotification.state().set({
|
|
312
|
-
urls,
|
|
313
|
-
data: data,
|
|
314
|
-
unread: nUnread
|
|
315
|
-
})
|
|
316
|
-
Notifications.setBadgeCountAsync(nUnread)
|
|
317
|
-
const idsToPush = splitArray(ids, 20)
|
|
318
|
-
idsToPush.forEach((ids) => {
|
|
319
|
-
readAll(ids)
|
|
320
|
-
})
|
|
321
|
-
}
|
|
322
|
-
,
|
|
323
|
-
onAction(notification: any, title?: string): void {
|
|
324
|
-
this.loadData(true)
|
|
325
|
-
const data = this.getData(notification)
|
|
326
|
-
// Alert.alert(title || 'default', JSON.stringify(data?.data, undefined, 2))
|
|
327
|
-
const timeout1 = createTimeout()
|
|
328
|
-
const timeout2 = createTimeout()
|
|
329
|
-
const doOpen = (data: any) => {
|
|
330
|
-
if (!LibNavigation.getIsReady()) {
|
|
331
|
-
timeout1.set(() => {
|
|
332
|
-
doOpen(data)
|
|
333
|
-
timeout1.clear()
|
|
334
|
-
}, 300);
|
|
335
|
-
return
|
|
336
|
-
} else {
|
|
337
|
-
timeout2.set(() => {
|
|
338
|
-
this.openPushNotif(data?.data)
|
|
339
|
-
timeout2.clear()
|
|
340
|
-
}, 300)
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
doOpen(data)
|
|
344
|
-
},
|
|
345
|
-
getData(x: any): any {
|
|
346
|
-
return rebuildNotificationData(x)
|
|
347
|
-
},
|
|
348
|
-
listen(dataRef: any): void {
|
|
349
|
-
if (esp.config('notification') == 1) {
|
|
350
|
-
if (Platform.OS == 'android')
|
|
351
|
-
Notifications.setNotificationChannelAsync(
|
|
352
|
-
'android',
|
|
353
|
-
{
|
|
354
|
-
sound: 'default',
|
|
355
|
-
enableLights: true,
|
|
356
|
-
description: esp.lang("lib/notification", "permission"),
|
|
357
|
-
name: esp.appjson().expo.name,
|
|
358
|
-
importance: Notifications.AndroidImportance.MAX,
|
|
359
|
-
showBadge: true,
|
|
360
|
-
enableVibrate: true,
|
|
361
|
-
lockscreenVisibility: Notifications.AndroidNotificationVisibility.PUBLIC
|
|
362
|
-
}
|
|
363
|
-
)
|
|
364
|
-
UserClass.pushToken();
|
|
365
|
-
dataRef.receive = Notifications.addNotificationReceivedListener(() => { })
|
|
366
|
-
}
|
|
367
|
-
},
|
|
368
|
-
requestPermission(callback?: (token: any) => void): Promise<any> {
|
|
369
|
-
return new Promise(async (r) => {
|
|
370
|
-
let settings = await Notifications.getPermissionsAsync();
|
|
371
|
-
if (!settings.granted) {
|
|
372
|
-
settings = await Notifications.requestPermissionsAsync({
|
|
373
|
-
ios: {
|
|
374
|
-
allowAlert: true,
|
|
375
|
-
allowBadge: true,
|
|
376
|
-
allowSound: true,
|
|
377
|
-
allowAnnouncements: true,
|
|
378
|
-
},
|
|
379
|
-
android: {}
|
|
380
|
-
});
|
|
381
|
-
}
|
|
382
|
-
const authStatus = await messaging().requestPermission();
|
|
383
|
-
const enabled = authStatus === messaging.AuthorizationStatus.AUTHORIZED || authStatus === messaging.AuthorizationStatus.PROVISIONAL;
|
|
384
|
-
if (enabled) {
|
|
385
|
-
await messaging().registerDeviceForRemoteMessages()
|
|
386
|
-
messaging()
|
|
387
|
-
.getToken()
|
|
388
|
-
.then(
|
|
389
|
-
token => {
|
|
390
|
-
callback?.(token)
|
|
391
|
-
}
|
|
392
|
-
)
|
|
393
|
-
.catch(() => {
|
|
394
|
-
callback?.(null)
|
|
395
|
-
})
|
|
396
|
-
} else {
|
|
397
|
-
callback?.(null)
|
|
398
|
-
}
|
|
399
|
-
})
|
|
400
|
-
},
|
|
401
|
-
cancelLocalNotification(notif_id: string) {
|
|
402
|
-
Notifications.cancelScheduledNotificationAsync(notif_id)
|
|
403
|
-
},
|
|
404
|
-
setLocalNotification(action: "alert" | "default" | "update", content: notificationContent, trigger: notificationTrigger, callback?: (notif_id: string) => void): void {
|
|
405
|
-
const triggerSeconds = Number(trigger?.delayInMinutes) * 60
|
|
406
|
-
const _trigger = {
|
|
407
|
-
seconds: triggerSeconds,
|
|
408
|
-
repeats: !!trigger?.repeats,
|
|
409
|
-
}
|
|
410
|
-
const params = { status: 3, url: content?.url, ...content?.arguments }
|
|
411
|
-
Notifications.scheduleNotificationAsync({
|
|
412
|
-
content: {
|
|
413
|
-
title: content?.title,
|
|
414
|
-
body: content?.message,
|
|
415
|
-
data: {
|
|
416
|
-
action: action,
|
|
417
|
-
module: content.module,
|
|
418
|
-
title: content?.title,
|
|
419
|
-
message: content?.message,
|
|
420
|
-
params,
|
|
421
|
-
},
|
|
422
|
-
},
|
|
423
|
-
trigger: _trigger,
|
|
424
|
-
}).then((notifId) => {
|
|
425
|
-
console.log("BERHASIL", r)
|
|
426
|
-
callback?.(notifId)
|
|
427
|
-
}).catch((r) => {
|
|
428
|
-
console.log("GAGAL", r)
|
|
429
|
-
})
|
|
430
|
-
},
|
|
431
|
-
openPushNotif(data: any): void {
|
|
432
|
-
if (!data) return
|
|
433
|
-
if (typeof data == 'string')
|
|
434
|
-
data = JSON.parse(data)
|
|
435
|
-
this.markRead(data?.id)
|
|
436
|
-
const _arguments = data.arguments ? ((typeof data.arguments == 'string') ? JSON.parse(data.arguments) : data.arguments) : data
|
|
437
|
-
if (data.action)
|
|
438
|
-
switch (data.action) {
|
|
439
|
-
case "alert":
|
|
440
|
-
const timeout = createTimeout()
|
|
441
|
-
let hasLink = _arguments?.url
|
|
442
|
-
let btns: any = []
|
|
443
|
-
if (hasLink) {
|
|
444
|
-
btns.push({ text: "OK", onPress: () => Linking.openURL(_arguments.url) })
|
|
445
|
-
} else {
|
|
446
|
-
btns.push({ text: "OK", onPress: () => { }, style: "cancel" })
|
|
447
|
-
}
|
|
448
|
-
timeout.set(() => {
|
|
449
|
-
Alert.alert(
|
|
450
|
-
data.title,
|
|
451
|
-
data.message,
|
|
452
|
-
btns,
|
|
453
|
-
{ cancelable: false }
|
|
454
|
-
)
|
|
455
|
-
timeout.clear()
|
|
456
|
-
}, 10)
|
|
457
|
-
break;
|
|
458
|
-
case "default":
|
|
459
|
-
if (data.module && data.module != "") {
|
|
460
|
-
const timeout1 = createTimeout()
|
|
461
|
-
if (!String(data.module).includes("/")) data.module = data.module + "/index"
|
|
462
|
-
timeout1.set(() => {
|
|
463
|
-
LibNavigation.navigate(data.module, _arguments)
|
|
464
|
-
timeout1.clear()
|
|
465
|
-
}, 10)
|
|
466
|
-
}
|
|
467
|
-
break;
|
|
468
|
-
case "update":
|
|
469
|
-
const timeout2 = createTimeout()
|
|
470
|
-
const update = esp.modProp('lib/updater')
|
|
471
|
-
timeout2.set(() => {
|
|
472
|
-
update?.check?.()
|
|
473
|
-
timeout2.clear()
|
|
474
|
-
}, 50);
|
|
475
|
-
break;
|
|
476
|
-
default:
|
|
477
|
-
break;
|
|
478
|
-
}
|
|
479
|
-
},
|
|
480
|
-
openNotif(data: any): void {
|
|
481
|
-
this.markRead(data.id)
|
|
482
|
-
let param = JSON.parse(data.params)
|
|
483
|
-
const timeout1 = createTimeout()
|
|
484
|
-
const timeout2 = createTimeout()
|
|
485
|
-
const _arguments = param.arguments ? ((typeof param.arguments == 'string') ? JSON.parse(param.arguments) : param.arguments) : param
|
|
486
|
-
switch (param.action) {
|
|
487
|
-
case "alert":
|
|
488
|
-
let hasLink = _arguments.hasOwnProperty("url") && _arguments.url != ""
|
|
489
|
-
let btns: any = []
|
|
490
|
-
if (hasLink) {
|
|
491
|
-
btns.push({ text: "OK", onPress: () => Linking.openURL(_arguments.url) })
|
|
492
|
-
} else {
|
|
493
|
-
btns.push({ text: "OK", onPress: () => { }, style: "cancel" })
|
|
494
|
-
}
|
|
495
|
-
timeout1.set(() => {
|
|
496
|
-
Alert.alert(
|
|
497
|
-
data.title,
|
|
498
|
-
data.message,
|
|
499
|
-
btns,
|
|
500
|
-
{ cancelable: false }
|
|
501
|
-
)
|
|
502
|
-
timeout1.clear()
|
|
503
|
-
}, 10)
|
|
504
|
-
break;
|
|
505
|
-
case "default":
|
|
506
|
-
if (param.module != "") {
|
|
507
|
-
if (!String(param.module).includes("/")) param.module = param.module + "/index"
|
|
508
|
-
timeout2.set(() => {
|
|
509
|
-
LibNavigation.navigate(param.module, _arguments)
|
|
510
|
-
timeout2.clear()
|
|
511
|
-
}, 10)
|
|
512
|
-
}
|
|
513
|
-
break;
|
|
514
|
-
default:
|
|
515
|
-
break;
|
|
516
|
-
}
|
|
517
|
-
}
|
|
518
|
-
}
|
package/modules/lib/notify.ts
DELETED
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
// useLibs
|
|
2
|
-
// noPage
|
|
3
|
-
import { LibObject } from 'esoftplay/cache/lib/object/import';
|
|
4
|
-
import esp from 'esoftplay/esp';
|
|
5
|
-
|
|
6
|
-
export interface LibNotifyItem {
|
|
7
|
-
to: string,
|
|
8
|
-
sound: string,
|
|
9
|
-
title: string,
|
|
10
|
-
body: string,
|
|
11
|
-
data: any,
|
|
12
|
-
access_token?: string
|
|
13
|
-
}
|
|
14
|
-
export interface LibNotifyProps {
|
|
15
|
-
notifications: LibNotifyItem[]
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export default function libnotify(res: LibNotifyProps): any {
|
|
19
|
-
const notifications = res.notifications
|
|
20
|
-
if (notifications && Array.isArray(notifications)) {
|
|
21
|
-
notifications.forEach((val, i) => {
|
|
22
|
-
if (val?.access_token) {
|
|
23
|
-
curlFCM(val)
|
|
24
|
-
} else {
|
|
25
|
-
curl(val)
|
|
26
|
-
}
|
|
27
|
-
})
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
const curlFCM = (data: any) => {
|
|
32
|
-
const LibCrypt = esp.mod("lib/crypt")
|
|
33
|
-
const token = new LibCrypt().decode(data.to)
|
|
34
|
-
|
|
35
|
-
if (!token.includes('ExponentPushToken')) {
|
|
36
|
-
const projectId = esp.config("firebase", "projectId")
|
|
37
|
-
const _data = LibObject.assign(data?.data || data, data?.data?.params || data?.params)()
|
|
38
|
-
|
|
39
|
-
let payloadData: any = {
|
|
40
|
-
action: _data?.action || "default",
|
|
41
|
-
title: _data?.title,
|
|
42
|
-
message: _data?.message,
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
if (_data?.module) {
|
|
46
|
-
payloadData['module'] = _data?.module
|
|
47
|
-
}
|
|
48
|
-
if (_data?.url) {
|
|
49
|
-
payloadData['url'] = _data?.url
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
const payload = {
|
|
53
|
-
message: {
|
|
54
|
-
token: token,
|
|
55
|
-
notification: {
|
|
56
|
-
title: data?.title,
|
|
57
|
-
body: data?.body
|
|
58
|
-
},
|
|
59
|
-
android: {
|
|
60
|
-
priority: "high",
|
|
61
|
-
notification: {
|
|
62
|
-
sound: "default",
|
|
63
|
-
icon: "notification_icon",
|
|
64
|
-
color: "#f39c12"
|
|
65
|
-
},
|
|
66
|
-
},
|
|
67
|
-
apns: {
|
|
68
|
-
payload: {
|
|
69
|
-
aps: {
|
|
70
|
-
sound: "default"
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
},
|
|
74
|
-
data: payloadData
|
|
75
|
-
}
|
|
76
|
-
};
|
|
77
|
-
|
|
78
|
-
const url = `https://fcm.googleapis.com/v1/projects/${projectId}/messages:send`;
|
|
79
|
-
const headers = {
|
|
80
|
-
'Authorization': `Bearer ${data?.access_token}`,
|
|
81
|
-
'Content-Type': 'application/json'
|
|
82
|
-
};
|
|
83
|
-
|
|
84
|
-
fetch(url, {
|
|
85
|
-
method: 'POST',
|
|
86
|
-
headers: headers,
|
|
87
|
-
body: JSON.stringify(payload)
|
|
88
|
-
})
|
|
89
|
-
.then(response => {
|
|
90
|
-
if (response.ok) {
|
|
91
|
-
} else {
|
|
92
|
-
console.error('Failed to send notification. Status code:', response.status);
|
|
93
|
-
return response.json().then(errorData => {
|
|
94
|
-
console.error('Error details:', errorData);
|
|
95
|
-
});
|
|
96
|
-
}
|
|
97
|
-
})
|
|
98
|
-
.catch(error => {
|
|
99
|
-
console.error('Error sending notification:', error);
|
|
100
|
-
});
|
|
101
|
-
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
const curl = (data: LibNotifyItem) => {
|
|
106
|
-
let dData: any = data
|
|
107
|
-
const LibCrypt = esp.mod("lib/crypt")
|
|
108
|
-
const token = new LibCrypt().decode(dData.to)
|
|
109
|
-
if (!token.includes('ExponentPushToken')) {
|
|
110
|
-
dData['to'] = token
|
|
111
|
-
const serverKey = esp.isDebug('server_key') ?
|
|
112
|
-
'AAAAOrW_DY4:APA91bEHxfawXU5H0lRhx0QyOJxKjusrp2KBXbPaKXq1RnTucgbi4MYodFBSCQobUbQSITY1056mTduORUixgWjv4TNSy_1VMXcrZU0oeUvWBALR8tDLZujDrbYyPEnBRt404EzCeazD' :
|
|
113
|
-
"AAAA_xCvBYI:APA91bE--DA0p9ArQmJ7jxrxpCvmNdGBdeW7IMHweQh5dKCt5bY7Ji9wlp9Y8-7zlFQA-CyacgKTLQEYa6EpMRzBiM8UmSy6YInN-vujP5NNJ53RxNSL8innpldUk3wQwjw8rHnnXKiv"
|
|
114
|
-
|
|
115
|
-
const payload = {
|
|
116
|
-
to: dData?.to,
|
|
117
|
-
notification: {
|
|
118
|
-
title: data?.title,
|
|
119
|
-
body: data?.body,
|
|
120
|
-
icon: "notification_icon",
|
|
121
|
-
color: "@color/notification_icon_color"
|
|
122
|
-
},
|
|
123
|
-
notification_priority: "PRIORITY_MAX",
|
|
124
|
-
data: LibObject.assign(data?.data || data, dData?.data?.params || dData?.params)()
|
|
125
|
-
};
|
|
126
|
-
|
|
127
|
-
const url = 'https://fcm.googleapis.com/fcm/send';
|
|
128
|
-
const headers = {
|
|
129
|
-
'Authorization': 'key=' + serverKey,
|
|
130
|
-
'Content-Type': 'application/json'
|
|
131
|
-
};
|
|
132
|
-
|
|
133
|
-
fetch(url, {
|
|
134
|
-
method: 'POST',
|
|
135
|
-
headers: headers,
|
|
136
|
-
body: JSON.stringify(payload)
|
|
137
|
-
})
|
|
138
|
-
.then((response) => {
|
|
139
|
-
if (response.ok) {
|
|
140
|
-
} else {
|
|
141
|
-
console.error('Failed to send notification. Status code:', response.status);
|
|
142
|
-
}
|
|
143
|
-
})
|
|
144
|
-
.catch(error => {
|
|
145
|
-
console.error('Error sending notification:', error);
|
|
146
|
-
});
|
|
147
|
-
}
|
|
148
|
-
}
|