@velastack/patterns 0.2.2 → 0.2.4

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.
Files changed (49) hide show
  1. package/dist/chunks/{generate-vRi-W3rL.js → generate-mchSz-tm.js} +3 -3
  2. package/dist/chunks/{generate-vRi-W3rL.js.map → generate-mchSz-tm.js.map} +1 -1
  3. package/dist/chunks/{generate.runtime-C3kgmLls.js → generate.runtime-BB-U8d52.js} +2 -2
  4. package/dist/chunks/{generate.runtime-C3kgmLls.js.map → generate.runtime-BB-U8d52.js.map} +1 -1
  5. package/dist/chunks/{generate.runtime-qsPylve5.js → generate.runtime-Bb_j7P3G.js} +2 -2
  6. package/dist/chunks/{generate.runtime-qsPylve5.js.map → generate.runtime-Bb_j7P3G.js.map} +1 -1
  7. package/dist/chunks/{generate.runtime--0bYEUP_.js → generate.runtime-C5TE2jyc.js} +2 -2
  8. package/dist/chunks/{generate.runtime--0bYEUP_.js.map → generate.runtime-C5TE2jyc.js.map} +1 -1
  9. package/dist/chunks/{generate.runtime-BHoIbpFW.js → generate.runtime-C7Shwovm.js} +2 -2
  10. package/dist/chunks/{generate.runtime-BHoIbpFW.js.map → generate.runtime-C7Shwovm.js.map} +1 -1
  11. package/dist/chunks/{generate.runtime-BgW9zLGZ.js → generate.runtime-C7hKMakQ.js} +2 -2
  12. package/dist/chunks/{generate.runtime-BgW9zLGZ.js.map → generate.runtime-C7hKMakQ.js.map} +1 -1
  13. package/dist/chunks/{generate.runtime-BhgkUhnZ.js → generate.runtime-C8Y2mS0B.js} +2 -2
  14. package/dist/chunks/{generate.runtime-BhgkUhnZ.js.map → generate.runtime-C8Y2mS0B.js.map} +1 -1
  15. package/dist/chunks/{generate.runtime-CflCO_6s.js → generate.runtime-CL-fRmd9.js} +2 -2
  16. package/dist/chunks/{generate.runtime-CflCO_6s.js.map → generate.runtime-CL-fRmd9.js.map} +1 -1
  17. package/dist/chunks/{generate.runtime-DpgPAnEd.js → generate.runtime-CRcQrxEJ.js} +6 -6
  18. package/dist/chunks/{generate.runtime-DpgPAnEd.js.map → generate.runtime-CRcQrxEJ.js.map} +1 -1
  19. package/dist/chunks/{generate.runtime-CFwzS666.js → generate.runtime-Cdep21LK.js} +2 -2
  20. package/dist/chunks/{generate.runtime-CFwzS666.js.map → generate.runtime-Cdep21LK.js.map} +1 -1
  21. package/dist/chunks/{generate.runtime-BiQzi7ie.js → generate.runtime-CmBcOojv.js} +2 -2
  22. package/dist/chunks/{generate.runtime-BiQzi7ie.js.map → generate.runtime-CmBcOojv.js.map} +1 -1
  23. package/dist/chunks/{generate.runtime-BOLZHcGN.js → generate.runtime-CpKaHLG6.js} +2 -2
  24. package/dist/chunks/{generate.runtime-BOLZHcGN.js.map → generate.runtime-CpKaHLG6.js.map} +1 -1
  25. package/dist/chunks/{generate.runtime-CqOjFGKT.js → generate.runtime-DEPMu4l8.js} +2 -2
  26. package/dist/chunks/{generate.runtime-CqOjFGKT.js.map → generate.runtime-DEPMu4l8.js.map} +1 -1
  27. package/dist/chunks/{generate.runtime-DUFPsIYY.js → generate.runtime-DJJTAUe-.js} +2 -2
  28. package/dist/chunks/{generate.runtime-DUFPsIYY.js.map → generate.runtime-DJJTAUe-.js.map} +1 -1
  29. package/dist/chunks/{generate.runtime-CFKrhkAA.js → generate.runtime-DZR09ORc.js} +2 -2
  30. package/dist/chunks/{generate.runtime-CFKrhkAA.js.map → generate.runtime-DZR09ORc.js.map} +1 -1
  31. package/dist/chunks/{generate.runtime-Dbhctzy1.js → generate.runtime-De1TeiUr.js} +2 -2
  32. package/dist/chunks/{generate.runtime-Dbhctzy1.js.map → generate.runtime-De1TeiUr.js.map} +1 -1
  33. package/dist/chunks/{generate.runtime-CNwy0UB2.js → generate.runtime-O_XZsZZ0.js} +2 -2
  34. package/dist/chunks/{generate.runtime-CNwy0UB2.js.map → generate.runtime-O_XZsZZ0.js.map} +1 -1
  35. package/dist/chunks/{generate.runtime-DYySjH4f.js → generate.runtime-QL0UvDUK.js} +2 -2
  36. package/dist/chunks/{generate.runtime-DYySjH4f.js.map → generate.runtime-QL0UvDUK.js.map} +1 -1
  37. package/dist/chunks/{generate.runtime-CbSifpZG.js → generate.runtime-mFZIMpFZ.js} +2 -2
  38. package/dist/chunks/{generate.runtime-CbSifpZG.js.map → generate.runtime-mFZIMpFZ.js.map} +1 -1
  39. package/dist/chunks/{generate.runtime-JtRQn3Yl.js → generate.runtime-pwEIGBEe.js} +2 -2
  40. package/dist/chunks/{generate.runtime-JtRQn3Yl.js.map → generate.runtime-pwEIGBEe.js.map} +1 -1
  41. package/dist/chunks/{test-setup-BGhcb0Qm.js → test-setup-BBb4kcoO.js} +42 -38
  42. package/dist/chunks/test-setup-BBb4kcoO.js.map +1 -0
  43. package/dist/chunks/{ts-morph-helpers-Bk82Z2n7.js → ts-morph-helpers-7qF9S2k7.js} +11 -1
  44. package/dist/chunks/ts-morph-helpers-7qF9S2k7.js.map +1 -0
  45. package/dist/index.js +33 -32
  46. package/dist/index.js.map +1 -1
  47. package/package.json +1 -1
  48. package/dist/chunks/test-setup-BGhcb0Qm.js.map +0 -1
  49. package/dist/chunks/ts-morph-helpers-Bk82Z2n7.js.map +0 -1
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@ import { a as i, i as a, n as o, r as s, t as c } from "./chunks/util-Bk7aQQJR.j
5
5
  import { a as l, o as u, t as d } from "./chunks/constants-PBCzh8eY.js";
6
6
  import { t as f } from "./chunks/taggedTemplateLiteral-CPUMuLtk.js";
7
7
  import { n as p } from "./chunks/logger-CQONztPm.js";
8
- import { t as m } from "./chunks/generate-vRi-W3rL.js";
8
+ import { t as m } from "./chunks/generate-mchSz-tm.js";
9
9
  import { t as h } from "./chunks/pocketbase-DpudAAmd.js";
10
10
  import { n as g, r as _, t as v } from "./chunks/nav-user-CndUO69x.js";
11
11
  import { a as ee, c as te, i as ne, n as re, o as ie, r as ae, s as oe, t as se } from "./chunks/_server-BSm1eAiY.js";
@@ -26,7 +26,7 @@ var ue = Object.create, de = Object.defineProperty, fe = Object.getOwnPropertyDe
26
26
  throw Error("Calling `require` for \"" + e + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
27
27
  }), be = {
28
28
  name: "@velastack/patterns",
29
- version: "0.2.2",
29
+ version: "0.2.4",
30
30
  description: "Registry of VelaStack patterns: generators and modifications applied to SvelteKit projects by the VelaStack CLI.",
31
31
  type: "module",
32
32
  private: !1,
@@ -2612,7 +2612,7 @@ async function Kn(e) {
2612
2612
  }
2613
2613
  //#endregion
2614
2614
  //#region src/patterns/generate/form-remote/generate.preview.ts
2615
- var qn = /* #__PURE__ */ Object.assign({ "./preview-modifies/svelte.config.js": "import adapter from \"@sveltejs/adapter-auto\";\nimport { vitePreprocess } from \"@sveltejs/vite-plugin-svelte\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n preprocess: vitePreprocess(),\n kit: {\n adapter,\n // [!code highlight:3]\n experimental: {\n remoteFunctions: true,\n },\n },\n // [!code highlight:5]\n compilerOptions: {\n experimental: {\n async: true,\n },\n },\n};\n\nexport default config;\n" }), Jn = "./preview-modifies/";
2615
+ var qn = /* #__PURE__ */ Object.assign({ "./preview-modifies/svelte.config.js": "import adapter from \"@sveltejs/adapter-node\";\nimport { vitePreprocess } from \"@sveltejs/vite-plugin-svelte\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n preprocess: vitePreprocess(),\n kit: {\n adapter,\n // [!code highlight:3]\n experimental: {\n remoteFunctions: true,\n },\n },\n // [!code highlight:5]\n compilerOptions: {\n experimental: {\n async: true,\n },\n },\n};\n\nexport default config;\n" }), Jn = "./preview-modifies/";
2616
2616
  async function Yn(e) {
2617
2617
  return {
2618
2618
  creates: [],
@@ -3667,7 +3667,7 @@ async function ki(e) {
3667
3667
  }
3668
3668
  //#endregion
3669
3669
  //#region src/patterns/generate/scaffold-remote/generate.preview.ts
3670
- var Ai = /* #__PURE__ */ Object.assign({ "./preview-modifies/svelte.config.js": "import adapter from \"@sveltejs/adapter-auto\";\nimport { vitePreprocess } from \"@sveltejs/vite-plugin-svelte\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n preprocess: vitePreprocess(),\n kit: {\n adapter,\n // [!code highlight:3]\n experimental: {\n remoteFunctions: true,\n },\n },\n // [!code highlight:5]\n compilerOptions: {\n experimental: {\n async: true,\n },\n },\n};\n\nexport default config;\n" }), ji = "./preview-modifies/";
3670
+ var Ai = /* #__PURE__ */ Object.assign({ "./preview-modifies/svelte.config.js": "import adapter from \"@sveltejs/adapter-node\";\nimport { vitePreprocess } from \"@sveltejs/vite-plugin-svelte\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n preprocess: vitePreprocess(),\n kit: {\n adapter,\n // [!code highlight:3]\n experimental: {\n remoteFunctions: true,\n },\n },\n // [!code highlight:5]\n compilerOptions: {\n experimental: {\n async: true,\n },\n },\n};\n\nexport default config;\n" }), ji = "./preview-modifies/";
3671
3671
  async function Mi(e) {
3672
3672
  return {
3673
3673
  creates: [],
@@ -4038,7 +4038,7 @@ async function to(e) {
4038
4038
  let r = await Xa(e);
4039
4039
  return n(i([t, r]), e);
4040
4040
  }
4041
- let { writeResult: r } = await import("./chunks/write-result-BHCOxcsA.js"), a = await r(await n(t, e), e), { generate: o } = await import("./chunks/generate.runtime-DYySjH4f.js"), s = await o(e), c = await r(await n(s, e), e);
4041
+ let { writeResult: r } = await import("./chunks/write-result-BHCOxcsA.js"), a = await r(await n(t, e), e), { generate: o } = await import("./chunks/generate.runtime-QL0UvDUK.js"), s = await o(e), c = await r(await n(s, e), e);
4042
4042
  return i([a, c]);
4043
4043
  }
4044
4044
  var no = {
@@ -4236,7 +4236,7 @@ var cs = /* #__PURE__ */ Object.assign({
4236
4236
  "./preview-modifies/src/hooks.server.ts": "import { env } from \"$env/dynamic/private\";\nimport { handlePocketbase } from \"@velastack/pocketbase\";\n\nexport const handle = handlePocketbase({\n pocketbaseUrl: env.POCKETBASE_URL,\n superuserEmail: env.POCKETBASE_SUPERUSER_EMAIL,\n superuserPassword: env.POCKETBASE_SUPERUSER_PASSWORD,\n // [!code highlight:1]\n auth: { protectedRoutes: [\"/(app)\"] },\n});\n",
4237
4237
  "./preview-modifies/src/routes/(public)/root-layout.svelte": "<script lang=\"ts\">\n import favicon from \"$lib/assets/favicon.svg\";\n\n import { toggleMode } from \"mode-watcher\";\n import * as Navbar from \"$lib/components/ui/navbar\";\n import { Button } from \"$lib/components/ui/button\";\n // [!code highlight:2]\n import * as AuthMenu from \"$lib/components/ui/auth-menu\";\n import * as Avatar from \"$lib/components/ui/avatar\";\n\n let { children, data } = $props();\n<\/script>\n\n<div class=\"min-h-dvh grid grid-rows-[max-content_1fr_max-content] root-layout\">\n <Navbar.Root>\n <Navbar.Brand href=\"/\">\n <Navbar.Logo src={favicon} alt=\"Logo\" />\n </Navbar.Brand>\n\n <Navbar.MobileToggle />\n\n <Navbar.List>\n <Navbar.Item>\n <Button\n class=\"w-full justify-start md:justify-center md:w-auto\"\n href=\"/\"\n variant=\"ghost\"\n >\n Home\n </Button>\n </Navbar.Item>\n\n <!-- [!code highlight:44] -->\n <Navbar.Item\n class=\"flex flex-col md:flex-row items-center space-y-2 md:space-y-0 md:space-x-4\"\n >\n <AuthMenu.Root>\n {#snippet user()}\n <AuthMenu.Trigger>\n <Avatar.Root>\n {#if data.user?.avatar}\n <Avatar.Image\n src=\"/api/files/users/{data.user?.id}/{data.user?.avatar}\"\n alt={data.user?.email}\n />\n {/if}\n <Avatar.Fallback>\n {data.user?.email?.charAt(0).toUpperCase()}\n </Avatar.Fallback>\n </Avatar.Root>\n </AuthMenu.Trigger>\n <AuthMenu.Content align=\"end\">\n <AuthMenu.Item href=\"/dashboard\">Dashboard</AuthMenu.Item>\n <AuthMenu.Group>\n <AuthMenu.Item href=\"/settings\">Settings</AuthMenu.Item>\n <AuthMenu.Item>\n <form action=\"/logout\" method=\"post\">\n <button type=\"submit\" class=\"contents\">Logout</button>\n </form>\n </AuthMenu.Item>\n </AuthMenu.Group>\n </AuthMenu.Content>\n {/snippet}\n {#snippet guest()}\n <Button\n class=\"w-full justify-start md:justify-center md:w-auto\"\n variant=\"ghost\"\n href=\"/login\">Login</Button\n >\n <Button\n class=\"w-full justify-start md:justify-center md:w-auto\"\n variant=\"outline\"\n href=\"/signup\">Sign up</Button\n >\n {/snippet}\n </AuthMenu.Root>\n </Navbar.Item>\n </Navbar.List>\n </Navbar.Root>\n\n {@render children?.()}\n\n <footer class=\"border-t border-border py-4\">\n <div\n class=\"mx-auto flex max-w-7xl px-4 flex-col items-center justify-between gap-3 sm:flex-row\"\n >\n <p class=\"text-muted-foreground text-sm\">\n &copy; {new Date().getFullYear()}\n {data.meta.appName}. All rights reserved.\n </p>\n <nav class=\"flex items-center gap-4 text-sm\">\n <Button onclick={toggleMode} variant=\"ghost\" size=\"icon\">\n <Navbar.Mode />\n </Button>\n <a href=\"/privacy\" class=\"underline-offset-4 hover:underline\">Privacy</a\n >\n <a href=\"/terms\" class=\"underline-offset-4 hover:underline\">Terms</a>\n </nav>\n </div>\n </footer>\n</div>\n\n<style lang=\"postcss\">\n @reference \"tailwindcss\";\n\n .root-layout :global(section[data-role=\"content\"]) {\n @apply container mx-auto max-w-7xl px-4 py-8 w-full;\n }\n</style>\n",
4238
4238
  "./preview-modifies/src/routes/+layout.server.ts": "import { loadFlash } from \"sveltekit-flash-message/server\";\n\nexport const load = loadFlash(async ({ locals }) => {\n return {\n // [!code highlight:1]\n user: locals.pb.authStore.record,\n };\n});\n",
4239
- "./preview-modifies/svelte.config.js": "import adapter from \"@sveltejs/adapter-auto\";\nimport { vitePreprocess } from \"@sveltejs/vite-plugin-svelte\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n preprocess: vitePreprocess(),\n kit: {\n adapter,\n // [!code highlight:3]\n experimental: {\n remoteFunctions: true,\n },\n },\n // [!code highlight:5]\n compilerOptions: {\n experimental: {\n async: true,\n },\n },\n};\n\nexport default config;\n"
4239
+ "./preview-modifies/svelte.config.js": "import adapter from \"@sveltejs/adapter-node\";\nimport { vitePreprocess } from \"@sveltejs/vite-plugin-svelte\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n preprocess: vitePreprocess(),\n kit: {\n adapter,\n // [!code highlight:3]\n experimental: {\n remoteFunctions: true,\n },\n },\n // [!code highlight:5]\n compilerOptions: {\n experimental: {\n async: true,\n },\n },\n};\n\nexport default config;\n"
4240
4240
  }), ls = "./preview-modifies/";
4241
4241
  async function us(e) {
4242
4242
  return {
@@ -4267,7 +4267,7 @@ async function hs(e) {
4267
4267
  let r = await us(e);
4268
4268
  return n(i([t, r]), e);
4269
4269
  }
4270
- let { generate: r } = await import("./chunks/generate.runtime-BiQzi7ie.js"), a = await r(e), { writeResult: o } = await import("./chunks/write-result-BHCOxcsA.js");
4270
+ let { generate: r } = await import("./chunks/generate.runtime-CmBcOojv.js"), a = await r(e), { writeResult: o } = await import("./chunks/write-result-BHCOxcsA.js");
4271
4271
  return o(await n(i([t, a]), e), e);
4272
4272
  }
4273
4273
  var gs = {
@@ -4517,7 +4517,7 @@ async function Qs(e) {
4517
4517
  let r = await qs(e);
4518
4518
  return n(i([t, r]), e);
4519
4519
  }
4520
- let { createCollections: r } = await import("./chunks/collections-1Z0NCLM-.js"), a = await r(t.collections, e), { generate: o } = await import("./chunks/generate.runtime-Dbhctzy1.js"), s = await o(e), { writeResult: c } = await import("./chunks/write-result-BHCOxcsA.js");
4520
+ let { createCollections: r } = await import("./chunks/collections-1Z0NCLM-.js"), a = await r(t.collections, e), { generate: o } = await import("./chunks/generate.runtime-De1TeiUr.js"), s = await o(e), { writeResult: c } = await import("./chunks/write-result-BHCOxcsA.js");
4521
4521
  return c(await n(i([{
4522
4522
  ...t,
4523
4523
  creates: [...t.creates, ...a]
@@ -4584,7 +4584,8 @@ async function oc(e) {
4584
4584
  packages: [
4585
4585
  "@velastack/pocketbase",
4586
4586
  "@velastack/kit",
4587
- "pocketbase-sveltekit"
4587
+ "pocketbase-sveltekit",
4588
+ "@sveltejs/adapter-node"
4588
4589
  ],
4589
4590
  collections: [],
4590
4591
  collectionPatches: [],
@@ -4594,7 +4595,7 @@ async function oc(e) {
4594
4595
  //#endregion
4595
4596
  //#region src/patterns/enable/backend/generate.preview.ts
4596
4597
  var sc = /* #__PURE__ */ Object.assign({
4597
- "./preview-modifies/svelte.config.js": "import adapter from '@sveltejs/adapter-auto';\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n compilerOptions: {\n runes: ({ filename }) => (filename.split(/[/\\\\]/).includes('node_modules') ? undefined : true)\n },\n kit: {\n adapter: adapter()\n }\n};\n\nexport default config;\n",
4598
+ "./preview-modifies/svelte.config.js": "import adapter from '@sveltejs/adapter-node';\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n compilerOptions: {\n runes: ({ filename }) => (filename.split(/[/\\\\]/).includes('node_modules') ? undefined : true)\n },\n kit: {\n adapter: adapter()\n }\n};\n\nexport default config;\n",
4598
4599
  "./preview-modifies/test/setup.ts": "import { beforeEach, afterEach, beforeAll } from 'vitest';\nimport supertest, { type Agent } from 'supertest';\nimport PocketBase from 'pocketbase-sveltekit';\nimport type { TestContext } from '@velastack/pocketbase/testing';\n\nconst admin = new PocketBase(process.env.POCKETBASE_URL!) as App.Locals['admin'];\nconst pb = new PocketBase(process.env.POCKETBASE_URL!) as App.Locals['pb'];\n\nconst testUserPassword = 'password';\n\nasync function authenticateUser(agent: Agent, user: { email: string }) {\n await agent.post('/login').type('form').send({\n type: 'password',\n email: user.email,\n password: testUserPassword\n });\n}\n\nbeforeAll(async () => {\n await admin\n // @ts-ignore\n .collection('_superusers')\n .authWithPassword(\n process.env.POCKETBASE_SUPERUSER_EMAIL!,\n process.env.POCKETBASE_SUPERUSER_PASSWORD!\n );\n});\n\nbeforeEach(async (context: TestContext) => {\n context.request = supertest(process.env.VITE_TEST_URL!);\n context.agent = supertest.agent(process.env.VITE_TEST_URL!) as TestContext['agent'];\n context.admin = admin;\n context.pb = pb;\n context.user = await context.admin.collection('users').create({\n email: `test-${Math.random().toString(36).slice(2)}@example.com`,\n password: testUserPassword,\n passwordConfirm: testUserPassword\n });\n context.agent.authenticateUser = () => authenticateUser(context.agent, context.user);\n await context.pb.collection('users').authWithPassword(context.user.email, testUserPassword);\n});\n\nafterEach(async (context: TestContext) => {\n await context.pb.authStore.clear();\n await context.admin.collection('users').delete(context.user.id);\n});\n"
4599
4600
  }), cc = "./preview-modifies/";
4600
4601
  async function lc(e) {
@@ -4626,7 +4627,7 @@ async function mc(e) {
4626
4627
  let r = await lc(e);
4627
4628
  return n(i([t, r]), e);
4628
4629
  }
4629
- let { generate: r } = await import("./chunks/generate.runtime-BgW9zLGZ.js"), a = await r(e), { writeResult: o } = await import("./chunks/write-result-BHCOxcsA.js");
4630
+ let { generate: r } = await import("./chunks/generate.runtime-C7hKMakQ.js"), a = await r(e), { writeResult: o } = await import("./chunks/write-result-BHCOxcsA.js");
4630
4631
  return o(await n(i([t, a]), e), e);
4631
4632
  }
4632
4633
  var hc = {
@@ -4636,7 +4637,7 @@ var hc = {
4636
4637
  docs: pc,
4637
4638
  plan: "open",
4638
4639
  title: "Enable Backend",
4639
- summary: "Adds the PocketBase backend: installs @velastack/pocketbase and pocketbase-sveltekit, wires up hooks.server.ts, scaffolds the data/ directory, and switches the SvelteKit adapter from static to auto.",
4640
+ summary: "Adds the PocketBase backend: installs @velastack/pocketbase and pocketbase-sveltekit, wires up hooks.server.ts, scaffolds the data/ directory, and switches the SvelteKit adapter to adapter-node.",
4640
4641
  requires: {
4641
4642
  auth: !1,
4642
4643
  api: !1,
@@ -4729,7 +4730,7 @@ async function Uc(e) {
4729
4730
  var Wc = /* #__PURE__ */ Object.assign({
4730
4731
  "./preview-modifies/src/routes/(public)/root-layout.svelte": "<script lang=\"ts\">\n import favicon from '$lib/assets/favicon.svg';\n\n import { toggleMode } from 'mode-watcher';\n import * as Navbar from '$lib/components/ui/navbar';\n import { Button } from '$lib/components/ui/button';\n\n let { children, data } = $props();\n<\/script>\n\n<div class=\"min-h-dvh grid grid-rows-[max-content_1fr_max-content] root-layout\">\n <Navbar.Root>\n <Navbar.Brand href=\"/\">\n <Navbar.Logo src={favicon} alt=\"Logo\" />\n </Navbar.Brand>\n\n <Navbar.MobileToggle />\n\n <Navbar.List>\n <Navbar.Item>\n <Button class=\"w-full justify-start md:justify-center md:w-auto\" href=\"/\" variant=\"ghost\">\n Home\n </Button>\n </Navbar.Item>\n <!-- [!code highlight:5] -->\n <Navbar.Item>\n <Button class=\"w-full justify-start md:justify-center md:w-auto\" href=\"/blog\" variant=\"ghost\">\n Blog\n </Button>\n </Navbar.Item>\n </Navbar.List>\n </Navbar.Root>\n\n {@render children?.()}\n\n <footer class=\"border-t border-border py-4\">\n <div\n class=\"mx-auto flex max-w-7xl px-4 flex-col items-center justify-between gap-3 sm:flex-row\"\n >\n <p class=\"text-muted-foreground text-sm\">\n &copy; {new Date().getFullYear()}\n {data.meta.appName}. All rights reserved.\n </p>\n <nav class=\"flex items-center gap-4 text-sm\">\n <Button onclick={toggleMode} variant=\"ghost\" size=\"icon\">\n <Navbar.Mode />\n </Button>\n <a href=\"/privacy\" class=\"underline-offset-4 hover:underline\">Privacy</a>\n <a href=\"/terms\" class=\"underline-offset-4 hover:underline\">Terms</a>\n </nav>\n </div>\n </footer>\n</div>\n\n<style lang=\"postcss\">\n @reference \"tailwindcss\";\n\n .root-layout :global(section[data-role='content']) {\n @apply container mx-auto max-w-7xl px-4 py-8 w-full;\n }\n</style>\n",
4731
4732
  "./preview-modifies/src/routes/+layout.svelte": "<script lang=\"ts\">\n import '../app.css';\n // [!code highlight:1]\n import '../css/prism-vsc-dark-plus.css';\n\n import { ModeWatcher } from 'mode-watcher';\n import { getFlash } from 'sveltekit-flash-message';\n import { toast } from 'svelte-sonner';\n import { page } from '$app/state';\n import { Toaster } from '$lib/components/ui/sonner';\n import { MetaTags, deepMerge } from 'svelte-meta-tags';\n\n let { data, children } = $props();\n const flash = getFlash(page);\n\n $effect(() => {\n if (!$flash || $flash.type !== 'toast') {\n return;\n }\n\n toast.message($flash.message);\n\n $flash = undefined;\n });\n\n let metaTags = $derived(deepMerge(data.baseMetaTags, page.data.pageMetaTags));\n<\/script>\n\n<svelte:head>\n <title>{data.meta.appName}</title>\n</svelte:head>\n\n<MetaTags {...metaTags} />\n<ModeWatcher />\n<Toaster />\n\n{@render children?.()}\n",
4732
- "./preview-modifies/svelte.config.js": "import adapter from \"@sveltejs/adapter-auto\";\n// [!code highlight:1]\nimport { mdsvex } from \"mdsvex\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n // [!code highlight:2]\n extensions: [\".svelte\", \".svx\"],\n preprocess: [mdsvex()],\n compilerOptions: {\n // Force runes mode for the project, except for libraries. Can be removed in svelte 6.\n runes: ({ filename }) =>\n filename.split(/[/\\\\]/).includes(\"node_modules\") ? undefined : true,\n },\n kit: {\n // adapter-auto only supports some environments, see https://svelte.dev/docs/kit/adapter-auto for a list.\n // If your environment is not supported, or you settled on a specific environment, switch out the adapter.\n // See https://svelte.dev/docs/kit/adapters for more information about adapters.\n adapter: adapter(),\n },\n};\n\nexport default config;\n"
4733
+ "./preview-modifies/svelte.config.js": "import adapter from \"@sveltejs/adapter-node\";\n// [!code highlight:1]\nimport { mdsvex } from \"mdsvex\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n // [!code highlight:2]\n extensions: [\".svelte\", \".svx\"],\n preprocess: [mdsvex()],\n compilerOptions: {\n // Force runes mode for the project, except for libraries. Can be removed in svelte 6.\n runes: ({ filename }) =>\n filename.split(/[/\\\\]/).includes(\"node_modules\") ? undefined : true,\n },\n kit: {\n adapter: adapter(),\n },\n};\n\nexport default config;\n"
4733
4734
  }), Gc = "./preview-modifies/";
4734
4735
  async function Kc(e) {
4735
4736
  return {
@@ -4760,7 +4761,7 @@ async function Zc(e) {
4760
4761
  let r = await Kc(e);
4761
4762
  return n(i([t, r]), e);
4762
4763
  }
4763
- let { generate: r } = await import("./chunks/generate.runtime-CFKrhkAA.js"), a = await r(e), { writeResult: o } = await import("./chunks/write-result-BHCOxcsA.js");
4764
+ let { generate: r } = await import("./chunks/generate.runtime-DZR09ORc.js"), a = await r(e), { writeResult: o } = await import("./chunks/write-result-BHCOxcsA.js");
4764
4765
  return o(await n(i([t, a]), e), e);
4765
4766
  }
4766
4767
  var Qc = {
@@ -4803,8 +4804,8 @@ var Qc = {
4803
4804
  generate: Zc
4804
4805
  }, $c = /* #__PURE__ */ Object.assign({
4805
4806
  "./preview-modifies/src/routes/+layout.server.ts": "import { loadFlash } from 'sveltekit-flash-message/server';\nimport { defineBaseMetaTags } from 'svelte-meta-tags';\nimport { error, redirect } from '@sveltejs/kit';\nimport { loadCms } from '$lib/cms';\n\nexport const load = loadFlash(async (event) => {\n const { locals, url } = event;\n const canonical = new URL(url.pathname, url.origin).href;\n\n const baseTags = defineBaseMetaTags({\n title: '',\n titleTemplate: `%s | ${locals.meta.appName}`,\n description: '',\n canonical,\n openGraph: {\n type: 'website',\n url: canonical,\n images: [\n {\n url: `${locals.meta.appURL}/og.jpg`,\n alt: locals.meta.appName,\n width: 1200,\n height: 630\n }\n ]\n }\n });\n\n // [!code highlight:6]\n const { cms, notFound, gone, redirectTo } = await loadCms(event, {\n locale: 'en'\n });\n if (redirectTo) redirect(308, redirectTo);\n if (gone) error(410, 'Gone');\n if (notFound) error(404, 'Not found');\n\n return {\n meta: locals.meta,\n cms,\n ...baseTags\n };\n});\n",
4806
- "./preview-modifies/src/routes/+layout.svelte": "<script lang=\"ts\">\n import '../app.css';\n\n import favicon from '$lib/assets/favicon.svg';\n\n import { ModeWatcher } from 'mode-watcher';\n import { getFlash } from 'sveltekit-flash-message';\n import { toast } from 'svelte-sonner';\n import { page } from '$app/state';\n import { Toaster } from '$lib/components/ui/sonner';\n import { MetaTags, deepMerge } from 'svelte-meta-tags';\n // [!code highlight:1]\n import { AdminBar } from '@velastack/cms';\n\n let { data, children } = $props();\n const flash = getFlash(page);\n\n $effect(() => {\n if (!$flash || $flash.type !== 'toast') {\n return;\n }\n\n toast.message($flash.message);\n\n $flash = undefined;\n });\n\n let metaTags = $derived(deepMerge(data.baseMetaTags, page.data.pageMetaTags));\n<\/script>\n\n<svelte:head>\n <title>{data.meta.appName}</title>\n <link rel=\"icon\" href={favicon} />\n</svelte:head>\n\n<MetaTags {...metaTags} />\n<ModeWatcher />\n<Toaster />\n\n{@render children?.()}\n\n<!-- [!code highlight:1] -->\n<AdminBar />\n",
4807
- "./preview-modifies/vite.config.ts": "// [!code highlight:1]\nimport { cms } from '@velastack/cms/vite';\nimport { defineConfig } from 'vite';\nimport tailwindcss from '@tailwindcss/vite';\nimport { sveltekit } from '@sveltejs/kit/vite';\nimport adapter from '@sveltejs/adapter-auto';\n\nexport default defineConfig({\n plugins: [\n tailwindcss(),\n // [!code highlight:1]\n cms(),\n sveltekit({\n compilerOptions: {\n runes: ({ filename }) =>\n filename.split(/[/\\\\]/).includes('node_modules') ? undefined : true\n },\n adapter: adapter(),\n // Prerendering has no request to take an origin from, so without this\n // every canonical link and `og:url` on a prerendered page would be built\n // from SvelteKit's placeholder host. `vela build` sets it from the domain\n // the target is deployed on; unset, SvelteKit's default stands.\n ...(process.env.VELA_ORIGIN\n ? { prerender: { origin: process.env.VELA_ORIGIN } }\n : {})\n })\n ]\n});\n"
4807
+ "./preview-modifies/src/routes/+layout.svelte": "<script lang=\"ts\">\n import '../app.css';\n\n import favicon from '$lib/assets/favicon.svg';\n\n import { ModeWatcher } from 'mode-watcher';\n import { getFlash } from 'sveltekit-flash-message';\n import { toast } from 'svelte-sonner';\n import { page } from '$app/state';\n import { Toaster } from '$lib/components/ui/sonner';\n import { MetaTags, deepMerge } from 'svelte-meta-tags';\n // [!code highlight:1]\n import { AdminBar } from '@velastack/cms';\n\n let { data, children } = $props();\n const flash = getFlash(page);\n\n $effect(() => {\n if (!$flash || $flash.type !== 'toast') {\n return;\n }\n\n toast.message($flash.message);\n\n $flash = undefined;\n });\n\n let metaTags = $derived(deepMerge(data.baseMetaTags, page.data.pageMetaTags));\n<\/script>\n\n<svelte:head>\n <title>{data.meta.appName}</title>\n <link rel=\"icon\" href={favicon} />\n</svelte:head>\n\n<MetaTags {...metaTags} />\n<ModeWatcher />\n<Toaster />\n<!-- [!code highlight:1] -->\n<AdminBar />\n\n{@render children?.()}\n",
4808
+ "./preview-modifies/vite.config.ts": "// [!code highlight:1]\nimport { cms } from '@velastack/cms/vite';\nimport { defineConfig } from 'vite';\nimport tailwindcss from '@tailwindcss/vite';\nimport { sveltekit } from '@sveltejs/kit/vite';\nimport adapter from '@sveltejs/adapter-node';\n\nexport default defineConfig({\n plugins: [\n tailwindcss(),\n // [!code highlight:1]\n cms(),\n sveltekit({\n compilerOptions: {\n runes: ({ filename }) =>\n filename.split(/[/\\\\]/).includes('node_modules') ? undefined : true\n },\n adapter: adapter(),\n // Prerendering has no request to take an origin from, so without this\n // every canonical link and `og:url` on a prerendered page would be built\n // from SvelteKit's placeholder host. `vela build` sets it from the domain\n // the target is deployed on; unset, SvelteKit's default stands.\n ...(process.env.VELA_ORIGIN\n ? { prerender: { origin: process.env.VELA_ORIGIN } }\n : {})\n })\n ]\n});\n"
4808
4809
  }), el = "./preview-modifies/";
4809
4810
  async function tl(e) {
4810
4811
  return {
@@ -4835,7 +4836,7 @@ async function ol(e) {
4835
4836
  let r = await tl(e);
4836
4837
  return n(i([t, r]), e);
4837
4838
  }
4838
- let { generate: r, keepMissing: a } = await import("./chunks/generate.runtime-DpgPAnEd.js"), o = await r(e), { writeResult: s } = await import("./chunks/write-result-BHCOxcsA.js");
4839
+ let { generate: r, keepMissing: a } = await import("./chunks/generate.runtime-CRcQrxEJ.js"), o = await r(e), { writeResult: s } = await import("./chunks/write-result-BHCOxcsA.js");
4839
4840
  return s(await n(i([{
4840
4841
  ...t,
4841
4842
  creates: a(t.creates, e.root)
@@ -4953,7 +4954,7 @@ async function El(e) {
4953
4954
  let r = await xl(e);
4954
4955
  return n(i([t, r]), e);
4955
4956
  }
4956
- let { generate: r } = await import("./chunks/generate.runtime-CFwzS666.js"), a = await r(e), { writeResult: o } = await import("./chunks/write-result-BHCOxcsA.js");
4957
+ let { generate: r } = await import("./chunks/generate.runtime-Cdep21LK.js"), a = await r(e), { writeResult: o } = await import("./chunks/write-result-BHCOxcsA.js");
4957
4958
  return o(await n(i([t, a]), e), e);
4958
4959
  }
4959
4960
  var Dl = {
@@ -5026,7 +5027,7 @@ var Fl = /* #__PURE__ */ Object.assign({
5026
5027
  "./preview-modifies/src/hooks.server.ts": "import { env } from \"$env/dynamic/private\";\nimport { handlePocketbase } from \"@velastack/pocketbase\";\n// [!code highlight:6]\nimport { sequence } from \"@sveltejs/kit/hooks\";\nimport { runWithLocale, loadLocales } from \"wuchale/load-utils/server\";\nimport { getLocale } from \"$locales/main.url\";\nimport { locales } from \"$locales/data\";\nimport * as main from \"$locales/main.loader.server.svelte.js\";\nimport * as js from \"$locales/js.loader.server.js\";\n\n// [!code highlight:2]\nloadLocales(main.key, main.loadCount, main.loadCatalog, locales);\nloadLocales(js.key, js.loadCount, js.loadCatalog, locales);\n\n// [!code highlight:9]\nconst handleWuchale = async ({ event, resolve }: any) => {\n const locale = getLocale(event.url);\n return await runWithLocale(locale, () =>\n resolve(event, {\n transformPageChunk: ({ html }: { html: string }) =>\n html.replace(\"%sveltekit.lang%\", locale),\n }),\n );\n};\n\nexport const handle = sequence(\n // [!code highlight:1]\n handleWuchale,\n handlePocketbase({\n pocketbaseUrl: env.POCKETBASE_URL,\n superuserEmail: env.POCKETBASE_SUPERUSER_EMAIL,\n superuserPassword: env.POCKETBASE_SUPERUSER_PASSWORD,\n }),\n);\n",
5027
5028
  "./preview-modifies/src/routes/(public)/root-layout.svelte": "<script lang=\"ts\">\n import favicon from '$lib/assets/favicon.svg';\n\n import { toggleMode } from 'mode-watcher';\n import * as Navbar from '$lib/components/ui/navbar';\n import { Button } from '$lib/components/ui/button';\n // [!code highlight]\n import LanguageSelect from '$lib/components/language-select.svelte';\n\n let { children, data } = $props();\n<\/script>\n\n<div class=\"min-h-dvh grid grid-rows-[max-content_1fr_max-content] root-layout\">\n <Navbar.Root>\n <Navbar.Brand href=\"/\">\n <Navbar.Logo src={favicon} alt=\"Logo\" />\n </Navbar.Brand>\n\n <Navbar.MobileToggle />\n\n <Navbar.List>\n <Navbar.Item>\n <Button class=\"w-full justify-start md:justify-center md:w-auto\" href=\"/\" variant=\"ghost\">\n Home\n </Button>\n </Navbar.Item>\n <!-- [!code highlight:3] -->\n <Navbar.Item>\n <LanguageSelect />\n </Navbar.Item>\n </Navbar.List>\n </Navbar.Root>\n\n {@render children?.()}\n\n <footer class=\"border-t border-border py-4\">\n <div\n class=\"mx-auto flex max-w-7xl px-4 flex-col items-center justify-between gap-3 sm:flex-row\"\n >\n <p class=\"text-muted-foreground text-sm\">\n &copy; {new Date().getFullYear()}\n {data.meta.appName}. All rights reserved.\n </p>\n <nav class=\"flex items-center gap-4 text-sm\">\n <Button onclick={toggleMode} variant=\"ghost\" size=\"icon\">\n <Navbar.Mode />\n </Button>\n <a href=\"/privacy\" class=\"underline-offset-4 hover:underline\">Privacy</a>\n <a href=\"/terms\" class=\"underline-offset-4 hover:underline\">Terms</a>\n </nav>\n </div>\n </footer>\n</div>\n\n<style lang=\"postcss\">\n @reference \"tailwindcss\";\n\n .root-layout :global(section[data-role='content']) {\n @apply container mx-auto max-w-7xl px-4 py-8 w-full;\n }\n</style>\n",
5028
5029
  "./preview-modifies/src/routes/+layout.ts": "import { browser } from \"$app/environment\";\n// [!code highlight:4]\nimport { loadLocale } from \"wuchale/load-utils\";\nimport { getLocale } from \"$locales/main.url\";\nimport \"$locales/main.loader.svelte\";\nimport \"$locales/js.loader\";\n\nexport const load = async ({ url, data }) => {\n // [!code highlight:5]\n const locale = getLocale(url);\n\n if (browser) {\n await loadLocale(locale);\n }\n\n return data;\n};\n",
5029
- "./preview-modifies/svelte.config.js": "import adapter from \"@sveltejs/adapter-auto\";\nimport { vitePreprocess } from \"@sveltejs/vite-plugin-svelte\";\n\nconst config = {\n preprocess: vitePreprocess(),\n kit: {\n adapter,\n // [!code highlight:3]\n alias: {\n $locales: \"src/locales\",\n },\n },\n};\n\nexport default config;\n",
5030
+ "./preview-modifies/svelte.config.js": "import adapter from \"@sveltejs/adapter-node\";\nimport { vitePreprocess } from \"@sveltejs/vite-plugin-svelte\";\n\nconst config = {\n preprocess: vitePreprocess(),\n kit: {\n adapter,\n // [!code highlight:3]\n alias: {\n $locales: \"src/locales\",\n },\n },\n};\n\nexport default config;\n",
5030
5031
  "./preview-modifies/vite.config.ts": "import { defineConfig } from \"vite\";\nimport { sveltekit } from \"@sveltejs/kit/vite\";\nimport tailwindcss from \"@tailwindcss/vite\";\n// [!code highlight:1]\nimport { wuchale } from \"wuchale/vite\";\n\nexport default defineConfig({\n // [!code highlight:1]\n plugins: [wuchale(), tailwindcss(), sveltekit()],\n});\n"
5031
5032
  }), Il = "./preview-modifies/";
5032
5033
  async function Ll(e) {
@@ -5058,7 +5059,7 @@ async function Hl(e) {
5058
5059
  let r = await Ll(e);
5059
5060
  return n(i([t, r]), e);
5060
5061
  }
5061
- let { generate: r } = await import("./chunks/generate.runtime-CNwy0UB2.js"), a = await r(e), { writeResult: o } = await import("./chunks/write-result-BHCOxcsA.js");
5062
+ let { generate: r } = await import("./chunks/generate.runtime-O_XZsZZ0.js"), a = await r(e), { writeResult: o } = await import("./chunks/write-result-BHCOxcsA.js");
5062
5063
  return o(await n(i([t, a]), e), e);
5063
5064
  }
5064
5065
  var Ul = {
@@ -5219,7 +5220,7 @@ async function iu(e) {
5219
5220
  let r = await $l(e);
5220
5221
  return n(i([t, r]), e);
5221
5222
  }
5222
- let { generate: r } = await import("./chunks/generate.runtime-CbSifpZG.js"), a = await r(e), { writeResult: o } = await import("./chunks/write-result-BHCOxcsA.js");
5223
+ let { generate: r } = await import("./chunks/generate.runtime-mFZIMpFZ.js"), a = await r(e), { writeResult: o } = await import("./chunks/write-result-BHCOxcsA.js");
5223
5224
  return o(await n(i([t, a]), e), e);
5224
5225
  }
5225
5226
  var au = {
@@ -5628,7 +5629,7 @@ async function fd(e) {
5628
5629
  let r = await sd(e);
5629
5630
  return n(i([t, r]), e);
5630
5631
  }
5631
- let { generate: r } = await import("./chunks/generate.runtime-CqOjFGKT.js"), a = await r(e), { writeResult: o } = await import("./chunks/write-result-BHCOxcsA.js");
5632
+ let { generate: r } = await import("./chunks/generate.runtime-DEPMu4l8.js"), a = await r(e), { writeResult: o } = await import("./chunks/write-result-BHCOxcsA.js");
5632
5633
  return o(await n(i([t, a]), e), e);
5633
5634
  }
5634
5635
  var pd = {
@@ -5811,7 +5812,7 @@ async function Ad(e) {
5811
5812
  let r = await Td(e);
5812
5813
  return n(i([t, r]), e);
5813
5814
  }
5814
- let { createCollections: r } = await import("./chunks/collections-1Z0NCLM-.js"), a = await r(t.collections, e), { generate: o } = await import("./chunks/generate.runtime-BOLZHcGN.js"), s = await o(e), { writeResult: c } = await import("./chunks/write-result-BHCOxcsA.js");
5815
+ let { createCollections: r } = await import("./chunks/collections-1Z0NCLM-.js"), a = await r(t.collections, e), { generate: o } = await import("./chunks/generate.runtime-CpKaHLG6.js"), s = await o(e), { writeResult: c } = await import("./chunks/write-result-BHCOxcsA.js");
5815
5816
  return c(await n(i([{
5816
5817
  ...t,
5817
5818
  creates: [...t.creates, ...a]
@@ -6219,7 +6220,7 @@ async function Pf(e) {
6219
6220
  let r = await kf(e);
6220
6221
  return n(i([t, r]), e);
6221
6222
  }
6222
- let { generate: r } = await import("./chunks/generate.runtime-DUFPsIYY.js"), a = await r(e), { writeResult: o } = await import("./chunks/write-result-BHCOxcsA.js");
6223
+ let { generate: r } = await import("./chunks/generate.runtime-DJJTAUe-.js"), a = await r(e), { writeResult: o } = await import("./chunks/write-result-BHCOxcsA.js");
6223
6224
  return o(await n(i([t, a]), e), e);
6224
6225
  }
6225
6226
  var Ff = {
@@ -6615,7 +6616,7 @@ var yp = "disable-api-keys", bp = "1.0.0", xp = "src/patterns/disable/api-keys",
6615
6616
  async function Cp(e) {
6616
6617
  let t = await vp(e);
6617
6618
  if (e.env !== "runtime") return n(t, e);
6618
- let { generate: r } = await import("./chunks/generate.runtime-JtRQn3Yl.js"), a = await r(e), o = await n(i([t, a]), e);
6619
+ let { generate: r } = await import("./chunks/generate.runtime-pwEIGBEe.js"), a = await r(e), o = await n(i([t, a]), e);
6619
6620
  if (e.input.destructive !== !0) return o;
6620
6621
  let { writeResult: s } = await import("./chunks/write-result-BHCOxcsA.js");
6621
6622
  return s(o, e);
@@ -6792,7 +6793,7 @@ var Ap = "disable-auth", jp = "1.0.0", Mp = "src/patterns/disable/auth", Np = "/
6792
6793
  async function Pp(e) {
6793
6794
  let t = await kp(e);
6794
6795
  if (e.env !== "runtime") return n(t, e);
6795
- let { generate: r } = await import("./chunks/generate.runtime-CflCO_6s.js"), a = await r(e), o = await n(i([t, a]), e);
6796
+ let { generate: r } = await import("./chunks/generate.runtime-CL-fRmd9.js"), a = await r(e), o = await n(i([t, a]), e);
6796
6797
  if (e.input.destructive !== !0) return o;
6797
6798
  let { writeResult: s } = await import("./chunks/write-result-BHCOxcsA.js");
6798
6799
  return s(o, e);
@@ -6858,7 +6859,7 @@ async function Rp(e) {
6858
6859
  status: "success"
6859
6860
  }]).sort((e, t) => e.path.localeCompare(t.path)),
6860
6861
  components: [],
6861
- packages: [],
6862
+ packages: ["@sveltejs/adapter-static"],
6862
6863
  collections: [],
6863
6864
  collectionPatches: [],
6864
6865
  collectionDrops: []
@@ -6870,7 +6871,7 @@ var zp = "disable-backend", Bp = "1.0.0", Vp = "src/patterns/disable/backend", H
6870
6871
  async function Up(e) {
6871
6872
  let t = await Rp(e);
6872
6873
  if (e.env !== "runtime") return n(t, e);
6873
- let { generate: r } = await import("./chunks/generate.runtime-qsPylve5.js"), a = await r(e), o = await n(i([t, a]), e);
6874
+ let { generate: r } = await import("./chunks/generate.runtime-Bb_j7P3G.js"), a = await r(e), o = await n(i([t, a]), e);
6874
6875
  if (e.input.destructive !== !0) return o;
6875
6876
  let { writeResult: s } = await import("./chunks/write-result-BHCOxcsA.js");
6876
6877
  return s(o, e);
@@ -6943,7 +6944,7 @@ var Jp = "disable-content-negotiation", Yp = "1.0.0", Xp = "src/patterns/disable
6943
6944
  async function Qp(e) {
6944
6945
  let t = await qp(e);
6945
6946
  if (e.env !== "runtime") return n(t, e);
6946
- let { generate: r } = await import("./chunks/generate.runtime--0bYEUP_.js"), a = await r(e), o = await n(i([t, a]), e);
6947
+ let { generate: r } = await import("./chunks/generate.runtime-C5TE2jyc.js"), a = await r(e), o = await n(i([t, a]), e);
6947
6948
  if (e.input.destructive !== !0) return o;
6948
6949
  let { writeResult: s } = await import("./chunks/write-result-BHCOxcsA.js");
6949
6950
  return s(o, e);
@@ -7126,7 +7127,7 @@ var fm = "disable-teams", pm = "1.0.0", mm = "src/patterns/disable/teams", hm =
7126
7127
  async function gm(e) {
7127
7128
  let t = await dm(e);
7128
7129
  if (e.env !== "runtime") return n(t, e);
7129
- let { generate: r } = await import("./chunks/generate.runtime-C3kgmLls.js"), a = await r(e), o = await n(i([t, a]), e);
7130
+ let { generate: r } = await import("./chunks/generate.runtime-BB-U8d52.js"), a = await r(e), o = await n(i([t, a]), e);
7130
7131
  if (e.input.destructive !== !0) return o;
7131
7132
  let { writeResult: s } = await import("./chunks/write-result-BHCOxcsA.js");
7132
7133
  return s(o, e);
@@ -7242,7 +7243,7 @@ var wm = "disable-payments", Tm = "1.0.0", Em = "src/patterns/disable/payments",
7242
7243
  async function Om(e) {
7243
7244
  let t = await Cm(e);
7244
7245
  if (e.env !== "runtime") return n(t, e);
7245
- let { generate: r } = await import("./chunks/generate.runtime-BhgkUhnZ.js"), a = await r(e), o = await n(i([t, a]), e);
7246
+ let { generate: r } = await import("./chunks/generate.runtime-C8Y2mS0B.js"), a = await r(e), o = await n(i([t, a]), e);
7246
7247
  if (e.input.destructive !== !0) return o;
7247
7248
  let s = await km(e), c = {
7248
7249
  ...o,
@@ -7340,7 +7341,7 @@ var Pm = "disable-subscriptions", Fm = "1.0.0", Im = "src/patterns/disable/subsc
7340
7341
  async function Rm(e) {
7341
7342
  let t = await Nm(e);
7342
7343
  if (e.env !== "runtime") return n(t, e);
7343
- let { generate: r } = await import("./chunks/generate.runtime-BHoIbpFW.js"), a = await r(e), o = await n(i([t, a]), e);
7344
+ let { generate: r } = await import("./chunks/generate.runtime-C7Shwovm.js"), a = await r(e), o = await n(i([t, a]), e);
7344
7345
  if (e.input.destructive !== !0) return o;
7345
7346
  let { writeResult: s } = await import("./chunks/write-result-BHCOxcsA.js");
7346
7347
  return s(o, e);