@moonbase.sh/storefront 0.3.23 → 0.3.24
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 +73 -73
- package/dist/moonbase.umd.cjs +2 -2
- package/package.json +2 -2
package/dist/moonbase.js
CHANGED
|
@@ -4064,7 +4064,7 @@ var Oo = /* @__PURE__ */ ((e) => (e.Open = "Open", e.PaymentProcessing = "Paymen
|
|
|
4064
4064
|
constructor(t) {
|
|
4065
4065
|
this.configuration = t, this.tokens = null, this.refreshTimeoutId = null, this.refreshPromise = null;
|
|
4066
4066
|
var n;
|
|
4067
|
-
this.store = (
|
|
4067
|
+
this.store = (n = t.store) != null ? n : typeof window < "u" && localStorage ? new q0() : new z0();
|
|
4068
4068
|
const r = this.store.get(ms.storageKey);
|
|
4069
4069
|
r && (this.tokens = {
|
|
4070
4070
|
...r,
|
|
@@ -17098,7 +17098,7 @@ function eE(e, t) {
|
|
|
17098
17098
|
const Re = /* @__PURE__ */ ir(J2, [["render", eE]]), tE = { class: "moonbase:about" }, nE = /* @__PURE__ */ pe({
|
|
17099
17099
|
__name: "About",
|
|
17100
17100
|
setup(e) {
|
|
17101
|
-
const t = Te(), n = "0.3.
|
|
17101
|
+
const t = Te(), n = "0.3.24";
|
|
17102
17102
|
return (r, o) => (g(), C("div", tE, [
|
|
17103
17103
|
o[2] || (o[2] = Rh('<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)),
|
|
17104
17104
|
w(b(bp), { as: "h3" }, {
|
|
@@ -20805,19 +20805,19 @@ function Qk(e) {
|
|
|
20805
20805
|
const r = t[n];
|
|
20806
20806
|
return e >= 10 || e % 1 === 0 ? `${e.toFixed(0)} ${r}` : `${e.toFixed(1)} ${r}`;
|
|
20807
20807
|
}
|
|
20808
|
-
const
|
|
20808
|
+
const eO = { class: "moonbase:product-downloads" }, tO = ["data-open"], nO = {
|
|
20809
20809
|
key: 1,
|
|
20810
20810
|
class: "moonbase:product-downloads-content"
|
|
20811
|
-
},
|
|
20811
|
+
}, rO = {
|
|
20812
20812
|
key: 2,
|
|
20813
20813
|
class: "moonbase:product-downloads-content"
|
|
20814
|
-
},
|
|
20814
|
+
}, oO = {
|
|
20815
20815
|
key: 3,
|
|
20816
20816
|
class: "moonbase:product-downloads-content"
|
|
20817
|
-
},
|
|
20817
|
+
}, sO = {
|
|
20818
20818
|
key: 4,
|
|
20819
20819
|
class: "moonbase:product-downloads-content"
|
|
20820
|
-
},
|
|
20820
|
+
}, iO = { class: "moonbase:product-downloads-list" }, aO = { class: "moonbase:product-downloads-download-actions" }, lO = /* @__PURE__ */ pe({
|
|
20821
20821
|
__name: "ProductDownloads",
|
|
20822
20822
|
props: {
|
|
20823
20823
|
product: {}
|
|
@@ -20870,7 +20870,7 @@ const e3 = { class: "moonbase:product-downloads" }, t3 = ["data-open"], n3 = {
|
|
|
20870
20870
|
throw H;
|
|
20871
20871
|
}
|
|
20872
20872
|
}
|
|
20873
|
-
return (N, H) => (g(), C("div",
|
|
20873
|
+
return (N, H) => (g(), C("div", eO, [
|
|
20874
20874
|
w(et, null, {
|
|
20875
20875
|
default: O(() => [
|
|
20876
20876
|
H[1] || (H[1] = M(" Downloads ")),
|
|
@@ -20908,8 +20908,8 @@ const e3 = { class: "moonbase:product-downloads" }, t3 = ["data-open"], n3 = {
|
|
|
20908
20908
|
_: 1
|
|
20909
20909
|
})
|
|
20910
20910
|
])) : fe("", !0)
|
|
20911
|
-
], 8,
|
|
20912
|
-
N.product.downloadsNeedsUser && N.product.downloadsNeedsOwnership && !N.product.numberOfLicenses && !N.product.subscriptionLicenses ? (g(), C("div",
|
|
20911
|
+
], 8, tO)) : fe("", !0),
|
|
20912
|
+
N.product.downloadsNeedsUser && N.product.downloadsNeedsOwnership && !N.product.numberOfLicenses && !N.product.subscriptionLicenses ? (g(), C("div", nO, [
|
|
20913
20913
|
w(Qe, { "data-center": "" }, {
|
|
20914
20914
|
default: O(() => H[3] || (H[3] = [
|
|
20915
20915
|
M(" This product requires ownership to download ")
|
|
@@ -20920,7 +20920,7 @@ const e3 = { class: "moonbase:product-downloads" }, t3 = ["data-open"], n3 = {
|
|
|
20920
20920
|
label: "Sign in",
|
|
20921
20921
|
handler: c
|
|
20922
20922
|
})
|
|
20923
|
-
])) : N.product.downloadsNeedsUser && !b(r).user ? (g(), C("div",
|
|
20923
|
+
])) : N.product.downloadsNeedsUser && !b(r).user ? (g(), C("div", rO, [
|
|
20924
20924
|
w(Qe, { "data-center": "" }, {
|
|
20925
20925
|
default: O(() => H[4] || (H[4] = [
|
|
20926
20926
|
M(" This product requires an account to download ")
|
|
@@ -20931,21 +20931,21 @@ const e3 = { class: "moonbase:product-downloads" }, t3 = ["data-open"], n3 = {
|
|
|
20931
20931
|
label: "Sign in",
|
|
20932
20932
|
handler: c
|
|
20933
20933
|
})
|
|
20934
|
-
])) : N.product.downloadsNeedsOwnership && !N.product.numberOfLicenses && !N.product.subscriptionLicenses ? (g(), C("div",
|
|
20934
|
+
])) : N.product.downloadsNeedsOwnership && !N.product.numberOfLicenses && !N.product.subscriptionLicenses ? (g(), C("div", oO, [
|
|
20935
20935
|
w(Qe, { "data-center": "" }, {
|
|
20936
20936
|
default: O(() => H[5] || (H[5] = [
|
|
20937
20937
|
M(" This product requires ownership to download ")
|
|
20938
20938
|
])),
|
|
20939
20939
|
_: 1
|
|
20940
20940
|
})
|
|
20941
|
-
])) : (g(), C("div",
|
|
20942
|
-
q("div",
|
|
20941
|
+
])) : (g(), C("div", sO, [
|
|
20942
|
+
q("div", iO, [
|
|
20943
20943
|
(g(!0), C(Pe, null, _t(_.value, (z) => (g(), J(wn, {
|
|
20944
20944
|
key: z.key,
|
|
20945
20945
|
class: "moonbase:product-downloads-download"
|
|
20946
20946
|
}, {
|
|
20947
20947
|
addon: O(() => [
|
|
20948
|
-
q("div",
|
|
20948
|
+
q("div", aO, [
|
|
20949
20949
|
w(lt, {
|
|
20950
20950
|
label: `Download for ${z.platform}`,
|
|
20951
20951
|
variant: z.platform === b(h) ? "primary" : "secondary",
|
|
@@ -20986,25 +20986,25 @@ const e3 = { class: "moonbase:product-downloads" }, t3 = ["data-open"], n3 = {
|
|
|
20986
20986
|
]))
|
|
20987
20987
|
]));
|
|
20988
20988
|
}
|
|
20989
|
-
}),
|
|
20989
|
+
}), uO = { class: "moonbase:product-licenses" }, cO = {
|
|
20990
20990
|
key: 0,
|
|
20991
20991
|
class: "moonbase:loader"
|
|
20992
|
-
},
|
|
20992
|
+
}, dO = {
|
|
20993
20993
|
key: 1,
|
|
20994
20994
|
class: "moonbase:empty"
|
|
20995
|
-
},
|
|
20995
|
+
}, fO = {
|
|
20996
20996
|
key: 0,
|
|
20997
20997
|
class: "moonbase:loader"
|
|
20998
|
-
},
|
|
20998
|
+
}, hO = {
|
|
20999
20999
|
key: 1,
|
|
21000
21000
|
class: "moonbase:product-licenses-activations"
|
|
21001
|
-
},
|
|
21001
|
+
}, pO = { key: 0 }, mO = { class: "moonbase:product-licenses-activation-actions" }, bO = {
|
|
21002
21002
|
key: 2,
|
|
21003
21003
|
class: "moonbase:loader"
|
|
21004
|
-
},
|
|
21004
|
+
}, gO = {
|
|
21005
21005
|
key: 3,
|
|
21006
21006
|
class: "moonbase:product-licenses-licenses"
|
|
21007
|
-
},
|
|
21007
|
+
}, vO = /* @__PURE__ */ pe({
|
|
21008
21008
|
__name: "ProductLicenses",
|
|
21009
21009
|
props: {
|
|
21010
21010
|
product: {}
|
|
@@ -21052,7 +21052,7 @@ const e3 = { class: "moonbase:product-downloads" }, t3 = ["data-open"], n3 = {
|
|
|
21052
21052
|
throw h;
|
|
21053
21053
|
}
|
|
21054
21054
|
}
|
|
21055
|
-
return (f, h) => (g(), C("div",
|
|
21055
|
+
return (f, h) => (g(), C("div", uO, [
|
|
21056
21056
|
w(et, null, {
|
|
21057
21057
|
default: O(() => [
|
|
21058
21058
|
h[0] || (h[0] = M(" Licenses ")),
|
|
@@ -21065,9 +21065,9 @@ const e3 = { class: "moonbase:product-downloads" }, t3 = ["data-open"], n3 = {
|
|
|
21065
21065
|
]),
|
|
21066
21066
|
_: 1
|
|
21067
21067
|
}),
|
|
21068
|
-
c.value ? (g(), C("div",
|
|
21068
|
+
c.value ? (g(), C("div", cO, [
|
|
21069
21069
|
w(Jt)
|
|
21070
|
-
])) : !f.product.numberOfLicenses && !f.product.subscriptionLicenses ? (g(), C("div",
|
|
21070
|
+
])) : !f.product.numberOfLicenses && !f.product.subscriptionLicenses ? (g(), C("div", dO, [
|
|
21071
21071
|
w(Qe, null, {
|
|
21072
21072
|
default: O(() => h[1] || (h[1] = [
|
|
21073
21073
|
M(" You don't own any licenses for this product yet ")
|
|
@@ -21083,7 +21083,7 @@ const e3 = { class: "moonbase:product-downloads" }, t3 = ["data-open"], n3 = {
|
|
|
21083
21083
|
}, null, 8, ["href", "icon"])) : fe("", !0)
|
|
21084
21084
|
])) : fe("", !0),
|
|
21085
21085
|
c.value ? fe("", !0) : (g(), C(Pe, { key: 2 }, [
|
|
21086
|
-
f.product.maxActivations && f.product.maxActivations > 0 && !f.product.currentActivations ? (g(), C("div",
|
|
21086
|
+
f.product.maxActivations && f.product.maxActivations > 0 && !f.product.currentActivations ? (g(), C("div", fO, [
|
|
21087
21087
|
w(b(yd)),
|
|
21088
21088
|
w(et, null, {
|
|
21089
21089
|
default: O(() => h[2] || (h[2] = [
|
|
@@ -21092,7 +21092,7 @@ const e3 = { class: "moonbase:product-downloads" }, t3 = ["data-open"], n3 = {
|
|
|
21092
21092
|
_: 1
|
|
21093
21093
|
})
|
|
21094
21094
|
])) : fe("", !0),
|
|
21095
|
-
f.product.maxActivations && l.value ? (g(), C("div",
|
|
21095
|
+
f.product.maxActivations && l.value ? (g(), C("div", hO, [
|
|
21096
21096
|
(g(!0), C(Pe, null, _t(l.value ?? [], (p) => (g(), J(wn, {
|
|
21097
21097
|
key: p.id,
|
|
21098
21098
|
class: "moonbase:product-licenses-activation"
|
|
@@ -21126,7 +21126,7 @@ const e3 = { class: "moonbase:product-downloads" }, t3 = ["data-open"], n3 = {
|
|
|
21126
21126
|
_: 2
|
|
21127
21127
|
}, 1024)
|
|
21128
21128
|
]),
|
|
21129
|
-
p.lastValidatedAt ? (g(), C("div",
|
|
21129
|
+
p.lastValidatedAt ? (g(), C("div", pO, [
|
|
21130
21130
|
w(Er, null, {
|
|
21131
21131
|
default: O(() => h[5] || (h[5] = [
|
|
21132
21132
|
M(" First activated ")
|
|
@@ -21146,7 +21146,7 @@ const e3 = { class: "moonbase:product-downloads" }, t3 = ["data-open"], n3 = {
|
|
|
21146
21146
|
p.activationMethod === b(Na).Online ? {
|
|
21147
21147
|
name: "addon",
|
|
21148
21148
|
fn: O(() => [
|
|
21149
|
-
q("div",
|
|
21149
|
+
q("div", mO, [
|
|
21150
21150
|
w(lt, {
|
|
21151
21151
|
label: "Revoke",
|
|
21152
21152
|
variant: "secondary",
|
|
@@ -21159,7 +21159,7 @@ const e3 = { class: "moonbase:product-downloads" }, t3 = ["data-open"], n3 = {
|
|
|
21159
21159
|
} : void 0
|
|
21160
21160
|
]), 1024))), 128))
|
|
21161
21161
|
])) : fe("", !0),
|
|
21162
|
-
(!u.value || u.value.length === 0) && !f.product.maxActivations && (f.product.numberOfLicenses || f.product.subscriptionLicenses) ? (g(), C("div",
|
|
21162
|
+
(!u.value || u.value.length === 0) && !f.product.maxActivations && (f.product.numberOfLicenses || f.product.subscriptionLicenses) ? (g(), C("div", bO, [
|
|
21163
21163
|
w(b(yd)),
|
|
21164
21164
|
f.product.numberOfLicenses ? (g(), J(et, { key: 0 }, {
|
|
21165
21165
|
default: O(() => [
|
|
@@ -21173,7 +21173,7 @@ const e3 = { class: "moonbase:product-downloads" }, t3 = ["data-open"], n3 = {
|
|
|
21173
21173
|
]),
|
|
21174
21174
|
_: 1
|
|
21175
21175
|
})) : fe("", !0)
|
|
21176
|
-
])) : f.product.externalLicenses && u.value ? (g(), C("div",
|
|
21176
|
+
])) : f.product.externalLicenses && u.value ? (g(), C("div", gO, [
|
|
21177
21177
|
(g(!0), C(Pe, null, _t((u.value ?? []).filter((p) => p.externalFulfillment), (p) => (g(), J(wn, {
|
|
21178
21178
|
key: p.id,
|
|
21179
21179
|
class: "moonbase:product-licenses-license"
|
|
@@ -21208,16 +21208,16 @@ const e3 = { class: "moonbase:product-downloads" }, t3 = ["data-open"], n3 = {
|
|
|
21208
21208
|
], 64))
|
|
21209
21209
|
]));
|
|
21210
21210
|
}
|
|
21211
|
-
}),
|
|
21211
|
+
}), yO = { class: "moonbase:download-product" }, _O = {
|
|
21212
21212
|
key: 0,
|
|
21213
21213
|
class: "moonbase:loader"
|
|
21214
|
-
},
|
|
21214
|
+
}, wO = {
|
|
21215
21215
|
key: 1,
|
|
21216
21216
|
class: "moonbase:loader"
|
|
21217
|
-
},
|
|
21217
|
+
}, EO = {
|
|
21218
21218
|
key: 2,
|
|
21219
21219
|
class: "moonbase:loader"
|
|
21220
|
-
},
|
|
21220
|
+
}, xO = { key: 3 }, kO = /* @__PURE__ */ pe({
|
|
21221
21221
|
__name: "Product",
|
|
21222
21222
|
setup(e) {
|
|
21223
21223
|
const t = Te(), n = tt(), { loaded: r } = tt(), { getProduct: o } = fo(), s = V(null), i = V(null), a = V(!0);
|
|
@@ -21233,30 +21233,30 @@ const e3 = { class: "moonbase:product-downloads" }, t3 = ["data-open"], n3 = {
|
|
|
21233
21233
|
i.value = c.message;
|
|
21234
21234
|
}
|
|
21235
21235
|
a.value = !1;
|
|
21236
|
-
}), (l, u) => (g(), C("div",
|
|
21237
|
-
a.value || !b(r) ? (g(), C("div",
|
|
21236
|
+
}), (l, u) => (g(), C("div", yO, [
|
|
21237
|
+
a.value || !b(r) ? (g(), C("div", _O, [
|
|
21238
21238
|
w(Jt)
|
|
21239
|
-
])) : i.value ? (g(), C("div",
|
|
21239
|
+
])) : i.value ? (g(), C("div", wO, j(i.value), 1)) : s.value ? (g(), C("div", xO, [
|
|
21240
21240
|
w(Jk, { product: s.value }, null, 8, ["product"]),
|
|
21241
|
-
s.value.downloads ? (g(), J(
|
|
21241
|
+
s.value.downloads ? (g(), J(lO, {
|
|
21242
21242
|
key: 0,
|
|
21243
21243
|
product: s.value
|
|
21244
21244
|
}, null, 8, ["product"])) : fe("", !0),
|
|
21245
|
-
b(n).user.value ? (g(), J(
|
|
21245
|
+
b(n).user.value ? (g(), J(vO, {
|
|
21246
21246
|
key: 1,
|
|
21247
21247
|
product: s.value,
|
|
21248
21248
|
onRevoked: u[0] || (u[0] = (c) => s.value.currentActivations = (s.value.currentActivations ?? 1) - 1)
|
|
21249
21249
|
}, null, 8, ["product"])) : fe("", !0)
|
|
21250
|
-
])) : (g(), C("div",
|
|
21250
|
+
])) : (g(), C("div", EO, " Could not find product "))
|
|
21251
21251
|
]));
|
|
21252
21252
|
}
|
|
21253
|
-
}),
|
|
21253
|
+
}), OO = { class: "moonbase:peek" }, SO = ["data-visible"], NO = {
|
|
21254
21254
|
key: 1,
|
|
21255
21255
|
class: "moonbase:peek-voucher"
|
|
21256
|
-
},
|
|
21256
|
+
}, CO = {
|
|
21257
21257
|
key: 0,
|
|
21258
21258
|
class: "moonbase:peek-voucher-content"
|
|
21259
|
-
},
|
|
21259
|
+
}, TO = { class: "moonbase:peek-voucher-auth" }, PO = /* @__PURE__ */ pe({
|
|
21260
21260
|
__name: "Redeem",
|
|
21261
21261
|
setup(e) {
|
|
21262
21262
|
const { peek: t } = Hh(), n = Te(), r = V(null), o = V(null), s = V(n.getParameter("code") || "");
|
|
@@ -21280,13 +21280,13 @@ const e3 = { class: "moonbase:product-downloads" }, t3 = ["data-open"], n3 = {
|
|
|
21280
21280
|
code: s.value
|
|
21281
21281
|
}), n.show(le.Authentication, te.SignUp);
|
|
21282
21282
|
}
|
|
21283
|
-
return (u, c) => (g(), C("div",
|
|
21283
|
+
return (u, c) => (g(), C("div", OO, [
|
|
21284
21284
|
w(hi, {
|
|
21285
21285
|
mode: "out-in",
|
|
21286
21286
|
name: "moonbase:slide-left"
|
|
21287
21287
|
}, {
|
|
21288
21288
|
default: O(() => [
|
|
21289
|
-
r.value ? (g(), C("div",
|
|
21289
|
+
r.value ? (g(), C("div", NO, [
|
|
21290
21290
|
q("div", null, [
|
|
21291
21291
|
w(Wo, null, {
|
|
21292
21292
|
default: O(() => [
|
|
@@ -21314,7 +21314,7 @@ const e3 = { class: "moonbase:product-downloads" }, t3 = ["data-open"], n3 = {
|
|
|
21314
21314
|
])),
|
|
21315
21315
|
_: 1
|
|
21316
21316
|
}),
|
|
21317
|
-
r.value.redeemsProducts.length > 0 || r.value.redeemsBundles.length > 0 ? (g(), C("div",
|
|
21317
|
+
r.value.redeemsProducts.length > 0 || r.value.redeemsBundles.length > 0 ? (g(), C("div", CO, [
|
|
21318
21318
|
(g(!0), C(Pe, null, _t(r.value.redeemsProducts, ({ value: d, quantity: f }) => (g(), J(rm, {
|
|
21319
21319
|
key: d.id,
|
|
21320
21320
|
product: d,
|
|
@@ -21326,7 +21326,7 @@ const e3 = { class: "moonbase:product-downloads" }, t3 = ["data-open"], n3 = {
|
|
|
21326
21326
|
quantity: f
|
|
21327
21327
|
}, null, 8, ["bundle", "quantity"]))), 128))
|
|
21328
21328
|
])) : fe("", !0),
|
|
21329
|
-
q("div",
|
|
21329
|
+
q("div", TO, [
|
|
21330
21330
|
w(Qe, null, {
|
|
21331
21331
|
default: O(() => c[4] || (c[4] = [
|
|
21332
21332
|
M(" Sign in or create an account to redeem products ")
|
|
@@ -21374,7 +21374,7 @@ const e3 = { class: "moonbase:product-downloads" }, t3 = ["data-open"], n3 = {
|
|
|
21374
21374
|
q("span", {
|
|
21375
21375
|
class: "moonbase:error",
|
|
21376
21376
|
"data-visible": !!o.value || void 0
|
|
21377
|
-
}, j((d = o.value) == null ? void 0 : d.message), 9,
|
|
21377
|
+
}, j((d = o.value) == null ? void 0 : d.message), 9, SO)
|
|
21378
21378
|
];
|
|
21379
21379
|
}),
|
|
21380
21380
|
_: 1
|
|
@@ -21384,7 +21384,7 @@ const e3 = { class: "moonbase:product-downloads" }, t3 = ["data-open"], n3 = {
|
|
|
21384
21384
|
})
|
|
21385
21385
|
]));
|
|
21386
21386
|
}
|
|
21387
|
-
}), $
|
|
21387
|
+
}), $O = { class: "moonbase:subscription-content-card-content" }, AO = ["data-open"], DO = { class: "moonbase:subscription-content-card-content" }, IO = ["data-open"], MO = /* @__PURE__ */ pe({
|
|
21388
21388
|
__name: "ContentCard",
|
|
21389
21389
|
props: {
|
|
21390
21390
|
subscription: {}
|
|
@@ -21420,14 +21420,14 @@ const e3 = { class: "moonbase:product-downloads" }, t3 = ["data-open"], n3 = {
|
|
|
21420
21420
|
_: 1
|
|
21421
21421
|
})
|
|
21422
21422
|
])) : fe("", !0)
|
|
21423
|
-
], 8,
|
|
21423
|
+
], 8, AO)
|
|
21424
21424
|
]),
|
|
21425
21425
|
default: O(() => [
|
|
21426
21426
|
w(Qt, {
|
|
21427
21427
|
url: s.subscription.content.product.iconUrl,
|
|
21428
21428
|
size: 72
|
|
21429
21429
|
}, null, 8, ["url"]),
|
|
21430
|
-
q("div", $
|
|
21430
|
+
q("div", $O, [
|
|
21431
21431
|
w(Wo, null, {
|
|
21432
21432
|
default: O(() => {
|
|
21433
21433
|
var a;
|
|
@@ -21485,14 +21485,14 @@ const e3 = { class: "moonbase:product-downloads" }, t3 = ["data-open"], n3 = {
|
|
|
21485
21485
|
_: 1
|
|
21486
21486
|
})
|
|
21487
21487
|
])) : fe("", !0)
|
|
21488
|
-
], 8,
|
|
21488
|
+
], 8, IO)
|
|
21489
21489
|
]),
|
|
21490
21490
|
default: O(() => [
|
|
21491
21491
|
w(Qt, {
|
|
21492
21492
|
url: s.subscription.content.bundle.iconUrl,
|
|
21493
21493
|
size: 72
|
|
21494
21494
|
}, null, 8, ["url"]),
|
|
21495
|
-
q("div",
|
|
21495
|
+
q("div", DO, [
|
|
21496
21496
|
w(Wo, null, {
|
|
21497
21497
|
default: O(() => {
|
|
21498
21498
|
var a;
|
|
@@ -21523,16 +21523,16 @@ const e3 = { class: "moonbase:product-downloads" }, t3 = ["data-open"], n3 = {
|
|
|
21523
21523
|
_: 1
|
|
21524
21524
|
}));
|
|
21525
21525
|
}
|
|
21526
|
-
}),
|
|
21526
|
+
}), VO = { class: "moonbase:subscription" }, RO = {
|
|
21527
21527
|
key: 0,
|
|
21528
21528
|
class: "moonbase:loader"
|
|
21529
|
-
},
|
|
21529
|
+
}, LO = {
|
|
21530
21530
|
key: 1,
|
|
21531
21531
|
class: "moonbase:loader"
|
|
21532
|
-
},
|
|
21532
|
+
}, jO = {
|
|
21533
21533
|
key: 2,
|
|
21534
21534
|
class: "moonbase:loader"
|
|
21535
|
-
},
|
|
21535
|
+
}, FO = { key: 3 }, UO = { class: "moonbase:subscription-actions" }, BO = /* @__PURE__ */ pe({
|
|
21536
21536
|
__name: "Subscription",
|
|
21537
21537
|
setup(e) {
|
|
21538
21538
|
const t = Te(), { loaded: n } = tt(), { getSubscription: r, renewSubscription: o, cancelSubscription: s } = fo(), i = V(null), a = V(/* @__PURE__ */ new Date()), l = V(null), u = V(!0);
|
|
@@ -21563,12 +21563,12 @@ const e3 = { class: "moonbase:product-downloads" }, t3 = ["data-open"], n3 = {
|
|
|
21563
21563
|
async function d() {
|
|
21564
21564
|
i.value && (i.value = await s(i.value.id));
|
|
21565
21565
|
}
|
|
21566
|
-
return (f, h) => (g(), C("div",
|
|
21567
|
-
u.value || !b(n) ? (g(), C("div",
|
|
21566
|
+
return (f, h) => (g(), C("div", VO, [
|
|
21567
|
+
u.value || !b(n) ? (g(), C("div", RO, [
|
|
21568
21568
|
w(Jt)
|
|
21569
|
-
])) : l.value ? (g(), C("div",
|
|
21570
|
-
w(
|
|
21571
|
-
q("div",
|
|
21569
|
+
])) : l.value ? (g(), C("div", LO, j(l.value), 1)) : i.value ? (g(), C("div", FO, [
|
|
21570
|
+
w(MO, { subscription: i.value }, null, 8, ["subscription"]),
|
|
21571
|
+
q("div", UO, [
|
|
21572
21572
|
i.value.status === b(Pr).Active ? (g(), J(lt, {
|
|
21573
21573
|
key: 0,
|
|
21574
21574
|
label: "Cancel subscription",
|
|
@@ -21594,10 +21594,10 @@ const e3 = { class: "moonbase:product-downloads" }, t3 = ["data-open"], n3 = {
|
|
|
21594
21594
|
_: 1
|
|
21595
21595
|
}))
|
|
21596
21596
|
])
|
|
21597
|
-
])) : (g(), C("div",
|
|
21597
|
+
])) : (g(), C("div", jO, " Could not find subscription "))
|
|
21598
21598
|
]));
|
|
21599
21599
|
}
|
|
21600
|
-
}),
|
|
21600
|
+
}), HO = /* @__PURE__ */ pe({
|
|
21601
21601
|
__name: "App",
|
|
21602
21602
|
setup(e) {
|
|
21603
21603
|
const t = _e(jt), n = Te();
|
|
@@ -21629,7 +21629,7 @@ const e3 = { class: "moonbase:product-downloads" }, t3 = ["data-open"], n3 = {
|
|
|
21629
21629
|
(i = b(t)) != null && i.toolbar.enabled ? (g(), J(R_, { key: 0 })) : fe("", !0),
|
|
21630
21630
|
w(T_, null, {
|
|
21631
21631
|
default: O(() => [
|
|
21632
|
-
b(n).active === b(le).Cart ? (g(), J(nx, { key: 0 })) : b(n).active === b(le).Authentication ? (g(), J(D5, { key: 1 })) : b(n).active === b(le).Activation ? (g(), J(qE, { key: 2 })) : b(n).active === b(le).Product ? (g(), J(
|
|
21632
|
+
b(n).active === b(le).Cart ? (g(), J(nx, { key: 0 })) : b(n).active === b(le).Authentication ? (g(), J(D5, { key: 1 })) : b(n).active === b(le).Activation ? (g(), J(qE, { key: 2 })) : b(n).active === b(le).Product ? (g(), J(kO, { key: 3 })) : b(n).active === b(le).Subscription ? (g(), J(BO, { key: 4 })) : b(n).active === b(le).Customer ? (g(), J(Gk, { key: 5 })) : b(n).active === b(le).Redeem ? (g(), J(PO, { key: 6 })) : b(n).active === b(le).About ? (g(), J(nE, { key: 7 })) : fe("", !0)
|
|
21633
21633
|
]),
|
|
21634
21634
|
_: 1
|
|
21635
21635
|
})
|
|
@@ -21655,14 +21655,14 @@ function ka(e, ...t) {
|
|
|
21655
21655
|
}
|
|
21656
21656
|
return ka(e, ...t);
|
|
21657
21657
|
}
|
|
21658
|
-
function
|
|
21658
|
+
function qO(e) {
|
|
21659
21659
|
const t = (n) => Array.isArray(n) ? n.map((r) => t(r)) : Xe(n) || mn(n) || Bo(n) ? t(Oe(n)) : n && typeof n == "object" ? Object.keys(n).reduce((r, o) => (r[o] = t(n[o]), r), {}) : n;
|
|
21660
21660
|
return t(e);
|
|
21661
21661
|
}
|
|
21662
21662
|
const um = Symbol("url"), cr = (e, t) => window.dispatchEvent(new CustomEvent(`moonbase-storefront-${e}`, {
|
|
21663
|
-
detail:
|
|
21663
|
+
detail: qO(t)
|
|
21664
21664
|
})), po = Symbol("event-emitter");
|
|
21665
|
-
class
|
|
21665
|
+
class zO {
|
|
21666
21666
|
constructor() {
|
|
21667
21667
|
Mr(this, "initialized", !1);
|
|
21668
21668
|
Mr(this, "pinia");
|
|
@@ -21679,7 +21679,7 @@ class z3 {
|
|
|
21679
21679
|
}
|
|
21680
21680
|
this.options = V(ka(((l = this.options) == null ? void 0 : l.value) ?? fd, n ?? {})), Jl("Merged options:", this.options.value);
|
|
21681
21681
|
const r = document.createElement("div");
|
|
21682
|
-
r.id = "moonbase", r.classList.add("moonbase"), (this.options.value.target ?? document.body).append(r), this.storefront = Ny(t), this.pinia = Jy(), iy(
|
|
21682
|
+
r.id = "moonbase", r.classList.add("moonbase"), (this.options.value.target ?? document.body).append(r), this.storefront = Ny(t), this.pinia = Jy(), iy(HO).use(this.storefront).use(this.pinia).provide(jt, this.options).provide(um, t.replace(/\/$/, "")).provide(po, cr).mount("#moonbase"), this.initialized = !0, window && window.location && this.handleLocationIntent(window.location);
|
|
21683
21683
|
const i = Te(this.pinia), a = tt(this.storefront);
|
|
21684
21684
|
(u = this.storefront) == null || u.onCheckoutInitiated((c, d) => {
|
|
21685
21685
|
cr(Ut.CheckoutInitiated, {
|
|
@@ -21925,11 +21925,11 @@ class z3 {
|
|
|
21925
21925
|
Te(this.pinia).show(le.About, te.ViewAbout);
|
|
21926
21926
|
}
|
|
21927
21927
|
}
|
|
21928
|
-
const
|
|
21929
|
-
globalThis && (globalThis.Moonbase ? console.warn("Multiple instances of Moonbase detected, only one will be initialized") : globalThis.Moonbase =
|
|
21928
|
+
const WO = new zO();
|
|
21929
|
+
globalThis && (globalThis.Moonbase ? console.warn("Multiple instances of Moonbase detected, only one will be initialized") : globalThis.Moonbase = WO);
|
|
21930
21930
|
export {
|
|
21931
21931
|
te as MoonbaseIntent,
|
|
21932
|
-
|
|
21932
|
+
WO as default,
|
|
21933
21933
|
po as eventEmitterKey,
|
|
21934
21934
|
um as urlKey
|
|
21935
21935
|
};
|