@velastack/patterns 0.7.1 → 0.8.0
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/chunks/generate-6JS05dWK.js +79 -0
- package/dist/chunks/generate-6JS05dWK.js.map +1 -0
- package/dist/chunks/generate-BZ741GPx.js +177 -0
- package/dist/chunks/generate-BZ741GPx.js.map +1 -0
- package/dist/chunks/{generate.runtime-1ldXcpiD.js → generate.runtime-BC6CBKh6.js} +2 -2
- package/dist/chunks/{generate.runtime-1ldXcpiD.js.map → generate.runtime-BC6CBKh6.js.map} +1 -1
- package/dist/chunks/{generate.runtime-WeDv05E2.js → generate.runtime-BDbotRNZ.js} +2 -2
- package/dist/chunks/{generate.runtime-WeDv05E2.js.map → generate.runtime-BDbotRNZ.js.map} +1 -1
- package/dist/chunks/{generate.runtime-CHQ_MQJQ.js → generate.runtime-C7tlPKH1.js} +2 -2
- package/dist/chunks/{generate.runtime-CHQ_MQJQ.js.map → generate.runtime-C7tlPKH1.js.map} +1 -1
- package/dist/chunks/{generate.runtime-CGjDfO1P.js → generate.runtime-Cj-5fzbQ.js} +2 -2
- package/dist/chunks/{generate.runtime-CGjDfO1P.js.map → generate.runtime-Cj-5fzbQ.js.map} +1 -1
- package/dist/chunks/{generate.runtime-aKNvrk3M.js → generate.runtime-Dt3Edp8-.js} +85 -74
- package/dist/chunks/generate.runtime-Dt3Edp8-.js.map +1 -0
- package/dist/chunks/{generate.runtime-Dq6yS7tN.js → generate.runtime-Du84quuK.js} +2 -2
- package/dist/chunks/{generate.runtime-Dq6yS7tN.js.map → generate.runtime-Du84quuK.js.map} +1 -1
- package/dist/chunks/{generate.runtime-CHS5lyHL.js → generate.runtime-KrQk7mqG.js} +38 -35
- package/dist/chunks/generate.runtime-KrQk7mqG.js.map +1 -0
- package/dist/chunks/root-layout.svelte-CsJ2QJYi.js +93 -0
- package/dist/chunks/root-layout.svelte-CsJ2QJYi.js.map +1 -0
- package/dist/chunks/site-VrqOvuiU.js +149 -0
- package/dist/chunks/site-VrqOvuiU.js.map +1 -0
- package/dist/index.js +678 -675
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunks/generate-BOQA-Flq.js +0 -171
- package/dist/chunks/generate-BOQA-Flq.js.map +0 -1
- package/dist/chunks/generate-CO88bEvs.js +0 -76
- package/dist/chunks/generate-CO88bEvs.js.map +0 -1
- package/dist/chunks/generate.runtime-CHS5lyHL.js.map +0 -1
- package/dist/chunks/generate.runtime-aKNvrk3M.js.map +0 -1
- package/dist/chunks/site-Dw2KIRJu.js +0 -108
- package/dist/chunks/site-Dw2KIRJu.js.map +0 -1
|
@@ -4,23 +4,24 @@ import { a as r, c as i, l as a } from "./providers-CL9kQ4hp.js";
|
|
|
4
4
|
import { t as o } from "./dedent-Gq6Krl4n.js";
|
|
5
5
|
import { t as s } from "./taggedTemplateLiteral-KSUnuvOk.js";
|
|
6
6
|
import { n as c } from "./logger-CQONztPm.js";
|
|
7
|
-
import { r as l, t as u } from "./generate-
|
|
7
|
+
import { r as l, t as u } from "./generate-BZ741GPx.js";
|
|
8
8
|
import { a as d, i as f, r as p } from "./collections-BrEA7a62.js";
|
|
9
9
|
import { i as m, n as h, t as g } from "./pocketbase-BtN-wL8f.js";
|
|
10
|
-
import {
|
|
11
|
-
import { t as
|
|
12
|
-
import { t as
|
|
13
|
-
import { r as
|
|
14
|
-
import { modifyEnvVarsFiles as
|
|
15
|
-
import { t as
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import j from "
|
|
20
|
-
import
|
|
21
|
-
import
|
|
10
|
+
import { a as _, i as v, r as y, s as b, t as x } from "./site-VrqOvuiU.js";
|
|
11
|
+
import { t as S } from "./env-BugddEjd.js";
|
|
12
|
+
import { t as C } from "./ts-morph-helpers-CHI9wAil.js";
|
|
13
|
+
import { r as w } from "./modify-file-B4uJzOEj.js";
|
|
14
|
+
import { modifyEnvVarsFiles as T } from "./env-vars-0hvKe55u.js";
|
|
15
|
+
import { t as E } from "./svelte-file-Dv5-bl79.js";
|
|
16
|
+
import { t as D } from "./root-layout.svelte-CsJ2QJYi.js";
|
|
17
|
+
import { n as O, t as k } from "./wuchale-config-c3Q4JVSF.js";
|
|
18
|
+
import { t as A } from "./modify-user-signup-DLtopazD.js";
|
|
19
|
+
import { i as j, r as M } from "./collections-BYcVyY9O.js";
|
|
20
|
+
import N from "node:fs";
|
|
21
|
+
import P from "node:path";
|
|
22
|
+
import F from "stripe";
|
|
22
23
|
//#region src/patterns/enable/payments/runtime/setup-shopify.ts
|
|
23
|
-
async function
|
|
24
|
+
async function I(e) {
|
|
24
25
|
let t = c(e), n = typeof e.input.demoId == "string" ? e.input.demoId.trim() : "", r = [];
|
|
25
26
|
return n && (t.info("Creating payment +page.svelte"), r.push({
|
|
26
27
|
path: "src/routes/(public)/payment/+page.svelte",
|
|
@@ -40,24 +41,24 @@ async function P(e) {
|
|
|
40
41
|
}
|
|
41
42
|
//#endregion
|
|
42
43
|
//#region src/patterns/enable/payments/modifies/modify-nav-user.ts
|
|
43
|
-
var
|
|
44
|
+
var L = [
|
|
44
45
|
"import CreditCardIcon from '@lucide/svelte/icons/credit-card';",
|
|
45
46
|
"",
|
|
46
47
|
"// Add to your navUser array:",
|
|
47
48
|
"{ title: 'Billing', url: '/billing', icon: CreditCardIcon }"
|
|
48
|
-
].join("\n"),
|
|
49
|
+
].join("\n"), R = [
|
|
49
50
|
"Add a Billing nav item to nav-user.svelte:",
|
|
50
51
|
"",
|
|
51
|
-
|
|
52
|
-
].join("\n"),
|
|
52
|
+
L
|
|
53
|
+
].join("\n"), z = [
|
|
53
54
|
"Create nav-user.svelte with a Billing entry:",
|
|
54
55
|
"",
|
|
55
|
-
|
|
56
|
+
L
|
|
56
57
|
].join("\n");
|
|
57
|
-
function
|
|
58
|
-
let a = new
|
|
58
|
+
function B(e, t, n, r, i) {
|
|
59
|
+
let a = new E(e), o = !1, s = (e) => {
|
|
59
60
|
o || e((e) => {
|
|
60
|
-
let a =
|
|
61
|
+
let a = C(e, t, n, r, i);
|
|
61
62
|
return a.wasAdded && (o = !0), a.source;
|
|
62
63
|
});
|
|
63
64
|
};
|
|
@@ -66,29 +67,29 @@ function R(e, t, n, r, i) {
|
|
|
66
67
|
wasAdded: o
|
|
67
68
|
};
|
|
68
69
|
}
|
|
69
|
-
function
|
|
70
|
-
if (!
|
|
70
|
+
function V(e) {
|
|
71
|
+
if (!N.existsSync(e)) return {
|
|
71
72
|
status: "not-found",
|
|
72
|
-
message:
|
|
73
|
+
message: z
|
|
73
74
|
};
|
|
74
|
-
let t =
|
|
75
|
+
let t = N.readFileSync(e, "utf8");
|
|
75
76
|
if (t.includes("/billing")) return {
|
|
76
77
|
status: "success",
|
|
77
78
|
changed: !1
|
|
78
79
|
};
|
|
79
|
-
let { newNavUserSnippet: n, wasAdded: r } =
|
|
80
|
-
return r ? (
|
|
80
|
+
let { newNavUserSnippet: n, wasAdded: r } = B(t, "Billing", "/billing", "CreditCardIcon", "@lucide/svelte/icons/credit-card");
|
|
81
|
+
return r ? (N.writeFileSync(e, n, "utf8"), {
|
|
81
82
|
status: "success",
|
|
82
83
|
changed: !0
|
|
83
84
|
}) : {
|
|
84
85
|
status: "failed",
|
|
85
|
-
message:
|
|
86
|
+
message: R
|
|
86
87
|
};
|
|
87
88
|
}
|
|
88
89
|
//#endregion
|
|
89
90
|
//#region src/patterns/enable/payments/runtime/stripe.ts
|
|
90
|
-
async function
|
|
91
|
-
let r = new
|
|
91
|
+
async function H(e, t, n) {
|
|
92
|
+
let r = new F(t), i = await e.collection("users").getFullList(), a = await e.collection("stripe_customers").getFullList(), o = new Set(a.map((e) => e.user)), s = {
|
|
92
93
|
total: i.length,
|
|
93
94
|
linked: o.size,
|
|
94
95
|
created: 0,
|
|
@@ -140,8 +141,8 @@ async function B(e, t, n) {
|
|
|
140
141
|
}
|
|
141
142
|
return s;
|
|
142
143
|
}
|
|
143
|
-
async function
|
|
144
|
-
let t = new
|
|
144
|
+
async function U(e) {
|
|
145
|
+
let t = new F(e), n = await t.products.search({
|
|
145
146
|
query: "name:\"Test Product\" AND metadata[\"test\"]:\"true\"",
|
|
146
147
|
limit: 1
|
|
147
148
|
});
|
|
@@ -171,8 +172,8 @@ async function V(e) {
|
|
|
171
172
|
existing: !1
|
|
172
173
|
};
|
|
173
174
|
}
|
|
174
|
-
async function
|
|
175
|
-
let n = new
|
|
175
|
+
async function W(e, t) {
|
|
176
|
+
let n = new F(e), r = await n.prices.retrieve(t, { expand: ["product"] }), i = typeof r.product == "string" ? await n.products.retrieve(r.product) : r.product;
|
|
176
177
|
return r.product = i.id, {
|
|
177
178
|
product: i,
|
|
178
179
|
price: r,
|
|
@@ -181,31 +182,31 @@ async function H(e, t) {
|
|
|
181
182
|
}
|
|
182
183
|
//#endregion
|
|
183
184
|
//#region src/patterns/enable/payments/runtime/setup-stripe.ts
|
|
184
|
-
var
|
|
185
|
-
async function
|
|
185
|
+
var G;
|
|
186
|
+
async function K(e, n, r, i, a = !0) {
|
|
186
187
|
if (!a) return;
|
|
187
188
|
await h();
|
|
188
189
|
let o = g(n, r, i);
|
|
189
190
|
o && e.push({
|
|
190
191
|
path: o,
|
|
191
192
|
language: t(o),
|
|
192
|
-
content:
|
|
193
|
+
content: N.readFileSync(o, "utf8"),
|
|
193
194
|
status: "success"
|
|
194
195
|
});
|
|
195
196
|
}
|
|
196
|
-
function
|
|
197
|
-
return o(
|
|
197
|
+
function q(e) {
|
|
198
|
+
return o(G ||= s(["\n <script lang=\"ts\">\n import PaymentButton from '#lib/components/payments/payment-button.svelte';\n <\/script>\n\n <section data-role=\"content\">\n <PaymentButton priceId=\"", "\" />\n </section>\n "]), e);
|
|
198
199
|
}
|
|
199
|
-
async function
|
|
200
|
+
async function J(e) {
|
|
200
201
|
let t = a(e).STRIPE_SECRET_KEY ?? "", n = typeof e.input.demoId == "string" && e.input.demoId !== "" ? e.input.demoId : void 0, r = e.features.auth, i = c(e), o = [], s = [], l = (e) => {
|
|
201
202
|
e && s.push(e);
|
|
202
203
|
};
|
|
203
204
|
await m(e.root, async (n) => {
|
|
204
|
-
let a = (e) =>
|
|
205
|
+
let a = (e) => M(n, e, i);
|
|
205
206
|
for (let t of [f, p]) {
|
|
206
207
|
i.info(`Creating ${t.name} collection`);
|
|
207
208
|
let r = await a(t);
|
|
208
|
-
await
|
|
209
|
+
await K(o, t.name, "created", e, r.created), r.created || o.push(...await j(n, t, e, i));
|
|
209
210
|
}
|
|
210
211
|
if (r) {
|
|
211
212
|
i.info("Creating stripe_customers collection");
|
|
@@ -243,7 +244,7 @@ async function K(e) {
|
|
|
243
244
|
}
|
|
244
245
|
]
|
|
245
246
|
}), s = r.collection;
|
|
246
|
-
await
|
|
247
|
+
await K(o, "stripe_customers", "created", e, r.created), i.info("Creating stripe_payment_methods collection");
|
|
247
248
|
let c = await a({
|
|
248
249
|
name: "stripe_payment_methods",
|
|
249
250
|
type: "base",
|
|
@@ -299,7 +300,7 @@ async function K(e) {
|
|
|
299
300
|
}
|
|
300
301
|
]
|
|
301
302
|
}), l = c.collection;
|
|
302
|
-
await
|
|
303
|
+
await K(o, "stripe_payment_methods", "created", e, c.created), i.info("Linking default_payment_method on stripe_customers"), await n.collections.update("stripe_customers", { fields: [
|
|
303
304
|
{
|
|
304
305
|
name: "id",
|
|
305
306
|
pattern: "^[a-zA-Z0-9_]+$",
|
|
@@ -336,7 +337,7 @@ async function K(e) {
|
|
|
336
337
|
onUpdate: !0,
|
|
337
338
|
type: "autodate"
|
|
338
339
|
}
|
|
339
|
-
] }), await
|
|
340
|
+
] }), await K(o, "stripe_customers", "updated", e), i.info("Creating transactions collection");
|
|
340
341
|
let u = await a({
|
|
341
342
|
name: "transactions",
|
|
342
343
|
type: "base",
|
|
@@ -407,12 +408,12 @@ async function K(e) {
|
|
|
407
408
|
}
|
|
408
409
|
]
|
|
409
410
|
});
|
|
410
|
-
await
|
|
411
|
-
let d = await
|
|
411
|
+
await K(o, "transactions", "created", e, u.created), i.info("Syncing existing PocketBase users to Stripe customers");
|
|
412
|
+
let d = await H(n, t, i);
|
|
412
413
|
i.info(`Synced ${d.total} users (created ${d.created}, reused ${d.reused}, skipped ${d.skipped})`);
|
|
413
414
|
}
|
|
414
415
|
}), n ? i.info(`Fetching Stripe product/price ${n}`) : i.info("Creating test Stripe product and price");
|
|
415
|
-
let { product: u, price: d, existing: h } = n ? await
|
|
416
|
+
let { product: u, price: d, existing: h } = n ? await W(t, n) : await U(t);
|
|
416
417
|
if (h && i.info("Stripe product/price already exists, skipping creation"), i.info("Seeding Stripe product/price records"), await m(e.root, async (e) => {
|
|
417
418
|
try {
|
|
418
419
|
await e.collection("stripe_products").getOne(u.id);
|
|
@@ -441,14 +442,14 @@ async function K(e) {
|
|
|
441
442
|
}), i.info("Creating payment +page.svelte"), o.push({
|
|
442
443
|
path: "src/routes/(public)/payment/+page.svelte",
|
|
443
444
|
language: "svelte",
|
|
444
|
-
content:
|
|
445
|
+
content: q(d.id),
|
|
445
446
|
status: "success"
|
|
446
447
|
}), r) {
|
|
447
448
|
i.info("Modifying nav-user.svelte");
|
|
448
|
-
let t =
|
|
449
|
-
l(
|
|
450
|
-
let n =
|
|
451
|
-
l(
|
|
449
|
+
let t = P.join(e.root, "src", "lib", "components", "nav-user.svelte");
|
|
450
|
+
l(w(t, V(t))), i.info("Modifying signup +page.server.ts");
|
|
451
|
+
let n = P.join(e.root, "src", "routes", "(public)", "(auth)", "signup", "+page.server.ts");
|
|
452
|
+
l(w(n, A(n)));
|
|
452
453
|
}
|
|
453
454
|
return {
|
|
454
455
|
creates: o,
|
|
@@ -463,18 +464,20 @@ async function K(e) {
|
|
|
463
464
|
}
|
|
464
465
|
//#endregion
|
|
465
466
|
//#region src/patterns/enable/payments/runtime/setup-whatsapp.ts
|
|
466
|
-
async function
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
467
|
+
async function Y(t, n) {
|
|
468
|
+
if (!n.currency) {
|
|
469
|
+
let n = t.input.currency;
|
|
470
|
+
throw new e(n === void 0 || n === "" ? "Payments on WhatsApp need the business's currency, the one it prices in (an ISO 4217 code such as MXN or EUR). Pass --currency, or set `currency` in src/lib/site.ts." : `${String(n)} is not an ISO 4217 currency code, such as MXN or EUR.`);
|
|
471
|
+
}
|
|
472
|
+
let r = [], i = P.join(t.root, "wuchale.config.js");
|
|
473
|
+
if (N.existsSync(i)) {
|
|
471
474
|
c(t).info("Adding src/lib/order.ts to wuchale's js adapter");
|
|
472
|
-
let e =
|
|
473
|
-
e &&
|
|
475
|
+
let e = w(i, O(i, k));
|
|
476
|
+
e && r.push(e);
|
|
474
477
|
}
|
|
475
478
|
return {
|
|
476
|
-
creates:
|
|
477
|
-
modifies:
|
|
479
|
+
creates: [],
|
|
480
|
+
modifies: r,
|
|
478
481
|
deletes: [],
|
|
479
482
|
components: [],
|
|
480
483
|
packages: [],
|
|
@@ -485,24 +488,32 @@ async function q(t) {
|
|
|
485
488
|
}
|
|
486
489
|
//#endregion
|
|
487
490
|
//#region src/patterns/enable/payments/generate.runtime.ts
|
|
488
|
-
function
|
|
491
|
+
function X(e) {
|
|
489
492
|
try {
|
|
490
|
-
let t = JSON.parse(
|
|
493
|
+
let t = JSON.parse(N.readFileSync(P.join(e, "package.json"), "utf8"));
|
|
491
494
|
return !!(t.devDependencies?.vitest || t.dependencies?.vitest);
|
|
492
495
|
} catch {
|
|
493
496
|
return !1;
|
|
494
497
|
}
|
|
495
498
|
}
|
|
496
|
-
async function
|
|
499
|
+
async function Z(e) {
|
|
497
500
|
let t = c(e), o = i(u, e), s = [], d = [], f = (e) => {
|
|
498
501
|
e && d.push(e);
|
|
499
502
|
};
|
|
500
503
|
t.info(`Writing ${o.label} credentials to .env`);
|
|
501
|
-
let p =
|
|
502
|
-
f(
|
|
503
|
-
let m =
|
|
504
|
+
let p = P.join(e.root, ".env");
|
|
505
|
+
f(w(p, S(p, l(o, a(e))))), t.info(`Declaring ${o.label} variables in src/env.ts`);
|
|
506
|
+
let m = T(e.root, r(o));
|
|
504
507
|
m.create && s.push(m.create), f(m.modify);
|
|
505
|
-
let h = {
|
|
508
|
+
let { currency: h, country: g, currencies: C } = e.input, E = N.existsSync(b(e.root)), { file: O, business: k } = await x(e, {
|
|
509
|
+
currency: _(h) ?? void 0,
|
|
510
|
+
country: y(g) ?? void 0,
|
|
511
|
+
currencies: v(C, _(h) ?? void 0) ?? void 0
|
|
512
|
+
});
|
|
513
|
+
O && (E ? d : s).push(O), t.info("Adding the currency select to the navbar");
|
|
514
|
+
let A = P.join(e.root, "src", "routes", "(public)", "root-layout.svelte");
|
|
515
|
+
f(w(A, D(A)));
|
|
516
|
+
let j = {
|
|
506
517
|
creates: s,
|
|
507
518
|
modifies: d,
|
|
508
519
|
deletes: [],
|
|
@@ -511,10 +522,10 @@ async function Y(e) {
|
|
|
511
522
|
collections: [],
|
|
512
523
|
collectionPatches: [],
|
|
513
524
|
collectionDrops: []
|
|
514
|
-
},
|
|
515
|
-
return n([
|
|
525
|
+
}, M = o.id === "stripe" ? await J(e) : o.id === "shopify" ? await I(e) : await Y(e, k);
|
|
526
|
+
return n([j, M]);
|
|
516
527
|
}
|
|
517
528
|
//#endregion
|
|
518
|
-
export {
|
|
529
|
+
export { Z as generate, X as hasVitest };
|
|
519
530
|
|
|
520
|
-
//# sourceMappingURL=generate.runtime-
|
|
531
|
+
//# sourceMappingURL=generate.runtime-Dt3Edp8-.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generate.runtime-Dt3Edp8-.js","names":["InvalidArgumentError","languageFromPath","mergeResults","providerEnvVars","resolveProvider","suppliedProviderEnv","dedent","_taggedTemplateLiteral","getLogger","envEditsFor","META","buyPageSnippet","STRIPE_PRODUCTS","STRIPE_PRICES","withPocketbase","migrationDelay","getMigrationFile","normalizeCurrency","normalizeCurrencies","normalizeCountry","sitePath","ensureSiteBusiness","modifyEnv","addNavItemToScript","modifyOutcomeToFile","SvelteFile","modifyRootLayoutCurrencySelect","modifyWuchaleJsFiles","TRANSLATED_LIB_FILES","modifyUserSignup","ensureCollectionFields","createCollectionIdempotent","fs","path","Stripe","setupShopify","logger","options","variantId","creates","BILLING_NAV_SNIPPET","FAILURE_HINT","NOT_FOUND_HINT","addItemToNavUser","file","navUserSnippet","wasAdded","tryAdd","run","result","source","title","url","icon","iconImportPath","fn","modifyNavUser","navUserPath","newNavUserSnippet","syncUsersToStripeCustomers","stripe","stripeSecretKey","users","pb","existing","linkedUserIds","c","user","matching","label","customer","isExistingCustomer","error","paymentMethods","paymentMethod","defaultPaymentMethod","createTestProductAndPrice","products","product","prices","getProductAndPriceById","price","priceId","_templateObject","pushMigrationCreates","created","migrationFile","collectionName","action","paymentPageSnippet","setupStripe","stripePriceId","isAppMode","modifies","pushResult","create","spec","customersResult","stripeCustomersCollection","paymentMethodsResult","stripePaymentMethodsCollection","transactionsResult","syncResult","userSignupPath","setupWhatsApp","business","given","wuchaleConfig","edit","hasVitest","pkg","root","generate","provider","envPath","envVars","modifyEnvVarsFiles","siteExisted","siteFile","currency","country","currencies","layoutPath","env","setup"],"sources":["../../src/patterns/enable/payments/runtime/setup-shopify.ts","../../src/patterns/enable/payments/modifies/modify-nav-user.ts","../../src/patterns/enable/payments/runtime/stripe.ts","../../src/patterns/enable/payments/runtime/setup-stripe.ts","../../src/patterns/enable/payments/runtime/setup-whatsapp.ts","../../src/patterns/enable/payments/generate.runtime.ts"],"sourcesContent":["import type { Options, Result } from \"../../../../core/types\";\nimport { getLogger } from \"../../../../core/logger\";\nimport { buyPageSnippet } from \"../shopify-page\";\n\n/**\n * Shopify keeps products, customers and checkout on its side, so past the env\n * there is only the demo page, and only when a variant to sell was given.\n */\nexport async function setupShopify(options: Options) {\n const logger = getLogger(options);\n const variantId =\n typeof options.input.demoId === \"string\" ? options.input.demoId.trim() : \"\";\n\n const creates = [];\n if (variantId) {\n logger.info(\"Creating payment +page.svelte\");\n creates.push({\n path: \"src/routes/(public)/payment/+page.svelte\",\n language: \"svelte\",\n content: buyPageSnippet(variantId),\n status: \"success\" as const,\n });\n }\n\n return {\n creates,\n modifies: [],\n deletes: [],\n components: [],\n packages: [],\n collections: [],\n collectionPatches: [],\n collectionDrops: [],\n } satisfies Result;\n}\n","import fs from \"node:fs\";\nimport { SvelteFile } from \"../../../../runtime/svelte-file\";\nimport { addNavItemToScript } from \"../../../../runtime/ts-morph-helpers\";\nimport type { ModifyOutcome } from \"../../../../core/types\";\n\nconst BILLING_NAV_SNIPPET = [\n \"import CreditCardIcon from '@lucide/svelte/icons/credit-card';\",\n \"\",\n \"// Add to your navUser array:\",\n \"{ title: 'Billing', url: '/billing', icon: CreditCardIcon }\",\n].join(\"\\n\");\n\nconst FAILURE_HINT = [\n \"Add a Billing nav item to nav-user.svelte:\",\n \"\",\n BILLING_NAV_SNIPPET,\n].join(\"\\n\");\n\nconst NOT_FOUND_HINT = [\n \"Create nav-user.svelte with a Billing entry:\",\n \"\",\n BILLING_NAV_SNIPPET,\n].join(\"\\n\");\n\nexport function addItemToNavUser(\n navUserSnippet: string,\n title: string,\n url: string,\n icon: string,\n iconImportPath: string,\n): { newNavUserSnippet: string; wasAdded: boolean } {\n const file = new SvelteFile(navUserSnippet);\n let wasAdded = false;\n\n const tryAdd = (run: (fn: (s: string) => string) => boolean) => {\n if (wasAdded) return;\n run((source) => {\n const result = addNavItemToScript(\n source,\n title,\n url,\n icon,\n iconImportPath,\n );\n if (result.wasAdded) wasAdded = true;\n return result.source;\n });\n };\n\n tryAdd((fn) => file.modifyModuleScript(fn));\n if (!wasAdded) tryAdd((fn) => file.modifyScript(fn));\n\n return { newNavUserSnippet: file.toString(), wasAdded };\n}\n\nexport function modifyNavUser(navUserPath: string): ModifyOutcome {\n if (!fs.existsSync(navUserPath)) {\n return { status: \"not-found\", message: NOT_FOUND_HINT };\n }\n\n const navUserSnippet = fs.readFileSync(navUserPath, \"utf8\");\n if (navUserSnippet.includes(\"/billing\")) {\n return { status: \"success\", changed: false };\n }\n\n const { newNavUserSnippet, wasAdded } = addItemToNavUser(\n navUserSnippet,\n \"Billing\",\n \"/billing\",\n \"CreditCardIcon\",\n \"@lucide/svelte/icons/credit-card\",\n );\n\n if (!wasAdded) {\n return { status: \"failed\", message: FAILURE_HINT };\n }\n\n fs.writeFileSync(navUserPath, newNavUserSnippet, \"utf8\");\n return { status: \"success\", changed: true };\n}\n","import Stripe from \"stripe\";\nimport type PocketBase from \"pocketbase\";\nimport type { Logger } from \"../../../../core/logger\";\n\nexport interface StripeTestFixture {\n product: Stripe.Product;\n price: Stripe.Price;\n existing: boolean;\n}\n\nexport interface SyncUsersResult {\n total: number;\n linked: number;\n created: number;\n reused: number;\n skipped: number;\n}\n\nexport async function syncUsersToStripeCustomers(\n pb: PocketBase,\n stripeSecretKey: string,\n logger: Logger,\n): Promise<SyncUsersResult> {\n const stripe = new Stripe(stripeSecretKey);\n const users = await pb.collection(\"users\").getFullList<{\n id: string;\n email?: string;\n name?: string;\n phone?: string;\n }>();\n\n const existing = await pb\n .collection(\"stripe_customers\")\n .getFullList<{ id: string; user: string }>();\n const linkedUserIds = new Set(existing.map((c) => c.user));\n\n const result: SyncUsersResult = {\n total: users.length,\n linked: linkedUserIds.size,\n created: 0,\n reused: 0,\n skipped: 0,\n };\n\n for (const user of users) {\n if (linkedUserIds.has(user.id)) {\n result.skipped += 1;\n continue;\n }\n\n // A user made with a phone number may have no email to match on.\n const matching = user.email\n ? await stripe.customers.list({\n email: user.email,\n limit: 1,\n expand: [\"data.invoice_settings\"],\n })\n : { data: [] };\n const label = user.email || user.id;\n\n let customer: Stripe.Customer;\n let isExistingCustomer = false;\n\n if (matching.data.length > 0) {\n customer = matching.data[0];\n isExistingCustomer = true;\n result.reused += 1;\n logger.info(`Reusing Stripe customer ${customer.id} for ${label}`);\n } else {\n customer = await stripe.customers.create(\n user.email\n ? { email: user.email }\n : { name: user.name || undefined, phone: user.phone || undefined },\n );\n result.created += 1;\n logger.info(`Created Stripe customer ${customer.id} for ${label}`);\n }\n\n try {\n await pb.collection(\"stripe_customers\").create({\n id: customer.id,\n user: user.id,\n });\n } catch (error) {\n logger.info(\n `Failed to create stripe_customers row for ${label}: ${(error as Error).message}`,\n );\n continue;\n }\n\n if (!isExistingCustomer) {\n continue;\n }\n\n const paymentMethods = await stripe.customers.listPaymentMethods(\n customer.id,\n { type: \"card\", allow_redisplay: \"always\" },\n );\n\n for (const paymentMethod of paymentMethods.data) {\n if (paymentMethod.allow_redisplay === \"unspecified\") continue;\n try {\n await pb.collection(\"stripe_payment_methods\").create({\n id: paymentMethod.id,\n customer: customer.id,\n brand: paymentMethod.card?.brand,\n last4: paymentMethod.card?.last4,\n exp_month: paymentMethod.card?.exp_month,\n exp_year: paymentMethod.card?.exp_year,\n });\n } catch {}\n }\n\n const defaultPaymentMethod =\n customer.invoice_settings?.default_payment_method;\n if (defaultPaymentMethod) {\n try {\n await pb.collection(\"stripe_customers\").update(customer.id, {\n default_payment_method:\n typeof defaultPaymentMethod === \"string\"\n ? defaultPaymentMethod\n : defaultPaymentMethod.id,\n });\n } catch {}\n }\n }\n\n return result;\n}\n\nexport async function createTestProductAndPrice(\n stripeSecretKey: string,\n): Promise<StripeTestFixture> {\n const stripe = new Stripe(stripeSecretKey);\n\n const products = await stripe.products.search({\n query: `name:\"Test Product\" AND metadata[\"test\"]:\"true\"`,\n limit: 1,\n });\n\n if (products.data.length > 0) {\n const product = products.data[0];\n const prices = await stripe.prices.list({\n product: product.id,\n active: true,\n limit: 1,\n });\n if (prices.data.length > 0) {\n return { product, price: prices.data[0], existing: true };\n }\n }\n\n const product = await stripe.products.create({\n name: \"Test Product\",\n metadata: { test: \"true\" },\n });\n\n const price = await stripe.prices.create({\n product: product.id,\n unit_amount: 1000,\n currency: \"usd\",\n });\n\n return { product, price, existing: false };\n}\n\nexport async function getProductAndPriceById(\n stripeSecretKey: string,\n priceId: string,\n): Promise<StripeTestFixture> {\n const stripe = new Stripe(stripeSecretKey);\n const price = await stripe.prices.retrieve(priceId, { expand: [\"product\"] });\n const product =\n typeof price.product === \"string\"\n ? await stripe.products.retrieve(price.product)\n : (price.product as Stripe.Product);\n price.product = product.id;\n return { product, price, existing: true };\n}\n","import fs from \"node:fs\";\nimport path from \"node:path\";\nimport dedent from \"dedent\";\nimport type { File, Options, Result } from \"../../../../core/types\";\nimport { getLogger } from \"../../../../core/logger\";\nimport { suppliedProviderEnv } from \"../../../../core/providers\";\nimport { languageFromPath } from \"../../../../core/util\";\nimport {\n getMigrationFile,\n migrationDelay,\n withPocketbase,\n} from \"../../../../runtime/pocketbase\";\nimport {\n createCollectionIdempotent,\n ensureCollectionFields,\n} from \"../../../../runtime/collections\";\nimport { STRIPE_PRICES, STRIPE_PRODUCTS } from \"./collections\";\nimport { modifyOutcomeToFile } from \"../../../../runtime/modify-file\";\nimport { modifyNavUser } from \"../modifies/modify-nav-user\";\nimport { modifyUserSignup } from \"../modifies/modify-user-signup\";\nimport {\n createTestProductAndPrice,\n getProductAndPriceById,\n syncUsersToStripeCustomers,\n} from \"./stripe\";\n\nasync function pushMigrationCreates(\n creates: File[],\n collectionName: string,\n action: \"created\" | \"updated\",\n options: Options,\n created = true,\n) {\n if (!created) return;\n await migrationDelay();\n const migrationFile = getMigrationFile(collectionName, action, options);\n if (!migrationFile) return;\n creates.push({\n path: migrationFile,\n language: languageFromPath(migrationFile),\n content: fs.readFileSync(migrationFile, \"utf8\"),\n status: \"success\",\n });\n}\n\nfunction paymentPageSnippet(priceId: string): string {\n return dedent`\n <script lang=\"ts\">\n import PaymentButton from '#lib/components/payments/payment-button.svelte';\n </script>\n\n <section data-role=\"content\">\n <PaymentButton priceId=\"${priceId}\" />\n </section>\n `;\n}\n\n/**\n * Everything Stripe needs past its env: the catalog and customer collections,\n * the existing users as Stripe customers, a product/price for the demo page,\n * and, with auth, the billing nav item and the signup link to Stripe.\n */\nexport async function setupStripe(options: Options) {\n const stripeSecretKey = suppliedProviderEnv(options).STRIPE_SECRET_KEY ?? \"\";\n const stripePriceId =\n typeof options.input.demoId === \"string\" && options.input.demoId !== \"\"\n ? options.input.demoId\n : undefined;\n\n const isAppMode = options.features.auth;\n const logger = getLogger(options);\n const creates: File[] = [];\n const modifies: File[] = [];\n const pushResult = (file: File | null) => {\n if (file) modifies.push(file);\n };\n\n await withPocketbase(options.root, async (pb) => {\n const create = (spec: Parameters<typeof createCollectionIdempotent>[1]) =>\n createCollectionIdempotent(pb, spec, logger);\n\n // The catalog: created, or, when a project enabled payments before a\n // field existed, brought up to the spec (the next sync fills the field).\n for (const spec of [STRIPE_PRODUCTS, STRIPE_PRICES]) {\n logger.info(`Creating ${spec.name} collection`);\n const result = await create(spec);\n await pushMigrationCreates(\n creates,\n spec.name,\n \"created\",\n options,\n result.created,\n );\n if (!result.created) {\n creates.push(\n ...(await ensureCollectionFields(pb, spec, options, logger)),\n );\n }\n }\n\n if (isAppMode) {\n logger.info(\"Creating stripe_customers collection\");\n const customersResult = await create({\n name: \"stripe_customers\",\n type: \"base\",\n fields: [\n {\n name: \"id\",\n pattern: \"^[a-zA-Z0-9_]+$\",\n primaryKey: true,\n required: true,\n system: true,\n type: \"text\",\n },\n {\n collectionId: \"_pb_users_auth_\",\n maxSelect: 1,\n minSelect: 0,\n name: \"user\",\n required: true,\n type: \"relation\",\n },\n {\n name: \"created\",\n onCreate: true,\n onUpdate: false,\n type: \"autodate\",\n },\n {\n name: \"updated\",\n onCreate: true,\n onUpdate: true,\n type: \"autodate\",\n },\n ],\n });\n const stripeCustomersCollection = customersResult.collection;\n await pushMigrationCreates(\n creates,\n \"stripe_customers\",\n \"created\",\n options,\n customersResult.created,\n );\n\n logger.info(\"Creating stripe_payment_methods collection\");\n const paymentMethodsResult = await create({\n name: \"stripe_payment_methods\",\n type: \"base\",\n fields: [\n {\n name: \"id\",\n pattern: \"^[a-zA-Z0-9_]+$\",\n primaryKey: true,\n required: true,\n system: true,\n type: \"text\",\n },\n { name: \"brand\", required: true, type: \"text\" },\n { name: \"last4\", required: true, type: \"text\" },\n { name: \"exp_month\", required: true, type: \"number\" },\n { name: \"exp_year\", required: true, type: \"number\" },\n {\n collectionId: stripeCustomersCollection.id,\n maxSelect: 1,\n minSelect: 0,\n name: \"customer\",\n required: true,\n type: \"relation\",\n cascadeDelete: true,\n },\n {\n name: \"created\",\n onCreate: true,\n onUpdate: false,\n type: \"autodate\",\n },\n {\n name: \"updated\",\n onCreate: true,\n onUpdate: true,\n type: \"autodate\",\n },\n ],\n });\n const stripePaymentMethodsCollection = paymentMethodsResult.collection;\n await pushMigrationCreates(\n creates,\n \"stripe_payment_methods\",\n \"created\",\n options,\n paymentMethodsResult.created,\n );\n\n logger.info(\"Linking default_payment_method on stripe_customers\");\n await pb.collections.update(\"stripe_customers\", {\n fields: [\n {\n name: \"id\",\n pattern: \"^[a-zA-Z0-9_]+$\",\n primaryKey: true,\n required: true,\n system: true,\n type: \"text\",\n },\n {\n collectionId: \"_pb_users_auth_\",\n maxSelect: 1,\n minSelect: 0,\n name: \"user\",\n required: true,\n type: \"relation\",\n },\n {\n collectionId: stripePaymentMethodsCollection.id,\n maxSelect: 1,\n minSelect: 0,\n name: \"default_payment_method\",\n required: false,\n type: \"relation\",\n },\n {\n name: \"created\",\n onCreate: true,\n onUpdate: false,\n type: \"autodate\",\n },\n {\n name: \"updated\",\n onCreate: true,\n onUpdate: true,\n type: \"autodate\",\n },\n ],\n });\n await pushMigrationCreates(\n creates,\n \"stripe_customers\",\n \"updated\",\n options,\n );\n\n logger.info(\"Creating transactions collection\");\n const transactionsResult = await create({\n name: \"transactions\",\n type: \"base\",\n fields: [\n {\n autogeneratePattern: \"[a-z0-9]{15}\",\n max: 15,\n min: 15,\n name: \"id\",\n pattern: \"^[a-z0-9]+$\",\n primaryKey: true,\n required: true,\n system: true,\n type: \"text\",\n },\n { name: \"stripe_payment_intent\", required: true, type: \"text\" },\n { name: \"amount\", required: true, type: \"number\" },\n { name: \"currency\", required: true, type: \"text\" },\n { name: \"last4\", required: true, type: \"text\" },\n { name: \"brand\", required: true, type: \"text\" },\n { name: \"created\", required: true, type: \"date\" },\n { name: \"stripe_charge\", required: true, type: \"text\" },\n { name: \"stripe_customer\", required: true, type: \"text\" },\n {\n collectionId: \"_pb_users_auth_\",\n maxSelect: 1,\n minSelect: 0,\n name: \"user\",\n required: true,\n type: \"relation\",\n },\n { name: \"receipt_url\", required: true, type: \"url\" },\n ],\n });\n await pushMigrationCreates(\n creates,\n \"transactions\",\n \"created\",\n options,\n transactionsResult.created,\n );\n\n logger.info(\"Syncing existing PocketBase users to Stripe customers\");\n const syncResult = await syncUsersToStripeCustomers(\n pb,\n stripeSecretKey,\n logger,\n );\n logger.info(\n `Synced ${syncResult.total} users (created ${syncResult.created}, reused ${syncResult.reused}, skipped ${syncResult.skipped})`,\n );\n }\n });\n\n if (stripePriceId) {\n logger.info(`Fetching Stripe product/price ${stripePriceId}`);\n } else {\n logger.info(\"Creating test Stripe product and price\");\n }\n const { product, price, existing } = stripePriceId\n ? await getProductAndPriceById(stripeSecretKey, stripePriceId)\n : await createTestProductAndPrice(stripeSecretKey);\n\n if (existing) {\n logger.info(\"Stripe product/price already exists, skipping creation\");\n }\n\n logger.info(\"Seeding Stripe product/price records\");\n await withPocketbase(options.root, async (pb) => {\n try {\n await pb.collection(\"stripe_products\").getOne(product.id);\n } catch (error) {\n await pb.collection(\"stripe_products\").create({\n id: product.id,\n name: product.name,\n active: product.active,\n default_price: product.default_price,\n });\n }\n\n try {\n await pb.collection(\"stripe_prices\").getOne(price.id);\n } catch (error) {\n await pb.collection(\"stripe_prices\").create({\n id: price.id,\n billing_scheme: price.billing_scheme,\n currency: price.currency,\n product: price.product,\n recurring: price.recurring,\n type: price.type,\n unit_amount: price.unit_amount,\n active: price.active,\n });\n }\n });\n\n logger.info(\"Creating payment +page.svelte\");\n creates.push({\n path: \"src/routes/(public)/payment/+page.svelte\",\n language: \"svelte\",\n content: paymentPageSnippet(price.id),\n status: \"success\",\n });\n\n if (isAppMode) {\n logger.info(\"Modifying nav-user.svelte\");\n const navUserPath = path.join(\n options.root,\n \"src\",\n \"lib\",\n \"components\",\n \"nav-user.svelte\",\n );\n pushResult(modifyOutcomeToFile(navUserPath, modifyNavUser(navUserPath)));\n\n logger.info(\"Modifying signup +page.server.ts\");\n const userSignupPath = path.join(\n options.root,\n \"src\",\n \"routes\",\n \"(public)\",\n \"(auth)\",\n \"signup\",\n \"+page.server.ts\",\n );\n pushResult(\n modifyOutcomeToFile(userSignupPath, modifyUserSignup(userSignupPath)),\n );\n }\n\n return {\n creates,\n modifies,\n deletes: [],\n components: [],\n packages: [],\n collections: [],\n collectionPatches: [],\n collectionDrops: [],\n } satisfies Result;\n}\n","import fs from \"node:fs\";\nimport path from \"node:path\";\nimport type { File, Options, Result } from \"../../../../core/types\";\nimport { InvalidArgumentError } from \"../../../../core/errors\";\nimport { getLogger } from \"../../../../core/logger\";\nimport { modifyOutcomeToFile } from \"../../../../runtime/modify-file\";\nimport type { SiteBusiness } from \"../../../../runtime/site\";\nimport {\n modifyWuchaleJsFiles,\n TRANSLATED_LIB_FILES,\n} from \"../../../../runtime/wuchale-config\";\n\n/**\n * WhatsApp keeps nothing past the env: orders go to the business's chat, and\n * the hosted form they are recorded to is created by the CLI. Every price is\n * in `site.currency`, so a project without one can't take orders: `business`\n * is what `src/lib/site.ts` declares after the shared step wrote it.\n */\nexport async function setupWhatsApp(options: Options, business: SiteBusiness) {\n if (!business.currency) {\n const given = options.input.currency;\n throw new InvalidArgumentError(\n given === undefined || given === \"\"\n ? \"Payments on WhatsApp need the business's currency, the one it prices in (an ISO 4217 code such as MXN or EUR). Pass --currency, or set `currency` in src/lib/site.ts.\"\n : `${String(given)} is not an ISO 4217 currency code, such as MXN or EUR.`,\n );\n }\n const modifies: File[] = [];\n\n // The order message is text a visitor sends, so with wuchale on it is\n // translated like the pages: the js adapter has to be told about the module.\n const wuchaleConfig = path.join(options.root, \"wuchale.config.js\");\n if (fs.existsSync(wuchaleConfig)) {\n getLogger(options).info(\"Adding src/lib/order.ts to wuchale's js adapter\");\n const edit = modifyOutcomeToFile(\n wuchaleConfig,\n modifyWuchaleJsFiles(wuchaleConfig, TRANSLATED_LIB_FILES),\n );\n if (edit) modifies.push(edit);\n }\n\n return {\n creates: [],\n modifies,\n deletes: [],\n components: [],\n packages: [],\n collections: [],\n collectionPatches: [],\n collectionDrops: [],\n } satisfies Result;\n}\n","import fs from \"node:fs\";\nimport path from \"node:path\";\nimport type { File, Options, Result } from \"../../../core/types\";\nimport { getLogger } from \"../../../core/logger\";\nimport {\n providerEnvVars,\n resolveProvider,\n suppliedProviderEnv,\n} from \"../../../core/providers\";\nimport { mergeResults } from \"../../../core/util\";\nimport { modifyEnvVarsFiles } from \"../../../runtime/env-vars\";\nimport { modifyOutcomeToFile } from \"../../../runtime/modify-file\";\nimport { modifyEnv } from \"../../../runtime/env\";\nimport {\n ensureSiteBusiness,\n normalizeCountry,\n normalizeCurrencies,\n normalizeCurrency,\n sitePath,\n} from \"../../../runtime/site\";\nimport { envEditsFor, META } from \"./generate\";\nimport { modifyRootLayoutCurrencySelect } from \"./modifies/root-layout.svelte\";\nimport { setupShopify } from \"./runtime/setup-shopify\";\nimport { setupStripe } from \"./runtime/setup-stripe\";\nimport { setupWhatsApp } from \"./runtime/setup-whatsapp\";\n\n/** Whether the project can run a unit test (`vitest` in package.json). */\nexport function hasVitest(root: string): boolean {\n try {\n const pkg = JSON.parse(\n fs.readFileSync(path.join(root, \"package.json\"), \"utf8\"),\n ) as {\n dependencies?: Record<string, string>;\n devDependencies?: Record<string, string>;\n };\n return Boolean(pkg.devDependencies?.vitest || pkg.dependencies?.vitest);\n } catch {\n return false;\n }\n}\n\nexport async function generate(options: Options) {\n const logger = getLogger(options);\n const provider = resolveProvider(META, options);\n const creates: File[] = [];\n const modifies: File[] = [];\n\n const pushResult = (file: File | null) => {\n if (file) modifies.push(file);\n };\n\n logger.info(`Writing ${provider.label} credentials to .env`);\n const envPath = path.join(options.root, \".env\");\n pushResult(\n modifyOutcomeToFile(\n envPath,\n modifyEnv(envPath, envEditsFor(provider, suppliedProviderEnv(options))),\n ),\n );\n\n // SvelteKit 3 exposes only declared variables, and only `public: true`\n // ones through `$app/env/public`.\n logger.info(`Declaring ${provider.label} variables in src/env.ts`);\n const envVars = modifyEnvVarsFiles(options.root, providerEnvVars(provider));\n if (envVars.create) creates.push(envVars.create);\n pushResult(envVars.modify);\n\n // What the business declares in src/lib/site.ts: the currency it prices\n // in, the country it is in, and the other currencies it shows prices in.\n // Asked for by the CLI; a value already there is kept.\n const { currency, country, currencies } = options.input;\n const siteExisted = fs.existsSync(sitePath(options.root));\n const { file: siteFile, business } = await ensureSiteBusiness(options, {\n currency: normalizeCurrency(currency) ?? undefined,\n country: normalizeCountry(country) ?? undefined,\n currencies:\n normalizeCurrencies(\n currencies,\n normalizeCurrency(currency) ?? undefined,\n ) ?? undefined,\n });\n if (siteFile) (siteExisted ? modifies : creates).push(siteFile);\n\n logger.info(\"Adding the currency select to the navbar\");\n const layoutPath = path.join(\n options.root,\n \"src\",\n \"routes\",\n \"(public)\",\n \"root-layout.svelte\",\n );\n pushResult(\n modifyOutcomeToFile(layoutPath, modifyRootLayoutCurrencySelect(layoutPath)),\n );\n\n const env: Result = {\n creates,\n modifies,\n deletes: [],\n components: [],\n packages: [],\n collections: [],\n collectionPatches: [],\n collectionDrops: [],\n };\n\n const setup =\n provider.id === \"stripe\"\n ? await setupStripe(options)\n : provider.id === \"shopify\"\n ? await setupShopify(options)\n : await setupWhatsApp(options, business);\n\n return mergeResults([env, setup]) satisfies Result;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAQA,eAAsBmC,EAAa,GAAkB;CACnD,IAAMC,IAAS5B,EAAU6B,CAAO,GAC1BC,IACJ,OAAOD,EAAQ,MAAM,UAAW,WAAWA,EAAQ,MAAM,OAAO,KAAK,IAAI,IAErEE,IAAU,CAAC;CAWjB,OAVID,MACFF,EAAO,KAAK,+BAA+B,GAC3CG,EAAQ,KAAK;EACX,MAAM;EACN,UAAU;EACV,SAAS5B,EAAe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F,GAAU,gBAAa,MAAMjG,EAAmBgB,GAAS;EACrE,UAAUpB,EAAkBsG,CAAQ,KAAK,KAAA;EACzC,SAASpG,EAAiBqG,CAAO,KAAK,KAAA;EACtC,YACEtG,EACEuG,GACAxG,EAAkBsG,CAAQ,KAAK,KAAA,CACjC,KAAK,KAAA;CACT,CAAC;CAGD,AAFID,MAAWD,IAAcxB,IAAWtD,EAAA,CAAS,KAAK+E,CAAQ,GAE9DlF,EAAO,KAAK,0CAA0C;CACtD,IAAMsF,IAAazF,EAAK,KACtBI,EAAQ,MACR,OACA,UACA,YACA,oBACF;CACA,EACEb,EAAoBkG,GAAYhG,EAA+BgG,CAAU,CAAC,CAC5E;CAEA,IAAMC,IAAc;EAClB;EACA;EACA,SAAS,CAAC;EACV,YAAY,CAAC;EACb,UAAU,CAAC;EACX,aAAa,CAAC;EACd,mBAAmB,CAAC;EACpB,iBAAiB,CAAC;CACpB,GAEMC,IACJX,EAAS,OAAO,WACZ,MAAMvB,EAAYrD,CAAO,IACzB4E,EAAS,OAAO,YACd,MAAM9E,EAAaE,CAAO,IAC1B,MAAMmE,EAAcnE,GAASoE,CAAQ;CAE7C,OAAOvG,EAAa,CAACyH,GAAKC,CAAK,CAAC;AAClC"}
|
|
@@ -2,7 +2,7 @@ import { a as e } from "./util-BLYliuUK.js";
|
|
|
2
2
|
import { t } from "./dedent-Gq6Krl4n.js";
|
|
3
3
|
import { n } from "./logger-CQONztPm.js";
|
|
4
4
|
import { i as r, n as i, t as a } from "./pocketbase-BtN-wL8f.js";
|
|
5
|
-
import { n as o } from "./site-
|
|
5
|
+
import { n as o } from "./site-VrqOvuiU.js";
|
|
6
6
|
import { t as s } from "./pocketbase-C5GS-Dh5.js";
|
|
7
7
|
import { _ as c, o as l, r as u, t as d } from "./ts-morph-helpers-CHI9wAil.js";
|
|
8
8
|
import { r as f } from "./modify-file-B4uJzOEj.js";
|
|
@@ -627,4 +627,4 @@ async function L(e) {
|
|
|
627
627
|
//#endregion
|
|
628
628
|
export { L as generate };
|
|
629
629
|
|
|
630
|
-
//# sourceMappingURL=generate.runtime-
|
|
630
|
+
//# sourceMappingURL=generate.runtime-Du84quuK.js.map
|