tf-checkout-react 1.0.103 → 1.0.106

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 (96) hide show
  1. package/dist/api/index.d.ts +3 -1
  2. package/dist/components/common/CustomField.d.ts +1 -1
  3. package/dist/components/common/DatePickerField.d.ts +14 -0
  4. package/dist/components/common/RedirectModal.d.ts +7 -0
  5. package/dist/components/countdown/index.d.ts +3 -1
  6. package/dist/components/orderDetailsContainer/ticketsTable.d.ts +2 -0
  7. package/dist/components/rsvpContainer/index.d.ts +7 -0
  8. package/dist/components/ticketResale/index.d.ts +5 -3
  9. package/dist/components/ticketsContainer/AccessCodeSection.d.ts +7 -0
  10. package/dist/components/ticketsContainer/PromoCodeSection.d.ts +5 -9
  11. package/dist/components/ticketsContainer/TicketsSection.d.ts +6 -3
  12. package/dist/components/ticketsContainer/index.d.ts +9 -2
  13. package/dist/components/timerWidget/index.d.ts +3 -3
  14. package/dist/images/cross.svg +44 -0
  15. package/dist/images/done.svg +3 -3
  16. package/dist/index.d.ts +2 -0
  17. package/dist/tf-checkout-react.cjs.development.js +639 -223
  18. package/dist/tf-checkout-react.cjs.development.js.map +1 -1
  19. package/dist/tf-checkout-react.cjs.production.min.js +1 -1
  20. package/dist/tf-checkout-react.cjs.production.min.js.map +1 -1
  21. package/dist/tf-checkout-react.esm.js +645 -231
  22. package/dist/tf-checkout-react.esm.js.map +1 -1
  23. package/dist/tf-checkout-styles.css +1 -1
  24. package/package.json +89 -89
  25. package/src/.DS_Store +0 -0
  26. package/src/.d.ts +2 -2
  27. package/src/api/index.ts +300 -278
  28. package/src/assets/images/cross.svg +44 -0
  29. package/src/assets/images/done.svg +3 -3
  30. package/src/components/.DS_Store +0 -0
  31. package/src/components/billing-info-container/index.tsx +811 -799
  32. package/src/components/billing-info-container/style.css +105 -105
  33. package/src/components/billing-info-container/utils.ts +225 -224
  34. package/src/components/common/CheckboxField.tsx +41 -41
  35. package/src/components/common/CustomField.tsx +87 -84
  36. package/src/components/common/DatePickerField.tsx +98 -0
  37. package/src/components/common/FormikPhoneNumberField.tsx +51 -51
  38. package/src/components/common/Loader.tsx +9 -9
  39. package/src/components/common/RadioField.tsx +35 -35
  40. package/src/components/common/RedirectModal.tsx +43 -0
  41. package/src/components/common/SelectField.tsx +80 -80
  42. package/src/components/common/SnackbarAlert.tsx +53 -53
  43. package/src/components/common/index.tsx +4 -4
  44. package/src/components/confirmModal/index.tsx +51 -51
  45. package/src/components/confirmModal/style.css +21 -21
  46. package/src/components/confirmationContainer/config.ts +72 -72
  47. package/src/components/confirmationContainer/index.tsx +197 -197
  48. package/src/components/confirmationContainer/social-buttons.tsx +94 -94
  49. package/src/components/confirmationContainer/style.css +202 -202
  50. package/src/components/countdown/index.tsx +98 -89
  51. package/src/components/countdown/style.css +9 -9
  52. package/src/components/index.ts +7 -7
  53. package/src/components/loginModal/index.tsx +209 -209
  54. package/src/components/loginModal/style.css +71 -71
  55. package/src/components/myTicketsContainer/index.tsx +196 -196
  56. package/src/components/myTicketsContainer/row.tsx +41 -41
  57. package/src/components/myTicketsContainer/style.css +39 -39
  58. package/src/components/myTicketsContainer/tableConfig.tsx +34 -34
  59. package/src/components/orderDetailsContainer/index.tsx +252 -249
  60. package/src/components/orderDetailsContainer/style.css +72 -72
  61. package/src/components/orderDetailsContainer/ticketsTable.tsx +130 -124
  62. package/src/components/paymentContainer/index.tsx +285 -284
  63. package/src/components/registerModal/index.tsx +190 -190
  64. package/src/components/rsvpContainer/index.tsx +126 -0
  65. package/src/components/stripePayment/index.tsx +254 -253
  66. package/src/components/stripePayment/style.css +59 -59
  67. package/src/components/ticketResale/index.tsx +74 -56
  68. package/src/components/ticketResaleModal/index.tsx +215 -210
  69. package/src/components/ticketResaleModal/style.css +28 -28
  70. package/src/components/ticketsContainer/AccessCodeSection.tsx +50 -0
  71. package/src/components/ticketsContainer/PromoCodeSection.tsx +88 -99
  72. package/src/components/ticketsContainer/ReferralLogic.tsx +31 -33
  73. package/src/components/ticketsContainer/TicketRow.tsx +83 -83
  74. package/src/components/ticketsContainer/TicketsSection.tsx +90 -81
  75. package/src/components/ticketsContainer/index.tsx +464 -430
  76. package/src/components/ticketsContainer/style.css +181 -181
  77. package/src/components/ticketsContainer/utils.ts +11 -11
  78. package/src/components/timerWidget/index.tsx +87 -70
  79. package/src/components/timerWidget/style.css +34 -26
  80. package/src/components/waitingList/index.tsx +178 -178
  81. package/src/components/waitingList/style.css +26 -26
  82. package/src/env.ts +20 -20
  83. package/src/index.ts +15 -13
  84. package/src/normalizers/index.ts +45 -45
  85. package/src/types/billing-info-data.ts +37 -37
  86. package/src/types/payment-field.ts +7 -7
  87. package/src/types/referral-promotion.ts +7 -7
  88. package/src/utils/createCheckoutDataBodyWithDefaultHolder.ts +59 -59
  89. package/src/utils/downloadPDF.tsx +30 -30
  90. package/src/utils/formikErrorFocus.ts +24 -24
  91. package/src/utils/getImage.ts +14 -14
  92. package/src/utils/getQueryVariable.ts +13 -13
  93. package/src/utils/index.ts +5 -5
  94. package/src/utils/setConfigs.ts +26 -26
  95. package/src/utils/showZero.tsx +10 -10
  96. package/src/validators/index.ts +20 -20
@@ -1,249 +1,252 @@
1
- import React, { useState, useEffect } from 'react'
2
- import './style.css'
3
-
4
- import Table from '@mui/material/Table'
5
- import TableBody from '@mui/material/TableBody'
6
- import TableCell from '@mui/material/TableCell'
7
- import TableContainer from '@mui/material/TableContainer'
8
- import TableHead from '@mui/material/TableHead'
9
- import TableRow from '@mui/material/TableRow'
10
- import Paper from '@mui/material/Paper'
11
- import CircularProgress from '@mui/material/CircularProgress'
12
- import _get from 'lodash/get'
13
- import _has from 'lodash/has'
14
- import { getOrderDetails } from '../../api'
15
- import TicketsTable, { ITicketTypes } from './ticketsTable'
16
- import { TicketResaleModal, InitialValuesTypes } from '../ticketResaleModal'
17
- import ConfirmModal from '../confirmModal'
18
- import { resaleTicket, removeFromResale } from '../../api'
19
-
20
- interface TicketTypes {
21
- currency: string;
22
- discount: string;
23
- name: string;
24
- price: string;
25
- quantity: string;
26
- total: string;
27
- }
28
-
29
- interface OrderDetailsTypes {
30
- onGetOrdersSuccess: (res: any) => void;
31
- onGetOrdersError: (err: any) => void;
32
- }
33
-
34
- const getTotal = (data: any) => {
35
- if (!data?.total || !_has(data, 'items.ticket_types.length')) return ''
36
-
37
- return data.items.ticket_types[0].currency + data.total
38
- }
39
-
40
- export const OrderDetailsContainer = ({
41
- onGetOrdersSuccess = () => {},
42
- onGetOrdersError = () => {},
43
- }: OrderDetailsTypes) => {
44
- const [data, setData] = useState<any>({})
45
- const [loading, setLoading] = useState(true)
46
- const [showResaleModal, setShowResaleModal] = useState(false)
47
- const [showRemoveResaleModal, setShowRemoveResaleModal] = useState(false)
48
- const [activeTicket, setActiveTicket] = useState<any>(null)
49
-
50
- useEffect(() => {
51
- (async () => {
52
- try {
53
- setLoading(true)
54
- let orderId = ''
55
- if (typeof window !== 'undefined') {
56
- const params: URLSearchParams = new URL(`${window.location}`)
57
- .searchParams
58
- orderId = params.get('o') || ''
59
- }
60
- const response = await getOrderDetails(orderId)
61
- onGetOrdersSuccess(response)
62
-
63
- const data = _get(response, 'data.data.attributes')
64
-
65
- setData(data)
66
- } catch (error) {
67
- onGetOrdersError(error)
68
- } finally {
69
- setLoading(false)
70
- }
71
- })()
72
- }, [])
73
-
74
- const handleSellTicket = (ticket: ITicketTypes) => {
75
- setActiveTicket(ticket)
76
- setShowResaleModal(true)
77
- }
78
-
79
- const handleOnClose = () => {
80
- setShowResaleModal(false)
81
- setActiveTicket(null)
82
- }
83
-
84
- const handleOnSubmit = async (values: InitialValuesTypes) => {
85
- try {
86
- setLoading(true)
87
- const { to, first_name, last_name, email, confirm_email, confirm } = values
88
- const formData = new FormData();
89
- formData.append('to', to)
90
- formData.append('first_name', first_name)
91
- formData.append('last_name', last_name)
92
- formData.append('email', email)
93
- formData.append('confirm_email', confirm_email)
94
- formData.append('confirm', String(confirm))
95
-
96
- await resaleTicket(formData, activeTicket.hash)
97
- const updatedData = { ...data }
98
- updatedData?.tickets?.forEach((ticket: ITicketTypes) => {
99
- if(ticket.hash === activeTicket.hash) {
100
- ticket.is_sellable = false
101
- ticket.is_on_sale = true
102
- }
103
- })
104
-
105
- setData(updatedData)
106
- } catch (error) {
107
- // ...
108
- } finally {
109
- setShowResaleModal(false)
110
- setLoading(false)
111
- }
112
- }
113
-
114
- const handleRemoveFromResale = (ticket: ITicketTypes) => {
115
- setShowRemoveResaleModal(true)
116
- setActiveTicket(ticket)
117
- }
118
-
119
- const onCloseRemoveResale = () => {
120
- setShowRemoveResaleModal(false)
121
- setActiveTicket(null)
122
- }
123
-
124
- const onConfirmRemoveResale = async () => {
125
- try {
126
- setLoading(true)
127
- await removeFromResale(activeTicket.hash)
128
- const updatedData = { ...data }
129
- updatedData?.tickets?.forEach((ticket: ITicketTypes) => {
130
- if(ticket.hash === activeTicket.hash) {
131
- ticket.is_sellable = true
132
- ticket.is_on_sale = false
133
- }
134
- })
135
-
136
- setData(updatedData)
137
- } catch (error) {
138
- // ...
139
- } finally {
140
- setShowRemoveResaleModal(false)
141
- setLoading(false)
142
- }
143
- }
144
-
145
- return (
146
- <div className="order-details">
147
- {loading ? (
148
- <div className="loading">
149
- <CircularProgress />
150
- </div>
151
- ) : (
152
- <>
153
- <h1 className="layout-title">Order Details</h1>
154
- <div className="order-summary-box">
155
- <h4 className="sub-title">Order Summary</h4>
156
- <div className="personal-link">
157
- <b>Your personal share link for this event is: </b>
158
- <a
159
- href={data?.personal_share_link}
160
- target="_blank"
161
- rel="noreferrer"
162
- >
163
- {data?.personal_share_link}
164
- </a>
165
- </div>
166
- <TableContainer component={Paper}>
167
- <Table aria-label="collapsible table">
168
- <TableHead>
169
- <TableRow>
170
- <TableCell>Items</TableCell>
171
- <TableCell>Price</TableCell>
172
- <TableCell>Quantity</TableCell>
173
- <TableCell>Total</TableCell>
174
- </TableRow>
175
- </TableHead>
176
- <TableBody>
177
- {data?.items?.ticket_types?.map(
178
- (ticket: TicketTypes, index: number) => (
179
- <TableRow key={index}>
180
- <TableCell>
181
- <b>Ticket Type: </b>
182
- {ticket.name}
183
- </TableCell>
184
- <TableCell>{ticket.currency + ticket.price}</TableCell>
185
- <TableCell>{ticket.quantity}</TableCell>
186
- <TableCell>{ticket.currency + ticket.total}</TableCell>
187
- </TableRow>
188
- )
189
- )}
190
- {data?.items?.add_ons?.map(
191
- (ticket: TicketTypes, index: number) => (
192
- <TableRow key={index}>
193
- <TableCell>
194
- <b>Add-On: </b>
195
- {ticket.name}
196
- </TableCell>
197
- <TableCell>{ticket.currency + ticket.price}</TableCell>
198
- <TableCell>{ticket.quantity}</TableCell>
199
- <TableCell>{ticket.currency + ticket.total}</TableCell>
200
- </TableRow>
201
- )
202
- )}
203
- <TableRow className="total-row">
204
- <TableCell />
205
- <TableCell />
206
- <TableCell>Total</TableCell>
207
- <TableCell>{getTotal(data)}</TableCell>
208
- </TableRow>
209
- </TableBody>
210
- </Table>
211
- </TableContainer>
212
- </div>
213
- <TicketsTable
214
- tickets={data.tickets}
215
- handleSellTicket={handleSellTicket}
216
- handleRemoveFromResale={handleRemoveFromResale}
217
- />
218
- <div className="return-button-container">
219
- <button
220
- type="button"
221
- className="return-button"
222
- onClick={() => {
223
- if (typeof window !== 'undefined') {
224
- window.location.assign('/orders')
225
- }
226
- }}
227
- >
228
- Return to Order History
229
- </button>
230
- </div>
231
- </>
232
- )}
233
- {showResaleModal && (
234
- <TicketResaleModal
235
- ticket={activeTicket}
236
- onClose={handleOnClose}
237
- onSubmit={handleOnSubmit}
238
- />
239
- )}
240
- {showRemoveResaleModal && (
241
- <ConfirmModal
242
- message="Are you sure you want to withdraw your ticket from resale?"
243
- onClose={onCloseRemoveResale}
244
- onConfirm={onConfirmRemoveResale}
245
- />
246
- )}
247
- </div>
248
- )
249
- }
1
+ import React, { useState, useEffect } from 'react'
2
+ import './style.css'
3
+
4
+ import Table from '@mui/material/Table'
5
+ import TableBody from '@mui/material/TableBody'
6
+ import TableCell from '@mui/material/TableCell'
7
+ import TableContainer from '@mui/material/TableContainer'
8
+ import TableHead from '@mui/material/TableHead'
9
+ import TableRow from '@mui/material/TableRow'
10
+ import Paper from '@mui/material/Paper'
11
+ import CircularProgress from '@mui/material/CircularProgress'
12
+ import _get from 'lodash/get'
13
+ import _has from 'lodash/has'
14
+ import _find from 'lodash/find'
15
+ import { getOrderDetails } from '../../api'
16
+ import TicketsTable, { ITicketTypes } from './ticketsTable'
17
+ import { TicketResaleModal, InitialValuesTypes } from '../ticketResaleModal'
18
+ import ConfirmModal from '../confirmModal'
19
+ import { resaleTicket, removeFromResale } from '../../api'
20
+
21
+ interface TicketTypes {
22
+ currency: string;
23
+ discount: string;
24
+ name: string;
25
+ price: string;
26
+ quantity: string;
27
+ total: string;
28
+ }
29
+
30
+ interface OrderDetailsTypes {
31
+ onGetOrdersSuccess: (res: any) => void;
32
+ onGetOrdersError: (err: any) => void;
33
+ }
34
+
35
+ const getTotal = (data: any) => {
36
+ if (!data?.total || !_has(data, 'items.ticket_types.length')) return ''
37
+
38
+ return data.items.ticket_types[0].currency + data.total
39
+ }
40
+
41
+ export const OrderDetailsContainer = ({
42
+ onGetOrdersSuccess = () => {},
43
+ onGetOrdersError = () => {},
44
+ }: OrderDetailsTypes) => {
45
+ const [data, setData] = useState<any>({})
46
+ const [loading, setLoading] = useState(true)
47
+ const [showResaleModal, setShowResaleModal] = useState(false)
48
+ const [showRemoveResaleModal, setShowRemoveResaleModal] = useState(false)
49
+ const [activeTicket, setActiveTicket] = useState<any>(null)
50
+
51
+ useEffect(() => {
52
+ (async () => {
53
+ try {
54
+ setLoading(true)
55
+ let orderId = ''
56
+ if (typeof window !== 'undefined') {
57
+ const params: URLSearchParams = new URL(`${window.location}`)
58
+ .searchParams
59
+ orderId = params.get('o') || ''
60
+ }
61
+ const response = await getOrderDetails(orderId)
62
+ onGetOrdersSuccess(response)
63
+
64
+ const data = _get(response, 'data.data.attributes')
65
+
66
+ setData(data)
67
+ } catch (error) {
68
+ onGetOrdersError(error)
69
+ } finally {
70
+ setLoading(false)
71
+ }
72
+ })()
73
+ }, [])
74
+
75
+ const handleSellTicket = (ticket: ITicketTypes) => {
76
+ const ticketTypesArr = data.items.ticket_types
77
+ const sellTicketType = _find(ticketTypesArr, ticketType => ticketType.hash === ticket.ticket_type_hash)
78
+ setActiveTicket({ ...ticket, ticket_type_is_active: sellTicketType?.active })
79
+ setShowResaleModal(true)
80
+ }
81
+
82
+ const handleOnClose = () => {
83
+ setShowResaleModal(false)
84
+ setActiveTicket(null)
85
+ }
86
+
87
+ const handleOnSubmit = async (values: InitialValuesTypes) => {
88
+ try {
89
+ setLoading(true)
90
+ const { to, first_name, last_name, email, confirm_email, confirm } = values
91
+ const formData = new FormData();
92
+ formData.append('to', to)
93
+ formData.append('first_name', first_name)
94
+ formData.append('last_name', last_name)
95
+ formData.append('email', email)
96
+ formData.append('confirm_email', confirm_email)
97
+ formData.append('confirm', String(confirm))
98
+
99
+ await resaleTicket(formData, activeTicket.hash)
100
+ const updatedData = { ...data }
101
+ updatedData?.tickets?.forEach((ticket: ITicketTypes) => {
102
+ if(ticket.hash === activeTicket.hash) {
103
+ ticket.is_sellable = false
104
+ ticket.is_on_sale = true
105
+ }
106
+ })
107
+
108
+ setData(updatedData)
109
+ } catch (error) {
110
+ // ...
111
+ } finally {
112
+ setShowResaleModal(false)
113
+ setLoading(false)
114
+ }
115
+ }
116
+
117
+ const handleRemoveFromResale = (ticket: ITicketTypes) => {
118
+ setShowRemoveResaleModal(true)
119
+ setActiveTicket(ticket)
120
+ }
121
+
122
+ const onCloseRemoveResale = () => {
123
+ setShowRemoveResaleModal(false)
124
+ setActiveTicket(null)
125
+ }
126
+
127
+ const onConfirmRemoveResale = async () => {
128
+ try {
129
+ setLoading(true)
130
+ await removeFromResale(activeTicket.hash)
131
+ const updatedData = { ...data }
132
+ updatedData?.tickets?.forEach((ticket: ITicketTypes) => {
133
+ if(ticket.hash === activeTicket.hash) {
134
+ ticket.is_sellable = true
135
+ ticket.is_on_sale = false
136
+ }
137
+ })
138
+
139
+ setData(updatedData)
140
+ } catch (error) {
141
+ // ...
142
+ } finally {
143
+ setShowRemoveResaleModal(false)
144
+ setLoading(false)
145
+ }
146
+ }
147
+
148
+ return (
149
+ <div className="order-details">
150
+ {loading ? (
151
+ <div className="loading">
152
+ <CircularProgress />
153
+ </div>
154
+ ) : (
155
+ <>
156
+ <h1 className="layout-title">Order Details</h1>
157
+ <div className="order-summary-box">
158
+ <h4 className="sub-title">Order Summary</h4>
159
+ <div className="personal-link">
160
+ <b>Your personal share link for this event is: </b>
161
+ <a
162
+ href={data?.personal_share_link}
163
+ target="_blank"
164
+ rel="noreferrer"
165
+ >
166
+ {data?.personal_share_link}
167
+ </a>
168
+ </div>
169
+ <TableContainer component={Paper}>
170
+ <Table aria-label="collapsible table">
171
+ <TableHead>
172
+ <TableRow>
173
+ <TableCell>Items</TableCell>
174
+ <TableCell>Price</TableCell>
175
+ <TableCell>Quantity</TableCell>
176
+ <TableCell>Total</TableCell>
177
+ </TableRow>
178
+ </TableHead>
179
+ <TableBody>
180
+ {data?.items?.ticket_types?.map(
181
+ (ticket: TicketTypes, index: number) => (
182
+ <TableRow key={index}>
183
+ <TableCell>
184
+ <b>Ticket Type: </b>
185
+ {ticket.name}
186
+ </TableCell>
187
+ <TableCell>{ticket.currency + ticket.price}</TableCell>
188
+ <TableCell>{ticket.quantity}</TableCell>
189
+ <TableCell>{ticket.currency + ticket.total}</TableCell>
190
+ </TableRow>
191
+ )
192
+ )}
193
+ {data?.items?.add_ons?.map(
194
+ (ticket: TicketTypes, index: number) => (
195
+ <TableRow key={index}>
196
+ <TableCell>
197
+ <b>Add-On: </b>
198
+ {ticket.name}
199
+ </TableCell>
200
+ <TableCell>{ticket.currency + ticket.price}</TableCell>
201
+ <TableCell>{ticket.quantity}</TableCell>
202
+ <TableCell>{ticket.currency + ticket.total}</TableCell>
203
+ </TableRow>
204
+ )
205
+ )}
206
+ <TableRow className="total-row">
207
+ <TableCell />
208
+ <TableCell />
209
+ <TableCell>Total</TableCell>
210
+ <TableCell>{getTotal(data)}</TableCell>
211
+ </TableRow>
212
+ </TableBody>
213
+ </Table>
214
+ </TableContainer>
215
+ </div>
216
+ <TicketsTable
217
+ tickets={data.tickets}
218
+ handleSellTicket={handleSellTicket}
219
+ handleRemoveFromResale={handleRemoveFromResale}
220
+ />
221
+ <div className="return-button-container">
222
+ <button
223
+ type="button"
224
+ className="return-button"
225
+ onClick={() => {
226
+ if (typeof window !== 'undefined') {
227
+ window.location.assign('/orders')
228
+ }
229
+ }}
230
+ >
231
+ Return to Order History
232
+ </button>
233
+ </div>
234
+ </>
235
+ )}
236
+ {showResaleModal && (
237
+ <TicketResaleModal
238
+ ticket={activeTicket}
239
+ onClose={handleOnClose}
240
+ onSubmit={handleOnSubmit}
241
+ />
242
+ )}
243
+ {showRemoveResaleModal && (
244
+ <ConfirmModal
245
+ message="Are you sure you want to withdraw your ticket from resale?"
246
+ onClose={onCloseRemoveResale}
247
+ onConfirm={onConfirmRemoveResale}
248
+ />
249
+ )}
250
+ </div>
251
+ )
252
+ }
@@ -1,73 +1,73 @@
1
- .order-details {
2
- max-width: 940px;
3
- margin: 0 auto;
4
- }
5
- .order-details .loading {
6
- width: 100%;
7
- display: flex;
8
- justify-content: center;
9
- align-items: center;
10
- height: 100vh;
11
- position: fixed;
12
- top: 0;
13
- left: 0;
14
- background-color: rgba(0, 0, 0, .4);
15
- z-index: 1400;
16
- }
17
- .order-details .layout-title {
18
- font-size: 24px;
19
- font-weight: 400;
20
- }
21
- .order-details .sub-title {
22
- font-size: 18px;
23
- font-weight: 400;
24
- margin: 10px 0;
25
- }
26
- .order-details .order-summary-box {
27
- margin-top: 30px;
28
- }
29
- .order-details .total-row td {
30
- font-weight: 700;
31
- color: white;
32
- }
33
- .order-details th {
34
- font-weight: 700;
35
- color: white;
36
- }
37
- .order-details .tickets-box {
38
- margin-top: 30px;
39
- }
40
- .order-details .ticket-add-on-table {
41
- background-color: #fcf8e3;;
42
- }
43
- .order-details .action-button {
44
- width: max-content;
45
- font-weight: 400;
46
- font-size: 14px;
47
- line-height: normal;
48
- min-height: auto;
49
- padding: 12px;
50
- border: 1px solid white;
51
- margin-top: 20px;
52
- margin-bottom: 20px;
53
- background-color: #212529;
54
- border-radius: 0;
55
- color: #fff;
56
- position: relative;
57
- display: block;
58
- cursor: pointer;
59
- font-family: 'Bebas Neue';
60
- text-transform: uppercase;
61
- text-align: center;
62
- overflow: hidden;
63
- text-overflow: ellipsis;
64
- outline: none;
65
- text-decoration: none;
66
- }
67
- .order-details .download-button:hover {
68
- background-color: #505050;
69
- }
70
-
71
- .order-details .personal-link {
72
- padding: 20px 0;
1
+ .order-details {
2
+ max-width: 940px;
3
+ margin: 0 auto;
4
+ }
5
+ .order-details .loading {
6
+ width: 100%;
7
+ display: flex;
8
+ justify-content: center;
9
+ align-items: center;
10
+ height: 100vh;
11
+ position: fixed;
12
+ top: 0;
13
+ left: 0;
14
+ background-color: rgba(0, 0, 0, .4);
15
+ z-index: 1400;
16
+ }
17
+ .order-details .layout-title {
18
+ font-size: 24px;
19
+ font-weight: 400;
20
+ }
21
+ .order-details .sub-title {
22
+ font-size: 18px;
23
+ font-weight: 400;
24
+ margin: 10px 0;
25
+ }
26
+ .order-details .order-summary-box {
27
+ margin-top: 30px;
28
+ }
29
+ .order-details .total-row td {
30
+ font-weight: 700;
31
+ color: white;
32
+ }
33
+ .order-details th {
34
+ font-weight: 700;
35
+ color: white;
36
+ }
37
+ .order-details .tickets-box {
38
+ margin-top: 30px;
39
+ }
40
+ .order-details .ticket-add-on-table {
41
+ background-color: #fcf8e3;;
42
+ }
43
+ .order-details .action-button {
44
+ width: max-content;
45
+ font-weight: 400;
46
+ font-size: 14px;
47
+ line-height: normal;
48
+ min-height: auto;
49
+ padding: 12px;
50
+ border: 1px solid white;
51
+ margin-top: 20px;
52
+ margin-bottom: 20px;
53
+ background-color: #212529;
54
+ border-radius: 0;
55
+ color: #fff;
56
+ position: relative;
57
+ display: block;
58
+ cursor: pointer;
59
+ font-family: 'Bebas Neue';
60
+ text-transform: uppercase;
61
+ text-align: center;
62
+ overflow: hidden;
63
+ text-overflow: ellipsis;
64
+ outline: none;
65
+ text-decoration: none;
66
+ }
67
+ .order-details .download-button:hover {
68
+ background-color: #505050;
69
+ }
70
+
71
+ .order-details .personal-link {
72
+ padding: 20px 0;
73
73
  }