@r2u/javascript-ar-sdk 6.22.0 → 6.22.1
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/dist/index.js +1 -1
- package/dist/init.bundle.js +1 -1
- package/dist/public/locales/en/translation.json +36 -0
- package/dist/sku.bundle.js +1 -1
- package/dist/src/assets/icons.js +18 -0
- package/dist/src/assets/icons.js.map +1 -0
- package/dist/src/components/Modal/Canvas/index.js +11 -0
- package/dist/src/components/Modal/Canvas/index.js.map +1 -0
- package/dist/src/components/Modal/Canvas/styles.js +34 -0
- package/dist/src/components/Modal/Canvas/styles.js.map +1 -0
- package/dist/src/components/Modal/Context.js +27 -0
- package/dist/src/components/Modal/Context.js.map +1 -0
- package/dist/src/components/Modal/Feedback/Confirm.js +16 -0
- package/dist/src/components/Modal/Feedback/Confirm.js.map +1 -0
- package/dist/src/components/Modal/Feedback/Main.js +16 -0
- package/dist/src/components/Modal/Feedback/Main.js.map +1 -0
- package/dist/src/components/Modal/Feedback/index.js +31 -0
- package/dist/src/components/Modal/Feedback/index.js.map +1 -0
- package/dist/src/components/Modal/Feedback/styles.js +100 -0
- package/dist/src/components/Modal/Feedback/styles.js.map +1 -0
- package/dist/src/components/Modal/Instructions/index.js +50 -0
- package/dist/src/components/Modal/Instructions/index.js.map +1 -0
- package/dist/src/components/Modal/Instructions/styles.js +137 -0
- package/dist/src/components/Modal/Instructions/styles.js.map +1 -0
- package/dist/src/components/Modal/InstructionsAmericanas/index.js +50 -0
- package/dist/src/components/Modal/InstructionsAmericanas/index.js.map +1 -0
- package/dist/src/components/Modal/InstructionsAmericanas/styles.js +116 -0
- package/dist/src/components/Modal/InstructionsAmericanas/styles.js.map +1 -0
- package/dist/src/components/Modal/InstructionsMolduraMinuto/index.js +103 -0
- package/dist/src/components/Modal/InstructionsMolduraMinuto/index.js.map +1 -0
- package/dist/src/components/Modal/InstructionsMolduraMinuto/styles.js +77 -0
- package/dist/src/components/Modal/InstructionsMolduraMinuto/styles.js.map +1 -0
- package/dist/src/components/Modal/InstructionsYDigital/index.js +50 -0
- package/dist/src/components/Modal/InstructionsYDigital/index.js.map +1 -0
- package/dist/src/components/Modal/InstructionsYDigital/styles.js +137 -0
- package/dist/src/components/Modal/InstructionsYDigital/styles.js.map +1 -0
- package/dist/src/components/Modal/InstructionsYDigitalVideo/index.js +44 -0
- package/dist/src/components/Modal/InstructionsYDigitalVideo/index.js.map +1 -0
- package/dist/src/components/Modal/InstructionsYDigitalVideo/styles.js +137 -0
- package/dist/src/components/Modal/InstructionsYDigitalVideo/styles.js.map +1 -0
- package/dist/src/components/Modal/Social/index.js +20 -0
- package/dist/src/components/Modal/Social/index.js.map +1 -0
- package/dist/src/components/Modal/Social/styles.js +85 -0
- package/dist/src/components/Modal/Social/styles.js.map +1 -0
- package/dist/src/components/Modal/Viewer/index.js +26 -0
- package/dist/src/components/Modal/Viewer/index.js.map +1 -0
- package/dist/src/components/Modal/Viewer/styles.js +56 -0
- package/dist/src/components/Modal/Viewer/styles.js.map +1 -0
- package/dist/src/components/Modal/ViewerFull/index.js +15 -0
- package/dist/src/components/Modal/ViewerFull/index.js.map +1 -0
- package/dist/src/components/Modal/ViewerFull/styles.js +12 -0
- package/dist/src/components/Modal/ViewerFull/styles.js.map +1 -0
- package/dist/src/components/R2UModelViewer/ProgressBar/index.js +9 -0
- package/dist/src/components/R2UModelViewer/ProgressBar/index.js.map +1 -0
- package/dist/src/components/R2UModelViewer/ProgressBar/styles.js +54 -0
- package/dist/src/components/R2UModelViewer/ProgressBar/styles.js.map +1 -0
- package/dist/src/components/R2UModelViewer/ProgressBar/types.js +1 -0
- package/dist/src/components/R2UModelViewer/ProgressBar/types.js.map +1 -0
- package/dist/src/components/R2UModelViewer/index.d.ts +1 -1
- package/dist/src/components/R2UModelViewer/index.js +63 -0
- package/dist/src/components/R2UModelViewer/index.js.map +1 -0
- package/dist/src/components/R2UModelViewer/styles.js +128 -0
- package/dist/src/components/R2UModelViewer/styles.js.map +1 -0
- package/dist/src/components/WaterMark/index.js +9 -0
- package/dist/src/components/WaterMark/index.js.map +1 -0
- package/dist/src/components/WaterMark/styles.js +26 -0
- package/dist/src/components/WaterMark/styles.js.map +1 -0
- package/dist/src/config/i18n.js +69 -0
- package/dist/src/config/i18n.js.map +1 -0
- package/dist/src/error/ViewerError.js +7 -0
- package/dist/src/error/ViewerError.js.map +1 -0
- package/dist/src/fonts/index.js +9 -0
- package/dist/src/fonts/index.js.map +1 -0
- package/dist/src/index.d.ts +1 -1
- package/dist/src/index.js +25 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/methods/analytics.js +17 -0
- package/dist/src/methods/analytics.js.map +1 -0
- package/dist/src/methods/ar.js +372 -0
- package/dist/src/methods/ar.js.map +1 -0
- package/dist/src/methods/config.js +40 -0
- package/dist/src/methods/config.js.map +1 -0
- package/dist/src/methods/init.js +51 -0
- package/dist/src/methods/init.js.map +1 -0
- package/dist/src/methods/qrCode.js +48 -0
- package/dist/src/methods/qrCode.js.map +1 -0
- package/dist/src/methods/sku.d.ts +1 -1
- package/dist/src/methods/sku.js +47 -0
- package/dist/src/methods/sku.js.map +1 -0
- package/dist/src/methods/types.js +1 -0
- package/dist/src/methods/types.js.map +1 -0
- package/dist/src/methods/viewer.js +310 -0
- package/dist/src/methods/viewer.js.map +1 -0
- package/dist/src/screens/Fallback/index.js +22 -0
- package/dist/src/screens/Fallback/index.js.map +1 -0
- package/dist/src/screens/Feedback/index.d.ts +1 -1
- package/dist/src/screens/Feedback/index.js +21 -0
- package/dist/src/screens/Feedback/index.js.map +1 -0
- package/dist/src/screens/Instructions/index.d.ts +1 -1
- package/dist/src/screens/Instructions/index.js +48 -0
- package/dist/src/screens/Instructions/index.js.map +1 -0
- package/dist/src/screens/Social/index.js +9 -0
- package/dist/src/screens/Social/index.js.map +1 -0
- package/dist/src/services/analytics.js +219 -0
- package/dist/src/services/analytics.js.map +1 -0
- package/dist/src/services/constants.js +65 -0
- package/dist/src/services/constants.js.map +1 -0
- package/dist/src/services/cookies.js +19 -0
- package/dist/src/services/cookies.js.map +1 -0
- package/dist/src/services/customer.js +17 -0
- package/dist/src/services/customer.js.map +1 -0
- package/dist/src/services/customization.js +73 -0
- package/dist/src/services/customization.js.map +1 -0
- package/dist/src/services/product.js +49 -0
- package/dist/src/services/product.js.map +1 -0
- package/dist/src/services/requests.js +55 -0
- package/dist/src/services/requests.js.map +1 -0
- package/dist/src/state.d.ts +1 -1
- package/dist/src/state.js +23 -0
- package/dist/src/state.js.map +1 -0
- package/dist/src/types/Viewer.js +1 -0
- package/dist/src/types/Viewer.js.map +1 -0
- package/dist/src/types/index.js +1 -0
- package/dist/src/types/index.js.map +1 -0
- package/dist/src/utils/sortCustomization.js +10 -0
- package/dist/src/utils/sortCustomization.js.map +1 -0
- package/dist/{vendors.fe050b32669a2a3c34a3.bundle.js → vendors.8c5a3e61e714fd2ec175.bundle.js} +1 -1
- package/package.json +6 -4
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
export const Content = styled.div `
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
align-items: center;
|
|
6
|
+
justify-content: space-evenly;
|
|
7
|
+
|
|
8
|
+
.powered {
|
|
9
|
+
display: flex;
|
|
10
|
+
text-decoration: unset;
|
|
11
|
+
flex-direction: row;
|
|
12
|
+
align-items: center;
|
|
13
|
+
margin-top: 2%;
|
|
14
|
+
|
|
15
|
+
img {
|
|
16
|
+
width: 32.9px;
|
|
17
|
+
height: 17px;
|
|
18
|
+
object-fit: contain;
|
|
19
|
+
margin: 5px;
|
|
20
|
+
filter: brightness(85%);
|
|
21
|
+
}
|
|
22
|
+
h1 {
|
|
23
|
+
width: 90px;
|
|
24
|
+
height: 20px;
|
|
25
|
+
font-family: proxima-Nova, sans-serif;
|
|
26
|
+
font-size: 16px;
|
|
27
|
+
font-weight: bold;
|
|
28
|
+
font-stretch: normal;
|
|
29
|
+
font-style: normal;
|
|
30
|
+
line-height: 1.25;
|
|
31
|
+
letter-spacing: normal;
|
|
32
|
+
text-align: center;
|
|
33
|
+
color: #d8d8d8;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.instructions {
|
|
38
|
+
width: min(90vw, 50vh);
|
|
39
|
+
height: min(90vw, 50vh);
|
|
40
|
+
border: solid 20px #f2f2f2;
|
|
41
|
+
margin: 12px;
|
|
42
|
+
|
|
43
|
+
.border {
|
|
44
|
+
border-radius: 20px;
|
|
45
|
+
box-shadow: 0 0 0 20px #f2f2f2;
|
|
46
|
+
width: 100%;
|
|
47
|
+
height: 100%;
|
|
48
|
+
display: flex;
|
|
49
|
+
flex-direction: row;
|
|
50
|
+
justify-content: space-between;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.example {
|
|
54
|
+
height: 100%;
|
|
55
|
+
object-fit: contain;
|
|
56
|
+
border-radius: 20px;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.instructionsColumn {
|
|
60
|
+
display: flex;
|
|
61
|
+
flex-direction: column;
|
|
62
|
+
justify-content: space-evenly;
|
|
63
|
+
align-items: center;
|
|
64
|
+
width: 50%;
|
|
65
|
+
span {
|
|
66
|
+
font-family: proxima-Nova, sans-serif;
|
|
67
|
+
font-size: 14px;
|
|
68
|
+
font-weight: bold;
|
|
69
|
+
font-stretch: normal;
|
|
70
|
+
font-style: normal;
|
|
71
|
+
line-height: 1.22;
|
|
72
|
+
letter-spacing: normal;
|
|
73
|
+
text-align: center;
|
|
74
|
+
color: #000000;
|
|
75
|
+
}
|
|
76
|
+
.icon {
|
|
77
|
+
width: 50%;
|
|
78
|
+
object-fit: contain;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.no-watermark {
|
|
84
|
+
margin-top: 60px;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.text {
|
|
88
|
+
h1 {
|
|
89
|
+
font-family: proxima-Nova, sans-serif;
|
|
90
|
+
font-size: 26px;
|
|
91
|
+
font-weight: bold;
|
|
92
|
+
font-stretch: normal;
|
|
93
|
+
font-style: normal;
|
|
94
|
+
line-height: 1.23;
|
|
95
|
+
letter-spacing: normal;
|
|
96
|
+
text-align: center;
|
|
97
|
+
color: #000000;
|
|
98
|
+
}
|
|
99
|
+
h3 {
|
|
100
|
+
font-family: proxima-Nova, sans-serif;
|
|
101
|
+
font-size: 18px;
|
|
102
|
+
font-weight: 300;
|
|
103
|
+
font-stretch: normal;
|
|
104
|
+
font-style: normal;
|
|
105
|
+
line-height: 1.22;
|
|
106
|
+
letter-spacing: normal;
|
|
107
|
+
text-align: center;
|
|
108
|
+
color: #707070;
|
|
109
|
+
margin: 5px 20px 30px 20px;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.ar-button {
|
|
114
|
+
width: calc(100vw - 40px);
|
|
115
|
+
height: 50px;
|
|
116
|
+
border: none;
|
|
117
|
+
margin: auto;
|
|
118
|
+
border-radius: 23px;
|
|
119
|
+
background-color: #000000;
|
|
120
|
+
&:disabled {
|
|
121
|
+
background-color: gray;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
span {
|
|
125
|
+
font-family: proxima-Nova, sans-serif;
|
|
126
|
+
font-size: 18px;
|
|
127
|
+
font-weight: bold;
|
|
128
|
+
font-stretch: normal;
|
|
129
|
+
font-style: normal;
|
|
130
|
+
line-height: 1.22;
|
|
131
|
+
letter-spacing: normal;
|
|
132
|
+
text-align: center;
|
|
133
|
+
color: #ffffff;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
`;
|
|
137
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../src/components/Modal/InstructionsYDigital/styles.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,mBAAmB,CAAA;AAEtC,MAAM,CAAC,MAAM,OAAO,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsIhC,CAAA"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import React, { useContext, useEffect, useState } from 'react';
|
|
13
|
+
import { FiArrowLeft } from '../../../assets/icons';
|
|
14
|
+
import { Content } from './styles';
|
|
15
|
+
import Canvas from '../Canvas';
|
|
16
|
+
import { ModalContext } from '../Context';
|
|
17
|
+
import translationsEN from '../../../../public/locales/en/translation.json';
|
|
18
|
+
const InstructionsYDigitalVideo = (_a) => {
|
|
19
|
+
var { hasWaterMark = true, onOpen, activateAR } = _a, arProps = __rest(_a, ["hasWaterMark", "onOpen", "activateAR"]);
|
|
20
|
+
const { closeModal } = useContext(ModalContext);
|
|
21
|
+
const [disabled, setDisabled] = useState(false);
|
|
22
|
+
useEffect(onOpen, []);
|
|
23
|
+
document.addEventListener('visibilitychange', () => closeModal(), {
|
|
24
|
+
once: true,
|
|
25
|
+
});
|
|
26
|
+
window.addEventListener('hashchange', () => closeModal(), { once: true });
|
|
27
|
+
const buttonText = 'Start the experience';
|
|
28
|
+
return (React.createElement(Canvas, null,
|
|
29
|
+
React.createElement(Content, null,
|
|
30
|
+
React.createElement(FiArrowLeft, { width: 30, height: 30, color: "#707070", cursor: "pointer", className: "exit", onClick: closeModal }),
|
|
31
|
+
React.createElement("a", { href: "https://r2u.io", className: "powered", target: "_blank", rel: "noopener noreferrer", style: { visibility: hasWaterMark ? undefined : 'hidden' } },
|
|
32
|
+
React.createElement("h1", null, translationsEN.poweredBy),
|
|
33
|
+
React.createElement("img", { src: "https://sdk.r2u.io/assets/r2u-full-white-logo.png", alt: "", className: "icon" })),
|
|
34
|
+
React.createElement("div", { className: `instructions ${!hasWaterMark && 'no-watermark'}` },
|
|
35
|
+
React.createElement("div", { className: "border" },
|
|
36
|
+
React.createElement("video", { autoPlay: true, muted: true, loop: true, playsInline: true, style: { width: '100%', height: 'auto' } },
|
|
37
|
+
React.createElement("source", { src: "https://storage.googleapis.com/r2u-integrations-bucket/y-digital/V-UP.mp4", type: "video/mp4" })))),
|
|
38
|
+
React.createElement("button", { type: "button", className: "ar-button", disabled: disabled, onClick: () => {
|
|
39
|
+
activateAR(arProps);
|
|
40
|
+
setDisabled(true);
|
|
41
|
+
} }, disabled ? (React.createElement("span", null, translationsEN.instructions.loading)) : (React.createElement("span", null, buttonText))))));
|
|
42
|
+
};
|
|
43
|
+
export default InstructionsYDigitalVideo;
|
|
44
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/Modal/InstructionsYDigitalVideo/index.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAE9D,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAE3C,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA;AAClC,OAAO,MAAM,MAAM,WAAW,CAAA;AAG9B,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAEzC,OAAO,cAAc,MAAM,gDAAgD,CAAA;AAU3E,MAAM,yBAAyB,GAAgC,CAAC,EAK5C,EAAE,EAAE;QALwC,EAC9D,YAAY,GAAG,IAAI,EACnB,MAAM,EACN,UAAU,OAEQ,EADf,OAAO,cAJoD,wCAK/D,CADW;IAEV,MAAM,EAAE,UAAU,EAAE,GAAG,UAAU,CAAC,YAAY,CAAC,CAAA;IAC/C,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAA;IAC/C,SAAS,CAAC,MAAM,EAAE,EAAE,CAAC,CAAA;IAErB,QAAQ,CAAC,gBAAgB,CAAC,kBAAkB,EAAE,GAAG,EAAE,CAAC,UAAU,EAAE,EAAE;QAChE,IAAI,EAAE,IAAI;KACX,CAAC,CAAA;IACF,MAAM,CAAC,gBAAgB,CAAC,YAAY,EAAE,GAAG,EAAE,CAAC,UAAU,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAA;IAEzE,MAAM,UAAU,GAAG,sBAAsB,CAAA;IAEzC,OAAO,CACL,oBAAC,MAAM;QACL,oBAAC,OAAO;YACN,oBAAC,WAAW,IACV,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE,EACV,KAAK,EAAC,SAAS,EACf,MAAM,EAAC,SAAS,EAChB,SAAS,EAAC,MAAM,EAChB,OAAO,EAAE,UAAU,GACnB;YAEF,2BACE,IAAI,EAAC,gBAAgB,EACrB,SAAS,EAAC,SAAS,EACnB,MAAM,EAAC,QAAQ,EACf,GAAG,EAAC,qBAAqB,EACzB,KAAK,EAAE,EAAE,UAAU,EAAE,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,EAAE;gBAE1D,gCAAK,cAAc,CAAC,SAAS,CAAM;gBACnC,6BACE,GAAG,EAAC,mDAAmD,EACvD,GAAG,EAAC,EAAE,EACN,SAAS,EAAC,MAAM,GAChB,CACA;YACJ,6BAAK,SAAS,EAAE,gBAAgB,CAAC,YAAY,IAAI,cAAc,EAAE;gBAC/D,6BAAK,SAAS,EAAC,QAAQ;oBACrB,+BACE,QAAQ,QACR,KAAK,QACL,IAAI,QACJ,WAAW,QACX,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE;wBAExC,gCACE,GAAG,EAAC,2EAA2E,EAC/E,IAAI,EAAC,WAAW,GAChB,CACI,CACJ,CACF;YACN,gCACE,IAAI,EAAC,QAAQ,EACb,SAAS,EAAC,WAAW,EACrB,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,GAAS,EAAE;oBAClB,UAAU,CAAC,OAAO,CAAC,CAAA;oBACnB,WAAW,CAAC,IAAI,CAAC,CAAA;gBACnB,CAAC,IAEA,QAAQ,CAAC,CAAC,CAAC,CACV,kCAAO,cAAc,CAAC,YAAY,CAAC,OAAO,CAAQ,CACnD,CAAC,CAAC,CAAC,CACF,kCAAO,UAAU,CAAQ,CAC1B,CACM,CACD,CACH,CACV,CAAA;AACH,CAAC,CAAA;AAED,eAAe,yBAAyB,CAAA"}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
export const Content = styled.div `
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
align-items: center;
|
|
6
|
+
justify-content: space-evenly;
|
|
7
|
+
|
|
8
|
+
.powered {
|
|
9
|
+
display: flex;
|
|
10
|
+
text-decoration: unset;
|
|
11
|
+
flex-direction: row;
|
|
12
|
+
align-items: center;
|
|
13
|
+
margin-top: 2%;
|
|
14
|
+
|
|
15
|
+
img {
|
|
16
|
+
width: 32.9px;
|
|
17
|
+
height: 17px;
|
|
18
|
+
object-fit: contain;
|
|
19
|
+
margin: 5px;
|
|
20
|
+
filter: brightness(85%);
|
|
21
|
+
}
|
|
22
|
+
h1 {
|
|
23
|
+
width: 90px;
|
|
24
|
+
height: 20px;
|
|
25
|
+
font-family: proxima-Nova, sans-serif;
|
|
26
|
+
font-size: 16px;
|
|
27
|
+
font-weight: bold;
|
|
28
|
+
font-stretch: normal;
|
|
29
|
+
font-style: normal;
|
|
30
|
+
line-height: 1.25;
|
|
31
|
+
letter-spacing: normal;
|
|
32
|
+
text-align: center;
|
|
33
|
+
color: #d8d8d8;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.instructions {
|
|
38
|
+
width: min(90vw, 50vh);
|
|
39
|
+
height: min(90vw, 50vh);
|
|
40
|
+
border: solid 20px #f2f2f2;
|
|
41
|
+
margin: 12px;
|
|
42
|
+
|
|
43
|
+
.border {
|
|
44
|
+
border-radius: 20px;
|
|
45
|
+
box-shadow: 0 0 0 20px #f2f2f2;
|
|
46
|
+
width: 100%;
|
|
47
|
+
height: 100%;
|
|
48
|
+
display: flex;
|
|
49
|
+
flex-direction: row;
|
|
50
|
+
justify-content: space-between;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.example {
|
|
54
|
+
height: 100%;
|
|
55
|
+
object-fit: contain;
|
|
56
|
+
border-radius: 20px;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.instructionsColumn {
|
|
60
|
+
display: flex;
|
|
61
|
+
flex-direction: column;
|
|
62
|
+
justify-content: space-evenly;
|
|
63
|
+
align-items: center;
|
|
64
|
+
width: 50%;
|
|
65
|
+
span {
|
|
66
|
+
font-family: proxima-Nova, sans-serif;
|
|
67
|
+
font-size: 14px;
|
|
68
|
+
font-weight: bold;
|
|
69
|
+
font-stretch: normal;
|
|
70
|
+
font-style: normal;
|
|
71
|
+
line-height: 1.22;
|
|
72
|
+
letter-spacing: normal;
|
|
73
|
+
text-align: center;
|
|
74
|
+
color: #000000;
|
|
75
|
+
}
|
|
76
|
+
.icon {
|
|
77
|
+
width: 50%;
|
|
78
|
+
object-fit: contain;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.no-watermark {
|
|
84
|
+
margin-top: 60px;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.text {
|
|
88
|
+
h1 {
|
|
89
|
+
font-family: proxima-Nova, sans-serif;
|
|
90
|
+
font-size: 26px;
|
|
91
|
+
font-weight: bold;
|
|
92
|
+
font-stretch: normal;
|
|
93
|
+
font-style: normal;
|
|
94
|
+
line-height: 1.23;
|
|
95
|
+
letter-spacing: normal;
|
|
96
|
+
text-align: center;
|
|
97
|
+
color: #000000;
|
|
98
|
+
}
|
|
99
|
+
h3 {
|
|
100
|
+
font-family: proxima-Nova, sans-serif;
|
|
101
|
+
font-size: 18px;
|
|
102
|
+
font-weight: 300;
|
|
103
|
+
font-stretch: normal;
|
|
104
|
+
font-style: normal;
|
|
105
|
+
line-height: 1.22;
|
|
106
|
+
letter-spacing: normal;
|
|
107
|
+
text-align: center;
|
|
108
|
+
color: #707070;
|
|
109
|
+
margin: 5px 20px 30px 20px;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.ar-button {
|
|
114
|
+
width: calc(100vw - 40px);
|
|
115
|
+
height: 50px;
|
|
116
|
+
border: none;
|
|
117
|
+
margin: auto;
|
|
118
|
+
border-radius: 23px;
|
|
119
|
+
background-color: #000000;
|
|
120
|
+
&:disabled {
|
|
121
|
+
background-color: gray;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
span {
|
|
125
|
+
font-family: proxima-Nova, sans-serif;
|
|
126
|
+
font-size: 18px;
|
|
127
|
+
font-weight: bold;
|
|
128
|
+
font-stretch: normal;
|
|
129
|
+
font-style: normal;
|
|
130
|
+
line-height: 1.22;
|
|
131
|
+
letter-spacing: normal;
|
|
132
|
+
text-align: center;
|
|
133
|
+
color: #ffffff;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
`;
|
|
137
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../src/components/Modal/InstructionsYDigitalVideo/styles.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,mBAAmB,CAAA;AAEtC,MAAM,CAAC,MAAM,OAAO,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsIhC,CAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/* eslint-disable react/jsx-one-expression-per-line */
|
|
2
|
+
import React, { useContext } from 'react';
|
|
3
|
+
import { Content } from './styles';
|
|
4
|
+
import Canvas from '../Canvas';
|
|
5
|
+
import { ModalContext } from '../Context';
|
|
6
|
+
import { useTranslation } from 'react-i18next';
|
|
7
|
+
const SocialModal = () => {
|
|
8
|
+
const { closeModal } = useContext(ModalContext);
|
|
9
|
+
const { t } = useTranslation();
|
|
10
|
+
return (React.createElement(Canvas, { color: "rgba(0, 0, 0, 0.3)" },
|
|
11
|
+
React.createElement(Content, null,
|
|
12
|
+
React.createElement("div", { className: "balloon" },
|
|
13
|
+
React.createElement("div", { className: "info" },
|
|
14
|
+
React.createElement("h2", null, t('fallback.social.title')),
|
|
15
|
+
React.createElement("p", null, t('fallback.social.text')),
|
|
16
|
+
React.createElement("img", { src: "https://sdk.r2u.io/assets/instruction-open-safari.png", alt: "" })),
|
|
17
|
+
React.createElement("button", { type: "button", onClick: closeModal }, t('fallback.social.button'))))));
|
|
18
|
+
};
|
|
19
|
+
export default SocialModal;
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/Modal/Social/index.tsx"],"names":[],"mappings":"AAAA,sDAAsD;AACtD,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAEzC,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA;AAClC,OAAO,MAAM,MAAM,WAAW,CAAA;AAC9B,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAE9C,MAAM,WAAW,GAAa,GAAG,EAAE;IACjC,MAAM,EAAE,UAAU,EAAE,GAAG,UAAU,CAAC,YAAY,CAAC,CAAA;IAC/C,MAAM,EAAE,CAAC,EAAE,GAAG,cAAc,EAAE,CAAA;IAE9B,OAAO,CACL,oBAAC,MAAM,IAAC,KAAK,EAAC,oBAAoB;QAChC,oBAAC,OAAO;YACN,6BAAK,SAAS,EAAC,SAAS;gBACtB,6BAAK,SAAS,EAAC,MAAM;oBACnB,gCAAK,CAAC,CAAC,uBAAuB,CAAC,CAAM;oBACrC,+BAAI,CAAC,CAAC,sBAAsB,CAAC,CAAK;oBAClC,6BACE,GAAG,EAAC,uDAAuD,EAC3D,GAAG,EAAC,EAAE,GACN,CACE;gBACN,gCAAQ,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAE,UAAU,IACtC,CAAC,CAAC,wBAAwB,CAAC,CACrB,CACL,CACE,CACH,CACV,CAAA;AACH,CAAC,CAAA;AAED,eAAe,WAAW,CAAA"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
export const Content = styled.div `
|
|
3
|
+
display: flex;
|
|
4
|
+
width: 100%;
|
|
5
|
+
height: 100%;
|
|
6
|
+
justify-content: center;
|
|
7
|
+
align-items: center;
|
|
8
|
+
|
|
9
|
+
.balloon {
|
|
10
|
+
height: max-content;
|
|
11
|
+
width: 90%;
|
|
12
|
+
height: 50%;
|
|
13
|
+
background-color: white;
|
|
14
|
+
border-radius: 10px;
|
|
15
|
+
|
|
16
|
+
position: relative;
|
|
17
|
+
|
|
18
|
+
display: flex;
|
|
19
|
+
flex-direction: column;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.info {
|
|
23
|
+
padding: 25px;
|
|
24
|
+
display: flex;
|
|
25
|
+
justify-content: center;
|
|
26
|
+
align-items: center;
|
|
27
|
+
flex-direction: column;
|
|
28
|
+
|
|
29
|
+
img {
|
|
30
|
+
max-width: 100%;
|
|
31
|
+
margin: 0;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
h2 {
|
|
35
|
+
margin: 5px 10px 5px 10px;
|
|
36
|
+
font-family: Proxima-Nova, sans-serif;
|
|
37
|
+
font-size: 18px;
|
|
38
|
+
font-weight: bold;
|
|
39
|
+
font-stretch: normal;
|
|
40
|
+
font-style: normal;
|
|
41
|
+
line-height: 1.22;
|
|
42
|
+
letter-spacing: normal;
|
|
43
|
+
text-align: center;
|
|
44
|
+
color: #222222;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
p {
|
|
48
|
+
margin: 5px 3px 15px 3px;
|
|
49
|
+
font-family: Proxima-Nova, sans-serif;
|
|
50
|
+
font-size: 14px;
|
|
51
|
+
font-weight: normal;
|
|
52
|
+
font-stretch: normal;
|
|
53
|
+
font-style: normal;
|
|
54
|
+
line-height: 1.21;
|
|
55
|
+
letter-spacing: normal;
|
|
56
|
+
text-align: center;
|
|
57
|
+
color: #222222;
|
|
58
|
+
|
|
59
|
+
u {
|
|
60
|
+
font-weight: bold;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
button {
|
|
66
|
+
padding: 20px;
|
|
67
|
+
border: none;
|
|
68
|
+
border-top: solid 0.1px rgba(0, 0, 0, 0.2);
|
|
69
|
+
margin-top: auto;
|
|
70
|
+
height: 20%;
|
|
71
|
+
outline: none;
|
|
72
|
+
background: none;
|
|
73
|
+
|
|
74
|
+
font-family: Proxima-Nova, sans-serif;
|
|
75
|
+
font-size: 16px;
|
|
76
|
+
font-weight: normal;
|
|
77
|
+
font-stretch: normal;
|
|
78
|
+
font-style: normal;
|
|
79
|
+
line-height: 1.19;
|
|
80
|
+
letter-spacing: normal;
|
|
81
|
+
text-align: center;
|
|
82
|
+
color: #3d71ba;
|
|
83
|
+
}
|
|
84
|
+
`;
|
|
85
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../src/components/Modal/Social/styles.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,mBAAmB,CAAA;AAEtC,MAAM,CAAC,MAAM,OAAO,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkFhC,CAAA"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React, { useContext } from 'react';
|
|
2
|
+
import { useTranslation } from 'react-i18next';
|
|
3
|
+
import Viewer from '@r2u/viewer';
|
|
4
|
+
import { Content } from './styles';
|
|
5
|
+
import WaterMark from '../../WaterMark';
|
|
6
|
+
import { FiArrowLeft } from '../../../assets/icons';
|
|
7
|
+
import { ModalContext } from '../Context';
|
|
8
|
+
import Canvas from '../Canvas';
|
|
9
|
+
const ModalViewer = ({ glb }) => {
|
|
10
|
+
const { closeModal } = useContext(ModalContext);
|
|
11
|
+
const { t } = useTranslation();
|
|
12
|
+
return (React.createElement(Canvas, null,
|
|
13
|
+
React.createElement(Content, null,
|
|
14
|
+
React.createElement(FiArrowLeft, { width: 30, height: 30, color: "#707070", cursor: "pointer", className: "exit", onClick: () => {
|
|
15
|
+
closeModal();
|
|
16
|
+
} }),
|
|
17
|
+
React.createElement("div", { className: "text error" }, t('fallback.viewer.title')),
|
|
18
|
+
React.createElement("div", { className: "text top" }, t('fallback.viewer.topText')),
|
|
19
|
+
React.createElement("div", { className: "fallback-viewer-container" },
|
|
20
|
+
React.createElement(Viewer, { glbSrc: glb })),
|
|
21
|
+
React.createElement("div", { className: "text bottom" }, t('fallback.viewer.bottomText')),
|
|
22
|
+
React.createElement("div", { className: "watermark" },
|
|
23
|
+
React.createElement(WaterMark, { position: "centerAbsolute" })))));
|
|
24
|
+
};
|
|
25
|
+
export default ModalViewer;
|
|
26
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/Modal/Viewer/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,MAAM,MAAM,aAAa,CAAA;AAEhC,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA;AAElC,OAAO,SAAS,MAAM,uBAAuB,CAAA;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AACzC,OAAO,MAAM,MAAM,WAAW,CAAA;AAM9B,MAAM,WAAW,GAAoB,CAAC,EAAE,GAAG,EAAS,EAAE,EAAE;IACtD,MAAM,EAAE,UAAU,EAAE,GAAG,UAAU,CAAC,YAAY,CAAC,CAAA;IAC/C,MAAM,EAAE,CAAC,EAAE,GAAG,cAAc,EAAE,CAAA;IAE9B,OAAO,CACL,oBAAC,MAAM;QACL,oBAAC,OAAO;YACN,oBAAC,WAAW,IACV,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE,EACV,KAAK,EAAC,SAAS,EACf,MAAM,EAAC,SAAS,EAChB,SAAS,EAAC,MAAM,EAChB,OAAO,EAAE,GAAS,EAAE;oBAClB,UAAU,EAAE,CAAA;gBACd,CAAC,GACD;YACF,6BAAK,SAAS,EAAC,YAAY,IAAE,CAAC,CAAC,uBAAuB,CAAC,CAAO;YAC9D,6BAAK,SAAS,EAAC,UAAU,IAAE,CAAC,CAAC,yBAAyB,CAAC,CAAO;YAC9D,6BAAK,SAAS,EAAC,2BAA2B;gBACxC,oBAAC,MAAM,IAAC,MAAM,EAAE,GAAG,GAAI,CACnB;YACN,6BAAK,SAAS,EAAC,aAAa,IAAE,CAAC,CAAC,4BAA4B,CAAC,CAAO;YACpE,6BAAK,SAAS,EAAC,WAAW;gBACxB,oBAAC,SAAS,IAAC,QAAQ,EAAC,gBAAgB,GAAG,CACnC,CACE,CACH,CACV,CAAA;AACH,CAAC,CAAA;AAED,eAAe,WAAW,CAAA"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
export const Content = styled.div `
|
|
3
|
+
.text {
|
|
4
|
+
margin: auto;
|
|
5
|
+
padding: 10px;
|
|
6
|
+
font-family: proxima-nova, sans-serif;
|
|
7
|
+
font-size: 16px;
|
|
8
|
+
font-weight: 300;
|
|
9
|
+
font-stretch: normal;
|
|
10
|
+
font-style: normal;
|
|
11
|
+
line-height: 1.25;
|
|
12
|
+
letter-spacing: normal;
|
|
13
|
+
text-align: center;
|
|
14
|
+
color: #222222;
|
|
15
|
+
b {
|
|
16
|
+
font-weight: bold;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.error {
|
|
21
|
+
margin-top: 100px;
|
|
22
|
+
font-size: 24px;
|
|
23
|
+
font-weight: bold;
|
|
24
|
+
line-height: 1.21;
|
|
25
|
+
color: #d45b5b;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.top {
|
|
29
|
+
width: 250px;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.bottom {
|
|
33
|
+
width: 250px;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.fallback-viewer-container {
|
|
37
|
+
width: 324px;
|
|
38
|
+
height: 324px;
|
|
39
|
+
margin: auto;
|
|
40
|
+
margin-top: 10px;
|
|
41
|
+
margin-bottom: 10px;
|
|
42
|
+
background-image: linear-gradient(to bottom, #e9eaeb, #e4e5e7);
|
|
43
|
+
|
|
44
|
+
model-viewer {
|
|
45
|
+
width: 100%;
|
|
46
|
+
height: 100%;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.watermark {
|
|
51
|
+
margin-top: 40px;
|
|
52
|
+
margin-bottom: 20px;
|
|
53
|
+
padding-bottom: 22px;
|
|
54
|
+
}
|
|
55
|
+
`;
|
|
56
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../src/components/Modal/Viewer/styles.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,mBAAmB,CAAA;AAEtC,MAAM,CAAC,MAAM,OAAO,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqDhC,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React, { useContext } from 'react';
|
|
2
|
+
import { ViewerDiv } from './styles';
|
|
3
|
+
import Viewer from '@r2u/viewer';
|
|
4
|
+
import Canvas from '../Canvas';
|
|
5
|
+
import { FiArrowLeft } from '../../../assets/icons';
|
|
6
|
+
import { ModalContext } from '../Context';
|
|
7
|
+
const ModalViewerFull = ({ glb }) => {
|
|
8
|
+
const { closeModal } = useContext(ModalContext);
|
|
9
|
+
return (React.createElement(Canvas, null,
|
|
10
|
+
React.createElement(FiArrowLeft, { width: 30, height: 30, color: "#707070", cursor: "pointer", className: "exit", onClick: closeModal }),
|
|
11
|
+
React.createElement(ViewerDiv, null,
|
|
12
|
+
React.createElement(Viewer, { glbSrc: glb }))));
|
|
13
|
+
};
|
|
14
|
+
export default ModalViewerFull;
|
|
15
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/Modal/ViewerFull/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAEzC,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AAEpC,OAAO,MAAM,MAAM,aAAa,CAAA;AAChC,OAAO,MAAM,MAAM,WAAW,CAAA;AAC9B,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAMzC,MAAM,eAAe,GAAoB,CAAC,EAAE,GAAG,EAAS,EAAE,EAAE;IAC1D,MAAM,EAAE,UAAU,EAAE,GAAG,UAAU,CAAC,YAAY,CAAC,CAAA;IAE/C,OAAO,CACL,oBAAC,MAAM;QACL,oBAAC,WAAW,IACV,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE,EACV,KAAK,EAAC,SAAS,EACf,MAAM,EAAC,SAAS,EAChB,SAAS,EAAC,MAAM,EAChB,OAAO,EAAE,UAAU,GACnB;QACF,oBAAC,SAAS;YACR,oBAAC,MAAM,IAAC,MAAM,EAAE,GAAG,GAAI,CACb,CACL,CACV,CAAA;AACH,CAAC,CAAA;AAED,eAAe,eAAe,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
export const ViewerDiv = styled.div `
|
|
3
|
+
width: 100%;
|
|
4
|
+
height: 100%;
|
|
5
|
+
background-image: linear-gradient(to bottom, #e9eaeb, #e4e5e7);
|
|
6
|
+
|
|
7
|
+
model-viewer {
|
|
8
|
+
width: 100%;
|
|
9
|
+
height: 100%;
|
|
10
|
+
}
|
|
11
|
+
`;
|
|
12
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../src/components/Modal/ViewerFull/styles.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,mBAAmB,CAAA;AAEtC,MAAM,CAAC,MAAM,SAAS,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;;;CASlC,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Bar, Progress } from './styles';
|
|
3
|
+
const ProgressBar = (props) => {
|
|
4
|
+
const { progressBarColor, progressBarPosition, showProgress, scaleBar } = props;
|
|
5
|
+
return (React.createElement(Progress, { show: showProgress, color: progressBarColor, position: progressBarPosition, slot: "progress-bar" },
|
|
6
|
+
React.createElement(Bar, { scale: scaleBar })));
|
|
7
|
+
};
|
|
8
|
+
export default ProgressBar;
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/R2UModelViewer/ProgressBar/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AAGxC,MAAM,WAAW,GAAoB,CAAC,KAAY,EAAE,EAAE;IACpD,MAAM,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,YAAY,EAAE,QAAQ,EAAE,GACrE,KAAK,CAAA;IAEP,OAAO,CACL,oBAAC,QAAQ,IACP,IAAI,EAAE,YAAY,EAClB,KAAK,EAAE,gBAAgB,EACvB,QAAQ,EAAE,mBAAmB,EAC7B,IAAI,EAAC,cAAc;QAEnB,oBAAC,GAAG,IAAC,KAAK,EAAE,QAAQ,GAAI,CACf,CACZ,CAAA;AACH,CAAC,CAAA;AAED,eAAe,WAAW,CAAA"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/explicit-function-return-type */
|
|
2
|
+
import styled, { css } from 'styled-components';
|
|
3
|
+
export const Progress = styled.div `
|
|
4
|
+
position: absolute;
|
|
5
|
+
width: 100%;
|
|
6
|
+
height: 6px;
|
|
7
|
+
color: #d3d3d3c7;
|
|
8
|
+
box-shadow: 0px 0px 2px 1px currentColor;
|
|
9
|
+
border-radius: 10px;
|
|
10
|
+
opacity: 0;
|
|
11
|
+
transition: opacity 0.3s 0.3s;
|
|
12
|
+
${({ color }) => color &&
|
|
13
|
+
css `
|
|
14
|
+
color: ${color};
|
|
15
|
+
`};
|
|
16
|
+
|
|
17
|
+
${({ position }) => position &&
|
|
18
|
+
((position === 'top' &&
|
|
19
|
+
css `
|
|
20
|
+
width: 100%;
|
|
21
|
+
box-shadow: none;
|
|
22
|
+
top: 0 !important;
|
|
23
|
+
border-radius: 0;
|
|
24
|
+
border: none;
|
|
25
|
+
`) ||
|
|
26
|
+
(position === 'middle' &&
|
|
27
|
+
css `
|
|
28
|
+
width: calc(100% / 3);
|
|
29
|
+
top: calc(50% - 5px);
|
|
30
|
+
left: calc(50% - 100% / 6);
|
|
31
|
+
`) ||
|
|
32
|
+
(position === 'bottom' &&
|
|
33
|
+
css `
|
|
34
|
+
width: 100%;
|
|
35
|
+
box-shadow: none;
|
|
36
|
+
bottom: 0 !important;
|
|
37
|
+
border-radius: 0;
|
|
38
|
+
border: none;
|
|
39
|
+
`))};
|
|
40
|
+
|
|
41
|
+
${({ show }) => show &&
|
|
42
|
+
css `
|
|
43
|
+
transition-delay: 0s;
|
|
44
|
+
opacity: 1;
|
|
45
|
+
`}
|
|
46
|
+
`;
|
|
47
|
+
export const Bar = styled.div `
|
|
48
|
+
width: 100%;
|
|
49
|
+
height: 100%;
|
|
50
|
+
background-color: currentColor;
|
|
51
|
+
transform-origin: top left;
|
|
52
|
+
transform: scaleX(${({ scale }) => scale});
|
|
53
|
+
`;
|
|
54
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../src/components/R2UModelViewer/ProgressBar/styles.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAA;AAY/C,MAAM,CAAC,MAAM,QAAQ,GAAG,MAAM,CAAC,GAAG,CAAe;;;;;;;;;IAS7C,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CACd,KAAK;IACL,GAAG,CAAA;eACQ,KAAK;KACf;;IAED,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CACjB,QAAQ;IACR,CAAC,CAAC,QAAQ,KAAK,KAAK;QAClB,GAAG,CAAA;;;;;;OAMF,CAAC;QACF,CAAC,QAAQ,KAAK,QAAQ;YACpB,GAAG,CAAA;;;;SAIF,CAAC;QACJ,CAAC,QAAQ,KAAK,QAAQ;YACpB,GAAG,CAAA;;;;;;SAMF,CAAC,CAAC;;IAEP,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CACb,IAAI;IACJ,GAAG,CAAA;;;KAGF;CACJ,CAAA;AACD,MAAM,CAAC,MAAM,GAAG,GAAG,MAAM,CAAC,GAAG,CAAU;;;;;sBAKjB,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK;CACzC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/components/R2UModelViewer/ProgressBar/types.ts"],"names":[],"mappings":""}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { MouseEvent } from 'react';
|
|
2
2
|
import Viewer from '@r2u/viewer';
|
|
3
3
|
import { ViewerRef, ViewerProps } from '../../methods/types';
|
|
4
|
-
import { R2UModelViewerRef } from 'src/types';
|
|
4
|
+
import { R2UModelViewerRef } from '../../../src/types';
|
|
5
5
|
interface Props extends ViewerProps {
|
|
6
6
|
alt?: string;
|
|
7
7
|
autoRotate?: boolean;
|