esoftplay-event 0.0.2-k → 0.0.2-m

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.
package/config.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "fonts": {
3
+ "mono": "mono.ttf",
3
4
  "Arial": "Arial.ttf",
4
5
  "ArialBold": "ArialBold.ttf",
5
6
  "SFProText": "SFProText.ttf",
6
- "mono": "mono.ttf",
7
7
  "MonoSpace": "MonoSpace.ttf",
8
8
  "DecoNumbers": "DecoNumbers.ttf",
9
9
  "digital": "digital.ttf"
package/event/artist.tsx CHANGED
@@ -1,8 +1,6 @@
1
1
  // withHooks
2
2
 
3
3
  import { applyStyle } from 'esoftplay';
4
- import { EventCountdownProperty } from 'esoftplay/cache/event/countdown/import';
5
- import { EventFirebase_socket, EventFirebase_socketProperty } from 'esoftplay/cache/event/firebase_socket/import';
6
4
  import { EventHeader } from 'esoftplay/cache/event/header/import';
7
5
  import { EventIndexProperty } from 'esoftplay/cache/event/index/import';
8
6
  import { EventMessage } from 'esoftplay/cache/event/message/import';
@@ -14,7 +12,6 @@ import { LibPicture } from 'esoftplay/cache/lib/picture/import';
14
12
  import { LibStyle } from 'esoftplay/cache/lib/style/import';
15
13
  import { LibToastProperty } from 'esoftplay/cache/lib/toast/import';
16
14
  import { LibUtils } from 'esoftplay/cache/lib/utils/import';
17
- import { UserClass } from 'esoftplay/cache/user/class/import';
18
15
  import esp from 'esoftplay/esp';
19
16
  import moment from 'esoftplay/moment';
20
17
  import useSafeState from 'esoftplay/state';
@@ -33,7 +30,6 @@ export default function m(props: BigbangArtistProps): any {
33
30
  const [result, setResult] = useSafeState<any>()
34
31
  const [resultEvent, setResultEvent] = useSafeState<any>()
35
32
  const [error, setError] = useSafeState<any>('')
36
- const { isInPricingQueueConfig } = EventFirebase_socket()
37
33
 
38
34
  const { title, has_addition } = LibNavigation.getArgsAll(props)
39
35
  const url = LibNavigation.getArgs(props, 'url', 'event_artist')
@@ -46,9 +42,6 @@ export default function m(props: BigbangArtistProps): any {
46
42
  esp.log({ res });
47
43
  new LibCurl(res?.[0]?.url_event || `event_detail/${res?.[0]?.event_id}`, null, (res) => {
48
44
  setResultEvent(res)
49
- if (res?.id) {
50
- EventFirebase_socketProperty.eventIdQueue.set(res?.id)
51
- }
52
45
  if (res.allotment) {
53
46
  esp.modProp("event/firebase_socket").userIdKeyReplacer.set({
54
47
  t: Number(res.allotment.t),
@@ -66,11 +59,11 @@ export default function m(props: BigbangArtistProps): any {
66
59
  }
67
60
 
68
61
  useEffect(() => {
69
- if (esp.isDebug("") && UserClass?.state()?.get()?.email == "bagus@fisip.net") {
70
- LibNavigation.replace('event/artistv2')
71
- } else {
72
- loadData?.()
73
- }
62
+ // if (esp.isDebug("") && UserClass?.state()?.get()?.email == "bagus@fisip.net") {
63
+ // LibNavigation.replace('event/artistv2')
64
+ // } else {
65
+ loadData?.()
66
+ // }
74
67
  }, [])
75
68
 
76
69
  const itemWidth = (LibStyle.width - 2)
@@ -90,7 +83,7 @@ export default function m(props: BigbangArtistProps): any {
90
83
  return (
91
84
  <TouchableOpacity key={index} onPress={() => {
92
85
  if (isNotAvailable) {
93
- LibToastProperty.show(esp.lang("event/artist", "ticket_not_available"))
86
+ LibToastProperty.show(item?.price_list?.[0]?.message)
94
87
  } else {
95
88
  EventIndexProperty.isLogin(() => {
96
89
  let newItem = {
@@ -98,36 +91,20 @@ export default function m(props: BigbangArtistProps): any {
98
91
  ...item,
99
92
  }
100
93
  if (item.book_available == 1) {
101
- if (isInPricingQueueConfig(item.event_id)) {
102
- LibNavigation.navigateForResult('event/queue_pricing', { event_id: item?.event_id, autoPass: false }).then((v) => {
103
- const expTimestamp = Date.now() + (Number(EventFirebase_socketProperty.eventQueueConfig.get(item?.event_id).time) * 1000);
104
- EventCountdownProperty.countdownTime.set(expTimestamp)
105
-
106
- if (item?.config?.hasOwnProperty('multiprice') && item?.config?.multiprice == 1) {
107
- LibNavigation.navigate('event/artist_detail_multi', {
108
- data: newItem,
109
- subscribed: subs
110
- })
111
- } else {
112
- LibNavigation.navigate('event/artist_detail', {
113
- data: newItem,
114
- subscribed: subs
115
- })
116
- }
94
+ if (item?.config?.hasOwnProperty('multiprice') && item?.config?.multiprice == 1) {
95
+ LibNavigation.navigate('event/artist_detail_multi', {
96
+ data: newItem,
97
+ subscribed: subs,
98
+ url: item?.url_detail
117
99
  })
118
100
  } else {
119
- if (item?.config?.hasOwnProperty('multiprice') && item?.config?.multiprice == 1) {
120
- LibNavigation.navigate('event/artist_detail_multi', {
121
- data: newItem,
122
- subscribed: subs
123
- })
124
- } else {
125
- LibNavigation.navigate('event/artist_detail', {
126
- data: newItem,
127
- subscribed: subs
128
- })
129
- }
101
+ LibNavigation.navigate('event/artist_detail', {
102
+ data: newItem,
103
+ subscribed: subs,
104
+ url: item?.url_detail
105
+ })
130
106
  }
107
+ // }
131
108
  } else {
132
109
  LibToastProperty.show(esp.lang("event/artist_detail", "book_available", moment(item?.start_booking).serverFormat("DD MMMM YYYY HH:mm:ss")))
133
110
  }