@moonbase.sh/storefront 0.4.55 → 0.4.56
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/moonbase.js +14 -11
- package/dist/moonbase.umd.cjs +2 -2
- package/package.json +2 -2
package/dist/moonbase.js
CHANGED
|
@@ -9885,24 +9885,27 @@ function By() {
|
|
|
9885
9885
|
!t || !(t instanceof HTMLIFrameElement) || (e = t.contentWindow) == null || e.postMessage("close", "*");
|
|
9886
9886
|
}
|
|
9887
9887
|
function Ka(e) {
|
|
9888
|
+
var t;
|
|
9888
9889
|
if (typeof window > "u") {
|
|
9889
9890
|
console.warn("Can not mount checkout server side");
|
|
9890
9891
|
return;
|
|
9891
9892
|
}
|
|
9892
9893
|
if (document.getElementById("moonbase-checkout"))
|
|
9893
9894
|
return;
|
|
9894
|
-
const t = document.
|
|
9895
|
-
|
|
9896
|
-
|
|
9895
|
+
const n = (t = document.head.querySelector('meta[name="color-scheme"]')) == null ? void 0 : t.getAttribute("content");
|
|
9896
|
+
n && (e += `${e.includes("?") ? "&" : "?"}color_scheme=${encodeURIComponent(n)}`);
|
|
9897
|
+
const r = document.createElement("iframe");
|
|
9898
|
+
r.id = "moonbase-checkout", r.src = e, r.style.position = "fixed", r.style.top = "0px", r.style.left = "0px", r.style.right = "0px", r.style.border = "none", r.style.colorScheme = "normal", r.style.backgroundColor = "transparent", r.style.zIndex = Number.MAX_SAFE_INTEGER.toString(), r.setAttribute("background", "transparent"), r.setAttribute("frameborder", "0"), r.setAttribute("allowtransparency", "true"), r.setAttribute("allow", "payment"), r.height = "100%", r.width = "100%", document.body.append(r), document.documentElement.style.overflow = "hidden", window.onmessage = function(o) {
|
|
9899
|
+
var s;
|
|
9897
9900
|
try {
|
|
9898
|
-
const
|
|
9899
|
-
|
|
9900
|
-
detail:
|
|
9901
|
-
}))),
|
|
9902
|
-
detail:
|
|
9901
|
+
const i = Uy.parse(o.data);
|
|
9902
|
+
i.event === "close" && (document.body.contains(r) && (document.documentElement.style.removeProperty("overflow"), document.body.removeChild(r)), window.dispatchEvent(new CustomEvent("moonbase-checkout-closed", {
|
|
9903
|
+
detail: i
|
|
9904
|
+
}))), i.event === "completed" && window.dispatchEvent(new CustomEvent("moonbase-checkout-completed", {
|
|
9905
|
+
detail: i
|
|
9903
9906
|
}));
|
|
9904
|
-
} catch (
|
|
9905
|
-
((
|
|
9907
|
+
} catch (i) {
|
|
9908
|
+
((s = o.data) == null ? void 0 : s.source) === "moonbase-checkout" && console.error("Could not parse event:", o.data, i);
|
|
9906
9909
|
}
|
|
9907
9910
|
};
|
|
9908
9911
|
}
|
|
@@ -17430,7 +17433,7 @@ function CE(e, t) {
|
|
|
17430
17433
|
const Ae = /* @__PURE__ */ cr(OE, [["render", CE]]), NE = { class: "moonbase:about" }, PE = /* @__PURE__ */ pe({
|
|
17431
17434
|
__name: "About",
|
|
17432
17435
|
setup(e) {
|
|
17433
|
-
const t = $e(), n = "0.4.
|
|
17436
|
+
const t = $e(), n = "0.4.56";
|
|
17434
17437
|
return (r, o) => (b(), O("div", NE, [
|
|
17435
17438
|
o[2] || (o[2] = op('<svg viewBox="0 0 512 512" height="56px" width="56px"><g><path fill="currentColor" d="m493.17795,174.6135c6.257,75.3 -30.577,150.948 -100.579,190.758c-66.292,37.697 -145.001,33.405 -205.402,-4.415c0.409,-1.248 0.638,-2.577 0.638,-3.96c0,-7.026 -5.717,-12.743 -12.743,-12.743c-2.876,0 -5.524,0.969 -7.659,2.582c-18.813,-15.259 -35.159,-34.207 -47.856,-56.534c-54.663,-96.122 -21.054,-218.358 75.069,-273.021a201.218,201.218 0 0 1 33.302,-15.124c-32.428,3.667 -64.663,13.809 -94.827,30.962c-104.526,59.443 -149.511,183.241 -113.473,293.249c-3.376,3.057 -5.513,7.459 -5.513,12.362c0,9.207 7.491,16.698 16.698,16.698c0.136,0 0.267,-0.017 0.401,-0.02a252.205,252.205 0 0 0 8.683,16.691c67.869,119.344 219.635,161.073 338.98,93.204a250.416,250.416 0 0 0 32.893,-22.333c1.045,0.331 2.157,0.513 3.311,0.513c6.047,0 10.968,-4.921 10.968,-10.968c0,-0.605 -0.063,-1.196 -0.157,-1.775c69.545,-64.988 96.008,-165.054 67.266,-256.126m-446.526,25.112a5.071,5.071 0 0 1 -5.066,-5.066a5.072,5.072 0 0 1 5.066,-5.067a5.073,5.073 0 0 1 5.066,5.067a5.072,5.072 0 0 1 -5.066,5.066m-15.819,153.944c-8.238,0 -14.94,-6.702 -14.94,-14.94c0,-8.239 6.702,-14.941 14.94,-14.941c8.239,0 14.941,6.702 14.941,14.941c-0.001,8.238 -6.703,14.94 -14.941,14.94m144.258,-7.659c6.057,0 10.985,4.928 10.985,10.986c0,6.058 -4.928,10.985 -10.985,10.985c-6.058,0 -10.986,-4.928 -10.986,-10.985c0.001,-6.059 4.928,-10.986 10.986,-10.986m70.829,133.004c-5.079,0 -9.21,-4.132 -9.21,-9.21c0,-5.079 4.131,-9.21 9.21,-9.21c5.078,0 9.209,4.131 9.209,9.21c0,5.078 -4.13,9.21 -9.209,9.21m169.18,-37.289c-5.078,0 -9.209,-4.132 -9.209,-9.21s4.131,-9.209 9.209,-9.209s9.21,4.131 9.21,9.209s-4.132,9.21 -9.21,9.21"></path><path fill="currentColor" d="m144.78195,275.9675c46.746,82.201 151.278,110.943 233.48,64.197c59.864,-34.044 91.363,-98.736 86.013,-163.13a170.094,170.094 0 0 0 -5.515,-31.052c-23.045,0.567 -63.864,10.137 -104.194,61.671c-52.045,66.5 -186.285,49.153 -228.855,17.372c3.503,17.443 9.796,34.632 19.071,50.942m233.513,-65.677a8.663,8.663 0 1 1 -8.663,8.663a8.662,8.662 0 0 1 8.663,-8.663m-37.006,62.618c7.02,0 12.712,5.691 12.712,12.712s-5.692,12.712 -12.712,12.712c-7.021,0 -12.712,-5.691 -12.712,-12.712s5.691,-12.712 12.712,-12.712m-102.544,12.712a6.78,6.78 0 1 1 0,13.56a6.78,6.78 0 0 1 0,-13.56"></path><ellipse fill="currentColor" ry="7.3075" rx="7.3075" cy="152.05851" cx="251.33138"></ellipse><ellipse fill="currentColor" ry="5.35076" rx="5.35076" cy="210.31151" cx="204.89499"></ellipse><ellipse fill="currentColor" ry="12.09273" rx="12.09273" cy="200.15625" cx="302.28597"></ellipse></g></svg>', 1)),
|
|
17436
17439
|
E(v(jp), { as: "h3" }, {
|