esoftplay-event 0.0.1-j → 0.0.1-l

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.
@@ -135,13 +135,11 @@ export default function m(props: EventArtist_detailProps): any {
135
135
  subscribed: subscribed
136
136
  })
137
137
  } else {
138
- LibNavigation.navigateForResult('event/seat', {
138
+ LibNavigation.navigateForResult('event/seat_map_new', {
139
139
  url: 'event_seat',
140
140
  dataTicket: dataPost,
141
141
  }).then((value) => {
142
- dataPost.row_id = value.row_id
143
- dataPost.column_id = value.column_id
144
- dataPost.seat_name = value.seat_name
142
+ dataPost.seat_label = value.seat_label
145
143
 
146
144
  if (data?.has_addition && data?.has_addition == 1) {
147
145
  LibNavigation.navigateForResult('event/additional', { type_ticket: selectedTicket?.type, ondate: selectedTicket?.list?.ondate, event_id: data?.event_id, qty: qty, data: dataPost }, 221).then((additions) => {
@@ -32,7 +32,7 @@ export default function m(props: EventArtist_detailv2Props): any {
32
32
  }, (err) => {
33
33
  LibToastProperty.show(err?.message)
34
34
  LibNavigation.back()
35
- })
35
+ }, 1)
36
36
  }
37
37
 
38
38
  return (
@@ -4,6 +4,7 @@ import { EventFirebase_socket, EventFirebase_socketProperty } from 'esoftplay/ca
4
4
  import { EventHeader } from 'esoftplay/cache/event/header/import';
5
5
  import { EventIndexProperty } from 'esoftplay/cache/event/index/import';
6
6
  import { EventMessage } from 'esoftplay/cache/event/message/import';
7
+ import { LibCarrousel } from 'esoftplay/cache/lib/carrousel/import';
7
8
  import { LibCurl } from 'esoftplay/cache/lib/curl/import';
8
9
  import { LibList } from 'esoftplay/cache/lib/list/import';
9
10
  import { LibLoading } from 'esoftplay/cache/lib/loading/import';
@@ -16,7 +17,7 @@ import esp from 'esoftplay/esp';
16
17
  import moment from 'esoftplay/moment';
17
18
  import useSafeState from 'esoftplay/state';
18
19
  import React, { useEffect } from 'react';
19
- import { TouchableOpacity, View } from 'react-native';
20
+ import { Text, TouchableOpacity, View } from 'react-native';
20
21
 
21
22
 
22
23
  moment().locale('id')
@@ -104,38 +105,38 @@ export default function m(props: EventArtistv2Props): any {
104
105
  });
105
106
  };
106
107
 
107
- // if (item?.images?.length > 0) {
108
- // return (
109
- // <LibCarrousel
110
- // key={i}
111
- // delay={4000}
112
- // style={{ height: sliderHeight, width: width }}
113
- // autoplay
114
- // >
115
- // {
116
- // item?.images?.map((item1: any, ii: number) => {
117
- // return (
118
- // <TouchableOpacity key={ii} onPress={handlePress} >
119
- // <LibPicture key={ii} source={{ uri: item1 }} style={{ height: sliderHeight, width: width, resizeMode: 'cover', backgroundColor: "#f1f2f3" }} />
120
- // </TouchableOpacity>
121
- // )
122
- // })
123
- // }
124
- // </LibCarrousel>
125
- // )
126
- // } else if (item?.images?.length == 1) {
127
- return (
128
- <TouchableOpacity key={i} onPress={handlePress} >
129
- <LibPicture style={{ height: sliderHeight, width: width, resizeMode: 'cover', backgroundColor: "#f1f2f3" }} source={{ uri: item.images[0] }} />
130
- </TouchableOpacity>
131
- )
132
- // } else {
133
- // return (
134
- // <TouchableOpacity key={i} onPress={handlePress} style={styleId_Z2g4Hs7}>
135
- // <Text allowFontScaling={false} numberOfLines={2} style={styleId_2cYE4h}>{item.title}</Text>
136
- // </TouchableOpacity>
137
- // )
138
- // }
108
+ if (item?.images?.length > 1) {
109
+ return (
110
+ <LibCarrousel
111
+ key={i}
112
+ delay={4000}
113
+ style={{ height: sliderHeight, width: width }}
114
+ autoplay
115
+ >
116
+ {
117
+ item?.images?.map((item1: any, ii: number) => {
118
+ return (
119
+ <TouchableOpacity key={ii} onPress={handlePress} >
120
+ <LibPicture key={ii} source={{ uri: item1 }} style={{ height: sliderHeight, width: width, resizeMode: 'cover', backgroundColor: "#f1f2f3" }} />
121
+ </TouchableOpacity>
122
+ )
123
+ })
124
+ }
125
+ </LibCarrousel>
126
+ )
127
+ } else if (item?.images?.length == 1) {
128
+ return (
129
+ <TouchableOpacity key={i} onPress={handlePress} >
130
+ <LibPicture style={{ height: sliderHeight, width: width, resizeMode: 'cover', backgroundColor: "#f1f2f3" }} source={{ uri: item.images[0] }} />
131
+ </TouchableOpacity>
132
+ )
133
+ } else {
134
+ return (
135
+ <TouchableOpacity key={i} onPress={handlePress} style={styleId_Z2g4Hs7}>
136
+ <Text allowFontScaling={false} numberOfLines={2} style={styleId_2cYE4h}>{item.title}</Text>
137
+ </TouchableOpacity>
138
+ )
139
+ }
139
140
  }
140
141
 
141
142
  return (
@@ -34,6 +34,7 @@ export default function m(props: EventButton_order_detailProps): any {
34
34
  }
35
35
  </LibGradient>
36
36
  <View style={{ flex: 1, margin: 3, borderRadius: 5, ...LibStyle.elevation(2), backgroundColor: props.color, justifyContent: 'center', alignContent: 'center', alignItems: 'center' }}>
37
+ {/* <LibIcon name={"dice-multiple"} size={40} color={EventOrder_itemProperty.textColor(props.color)} style={{ opacity: 1 }} /> */}
37
38
  <LibIcon name={props.icon} size={40} color={EventOrder_itemProperty.textColor(props.color)} style={{ opacity: 1 }} />
38
39
  </View>
39
40
  </View>
@@ -100,7 +100,8 @@ export default function m(props: EventLoading_pageProps): any {
100
100
  loadingState.set(LibObject.unset(loadingState.get(), post.trx_id)())
101
101
  const ticketNotAvailableCodes = ['EV034', 'EV036', 'EV038', 'EV039', 'EV040']
102
102
  if (ticketNotAvailableCodes.includes(error.status_code)) {
103
- LibNavigation.navigate(post?.is_multi == 1 ? 'event/ticket_list2' : 'event/ticket_list')
103
+ LibNavigation.back()
104
+ // LibNavigation.navigate(post?.is_multi == 1 ? 'event/ticket_list2' : 'event/ticket_list')
104
105
  }
105
106
  if (error.status_code == 'EV033') {
106
107
  LibDialog.custom(
@@ -153,7 +154,8 @@ export default function m(props: EventLoading_pageProps): any {
153
154
  loadingState.set(LibObject.unset(loadingState.get(), post.trx_id)())
154
155
  const ticketNotAvailableCodes = ['EV034', 'EV036', 'EV038', 'EV039', 'EV040']
155
156
  if (ticketNotAvailableCodes.includes(error.status_code)) {
156
- LibNavigation.navigate(post?.is_multi == 1 ? 'event/ticket_list2' : 'event/ticket_list')
157
+ LibNavigation.back()
158
+ // LibNavigation.navigate(post?.is_multi == 1 ? 'event/ticket_list2' : 'event/ticket_list')
157
159
  }
158
160
  if (error.status_code == 'EV033') {
159
161
  LibDialog.custom(
@@ -510,13 +510,17 @@ export default function m(props: EventOrder_detailProps): any {
510
510
  />
511
511
 
512
512
  <UseCondition if={result?.is_luckydraw && result?.is_luckydraw == 1}>
513
- <TouchableOpacity onPress={() => {
514
- LibNavigation.navigateForResult('event/order_lottery', { id: result?.id }).then(() => {
515
- loadData()
516
- })
517
- }} style={{ margin: 15, padding: 10, marginBottom: 0, justifyContent: 'center', alignContent: 'center', alignItems: 'center', borderRadius: 7, backgroundColor: LibStyle.colorGreen, paddingBottom: 10 }}>
518
- <LibTextstyle textStyle='headline' text={esp.lang("event/order_detail", "join_lucky_draw")} style={{ color: '#fff', fontWeight: 'bold' }} />
519
- </TouchableOpacity>
513
+ <EventButton_order_detail
514
+ color={"#FF6F61"}
515
+ onPress={() => {
516
+ LibNavigation.navigateForResult('event/order_lottery', { id: result?.id }).then(() => {
517
+ loadData()
518
+ })
519
+ }}
520
+ icon={'dice-multiple'}
521
+ title={esp.lang("event/order_detail", "join_lucky_draw")}
522
+ info={esp.lang("event/order_detail", "subtitle_lucky_draw")}
523
+ />
520
524
  </UseCondition>
521
525
 
522
526
  <UseCondition if={result?.is_luckydraw && result?.is_luckydraw == 2}>
@@ -552,8 +556,8 @@ export default function m(props: EventOrder_detailProps): any {
552
556
  loadDataAddons(item?.addons_id, item?.url)
553
557
  }}
554
558
  icon={'plus-circle'}
555
- title={item.title}
556
- info={item.info}
559
+ title={"item.title"}
560
+ info={"item.info"}
557
561
  />
558
562
  )
559
563
  })
@@ -139,18 +139,12 @@ export default function m(props: EventOrder_detail_upgradeProps): any {
139
139
  <EventButton label={esp.lang("event/order_detail_upgrade", "btn_next")} onPress={() => {
140
140
  if (selectedTicket) {
141
141
  if (selectedTicket?.selected_ticket?.use_seat == 1 && selectedTicket?.selected_ticket?.seat_autopick == 0) {
142
- LibNavigation.navigateForResult(esp.isDebug("") ? 'event/seat_map_new' : 'event/seat_map', {
142
+ LibNavigation.navigateForResult('event/seat_map_new', {
143
143
  url: 'event_seat',
144
144
  dataTicket: selectedTicket
145
145
  }).then((value) => {
146
146
  let seatData: any = {}
147
- if (esp.isDebug("")) {
148
- seatData.seat_label = value?.seat_label
149
- } else {
150
- seatData.row_id = value?.row_id
151
- seatData.column_id = value?.column_id
152
- seatData.seat_name = value?.seat_name
153
- }
147
+ seatData.seat_label = value?.seat_label
154
148
  LibNavigation.navigate('event/order_detail_upgrade_payment', {
155
149
  dataTicket: {
156
150
  url_payment: result?.url_payment,
@@ -49,11 +49,11 @@ export default function m(props: EventScan_itemProps): any {
49
49
  <View style={{}}>
50
50
  {
51
51
  props?.item?.hall_scanned && props?.item?.hall_scanned != "0000-00-00 00:00:00" &&
52
- <Text allowFontScaling={false} ellipsizeMode={'tail'} numberOfLines={2} style={applyStyle({ color: "#c9c9c9", marginBottom: 4, fontSize: 14, letterSpacing: 1.5 })}>{esp.lang("event/scan_item", "scan_on") + LibUtils.moment(props?.item?.hall_scanned).serverFormat("DD MMMM YYYY H:m:s ", props?.item?.timezone) + props.item?.timezone_locale || ""}</Text>
52
+ <Text allowFontScaling={false} ellipsizeMode={'tail'} numberOfLines={2} style={applyStyle({ color: "#c9c9c9", marginBottom: 4, fontSize: 14, letterSpacing: 1.5 })}>{esp.lang("event/scan_item", "scan_on") + LibUtils.moment(props?.item?.hall_scanned).serverFormat("DD MMMM YYYY H:m:s ", props?.item?.scanned_detail?.timezone) + props.item?.scanned_detail?.timezone_locale || ""}</Text>
53
53
  }
54
54
  {
55
55
  !Array.isArray(props?.item?.scanned_detail) && props?.item?.scanned_detail?.scanned != "" && props?.item?.scanned_detail?.scanned != "0000-00-00 00:00:00" &&
56
- <Text allowFontScaling={false} ellipsizeMode={'tail'} numberOfLines={2} style={applyStyle({ color: LibStyle.colorRed, marginBottom: 4, fontSize: 14, letterSpacing: 1.5 })}>{esp.lang("event/scan_item", "scan_on") + LibUtils.moment(props?.item?.scanned_detail?.scanned).serverFormat("DD MMMM YYYY H:m:s ", props?.item?.timezone) + props.item?.timezone_locale || ""}</Text>
56
+ <Text allowFontScaling={false} ellipsizeMode={'tail'} numberOfLines={2} style={applyStyle({ color: LibStyle.colorRed, marginBottom: 4, fontSize: 14, letterSpacing: 1.5 })}>{esp.lang("event/scan_item", "scan_on") + LibUtils.moment(props?.item?.scanned_detail?.scanned).serverFormat("DD MMMM YYYY H:m:s ", props?.item?.scanned_detail?.timezone) + props.item?.scanned_detail?.timezone_locale || ""}</Text>
57
57
  }
58
58
  {
59
59
  props.item?.status == 1 &&
@@ -302,17 +302,11 @@ export default function m(props: EventTicket_listProps): any {
302
302
  if (selectedTicket?.config && selectedTicket?.config?.seat_autopick == 1) {
303
303
  checkAddition(dataPost)
304
304
  } else {
305
- LibNavigation.navigateForResult(esp.isDebug("") ? 'event/seat_map_new' : 'event/seat_map', {
305
+ LibNavigation.navigateForResult('event/seat_map_new', {
306
306
  url: 'event_seat',
307
307
  dataTicket: dataPost,
308
308
  }).then((value) => {
309
- if (esp.isDebug("")) {
310
- dataPost.seat_label = value.seat_label
311
- } else {
312
- dataPost.row_id = value.row_id
313
- dataPost.column_id = value.column_id
314
- dataPost.seat_name = value.seat_name
315
- }
309
+ dataPost.seat_label = value.seat_label
316
310
  checkAddition(dataPost)
317
311
  })
318
312
  }
@@ -161,7 +161,7 @@ export default function m(props: EventTicket_list2Props): any {
161
161
  const [ticketSeat, resetTicketSeat] = taskSeat((item: any) => new Promise((next) => {
162
162
  if (item.use_seat == 1) {
163
163
  if (item.adjacent_seats == 0) {
164
- LibNavigation.navigateForResult(esp.isDebug("") ? 'event/seat_map_new' : 'event/seat_map', {
164
+ LibNavigation.navigateForResult('event/seat_map_new', {
165
165
  url: 'event_seat',
166
166
  dataTicket: {
167
167
  ...dataEvent,
@@ -105,7 +105,7 @@ export default function m(props: EventTms_in_successProps): any {
105
105
  is_tms: 1,
106
106
  qty: _qty,
107
107
  tms_id: UserClass.state().get()?.id,
108
- scanned: LibUtils.moment().format('YYYY-MM-DD HH:mm:ss'),
108
+ scanned: LibUtils.moment().localeFormat('YYYY-MM-DD HH:mm:ss'),
109
109
  }
110
110
  EventTms_homeProperty.addCounterEntranceOpenGate(1, selectedTicket?.price_id)
111
111
  syncUsedTiketState.set(LibObject.push(syncUsedTiketState.get(), [url, post])())
package/event/tms_out.tsx CHANGED
@@ -71,7 +71,7 @@ export default function m(props: EventTms_outProps): any {
71
71
  gate_id: selectGate?.id,
72
72
  trx_id: new Date().getTime() + "" + UserClass.state().get()?.id,
73
73
  price_id: modifyList?.filter((item: any) => item.checked == 1).map((it: any) => it.price_id),
74
- scanned_out: LibUtils.moment().format('YYYY-MM-DD HH:mm:ss'),
74
+ scanned_out: LibUtils.moment().localeFormat('YYYY-MM-DD HH:mm:ss'),
75
75
  }
76
76
  let urlOut = "event_tms_out_confirm"
77
77
  LibNavigation.replace('event/tms_out_success', { data: finalData, ...args, url: urlOut, post: postOut })
package/id.json CHANGED
@@ -983,6 +983,7 @@
983
983
  "share_title": "Informasi",
984
984
  "shared": "Sudah dibagikan",
985
985
  "subtitle_addons": "Biar pengalamanmu makin lengkap",
986
+ "subtitle_lucky_draw": "Hadiah seru menantimu, buruan ikutan!",
986
987
  "success_copied": "Berhasil Disalin ",
987
988
  "thanks": "Thank you for your suggestion!!",
988
989
  "ticket": "TIKET ",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "esoftplay-event",
3
- "version": "0.0.1-j",
3
+ "version": "0.0.1-l",
4
4
  "description": "event module on esoftplay framework",
5
5
  "main": "index.js",
6
6
  "scripts": {