@rozoai/intent-pay 0.0.11 → 0.0.13
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/build/assets/rozo-dark.d.ts +6 -0
- package/build/assets/rozo-text.d.ts +2 -0
- package/build/assets/rozo-white.d.ts +6 -0
- package/build/package.json.js +1 -1
- package/build/src/assets/rozo-dark.js +8 -0
- package/build/src/assets/rozo-dark.js.map +1 -0
- package/build/src/assets/rozo-text.js +6 -0
- package/build/src/assets/rozo-text.js.map +1 -0
- package/build/src/components/Common/PoweredByFooter/index.js +23 -8
- package/build/src/components/Common/PoweredByFooter/index.js.map +1 -1
- package/build/src/components/Pages/Confirmation/index.js +1 -2
- package/build/src/components/Pages/Confirmation/index.js.map +1 -1
- package/build/src/components/Pages/Error/index.js +1 -2
- package/build/src/components/Pages/Error/index.js.map +1 -1
- package/build/src/components/Pages/SelectDepositAddressChain/index.js +2 -2
- package/build/src/components/Pages/SelectDepositAddressChain/index.js.map +1 -1
- package/package.json +1 -1
package/build/package.json.js
CHANGED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
|
|
3
|
+
const RozoDark = ({ width = 429, height = 348, ...props }) => {
|
|
4
|
+
return (jsxs("svg", { viewBox: "0 0 429 348", width: width, height: height, ...props, children: [jsx("path", { d: "m70 35.5c12.8 0 25.1 0 37.4-0.1 4.6 0 9.4 0.2 13.9-0.6 4.9-0.7 9.5-2.6 14.2-3.8 5.5-1.3 11.1-3.1 16.6-3.3 16.6-0.6 33.2-0.7 49.8-0.6 3.2 0 6.2 2.1 9.4 3 4.9 1.4 9.8 3.1 14.9 3.7 52.3 6.2 104.9 9 157.6 8.2 5.6-0.1 10.7-1.2 16.1-3.8 4.7-2.3 11.1-1.1 16.9-1.4 0.1 2.4 0.2 3.4 0.2 4.4 0 71.2-0.1 142.3 0.1 213.5 0 4.8-1.7 7.2-6 7.8-11.2 1.6-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7.6 14.2-18.4 23.4-35.6 22.9-1 0-2.4 0.1-3.2 0.8-7.8 5.8-16.4 10-26.3 10.9zm24.1-34.3c-7.1 9.1-16.2 11.2-27 9.6 0.6 7.3 0.1 13.6-8.8 16.5 11 3.3 20.1 1.4 28.5-2.8 7.6-3.8 11.1-15.3 7.2-23.3z", fill: "#000" }), jsx("path", { d: "m33 189.5c0-48.1 0-96.3-0.1-144.5 0-2.3-0.8-4.8-1.6-7.1-1.5-4-3.6-7.9-4.8-12-1.2-4.5-1.8-9 3.4-12.3 3.4-2.1 5.9-7.5 9.1-7.8 3.3-0.3 7 3.8 10.5 5.9 2.2 1.3 4.6 2.3 6.2 4.1 3.2 3.6 3.4 8.1 0.3 11.4-8.7 9.4-9.3 20.5-9.2 32.4 0.3 91.7 0.2 183.3 0.2 275 0 6.9-1.4 8.4-7.1 8.4-4.7-0.1-6.9-2.8-6.9-9q0-51.5 0-103 0-20.7 0-41.5z", fill: "#000" }), jsx("path", { d: "m277.9 169.2c-1.3-9.6-2.7-18.6-3.8-27.6-1.1-9.1-5.9-15.9-12.1-22.3-3.3-3.3-6.3-7.4-8-11.7-2.3-5.4-0.1-8.1 5.7-8.8 10.1-1.1 19 1.7 25.8 9.2 10.7 11.5 17.9 24.7 13.4 41.1-2.9 10.4-9.3 17.8-21 20.1z", fill: "#fff" }), jsx("path", { d: "m205.5 138.7c-0.8-17.1 11.9-32.8 26.9-33.5 3.4-0.2 7.9-1.4 9.4 3.4 1.3 4.6-1.8 7.6-5.5 8.8-12.6 4.2-13.2 21.6-7.4 30.3 1.3 2.1 3.3 3.7 4.8 5.7 1.7 2 4.2 4.1 4.5 6.4 0.4 3.3 0.1 7.5-1.7 10-1.3 1.7-5.8 2.3-8.4 1.6-12.5-3-20.4-13.2-22.2-27.8-0.2-1.8-0.3-3.6-0.4-5z", fill: "#fff" }), jsx("path", { d: "m229.9 134.7c0-9.2 7.1-16.1 16.7-16.1 11.7 0 22.3 10 22.3 21.1 0 9.2-7.4 16-17.3 16.1-11.2 0.1-21.7-10.1-21.7-21.1z", fill: "#fff" }), jsx("path", { d: "m229.5 182.6c-2.9 0-5.8 0.4-8.6 0-7.7-1.4-15.5-2.6-22.9-4.8-15-4.5-23.6-29.1-15-42.2 1.3-1.9 2.8-3.9 4.7-5 2.1-1.3 4.8-1.7 7.2-2.4 0.7 2.2 2 4.4 2 6.7 0.7 19.7 11.5 33 27.4 43 1.8 1.2 3.6 2.2 5.4 3.2q-0.1 0.8-0.2 1.5z", fill: "#fff" }), jsx("path", { d: "m246.9 184.6c9.9-0.9 18.4-5.1 26.3-10.9 0.8-0.7 2.1-0.8 3.2-0.8 17.2 0.5 28-8.7 35.6-22.9 1-1.9 1.9-3.8 2.8-5.7q0.6 0.1 1.3 0.2c-0.4 2.8-0.5 5.5-1.1 8.2-5.1 25.7-34 44.9-57.8 38.3-3.7-1.1-7.1-3.2-10.6-4.8q0.1-0.8 0.3-1.6z", fill: "#fff" }), jsx("path", { d: "m270.9 150.3c3.9 8 0.5 19.5-7.2 23.3-8.4 4.2-17.5 6.1-28.5 2.8 8.9-2.9 9.4-9.3 8.8-16.5 10.8 1.6 19.9-0.5 26.9-9.6z", fill: "#fff" })] }));
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
export { RozoDark as default };
|
|
8
|
+
//# sourceMappingURL=rozo-dark.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rozo-dark.js","sources":["../../../src/assets/rozo-dark.tsx"],"sourcesContent":[null],"names":["_jsxs","_jsx"],"mappings":";;AAEA,MAAM,QAAQ,GAAG,CAAC,EAAE,KAAK,GAAG,GAAG,EAAE,MAAM,GAAG,GAAG,EAAE,GAAG,KAAK,EAAE,KAAI;IAC3D,QACEA,cAAK,OAAO,EAAC,aAAa,EAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,KAAM,KAAK,EAAA,QAAA,EAAA,CAChEC,cACE,CAAC,EAAC,gnDAAgnD,EAClnD,IAAI,EAAC,MAAM,EACX,CAAA,EACFA,cACE,CAAC,EAAC,kUAAkU,EACpU,IAAI,EAAC,MAAM,EAAA,CACX,EACFA,GACE,CAAA,MAAA,EAAA,EAAA,CAAC,EAAC,qMAAqM,EACvM,IAAI,EAAC,MAAM,EACX,CAAA,EACFA,GACE,CAAA,MAAA,EAAA,EAAA,CAAC,EAAC,uQAAuQ,EACzQ,IAAI,EAAC,MAAM,GACX,EACFA,GAAA,CAAA,MAAA,EAAA,EACE,CAAC,EAAC,qHAAqH,EACvH,IAAI,EAAC,MAAM,EACX,CAAA,EACFA,cACE,CAAC,EAAC,2NAA2N,EAC7N,IAAI,EAAC,MAAM,EACX,CAAA,EACFA,cACE,CAAC,EAAC,+NAA+N,EACjO,IAAI,EAAC,MAAM,EACX,CAAA,EACFA,cACE,CAAC,EAAC,qHAAqH,EACvH,IAAI,EAAC,MAAM,EAAA,CACX,CACE,EAAA,CAAA,EACN;AACJ;;;;"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
|
|
3
|
+
const RozoTextLogo = (props) => (jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 414 96", ...props, children: [jsx("style", {}), jsx("path", { d: "m43 12.1c3.3 0 6.5 0 9.7 0 1.2 0 2.4 0 3.6-0.2 1.3-0.1 2.5-0.6 3.7-0.9 1.4-0.3 2.8-0.8 4.3-0.8 4.3-0.2 8.6-0.2 12.9-0.2 0.8 0 1.6 0.5 2.4 0.8 1.3 0.3 2.6 0.7 3.9 0.9 13.6 1.5 27.2 2.3 40.9 2 1.4 0 2.7-0.3 4.1-0.9 1.2-0.6 2.9-0.3 4.4-0.4 0 0.7 0.1 0.9 0.1 1.1 0 17.8-0.1 35.7 0 53.5 0 1.2-0.4 1.8-1.6 1.9-2.9 0.4-5.8 1-8.7 1.1-8.1 0-16.3 0-24.5-0.3-3.5-0.1-7.1-1.1-10.7-1.5-7.6-1-15.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-10.2h44.5v7.3l-29 40.8h29.1v10.1zm104.7-29.1q0 9.5-3.6 16.2-3.6 6.7-9.8 10.2-6.1 3.5-13.8 3.5-7.8 0-14-3.5-6.1-3.5-9.7-10.2-3.6-6.7-3.6-16.2 0-9.5 3.6-16.2 3.6-6.7 9.7-10.2 6.2-3.5 14-3.5 7.7 0 13.8 3.5 6.2 3.5 9.8 10.2 3.6 6.7 3.6 16.2zm-12.5 0q0-6.2-1.8-10.4-1.8-4.2-5.2-6.4-3.3-2.2-7.7-2.2-4.5 0-7.8 2.2-3.3 2.2-5.2 6.4-1.8 4.2-1.8 10.4 0 6.2 1.8 10.4 1.9 4.2 5.2 6.4 3.3 2.2 7.8 2.2 4.4 0 7.7-2.2 3.4-2.2 5.2-6.4 1.8-4.2 1.8-10.4z" })] }));
|
|
4
|
+
|
|
5
|
+
export { RozoTextLogo as default };
|
|
6
|
+
//# sourceMappingURL=rozo-text.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rozo-text.js","sources":["../../../src/assets/rozo-text.tsx"],"sourcesContent":[null],"names":["_jsxs","_jsx"],"mappings":";;AACA,MAAM,YAAY,GAAG,CAAC,KAAK,MACzBA,IAAA,CAAA,KAAA,EAAA,EACE,KAAK,EAAC,4BAA4B,EAClC,OAAO,EAAC,YAAY,EAAA,GAChB,KAAK,EAET,QAAA,EAAA,CAAAC,GAAA,CAAA,OAAA,EAAA,EAAA,CAAS,EACTA,GAAA,CAAA,MAAA,EAAA,EAAM,CAAC,EAAC,68CAA68C,GAAG,EACx9CA,GAAA,CAAA,MAAA,EAAA,EAAM,CAAC,EAAC,oSAAoS,EAAG,CAAA,EAC/SA,cAAM,CAAC,EAAC,2mCAA2mC,EAAG,CAAA,CAAA,EAAA,CAClnC;;;;"}
|
|
@@ -5,22 +5,32 @@ import styled from '../../../styles/styled/index.js';
|
|
|
5
5
|
import { rozoPayVersion } from '../../../utils/exports.js';
|
|
6
6
|
import IntercomInitializer from '../Intercom/index.js';
|
|
7
7
|
import { usePayContext } from '../../../hooks/usePayContext.js';
|
|
8
|
+
import RozoTextLogo from '../../../assets/rozo-text.js';
|
|
9
|
+
import { useRozoPay } from '../../../hooks/useDaimoPay.js';
|
|
8
10
|
|
|
9
11
|
const PoweredByFooter = ({ preFilledMessage, showSupport = true } = {}) => {
|
|
10
12
|
const context = usePayContext();
|
|
13
|
+
const pay = useRozoPay();
|
|
14
|
+
console.log(pay);
|
|
11
15
|
const handleContactClick = (event) => {
|
|
12
16
|
event.preventDefault();
|
|
13
17
|
if (typeof window.Intercom === 'function') {
|
|
14
18
|
context.setOpen(false);
|
|
15
|
-
window.Intercom('showNewMessage',
|
|
19
|
+
window.Intercom('showNewMessage', [
|
|
20
|
+
'Hi, I need help with my payment.',
|
|
21
|
+
'',
|
|
22
|
+
`Version: ${rozoPayVersion}`,
|
|
23
|
+
`Order ID: ${pay.order?.id?.toString()}`,
|
|
24
|
+
preFilledMessage
|
|
25
|
+
].filter(Boolean).join('\n'));
|
|
16
26
|
}
|
|
17
27
|
else {
|
|
18
28
|
window.open(globalThis.__SUPPORTURL__ || `https://pay.rozo.ai?ref=sdk-v${rozoPayVersion}`);
|
|
19
29
|
}
|
|
20
30
|
};
|
|
21
|
-
return (jsxs(Fragment, { children: [jsx(IntercomInitializer, {}), jsxs(Container, { children: [
|
|
22
|
-
window.open('
|
|
23
|
-
}, children:
|
|
31
|
+
return (jsxs(Fragment, { children: [jsx(IntercomInitializer, {}), jsxs(Container, { children: [jsxs(TextButton, { onClick: () => {
|
|
32
|
+
window.open('http://rozo.ai/', "_blank");
|
|
33
|
+
}, children: [jsx("span", { children: "Powered by" }), jsx(RozoTextLogo, { height: 16, style: { position: 'relative', top: 2 } })] }), showSupport && (jsx(TextButton, { onClick: handleContactClick, children: "Get help" }))] })] }));
|
|
24
34
|
};
|
|
25
35
|
const Container = styled(motion.div) `
|
|
26
36
|
text-align: center;
|
|
@@ -42,7 +52,6 @@ const TextButton = styled(motion.button) `
|
|
|
42
52
|
display: inline-flex;
|
|
43
53
|
align-items: center;
|
|
44
54
|
justify-content: center;
|
|
45
|
-
gap: 10px;
|
|
46
55
|
height: 32px;
|
|
47
56
|
padding: 0 8px;
|
|
48
57
|
border-radius: 6px;
|
|
@@ -53,12 +62,18 @@ const TextButton = styled(motion.button) `
|
|
|
53
62
|
line-height: 16px;
|
|
54
63
|
font-weight: 500;
|
|
55
64
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
65
|
+
svg {
|
|
66
|
+
fill: var(--ck-body-color-muted);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
transition: color 200ms ease, transform 100ms ease;
|
|
70
|
+
|
|
59
71
|
&:hover {
|
|
60
72
|
color: var(--ck-body-color-muted-hover);
|
|
61
73
|
text-decoration-color: var(--ck-body-color-muted-hover);
|
|
74
|
+
svg {
|
|
75
|
+
fill: var(--ck-body-color-muted-hover);
|
|
76
|
+
}
|
|
62
77
|
}
|
|
63
78
|
&:active {
|
|
64
79
|
transform: scale(0.96);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../src/components/Common/PoweredByFooter/index.tsx"],"sourcesContent":[null],"names":["_jsxs","_Fragment","_jsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../src/components/Common/PoweredByFooter/index.tsx"],"sourcesContent":[null],"names":["_jsxs","_Fragment","_jsx"],"mappings":";;;;;;;;;;AASA,MAAM,eAAe,GAAG,CAAC,EAAE,gBAAgB,EAAE,WAAW,GAAG,IAAI,EAAA,GAA2D,EAAE,KAAI;AAC9H,IAAA,MAAM,OAAO,GAAG,aAAa,EAAE,CAAC;AAChC,IAAA,MAAM,GAAG,GAAG,UAAU,EAAE,CAAC;AACzB,IAAA,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;AAEhB,IAAA,MAAM,kBAAkB,GAAG,CAAC,KAA0C,KAAI;QACxE,KAAK,CAAC,cAAc,EAAE,CAA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SAAS,GAAG,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,CAAA,CAAA;;;;;;;;CAQnC,CAAC;AAEF,MAAM,MAAM,GAAG,SAAS,CAAA,CAAA;;;CAGvB,CAAC;AAEF,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAwCvB,MAAM,CAAA;;CAEtB,CAAC;AAEgB,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA,CAAA;;;;;;;"}
|
|
@@ -8,7 +8,6 @@ import { TickIcon, LoadingCircleIcon } from '../../../assets/icons.js';
|
|
|
8
8
|
import { useRozoPay } from '../../../hooks/useDaimoPay.js';
|
|
9
9
|
import styled from '../../../styles/styled/index.js';
|
|
10
10
|
import PoweredByFooter from '../../Common/PoweredByFooter/index.js';
|
|
11
|
-
import { rozoPayVersion } from '../../../utils/exports.js';
|
|
12
11
|
|
|
13
12
|
const Confirmation = () => {
|
|
14
13
|
const { confirmationMessage, onSuccess, debugMode, log } = usePayContext();
|
|
@@ -43,7 +42,7 @@ const Confirmation = () => {
|
|
|
43
42
|
justifyContent: "center",
|
|
44
43
|
alignItems: "center",
|
|
45
44
|
paddingBottom: 0,
|
|
46
|
-
}, children: [jsx(AnimationContainer, { children: jsxs(InsetContainer, { children: [jsx(Spinner, { "$status": done }), jsx(SuccessIcon, { "$status": done })] }) }), !done ? (jsx(ModalH1, { children: "Confirming..." })) : (jsxs(Fragment, { children: [jsx(ModalH1, { children: jsx(Link, { href: txURL, target: "_blank", rel: "noopener noreferrer", children: "Payment Completed" }) }), confirmationMessage && (jsx(ModalBody, { children: confirmationMessage }))] })), jsx(PoweredByFooter, { showSupport: !done, preFilledMessage: `Transaction: ${txURL}
|
|
45
|
+
}, children: [jsx(AnimationContainer, { children: jsxs(InsetContainer, { children: [jsx(Spinner, { "$status": done }), jsx(SuccessIcon, { "$status": done })] }) }), !done ? (jsx(ModalH1, { children: "Confirming..." })) : (jsxs(Fragment, { children: [jsx(ModalH1, { children: jsx(Link, { href: txURL, target: "_blank", rel: "noopener noreferrer", children: "Payment Completed" }) }), confirmationMessage && (jsx(ModalBody, { children: confirmationMessage }))] })), jsx(PoweredByFooter, { showSupport: !done, preFilledMessage: `Transaction: ${txURL}` })] }) }));
|
|
47
46
|
};
|
|
48
47
|
const AnimationContainer = styled(motion.div) `
|
|
49
48
|
position: relative;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../src/components/Pages/Confirmation/index.tsx"],"sourcesContent":[null],"names":["_jsx","_jsxs"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../src/components/Pages/Confirmation/index.tsx"],"sourcesContent":[null],"names":["_jsx","_jsxs","_Fragment"],"mappings":";;;;;;;;;;;AAsBM,MAAA,YAAY,GAAa,MAAK;AAClC,IAAA,MAAM,EAAE,mBAAmB,EAAE,SAAS,EAAE,SAAS,EAAE,GAAG,EAAE,GAAG,aAAa,EAAE,CAAC;IAC3E,MAAM,EAAE,KAAK,EAAE,YAAY,EAAE,GAAG,UAAU,EAAE,CAAC;IAE7C,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,OAAO,CAAC,MAAK;QACnC,IACE,YAAY,KAAK,mBAAmB;YACpC,YAAY,KAAK,iBAAiB,EAClC;YACA,MAAM,MAAM,GAAG,KAAK,CAAC,oBAAoB,IAAI,KAAK,CAAC,eAAe,CAAC;AACnE,YAAA,MAAM,WAAW,GAAG,mBAAmB,CAAC,KAAK,CAAC,CAAC;YAC/C,MAAM,CACJ,MAAM,IAAI,IAAI,EACd,CAAgC,6BAAA,EAAA,YAAY,CAAsB,oBAAA,CAAA,CACnE,CAAC;YACF,MAAM,KAAK,GAAG,qBAAqB,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC;AAEzD,YAAA,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE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AAA,IAAI,EAAE,KAAK,EAAE,MAAM,EAAC,QAAQ,EAAC,GAAG,EAAC,qBAAqB,EAAA,QAAA,EAAA,mBAAA,EAAA,CAErD,EACC,CAAA,EACT,mBAAmB,KAClBA,IAAC,SAAS,EAAA,EAAA,QAAA,EAAE,mBAAmB,EAAa,CAAA,CAC7C,CACA,EAAA,CAAA,CACJ,EAEDA,GAAC,CAAA,eAAe,IACd,WAAW,EAAE,CAAC,IAAI,EAClB,gBAAgB,EAAE,gBAAgB,KAAK,CAAA,CAAE,GACzC,CACW,EAAA,CAAA,EAAA,CACH,EACd;AACJ,EAAE;AAEF,MAAM,kBAAkB,GAAG,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,CAAA,CAAA;;;;;;CAM5C,CAAC;AAEF,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,CAAA,CAAA;;;;;;;;;;;;;;CAcxC,CAAC;AAEF,MAAM,WAAW,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAuB,CAAA;;;;AAI9C,WAAA,EAAA,CAAC,KAAK,MAAM,KAAK,CAAC,OAAO,GAAG,CAAC,GAAG,CAAC,CAAC,CAAA;AAChC,aAAA,EAAA,CAAC,KAAK,MAAM,KAAK,CAAC,OAAO,GAAG,UAAU,GAAG,YAAY,CAAC,CAAA;CACpE,CAAC;AAEF,MAAM,OAAO,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAAuB,CAAA;;;;AAInD,WAAA,EAAA,CAAC,KAAK,MAAM,KAAK,CAAC,OAAO,GAAG,CAAC,GAAG,CAAC,CAAC,CAAA;;;;;;;;;;CAU9C;;;;"}
|
|
@@ -4,7 +4,6 @@ import { AlertIcon } from '../../../assets/icons.js';
|
|
|
4
4
|
import { useRozoPay } from '../../../hooks/useDaimoPay.js';
|
|
5
5
|
import styled from '../../../styles/styled/index.js';
|
|
6
6
|
import PoweredByFooter from '../../Common/PoweredByFooter/index.js';
|
|
7
|
-
import { rozoPayVersion } from '../../../utils/exports.js';
|
|
8
7
|
import { useMemo } from 'react';
|
|
9
8
|
|
|
10
9
|
function ErrorPage() {
|
|
@@ -21,7 +20,7 @@ function ErrorPage() {
|
|
|
21
20
|
alignItems: "center",
|
|
22
21
|
paddingBottom: 0,
|
|
23
22
|
position: "relative",
|
|
24
|
-
}, children: [jsxs(CenterContainer, { children: [jsx(FailIcon, {}), jsx(ErrorBody, { children: jsx("strong", { children: errorBody }) })] }), jsx(PoweredByFooter, { preFilledMessage: `
|
|
23
|
+
}, children: [jsxs(CenterContainer, { children: [jsx(FailIcon, {}), jsx(ErrorBody, { children: jsx("strong", { children: errorBody }) })] }), jsx(PoweredByFooter, { preFilledMessage: `Error: ${errorBody}`, showSupport: true })] }) }));
|
|
25
24
|
}
|
|
26
25
|
const CenterContainer = styled.div `
|
|
27
26
|
display: flex;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../src/components/Pages/Error/index.tsx"],"sourcesContent":[null],"names":["_jsx","_jsxs"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../src/components/Pages/Error/index.tsx"],"sourcesContent":[null],"names":["_jsx","_jsxs"],"mappings":";;;;;;;;AAYc,SAAU,SAAS,GAAA;AAC/B,IAAA,MAAM,GAAG,GAAG,UAAU,EAAE,CAAC;AAEzB,IAAA,MAAM,SAAS,GAAG,OAAO,CAAC,MAAK;AAC7B,QAAA,IAAI,GAAG,CAAC,YAAY,KAAK,OAAO,EAAE;YAChC,OAAO,GAAG,CAAC,mBAAmB,CAAC;SAChC;AACD,QAAA,OAAO,eAAe,CAAC;KACxB,EAAE,CAAC,GAAG,CAAC,YAAY,EAAE,GAAG,CAAC,mBAAmB,CAAC,CAAC,CAAC;IAEhD,QACEA,IAAC,WAAW,EAAA,EAAA,QAAA,EACVC,KAAC,YAAY,EAAA,EACX,KAAK,EAAE;AACL,gBAAA,OAAO,EAAE,MAAM;AACf,gBAAA,cAAc,EAAE,QAAQ;AACxB,gBAAA,UAAU,EAAE,QAAQ;AACpB,gBAAA,aAAa,EAAE,CAAC;AAChB,gBAAA,QAAQ,EAAE,UAAU;AACrB,aAAA,EAAA,QAAA,EAAA,CAEDA,IAAC,CAAA,eAAe,EACd,EAAA,QAAA,EAAA,CAAAD,GAAA,CAAC,QAAQ,EAAA,EAAA,CAAG,EACZA,GAAA,CAAC,SAAS,EAAA,EAAA,QAAA,EACRA,GAAS,CAAA,QAAA,EAAA,EAAA,QAAA,EAAA,SAAS,GAAU,EAClB,CAAA,CAAA,EAAA,CACI,EAClBA,GAAA,CAAC,eAAe,EAAA,EAAC,gBAAgB,EAAE,CAAU,OAAA,EAAA,SAAS,CAAE,CAAA,EAAE,WAAW,EAAA,IAAA,EAAA,CAAG,CAC3D,EAAA,CAAA,EAAA,CACH,EACd;AACJ,CAAC;AAED,MAAM,eAAe,GAAG,MAAM,CAAC,GAAG,CAAA,CAAA;;;;;;CAMjC,CAAC;AAEF,MAAM,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC,CAAA,CAAA;;;;CAIlC,CAAC;AAEF,MAAM,QAAQ,GAAG,MAAM,CAAC,SAAS,CAAC,CAAA,CAAA;;;;;;CAMjC;;;;"}
|
|
@@ -14,7 +14,7 @@ const SelectDepositAddressChain = () => {
|
|
|
14
14
|
const pay = useRozoPay();
|
|
15
15
|
const { order } = pay;
|
|
16
16
|
const { isDepositFlow, setSelectedDepositAddressOption, depositAddressOptions, } = paymentState;
|
|
17
|
-
return (jsxs(PageContent, { children: [
|
|
17
|
+
return (jsxs(PageContent, { children: [jsx(OrderHeader, { minified: true, excludeLogos: ["tron", "eth"] }), !depositAddressOptions.loading &&
|
|
18
18
|
depositAddressOptions.options?.length === 0 && (jsxs(ModalContent, { style: {
|
|
19
19
|
display: "flex",
|
|
20
20
|
alignItems: "center",
|
|
@@ -43,7 +43,7 @@ const SelectDepositAddressChain = () => {
|
|
|
43
43
|
}
|
|
44
44
|
},
|
|
45
45
|
};
|
|
46
|
-
}) ?? [] }), jsx(PoweredByFooter, {
|
|
46
|
+
}) ?? [] }), jsx(PoweredByFooter, {})] }));
|
|
47
47
|
};
|
|
48
48
|
|
|
49
49
|
export { SelectDepositAddressChain as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../src/components/Pages/SelectDepositAddressChain/index.tsx"],"sourcesContent":[null],"names":["_jsxs","_jsx"],"mappings":";;;;;;;;;;;AAaM,MAAA,yBAAyB,GAAa,MAAK;IAC/C,MAAM,EAAE,QAAQ,EAAE,YAAY,EAAE,GAAG,aAAa,EAAE,CAAC;AACnD,IAAA,MAAM,GAAG,GAAG,UAAU,EAAE,CAAC;AACzB,IAAA,MAAM,EAAE,KAAK,EAAE,GAAG,GAAG,CAAC;IACtB,MAAM,EACJ,aAAa,EACb,+BAA+B,EAC/B,qBAAqB,GACtB,GAAG,YAAY,CAAC;IAEjB,QACEA,KAAC,WAAW,EAAA,EAAA,QAAA,EAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../src/components/Pages/SelectDepositAddressChain/index.tsx"],"sourcesContent":[null],"names":["_jsxs","_jsx"],"mappings":";;;;;;;;;;;AAaM,MAAA,yBAAyB,GAAa,MAAK;IAC/C,MAAM,EAAE,QAAQ,EAAE,YAAY,EAAE,GAAG,aAAa,EAAE,CAAC;AACnD,IAAA,MAAM,GAAG,GAAG,UAAU,EAAE,CAAC;AACzB,IAAA,MAAM,EAAE,KAAK,EAAE,GAAG,GAAG,CAAC;IACtB,MAAM,EACJ,aAAa,EACb,+BAA+B,EAC/B,qBAAqB,GACtB,GAAG,YAAY,CAAC;IAEjB,QACEA,KAAC,WAAW,EAAA,EAAA,QAAA,EAAA,CACVC,IAAC,WAAW,EAAA,EAAC,QAAQ,EAAC,IAAA,EAAA,YAAY,EAAE,CAAC,MAAM,EAAE,KAAK,CAAC,GAAI,EAEtD,CAAC,qBAAqB,CAAC,OAAO;AAC7B,gBAAA,qBAAqB,CAAC,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