esoftplay-event 0.0.0-a → 0.0.0-c

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.
Files changed (179) hide show
  1. package/event/additional.tsx +4 -4
  2. package/event/additional_input.tsx +15 -15
  3. package/event/alert.tsx +32 -0
  4. package/event/artist.tsx +166 -0
  5. package/event/artist_detail.tsx +521 -0
  6. package/event/artist_detail_multi.tsx +548 -0
  7. package/event/badge.tsx +22 -0
  8. package/event/button.tsx +40 -0
  9. package/event/config.ts +4 -0
  10. package/event/countdown.tsx +5 -5
  11. package/event/countdown_base.tsx +83 -0
  12. package/event/counter_cashier.tsx +13 -13
  13. package/event/counter_cashier_report.tsx +6 -6
  14. package/event/counter_cashier_sell.tsx +7 -7
  15. package/event/counter_eo.tsx +21 -21
  16. package/event/counter_history.tsx +4 -4
  17. package/event/counter_lm.tsx +18 -18
  18. package/event/counter_report.tsx +4 -4
  19. package/event/counter_report_breakdown.tsx +2 -2
  20. package/event/counter_report_detail.tsx +15 -15
  21. package/event/counter_report_detail_list.tsx +4 -4
  22. package/event/counter_request.tsx +4 -4
  23. package/event/counter_request_detail.tsx +6 -6
  24. package/event/counter_send.tsx +9 -9
  25. package/event/counter_user_list.tsx +15 -15
  26. package/event/coupon.tsx +4 -4
  27. package/event/coupon_claim.tsx +4 -4
  28. package/event/coupon_claim_detail.tsx +8 -7
  29. package/event/coupon_claim_history.tsx +9 -9
  30. package/event/coupon_claim_reimburse.tsx +7 -8
  31. package/event/coupon_claim_reimburse_history.tsx +4 -4
  32. package/event/coupon_claim_reimburse_history_detail.tsx +4 -4
  33. package/event/coupon_claim_staff.tsx +10 -10
  34. package/event/coupon_detail.tsx +3 -3
  35. package/event/coupon_event_list.tsx +4 -4
  36. package/event/coupon_generate.tsx +4 -4
  37. package/event/coupon_generate_event.tsx +4 -4
  38. package/event/coupon_generate_list.tsx +2 -2
  39. package/event/date_picker.tsx +5 -5
  40. package/event/detail.tsx +12 -15
  41. package/event/entrance.tsx +17 -17
  42. package/event/entrance_again.tsx +22 -23
  43. package/event/entrance_failed.tsx +15 -15
  44. package/event/entrance_idcard.tsx +23 -23
  45. package/event/entrance_list.tsx +24 -24
  46. package/event/entrance_list_item.tsx +6 -6
  47. package/event/entrance_log.tsx +24 -24
  48. package/event/entrance_success.tsx +8 -8
  49. package/event/entrance_warning.tsx +14 -14
  50. package/event/exchange_reward.tsx +2 -2
  51. package/event/exchange_reward_result.tsx +7 -8
  52. package/event/exchange_ticket.tsx +11 -12
  53. package/event/exchange_ticket_list.tsx +10 -12
  54. package/event/exchange_ticket_result.tsx +11 -12
  55. package/event/exit.tsx +9 -9
  56. package/event/exit_failed.tsx +12 -12
  57. package/event/exit_list.tsx +15 -15
  58. package/event/exit_log.tsx +22 -22
  59. package/event/exit_success.tsx +8 -8
  60. package/event/exit_temporary.tsx +21 -21
  61. package/event/expander.tsx +36 -0
  62. package/event/fab.tsx +24 -0
  63. package/event/firebase_socket.ts +365 -0
  64. package/event/hall_in.tsx +13 -13
  65. package/event/hall_in_failed.tsx +22 -22
  66. package/event/hall_in_list.tsx +17 -17
  67. package/event/hall_in_log.tsx +24 -24
  68. package/event/hall_in_success.tsx +8 -8
  69. package/event/hall_out.tsx +13 -13
  70. package/event/hall_out_failed.tsx +11 -11
  71. package/event/hall_out_list.tsx +17 -17
  72. package/event/hall_out_log.tsx +24 -24
  73. package/event/hall_out_success.tsx +8 -8
  74. package/event/header.tsx +119 -0
  75. package/event/header_home.tsx +108 -0
  76. package/event/index.tsx +270 -0
  77. package/event/input_rectangle.tsx +208 -0
  78. package/event/item.tsx +40 -0
  79. package/event/label_input.tsx +23 -0
  80. package/event/list.tsx +20 -21
  81. package/event/list_filter.tsx +12 -13
  82. package/event/list_item.tsx +76 -0
  83. package/event/list_item2.tsx +78 -0
  84. package/event/loading_page.tsx +248 -0
  85. package/event/log.tsx +54 -54
  86. package/event/message.tsx +32 -0
  87. package/event/notice.tsx +41 -0
  88. package/event/order.tsx +323 -0
  89. package/event/order_detail.tsx +813 -0
  90. package/event/order_detail_payment.tsx +153 -0
  91. package/event/order_detail_upgrade.tsx +164 -0
  92. package/event/order_detail_upgrade_button.tsx +60 -0
  93. package/event/order_detail_upgrade_payment.tsx +221 -0
  94. package/event/order_detail_visitor.tsx +196 -0
  95. package/event/order_detail_waiting.tsx +520 -0
  96. package/event/order_history.tsx +101 -0
  97. package/event/order_item.tsx +118 -0
  98. package/event/order_lottery.tsx +172 -0
  99. package/event/order_reschedule.tsx +439 -0
  100. package/event/order_reschedule_list.tsx +85 -0
  101. package/event/order_share_to.tsx +219 -0
  102. package/event/order_share_to_detail.tsx +181 -0
  103. package/event/order_status.tsx +66 -0
  104. package/event/order_waiting.tsx +143 -0
  105. package/event/pending_trx.tsx +50 -0
  106. package/event/qc_idcard.tsx +12 -12
  107. package/event/qc_idcard_failed.tsx +4 -4
  108. package/event/qc_idcard_success.tsx +4 -4
  109. package/event/qr_bg.tsx +22 -0
  110. package/event/queue_out.tsx +3 -3
  111. package/event/queue_pricing.tsx +2 -3
  112. package/event/rating.tsx +49 -0
  113. package/event/rating_mini.tsx +35 -0
  114. package/event/refresh_button.tsx +40 -0
  115. package/event/review.tsx +3 -3
  116. package/event/review_add.tsx +8 -8
  117. package/event/review_detail.tsx +4 -4
  118. package/event/review_item.tsx +4 -4
  119. package/event/scan_item.tsx +2 -2
  120. package/event/schedule.tsx +8 -9
  121. package/event/seat.tsx +16 -18
  122. package/event/seat_autopick.tsx +4 -4
  123. package/event/seat_map.tsx +4 -4
  124. package/event/seat_map_test.tsx +2 -2
  125. package/event/section.tsx +35 -0
  126. package/event/section_menu.tsx +40 -0
  127. package/event/sheet.tsx +73 -0
  128. package/event/slider.tsx +46 -0
  129. package/event/step.tsx +29 -0
  130. package/event/ticket_list.tsx +15 -16
  131. package/event/ticket_list2.tsx +16 -17
  132. package/event/tms.tsx +4 -4
  133. package/event/tms_add.tsx +7 -8
  134. package/event/tms_add_result.tsx +4 -4
  135. package/event/tms_check_code.tsx +160 -0
  136. package/event/tms_check_ticket.tsx +72 -0
  137. package/event/tms_check_ticket_result.tsx +384 -0
  138. package/event/tms_dashboard.tsx +7 -7
  139. package/event/tms_event_list.tsx +46 -43
  140. package/event/tms_gate.tsx +96 -0
  141. package/event/tms_home.tsx +639 -0
  142. package/event/tms_idcard.tsx +203 -0
  143. package/event/tms_in.tsx +215 -0
  144. package/event/tms_in_again.tsx +199 -0
  145. package/event/tms_in_failed.tsx +190 -0
  146. package/event/tms_in_hall.tsx +148 -0
  147. package/event/tms_in_hall_failed.tsx +270 -0
  148. package/event/tms_in_hall_list.tsx +222 -0
  149. package/event/tms_in_hall_log.tsx +134 -0
  150. package/event/tms_in_hall_success.tsx +132 -0
  151. package/event/tms_in_list.tsx +264 -0
  152. package/event/tms_in_log.tsx +130 -0
  153. package/event/tms_in_success.tsx +155 -0
  154. package/event/tms_in_warning.tsx +91 -0
  155. package/event/tms_list_item.tsx +88 -0
  156. package/event/tms_log.tsx +435 -0
  157. package/event/tms_out.tsx +91 -0
  158. package/event/tms_out_failed.tsx +135 -0
  159. package/event/tms_out_hall.tsx +143 -0
  160. package/event/tms_out_hall_failed.tsx +133 -0
  161. package/event/tms_out_hall_list.tsx +215 -0
  162. package/event/tms_out_hall_log.tsx +133 -0
  163. package/event/tms_out_hall_success.tsx +130 -0
  164. package/event/tms_out_list.tsx +118 -0
  165. package/event/tms_out_log.tsx +131 -0
  166. package/event/tms_out_success.tsx +143 -0
  167. package/event/tms_out_temporary.tsx +226 -0
  168. package/event/toggle.tsx +30 -0
  169. package/event/transaction.ts +34 -0
  170. package/event/turnstile_event_gate.tsx +2 -2
  171. package/event/turnstile_event_list.tsx +4 -4
  172. package/event/turnstile_event_ticket.tsx +4 -4
  173. package/event/turnstile_settings.tsx +11 -11
  174. package/event/turnstile_settings_otp.tsx +4 -4
  175. package/event/turnstile_settings_status.tsx +2 -2
  176. package/event/voucher.tsx +9 -10
  177. package/event/voucher_multi.tsx +4 -5
  178. package/id.json +644 -0
  179. package/package.json +1 -1
@@ -3,13 +3,13 @@ import { useEffect, useRef } from 'react';
3
3
 
4
4
 
5
5
  import { applyStyle } from 'esoftplay';
6
- import { ComponentButton } from 'esoftplay/cache/component/button/import';
7
- import { ComponentHeader } from 'esoftplay/cache/component/header/import';
8
- import { ComponentSlidingup } from 'esoftplay/cache/component/slidingup/import';
6
+ import { EventButton } from 'esoftplay/cache/event/button/import';
7
+ import { EventHeader } from 'esoftplay/cache/event/header/import';
9
8
  import { LibIcon } from 'esoftplay/cache/lib/icon/import';
10
9
  import { LibNavigation } from 'esoftplay/cache/lib/navigation/import';
11
10
  import { LibObject } from 'esoftplay/cache/lib/object/import';
12
11
  import { LibPicture } from 'esoftplay/cache/lib/picture/import';
12
+ import { LibSlidingup } from 'esoftplay/cache/lib/slidingup/import';
13
13
  import { LibStyle } from 'esoftplay/cache/lib/style/import';
14
14
  import { LibToastProperty } from 'esoftplay/cache/lib/toast/import';
15
15
  import { LibUtils } from 'esoftplay/cache/lib/utils/import';
@@ -22,21 +22,21 @@ import { Path, Svg } from 'react-native-svg';
22
22
 
23
23
 
24
24
 
25
- export interface EventHall_in_listArgs {
25
+ export interface EventTms_in_hall_listArgs {
26
26
 
27
27
  }
28
- export interface EventHall_in_listProps {
28
+ export interface EventTms_in_hall_listProps {
29
29
 
30
30
  }
31
- export default function m(props: EventHall_in_listProps): any {
31
+ export default function m(props: EventTms_in_hall_listProps): any {
32
32
  const { data, scan_type, url_ticket_update, url_ticket_detail, price_type, gate_type, event_id, selectGate, typeScanner, event_title, configPriority }: any = LibNavigation.getArgsAll<any>(props)
33
33
  const [useAll, setUseAll] = useSafeState<boolean>(false)
34
34
  const [list, setList] = useSafeState<any>()
35
- const dialogQty = useRef<ComponentSlidingup>(null)
35
+ const dialogQty = useRef<LibSlidingup>(null)
36
36
 
37
37
  let args = {
38
38
  selectGate: selectGate,
39
- fromPage: 'bigbang/gate_info',
39
+ fromPage: 'event/tms_home',
40
40
  event_id: event_id,
41
41
  event_title: event_title,
42
42
  typeScanner: typeScanner,
@@ -64,7 +64,7 @@ export default function m(props: EventHall_in_listProps): any {
64
64
  return (
65
65
  <Pressable key={i} onPress={() => {
66
66
  if (item.status_scanned == 2) /* 0 tidak diperbolehkan, 1 sudah didalam, 2 available */ {
67
- LibNavigation.replace('event/entrance_idcard', {
67
+ LibNavigation.replace('event/tms_idcard', {
68
68
  selectedTicket: item,
69
69
  hall: "in",
70
70
  ...args
@@ -78,7 +78,7 @@ export default function m(props: EventHall_in_listProps): any {
78
78
  message: item.status_label,
79
79
  result: item.scanned_detail
80
80
  }
81
- LibNavigation.replace('event/hall_in_failed', { msgError: err, ...args, postGetData: post })
81
+ LibNavigation.replace('event/tms_in_hall_failed', { msgError: err, ...args, postGetData: post })
82
82
  }
83
83
 
84
84
  }} style={{ width: LibStyle.width - 50, marginBottom: 10, backgroundColor: LibStyle.colorPrimary, padding: 15, borderRadius: 10, ...LibStyle.elevation(3) }}>
@@ -149,13 +149,13 @@ export default function m(props: EventHall_in_listProps): any {
149
149
  price_id: list?.filter((item: any) => item.checked == 1 && item.status_scanned != 2).map((it: any) => it.price_id)
150
150
  }
151
151
 
152
- LibNavigation.replace('event/hall_in_success', { ...args, url, post })
152
+ LibNavigation.replace('event/tms_in_hall_success', { ...args, url, post })
153
153
  }
154
154
  }
155
155
 
156
156
  return (
157
157
  <View style={{ flex: 1, backgroundColor: '#fff' }}>
158
- <ComponentHeader title={esp.lang("event/hall_in_list", "header_title")} subtitle='HALL' />
158
+ <EventHeader title={esp.lang("event/tms_in_hall_list", "header_title")} subtitle='HALL' />
159
159
  <View style={{ flex: 1, alignItems: 'center', justifyContent: 'center', paddingTop: 15, paddingBottom: 0 }}>
160
160
  <ScrollView style={{ flex: 1 }}>
161
161
  {
@@ -164,7 +164,7 @@ export default function m(props: EventHall_in_listProps): any {
164
164
  </ScrollView>
165
165
  </View>
166
166
 
167
- <ComponentSlidingup ref={dialogQty}>
167
+ <LibSlidingup ref={dialogQty}>
168
168
  <View style={{ borderTopRightRadius: 20, borderTopLeftRadius: 20, padding: 10, backgroundColor: '#fff', maxHeight: LibStyle.height - (LibStyle.height / 3) }}>
169
169
  <View style={{ flexDirection: 'row', alignItems: 'center', marginVertical: 20 }} >
170
170
  <TouchableOpacity
@@ -200,13 +200,13 @@ export default function m(props: EventHall_in_listProps): any {
200
200
  setList(a)
201
201
  setUseAll(useAll ? false : true)
202
202
  }} style={applyStyle({ paddingHorizontal: 15, borderWidth: 1, borderColor: 'rgba(0, 0, 0, 0)', height: 35, borderRadius: 16, backgroundColor: useAll ? LibStyle.colorRed : LibStyle.colorGreen, flexDirection: 'row', alignItems: 'center', alignContent: 'center', justifyContent: 'center' })} >
203
- <Text allowFontScaling={false} style={applyStyle({ fontFamily: "ArialBold", fontSize: 14, textAlign: "center", textAlignVertical: 'center', color: '#fff', marginRight: 15 })} >{useAll ? esp.lang("event/entrance_list", "cancel_use") : esp.lang("event/entrance_list", "use_all")}</Text>
203
+ <Text allowFontScaling={false} style={applyStyle({ fontFamily: "ArialBold", fontSize: 14, textAlign: "center", textAlignVertical: 'center', color: '#fff', marginRight: 15 })} >{useAll ? esp.lang("event/tms_in_list", "cancel_use") : esp.lang("event/tms_in_list", "use_all")}</Text>
204
204
  <LibIcon.Ionicons size={18} color="#fff" name={useAll ? "close" : "checkmark-done"} />
205
205
  </TouchableOpacity>
206
206
  </View>
207
207
 
208
- <ComponentButton
209
- label={esp.lang("event/hall_in_list", "btn_entrance")}
208
+ <EventButton
209
+ label={esp.lang("event/tms_in_hall_list", "btn_entrance")}
210
210
  backgroundColor={LibStyle.colorGreen}
211
211
  onPress={() => {
212
212
  quit()
@@ -215,7 +215,7 @@ export default function m(props: EventHall_in_listProps): any {
215
215
  />
216
216
 
217
217
  </View>
218
- </ComponentSlidingup>
218
+ </LibSlidingup>
219
219
 
220
220
  </View>
221
221
  )
@@ -2,9 +2,9 @@
2
2
 
3
3
  import { useEffect } from 'react';
4
4
 
5
- import { BigbangGate_infoProperty } from 'esoftplay/cache/bigbang/gate_info/import';
6
- import { EventHall_in_successProperty } from 'esoftplay/cache/event/hall_in_success/import';
7
- import { EventLogProperty } from 'esoftplay/cache/event/log/import';
5
+ import { EventTms_homeProperty } from 'esoftplay/cache/event/tms_home/import';
6
+ import { EventTms_in_hall_successProperty } from 'esoftplay/cache/event/tms_in_hall_success/import';
7
+ import { EventTms_logProperty } from 'esoftplay/cache/event/tms_log/import';
8
8
  import { LibLoading } from 'esoftplay/cache/lib/loading/import';
9
9
  import { LibStyle } from 'esoftplay/cache/lib/style/import';
10
10
  import { LibTextstyle } from 'esoftplay/cache/lib/textstyle/import';
@@ -16,10 +16,10 @@ import { useTimeout } from 'esoftplay/timeout';
16
16
  import React from 'react';
17
17
  import { Pressable, Text, View } from 'react-native';
18
18
 
19
- export interface EventHall_in_logArgs {
19
+ export interface EventTms_in_hall_logArgs {
20
20
 
21
21
  }
22
- export interface EventHall_in_logProps {
22
+ export interface EventTms_in_hall_logProps {
23
23
  onPress: (type: string, title: string) => void
24
24
  }
25
25
 
@@ -46,22 +46,22 @@ function Item(props: HallInLogItem) {
46
46
  )
47
47
  }
48
48
 
49
- export default function m(props: EventHall_in_logProps): any {
49
+ export default function m(props: EventTms_in_hall_logProps): any {
50
50
 
51
- const logHallIn = BigbangGate_infoProperty.counterState().useSelector(s => s)
52
- const backupHallIn = EventHall_in_successProperty.syncHallIn().useSelector(s => s)
51
+ const logHallIn = EventTms_homeProperty.counterState().useSelector(s => s)
52
+ const backupHallIn = EventTms_in_hall_successProperty.syncHallIn().useSelector(s => s)
53
53
  const [loading, setLoading] = useSafeState<boolean>(true)
54
54
  const timeout = useTimeout()
55
55
 
56
56
  function syncHallInData() {
57
- BigbangGate_infoProperty.subscribeSyncHallIn().trigger(EventHall_in_successProperty.syncHallIn().get())
57
+ EventTms_homeProperty.subscribeSyncHallIn().trigger(EventTms_in_hall_successProperty.syncHallIn().get())
58
58
  timeout(() => {
59
59
  setLoading(false)
60
60
  }, 1000)
61
61
  }
62
62
 
63
63
  function forceSyncHallInData() {
64
- BigbangGate_infoProperty.subscribeSyncHallInReset().trigger(EventHall_in_successProperty.syncHallIn().get())
64
+ EventTms_homeProperty.subscribeSyncHallInReset().trigger(EventTms_in_hall_successProperty.syncHallIn().get())
65
65
  timeout(() => {
66
66
  setLoading(false)
67
67
  }, 1000)
@@ -75,41 +75,41 @@ export default function m(props: EventHall_in_logProps): any {
75
75
  return <LibLoading />
76
76
  }
77
77
 
78
- let sumValue = EventLogProperty.sumValuesPerCategory(logHallIn)
78
+ let sumValue = EventTms_logProperty.sumValuesPerCategory(logHallIn)
79
79
 
80
80
  return (
81
81
  <View style={{ flex: 1, backgroundColor: '#fff', margin: 17, marginTop: 0, paddingBottom: 10, marginBottom: 0, borderBottomRightRadius: 10, borderBottomLeftRadius: 10, ...LibStyle.elevation(2) }}>
82
82
 
83
- <Item subtitle={esp.lang("event/hall_in_log", "ticket_scanned_hall_in")} text={esp.lang("event/hall_in_log", "scan_hall_in")} value={sumValue?.hall_in_scan} onPress={() => {
83
+ <Item subtitle={esp.lang("event/tms_in_hall_log", "ticket_scanned_hall_in")} text={esp.lang("event/tms_in_hall_log", "scan_hall_in")} value={sumValue?.hall_in_scan} onPress={() => {
84
84
  if (sumValue?.hall_in_scan) {
85
- props.onPress("hall_in_scan", esp.lang("event/hall_in_log", "scan_hall_in"))
85
+ props.onPress("hall_in_scan", esp.lang("event/tms_in_hall_log", "scan_hall_in"))
86
86
  }
87
87
  }} />
88
- <Item subtitle={esp.lang("event/hall_in_log", "qty_scanned_hall_in")} text={esp.lang("event/hall_in_log", "qty_scan_hall_in")} value={sumValue?.hall_in_ticket} onPress={() => {
88
+ <Item subtitle={esp.lang("event/tms_in_hall_log", "qty_scanned_hall_in")} text={esp.lang("event/tms_in_hall_log", "qty_scan_hall_in")} value={sumValue?.hall_in_ticket} onPress={() => {
89
89
  if (sumValue?.hall_in_ticket) {
90
- props.onPress("hall_in_ticket", esp.lang("event/hall_in_log", "qty_scan_hall_in"))
90
+ props.onPress("hall_in_ticket", esp.lang("event/tms_in_hall_log", "qty_scan_hall_in"))
91
91
  }
92
92
 
93
93
  }} />
94
- <Item subtitle={esp.lang("event/hall_in_log", "ticket_success_hall_in")} text={esp.lang("event/hall_in_log", "opengate_hall_in")} value={sumValue?.hall_in_opengate} onPress={() => {
94
+ <Item subtitle={esp.lang("event/tms_in_hall_log", "ticket_success_hall_in")} text={esp.lang("event/tms_in_hall_log", "opengate_hall_in")} value={sumValue?.hall_in_opengate} onPress={() => {
95
95
  if (sumValue?.hall_in_opengate) {
96
- props.onPress("hall_in_opengate", esp.lang("event/hall_in_log", "opengate_hall_in"))
96
+ props.onPress("hall_in_opengate", esp.lang("event/tms_in_hall_log", "opengate_hall_in"))
97
97
  }
98
98
 
99
99
  }} />
100
- <Item subtitle={esp.lang("event/hall_in_log", "idcard_scanned_hall_in")} text={esp.lang("event/hall_in_log", "opengate_hall_in_idcard")} value={sumValue?.hall_in_opengate_idcard} onPress={() => {
100
+ <Item subtitle={esp.lang("event/tms_in_hall_log", "idcard_scanned_hall_in")} text={esp.lang("event/tms_in_hall_log", "opengate_hall_in_idcard")} value={sumValue?.hall_in_opengate_idcard} onPress={() => {
101
101
  if (sumValue?.hall_in_opengate_idcard) {
102
- props.onPress("hall_in_opengate_idcard", esp.lang("event/hall_in_log", "opengate_hall_in_idcard"))
102
+ props.onPress("hall_in_opengate_idcard", esp.lang("event/tms_in_hall_log", "opengate_hall_in_idcard"))
103
103
  }
104
104
 
105
105
  }} />
106
- <Item subtitle={esp.lang("event/hall_in_log", "data_send_to_server")} text={esp.lang("event/hall_in_log", "data_send")} value={sumValue?.hall_in_send} onPress={() => {
106
+ <Item subtitle={esp.lang("event/tms_in_hall_log", "data_send_to_server")} text={esp.lang("event/tms_in_hall_log", "data_send")} value={sumValue?.hall_in_send} onPress={() => {
107
107
  if (sumValue?.hall_in_send) {
108
- props.onPress("hall_in_send", esp.lang("event/hall_in_log", "data_send"))
108
+ props.onPress("hall_in_send", esp.lang("event/tms_in_hall_log", "data_send"))
109
109
  }
110
110
 
111
111
  }} />
112
- <Item subtitle={esp.lang("event/hall_in_log", "data_not_send_to_server")} text={esp.lang("event/hall_in_log", "data_not_send")} valuecolor={LibStyle.colorRed} value={backupHallIn.length} onPress={() => {
112
+ <Item subtitle={esp.lang("event/tms_in_hall_log", "data_not_send_to_server")} text={esp.lang("event/tms_in_hall_log", "data_not_send")} valuecolor={LibStyle.colorRed} value={backupHallIn.length} onPress={() => {
113
113
 
114
114
  }} />
115
115
 
@@ -121,12 +121,12 @@ export default function m(props: EventHall_in_logProps): any {
121
121
  setLoading(true)
122
122
  forceSyncHallInData()
123
123
  }}>
124
- <Text allowFontScaling={false} style={{ textAlign: 'center' }}>{esp.lang("event/hall_in_log", "wait")}<Text style={{ color: LibStyle.colorBlue, textDecorationStyle: 'solid', textDecorationLine: 'underline' }}>{esp.lang("event/hall_in_log", "click")}</Text> {esp.lang("event/hall_in_log", "retry")}</Text>
124
+ <Text allowFontScaling={false} style={{ textAlign: 'center' }}>{esp.lang("event/tms_in_hall_log", "wait")}<Text style={{ color: LibStyle.colorBlue, textDecorationStyle: 'solid', textDecorationLine: 'underline' }}>{esp.lang("event/tms_in_hall_log", "click")}</Text> {esp.lang("event/tms_in_hall_log", "retry")}</Text>
125
125
  </Pressable>
126
126
  } >
127
127
  <LibTextstyle textStyle='callout'
128
128
  style={{ textAlign: 'center', marginTop: 15 }}
129
- text={esp.lang("event/hall_in_log", "already_scan")} />
129
+ text={esp.lang("event/tms_in_hall_log", "already_scan")} />
130
130
  </UseCondition>
131
131
  </View>
132
132
  </View >
@@ -8,17 +8,17 @@ import useGlobalState, { useGlobalReturn } from 'esoftplay/global';
8
8
  import { LinearGradient } from 'expo-linear-gradient';
9
9
  import { useEffect, useRef } from 'react';
10
10
 
11
- import { BigbangGate_infoProperty } from 'esoftplay/cache/bigbang/gate_info/import';
11
+ import { EventTms_homeProperty } from 'esoftplay/cache/event/tms_home/import';
12
12
  import esp from 'esoftplay/esp';
13
13
  import useSafeState from 'esoftplay/state';
14
14
  import React from 'react';
15
15
  import { Animated, Easing, Pressable, Text, View } from 'react-native';
16
16
 
17
17
 
18
- export interface EventHall_in_successArgs {
18
+ export interface EventTms_in_hall_successArgs {
19
19
 
20
20
  }
21
- export interface EventHall_in_successProps {
21
+ export interface EventTms_in_hall_successProps {
22
22
 
23
23
  }
24
24
 
@@ -27,7 +27,7 @@ export function syncHallIn(): useGlobalReturn<any[]> {
27
27
  return dataListHallIn
28
28
  }
29
29
 
30
- export default function m(props: EventHall_in_successProps): any {
30
+ export default function m(props: EventTms_in_hall_successProps): any {
31
31
 
32
32
  const { scan_type, data, url, post, url_ticket_update, url_ticket_detail, price_type, gate_type, event_id, selectGate, typeScanner, event_title, configPriority }: any = LibNavigation.getArgsAll<any>(props)
33
33
  const [isPaused, setIsPaused] = useSafeState<boolean>(false)
@@ -54,7 +54,7 @@ export default function m(props: EventHall_in_successProps): any {
54
54
  // script next nya disini
55
55
  LibNavigation.replace('component/scanner', {
56
56
  selectGate: selectGate,
57
- fromPage: 'bigbang/gate_info',
57
+ fromPage: 'event/tms_home',
58
58
  event_id: event_id,
59
59
  event_title: event_title,
60
60
  typeScanner: typeScanner,
@@ -80,14 +80,14 @@ export default function m(props: EventHall_in_successProps): any {
80
80
 
81
81
  useEffect(() => {
82
82
  dataListHallIn.get()
83
- BigbangGate_infoProperty.addCounterHallInGate(1, data[0]?.price_id)
83
+ EventTms_homeProperty.addCounterHallInGate(1, data[0]?.price_id)
84
84
  createDataHallIn()
85
85
  animateProgressBar()
86
86
  }, [])
87
87
 
88
88
  function createDataHallIn() {
89
89
  dataListHallIn.set(LibObject.push(dataListHallIn.get(), [url, post])())
90
- BigbangGate_infoProperty.subscribeSyncHallIn().trigger(dataListHallIn.get())
90
+ EventTms_homeProperty.subscribeSyncHallIn().trigger(dataListHallIn.get())
91
91
  }
92
92
 
93
93
  const widthInterpolate = progress.interpolate({
@@ -122,7 +122,7 @@ export default function m(props: EventHall_in_successProps): any {
122
122
  colors={['rgba(255,255,255,0)', 'rgba(0,0,0,0.55)', 'rgba(0,0,0,1)', 'rgba(0,0,0,1)']}>
123
123
  <View style={{ flex: 1, padding: 15, justifyContent: 'flex-end', paddingBottom: 100, alignContent: 'center', alignItems: 'center' }}>
124
124
  <Text allowFontScaling={false} style={{ textAlign: 'center', flexWrap: 'wrap', fontSize: 35, letterSpacing: 2, fontWeight: '900', color: '#fff' }}>{data[0]?.price_name}</Text>
125
- <Text allowFontScaling={false} style={{ textAlign: 'center', fontSize: 26, marginTop: 20, color: '#fff' }}>{esp.lang("event/hall_in_success", "entrance")}</Text>
125
+ <Text allowFontScaling={false} style={{ textAlign: 'center', fontSize: 26, marginTop: 20, color: '#fff' }}>{esp.lang("event/tms_in_hall_success", "entrance")}</Text>
126
126
  </View>
127
127
 
128
128
  </LinearGradient>
@@ -1,6 +1,6 @@
1
1
  // withHooks
2
2
 
3
- import { BigbangGate_infoProperty } from 'esoftplay/cache/bigbang/gate_info/import';
3
+ import { EventTms_homeProperty } from 'esoftplay/cache/event/tms_home/import';
4
4
  import { LibCurl } from 'esoftplay/cache/lib/curl/import';
5
5
  import { LibLoading } from 'esoftplay/cache/lib/loading/import';
6
6
  import { LibNavigation } from 'esoftplay/cache/lib/navigation/import';
@@ -10,18 +10,18 @@ import React, { useEffect } from 'react';
10
10
  import { View } from 'react-native';
11
11
 
12
12
 
13
- export interface EventHall_outArgs {
13
+ export interface EventTms_out_hallArgs {
14
14
 
15
15
  }
16
- export interface EventHall_outProps {
16
+ export interface EventTms_out_hallProps {
17
17
 
18
18
  }
19
- export default function m(props: EventHall_outProps): any {
19
+ export default function m(props: EventTms_out_hallProps): any {
20
20
  const { scan_type, url_ticket_update, url_ticket_detail, price_type, gate_type, qr_code, event_id, email, selectGate, typeScanner, event_title, configPriority }: any = LibNavigation.getArgsAll<any>(props)
21
21
 
22
22
  let args = {
23
23
  selectGate: selectGate,
24
- fromPage: 'bigbang/gate_info',
24
+ fromPage: 'event/tms_home',
25
25
  event_id: event_id,
26
26
  event_title: event_title,
27
27
  typeScanner: typeScanner,
@@ -38,7 +38,7 @@ export default function m(props: EventHall_outProps): any {
38
38
  }, [])
39
39
 
40
40
  function loadData() {
41
- BigbangGate_infoProperty.addCounterHallOutScan(1, "0")
41
+ EventTms_homeProperty.addCounterHallOutScan(1, "0")
42
42
 
43
43
  var post = {
44
44
  event_id: event_id,
@@ -90,7 +90,7 @@ export default function m(props: EventHall_outProps): any {
90
90
  if (tiket.price_id == "staff") { // jika itu adalah id card
91
91
  if (tiket.status_scanned == 2) {
92
92
  /* 0 tidak diperbolehkan, 1 sudah didalam, 2 available */
93
- LibNavigation.replace('event/entrance_idcard', {
93
+ LibNavigation.replace('event/tms_idcard', {
94
94
  selectedTicket: { ...tiket, key: qr_code },
95
95
  hall: "out",
96
96
  ...args
@@ -100,11 +100,11 @@ export default function m(props: EventHall_outProps): any {
100
100
  message: tiket.status_label,
101
101
  result: tiket.scanned_detail
102
102
  }
103
- LibNavigation.replace('event/hall_out_failed', { msgError: err, ...args, postGetData: post })
103
+ LibNavigation.replace('event/tms_out_hall_failed', { msgError: err, ...args, postGetData: post })
104
104
  }
105
105
  } else { // jika itu adalah tiket
106
106
  if (tiket.list?.length > 1) { // jika tiket itu mempunyai banyak qty
107
- LibNavigation.replace('event/hall_out_list', { data: ticketsData, ...args })
107
+ LibNavigation.replace('event/tms_out_hall_list', { data: ticketsData, ...args })
108
108
  } else { // jika tiket itu cuma 1 qty
109
109
  let defaultUse = LibObject.set(tiket?.list, tiket?.list?.[0]?.status_scanned != 2 ? 1 : 0)(0, 'checked')
110
110
  let a = defaultUse?.filter((item: any) => item.checked == 1 && item.status_scanned != 2).map((it: any) => it.id)
@@ -117,22 +117,22 @@ export default function m(props: EventHall_outProps): any {
117
117
  }
118
118
  if (a.length > 0) { // jika tiket itu bisa di pakai
119
119
  let urlOut = "event_tms_hall_out_confirm"
120
- LibNavigation.replace('event/hall_out_success', { data: [tiket], ...args, url: urlOut, post: postOut })
120
+ LibNavigation.replace('event/tms_out_hall_success', { data: [tiket], ...args, url: urlOut, post: postOut })
121
121
  } else { // jika tiket itu tidak bisa dipakai
122
122
  let err = {
123
123
  message: tiket?.list?.[0]?.status_label,
124
124
  }
125
- LibNavigation.replace('event/hall_out_failed', { msgError: err, ...args, postGetData: post })
125
+ LibNavigation.replace('event/tms_out_hall_failed', { msgError: err, ...args, postGetData: post })
126
126
  }
127
127
  }
128
128
  }
129
129
  } else { // jika punya tiket banyak
130
- LibNavigation.replace('event/hall_out_list', { data: ticketsData, ...args })
130
+ LibNavigation.replace('event/tms_out_hall_list', { data: ticketsData, ...args })
131
131
  }
132
132
 
133
133
 
134
134
  }, (error) => {
135
- LibNavigation.replace('event/hall_out_failed', { msgError: error, ...args, postGetData: post })
135
+ LibNavigation.replace('event/tms_out_hall_failed', { msgError: error, ...args, postGetData: post })
136
136
  }, 1)
137
137
  }
138
138
  return (
@@ -1,7 +1,7 @@
1
1
  // withHooks
2
2
  import { useEffect } from 'react';
3
3
 
4
- import { BigbangGate_infoProperty } from 'esoftplay/cache/bigbang/gate_info/import';
4
+ import { EventTms_homeProperty } from 'esoftplay/cache/event/tms_home/import';
5
5
  import { LibCurl } from 'esoftplay/cache/lib/curl/import';
6
6
  import { LibDialog } from 'esoftplay/cache/lib/dialog/import';
7
7
  import { LibNavigation } from 'esoftplay/cache/lib/navigation/import';
@@ -14,23 +14,23 @@ import esp from 'esoftplay/esp';
14
14
  import React from 'react';
15
15
  import { Pressable, ScrollView, Text, View } from 'react-native';
16
16
 
17
- export interface EventHall_out_failedArgs {
17
+ export interface EventTms_out_hall_failedArgs {
18
18
 
19
19
  }
20
- export interface EventHall_out_failedProps {
20
+ export interface EventTms_out_hall_failedProps {
21
21
 
22
22
  }
23
- export default function m(props: EventHall_out_failedProps): any {
23
+ export default function m(props: EventTms_out_hall_failedProps): any {
24
24
  const { scan_type, msgError, postGetData, url_ticket_update, url_ticket_detail, price_type, gate_type, event_id, selectGate, typeScanner, event_title, configPriority }: any = LibNavigation.getArgsAll<any>(props)
25
25
 
26
26
  useEffect(() => {
27
- BigbangGate_infoProperty.addCounterHallOutScanFailed(1, "0")
27
+ EventTms_homeProperty.addCounterHallOutScanFailed(1, "0")
28
28
  }, [])
29
29
 
30
30
  function getBack() {
31
31
  LibNavigation.replace('component/scanner', {
32
32
  selectGate: selectGate,
33
- fromPage: 'bigbang/gate_info',
33
+ fromPage: 'event/tms_home',
34
34
  event_id: event_id,
35
35
  event_title: event_title,
36
36
  typeScanner: typeScanner,
@@ -88,7 +88,7 @@ export default function m(props: EventHall_out_failedProps): any {
88
88
  <Text allowFontScaling={false} style={{ fontWeight: 'bold', textAlign: 'center', fontSize: 14 }}>{"TMS - Tipe Tiket"}</Text>
89
89
  </View>
90
90
  <View style={{ flex: 1, justifyContent: 'center', paddingVertical: 5 }}>
91
- <Text allowFontScaling={false} style={{ fontWeight: 'bold', textAlign: 'center', fontSize: 14 }}>{esp.lang("event/hall_out_failed", "history")}</Text>
91
+ <Text allowFontScaling={false} style={{ fontWeight: 'bold', textAlign: 'center', fontSize: 14 }}>{esp.lang("event/tms_out_hall_failed", "history")}</Text>
92
92
  </View>
93
93
  </View>
94
94
  }
@@ -114,15 +114,15 @@ export default function m(props: EventHall_out_failedProps): any {
114
114
  <View style={{ flexDirection: 'row', width: LibStyle.width - 40, marginVertical: 10, justifyContent: 'space-between' }}>
115
115
  <Pressable onPress={() => {
116
116
 
117
- LibDialog.warningConfirm(esp.lang("event/entrance_failed", "warn_title"), esp.lang("event/entrance_failed", "warn_msg"), esp.lang("event/entrance_failed", "warn_ok"), () => {
117
+ LibDialog.warningConfirm(esp.lang("event/tms_in_failed", "warn_title"), esp.lang("event/tms_in_failed", "warn_msg"), esp.lang("event/tms_in_failed", "warn_ok"), () => {
118
118
  sendTelegram()
119
- }, esp.lang("event/entrance_failed", "warn_no"), () => { })
119
+ }, esp.lang("event/tms_in_failed", "warn_no"), () => { })
120
120
 
121
121
  }} style={{ width: (LibStyle.width - 45) * 0.5, height: 43, borderRadius: 5, backgroundColor: LibStyle.colorRed, borderWidth: 3, borderColor: "#fff", justifyContent: 'center', alignContent: 'center', alignItems: 'center', ...LibStyle.elevation(10) }}>
122
- <Text allowFontScaling={false} style={{ textAlign: 'center', fontSize: 12, fontWeight: 'bold', color: "#fff" }}>{esp.lang("event/hall_out_failed", "report_error")}</Text>
122
+ <Text allowFontScaling={false} style={{ textAlign: 'center', fontSize: 12, fontWeight: 'bold', color: "#fff" }}>{esp.lang("event/tms_out_hall_failed", "report_error")}</Text>
123
123
  </Pressable>
124
124
  <Pressable onPress={getBack} style={{ width: (LibStyle.width - 45) * 0.5, height: 43, borderRadius: 5, backgroundColor: LibStyle.colorGreen, justifyContent: 'center', alignContent: 'center', alignItems: 'center', ...LibStyle.elevation(10) }}>
125
- <Text allowFontScaling={false} style={{ fontSize: 14, fontWeight: 'bold', color: "#fff" }}>{esp.lang("event/hall_out_failed", "back")}</Text>
125
+ <Text allowFontScaling={false} style={{ fontSize: 14, fontWeight: 'bold', color: "#fff" }}>{esp.lang("event/tms_out_hall_failed", "back")}</Text>
126
126
  </Pressable>
127
127
 
128
128
  </View>
@@ -2,13 +2,13 @@
2
2
  import { useRef } from 'react';
3
3
 
4
4
  import { applyStyle } from 'esoftplay';
5
- import { ComponentButton } from 'esoftplay/cache/component/button/import';
6
- import { ComponentHeader } from 'esoftplay/cache/component/header/import';
7
- import { ComponentSlidingup } from 'esoftplay/cache/component/slidingup/import';
5
+ import { EventButton } from 'esoftplay/cache/event/button/import';
6
+ import { EventHeader } from 'esoftplay/cache/event/header/import';
8
7
  import { LibIcon } from 'esoftplay/cache/lib/icon/import';
9
8
  import { LibNavigation } from 'esoftplay/cache/lib/navigation/import';
10
9
  import { LibObject } from 'esoftplay/cache/lib/object/import';
11
10
  import { LibPicture } from 'esoftplay/cache/lib/picture/import';
11
+ import { LibSlidingup } from 'esoftplay/cache/lib/slidingup/import';
12
12
  import { LibStyle } from 'esoftplay/cache/lib/style/import';
13
13
  import { LibToastProperty } from 'esoftplay/cache/lib/toast/import';
14
14
  import { LibUtils } from 'esoftplay/cache/lib/utils/import';
@@ -20,22 +20,22 @@ import { Pressable, ScrollView, Text, TouchableOpacity, View } from 'react-nativ
20
20
  import { Path, Svg } from 'react-native-svg';
21
21
 
22
22
 
23
- export interface EventHall_out_listArgs {
23
+ export interface EventTms_out_hall_listArgs {
24
24
 
25
25
  }
26
- export interface EventHall_out_listProps {
26
+ export interface EventTms_out_hall_listProps {
27
27
 
28
28
  }
29
- export default function m(props: EventHall_out_listProps): any {
29
+ export default function m(props: EventTms_out_hall_listProps): any {
30
30
 
31
31
  const { data, scan_type, url_ticket_update, url_ticket_detail, price_type, gate_type, event_id, selectGate, typeScanner, event_title, configPriority }: any = LibNavigation.getArgsAll<any>(props)
32
32
  const [useAll, setUseAll] = useSafeState<boolean>(false)
33
33
  const [list, setList] = useSafeState<any>()
34
- const dialogQty = useRef<ComponentSlidingup>(null)
34
+ const dialogQty = useRef<LibSlidingup>(null)
35
35
 
36
36
  let args = {
37
37
  selectGate: selectGate,
38
- fromPage: 'bigbang/gate_info',
38
+ fromPage: 'event/tms_home',
39
39
  event_id: event_id,
40
40
  event_title: event_title,
41
41
  typeScanner: typeScanner,
@@ -55,7 +55,7 @@ export default function m(props: EventHall_out_listProps): any {
55
55
  return (
56
56
  <Pressable key={i} onPress={() => {
57
57
  if (item.status_scanned == 2) /* 0 tidak diperbolehkan, 1 sudah didalam, 2 available */ {
58
- LibNavigation.replace('event/entrance_idcard', {
58
+ LibNavigation.replace('event/tms_idcard', {
59
59
  selectedTicket: item,
60
60
  hall: "in",
61
61
  ...args
@@ -69,7 +69,7 @@ export default function m(props: EventHall_out_listProps): any {
69
69
  message: item.status_label,
70
70
  result: item.scanned_detail
71
71
  }
72
- LibNavigation.replace('event/hall_in_failed', { msgError: err, ...args, postGetData: post })
72
+ LibNavigation.replace('event/tms_in_hall_failed', { msgError: err, ...args, postGetData: post })
73
73
  }
74
74
 
75
75
  }} style={{ width: LibStyle.width - 50, marginBottom: 10, backgroundColor: LibStyle.colorPrimary, padding: 15, borderRadius: 10, ...LibStyle.elevation(3) }}>
@@ -142,13 +142,13 @@ export default function m(props: EventHall_out_listProps): any {
142
142
  price_id: list?.filter((item: any) => item.checked == 1 && item.status_scanned != 2).map((it: any) => it.price_id)
143
143
  }
144
144
 
145
- LibNavigation.replace('event/hall_out_success', { ...args, url, post })
145
+ LibNavigation.replace('event/tms_out_hall_success', { ...args, url, post })
146
146
  }
147
147
  }
148
148
 
149
149
  return (
150
150
  <View style={{ flex: 1, backgroundColor: '#fff' }}>
151
- <ComponentHeader title={esp.lang("event/hall_out_list", "header_title")} />
151
+ <EventHeader title={esp.lang("event/tms_out_hall_list", "header_title")} />
152
152
  <View style={{ flex: 1, alignItems: 'center', justifyContent: 'center', paddingTop: 15, paddingBottom: 0 }}>
153
153
  <ScrollView style={{ flex: 1 }}>
154
154
  {
@@ -157,7 +157,7 @@ export default function m(props: EventHall_out_listProps): any {
157
157
  </ScrollView>
158
158
  </View>
159
159
 
160
- <ComponentSlidingup ref={dialogQty}>
160
+ <LibSlidingup ref={dialogQty}>
161
161
  <View style={{ borderTopRightRadius: 20, borderTopLeftRadius: 20, padding: 10, backgroundColor: '#fff', maxHeight: LibStyle.height - (LibStyle.height / 3) }}>
162
162
  <View style={{ flexDirection: 'row', alignItems: 'center', marginVertical: 20 }} >
163
163
  <TouchableOpacity
@@ -193,13 +193,13 @@ export default function m(props: EventHall_out_listProps): any {
193
193
  setList(a)
194
194
  setUseAll(useAll ? false : true)
195
195
  }} style={applyStyle({ paddingHorizontal: 15, borderWidth: 1, borderColor: 'rgba(0, 0, 0, 0)', height: 35, borderRadius: 16, backgroundColor: useAll ? LibStyle.colorRed : LibStyle.colorGreen, flexDirection: 'row', alignItems: 'center', alignContent: 'center', justifyContent: 'center' })} >
196
- <Text allowFontScaling={false} style={applyStyle({ fontFamily: "ArialBold", fontSize: 14, textAlign: "center", textAlignVertical: 'center', color: '#fff', marginRight: 15 })} >{useAll ? esp.lang("event/entrance_list", "cancel_use") : esp.lang("event/entrance_list", "use_all")}</Text>
196
+ <Text allowFontScaling={false} style={applyStyle({ fontFamily: "ArialBold", fontSize: 14, textAlign: "center", textAlignVertical: 'center', color: '#fff', marginRight: 15 })} >{useAll ? esp.lang("event/tms_in_list", "cancel_use") : esp.lang("event/tms_in_list", "use_all")}</Text>
197
197
  <LibIcon.Ionicons size={18} color="#fff" name={useAll ? "close" : "checkmark-done"} />
198
198
  </TouchableOpacity>
199
199
  </View>
200
200
 
201
- <ComponentButton
202
- label={esp.lang("event/hall_out_list", "exit")}
201
+ <EventButton
202
+ label={esp.lang("event/tms_out_hall_list", "exit")}
203
203
  backgroundColor={LibStyle.colorRed}
204
204
  onPress={() => {
205
205
  quit()
@@ -208,7 +208,7 @@ export default function m(props: EventHall_out_listProps): any {
208
208
  />
209
209
 
210
210
  </View>
211
- </ComponentSlidingup>
211
+ </LibSlidingup>
212
212
 
213
213
  </View>
214
214
  )