esoftplay-event 0.0.0-b → 0.0.0-d

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 (61) hide show
  1. package/event/additional_input.tsx +4 -4
  2. package/event/artist.tsx +4 -5
  3. package/event/artist_detail.tsx +18 -17
  4. package/event/artist_detail_multi.tsx +10 -10
  5. package/event/block.tsx +56 -0
  6. package/event/capture.tsx +39 -0
  7. package/event/config.ts +24 -3
  8. package/event/countdown.tsx +2 -2
  9. package/event/counter_cashier.tsx +4 -4
  10. package/event/counter_eo.tsx +8 -8
  11. package/event/counter_lm.tsx +8 -8
  12. package/event/counter_report_detail.tsx +3 -3
  13. package/event/counter_send.tsx +3 -3
  14. package/event/counter_user_list.tsx +4 -4
  15. package/event/coupon_claim_reimburse_history.tsx +1 -2
  16. package/event/coupon_detail.tsx +2 -2
  17. package/event/detail.tsx +6 -5
  18. package/event/distribution_lock.ts +18 -0
  19. package/event/entrance.tsx +2 -2
  20. package/event/exchange_ticket.tsx +3 -3
  21. package/event/exit_log.tsx +2 -3
  22. package/event/header.tsx +2 -2
  23. package/event/header_home.tsx +104 -0
  24. package/event/htmltext.tsx +61 -0
  25. package/event/index.tsx +302 -0
  26. package/event/input_rectangle.tsx +208 -0
  27. package/event/item.tsx +39 -0
  28. package/event/loading_page.tsx +7 -7
  29. package/event/log.tsx +7 -9
  30. package/event/notice.tsx +41 -0
  31. package/event/order_detail.tsx +9 -9
  32. package/event/order_detail_payment.tsx +6 -6
  33. package/event/order_detail_upgrade.tsx +1 -2
  34. package/event/order_detail_upgrade_button.tsx +1 -2
  35. package/event/order_detail_waiting.tsx +10 -8
  36. package/event/order_item.tsx +2 -2
  37. package/event/order_share_to.tsx +9 -9
  38. package/event/order_waiting.tsx +1 -2
  39. package/event/popup.tsx +82 -0
  40. package/event/qc_idcard.tsx +2 -2
  41. package/event/queue_pricing.tsx +2 -3
  42. package/event/refresh_button.tsx +40 -0
  43. package/event/seat.tsx +4 -3
  44. package/event/seat_map.tsx +20 -20
  45. package/event/seat_map_test.tsx +3 -3
  46. package/event/section.tsx +35 -0
  47. package/event/secure_page.tsx +33 -0
  48. package/event/share.ts +20 -0
  49. package/event/slidingup.tsx +37 -0
  50. package/event/tap.tsx +30 -0
  51. package/event/ticket_list.tsx +10 -10
  52. package/event/ticket_list2.tsx +5 -6
  53. package/event/tms_add.tsx +3 -3
  54. package/event/tms_check_code.tsx +3 -3
  55. package/event/tms_check_ticket.tsx +3 -3
  56. package/event/tms_in.tsx +2 -2
  57. package/event/tms_log.tsx +7 -8
  58. package/event/tms_out_log.tsx +2 -3
  59. package/id.json +13 -0
  60. package/package.json +1 -1
  61. package/publisher.js +1 -1
@@ -1,13 +1,13 @@
1
1
  // withHooks
2
2
 
3
3
  import { EventHeader } from 'esoftplay/cache/event/header/import';
4
+ import { EventTap } from 'esoftplay/cache/event/tap/import';
4
5
  import { LibCurl } from 'esoftplay/cache/lib/curl/import';
5
6
  import { LibIcon } from 'esoftplay/cache/lib/icon/import';
6
7
  import { LibLoading } from 'esoftplay/cache/lib/loading/import';
7
8
  import { LibNavigation } from 'esoftplay/cache/lib/navigation/import';
8
9
  import { LibObject } from 'esoftplay/cache/lib/object/import';
9
10
  import { LibStyle } from 'esoftplay/cache/lib/style/import';
10
- import { LibTap } from 'esoftplay/cache/lib/tap/import';
11
11
  import { LibToastProperty } from 'esoftplay/cache/lib/toast/import';
12
12
  import { LibUtils } from 'esoftplay/cache/lib/utils/import';
13
13
  import esp from 'esoftplay/esp';
@@ -145,7 +145,7 @@ export default function m(props: any) {
145
145
  <Text style={{ color: 'white', fontWeight: 'bold' }} >{esp.lang("event/seat_map_test", "front")}</Text>
146
146
  </View>
147
147
  <ScrollView horizontal showsHorizontalScrollIndicator >
148
- <LibTap onCoordinateGet={toggleSeat}>
148
+ <EventTap onCoordinateGet={toggleSeat}>
149
149
  <MatrixAnimated
150
150
  data={data}
151
151
  numRows={numRows}
@@ -158,7 +158,7 @@ export default function m(props: any) {
158
158
  squareSize={squareSizeAnimated}
159
159
  rB={rBAnimated}
160
160
  />
161
- </LibTap>
161
+ </EventTap>
162
162
  </ScrollView>
163
163
  </ScrollView>
164
164
  </View>
@@ -0,0 +1,35 @@
1
+ // withHooks
2
+
3
+ import { LibPicture } from 'esoftplay/cache/lib/picture/import';
4
+ import esp from 'esoftplay/esp';
5
+ import React from 'react';
6
+ import { Text, TouchableOpacity, View } from 'react-native';
7
+
8
+
9
+ export interface EventSectionArgs {
10
+
11
+ }
12
+ export interface EventSectionProps {
13
+ text: string,
14
+ textColor: string,
15
+ caption?: string,
16
+ icon?: string,
17
+ moreAction?: () => void
18
+ }
19
+ export default function m(props: EventSectionProps): any {
20
+ return (
21
+ <View style={{ marginLeft: 4, marginVertical: 5, flexDirection: 'row', alignItems: 'center' }} >
22
+ <View style={{ width: 8, height: 28, borderRadius: 10, backgroundColor: "#ededed" }} />
23
+ <View style={{ marginLeft: 12, flex: 1 }} >
24
+ <Text allowFontScaling={false} style={{ fontFamily: "ArialBold", fontSize: 15, lineHeight: 22, color: props.textColor }} >{props.text}</Text>
25
+ {props.caption && <Text allowFontScaling={false} style={{ fontFamily: "Arial", fontSize: 10, color: "#b8b8b8" }} >{props.caption}</Text>}
26
+ </View>
27
+ {
28
+ props.icon &&
29
+ <TouchableOpacity onPress={() => props.moreAction ? props.moreAction() : {}} >
30
+ <LibPicture style={{ height: 25, width: 25, resizeMode: 'contain' }} source={esp.assets(props.icon)} />
31
+ </TouchableOpacity>
32
+ }
33
+ </View>
34
+ )
35
+ }
@@ -0,0 +1,33 @@
1
+ // useLibs
2
+
3
+ import { UserClass } from 'esoftplay/cache/user/class/import';
4
+ import { useEffect } from 'react';
5
+ import RNPrevent from "react-native-screenshot-prevent";
6
+
7
+ export interface EventSecure_pageProps {
8
+
9
+ }
10
+ export default function m(): any {
11
+ const can_screencapture = UserClass.state().get('config', 'can_screencapture')
12
+ // const focus = useIsFocused()
13
+
14
+ useEffect(() => {
15
+ let subs: any
16
+ if (!__DEV__)
17
+ if (can_screencapture != 1) {
18
+ RNPrevent?.enabled?.(true)
19
+ RNPrevent?.enableSecureView?.()
20
+ // subs = RNPrevent?.addListener?.(() => { })
21
+ }
22
+ return () => {
23
+ if (!__DEV__)
24
+ if (can_screencapture != 1) {
25
+ RNPrevent?.disableSecureView?.()
26
+ RNPrevent?.enabled?.(false)
27
+ // subs?.remove?.()
28
+ }
29
+ }
30
+ }, [])
31
+
32
+ return null
33
+ }
package/event/share.ts ADDED
@@ -0,0 +1,20 @@
1
+ // noPage
2
+ import { Linking } from 'react-native'
3
+
4
+ export default class m {
5
+
6
+ static facebook(url: string): void {
7
+ let base = 'https://www.facebook.com/sharer/sharer.php?u='
8
+ Linking.openURL(base + url)
9
+ }
10
+
11
+ static twitter(url: string): void {
12
+ let base = 'http://twitter.com/share?url='
13
+ Linking.openURL(base + url)
14
+ }
15
+
16
+ static whatsapp(url: string): void {
17
+ let base = 'https://api.whatsapp.com/send?text='
18
+ Linking.openURL(base + url)
19
+ }
20
+ }
@@ -0,0 +1,37 @@
1
+ // withHooks
2
+ // noPage
3
+ import _global from 'esoftplay/_global';
4
+ import { LibSlidingup } from 'esoftplay/cache/lib/slidingup/import';
5
+ import useGlobalState from 'esoftplay/global';
6
+ import React, { useRef } from 'react';
7
+
8
+ export interface EventSlidingupProps {
9
+
10
+ }
11
+
12
+
13
+
14
+ const state = useGlobalState(undefined)
15
+
16
+ export function add(view: any): void {
17
+ state.set(view)
18
+ }
19
+
20
+ export function show() {
21
+ _global.event_slidingup_ref?.current?.show?.()
22
+ }
23
+
24
+ export function hide(): void {
25
+ _global.event_slidingup_ref?.current?.hide?.()
26
+ }
27
+
28
+ export default function m(props: EventSlidingupProps): any {
29
+ _global.event_slidingup_ref = useRef<LibSlidingup>(null)
30
+ const view = state.useSelector((s) => s)
31
+
32
+ return (
33
+ <LibSlidingup ref={_global.event_slidingup_ref} >
34
+ {view}
35
+ </LibSlidingup>
36
+ )
37
+ }
package/event/tap.tsx ADDED
@@ -0,0 +1,30 @@
1
+ // withHooks
2
+
3
+ import React from 'react';
4
+ import { View } from 'react-native';
5
+ import { State, TapGestureHandler } from 'react-native-gesture-handler';
6
+
7
+
8
+ export interface EventTapArgs {
9
+
10
+ }
11
+ export interface EventTapProps {
12
+ children: any,
13
+ onCoordinateGet: (x: number, y: number) => void,
14
+ style?: any
15
+ }
16
+ export default function m(props: EventTapProps): any {
17
+ const handleEnded = ({ nativeEvent }: any) => {
18
+ if (nativeEvent.state === State.ACTIVE) {
19
+ const { x, y } = nativeEvent;
20
+ props.onCoordinateGet(x, y);
21
+ }
22
+ };
23
+
24
+ return (
25
+ <TapGestureHandler onHandlerStateChange={handleEnded} {...props} >
26
+ <View>{props.children}</View>
27
+ </TapGestureHandler>
28
+ );
29
+
30
+ }
@@ -17,14 +17,14 @@ import { LibUtils } from 'esoftplay/cache/lib/utils/import';
17
17
  import moment from 'esoftplay/moment';
18
18
 
19
19
  import { applyStyle } from 'esoftplay';
20
- import { BboConfigProperty } from 'esoftplay/cache/bbo/config/import';
20
+ import { EventConfigProperty } from 'esoftplay/cache/event/config/import';
21
21
  import { EventCountdownProperty } from 'esoftplay/cache/event/countdown/import';
22
22
  import { EventCountdown_base } from 'esoftplay/cache/event/countdown_base/import';
23
23
  import { EventFirebase_socket, EventFirebase_socketProperty } from 'esoftplay/cache/event/firebase_socket/import';
24
+ import { EventHtmltext } from 'esoftplay/cache/event/htmltext/import';
24
25
  import { EventLoading_pageProperty } from 'esoftplay/cache/event/loading_page/import';
25
26
  import { EventPending_trx } from 'esoftplay/cache/event/pending_trx/import';
26
27
  import { LibEffect } from 'esoftplay/cache/lib/effect/import';
27
- import { LibHtmltext } from 'esoftplay/cache/lib/htmltext/import';
28
28
  import { LibProgress } from 'esoftplay/cache/lib/progress/import';
29
29
  import { UseDeeplinkProperty } from 'esoftplay/cache/use/deeplink/import';
30
30
  import esp from 'esoftplay/esp';
@@ -130,7 +130,7 @@ export type Result = {
130
130
  export default function m(props: EventTicket_listProps): any {
131
131
  const checkCounter = useRef<number>(0)
132
132
  let refTimeout = useRef<any>()
133
- const [bboConfig] = BboConfigProperty.state().useState()
133
+ const [eventConfig] = EventConfigProperty.state().useState()
134
134
  const { doneQueue, isInPricingQueueConfig, updateQueueExp } = EventFirebase_socket();
135
135
 
136
136
  const [pendingData] = EventLoading_pageProperty.state().useState()
@@ -151,7 +151,7 @@ export default function m(props: EventTicket_listProps): any {
151
151
  const [showAll, setShowAll] = useSafeState<any>({});
152
152
 
153
153
  useEffect(() => {
154
- BboConfigProperty.curlConfig('v2/config_order_type')
154
+ EventConfigProperty.curlConfig('v2/config_order_type')
155
155
  const { event_id } = EventQueue_pricingProperty.state().get()
156
156
  if (isInPricingQueueConfig(event_id))
157
157
  EventCountdownProperty.countdownTime.set(moment().add(EventFirebase_socketProperty.eventQueueConfig.get(event_id).time, 'seconds').localeFormat('YYYY-MM-DD HH:mm:ss'))
@@ -265,7 +265,7 @@ export default function m(props: EventTicket_listProps): any {
265
265
  newDataPost.addition = additions
266
266
  }
267
267
  LibNavigation.navigate('payment/ticket', {
268
- order_type: bboConfig?.order_type?.ticket,
268
+ order_type: eventConfig?.order_type?.ticket,
269
269
  tax: selectedTicket?.tax == null ? 0 : selectedTicket?.tax,
270
270
  fee_platform: fee_platform,
271
271
  dataBookingEvent: { ...newDataPost, qty: getQty() },
@@ -275,7 +275,7 @@ export default function m(props: EventTicket_listProps): any {
275
275
  })
276
276
  } else {
277
277
  LibNavigation.navigate('payment/ticket', {
278
- order_type: bboConfig?.order_type?.ticket,
278
+ order_type: eventConfig?.order_type?.ticket,
279
279
  tax: selectedTicket?.tax == null ? 0 : selectedTicket?.tax,
280
280
  fee_platform: fee_platform,
281
281
  dataBookingEvent: { ...newDataPost, qty: getQty() },
@@ -478,7 +478,7 @@ export default function m(props: EventTicket_listProps): any {
478
478
 
479
479
  LibNavigation.navigate('event/schedule', {
480
480
  schedule: itemT.schedule,
481
- order_type: bboConfig?.order_type?.ticket,
481
+ order_type: eventConfig?.order_type?.ticket,
482
482
  tax: selectedTicket?.tax == null ? 0 : selectedTicket?.tax,
483
483
  dataBookingEvent: dataPost
484
484
  })
@@ -592,12 +592,12 @@ export default function m(props: EventTicket_listProps): any {
592
592
  <View style={{ padding: 10, backgroundColor: '#f1f2f3', borderTopLeftRadius: 10, borderTopRightRadius: 10 }}>
593
593
  <View style={{ alignContent: 'center', alignItems: 'center', flexDirection: 'row', justifyContent: 'space-between', }}>
594
594
  <View>
595
- <LibHtmltext allowFontScaling={false} style={{ opacity: textOpacity, fontWeight: 'bold' }}>{item.type}
595
+ <EventHtmltext allowFontScaling={false} style={{ opacity: textOpacity, fontWeight: 'bold' }}>{item.type}
596
596
  {
597
597
  item.qty_min > 1 &&
598
598
  <Text style={{ color: LibStyle.colorRed, fontSize: 10, fontWeight: 'normal' }}> {"(" + esp.lang("event/ticket_list", "min_order") + LibUtils.number(item.qty_min) + ")"}</Text>
599
599
  }
600
- </LibHtmltext>
600
+ </EventHtmltext>
601
601
  {
602
602
  deeplinkParams?.type == 'event-voucher' && deeplinkParams?.price_id == item.price_id ?
603
603
  <Text allowFontScaling={false} style={{ color: "coral", fontSize: 12, fontWeight: 'bold' }}>{esp.lang("event/ticket_list", "applied_code", deeplinkParams?.code)}</Text>
@@ -661,7 +661,7 @@ export default function m(props: EventTicket_listProps): any {
661
661
  <View style={{ padding: 10, backgroundColor: '#f1f2f3', borderTopLeftRadius: 10, borderTopRightRadius: 10 }}>
662
662
  <View style={{ alignContent: 'center', alignItems: 'center', flexDirection: 'row', justifyContent: 'space-between', }}>
663
663
  <View style={{ flex: 3 }}>
664
- <LibHtmltext allowFontScaling={false} style={{ opacity: textOpacity, fontWeight: 'bold' }}>{item.type}</LibHtmltext>
664
+ <EventHtmltext allowFontScaling={false} style={{ opacity: textOpacity, fontWeight: 'bold' }}>{item.type}</EventHtmltext>
665
665
  </View>
666
666
  {
667
667
  item?.status != 1 &&
@@ -18,11 +18,11 @@ import useLazyState from 'esoftplay/lazy';
18
18
  import useSafeState from 'esoftplay/state';
19
19
  import { useEffect, useRef } from 'react';
20
20
 
21
- import { BboConfigProperty } from 'esoftplay/cache/bbo/config/import';
22
21
  import { EventAlert } from 'esoftplay/cache/event/alert/import';
22
+ import { EventConfigProperty } from 'esoftplay/cache/event/config/import';
23
23
  import { EventCountdownProperty } from 'esoftplay/cache/event/countdown/import';
24
24
  import { EventCountdown_base } from 'esoftplay/cache/event/countdown_base/import';
25
- import { EventFirebase_socketProperty } from 'esoftplay/cache/event/firebase_socket/import';
25
+ import { EventFirebase_socket, EventFirebase_socketProperty } from 'esoftplay/cache/event/firebase_socket/import';
26
26
  import { EventLoading_pageProperty } from 'esoftplay/cache/event/loading_page/import';
27
27
  import { EventPending_trx } from 'esoftplay/cache/event/pending_trx/import';
28
28
  import { EventQueue_pricingProperty } from 'esoftplay/cache/event/queue_pricing/import';
@@ -31,7 +31,6 @@ import { UseTasks } from 'esoftplay/cache/use/tasks/import';
31
31
  import moment from 'esoftplay/moment';
32
32
  import React from 'react';
33
33
  import { Pressable, RefreshControl, ScrollView, Text, TouchableOpacity, View } from 'react-native';
34
- import useFirebaseSocket from '../lib/firebase_socket';
35
34
 
36
35
 
37
36
  export interface EventTicket_list2Args {
@@ -133,7 +132,7 @@ const taskAdditional = UseTasks()
133
132
  export default function m(props: EventTicket_list2Props): any {
134
133
  const checkCounter = useRef<number>(0)
135
134
  let refTimeout = useRef<any>()
136
- const { doneQueue, isInPricingQueueConfig, updateQueueExp } = useFirebaseSocket();
135
+ const { doneQueue, isInPricingQueueConfig, updateQueueExp } = EventFirebase_socket();
137
136
 
138
137
  const [pendingData] = EventLoading_pageProperty.state().useState()
139
138
 
@@ -236,7 +235,7 @@ export default function m(props: EventTicket_list2Props): any {
236
235
  dataEvent.addition = dataAddition
237
236
  }
238
237
  LibNavigation.navigate('payment/ticket_multi', {
239
- order_type: BboConfigProperty?.state()?.get()?.order_type?.ticket,
238
+ order_type: EventConfigProperty?.state()?.get()?.order_type?.ticket,
240
239
  fee_platform: fee_platform,
241
240
  dataEvent: dataEvent,
242
241
  dataTicket: getDataPostBooking(),
@@ -246,7 +245,7 @@ export default function m(props: EventTicket_list2Props): any {
246
245
  })
247
246
 
248
247
  useEffect(() => {
249
- BboConfigProperty.curlConfig('v2/config_order_type')
248
+ EventConfigProperty.curlConfig('v2/config_order_type')
250
249
  const { event_id } = EventQueue_pricingProperty.state().get()
251
250
  loadData()
252
251
  if (isInPricingQueueConfig(event_id))
package/event/tms_add.tsx CHANGED
@@ -1,7 +1,7 @@
1
1
  // withHooks
2
2
 
3
3
  import { EventHeader } from 'esoftplay/cache/event/header/import';
4
- import { LibInput_circle2 } from 'esoftplay/cache/lib/input_circle2/import';
4
+ import { EventInput_rectangle } from 'esoftplay/cache/event/input_rectangle/import';
5
5
  import { LibKeyboard_avoid } from 'esoftplay/cache/lib/keyboard_avoid/import';
6
6
  import { LibNavigation } from 'esoftplay/cache/lib/navigation/import';
7
7
  import { LibPicture } from 'esoftplay/cache/lib/picture/import';
@@ -19,7 +19,7 @@ export interface EventTms_addProps {
19
19
 
20
20
  }
21
21
  export default function m(props: EventTms_addProps): any {
22
- let inputEmail = React.useRef<LibInput_circle2>(null)
22
+ let inputEmail = React.useRef<EventInput_rectangle>(null)
23
23
  const { dataEvent } = LibNavigation.getArgsAll(props)
24
24
  const [email, setEmail] = useSafeState('')
25
25
  const [qrcode, setQrcode] = useSafeState('')
@@ -63,7 +63,7 @@ export default function m(props: EventTms_addProps): any {
63
63
  <Text allowFontScaling={false} style={{ opacity: 0.7, fontFamily: "Arial", fontSize: 14, fontWeight: "bold", fontStyle: "normal", letterSpacing: 0, textAlign: "center", marginTop: 20 }}>{esp.lang("event/tms_add", "scan_qr")}</Text>
64
64
  <Text allowFontScaling={false} style={{ opacity: 0.6, fontFamily: "Arial", fontSize: 12, fontWeight: "normal", fontStyle: "normal", letterSpacing: 0, textAlign: "center", marginTop: 17 }}>{esp.lang("transfer/index", "or")}</Text>
65
65
 
66
- <LibInput_circle2
66
+ <EventInput_rectangle
67
67
  ref={inputEmail}
68
68
  onSubmitEditing={() => {
69
69
  LibNavigation.navigate('event/tms_add_result', { dataEvent: dataEvent, email: email.trim(), is_add: true, qr_code: qrcode.trim() })
@@ -2,11 +2,11 @@
2
2
 
3
3
  import { applyStyle } from 'esoftplay';
4
4
  import { EventHeader } from 'esoftplay/cache/event/header/import';
5
+ import { EventInput_rectangle } from 'esoftplay/cache/event/input_rectangle/import';
5
6
  import { EventLabel_input } from 'esoftplay/cache/event/label_input/import';
6
7
  import { EventTms_check_ticket } from 'esoftplay/cache/event/tms_check_ticket/import';
7
8
  import { LibCurl } from 'esoftplay/cache/lib/curl/import';
8
9
  import { LibDialog } from 'esoftplay/cache/lib/dialog/import';
9
- import { LibInput_circle2 } from 'esoftplay/cache/lib/input_circle2/import';
10
10
  import { LibNavigation } from 'esoftplay/cache/lib/navigation/import';
11
11
  import { LibProgress } from 'esoftplay/cache/lib/progress/import';
12
12
  import { LibStyle } from 'esoftplay/cache/lib/style/import';
@@ -26,7 +26,7 @@ export interface EventTms_check_codeProps {
26
26
 
27
27
  }
28
28
  export default function m(props: EventTms_check_codeProps): any {
29
- let inputAccessCode = React.useRef<LibInput_circle2>(null)
29
+ let inputAccessCode = React.useRef<EventInput_rectangle>(null)
30
30
  const { event_id, gate } = LibNavigation.getArgsAll(props)
31
31
  const [result, setResult] = useSafeState<any>()
32
32
 
@@ -113,7 +113,7 @@ export default function m(props: EventTms_check_codeProps): any {
113
113
  <ScrollView>
114
114
  <View style={[{ margin: 15, backgroundColor: 'white', padding: 15, paddingTop: 8, borderRadius: 5 }, LibStyle.elevation(2)]}>
115
115
  <EventLabel_input label={esp.lang("visitor/index", "label_input_code")} mandatory />
116
- <LibInput_circle2
116
+ <EventInput_rectangle
117
117
  ref={inputAccessCode}
118
118
  onSubmitEditing={() => doSubmit()}
119
119
  blurOnSubmit
@@ -1,6 +1,6 @@
1
1
  // withHooks
2
2
 
3
- import { LibInput_circle2 } from 'esoftplay/cache/lib/input_circle2/import';
3
+ import { EventInput_rectangle } from 'esoftplay/cache/event/input_rectangle/import';
4
4
  import { LibKeyboard_avoid } from 'esoftplay/cache/lib/keyboard_avoid/import';
5
5
  import { LibNavigation } from 'esoftplay/cache/lib/navigation/import';
6
6
  import { LibPicture } from 'esoftplay/cache/lib/picture/import';
@@ -19,7 +19,7 @@ export interface EventTms_check_ticketProps {
19
19
  gate?: any
20
20
  }
21
21
  export default function m(props: EventTms_check_ticketProps): any {
22
- let inputAccessCode = React.useRef<LibInput_circle2>(null)
22
+ let inputAccessCode = React.useRef<EventInput_rectangle>(null)
23
23
 
24
24
  function doSubmit() {
25
25
 
@@ -48,7 +48,7 @@ export default function m(props: EventTms_check_ticketProps): any {
48
48
  <Text allowFontScaling={false} style={{ opacity: 0.7, fontFamily: "Arial", fontSize: 14, fontWeight: "bold", fontStyle: "normal", letterSpacing: 0, textAlign: "center", marginTop: 20 }}>{esp.lang("event/tms_check_ticket", "scan_qr_ticket")}</Text>
49
49
  <Text allowFontScaling={false} style={{ opacity: 0.6, fontFamily: "Arial", fontSize: 12, fontWeight: "normal", fontStyle: "normal", letterSpacing: 0, textAlign: "center", marginTop: 17 }}>{esp.lang("transfer/index", "or")}</Text>
50
50
 
51
- <LibInput_circle2
51
+ <EventInput_rectangle
52
52
  ref={inputAccessCode}
53
53
  onSubmitEditing={() => doSubmit()}
54
54
  blurOnSubmit
package/event/tms_in.tsx CHANGED
@@ -3,12 +3,12 @@ import { LibLoading } from 'esoftplay/cache/lib/loading/import';
3
3
  import { LibNavigation } from 'esoftplay/cache/lib/navigation/import';
4
4
  import { LibStyle } from 'esoftplay/cache/lib/style/import';
5
5
 
6
+ import { EventFirebase_socket } from 'esoftplay/cache/event/firebase_socket/import';
6
7
  import { EventTms_homeProperty } from 'esoftplay/cache/event/tms_home/import';
7
8
  import { LibDialog } from 'esoftplay/cache/lib/dialog/import';
8
9
  import esp from 'esoftplay/esp';
9
10
  import React, { useEffect } from 'react';
10
11
  import { View } from 'react-native';
11
- import useFirebaseSocket from '../lib/firebase_socket';
12
12
 
13
13
 
14
14
  export interface EventTms_inArgs {
@@ -34,7 +34,7 @@ export default function m(props: EventTms_inProps): any {
34
34
  scan_type
35
35
  } = LibNavigation.getArgsAll<any>(props)
36
36
 
37
- const { get } = useFirebaseSocket()
37
+ const { get } = EventFirebase_socket()
38
38
 
39
39
  let whatTypeGate = gate_type == "1" ? 'in' : 'out'
40
40
 
package/event/tms_log.tsx CHANGED
@@ -1,17 +1,17 @@
1
1
  // withHooks
2
2
  import { useEffect, useRef } from 'react';
3
3
 
4
- import { EventTms_homeProperty } from 'esoftplay/cache/event/tms_home/import';
5
4
  import { EventButton } from 'esoftplay/cache/event/button/import';
6
- import { EventTms_in_log } from 'esoftplay/cache/event/tms_in_log/import';
7
- import { EventTms_in_successProperty } from 'esoftplay/cache/event/tms_in_success/import';
8
- import { EventTms_out_log } from 'esoftplay/cache/event/tms_out_log/import';
9
- import { EventTms_out_successProperty } from 'esoftplay/cache/event/tms_out_success/import';
5
+ import { EventHeader } from 'esoftplay/cache/event/header/import';
6
+ import { EventTms_homeProperty } from 'esoftplay/cache/event/tms_home/import';
10
7
  import { EventTms_in_hall_log } from 'esoftplay/cache/event/tms_in_hall_log/import';
11
8
  import { EventTms_in_hall_successProperty } from 'esoftplay/cache/event/tms_in_hall_success/import';
9
+ import { EventTms_in_log } from 'esoftplay/cache/event/tms_in_log/import';
10
+ import { EventTms_in_successProperty } from 'esoftplay/cache/event/tms_in_success/import';
12
11
  import { EventTms_out_hall_log } from 'esoftplay/cache/event/tms_out_hall_log/import';
13
12
  import { EventTms_out_hall_successProperty } from 'esoftplay/cache/event/tms_out_hall_success/import';
14
- import { EventHeader } from 'esoftplay/cache/event/header/import';
13
+ import { EventTms_out_log } from 'esoftplay/cache/event/tms_out_log/import';
14
+ import { EventTms_out_successProperty } from 'esoftplay/cache/event/tms_out_success/import';
15
15
  import { LibCollaps } from 'esoftplay/cache/lib/collaps/import';
16
16
  import { LibCurl } from 'esoftplay/cache/lib/curl/import';
17
17
  import { LibDialog } from 'esoftplay/cache/lib/dialog/import';
@@ -31,8 +31,7 @@ import Storage from 'esoftplay/storage';
31
31
  import Constants from 'expo-constants';
32
32
  import * as FileSystem from 'expo-file-system';
33
33
  import React from 'react';
34
- import { ScrollView, Text, View } from 'react-native';
35
- import Pressable from '../lib/pressable';
34
+ import { Pressable, ScrollView, Text, View } from 'react-native';
36
35
 
37
36
 
38
37
  export interface EventTms_logArgs {
@@ -2,8 +2,8 @@
2
2
  import { useEffect } from 'react';
3
3
 
4
4
  import { EventTms_homeProperty } from 'esoftplay/cache/event/tms_home/import';
5
- import { EventTms_out_successProperty } from 'esoftplay/cache/event/tms_out_success/import';
6
5
  import { EventTms_logProperty } from 'esoftplay/cache/event/tms_log/import';
6
+ import { EventTms_out_successProperty } from 'esoftplay/cache/event/tms_out_success/import';
7
7
  import { LibLoading } from 'esoftplay/cache/lib/loading/import';
8
8
  import { LibStyle } from 'esoftplay/cache/lib/style/import';
9
9
  import { LibTextstyle } from 'esoftplay/cache/lib/textstyle/import';
@@ -13,8 +13,7 @@ import esp from 'esoftplay/esp';
13
13
  import useSafeState from 'esoftplay/state';
14
14
  import { useTimeout } from 'esoftplay/timeout';
15
15
  import React from 'react';
16
- import { Text, View } from 'react-native';
17
- import Pressable from '../lib/pressable';
16
+ import { Pressable, Text, View } from 'react-native';
18
17
 
19
18
 
20
19
  export interface EventTms_out_logArgs {
package/id.json CHANGED
@@ -554,6 +554,9 @@
554
554
  "select_date_ticket": "Pilih Tanggal Tiket",
555
555
  "video": "Video"
556
556
  },
557
+ "event/distribution_lock": {
558
+ "message": "Data Anda sedang diproses. Proses ini mungkin memerlukan waktu lebih lama dari biasanya. Terima kasih atas kesabaran Anda."
559
+ },
557
560
  "event/entrance": {
558
561
  "ticket_empty": "Tiket anda sudah digunakan, mohon periksa kembali tiket anda",
559
562
  "ticket_empty_today": "Anda tidak mempunyai tiket untuk hari ini, mohon periksa kembali tiket anda",
@@ -852,6 +855,12 @@
852
855
  "start_from": "Start from ",
853
856
  "start_from_free": "Start from Free"
854
857
  },
858
+ "event/loading_page": {
859
+ "back": "Kembali",
860
+ "from": "Dari",
861
+ "oops": "Oops",
862
+ "receiver": "Penerima"
863
+ },
855
864
  "event/log": {
856
865
  "alert": "Jika terjadi kendala dalam mengirimkan data atau data tidak dapat terkirim, silakan kirim log ke admin dan melakukan closing.",
857
866
  "btn_close": "Closing Sekarang",
@@ -1151,6 +1160,10 @@
1151
1160
  "event/order_waiting": {
1152
1161
  "title": "Menunggu Pembayaran"
1153
1162
  },
1163
+ "event/popup": {
1164
+ "cancel": "Cancel",
1165
+ "confirm": "Confirm"
1166
+ },
1154
1167
  "event/qc_idcard": {
1155
1168
  "scan": "Scan",
1156
1169
  "search_exhibitor": "Cari exhibitor..",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "esoftplay-event",
3
- "version": "0.0.0-b",
3
+ "version": "0.0.0-d",
4
4
  "description": "event module on esoftplay framework",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/publisher.js CHANGED
@@ -80,5 +80,5 @@ if (fs.existsSync("./package.json")) {
80
80
  const newPackJson = { ...packJson, version: nextVersion }
81
81
  fs.writeFileSync("./package.json", JSON.stringify(newPackJson, undefined, 2))
82
82
  shell("npm publish")
83
- console.log("npm install --save esoftplay-" + moduleName + "@" + nextVersion + "")
83
+ console.log("bun add esoftplay-" + moduleName + "@" + nextVersion + " && bun install")
84
84
  }