esoftplay-event 0.0.0-a

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 (121) hide show
  1. package/config.json +11 -0
  2. package/event/additional.tsx +188 -0
  3. package/event/additional_input.tsx +316 -0
  4. package/event/block_invitation.tsx +48 -0
  5. package/event/countdown.tsx +72 -0
  6. package/event/counter_cashier.tsx +180 -0
  7. package/event/counter_cashier_report.tsx +114 -0
  8. package/event/counter_cashier_sell.tsx +135 -0
  9. package/event/counter_eo.tsx +451 -0
  10. package/event/counter_history.tsx +74 -0
  11. package/event/counter_history_item.tsx +48 -0
  12. package/event/counter_info.tsx +96 -0
  13. package/event/counter_lm.tsx +273 -0
  14. package/event/counter_menu.tsx +85 -0
  15. package/event/counter_report.tsx +105 -0
  16. package/event/counter_report_breakdown.tsx +93 -0
  17. package/event/counter_report_detail.tsx +238 -0
  18. package/event/counter_report_detail_list.tsx +56 -0
  19. package/event/counter_request.tsx +136 -0
  20. package/event/counter_request_detail.tsx +211 -0
  21. package/event/counter_section.tsx +32 -0
  22. package/event/counter_send.tsx +277 -0
  23. package/event/counter_status.tsx +32 -0
  24. package/event/counter_type.tsx +23 -0
  25. package/event/counter_user_list.tsx +197 -0
  26. package/event/counter_user_list_item.tsx +143 -0
  27. package/event/coupon.tsx +124 -0
  28. package/event/coupon_claim.tsx +198 -0
  29. package/event/coupon_claim_detail.tsx +175 -0
  30. package/event/coupon_claim_history.tsx +279 -0
  31. package/event/coupon_claim_reimburse.tsx +111 -0
  32. package/event/coupon_claim_reimburse_history.tsx +72 -0
  33. package/event/coupon_claim_reimburse_history_detail.tsx +117 -0
  34. package/event/coupon_claim_staff.tsx +256 -0
  35. package/event/coupon_detail.tsx +98 -0
  36. package/event/coupon_event_list.tsx +77 -0
  37. package/event/coupon_generate.tsx +258 -0
  38. package/event/coupon_generate_event.tsx +79 -0
  39. package/event/coupon_generate_list.tsx +56 -0
  40. package/event/date_picker.tsx +152 -0
  41. package/event/detail.tsx +352 -0
  42. package/event/entrance.tsx +215 -0
  43. package/event/entrance_again.tsx +200 -0
  44. package/event/entrance_failed.tsx +190 -0
  45. package/event/entrance_idcard.tsx +203 -0
  46. package/event/entrance_list.tsx +264 -0
  47. package/event/entrance_list_item.tsx +88 -0
  48. package/event/entrance_log.tsx +130 -0
  49. package/event/entrance_success.tsx +155 -0
  50. package/event/entrance_warning.tsx +91 -0
  51. package/event/exchange_reward.tsx +31 -0
  52. package/event/exchange_reward_result.tsx +137 -0
  53. package/event/exchange_ticket.tsx +234 -0
  54. package/event/exchange_ticket_list.tsx +191 -0
  55. package/event/exchange_ticket_result.tsx +211 -0
  56. package/event/exit.tsx +91 -0
  57. package/event/exit_failed.tsx +135 -0
  58. package/event/exit_list.tsx +118 -0
  59. package/event/exit_log.tsx +131 -0
  60. package/event/exit_success.tsx +143 -0
  61. package/event/exit_temporary.tsx +226 -0
  62. package/event/hall_in.tsx +148 -0
  63. package/event/hall_in_failed.tsx +270 -0
  64. package/event/hall_in_list.tsx +222 -0
  65. package/event/hall_in_log.tsx +134 -0
  66. package/event/hall_in_success.tsx +132 -0
  67. package/event/hall_out.tsx +143 -0
  68. package/event/hall_out_failed.tsx +133 -0
  69. package/event/hall_out_list.tsx +215 -0
  70. package/event/hall_out_log.tsx +133 -0
  71. package/event/hall_out_success.tsx +130 -0
  72. package/event/list.tsx +219 -0
  73. package/event/list_filter.tsx +124 -0
  74. package/event/log.tsx +435 -0
  75. package/event/qc_idcard.tsx +209 -0
  76. package/event/qc_idcard_failed.tsx +78 -0
  77. package/event/qc_idcard_success.tsx +68 -0
  78. package/event/queue_out.tsx +186 -0
  79. package/event/queue_pricing.tsx +152 -0
  80. package/event/randomseat.tsx +33 -0
  81. package/event/review.tsx +117 -0
  82. package/event/review_add.tsx +342 -0
  83. package/event/review_detail.tsx +67 -0
  84. package/event/review_item.tsx +76 -0
  85. package/event/scan_item.tsx +66 -0
  86. package/event/schedule.tsx +135 -0
  87. package/event/seat.tsx +628 -0
  88. package/event/seat_autopick.tsx +120 -0
  89. package/event/seat_map.tsx +408 -0
  90. package/event/seat_map_matrix.tsx +94 -0
  91. package/event/seat_map_test.tsx +401 -0
  92. package/event/ticket_list.tsx +722 -0
  93. package/event/ticket_list2.tsx +680 -0
  94. package/event/timer.tsx +58 -0
  95. package/event/tms.tsx +103 -0
  96. package/event/tms_add.tsx +94 -0
  97. package/event/tms_add_result.tsx +175 -0
  98. package/event/tms_dashboard.tsx +89 -0
  99. package/event/tms_event_list.tsx +66 -0
  100. package/event/turnstile_event_gate.tsx +74 -0
  101. package/event/turnstile_event_item.tsx +41 -0
  102. package/event/turnstile_event_list.tsx +69 -0
  103. package/event/turnstile_event_ticket.tsx +95 -0
  104. package/event/turnstile_settings.tsx +327 -0
  105. package/event/turnstile_settings_otp.tsx +58 -0
  106. package/event/turnstile_settings_status.tsx +50 -0
  107. package/event/voucher.tsx +149 -0
  108. package/event/voucher_multi.tsx +181 -0
  109. package/fonts/Arial.ttf +0 -0
  110. package/fonts/ArialBold.ttf +0 -0
  111. package/fonts/DecoNumbers.ttf +0 -0
  112. package/fonts/MonoSpace.ttf +0 -0
  113. package/fonts/SFProText.ttf +0 -0
  114. package/fonts/digital.ttf +0 -0
  115. package/fonts/mono.ttf +0 -0
  116. package/id.json +1113 -0
  117. package/index.js +2 -0
  118. package/libs.json +1 -0
  119. package/mover.js +0 -0
  120. package/package.json +16 -0
  121. package/publisher.js +84 -0
@@ -0,0 +1,135 @@
1
+ // withHooks
2
+ import { ComponentButton } from 'esoftplay/cache/component/button/import';
3
+ import { ComponentHeader } from 'esoftplay/cache/component/header/import';
4
+ import { ComponentTouchable } from 'esoftplay/cache/component/touchable/import';
5
+ import { LibIcon } from 'esoftplay/cache/lib/icon/import';
6
+ import { LibNavigation } from 'esoftplay/cache/lib/navigation/import';
7
+ import { LibPicture } from 'esoftplay/cache/lib/picture/import';
8
+ import { LibStyle } from 'esoftplay/cache/lib/style/import';
9
+ import { LibVideoProperty } from 'esoftplay/cache/lib/video/import';
10
+ import { LibWebview } from 'esoftplay/cache/lib/webview/import';
11
+ import esp from 'esoftplay/esp';
12
+ import useSafeState from 'esoftplay/state';
13
+
14
+ import React from 'react';
15
+ import { ScrollView, Text, TouchableOpacity, View } from 'react-native';
16
+
17
+
18
+ export interface EventScheduleArgs {
19
+
20
+ }
21
+ export interface EventScheduleProps {
22
+
23
+ }
24
+ export default function m(props: EventScheduleProps): any {
25
+ const { schedule, dataBookingEvent, order_type, tax } = LibNavigation.getArgsAll(props)
26
+ const [qty, setQty] = useSafeState<number>(dataBookingEvent?.qty)
27
+
28
+ function add(quota?: any, quota_used?: any): void {
29
+ if (qty != parseInt(dataBookingEvent?.selected_ticket?.qty_max)) {
30
+ if (qty != (parseInt(quota) - parseInt(quota_used))) {
31
+ setQty(qty + 1)
32
+ }
33
+ }
34
+ }
35
+
36
+ function min(): void {
37
+ if (qty <= dataBookingEvent?.selected_ticket?.qty_min) {
38
+ setQty(Number(dataBookingEvent?.selected_ticket?.qty_min))
39
+ } else {
40
+ setQty(Math.max(1, qty - 1))
41
+ }
42
+ }
43
+
44
+ function doBooking() {
45
+ dataBookingEvent.qty = qty
46
+ if (dataBookingEvent?.selected_ticket?.use_seat == 1) {
47
+ LibNavigation.navigateForResult('event/seat', {
48
+ url: 'event_seat',
49
+ dataTicket: dataBookingEvent,
50
+ }).then((value) => {
51
+ dataBookingEvent.row_id = value.row_id
52
+ dataBookingEvent.column_id = value.column_id
53
+ dataBookingEvent.seat_name = value.seat_name
54
+
55
+ LibNavigation.navigate('payment/ticket', {
56
+ order_type: order_type,
57
+ tax: tax,
58
+ dataBookingEvent: { ...dataBookingEvent, qty: qty },
59
+ })
60
+ })
61
+ } else {
62
+ LibNavigation.navigate('payment/ticket', {
63
+ order_type: order_type,
64
+ tax: tax,
65
+ dataBookingEvent: { ...dataBookingEvent, qty: qty },
66
+ })
67
+ }
68
+ }
69
+
70
+ function renderArtist(_item: any, i: number) {
71
+ const styleId_15Un4S: any = { height: LibStyle.width * 9 / 16, width: LibStyle.width, marginTop: -15, marginLeft: -15, resizeMode: 'cover' }
72
+ return (
73
+ <View key={i} style={styleId_26m88j}>
74
+ {
75
+ _item.image != "" &&
76
+ <LibPicture source={{ uri: _item.image }} style={styleId_15Un4S} />
77
+ }
78
+ <Text allowFontScaling={false} style={styleId_XKKqU}>{_item.name}</Text>
79
+ <ScrollView>
80
+ {
81
+ _item.description != "" &&
82
+ <LibWebview source={{ html: _item.description }} onFinishLoad={() => { }} style={styleId_ZoKh7U} />
83
+ }
84
+ </ScrollView>
85
+ {
86
+ _item?.video != "" &&
87
+ <>
88
+ <Text allowFontScaling={false} style={styleId_Z1RMsb6} >{esp.lang("event/schedule", "text_vide")}</Text>
89
+ <TouchableOpacity onPress={() => LibNavigation.navigate('lib/video', { code: _item.video })} >
90
+ <LibPicture source={{ uri: LibVideoProperty.getUrlThumbnail(_item.video) }} style={styleId_1g6pcd} />
91
+ </TouchableOpacity>
92
+ </>
93
+ }
94
+ </View>
95
+ )
96
+ }
97
+
98
+ let item = dataBookingEvent?.selected_ticket?.list
99
+
100
+ return (
101
+ <View style={{ flex: 1, backgroundColor: '#fff' }}>
102
+ <ComponentHeader title={esp.lang("event/schedule", "header_title")} />
103
+ <ScrollView>
104
+ {
105
+ schedule?.artist.length > 0 && schedule.artist.map(renderArtist)
106
+ }
107
+
108
+
109
+ </ScrollView>
110
+ <View style={{ padding: 10 }} >
111
+ <View style={{ flexDirection: 'row', marginVertical: 10, alignContent: 'center', alignItems: 'center', alignSelf: 'center' }}>
112
+ <ComponentTouchable onPress={() => { min() }}>
113
+ <View style={{ width: 28, height: 28, borderRadius: 6, backgroundColor: "#ecf0f1", alignContent: 'center', alignItems: 'center' }}>
114
+ <LibIcon name="minus" color="#e74c3c" />
115
+ </View>
116
+ </ComponentTouchable>
117
+ <Text style={{ fontFamily: "Arial", fontSize: 20, fontWeight: "bold", fontStyle: "normal", letterSpacing: 0, color: "#9b9b9b", marginLeft: 15, marginRight: 15 }}>{qty}</Text>
118
+ <ComponentTouchable onPress={() => { add(item?.quota, item?.quota_used) }}>
119
+ <View style={{ width: 28, height: 28, borderRadius: 6, backgroundColor: "#ecf0f1", alignContent: 'center', alignItems: 'center' }}>
120
+ <LibIcon name="plus" color="#16a085" />
121
+ </View>
122
+ </ComponentTouchable>
123
+ </View>
124
+ <ComponentButton label={esp.lang("buy/index2", "button_next")} onPress={() => {
125
+ doBooking()
126
+ }} style={{ backgroundColor: LibStyle.colorGreen }} />
127
+ </View>
128
+ </View>
129
+ )
130
+ }
131
+ const styleId_26m88j: any = { margin: 15 }
132
+ const styleId_XKKqU: any = { marginTop: 10, fontFamily: "Arial", fontSize: 16, fontWeight: "bold", fontStyle: "normal", letterSpacing: 0, marginBottom: 7 }
133
+ const styleId_ZoKh7U: any = { marginLeft: -20 }
134
+ const styleId_Z1RMsb6: any = { marginLeft: 0, marginHorizontal: 20, marginTop: 10, fontFamily: "Arial", fontSize: 13, fontWeight: "bold", fontStyle: "normal", lineHeight: 22, letterSpacing: 0, color: "#4a4a4a" }
135
+ const styleId_1g6pcd: any = { height: LibStyle.width * 9 / 16, width: LibStyle.width - 30, marginLeft: 0, marginHorizontal: 20, resizeMode: 'cover' }