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
package/event/list.tsx ADDED
@@ -0,0 +1,219 @@
1
+ // withHooks
2
+ import { applyStyle } from 'esoftplay';
3
+ import { BigbangSchedule_item } from 'esoftplay/cache/bigbang/schedule_item/import';
4
+ import { BigbangSchedule_item2 } from 'esoftplay/cache/bigbang/schedule_item2/import';
5
+ import { ComponentMessage } from 'esoftplay/cache/component/message/import';
6
+ import { ComponentSlidingup } from 'esoftplay/cache/component/slidingup/import';
7
+ import { ComponentTouchable } from 'esoftplay/cache/component/touchable/import';
8
+ import { EventList_filter } from 'esoftplay/cache/event/list_filter/import';
9
+ import { LibIcon } from 'esoftplay/cache/lib/icon/import';
10
+ import { LibInfinite } from 'esoftplay/cache/lib/infinite/import';
11
+ import { LibNavigation } from 'esoftplay/cache/lib/navigation/import';
12
+ import { LibPicture } from 'esoftplay/cache/lib/picture/import';
13
+ import { LibSkeleton } from 'esoftplay/cache/lib/skeleton/import';
14
+ import { LibStatusbar } from 'esoftplay/cache/lib/statusbar/import';
15
+ import { LibStyle } from 'esoftplay/cache/lib/style/import';
16
+ import esp from 'esoftplay/esp';
17
+ import useSafeState from 'esoftplay/state';
18
+
19
+ import moment from 'esoftplay/moment';
20
+ import React, { useRef } from 'react';
21
+ import { Pressable, Text, TextInput, View } from 'react-native';
22
+ import { ScrollView } from 'react-native-gesture-handler';
23
+
24
+
25
+ export interface EventListProps {
26
+
27
+ }
28
+ export interface EventListArgs {
29
+ url?: string,
30
+ cat_id?: string,
31
+ keywords?: string
32
+ }
33
+ export default function m(props: EventListProps): any {
34
+ const { title, url, cat_id, keywords } = LibNavigation.getArgsAll(props)
35
+ const [viewType, setViewType] = useSafeState<number>(1)
36
+ const [location, setLocation] = useSafeState<any>(undefined)
37
+ const [ondate, setOndate] = useSafeState<any>(undefined)
38
+ const [category, setCategory] = useSafeState<any>(cat_id || undefined)
39
+ const [query, setQuery] = useSafeState<string>(keywords || '')
40
+ const inputSearch = useRef<TextInput>(null)
41
+ let keyword = useRef<string>('').current
42
+ let filterDialog = React.useRef<ComponentSlidingup>(null)
43
+
44
+ function buildUrl(url: string) {
45
+ if (query) {
46
+ url += url.includes('?') ? '&' : '?'
47
+ url += 'keyword=' + query
48
+ }
49
+ if (category) {
50
+ url += url.includes('?') ? '&' : '?'
51
+ url += 'cat_id=' + category
52
+ }
53
+ if (location) {
54
+ url += url.includes('?') ? '&' : '?'
55
+ url += 'location_id=' + location.id
56
+ }
57
+ if (ondate) {
58
+ url += url.includes('?') ? '&' : '?'
59
+ url += 'ondate=' + ondate
60
+ }
61
+ return url
62
+ }
63
+
64
+ function renderItem(item: any) {
65
+ return (
66
+ <View>
67
+ {
68
+ viewType == 1 ?
69
+ <View style={{ width: LibStyle.width }} >
70
+ <BigbangSchedule_item2 {...item} onPress={() => LibNavigation.navigate('event/detail', { url: item.url })} />
71
+ </View>
72
+ :
73
+ <BigbangSchedule_item {...item} style={{ width: (LibStyle.width * 0.5) - 32, marginRight: 0, marginHorizontal: 20, marginVertical: 10 }} onPress={() => LibNavigation.navigate('event/detail', { url: item.url })} />
74
+ }
75
+ </View>
76
+ )
77
+ }
78
+
79
+ return (
80
+ <View style={{ flex: 1 }} >
81
+ <LibStatusbar style="dark" />
82
+ <View style={[{ flexDirection: 'row', backgroundColor: 'white', padding: 15, paddingVertical: 10, alignItems: 'center', paddingTop: LibStyle.STATUSBAR_HEIGHT + 17 }, LibStyle.elevation(2)]} >
83
+ <Pressable hitSlop={{ top: 4, bottom: 4, left: 4, right: 4 }} onPress={() => LibNavigation.back()} >
84
+ <LibPicture style={{ height: 27, width: 27 }} source={esp.assets('icons/ic_header_back.png')} />
85
+ </Pressable>
86
+ <View style={{ marginLeft: 15, borderRadius: 20, flexDirection: 'row', padding: 5, alignItems: 'center', backgroundColor: "#ffffff", borderStyle: "solid", borderWidth: 0.5, borderColor: "#c5c5c5", flex: 1, marginHorizontal: 12 }} >
87
+ <LibPicture style={{ height: 15, width: 15, marginLeft: 6, marginRight: 6 }} source={esp.assets('icons/ic_search.png')} />
88
+ <TextInput
89
+ ref={inputSearch}
90
+ style={{ fontFamily: "ArialBold", fontSize: 12, color: "#9e9e9e", flex: 1 }}
91
+ placeholder={esp.lang("event/list", "find_event")}
92
+ defaultValue={query}
93
+ onChangeText={(t) => { keyword = t }}
94
+ returnKeyType={'search'}
95
+ returnKeyLabel={'Search'}
96
+ placeholderTextColor={'#e5e5e5'}
97
+ onSubmitEditing={() => setQuery(keyword)}
98
+ />
99
+ {
100
+ query != '' &&
101
+ <Pressable onPress={() => {
102
+ inputSearch.current?.setNativeProps({ text: '' })
103
+ setQuery('')
104
+ }} style={{ marginRight: 6 }} >
105
+ <LibIcon name='close' />
106
+ </Pressable>
107
+ }
108
+ </View>
109
+ </View>
110
+ <View style={{ flexDirection: 'row', alignItems: 'center', marginTop: 3 }} >
111
+ <ScrollView horizontal showsHorizontalScrollIndicator={false} >
112
+ <ComponentTouchable onPress={() => filterDialog.current?.show()} >
113
+ <View style={{ marginLeft: 17, flexDirection: 'row', alignItems: 'center', paddingHorizontal: 12, paddingVertical: 5, borderWidth: 1, borderColor: '#c5c5c5', borderRadius: 8 }} >
114
+ <Text allowFontScaling={false} style={{ fontFamily: "ArialBold", marginRight: 5, fontSize: 12, fontStyle: "normal", letterSpacing: 0, color: "#f39c12" }} >{esp.lang("event/list", "text_filter")}</Text>
115
+ <LibIcon name={'chevron-down'} size={18} color={'#9b9b9b'} />
116
+ </View>
117
+ </ComponentTouchable>
118
+ {
119
+ ondate &&
120
+ <ComponentTouchable onPress={() => { setOndate(undefined) }} >
121
+ <View style={{ marginLeft: 10, flexDirection: 'row', alignItems: 'center', paddingHorizontal: 12, paddingVertical: 5, borderWidth: 1, borderColor: '#c5c5c5', borderRadius: 8 }} >
122
+ <Text allowFontScaling={false} style={{ fontFamily: "Arial", marginRight: 5, fontSize: 12, fontStyle: "normal", letterSpacing: 0, color: "#f39c12" }} >{moment(ondate).localeFormat('DD MMMM YYYY')}</Text>
123
+ <LibIcon name={'close'} size={18} color={'#9b9b9b'} />
124
+ </View>
125
+ </ComponentTouchable>
126
+ }
127
+ {
128
+ location &&
129
+ <ComponentTouchable onPress={() => { setLocation(undefined) }} >
130
+ <View style={{ marginLeft: 10, flexDirection: 'row', alignItems: 'center', paddingHorizontal: 12, paddingVertical: 5, borderWidth: 1, borderColor: '#c5c5c5', borderRadius: 8 }} >
131
+ <Text allowFontScaling={false} style={{ fontFamily: "Arial", marginRight: 5, fontSize: 12, fontStyle: "normal", letterSpacing: 0, color: "#f39c12" }} >{location?.detail}</Text>
132
+ <LibIcon name={'close'} size={18} color={'#9b9b9b'} />
133
+ </View>
134
+ </ComponentTouchable>
135
+ }
136
+ </ScrollView>
137
+ <View style={{ flex: 1 }} />
138
+ <ComponentTouchable onPress={() => setViewType(viewType == 1 ? 2 : 1)} >
139
+ <LibPicture source={esp.assets(viewType == 2 ? 'icons/ic_product_list.png' : 'icons/ic_event_grid.png')} style={{ marginRight: 20, marginLeft: 10, width: 19, height: 19, resizeMode: 'contain', marginVertical: 16 }} />
140
+ </ComponentTouchable>
141
+ </View>
142
+ <LibInfinite
143
+ url={buildUrl(url)}
144
+ key={buildUrl(url) + viewType.toString()}
145
+ errorView={(err: any) => (
146
+ <ComponentMessage message={err} />
147
+ )}
148
+ numColumns={viewType == 1 ? 1 : 2}
149
+ renderItem={renderItem}
150
+ LoadingView={
151
+ <LibSkeleton backgroundStyle={{ height: LibStyle.height }}>
152
+ {
153
+ viewType == 1 ?
154
+ <>
155
+ {
156
+ new Array(7).fill('').map((x: any, i: number) => (
157
+ <View key={i} style={applyStyle({ flexDirection: 'row', borderWidth: 1, borderRadius: 10, marginVertical: 10, marginHorizontal: 20, ...LibStyle.elevation(2) })} >
158
+ <View style={applyStyle({ width: 154, height: 140, borderBottomLeftRadius: 10, borderTopLeftRadius: 10, overflow: 'hidden' })} >
159
+ <View style={applyStyle({ height: 140, width: 154, backgroundColor: 'white' })} />
160
+ </View>
161
+ <View style={applyStyle({ flex: 1, padding: 12 })} >
162
+ <View style={{ width: '70%', height: 10, borderRadius: 10, backgroundColor: 'white' }} />
163
+ <View style={applyStyle({ flexDirection: 'row', alignItems: 'center', marginTop: 6, marginBottom: 5 })} >
164
+ <LibIcon name="calendar" color={LibStyle.colorGreen} size={10} />
165
+ <View style={{ width: '60%', height: 10, borderRadius: 10, backgroundColor: 'white' }} />
166
+ </View>
167
+ <View style={{ width: '50%', height: 10, borderRadius: 10, backgroundColor: 'white', marginTop: 6 }} />
168
+ <View style={{ width: '100%', height: 10, borderRadius: 10, backgroundColor: 'white', marginTop: 10 }} />
169
+ <View style={{ width: '100%', height: 10, borderRadius: 10, backgroundColor: 'white', marginTop: 5 }} />
170
+ <View style={{ width: '100%', height: 10, borderRadius: 10, backgroundColor: 'white', marginTop: 5 }} />
171
+ </View>
172
+ </View>
173
+ ))
174
+ }
175
+ </>
176
+ :
177
+ <View style={{ flexDirection: 'row', alignItems: 'center', flexWrap: 'wrap' }}>
178
+ {
179
+ new Array(8).fill('').map((x: any, i: number) => (
180
+ <View style={{ width: (LibStyle.width * 0.5) - 32, borderRadius: 10, marginRight: 0, marginHorizontal: 20, marginVertical: 10, borderWidth: 1 }} >
181
+ <View style={applyStyle({ borderTopLeftRadius: 10, borderTopRightRadius: 10, overflow: 'hidden' })} >
182
+ <View style={applyStyle({ height: 100, width: '100%', backgroundColor: 'white' })} />
183
+ </View>
184
+ <View style={{ width: '60%', height: 10, borderRadius: 10, backgroundColor: 'white', marginTop: 6, marginHorizontal: 8 }} />
185
+ <View style={applyStyle({ flexDirection: 'row', alignItems: 'center', marginTop: 6, paddingHorizontal: 8 })} >
186
+ <LibIcon name="calendar" color={LibStyle.colorGreen} size={10} />
187
+ <View style={{ width: '50%', height: 10, borderRadius: 10, backgroundColor: 'white', marginLeft: 5 }} />
188
+ </View>
189
+ <View style={applyStyle({ flexDirection: 'row', alignItems: 'center', marginTop: 6, paddingHorizontal: 8, paddingBottom: 10 })} >
190
+ <View style={{ width: '50%', height: 10, borderRadius: 10, backgroundColor: 'white' }} />
191
+ </View>
192
+ <View style={applyStyle({ position: 'absolute', top: 12, right: 0, height: 17, borderTopLeftRadius: 10, paddingHorizontal: 5, alignItems: 'center', justifyContent: 'center', borderBottomLeftRadius: 10, backgroundColor: "rgba(0, 0, 0, 0.9)" })} >
193
+ <View style={{ width: '50%', height: 10, borderRadius: 10, backgroundColor: 'white' }} />
194
+ </View>
195
+ </View>
196
+ ))
197
+ }
198
+ </View>
199
+
200
+ }
201
+ </LibSkeleton>
202
+ }
203
+ />
204
+ <ComponentSlidingup ref={filterDialog} >
205
+ <EventList_filter
206
+ onFilterChange={(loc: any, ondt: string, cat: any) => {
207
+ setLocation(loc)
208
+ setOndate(ondt)
209
+ setCategory(cat)
210
+ }}
211
+ onDismiss={() => { filterDialog?.current?.hide() }}
212
+ ondate={ondate}
213
+ category={category}
214
+ location={location}
215
+ />
216
+ </ComponentSlidingup>
217
+ </View>
218
+ )
219
+ }
@@ -0,0 +1,124 @@
1
+ // withHooks
2
+ // noPage
3
+ import { ComponentTouchable } from 'esoftplay/cache/component/touchable/import';
4
+ import { LibCurl } from 'esoftplay/cache/lib/curl/import';
5
+ import { LibIcon } from 'esoftplay/cache/lib/icon/import';
6
+ import { LibNavigation } from 'esoftplay/cache/lib/navigation/import';
7
+ import { LibStyle } from 'esoftplay/cache/lib/style/import';
8
+ import { LibTextstyle } from 'esoftplay/cache/lib/textstyle/import';
9
+ import { MarketExpander } from 'esoftplay/cache/market/expander/import';
10
+ import esp from 'esoftplay/esp';
11
+ import useSafeState from 'esoftplay/state';
12
+
13
+ import moment from 'esoftplay/moment';
14
+ import React, { useEffect } from 'react';
15
+ import { Pressable, Text, View } from 'react-native';
16
+ import { ScrollView } from 'react-native-gesture-handler';
17
+
18
+ export interface EventList_filterProps {
19
+ onDismiss: () => void,
20
+ onFilterChange: (location: any, ondate: any, category: any) => void,
21
+ location: any,
22
+ ondate: string,
23
+ category: string
24
+ }
25
+ moment().locale('id')
26
+
27
+ export default function m(props: EventList_filterProps): any {
28
+ const [loc, setLoc] = useSafeState<any>(props.location)
29
+ const [ondate, setOndate] = useSafeState<any>(props.ondate)
30
+ const [allCat, setAllCat] = useSafeState<any>()
31
+ const [catId, setCatId] = useSafeState(props.category || '')
32
+
33
+ useEffect(() => {
34
+ new LibCurl('event_category', null,
35
+ (res, msg) => {
36
+ setAllCat(res)
37
+ }, (msg) => {
38
+
39
+ }, 1)
40
+ }, [])
41
+
42
+ function reset(): void {
43
+ setLoc(undefined)
44
+ setOndate(undefined)
45
+ setCatId('')
46
+ props.onFilterChange(undefined, undefined, undefined)
47
+ props.onDismiss()
48
+ }
49
+
50
+ function sendBack(): void {
51
+ props.onFilterChange(loc, ondate, catId)
52
+ props.onDismiss()
53
+ }
54
+
55
+ function renderAllCategory(item: any, i: number) {
56
+ const styleId_Z1WaMUx: any = { backgroundColor: item.id == catId ? '#f39c12' : '#f1f2f3', paddingHorizontal: 20, paddingVertical: 6, margin: 2.5, borderRadius: 4 }
57
+ const styleId_Z15cyGt: any = { color: item.id == catId ? 'white' : "#000" }
58
+ return (
59
+ <Pressable key={i}
60
+ onPress={() => { setCatId(item.id) }}
61
+ style={styleId_Z1WaMUx} >
62
+ <LibTextstyle text={(item?.title)} textStyle="footnote" style={styleId_Z15cyGt} />
63
+ </Pressable>
64
+ )
65
+ }
66
+
67
+ return (
68
+ <View style={{ backgroundColor: 'white', borderTopRightRadius: 20, borderTopLeftRadius: 20, paddingTop: 23, paddingBottom: 17, paddingHorizontal: 19, maxHeight: LibStyle.height * 0.5 }} >
69
+ <Text allowFontScaling={false} style={{ fontFamily: "Arial", fontSize: 16, fontWeight: "bold", fontStyle: "normal", lineHeight: 22, letterSpacing: 0, color: "#34495e", marginBottom: 20 }} >{esp.lang("event/list_filter", "text_filter")}</Text>
70
+ <ScrollView>
71
+ <ComponentTouchable onPress={() => LibNavigation.navigateForResult('user/location').then((location) => { setLoc(location) })} >
72
+ <View style={{ flexDirection: 'row', marginBottom: 20, alignItems: 'center' }} >
73
+ <View style={{ flex: 1 }} >
74
+ <Text allowFontScaling={false} style={{ fontFamily: "Arial", fontSize: 13, fontWeight: "bold", fontStyle: "normal", letterSpacing: 0, color: "#00b894" }} >{esp.lang("event/list_filter", "event_location")}</Text>
75
+ <Text allowFontScaling={false} style={{ fontFamily: "Arial", fontSize: 11, fontWeight: "normal", fontStyle: "normal", letterSpacing: 0, color: "#9b9b9b", marginTop: 3 }} >{loc && loc.detail || esp.lang("event/list_filter", "text_all_location")}</Text>
76
+ </View>
77
+ <LibIcon name={'chevron-right'} size={20} color={'#9b9b9b'} />
78
+ </View>
79
+ </ComponentTouchable>
80
+ <ComponentTouchable onPress={() => {
81
+ LibNavigation.navigateForResult('event/date_picker', { ranged: 'notranged', minDate: new Date(), maxDate: moment().add(5, 'years').localeFormat('YYYY-MM-DD') }).then((item) => {
82
+ setOndate(item?.date_start)
83
+ })
84
+ }}>
85
+ <View style={{ flexDirection: 'row', marginBottom: 20, alignItems: 'center' }} >
86
+ <View style={{ flex: 1 }} >
87
+ <Text allowFontScaling={false} style={{ fontFamily: "Arial", fontSize: 13, fontWeight: "bold", fontStyle: "normal", letterSpacing: 0, color: "#00b894" }} >{esp.lang("event/list_filter", "date")}</Text>
88
+ <Text allowFontScaling={false} style={{ fontFamily: "Arial", fontSize: 11, fontWeight: "normal", fontStyle: "normal", letterSpacing: 0, color: "#9b9b9b", marginTop: 3 }} >{ondate && moment(ondate).localeFormat('DD MMMM YYYY') || esp.lang("event/list_filter", "all_date")}</Text>
89
+ </View>
90
+ <LibIcon name={'chevron-right'} size={20} color={'#9b9b9b'} />
91
+ </View>
92
+ </ComponentTouchable>
93
+ {
94
+ allCat &&
95
+ <View style={{ marginBottom: 20 }} >
96
+ <Text allowFontScaling={false} style={{ fontFamily: "Arial", fontSize: 13, fontWeight: "bold", fontStyle: "normal", letterSpacing: 0, color: "#00b894" }} >{esp.lang("event/list_filter", "event_category")}</Text>
97
+ <MarketExpander >
98
+ <View style={styleId_26qIWp} >
99
+ <Pressable
100
+ onPress={() => { setCatId('') }}
101
+ style={{ backgroundColor: catId == '' ? '#f39c12' : '#f1f2f3', paddingHorizontal: 20, paddingVertical: 6, margin: 2.5, borderRadius: 4 }} >
102
+ <LibTextstyle text={esp.lang("event/list_filter", "text_all")} textStyle="footnote" style={{ color: catId == '' ? 'white' : "#000" }} />
103
+ </Pressable>
104
+ {
105
+ allCat?.map?.(renderAllCategory)
106
+ }
107
+ </View>
108
+ </MarketExpander>
109
+ </View>
110
+ }
111
+ </ScrollView>
112
+ <View style={{ flexDirection: 'row', marginTop: 30 }} >
113
+ <ComponentTouchable style={{ height: 35, flex: 1, alignItems: 'center', justifyContent: 'center', flexDirection: 'row' }} onPress={reset} >
114
+ <Text allowFontScaling={false} style={{ fontFamily: "Arial", fontSize: 13, fontWeight: "bold", fontStyle: "normal", letterSpacing: 0, textAlign: "center", color: LibStyle.colorRed }} >{esp.lang("event/list_filter", "clear_filter")}</Text>
115
+ </ComponentTouchable>
116
+ <View style={{ width: 20 }} />
117
+ <ComponentTouchable style={{ height: 35, flex: 1, borderRadius: 17.5, backgroundColor: '#f39c12', alignItems: 'center', justifyContent: 'center', flexDirection: 'row' }} onPress={sendBack} >
118
+ <Text allowFontScaling={false} style={{ fontFamily: "Arial", fontSize: 13, fontWeight: "bold", fontStyle: "normal", letterSpacing: 0, textAlign: "center", color: "#ffffff" }} >{esp.lang("event/list_filter", "apply")}</Text>
119
+ </ComponentTouchable>
120
+ </View>
121
+ </View>
122
+ )
123
+ }
124
+ const styleId_26qIWp: any = { flexDirection: 'row', flexWrap: "wrap", marginTop: 10 }