@perceptimagery/dita-configurator-staging 0.3.2 → 0.3.2002
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 +81 -52
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -112,7 +112,7 @@ var __publicField = (obj, key, value) => {
|
|
|
112
112
|
host: "https://api.sprie.io"
|
|
113
113
|
};
|
|
114
114
|
const config$1 = Object.freeze(Config$2);
|
|
115
|
-
const version$1 = "0.3.
|
|
115
|
+
const version$1 = "0.3.2002";
|
|
116
116
|
function modifyLensArr$1(arr, element) {
|
|
117
117
|
const index2 = arr.findIndex((e) => e["sku"] === element["sku"]);
|
|
118
118
|
if (index2 !== -1) {
|
|
@@ -43320,7 +43320,9 @@ bool bvhIntersectFirstHit(
|
|
|
43320
43320
|
style: {
|
|
43321
43321
|
border: "0",
|
|
43322
43322
|
cursor: modelLoading ? "default" : "pointer",
|
|
43323
|
-
opacity: (selectedFrame == null ? void 0 : selectedFrame._id) === e._id ? "1" : ".6"
|
|
43323
|
+
opacity: (selectedFrame == null ? void 0 : selectedFrame._id) === e._id ? "1" : ".6",
|
|
43324
|
+
width: isMobileView ? 45 : 60,
|
|
43325
|
+
height: isMobileView ? 45 : 60
|
|
43324
43326
|
},
|
|
43325
43327
|
onClick: () => onChangeFrame(e),
|
|
43326
43328
|
disabled: modelLoading,
|
|
@@ -43329,8 +43331,7 @@ bool bvhIntersectFirstHit(
|
|
|
43329
43331
|
{
|
|
43330
43332
|
src: e.variantImage,
|
|
43331
43333
|
alt: e.name + "image",
|
|
43332
|
-
|
|
43333
|
-
height: 60,
|
|
43334
|
+
className: `sprie-config-image ${isMobileView ? "mobile-view" : ""}`,
|
|
43334
43335
|
style: {
|
|
43335
43336
|
transform: (selectedFrame == null ? void 0 : selectedFrame._id) === e._id ? "scale(1.2,1.2)" : "scale(1,1)"
|
|
43336
43337
|
}
|
|
@@ -43366,7 +43367,9 @@ bool bvhIntersectFirstHit(
|
|
|
43366
43367
|
style: {
|
|
43367
43368
|
border: "0",
|
|
43368
43369
|
cursor: modelLoading ? "default" : "pointer",
|
|
43369
|
-
opacity: (selectedLens == null ? void 0 : selectedLens._id) === e._id ? "1" : ".6"
|
|
43370
|
+
opacity: (selectedLens == null ? void 0 : selectedLens._id) === e._id ? "1" : ".6",
|
|
43371
|
+
width: isMobileView ? 45 : 60,
|
|
43372
|
+
height: isMobileView ? 45 : 60
|
|
43370
43373
|
},
|
|
43371
43374
|
onClick: () => onChangeLens(e),
|
|
43372
43375
|
disabled: modelLoading,
|
|
@@ -43398,53 +43401,79 @@ bool bvhIntersectFirstHit(
|
|
|
43398
43401
|
);
|
|
43399
43402
|
}
|
|
43400
43403
|
const index$2 = "";
|
|
43401
|
-
function LaserEngraving({
|
|
43404
|
+
function LaserEngraving({
|
|
43405
|
+
heading,
|
|
43406
|
+
onChecked,
|
|
43407
|
+
onTextAdded
|
|
43408
|
+
}) {
|
|
43402
43409
|
const [input, setInput] = reactExports.useState("");
|
|
43403
43410
|
const [isChecked, setIsChecked] = reactExports.useState(false);
|
|
43411
|
+
const [isBlur, setIsBlur] = reactExports.useState(false);
|
|
43404
43412
|
reactExports.useEffect(() => {
|
|
43405
43413
|
onChecked(isChecked);
|
|
43406
43414
|
});
|
|
43407
43415
|
reactExports.useEffect(() => {
|
|
43408
|
-
|
|
43409
|
-
|
|
43410
|
-
|
|
43411
|
-
|
|
43412
|
-
|
|
43413
|
-
|
|
43414
|
-
|
|
43415
|
-
|
|
43416
|
-
|
|
43417
|
-
|
|
43418
|
-
|
|
43419
|
-
|
|
43420
|
-
|
|
43421
|
-
|
|
43422
|
-
|
|
43423
|
-
|
|
43424
|
-
|
|
43425
|
-
|
|
43426
|
-
|
|
43427
|
-
|
|
43428
|
-
|
|
43429
|
-
|
|
43430
|
-
|
|
43431
|
-
|
|
43432
|
-
|
|
43433
|
-
|
|
43434
|
-
|
|
43435
|
-
|
|
43436
|
-
|
|
43437
|
-
|
|
43438
|
-
|
|
43439
|
-
|
|
43440
|
-
|
|
43441
|
-
|
|
43442
|
-
|
|
43443
|
-
|
|
43444
|
-
|
|
43445
|
-
|
|
43446
|
-
|
|
43447
|
-
|
|
43416
|
+
if (isBlur)
|
|
43417
|
+
onTextAdded(input);
|
|
43418
|
+
}, [isBlur]);
|
|
43419
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
43420
|
+
"div",
|
|
43421
|
+
{
|
|
43422
|
+
className: "sprie-config-engraving-block",
|
|
43423
|
+
style: { marginTop: ".5rem" },
|
|
43424
|
+
children: [
|
|
43425
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { style: { display: "flex", alignItems: "center", gap: ".8rem" }, children: [
|
|
43426
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
43427
|
+
"input",
|
|
43428
|
+
{
|
|
43429
|
+
type: "checkbox",
|
|
43430
|
+
className: "sprie-config-engraving-checkbox",
|
|
43431
|
+
onChange: (e) => {
|
|
43432
|
+
setIsChecked(e.target.checked);
|
|
43433
|
+
},
|
|
43434
|
+
checked: isChecked
|
|
43435
|
+
}
|
|
43436
|
+
),
|
|
43437
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
43438
|
+
"p",
|
|
43439
|
+
{
|
|
43440
|
+
style: {
|
|
43441
|
+
fontSize: ".9rem",
|
|
43442
|
+
color: "#4d4d4d",
|
|
43443
|
+
fontWeight: "500",
|
|
43444
|
+
margin: "0"
|
|
43445
|
+
},
|
|
43446
|
+
children: [
|
|
43447
|
+
"Add ",
|
|
43448
|
+
"Laser Engraving",
|
|
43449
|
+
" ",
|
|
43450
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { style: { fontWeight: "400" }, children: "(OPTIONAL)" })
|
|
43451
|
+
]
|
|
43452
|
+
}
|
|
43453
|
+
)
|
|
43454
|
+
] }),
|
|
43455
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "sprie-config-engraving-inputField-block", children: [
|
|
43456
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
43457
|
+
"input",
|
|
43458
|
+
{
|
|
43459
|
+
type: "text",
|
|
43460
|
+
className: "sprie-config-engraving-inputField",
|
|
43461
|
+
placeholder: "ADD CUSTOM TEXT",
|
|
43462
|
+
value: input,
|
|
43463
|
+
onChange: (e) => setInput(e.target.value),
|
|
43464
|
+
maxLength: 15,
|
|
43465
|
+
style: { padding: "0.7rem" },
|
|
43466
|
+
disabled: !isChecked,
|
|
43467
|
+
onBlur: (e) => setIsBlur(true),
|
|
43468
|
+
onFocus: (e) => setIsBlur(false)
|
|
43469
|
+
}
|
|
43470
|
+
),
|
|
43471
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "sprie-config-engraving-inputInfo", children: `${input.length}/15 characters` }),
|
|
43472
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("a", { href: "#", className: "sprie-config-engraving-link", children: "About Custom Laser Engraving" })
|
|
43473
|
+
] })
|
|
43474
|
+
]
|
|
43475
|
+
}
|
|
43476
|
+
);
|
|
43448
43477
|
}
|
|
43449
43478
|
const index$1 = "";
|
|
43450
43479
|
function StepTracker({
|
|
@@ -43632,7 +43661,9 @@ bool bvhIntersectFirstHit(
|
|
|
43632
43661
|
style: {
|
|
43633
43662
|
border: "0",
|
|
43634
43663
|
cursor: modelLoading ? "default" : "pointer",
|
|
43635
|
-
opacity: (selectedOrbital == null ? void 0 : selectedOrbital._id) === e._id ? "1" : ".6"
|
|
43664
|
+
opacity: (selectedOrbital == null ? void 0 : selectedOrbital._id) === e._id ? "1" : ".6",
|
|
43665
|
+
width: isMobileView ? 45 : 60,
|
|
43666
|
+
height: isMobileView ? 45 : 60
|
|
43636
43667
|
},
|
|
43637
43668
|
onClick: () => onChangeOrbital(e),
|
|
43638
43669
|
disabled: modelLoading,
|
|
@@ -43685,7 +43716,7 @@ bool bvhIntersectFirstHit(
|
|
|
43685
43716
|
const [showAddToCart, setShowAddToCart] = reactExports.useState(false);
|
|
43686
43717
|
const [viewerHeight, setViewerHeight] = reactExports.useState();
|
|
43687
43718
|
const mainContainerRef = reactExports.useRef(null);
|
|
43688
|
-
|
|
43719
|
+
(_a2 = mainContainerRef.current) == null ? void 0 : _a2.clientHeight;
|
|
43689
43720
|
const domInstance = reactExports.useRef();
|
|
43690
43721
|
domInstance.current = domService;
|
|
43691
43722
|
const isMobileView = window.innerWidth <= 576;
|
|
@@ -43776,7 +43807,6 @@ bool bvhIntersectFirstHit(
|
|
|
43776
43807
|
setSelectedOrbital(requestedOrbital);
|
|
43777
43808
|
};
|
|
43778
43809
|
const onEngravingChecked = (checked) => {
|
|
43779
|
-
console.log(checked);
|
|
43780
43810
|
};
|
|
43781
43811
|
const onEngravingTextAdded = (text) => {
|
|
43782
43812
|
console.log(text);
|
|
@@ -43795,11 +43825,10 @@ bool bvhIntersectFirstHit(
|
|
|
43795
43825
|
lensList && setSelectedLens(lensList[0]);
|
|
43796
43826
|
orbitalList && setSelectedOrbital(orbitalList[0]);
|
|
43797
43827
|
}, [frameList, lensList, orbitalList]);
|
|
43798
|
-
console.log(mainHeight);
|
|
43799
43828
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("section", { id: "Sprie-config-Main-Container", ref: mainContainerRef, children: [
|
|
43800
43829
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("header", { id: "Sprie-config-Header", children: [
|
|
43801
43830
|
/* @__PURE__ */ jsxRuntimeExports.jsx("img", { src: ditaLogo, alt: "dita-logo", width: 97, height: 20 }),
|
|
43802
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("p", { className: "sprie-config-Header-groupName", children: [
|
|
43831
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("p", { style: { margin: "0" }, className: "sprie-config-Header-groupName", children: [
|
|
43803
43832
|
orgName,
|
|
43804
43833
|
" CUSTOMIZER"
|
|
43805
43834
|
] })
|
|
@@ -43835,7 +43864,7 @@ bool bvhIntersectFirstHit(
|
|
|
43835
43864
|
top: isMobileView || !showAddToCart ? "-3rem" : "-8.5rem"
|
|
43836
43865
|
},
|
|
43837
43866
|
children: [
|
|
43838
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("p", { style: {
|
|
43867
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("p", { style: { margin: " 0.8rem 0 0" }, children: "$925.00 USD" }),
|
|
43839
43868
|
!isMobileView && showAddToCart && /* @__PURE__ */ jsxRuntimeExports.jsx(AddToCartBtn, {}),
|
|
43840
43869
|
showAddToCart && /* @__PURE__ */ jsxRuntimeExports.jsx("p", { style: { marginRight: ".8rem", fontSize: ".6rem" }, children: "Please Allow 7-10 Days for Customization Process." })
|
|
43841
43870
|
]
|