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
@@ -1,8 +1,8 @@
1
1
  // withHooks
2
2
  import { useEffect } from 'react';
3
3
 
4
- import { ComponentButton } from 'esoftplay/cache/component/button/import';
5
- import { ComponentHeader } from 'esoftplay/cache/component/header/import';
4
+ import { EventButton } from 'esoftplay/cache/event/button/import';
5
+ import { EventHeader } from 'esoftplay/cache/event/header/import';
6
6
  import { LibCurl } from 'esoftplay/cache/lib/curl/import';
7
7
  import { LibIcon } from 'esoftplay/cache/lib/icon/import';
8
8
  import { LibLoading } from 'esoftplay/cache/lib/loading/import';
@@ -121,7 +121,7 @@ export default function m(props: EventAdditionalProps): any {
121
121
 
122
122
  return (
123
123
  <View style={{ flex: 1, backgroundColor: LibStyle.colorBgGrey }}>
124
- <ComponentHeader title={esp.lang("event/additional", "header_title")} subtitle={ondate && ondate != "0000-00-00" ? type_ticket + " " + LibUtils.moment(ondate).format("DD MMM YYYY") : type_ticket} />
124
+ <EventHeader title={esp.lang("event/additional", "header_title")} subtitle={ondate && ondate != "0000-00-00" ? type_ticket + " " + LibUtils.moment(ondate).format("DD MMM YYYY") : type_ticket} />
125
125
  <ScrollView>
126
126
  <View style={{ margin: 15, marginBottom: 5, marginTop: 10, padding: 10, borderWidth: 1, borderColor: '#fff', borderRadius: 5, backgroundColor: '#fff', ...LibStyle.elevation(2) }}>
127
127
  <LibTextstyle textStyle='m_overline' text={esp.lang("event/additional", "buyer_info")} style={{ color: "#aaa", fontSize: 12, marginBottom: 5 }} />
@@ -141,7 +141,7 @@ export default function m(props: EventAdditionalProps): any {
141
141
 
142
142
  </ScrollView>
143
143
  <View style={{ padding: 10 }}>
144
- <ComponentButton
144
+ <EventButton
145
145
  label={esp.lang("event/additional", "btn_next")}
146
146
  backgroundColor={LibStyle.colorPrimary}
147
147
  onPress={() => {
@@ -1,16 +1,16 @@
1
1
  // withHooks
2
2
  import { useEffect, useRef } from 'react';
3
3
 
4
- import { ComponentButton } from 'esoftplay/cache/component/button/import';
5
- import { ComponentHeader } from 'esoftplay/cache/component/header/import';
6
- import { ComponentSlidingup } from 'esoftplay/cache/component/slidingup/import';
4
+ import { EventButton } from 'esoftplay/cache/event/button/import';
5
+ import { EventHeader } from 'esoftplay/cache/event/header/import';
6
+ import { EventInput_rectangle } from 'esoftplay/cache/event/input_rectangle/import';
7
7
  import { LibCollaps } from 'esoftplay/cache/lib/collaps/import';
8
8
  import { LibDatepicker } from 'esoftplay/cache/lib/datepicker/import';
9
9
  import { LibIcon } from 'esoftplay/cache/lib/icon/import';
10
- import { LibInput_rectangle } from 'esoftplay/cache/lib/input_rectangle/import';
11
10
  import { LibKeyboard_avoid } from 'esoftplay/cache/lib/keyboard_avoid/import';
12
11
  import { LibNavigation } from 'esoftplay/cache/lib/navigation/import';
13
12
  import { LibObject } from 'esoftplay/cache/lib/object/import';
13
+ import { LibSlidingup } from 'esoftplay/cache/lib/slidingup/import';
14
14
  import { LibStyle } from 'esoftplay/cache/lib/style/import';
15
15
  import { LibTextstyle } from 'esoftplay/cache/lib/textstyle/import';
16
16
  import { LibToastProperty } from 'esoftplay/cache/lib/toast/import';
@@ -58,8 +58,8 @@ export function state(): useGlobalReturn<any> {
58
58
 
59
59
  export default function m(props: EventAdditional_inputProps): any {
60
60
  const { data, itemAddition } = LibNavigation.getArgsAll(props)
61
- const dialogDatePicker = useRef<ComponentSlidingup>(null)
62
- const dialogDropdown = useRef<ComponentSlidingup>(null)
61
+ const dialogDatePicker = useRef<LibSlidingup>(null)
62
+ const dialogDropdown = useRef<LibSlidingup>(null)
63
63
  const [dropdownData, setDropdownData] = useSafeState()
64
64
 
65
65
  const [newData, setNewData] = useSafeState()
@@ -108,7 +108,7 @@ export default function m(props: EventAdditional_inputProps): any {
108
108
  <View style={{ marginHorizontal: 10 }}>
109
109
  {
110
110
  item.type == 1 && // text field
111
- <LibInput_rectangle
111
+ <EventInput_rectangle
112
112
  placeholder={item.question}
113
113
  placeholderTextColor='#c9c9c9'
114
114
  style={{ borderRadius: 5, borderColor: '#c9c9c9' }}
@@ -124,7 +124,7 @@ export default function m(props: EventAdditional_inputProps): any {
124
124
 
125
125
  {
126
126
  item.type == 2 && // textarea
127
- <LibInput_rectangle
127
+ <EventInput_rectangle
128
128
  multiline={true}
129
129
  placeholder={item.question}
130
130
  placeholderTextColor='#c9c9c9'
@@ -223,7 +223,7 @@ export default function m(props: EventAdditional_inputProps): any {
223
223
 
224
224
  {
225
225
  item.is_content == 1 &&
226
- <LibInput_rectangle
226
+ <EventInput_rectangle
227
227
  placeholder={esp.lang("event/additional_input", "other")}
228
228
  placeholderTextColor='#c9c9c9'
229
229
  style={{ borderRadius: 5, borderColor: '#c9c9c9' }}
@@ -251,21 +251,21 @@ export default function m(props: EventAdditional_inputProps): any {
251
251
 
252
252
  return (
253
253
  <View style={{ flex: 1, backgroundColor: LibStyle.colorBgGrey }}>
254
- <ComponentHeader title={esp.lang("event/additional_input", "header_title")} />
254
+ <EventHeader title={esp.lang("event/additional_input", "header_title")} />
255
255
  <LibKeyboard_avoid>
256
256
  <ScrollView>
257
257
  {data?.additions?.length > 0 && data?.additions?.map(renderCatNew)}
258
258
 
259
259
  </ScrollView>
260
260
  <View style={{ padding: 10 }} >
261
- <ComponentButton
261
+ <EventButton
262
262
  label={esp.lang("event/additional_input", "btn_save")}
263
263
  backgroundColor={LibStyle.colorPrimary}
264
264
  onPress={save}
265
265
  />
266
266
  </View>
267
267
 
268
- <ComponentSlidingup ref={dialogDatePicker}>
268
+ <LibSlidingup ref={dialogDatePicker}>
269
269
  <View style={{ backgroundColor: 'white', paddingBottom: 25, height: 230 }}>
270
270
  <LibDatepicker
271
271
  minDate={LibUtils.moment().add(-90, 'years').localeFormat('YYYY-MM-DD')}
@@ -279,9 +279,9 @@ export default function m(props: EventAdditional_inputProps): any {
279
279
  selectedDate={newData?.additions?.[getIdx()]?.value?.[0] || LibUtils.moment().localeFormat('YYYY-MM-DD')}
280
280
  />
281
281
  </View>
282
- </ComponentSlidingup>
282
+ </LibSlidingup>
283
283
 
284
- <ComponentSlidingup ref={dialogDropdown} >
284
+ <LibSlidingup ref={dialogDropdown} >
285
285
  <View style={{ width: 40, height: 3, borderRadius: 5, backgroundColor: "#fff", alignSelf: 'center', marginBottom: 10 }} />
286
286
  <View style={{ maxHeight: LibStyle.height - (LibStyle.height / 5), backgroundColor: 'white', borderTopLeftRadius: 15, paddingHorizontal: 25, borderTopRightRadius: 15, padding: 10 }} >
287
287
  <Pressable style={{ marginTop: 10, alignSelf: 'flex-end' }} onPress={() => dialogDropdown.current?.hide()}>
@@ -309,7 +309,7 @@ export default function m(props: EventAdditional_inputProps): any {
309
309
  </ScrollView>
310
310
 
311
311
  </View>
312
- </ComponentSlidingup>
312
+ </LibSlidingup>
313
313
  </LibKeyboard_avoid>
314
314
  </View>
315
315
  )
@@ -0,0 +1,32 @@
1
+ // withHooks
2
+
3
+ import { LibIcon } from 'esoftplay/cache/lib/icon/import';
4
+ import { LibUtils } from 'esoftplay/cache/lib/utils/import';
5
+ import React from 'react';
6
+ import { Text, View } from 'react-native';
7
+
8
+
9
+ export interface EventAlertArgs {
10
+
11
+ }
12
+ export interface EventAlertProps {
13
+ color: string
14
+ useIcon?: boolean
15
+ iconName?: string
16
+ msg: string
17
+ style?: any
18
+ }
19
+ export default function m(props: EventAlertProps): any {
20
+ return (
21
+ <View style={[{ margin: 10, backgroundColor: LibUtils.hexToRgba(props.color, 0.1) }, props.style]}>
22
+ <View style={{ height: 3, backgroundColor: props.color }} />
23
+ <View style={{ padding: 10, marginRight: 10, flexDirection: 'row', alignContent: 'center', alignItems: 'center' }}>
24
+ {
25
+ props.useIcon &&
26
+ <LibIcon name={props.iconName || 'information-outline'} size={18} />
27
+ }
28
+ <Text allowFontScaling={false} style={{ marginHorizontal: 10, fontSize: 12, lineHeight: 14, letterSpacing: 0.5, textAlign: 'justify' }}>{props.msg}</Text>
29
+ </View>
30
+ </View>
31
+ )
32
+ }
@@ -0,0 +1,166 @@
1
+ // withHooks
2
+
3
+ import { applyStyle } from 'esoftplay';
4
+ import { EventCountdownProperty } from 'esoftplay/cache/event/countdown/import';
5
+ import { EventFirebase_socketProperty } from 'esoftplay/cache/event/firebase_socket/import';
6
+ import { EventHeader } from 'esoftplay/cache/event/header/import';
7
+ import { EventMessage } from 'esoftplay/cache/event/message/import';
8
+ import { LibCurl } from 'esoftplay/cache/lib/curl/import';
9
+ import { LibList } from 'esoftplay/cache/lib/list/import';
10
+ import { LibLoading } from 'esoftplay/cache/lib/loading/import';
11
+ import { LibNavigation } from 'esoftplay/cache/lib/navigation/import';
12
+ import { LibPicture } from 'esoftplay/cache/lib/picture/import';
13
+ import { LibStyle } from 'esoftplay/cache/lib/style/import';
14
+ import { LibToastProperty } from 'esoftplay/cache/lib/toast/import';
15
+ import { LibUtils } from 'esoftplay/cache/lib/utils/import';
16
+ import { UserProfileProperty } from 'esoftplay/cache/user/profile/import';
17
+ import esp from 'esoftplay/esp';
18
+ import moment from 'esoftplay/moment';
19
+ import useSafeState from 'esoftplay/state';
20
+ import React, { useEffect } from 'react';
21
+ import { Text, TouchableOpacity, View } from 'react-native';
22
+ import useFirebaseSocket from '../lib/firebase_socket';
23
+
24
+
25
+ moment().locale('id')
26
+
27
+
28
+ export interface BigbangArtistProps {
29
+
30
+ }
31
+
32
+ export default function m(props: BigbangArtistProps): any {
33
+ const [result, setResult] = useSafeState<any>()
34
+ const [resultEvent, setResultEvent] = useSafeState<any>()
35
+ const [error, setError] = useSafeState<any>('')
36
+ const { isInPricingQueueConfig } = useFirebaseSocket()
37
+
38
+ const { title, has_addition } = LibNavigation.getArgsAll(props)
39
+ const url = LibNavigation.getArgs(props, 'url', 'event_artist')
40
+ const regex = /(\d+)$/;
41
+ const match = url.match(regex);
42
+ const [event_id] = useSafeState(match?.[1])
43
+
44
+ function loadData(): void {
45
+ /* get detail event untuk dapat config antrian */
46
+ new LibCurl(url, null,
47
+ (res) => {
48
+ new LibCurl(res?.[0]?.url_event || `event_detail/${event_id}`, null, (res) => {
49
+ setResultEvent(res)
50
+ if (res?.id) {
51
+ EventFirebase_socketProperty.eventIdQueue.set(res?.id)
52
+ }
53
+ if (res.allotment) {
54
+ esp.modProp("lib/firebase_socket").userIdKeyReplacer.set({
55
+ t: Number(res.allotment.t),
56
+ s: Number(res.allotment.s),
57
+ priority: 1
58
+ })
59
+ }
60
+ }, (err) => {
61
+
62
+ }, 0)
63
+ setResult(res)
64
+ }, (err) => {
65
+ setError(err?.message)
66
+ })
67
+ }
68
+
69
+ useEffect(() => {
70
+ loadData?.()
71
+ }, [])
72
+
73
+ const itemWidth = (LibStyle.width - 2)
74
+ const itemHeight = itemWidth * 9 / 16
75
+
76
+ let subs = {
77
+ is_subscribed: resultEvent?.config?.is_subscribed,
78
+ is_subscribed_default: resultEvent?.config?.is_subscribed_default,
79
+ is_subscribed_label: resultEvent?.config?.is_subscribed_label
80
+ }
81
+
82
+ function renderItem(item: any, index: number) {
83
+ const styleId_Z2g4Hs7: any = { backgroundColor: '#FFC523', width: itemWidth, height: itemHeight, margin: 0.5, justifyContent: 'center', alignItems: 'center' }
84
+ let isNotAvailable = item?.price_list?.every((v: any) => v.status == 0)
85
+
86
+
87
+ return (
88
+ <TouchableOpacity key={index} onPress={() => {
89
+ if (isNotAvailable) {
90
+ LibToastProperty.show(esp.lang("event/artist", "ticket_not_available"))
91
+ } else {
92
+ UserProfileProperty.isLogin(() => {
93
+ let newItem = {
94
+ has_addition: has_addition,
95
+ ...item,
96
+ }
97
+ if (item.book_available == 1) {
98
+ if (isInPricingQueueConfig(result.id)) {
99
+ LibNavigation.navigateForResult('event/queue_pricing', { event_id: event_id, autoPass: false }).then((v) => {
100
+ EventCountdownProperty.countdownTime.set(moment().add(EventFirebase_socketProperty.eventQueueConfig.get(event_id).time, 'seconds').localeFormat('YYYY-MM-DD HH:mm:ss'))
101
+ if (item?.config?.hasOwnProperty('multiprice') && item?.config?.multiprice == 1) {
102
+ LibNavigation.navigate('event/artist_detail_multi', {
103
+ data: newItem,
104
+ subscribed: subs
105
+ })
106
+ } else {
107
+ LibNavigation.navigate('event/artist_detail', {
108
+ data: newItem,
109
+ subscribed: subs
110
+ })
111
+ }
112
+ })
113
+ } else {
114
+ if (item?.config?.hasOwnProperty('multiprice') && item?.config?.multiprice == 1) {
115
+ LibNavigation.navigate('event/artist_detail_multi', {
116
+ data: newItem,
117
+ subscribed: subs
118
+ })
119
+ } else {
120
+ LibNavigation.navigate('event/artist_detail', {
121
+ data: newItem,
122
+ subscribed: subs
123
+ })
124
+ }
125
+ }
126
+ } else {
127
+ LibToastProperty.show(esp.lang("event/artist_detail", "book_available", moment(item?.start_booking).serverFormat("DD MMMM YYYY HH:mm:ss")))
128
+ }
129
+ })
130
+ }
131
+ }} >
132
+ {
133
+ item && item.image != "" ?
134
+ <LibPicture style={applyStyle({ opacity: isNotAvailable ? 0.3 : 1, backgroundColor: '#f2f3f4', width: itemWidth, height: itemHeight, margin: 0.5 })} source={{ uri: item.image }} />
135
+ :
136
+ <View style={styleId_Z2g4Hs7}>
137
+ <Text numberOfLines={2} style={styleId_2cYE4h}>{item.title}</Text>
138
+ </View>
139
+ }
140
+ </TouchableOpacity >
141
+ )
142
+ }
143
+
144
+ return (
145
+ <View style={{ flex: 1, backgroundColor: 'white' }} >
146
+ <EventHeader title={title ? title : resultEvent?.event_title} iconShare={resultEvent?.url_share_artist && resultEvent?.url_share_artist !== ""}
147
+ onPressShare={() => {
148
+ LibUtils.share(resultEvent?.url_share_artist)
149
+ }} />
150
+ {
151
+ !result && !error ? <LibLoading /> :
152
+ <LibList
153
+ data={result}
154
+ keyExtractor={(item) => item.id}
155
+ onRefresh={loadData}
156
+ staticHeight={itemHeight + 1}
157
+ renderItem={renderItem}
158
+ ListEmptyComponent={
159
+ <EventMessage message={error} />
160
+ }
161
+ />
162
+ }
163
+ </View>
164
+ )
165
+ }
166
+ const styleId_2cYE4h: any = { padding: 15, color: 'white', fontSize: 24 }