@kosha-ai/admin 0.0.3 → 0.0.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.
- package/.next/standalone/packages/admin/.next/BUILD_ID +1 -1
- package/.next/standalone/packages/admin/.next/build-manifest.json +2 -2
- package/.next/standalone/packages/admin/.next/prerender-manifest.json +3 -3
- package/.next/standalone/packages/admin/.next/server/app/(app)/configurations/[id]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/admin/.next/server/app/(app)/configurations/new/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/admin/.next/server/app/_global-error.html +2 -2
- package/.next/standalone/packages/admin/.next/server/app/_global-error.rsc +1 -1
- package/.next/standalone/packages/admin/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/.next/standalone/packages/admin/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/standalone/packages/admin/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/.next/standalone/packages/admin/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/.next/standalone/packages/admin/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/standalone/packages/admin/.next/server/chunks/ssr/packages_admin_src_1fda1e02._.js +1 -1
- package/.next/standalone/packages/admin/.next/server/chunks/ssr/packages_admin_src_app_(app)_configurations_[id]_page_tsx_521c6b92._.js +1 -1
- package/.next/standalone/packages/admin/.next/server/pages/500.html +2 -2
- package/.next/standalone/packages/admin/.next/server/server-reference-manifest.js +1 -1
- package/.next/standalone/packages/admin/.next/server/server-reference-manifest.json +1 -1
- package/.next/standalone/packages/admin/.next/static/chunks/{861b7f9e82092b78.js → a7c2e505207b65c3.js} +1 -1
- package/.next/standalone/packages/admin/.next/static/chunks/{482f51aff20b9026.js → c3a25478c9ec6bc4.js} +1 -1
- package/.next/standalone/packages/admin/package.json +1 -1
- package/package.json +3 -3
- /package/.next/standalone/packages/admin/.next/static/{KVs4zHw0AXvA9IxwqmjpW → SrrCSPhrWXIO1UrkaUyOW}/_buildManifest.js +0 -0
- /package/.next/standalone/packages/admin/.next/static/{KVs4zHw0AXvA9IxwqmjpW → SrrCSPhrWXIO1UrkaUyOW}/_clientMiddlewareManifest.json +0 -0
- /package/.next/standalone/packages/admin/.next/static/{KVs4zHw0AXvA9IxwqmjpW → SrrCSPhrWXIO1UrkaUyOW}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
SrrCSPhrWXIO1UrkaUyOW
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
"static/chunks/a6dad97d9634a72d.js"
|
|
8
8
|
],
|
|
9
9
|
"lowPriorityFiles": [
|
|
10
|
-
"static/
|
|
11
|
-
"static/
|
|
10
|
+
"static/SrrCSPhrWXIO1UrkaUyOW/_ssgManifest.js",
|
|
11
|
+
"static/SrrCSPhrWXIO1UrkaUyOW/_buildManifest.js"
|
|
12
12
|
],
|
|
13
13
|
"rootMainFiles": [
|
|
14
14
|
"static/chunks/44677b666868afc1.js",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"dynamicRoutes": {},
|
|
30
30
|
"notFoundRoutes": [],
|
|
31
31
|
"preview": {
|
|
32
|
-
"previewModeId": "
|
|
33
|
-
"previewModeSigningKey": "
|
|
34
|
-
"previewModeEncryptionKey": "
|
|
32
|
+
"previewModeId": "181d9dc776900d61a573339e555b2366",
|
|
33
|
+
"previewModeSigningKey": "3f941f5873a3b79afb30f0f458e6f3b929b89ef0e170304d04df0c607f7949af",
|
|
34
|
+
"previewModeEncryptionKey": "54ab7a3da8b22f49809d6d824d46ad53a86631d5b997d671a3d0883c8a1483a1"
|
|
35
35
|
}
|
|
36
36
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
globalThis.__RSC_MANIFEST = globalThis.__RSC_MANIFEST || {};
|
|
2
|
-
globalThis.__RSC_MANIFEST["/(app)/configurations/[id]/page"] = {"moduleLoading":{"prefix":"","crossOrigin":null},"clientModules":{"[project]/node_modules/.pnpm/next@16.1.7_@babel+core@7.29.7_@playwright+test@1.63.0_babel-plugin-macros@3.1.0_react-_0fca183e596c5e044f89867ff58e66fb/node_modules/next/dist/esm/client/components/layout-router.js <module evaluation>":{"id":37713,"name":"*","chunks":["/_next/static/chunks/232e64796bbb6cd6.js","/_next/static/chunks/d4169e4475af119d.js"],"async":false},"[project]/node_modules/.pnpm/next@16.1.7_@babel+core@7.29.7_@playwright+test@1.63.0_babel-plugin-macros@3.1.0_react-_0fca183e596c5e044f89867ff58e66fb/node_modules/next/dist/esm/client/components/layout-router.js":{"id":37713,"name":"*","chunks":["/_next/static/chunks/232e64796bbb6cd6.js","/_next/static/chunks/d4169e4475af119d.js"],"async":false},"[project]/node_modules/.pnpm/next@16.1.7_@babel+core@7.29.7_@playwright+test@1.63.0_babel-plugin-macros@3.1.0_react-_0fca183e596c5e044f89867ff58e66fb/node_modules/next/dist/esm/client/components/render-from-template-context.js <module evaluation>":{"id":50257,"name":"*","chunks":["/_next/static/chunks/232e64796bbb6cd6.js","/_next/static/chunks/d4169e4475af119d.js"],"async":false},"[project]/node_modules/.pnpm/next@16.1.7_@babel+core@7.29.7_@playwright+test@1.63.0_babel-plugin-macros@3.1.0_react-_0fca183e596c5e044f89867ff58e66fb/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":50257,"name":"*","chunks":["/_next/static/chunks/232e64796bbb6cd6.js","/_next/static/chunks/d4169e4475af119d.js"],"async":false},"[project]/node_modules/.pnpm/next@16.1.7_@babel+core@7.29.7_@playwright+test@1.63.0_babel-plugin-macros@3.1.0_react-_0fca183e596c5e044f89867ff58e66fb/node_modules/next/dist/esm/client/components/client-page.js <module evaluation>":{"id":69770,"name":"*","chunks":["/_next/static/chunks/232e64796bbb6cd6.js","/_next/static/chunks/d4169e4475af119d.js"],"async":false},"[project]/node_modules/.pnpm/next@16.1.7_@babel+core@7.29.7_@playwright+test@1.63.0_babel-plugin-macros@3.1.0_react-_0fca183e596c5e044f89867ff58e66fb/node_modules/next/dist/esm/client/components/client-page.js":{"id":69770,"name":"*","chunks":["/_next/static/chunks/232e64796bbb6cd6.js","/_next/static/chunks/d4169e4475af119d.js"],"async":false},"[project]/node_modules/.pnpm/next@16.1.7_@babel+core@7.29.7_@playwright+test@1.63.0_babel-plugin-macros@3.1.0_react-_0fca183e596c5e044f89867ff58e66fb/node_modules/next/dist/esm/client/components/client-segment.js <module evaluation>":{"id":95568,"name":"*","chunks":["/_next/static/chunks/232e64796bbb6cd6.js","/_next/static/chunks/d4169e4475af119d.js"],"async":false},"[project]/node_modules/.pnpm/next@16.1.7_@babel+core@7.29.7_@playwright+test@1.63.0_babel-plugin-macros@3.1.0_react-_0fca183e596c5e044f89867ff58e66fb/node_modules/next/dist/esm/client/components/client-segment.js":{"id":95568,"name":"*","chunks":["/_next/static/chunks/232e64796bbb6cd6.js","/_next/static/chunks/d4169e4475af119d.js"],"async":false},"[project]/node_modules/.pnpm/next@16.1.7_@babel+core@7.29.7_@playwright+test@1.63.0_babel-plugin-macros@3.1.0_react-_0fca183e596c5e044f89867ff58e66fb/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js <module evaluation>":{"id":19156,"name":"*","chunks":["/_next/static/chunks/232e64796bbb6cd6.js","/_next/static/chunks/d4169e4475af119d.js"],"async":false},"[project]/node_modules/.pnpm/next@16.1.7_@babel+core@7.29.7_@playwright+test@1.63.0_babel-plugin-macros@3.1.0_react-_0fca183e596c5e044f89867ff58e66fb/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":19156,"name":"*","chunks":["/_next/static/chunks/232e64796bbb6cd6.js","/_next/static/chunks/d4169e4475af119d.js"],"async":false},"[project]/node_modules/.pnpm/next@16.1.7_@babel+core@7.29.7_@playwright+test@1.63.0_babel-plugin-macros@3.1.0_react-_0fca183e596c5e044f89867ff58e66fb/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js <module evaluation>":{"id":73346,"name":"*","chunks":["/_next/static/chunks/232e64796bbb6cd6.js","/_next/static/chunks/d4169e4475af119d.js"],"async":false},"[project]/node_modules/.pnpm/next@16.1.7_@babel+core@7.29.7_@playwright+test@1.63.0_babel-plugin-macros@3.1.0_react-_0fca183e596c5e044f89867ff58e66fb/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":73346,"name":"*","chunks":["/_next/static/chunks/232e64796bbb6cd6.js","/_next/static/chunks/d4169e4475af119d.js"],"async":false},"[project]/node_modules/.pnpm/next@16.1.7_@babel+core@7.29.7_@playwright+test@1.63.0_babel-plugin-macros@3.1.0_react-_0fca183e596c5e044f89867ff58e66fb/node_modules/next/dist/esm/lib/framework/boundary-components.js <module evaluation>":{"id":31113,"name":"*","chunks":["/_next/static/chunks/232e64796bbb6cd6.js","/_next/static/chunks/d4169e4475af119d.js"],"async":false},"[project]/node_modules/.pnpm/next@16.1.7_@babel+core@7.29.7_@playwright+test@1.63.0_babel-plugin-macros@3.1.0_react-_0fca183e596c5e044f89867ff58e66fb/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":31113,"name":"*","chunks":["/_next/static/chunks/232e64796bbb6cd6.js","/_next/static/chunks/d4169e4475af119d.js"],"async":false},"[project]/node_modules/.pnpm/next@16.1.7_@babel+core@7.29.7_@playwright+test@1.63.0_babel-plugin-macros@3.1.0_react-_0fca183e596c5e044f89867ff58e66fb/node_modules/next/dist/client/components/builtin/global-error.js <module evaluation>":{"id":68211,"name":"*","chunks":["/_next/static/chunks/232e64796bbb6cd6.js","/_next/static/chunks/d4169e4475af119d.js"],"async":false},"[project]/node_modules/.pnpm/next@16.1.7_@babel+core@7.29.7_@playwright+test@1.63.0_babel-plugin-macros@3.1.0_react-_0fca183e596c5e044f89867ff58e66fb/node_modules/next/dist/client/components/builtin/global-error.js":{"id":68211,"name":"*","chunks":["/_next/static/chunks/232e64796bbb6cd6.js","/_next/static/chunks/d4169e4475af119d.js"],"async":false},"[project]/packages/admin/src/components/ui/sonner.tsx <module evaluation>":{"id":38692,"name":"*","chunks":["/_next/static/chunks/fc508d3e49d3f336.js"],"async":false},"[project]/packages/admin/src/components/ui/sonner.tsx":{"id":38692,"name":"*","chunks":["/_next/static/chunks/fc508d3e49d3f336.js"],"async":false},"[project]/packages/admin/src/app/(app)/layout.tsx <module evaluation>":{"id":14646,"name":"*","chunks":["/_next/static/chunks/fc508d3e49d3f336.js","/_next/static/chunks/89fe1062cb7c3495.js","/_next/static/chunks/91d7088f77893a6e.js","/_next/static/chunks/c3f59171dfd71861.js","/_next/static/chunks/290c59828720e71c.js","/_next/static/chunks/b21dcea661b1fd62.js","/_next/static/chunks/d0bd186ab4d3e1b7.js"],"async":false},"[project]/packages/admin/src/app/(app)/layout.tsx":{"id":14646,"name":"*","chunks":["/_next/static/chunks/fc508d3e49d3f336.js","/_next/static/chunks/89fe1062cb7c3495.js","/_next/static/chunks/91d7088f77893a6e.js","/_next/static/chunks/c3f59171dfd71861.js","/_next/static/chunks/290c59828720e71c.js","/_next/static/chunks/b21dcea661b1fd62.js","/_next/static/chunks/d0bd186ab4d3e1b7.js"],"async":false},"[project]/packages/admin/src/app/(app)/configurations/[id]/page.tsx <module evaluation>":{"id":6698,"name":"*","chunks":["/_next/static/chunks/fc508d3e49d3f336.js","/_next/static/chunks/89fe1062cb7c3495.js","/_next/static/chunks/91d7088f77893a6e.js","/_next/static/chunks/c3f59171dfd71861.js","/_next/static/chunks/290c59828720e71c.js","/_next/static/chunks/b21dcea661b1fd62.js","/_next/static/chunks/d0bd186ab4d3e1b7.js","/_next/static/chunks/0a1d6080cb46ab8d.js","/_next/static/chunks/c37a678afa29b20a.js","/_next/static/chunks/861b7f9e82092b78.js"],"async":false},"[project]/packages/admin/src/app/(app)/configurations/[id]/page.tsx":{"id":6698,"name":"*","chunks":["/_next/static/chunks/fc508d3e49d3f336.js","/_next/static/chunks/89fe1062cb7c3495.js","/_next/static/chunks/91d7088f77893a6e.js","/_next/static/chunks/c3f59171dfd71861.js","/_next/static/chunks/290c59828720e71c.js","/_next/static/chunks/b21dcea661b1fd62.js","/_next/static/chunks/d0bd186ab4d3e1b7.js","/_next/static/chunks/0a1d6080cb46ab8d.js","/_next/static/chunks/c37a678afa29b20a.js","/_next/static/chunks/861b7f9e82092b78.js"],"async":false}},"ssrModuleMapping":{"37713":{"*":{"id":65735,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__1041d129._.js","server/chunks/ssr/ba641_next_dist_esm_78fdd9f8._.js"],"async":false}},"50257":{"*":{"id":2675,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__1041d129._.js","server/chunks/ssr/ba641_next_dist_esm_78fdd9f8._.js"],"async":false}},"69770":{"*":{"id":86868,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__1041d129._.js","server/chunks/ssr/ba641_next_dist_esm_78fdd9f8._.js"],"async":false}},"95568":{"*":{"id":63821,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__1041d129._.js","server/chunks/ssr/ba641_next_dist_esm_78fdd9f8._.js"],"async":false}},"19156":{"*":{"id":67324,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__1041d129._.js","server/chunks/ssr/ba641_next_dist_esm_78fdd9f8._.js"],"async":false}},"73346":{"*":{"id":69368,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__1041d129._.js","server/chunks/ssr/ba641_next_dist_esm_78fdd9f8._.js"],"async":false}},"31113":{"*":{"id":5985,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__1041d129._.js","server/chunks/ssr/ba641_next_dist_esm_78fdd9f8._.js"],"async":false}},"68211":{"*":{"id":64013,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__1041d129._.js","server/chunks/ssr/ba641_next_dist_esm_78fdd9f8._.js"],"async":false}},"38692":{"*":{"id":95847,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__ee2a9a15._.js","server/chunks/ssr/56091_sonner_dist_index_mjs_da98cd77._.js"],"async":false}},"14646":{"*":{"id":32786,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__ee2a9a15._.js","server/chunks/ssr/56091_sonner_dist_index_mjs_da98cd77._.js","server/chunks/ssr/[root-of-the-server]__e3d7a7dd._.js","server/chunks/ssr/packages_admin_src_lib_auth-client_ts_fbb00e9f._.js","server/chunks/ssr/ba641_next_27558ad1._.js","server/chunks/ssr/_26fc04e9._.js","server/chunks/ssr/ba641_next_dist_de896a7b._.js","server/chunks/ssr/node_modules__pnpm_a825f26f._.js","server/chunks/ssr/node_modules__pnpm_a8b1628c._.js","server/chunks/ssr/packages_admin_src_app_(app)_layout_tsx_5a8441b4._.js"],"async":false}},"6698":{"*":{"id":62058,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__ee2a9a15._.js","server/chunks/ssr/56091_sonner_dist_index_mjs_da98cd77._.js","server/chunks/ssr/[root-of-the-server]__e3d7a7dd._.js","server/chunks/ssr/packages_admin_src_lib_auth-client_ts_fbb00e9f._.js","server/chunks/ssr/ba641_next_27558ad1._.js","server/chunks/ssr/_26fc04e9._.js","server/chunks/ssr/ba641_next_dist_de896a7b._.js","server/chunks/ssr/node_modules__pnpm_a825f26f._.js","server/chunks/ssr/node_modules__pnpm_a8b1628c._.js","server/chunks/ssr/packages_admin_src_app_(app)_layout_tsx_5a8441b4._.js","server/chunks/ssr/packages_admin_src_app_(app)_configurations_[id]_page_tsx_521c6b92._.js","server/chunks/ssr/packages_admin_src_e1b30b8a._.js","server/chunks/ssr/98ef0_@hookform_resolvers_zod_dist_zod_mjs_189b1c76._.js","server/chunks/ssr/packages_admin_src_components_ui_select_tsx_b770c5fd._.js"],"async":false}}},"edgeSSRModuleMapping":{},"rscModuleMapping":{"37713":{"*":{"id":88320,"name":"*","chunks":[],"async":false}},"50257":{"*":{"id":14141,"name":"*","chunks":[],"async":false}},"69770":{"*":{"id":99216,"name":"*","chunks":[],"async":false}},"95568":{"*":{"id":8455,"name":"*","chunks":[],"async":false}},"19156":{"*":{"id":25754,"name":"*","chunks":[],"async":false}},"73346":{"*":{"id":89368,"name":"*","chunks":[],"async":false}},"31113":{"*":{"id":76630,"name":"*","chunks":[],"async":false}},"68211":{"*":{"id":51576,"name":"*","chunks":[],"async":false}},"38692":{"*":{"id":79956,"name":"*","chunks":[],"async":false}},"14646":{"*":{"id":8022,"name":"*","chunks":[],"async":false}},"6698":{"*":{"id":14334,"name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{},"entryCSSFiles":{"[project]/node_modules/.pnpm/next@16.1.7_@babel+core@7.29.7_@playwright+test@1.63.0_babel-plugin-macros@3.1.0_react-_0fca183e596c5e044f89867ff58e66fb/node_modules/next/dist/client/components/builtin/global-error":[],"[project]/packages/admin/src/app/layout":[{"path":"static/chunks/c582b7902b251151.css","inlined":false}],"[project]/packages/admin/src/app/(app)/layout":[{"path":"static/chunks/c582b7902b251151.css","inlined":false}],"[project]/packages/admin/src/app/(app)/configurations/[id]/page":[{"path":"static/chunks/c582b7902b251151.css","inlined":false}]},"entryJSFiles":{"[project]/node_modules/.pnpm/next@16.1.7_@babel+core@7.29.7_@playwright+test@1.63.0_babel-plugin-macros@3.1.0_react-_0fca183e596c5e044f89867ff58e66fb/node_modules/next/dist/client/components/builtin/global-error":["static/chunks/232e64796bbb6cd6.js","static/chunks/d4169e4475af119d.js"],"[project]/packages/admin/src/app/layout":["static/chunks/fc508d3e49d3f336.js"],"[project]/packages/admin/src/app/(app)/layout":["static/chunks/fc508d3e49d3f336.js","static/chunks/89fe1062cb7c3495.js","static/chunks/91d7088f77893a6e.js","static/chunks/c3f59171dfd71861.js","static/chunks/290c59828720e71c.js","static/chunks/b21dcea661b1fd62.js","static/chunks/d0bd186ab4d3e1b7.js"],"[project]/packages/admin/src/app/(app)/configurations/[id]/page":["static/chunks/fc508d3e49d3f336.js","static/chunks/89fe1062cb7c3495.js","static/chunks/91d7088f77893a6e.js","static/chunks/c3f59171dfd71861.js","static/chunks/290c59828720e71c.js","static/chunks/b21dcea661b1fd62.js","static/chunks/d0bd186ab4d3e1b7.js","static/chunks/0a1d6080cb46ab8d.js","static/chunks/c37a678afa29b20a.js","static/chunks/861b7f9e82092b78.js"]}}
|
|
2
|
+
globalThis.__RSC_MANIFEST["/(app)/configurations/[id]/page"] = {"moduleLoading":{"prefix":"","crossOrigin":null},"clientModules":{"[project]/node_modules/.pnpm/next@16.1.7_@babel+core@7.29.7_@playwright+test@1.63.0_babel-plugin-macros@3.1.0_react-_0fca183e596c5e044f89867ff58e66fb/node_modules/next/dist/esm/client/components/layout-router.js <module evaluation>":{"id":37713,"name":"*","chunks":["/_next/static/chunks/232e64796bbb6cd6.js","/_next/static/chunks/d4169e4475af119d.js"],"async":false},"[project]/node_modules/.pnpm/next@16.1.7_@babel+core@7.29.7_@playwright+test@1.63.0_babel-plugin-macros@3.1.0_react-_0fca183e596c5e044f89867ff58e66fb/node_modules/next/dist/esm/client/components/layout-router.js":{"id":37713,"name":"*","chunks":["/_next/static/chunks/232e64796bbb6cd6.js","/_next/static/chunks/d4169e4475af119d.js"],"async":false},"[project]/node_modules/.pnpm/next@16.1.7_@babel+core@7.29.7_@playwright+test@1.63.0_babel-plugin-macros@3.1.0_react-_0fca183e596c5e044f89867ff58e66fb/node_modules/next/dist/esm/client/components/render-from-template-context.js <module evaluation>":{"id":50257,"name":"*","chunks":["/_next/static/chunks/232e64796bbb6cd6.js","/_next/static/chunks/d4169e4475af119d.js"],"async":false},"[project]/node_modules/.pnpm/next@16.1.7_@babel+core@7.29.7_@playwright+test@1.63.0_babel-plugin-macros@3.1.0_react-_0fca183e596c5e044f89867ff58e66fb/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":50257,"name":"*","chunks":["/_next/static/chunks/232e64796bbb6cd6.js","/_next/static/chunks/d4169e4475af119d.js"],"async":false},"[project]/node_modules/.pnpm/next@16.1.7_@babel+core@7.29.7_@playwright+test@1.63.0_babel-plugin-macros@3.1.0_react-_0fca183e596c5e044f89867ff58e66fb/node_modules/next/dist/esm/client/components/client-page.js <module evaluation>":{"id":69770,"name":"*","chunks":["/_next/static/chunks/232e64796bbb6cd6.js","/_next/static/chunks/d4169e4475af119d.js"],"async":false},"[project]/node_modules/.pnpm/next@16.1.7_@babel+core@7.29.7_@playwright+test@1.63.0_babel-plugin-macros@3.1.0_react-_0fca183e596c5e044f89867ff58e66fb/node_modules/next/dist/esm/client/components/client-page.js":{"id":69770,"name":"*","chunks":["/_next/static/chunks/232e64796bbb6cd6.js","/_next/static/chunks/d4169e4475af119d.js"],"async":false},"[project]/node_modules/.pnpm/next@16.1.7_@babel+core@7.29.7_@playwright+test@1.63.0_babel-plugin-macros@3.1.0_react-_0fca183e596c5e044f89867ff58e66fb/node_modules/next/dist/esm/client/components/client-segment.js <module evaluation>":{"id":95568,"name":"*","chunks":["/_next/static/chunks/232e64796bbb6cd6.js","/_next/static/chunks/d4169e4475af119d.js"],"async":false},"[project]/node_modules/.pnpm/next@16.1.7_@babel+core@7.29.7_@playwright+test@1.63.0_babel-plugin-macros@3.1.0_react-_0fca183e596c5e044f89867ff58e66fb/node_modules/next/dist/esm/client/components/client-segment.js":{"id":95568,"name":"*","chunks":["/_next/static/chunks/232e64796bbb6cd6.js","/_next/static/chunks/d4169e4475af119d.js"],"async":false},"[project]/node_modules/.pnpm/next@16.1.7_@babel+core@7.29.7_@playwright+test@1.63.0_babel-plugin-macros@3.1.0_react-_0fca183e596c5e044f89867ff58e66fb/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js <module evaluation>":{"id":19156,"name":"*","chunks":["/_next/static/chunks/232e64796bbb6cd6.js","/_next/static/chunks/d4169e4475af119d.js"],"async":false},"[project]/node_modules/.pnpm/next@16.1.7_@babel+core@7.29.7_@playwright+test@1.63.0_babel-plugin-macros@3.1.0_react-_0fca183e596c5e044f89867ff58e66fb/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":19156,"name":"*","chunks":["/_next/static/chunks/232e64796bbb6cd6.js","/_next/static/chunks/d4169e4475af119d.js"],"async":false},"[project]/node_modules/.pnpm/next@16.1.7_@babel+core@7.29.7_@playwright+test@1.63.0_babel-plugin-macros@3.1.0_react-_0fca183e596c5e044f89867ff58e66fb/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js <module evaluation>":{"id":73346,"name":"*","chunks":["/_next/static/chunks/232e64796bbb6cd6.js","/_next/static/chunks/d4169e4475af119d.js"],"async":false},"[project]/node_modules/.pnpm/next@16.1.7_@babel+core@7.29.7_@playwright+test@1.63.0_babel-plugin-macros@3.1.0_react-_0fca183e596c5e044f89867ff58e66fb/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":73346,"name":"*","chunks":["/_next/static/chunks/232e64796bbb6cd6.js","/_next/static/chunks/d4169e4475af119d.js"],"async":false},"[project]/node_modules/.pnpm/next@16.1.7_@babel+core@7.29.7_@playwright+test@1.63.0_babel-plugin-macros@3.1.0_react-_0fca183e596c5e044f89867ff58e66fb/node_modules/next/dist/esm/lib/framework/boundary-components.js <module evaluation>":{"id":31113,"name":"*","chunks":["/_next/static/chunks/232e64796bbb6cd6.js","/_next/static/chunks/d4169e4475af119d.js"],"async":false},"[project]/node_modules/.pnpm/next@16.1.7_@babel+core@7.29.7_@playwright+test@1.63.0_babel-plugin-macros@3.1.0_react-_0fca183e596c5e044f89867ff58e66fb/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":31113,"name":"*","chunks":["/_next/static/chunks/232e64796bbb6cd6.js","/_next/static/chunks/d4169e4475af119d.js"],"async":false},"[project]/node_modules/.pnpm/next@16.1.7_@babel+core@7.29.7_@playwright+test@1.63.0_babel-plugin-macros@3.1.0_react-_0fca183e596c5e044f89867ff58e66fb/node_modules/next/dist/client/components/builtin/global-error.js <module evaluation>":{"id":68211,"name":"*","chunks":["/_next/static/chunks/232e64796bbb6cd6.js","/_next/static/chunks/d4169e4475af119d.js"],"async":false},"[project]/node_modules/.pnpm/next@16.1.7_@babel+core@7.29.7_@playwright+test@1.63.0_babel-plugin-macros@3.1.0_react-_0fca183e596c5e044f89867ff58e66fb/node_modules/next/dist/client/components/builtin/global-error.js":{"id":68211,"name":"*","chunks":["/_next/static/chunks/232e64796bbb6cd6.js","/_next/static/chunks/d4169e4475af119d.js"],"async":false},"[project]/packages/admin/src/components/ui/sonner.tsx <module evaluation>":{"id":38692,"name":"*","chunks":["/_next/static/chunks/fc508d3e49d3f336.js"],"async":false},"[project]/packages/admin/src/components/ui/sonner.tsx":{"id":38692,"name":"*","chunks":["/_next/static/chunks/fc508d3e49d3f336.js"],"async":false},"[project]/packages/admin/src/app/(app)/layout.tsx <module evaluation>":{"id":14646,"name":"*","chunks":["/_next/static/chunks/fc508d3e49d3f336.js","/_next/static/chunks/89fe1062cb7c3495.js","/_next/static/chunks/91d7088f77893a6e.js","/_next/static/chunks/c3f59171dfd71861.js","/_next/static/chunks/290c59828720e71c.js","/_next/static/chunks/b21dcea661b1fd62.js","/_next/static/chunks/d0bd186ab4d3e1b7.js"],"async":false},"[project]/packages/admin/src/app/(app)/layout.tsx":{"id":14646,"name":"*","chunks":["/_next/static/chunks/fc508d3e49d3f336.js","/_next/static/chunks/89fe1062cb7c3495.js","/_next/static/chunks/91d7088f77893a6e.js","/_next/static/chunks/c3f59171dfd71861.js","/_next/static/chunks/290c59828720e71c.js","/_next/static/chunks/b21dcea661b1fd62.js","/_next/static/chunks/d0bd186ab4d3e1b7.js"],"async":false},"[project]/packages/admin/src/app/(app)/configurations/[id]/page.tsx <module evaluation>":{"id":6698,"name":"*","chunks":["/_next/static/chunks/fc508d3e49d3f336.js","/_next/static/chunks/89fe1062cb7c3495.js","/_next/static/chunks/91d7088f77893a6e.js","/_next/static/chunks/c3f59171dfd71861.js","/_next/static/chunks/290c59828720e71c.js","/_next/static/chunks/b21dcea661b1fd62.js","/_next/static/chunks/d0bd186ab4d3e1b7.js","/_next/static/chunks/0a1d6080cb46ab8d.js","/_next/static/chunks/c37a678afa29b20a.js","/_next/static/chunks/a7c2e505207b65c3.js"],"async":false},"[project]/packages/admin/src/app/(app)/configurations/[id]/page.tsx":{"id":6698,"name":"*","chunks":["/_next/static/chunks/fc508d3e49d3f336.js","/_next/static/chunks/89fe1062cb7c3495.js","/_next/static/chunks/91d7088f77893a6e.js","/_next/static/chunks/c3f59171dfd71861.js","/_next/static/chunks/290c59828720e71c.js","/_next/static/chunks/b21dcea661b1fd62.js","/_next/static/chunks/d0bd186ab4d3e1b7.js","/_next/static/chunks/0a1d6080cb46ab8d.js","/_next/static/chunks/c37a678afa29b20a.js","/_next/static/chunks/a7c2e505207b65c3.js"],"async":false}},"ssrModuleMapping":{"37713":{"*":{"id":65735,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__1041d129._.js","server/chunks/ssr/ba641_next_dist_esm_78fdd9f8._.js"],"async":false}},"50257":{"*":{"id":2675,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__1041d129._.js","server/chunks/ssr/ba641_next_dist_esm_78fdd9f8._.js"],"async":false}},"69770":{"*":{"id":86868,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__1041d129._.js","server/chunks/ssr/ba641_next_dist_esm_78fdd9f8._.js"],"async":false}},"95568":{"*":{"id":63821,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__1041d129._.js","server/chunks/ssr/ba641_next_dist_esm_78fdd9f8._.js"],"async":false}},"19156":{"*":{"id":67324,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__1041d129._.js","server/chunks/ssr/ba641_next_dist_esm_78fdd9f8._.js"],"async":false}},"73346":{"*":{"id":69368,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__1041d129._.js","server/chunks/ssr/ba641_next_dist_esm_78fdd9f8._.js"],"async":false}},"31113":{"*":{"id":5985,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__1041d129._.js","server/chunks/ssr/ba641_next_dist_esm_78fdd9f8._.js"],"async":false}},"68211":{"*":{"id":64013,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__1041d129._.js","server/chunks/ssr/ba641_next_dist_esm_78fdd9f8._.js"],"async":false}},"38692":{"*":{"id":95847,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__ee2a9a15._.js","server/chunks/ssr/56091_sonner_dist_index_mjs_da98cd77._.js"],"async":false}},"14646":{"*":{"id":32786,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__ee2a9a15._.js","server/chunks/ssr/56091_sonner_dist_index_mjs_da98cd77._.js","server/chunks/ssr/[root-of-the-server]__e3d7a7dd._.js","server/chunks/ssr/packages_admin_src_lib_auth-client_ts_fbb00e9f._.js","server/chunks/ssr/ba641_next_27558ad1._.js","server/chunks/ssr/_26fc04e9._.js","server/chunks/ssr/ba641_next_dist_de896a7b._.js","server/chunks/ssr/node_modules__pnpm_a825f26f._.js","server/chunks/ssr/node_modules__pnpm_a8b1628c._.js","server/chunks/ssr/packages_admin_src_app_(app)_layout_tsx_5a8441b4._.js"],"async":false}},"6698":{"*":{"id":62058,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__ee2a9a15._.js","server/chunks/ssr/56091_sonner_dist_index_mjs_da98cd77._.js","server/chunks/ssr/[root-of-the-server]__e3d7a7dd._.js","server/chunks/ssr/packages_admin_src_lib_auth-client_ts_fbb00e9f._.js","server/chunks/ssr/ba641_next_27558ad1._.js","server/chunks/ssr/_26fc04e9._.js","server/chunks/ssr/ba641_next_dist_de896a7b._.js","server/chunks/ssr/node_modules__pnpm_a825f26f._.js","server/chunks/ssr/node_modules__pnpm_a8b1628c._.js","server/chunks/ssr/packages_admin_src_app_(app)_layout_tsx_5a8441b4._.js","server/chunks/ssr/packages_admin_src_app_(app)_configurations_[id]_page_tsx_521c6b92._.js","server/chunks/ssr/packages_admin_src_e1b30b8a._.js","server/chunks/ssr/98ef0_@hookform_resolvers_zod_dist_zod_mjs_189b1c76._.js","server/chunks/ssr/packages_admin_src_components_ui_select_tsx_b770c5fd._.js"],"async":false}}},"edgeSSRModuleMapping":{},"rscModuleMapping":{"37713":{"*":{"id":88320,"name":"*","chunks":[],"async":false}},"50257":{"*":{"id":14141,"name":"*","chunks":[],"async":false}},"69770":{"*":{"id":99216,"name":"*","chunks":[],"async":false}},"95568":{"*":{"id":8455,"name":"*","chunks":[],"async":false}},"19156":{"*":{"id":25754,"name":"*","chunks":[],"async":false}},"73346":{"*":{"id":89368,"name":"*","chunks":[],"async":false}},"31113":{"*":{"id":76630,"name":"*","chunks":[],"async":false}},"68211":{"*":{"id":51576,"name":"*","chunks":[],"async":false}},"38692":{"*":{"id":79956,"name":"*","chunks":[],"async":false}},"14646":{"*":{"id":8022,"name":"*","chunks":[],"async":false}},"6698":{"*":{"id":14334,"name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{},"entryCSSFiles":{"[project]/node_modules/.pnpm/next@16.1.7_@babel+core@7.29.7_@playwright+test@1.63.0_babel-plugin-macros@3.1.0_react-_0fca183e596c5e044f89867ff58e66fb/node_modules/next/dist/client/components/builtin/global-error":[],"[project]/packages/admin/src/app/layout":[{"path":"static/chunks/c582b7902b251151.css","inlined":false}],"[project]/packages/admin/src/app/(app)/layout":[{"path":"static/chunks/c582b7902b251151.css","inlined":false}],"[project]/packages/admin/src/app/(app)/configurations/[id]/page":[{"path":"static/chunks/c582b7902b251151.css","inlined":false}]},"entryJSFiles":{"[project]/node_modules/.pnpm/next@16.1.7_@babel+core@7.29.7_@playwright+test@1.63.0_babel-plugin-macros@3.1.0_react-_0fca183e596c5e044f89867ff58e66fb/node_modules/next/dist/client/components/builtin/global-error":["static/chunks/232e64796bbb6cd6.js","static/chunks/d4169e4475af119d.js"],"[project]/packages/admin/src/app/layout":["static/chunks/fc508d3e49d3f336.js"],"[project]/packages/admin/src/app/(app)/layout":["static/chunks/fc508d3e49d3f336.js","static/chunks/89fe1062cb7c3495.js","static/chunks/91d7088f77893a6e.js","static/chunks/c3f59171dfd71861.js","static/chunks/290c59828720e71c.js","static/chunks/b21dcea661b1fd62.js","static/chunks/d0bd186ab4d3e1b7.js"],"[project]/packages/admin/src/app/(app)/configurations/[id]/page":["static/chunks/fc508d3e49d3f336.js","static/chunks/89fe1062cb7c3495.js","static/chunks/91d7088f77893a6e.js","static/chunks/c3f59171dfd71861.js","static/chunks/290c59828720e71c.js","static/chunks/b21dcea661b1fd62.js","static/chunks/d0bd186ab4d3e1b7.js","static/chunks/0a1d6080cb46ab8d.js","static/chunks/c37a678afa29b20a.js","static/chunks/a7c2e505207b65c3.js"]}}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
globalThis.__RSC_MANIFEST = globalThis.__RSC_MANIFEST || {};
|
|
2
|
-
globalThis.__RSC_MANIFEST["/(app)/configurations/new/page"] = {"moduleLoading":{"prefix":"","crossOrigin":null},"clientModules":{"[project]/node_modules/.pnpm/next@16.1.7_@babel+core@7.29.7_@playwright+test@1.63.0_babel-plugin-macros@3.1.0_react-_0fca183e596c5e044f89867ff58e66fb/node_modules/next/dist/esm/client/components/layout-router.js <module evaluation>":{"id":37713,"name":"*","chunks":["/_next/static/chunks/232e64796bbb6cd6.js","/_next/static/chunks/d4169e4475af119d.js"],"async":false},"[project]/node_modules/.pnpm/next@16.1.7_@babel+core@7.29.7_@playwright+test@1.63.0_babel-plugin-macros@3.1.0_react-_0fca183e596c5e044f89867ff58e66fb/node_modules/next/dist/esm/client/components/layout-router.js":{"id":37713,"name":"*","chunks":["/_next/static/chunks/232e64796bbb6cd6.js","/_next/static/chunks/d4169e4475af119d.js"],"async":false},"[project]/node_modules/.pnpm/next@16.1.7_@babel+core@7.29.7_@playwright+test@1.63.0_babel-plugin-macros@3.1.0_react-_0fca183e596c5e044f89867ff58e66fb/node_modules/next/dist/esm/client/components/render-from-template-context.js <module evaluation>":{"id":50257,"name":"*","chunks":["/_next/static/chunks/232e64796bbb6cd6.js","/_next/static/chunks/d4169e4475af119d.js"],"async":false},"[project]/node_modules/.pnpm/next@16.1.7_@babel+core@7.29.7_@playwright+test@1.63.0_babel-plugin-macros@3.1.0_react-_0fca183e596c5e044f89867ff58e66fb/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":50257,"name":"*","chunks":["/_next/static/chunks/232e64796bbb6cd6.js","/_next/static/chunks/d4169e4475af119d.js"],"async":false},"[project]/node_modules/.pnpm/next@16.1.7_@babel+core@7.29.7_@playwright+test@1.63.0_babel-plugin-macros@3.1.0_react-_0fca183e596c5e044f89867ff58e66fb/node_modules/next/dist/esm/client/components/client-page.js <module evaluation>":{"id":69770,"name":"*","chunks":["/_next/static/chunks/232e64796bbb6cd6.js","/_next/static/chunks/d4169e4475af119d.js"],"async":false},"[project]/node_modules/.pnpm/next@16.1.7_@babel+core@7.29.7_@playwright+test@1.63.0_babel-plugin-macros@3.1.0_react-_0fca183e596c5e044f89867ff58e66fb/node_modules/next/dist/esm/client/components/client-page.js":{"id":69770,"name":"*","chunks":["/_next/static/chunks/232e64796bbb6cd6.js","/_next/static/chunks/d4169e4475af119d.js"],"async":false},"[project]/node_modules/.pnpm/next@16.1.7_@babel+core@7.29.7_@playwright+test@1.63.0_babel-plugin-macros@3.1.0_react-_0fca183e596c5e044f89867ff58e66fb/node_modules/next/dist/esm/client/components/client-segment.js <module evaluation>":{"id":95568,"name":"*","chunks":["/_next/static/chunks/232e64796bbb6cd6.js","/_next/static/chunks/d4169e4475af119d.js"],"async":false},"[project]/node_modules/.pnpm/next@16.1.7_@babel+core@7.29.7_@playwright+test@1.63.0_babel-plugin-macros@3.1.0_react-_0fca183e596c5e044f89867ff58e66fb/node_modules/next/dist/esm/client/components/client-segment.js":{"id":95568,"name":"*","chunks":["/_next/static/chunks/232e64796bbb6cd6.js","/_next/static/chunks/d4169e4475af119d.js"],"async":false},"[project]/node_modules/.pnpm/next@16.1.7_@babel+core@7.29.7_@playwright+test@1.63.0_babel-plugin-macros@3.1.0_react-_0fca183e596c5e044f89867ff58e66fb/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js <module evaluation>":{"id":19156,"name":"*","chunks":["/_next/static/chunks/232e64796bbb6cd6.js","/_next/static/chunks/d4169e4475af119d.js"],"async":false},"[project]/node_modules/.pnpm/next@16.1.7_@babel+core@7.29.7_@playwright+test@1.63.0_babel-plugin-macros@3.1.0_react-_0fca183e596c5e044f89867ff58e66fb/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":19156,"name":"*","chunks":["/_next/static/chunks/232e64796bbb6cd6.js","/_next/static/chunks/d4169e4475af119d.js"],"async":false},"[project]/node_modules/.pnpm/next@16.1.7_@babel+core@7.29.7_@playwright+test@1.63.0_babel-plugin-macros@3.1.0_react-_0fca183e596c5e044f89867ff58e66fb/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js <module evaluation>":{"id":73346,"name":"*","chunks":["/_next/static/chunks/232e64796bbb6cd6.js","/_next/static/chunks/d4169e4475af119d.js"],"async":false},"[project]/node_modules/.pnpm/next@16.1.7_@babel+core@7.29.7_@playwright+test@1.63.0_babel-plugin-macros@3.1.0_react-_0fca183e596c5e044f89867ff58e66fb/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":73346,"name":"*","chunks":["/_next/static/chunks/232e64796bbb6cd6.js","/_next/static/chunks/d4169e4475af119d.js"],"async":false},"[project]/node_modules/.pnpm/next@16.1.7_@babel+core@7.29.7_@playwright+test@1.63.0_babel-plugin-macros@3.1.0_react-_0fca183e596c5e044f89867ff58e66fb/node_modules/next/dist/esm/lib/framework/boundary-components.js <module evaluation>":{"id":31113,"name":"*","chunks":["/_next/static/chunks/232e64796bbb6cd6.js","/_next/static/chunks/d4169e4475af119d.js"],"async":false},"[project]/node_modules/.pnpm/next@16.1.7_@babel+core@7.29.7_@playwright+test@1.63.0_babel-plugin-macros@3.1.0_react-_0fca183e596c5e044f89867ff58e66fb/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":31113,"name":"*","chunks":["/_next/static/chunks/232e64796bbb6cd6.js","/_next/static/chunks/d4169e4475af119d.js"],"async":false},"[project]/node_modules/.pnpm/next@16.1.7_@babel+core@7.29.7_@playwright+test@1.63.0_babel-plugin-macros@3.1.0_react-_0fca183e596c5e044f89867ff58e66fb/node_modules/next/dist/client/components/builtin/global-error.js <module evaluation>":{"id":68211,"name":"*","chunks":["/_next/static/chunks/232e64796bbb6cd6.js","/_next/static/chunks/d4169e4475af119d.js"],"async":false},"[project]/node_modules/.pnpm/next@16.1.7_@babel+core@7.29.7_@playwright+test@1.63.0_babel-plugin-macros@3.1.0_react-_0fca183e596c5e044f89867ff58e66fb/node_modules/next/dist/client/components/builtin/global-error.js":{"id":68211,"name":"*","chunks":["/_next/static/chunks/232e64796bbb6cd6.js","/_next/static/chunks/d4169e4475af119d.js"],"async":false},"[project]/packages/admin/src/components/ui/sonner.tsx <module evaluation>":{"id":38692,"name":"*","chunks":["/_next/static/chunks/fc508d3e49d3f336.js"],"async":false},"[project]/packages/admin/src/components/ui/sonner.tsx":{"id":38692,"name":"*","chunks":["/_next/static/chunks/fc508d3e49d3f336.js"],"async":false},"[project]/packages/admin/src/app/(app)/layout.tsx <module evaluation>":{"id":14646,"name":"*","chunks":["/_next/static/chunks/fc508d3e49d3f336.js","/_next/static/chunks/89fe1062cb7c3495.js","/_next/static/chunks/91d7088f77893a6e.js","/_next/static/chunks/c3f59171dfd71861.js","/_next/static/chunks/290c59828720e71c.js","/_next/static/chunks/b21dcea661b1fd62.js","/_next/static/chunks/d0bd186ab4d3e1b7.js"],"async":false},"[project]/packages/admin/src/app/(app)/layout.tsx":{"id":14646,"name":"*","chunks":["/_next/static/chunks/fc508d3e49d3f336.js","/_next/static/chunks/89fe1062cb7c3495.js","/_next/static/chunks/91d7088f77893a6e.js","/_next/static/chunks/c3f59171dfd71861.js","/_next/static/chunks/290c59828720e71c.js","/_next/static/chunks/b21dcea661b1fd62.js","/_next/static/chunks/d0bd186ab4d3e1b7.js"],"async":false},"[project]/packages/admin/src/app/(app)/configurations/new/page.tsx <module evaluation>":{"id":21894,"name":"*","chunks":["/_next/static/chunks/fc508d3e49d3f336.js","/_next/static/chunks/89fe1062cb7c3495.js","/_next/static/chunks/91d7088f77893a6e.js","/_next/static/chunks/c3f59171dfd71861.js","/_next/static/chunks/290c59828720e71c.js","/_next/static/chunks/b21dcea661b1fd62.js","/_next/static/chunks/d0bd186ab4d3e1b7.js","/_next/static/chunks/482f51aff20b9026.js","/_next/static/chunks/c37a678afa29b20a.js","/_next/static/chunks/0a1d6080cb46ab8d.js"],"async":false},"[project]/packages/admin/src/app/(app)/configurations/new/page.tsx":{"id":21894,"name":"*","chunks":["/_next/static/chunks/fc508d3e49d3f336.js","/_next/static/chunks/89fe1062cb7c3495.js","/_next/static/chunks/91d7088f77893a6e.js","/_next/static/chunks/c3f59171dfd71861.js","/_next/static/chunks/290c59828720e71c.js","/_next/static/chunks/b21dcea661b1fd62.js","/_next/static/chunks/d0bd186ab4d3e1b7.js","/_next/static/chunks/482f51aff20b9026.js","/_next/static/chunks/c37a678afa29b20a.js","/_next/static/chunks/0a1d6080cb46ab8d.js"],"async":false}},"ssrModuleMapping":{"37713":{"*":{"id":65735,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__1041d129._.js","server/chunks/ssr/ba641_next_dist_esm_78fdd9f8._.js"],"async":false}},"50257":{"*":{"id":2675,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__1041d129._.js","server/chunks/ssr/ba641_next_dist_esm_78fdd9f8._.js"],"async":false}},"69770":{"*":{"id":86868,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__1041d129._.js","server/chunks/ssr/ba641_next_dist_esm_78fdd9f8._.js"],"async":false}},"95568":{"*":{"id":63821,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__1041d129._.js","server/chunks/ssr/ba641_next_dist_esm_78fdd9f8._.js"],"async":false}},"19156":{"*":{"id":67324,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__1041d129._.js","server/chunks/ssr/ba641_next_dist_esm_78fdd9f8._.js"],"async":false}},"73346":{"*":{"id":69368,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__1041d129._.js","server/chunks/ssr/ba641_next_dist_esm_78fdd9f8._.js"],"async":false}},"31113":{"*":{"id":5985,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__1041d129._.js","server/chunks/ssr/ba641_next_dist_esm_78fdd9f8._.js"],"async":false}},"68211":{"*":{"id":64013,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__1041d129._.js","server/chunks/ssr/ba641_next_dist_esm_78fdd9f8._.js"],"async":false}},"38692":{"*":{"id":95847,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__ee2a9a15._.js","server/chunks/ssr/56091_sonner_dist_index_mjs_da98cd77._.js"],"async":false}},"14646":{"*":{"id":32786,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__ee2a9a15._.js","server/chunks/ssr/56091_sonner_dist_index_mjs_da98cd77._.js","server/chunks/ssr/[root-of-the-server]__e3d7a7dd._.js","server/chunks/ssr/packages_admin_src_lib_auth-client_ts_fbb00e9f._.js","server/chunks/ssr/ba641_next_27558ad1._.js","server/chunks/ssr/_26fc04e9._.js","server/chunks/ssr/ba641_next_dist_de896a7b._.js","server/chunks/ssr/node_modules__pnpm_a825f26f._.js","server/chunks/ssr/node_modules__pnpm_a8b1628c._.js","server/chunks/ssr/packages_admin_src_app_(app)_layout_tsx_5a8441b4._.js"],"async":false}},"21894":{"*":{"id":53970,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__ee2a9a15._.js","server/chunks/ssr/56091_sonner_dist_index_mjs_da98cd77._.js","server/chunks/ssr/[root-of-the-server]__e3d7a7dd._.js","server/chunks/ssr/packages_admin_src_lib_auth-client_ts_fbb00e9f._.js","server/chunks/ssr/ba641_next_27558ad1._.js","server/chunks/ssr/_26fc04e9._.js","server/chunks/ssr/ba641_next_dist_de896a7b._.js","server/chunks/ssr/node_modules__pnpm_a825f26f._.js","server/chunks/ssr/node_modules__pnpm_a8b1628c._.js","server/chunks/ssr/packages_admin_src_app_(app)_layout_tsx_5a8441b4._.js","server/chunks/ssr/packages_admin_src_1fda1e02._.js","server/chunks/ssr/98ef0_@hookform_resolvers_zod_dist_zod_mjs_189b1c76._.js","server/chunks/ssr/packages_admin_src_components_ui_select_tsx_b770c5fd._.js"],"async":false}}},"edgeSSRModuleMapping":{},"rscModuleMapping":{"37713":{"*":{"id":88320,"name":"*","chunks":[],"async":false}},"50257":{"*":{"id":14141,"name":"*","chunks":[],"async":false}},"69770":{"*":{"id":99216,"name":"*","chunks":[],"async":false}},"95568":{"*":{"id":8455,"name":"*","chunks":[],"async":false}},"19156":{"*":{"id":25754,"name":"*","chunks":[],"async":false}},"73346":{"*":{"id":89368,"name":"*","chunks":[],"async":false}},"31113":{"*":{"id":76630,"name":"*","chunks":[],"async":false}},"68211":{"*":{"id":51576,"name":"*","chunks":[],"async":false}},"38692":{"*":{"id":79956,"name":"*","chunks":[],"async":false}},"14646":{"*":{"id":8022,"name":"*","chunks":[],"async":false}},"21894":{"*":{"id":77984,"name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{},"entryCSSFiles":{"[project]/node_modules/.pnpm/next@16.1.7_@babel+core@7.29.7_@playwright+test@1.63.0_babel-plugin-macros@3.1.0_react-_0fca183e596c5e044f89867ff58e66fb/node_modules/next/dist/client/components/builtin/global-error":[],"[project]/packages/admin/src/app/layout":[{"path":"static/chunks/c582b7902b251151.css","inlined":false}],"[project]/packages/admin/src/app/(app)/layout":[{"path":"static/chunks/c582b7902b251151.css","inlined":false}],"[project]/packages/admin/src/app/(app)/configurations/new/page":[{"path":"static/chunks/c582b7902b251151.css","inlined":false}]},"entryJSFiles":{"[project]/node_modules/.pnpm/next@16.1.7_@babel+core@7.29.7_@playwright+test@1.63.0_babel-plugin-macros@3.1.0_react-_0fca183e596c5e044f89867ff58e66fb/node_modules/next/dist/client/components/builtin/global-error":["static/chunks/232e64796bbb6cd6.js","static/chunks/d4169e4475af119d.js"],"[project]/packages/admin/src/app/layout":["static/chunks/fc508d3e49d3f336.js"],"[project]/packages/admin/src/app/(app)/layout":["static/chunks/fc508d3e49d3f336.js","static/chunks/89fe1062cb7c3495.js","static/chunks/91d7088f77893a6e.js","static/chunks/c3f59171dfd71861.js","static/chunks/290c59828720e71c.js","static/chunks/b21dcea661b1fd62.js","static/chunks/d0bd186ab4d3e1b7.js"],"[project]/packages/admin/src/app/(app)/configurations/new/page":["static/chunks/fc508d3e49d3f336.js","static/chunks/89fe1062cb7c3495.js","static/chunks/91d7088f77893a6e.js","static/chunks/c3f59171dfd71861.js","static/chunks/290c59828720e71c.js","static/chunks/b21dcea661b1fd62.js","static/chunks/d0bd186ab4d3e1b7.js","static/chunks/482f51aff20b9026.js","static/chunks/c37a678afa29b20a.js","static/chunks/0a1d6080cb46ab8d.js"]}}
|
|
2
|
+
globalThis.__RSC_MANIFEST["/(app)/configurations/new/page"] = {"moduleLoading":{"prefix":"","crossOrigin":null},"clientModules":{"[project]/node_modules/.pnpm/next@16.1.7_@babel+core@7.29.7_@playwright+test@1.63.0_babel-plugin-macros@3.1.0_react-_0fca183e596c5e044f89867ff58e66fb/node_modules/next/dist/esm/client/components/layout-router.js <module evaluation>":{"id":37713,"name":"*","chunks":["/_next/static/chunks/232e64796bbb6cd6.js","/_next/static/chunks/d4169e4475af119d.js"],"async":false},"[project]/node_modules/.pnpm/next@16.1.7_@babel+core@7.29.7_@playwright+test@1.63.0_babel-plugin-macros@3.1.0_react-_0fca183e596c5e044f89867ff58e66fb/node_modules/next/dist/esm/client/components/layout-router.js":{"id":37713,"name":"*","chunks":["/_next/static/chunks/232e64796bbb6cd6.js","/_next/static/chunks/d4169e4475af119d.js"],"async":false},"[project]/node_modules/.pnpm/next@16.1.7_@babel+core@7.29.7_@playwright+test@1.63.0_babel-plugin-macros@3.1.0_react-_0fca183e596c5e044f89867ff58e66fb/node_modules/next/dist/esm/client/components/render-from-template-context.js <module evaluation>":{"id":50257,"name":"*","chunks":["/_next/static/chunks/232e64796bbb6cd6.js","/_next/static/chunks/d4169e4475af119d.js"],"async":false},"[project]/node_modules/.pnpm/next@16.1.7_@babel+core@7.29.7_@playwright+test@1.63.0_babel-plugin-macros@3.1.0_react-_0fca183e596c5e044f89867ff58e66fb/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":50257,"name":"*","chunks":["/_next/static/chunks/232e64796bbb6cd6.js","/_next/static/chunks/d4169e4475af119d.js"],"async":false},"[project]/node_modules/.pnpm/next@16.1.7_@babel+core@7.29.7_@playwright+test@1.63.0_babel-plugin-macros@3.1.0_react-_0fca183e596c5e044f89867ff58e66fb/node_modules/next/dist/esm/client/components/client-page.js <module evaluation>":{"id":69770,"name":"*","chunks":["/_next/static/chunks/232e64796bbb6cd6.js","/_next/static/chunks/d4169e4475af119d.js"],"async":false},"[project]/node_modules/.pnpm/next@16.1.7_@babel+core@7.29.7_@playwright+test@1.63.0_babel-plugin-macros@3.1.0_react-_0fca183e596c5e044f89867ff58e66fb/node_modules/next/dist/esm/client/components/client-page.js":{"id":69770,"name":"*","chunks":["/_next/static/chunks/232e64796bbb6cd6.js","/_next/static/chunks/d4169e4475af119d.js"],"async":false},"[project]/node_modules/.pnpm/next@16.1.7_@babel+core@7.29.7_@playwright+test@1.63.0_babel-plugin-macros@3.1.0_react-_0fca183e596c5e044f89867ff58e66fb/node_modules/next/dist/esm/client/components/client-segment.js <module evaluation>":{"id":95568,"name":"*","chunks":["/_next/static/chunks/232e64796bbb6cd6.js","/_next/static/chunks/d4169e4475af119d.js"],"async":false},"[project]/node_modules/.pnpm/next@16.1.7_@babel+core@7.29.7_@playwright+test@1.63.0_babel-plugin-macros@3.1.0_react-_0fca183e596c5e044f89867ff58e66fb/node_modules/next/dist/esm/client/components/client-segment.js":{"id":95568,"name":"*","chunks":["/_next/static/chunks/232e64796bbb6cd6.js","/_next/static/chunks/d4169e4475af119d.js"],"async":false},"[project]/node_modules/.pnpm/next@16.1.7_@babel+core@7.29.7_@playwright+test@1.63.0_babel-plugin-macros@3.1.0_react-_0fca183e596c5e044f89867ff58e66fb/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js <module evaluation>":{"id":19156,"name":"*","chunks":["/_next/static/chunks/232e64796bbb6cd6.js","/_next/static/chunks/d4169e4475af119d.js"],"async":false},"[project]/node_modules/.pnpm/next@16.1.7_@babel+core@7.29.7_@playwright+test@1.63.0_babel-plugin-macros@3.1.0_react-_0fca183e596c5e044f89867ff58e66fb/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":19156,"name":"*","chunks":["/_next/static/chunks/232e64796bbb6cd6.js","/_next/static/chunks/d4169e4475af119d.js"],"async":false},"[project]/node_modules/.pnpm/next@16.1.7_@babel+core@7.29.7_@playwright+test@1.63.0_babel-plugin-macros@3.1.0_react-_0fca183e596c5e044f89867ff58e66fb/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js <module evaluation>":{"id":73346,"name":"*","chunks":["/_next/static/chunks/232e64796bbb6cd6.js","/_next/static/chunks/d4169e4475af119d.js"],"async":false},"[project]/node_modules/.pnpm/next@16.1.7_@babel+core@7.29.7_@playwright+test@1.63.0_babel-plugin-macros@3.1.0_react-_0fca183e596c5e044f89867ff58e66fb/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":73346,"name":"*","chunks":["/_next/static/chunks/232e64796bbb6cd6.js","/_next/static/chunks/d4169e4475af119d.js"],"async":false},"[project]/node_modules/.pnpm/next@16.1.7_@babel+core@7.29.7_@playwright+test@1.63.0_babel-plugin-macros@3.1.0_react-_0fca183e596c5e044f89867ff58e66fb/node_modules/next/dist/esm/lib/framework/boundary-components.js <module evaluation>":{"id":31113,"name":"*","chunks":["/_next/static/chunks/232e64796bbb6cd6.js","/_next/static/chunks/d4169e4475af119d.js"],"async":false},"[project]/node_modules/.pnpm/next@16.1.7_@babel+core@7.29.7_@playwright+test@1.63.0_babel-plugin-macros@3.1.0_react-_0fca183e596c5e044f89867ff58e66fb/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":31113,"name":"*","chunks":["/_next/static/chunks/232e64796bbb6cd6.js","/_next/static/chunks/d4169e4475af119d.js"],"async":false},"[project]/node_modules/.pnpm/next@16.1.7_@babel+core@7.29.7_@playwright+test@1.63.0_babel-plugin-macros@3.1.0_react-_0fca183e596c5e044f89867ff58e66fb/node_modules/next/dist/client/components/builtin/global-error.js <module evaluation>":{"id":68211,"name":"*","chunks":["/_next/static/chunks/232e64796bbb6cd6.js","/_next/static/chunks/d4169e4475af119d.js"],"async":false},"[project]/node_modules/.pnpm/next@16.1.7_@babel+core@7.29.7_@playwright+test@1.63.0_babel-plugin-macros@3.1.0_react-_0fca183e596c5e044f89867ff58e66fb/node_modules/next/dist/client/components/builtin/global-error.js":{"id":68211,"name":"*","chunks":["/_next/static/chunks/232e64796bbb6cd6.js","/_next/static/chunks/d4169e4475af119d.js"],"async":false},"[project]/packages/admin/src/components/ui/sonner.tsx <module evaluation>":{"id":38692,"name":"*","chunks":["/_next/static/chunks/fc508d3e49d3f336.js"],"async":false},"[project]/packages/admin/src/components/ui/sonner.tsx":{"id":38692,"name":"*","chunks":["/_next/static/chunks/fc508d3e49d3f336.js"],"async":false},"[project]/packages/admin/src/app/(app)/layout.tsx <module evaluation>":{"id":14646,"name":"*","chunks":["/_next/static/chunks/fc508d3e49d3f336.js","/_next/static/chunks/89fe1062cb7c3495.js","/_next/static/chunks/91d7088f77893a6e.js","/_next/static/chunks/c3f59171dfd71861.js","/_next/static/chunks/290c59828720e71c.js","/_next/static/chunks/b21dcea661b1fd62.js","/_next/static/chunks/d0bd186ab4d3e1b7.js"],"async":false},"[project]/packages/admin/src/app/(app)/layout.tsx":{"id":14646,"name":"*","chunks":["/_next/static/chunks/fc508d3e49d3f336.js","/_next/static/chunks/89fe1062cb7c3495.js","/_next/static/chunks/91d7088f77893a6e.js","/_next/static/chunks/c3f59171dfd71861.js","/_next/static/chunks/290c59828720e71c.js","/_next/static/chunks/b21dcea661b1fd62.js","/_next/static/chunks/d0bd186ab4d3e1b7.js"],"async":false},"[project]/packages/admin/src/app/(app)/configurations/new/page.tsx <module evaluation>":{"id":21894,"name":"*","chunks":["/_next/static/chunks/fc508d3e49d3f336.js","/_next/static/chunks/89fe1062cb7c3495.js","/_next/static/chunks/91d7088f77893a6e.js","/_next/static/chunks/c3f59171dfd71861.js","/_next/static/chunks/290c59828720e71c.js","/_next/static/chunks/b21dcea661b1fd62.js","/_next/static/chunks/d0bd186ab4d3e1b7.js","/_next/static/chunks/c3a25478c9ec6bc4.js","/_next/static/chunks/c37a678afa29b20a.js","/_next/static/chunks/0a1d6080cb46ab8d.js"],"async":false},"[project]/packages/admin/src/app/(app)/configurations/new/page.tsx":{"id":21894,"name":"*","chunks":["/_next/static/chunks/fc508d3e49d3f336.js","/_next/static/chunks/89fe1062cb7c3495.js","/_next/static/chunks/91d7088f77893a6e.js","/_next/static/chunks/c3f59171dfd71861.js","/_next/static/chunks/290c59828720e71c.js","/_next/static/chunks/b21dcea661b1fd62.js","/_next/static/chunks/d0bd186ab4d3e1b7.js","/_next/static/chunks/c3a25478c9ec6bc4.js","/_next/static/chunks/c37a678afa29b20a.js","/_next/static/chunks/0a1d6080cb46ab8d.js"],"async":false}},"ssrModuleMapping":{"37713":{"*":{"id":65735,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__1041d129._.js","server/chunks/ssr/ba641_next_dist_esm_78fdd9f8._.js"],"async":false}},"50257":{"*":{"id":2675,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__1041d129._.js","server/chunks/ssr/ba641_next_dist_esm_78fdd9f8._.js"],"async":false}},"69770":{"*":{"id":86868,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__1041d129._.js","server/chunks/ssr/ba641_next_dist_esm_78fdd9f8._.js"],"async":false}},"95568":{"*":{"id":63821,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__1041d129._.js","server/chunks/ssr/ba641_next_dist_esm_78fdd9f8._.js"],"async":false}},"19156":{"*":{"id":67324,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__1041d129._.js","server/chunks/ssr/ba641_next_dist_esm_78fdd9f8._.js"],"async":false}},"73346":{"*":{"id":69368,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__1041d129._.js","server/chunks/ssr/ba641_next_dist_esm_78fdd9f8._.js"],"async":false}},"31113":{"*":{"id":5985,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__1041d129._.js","server/chunks/ssr/ba641_next_dist_esm_78fdd9f8._.js"],"async":false}},"68211":{"*":{"id":64013,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__1041d129._.js","server/chunks/ssr/ba641_next_dist_esm_78fdd9f8._.js"],"async":false}},"38692":{"*":{"id":95847,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__ee2a9a15._.js","server/chunks/ssr/56091_sonner_dist_index_mjs_da98cd77._.js"],"async":false}},"14646":{"*":{"id":32786,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__ee2a9a15._.js","server/chunks/ssr/56091_sonner_dist_index_mjs_da98cd77._.js","server/chunks/ssr/[root-of-the-server]__e3d7a7dd._.js","server/chunks/ssr/packages_admin_src_lib_auth-client_ts_fbb00e9f._.js","server/chunks/ssr/ba641_next_27558ad1._.js","server/chunks/ssr/_26fc04e9._.js","server/chunks/ssr/ba641_next_dist_de896a7b._.js","server/chunks/ssr/node_modules__pnpm_a825f26f._.js","server/chunks/ssr/node_modules__pnpm_a8b1628c._.js","server/chunks/ssr/packages_admin_src_app_(app)_layout_tsx_5a8441b4._.js"],"async":false}},"21894":{"*":{"id":53970,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__ee2a9a15._.js","server/chunks/ssr/56091_sonner_dist_index_mjs_da98cd77._.js","server/chunks/ssr/[root-of-the-server]__e3d7a7dd._.js","server/chunks/ssr/packages_admin_src_lib_auth-client_ts_fbb00e9f._.js","server/chunks/ssr/ba641_next_27558ad1._.js","server/chunks/ssr/_26fc04e9._.js","server/chunks/ssr/ba641_next_dist_de896a7b._.js","server/chunks/ssr/node_modules__pnpm_a825f26f._.js","server/chunks/ssr/node_modules__pnpm_a8b1628c._.js","server/chunks/ssr/packages_admin_src_app_(app)_layout_tsx_5a8441b4._.js","server/chunks/ssr/packages_admin_src_1fda1e02._.js","server/chunks/ssr/98ef0_@hookform_resolvers_zod_dist_zod_mjs_189b1c76._.js","server/chunks/ssr/packages_admin_src_components_ui_select_tsx_b770c5fd._.js"],"async":false}}},"edgeSSRModuleMapping":{},"rscModuleMapping":{"37713":{"*":{"id":88320,"name":"*","chunks":[],"async":false}},"50257":{"*":{"id":14141,"name":"*","chunks":[],"async":false}},"69770":{"*":{"id":99216,"name":"*","chunks":[],"async":false}},"95568":{"*":{"id":8455,"name":"*","chunks":[],"async":false}},"19156":{"*":{"id":25754,"name":"*","chunks":[],"async":false}},"73346":{"*":{"id":89368,"name":"*","chunks":[],"async":false}},"31113":{"*":{"id":76630,"name":"*","chunks":[],"async":false}},"68211":{"*":{"id":51576,"name":"*","chunks":[],"async":false}},"38692":{"*":{"id":79956,"name":"*","chunks":[],"async":false}},"14646":{"*":{"id":8022,"name":"*","chunks":[],"async":false}},"21894":{"*":{"id":77984,"name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{},"entryCSSFiles":{"[project]/node_modules/.pnpm/next@16.1.7_@babel+core@7.29.7_@playwright+test@1.63.0_babel-plugin-macros@3.1.0_react-_0fca183e596c5e044f89867ff58e66fb/node_modules/next/dist/client/components/builtin/global-error":[],"[project]/packages/admin/src/app/layout":[{"path":"static/chunks/c582b7902b251151.css","inlined":false}],"[project]/packages/admin/src/app/(app)/layout":[{"path":"static/chunks/c582b7902b251151.css","inlined":false}],"[project]/packages/admin/src/app/(app)/configurations/new/page":[{"path":"static/chunks/c582b7902b251151.css","inlined":false}]},"entryJSFiles":{"[project]/node_modules/.pnpm/next@16.1.7_@babel+core@7.29.7_@playwright+test@1.63.0_babel-plugin-macros@3.1.0_react-_0fca183e596c5e044f89867ff58e66fb/node_modules/next/dist/client/components/builtin/global-error":["static/chunks/232e64796bbb6cd6.js","static/chunks/d4169e4475af119d.js"],"[project]/packages/admin/src/app/layout":["static/chunks/fc508d3e49d3f336.js"],"[project]/packages/admin/src/app/(app)/layout":["static/chunks/fc508d3e49d3f336.js","static/chunks/89fe1062cb7c3495.js","static/chunks/91d7088f77893a6e.js","static/chunks/c3f59171dfd71861.js","static/chunks/290c59828720e71c.js","static/chunks/b21dcea661b1fd62.js","static/chunks/d0bd186ab4d3e1b7.js"],"[project]/packages/admin/src/app/(app)/configurations/new/page":["static/chunks/fc508d3e49d3f336.js","static/chunks/89fe1062cb7c3495.js","static/chunks/91d7088f77893a6e.js","static/chunks/c3f59171dfd71861.js","static/chunks/290c59828720e71c.js","static/chunks/b21dcea661b1fd62.js","static/chunks/d0bd186ab4d3e1b7.js","static/chunks/c3a25478c9ec6bc4.js","static/chunks/c37a678afa29b20a.js","static/chunks/0a1d6080cb46ab8d.js"]}}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
<!DOCTYPE html><!--
|
|
2
|
-
@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding-right:23px;font-size:24px;font-weight:500;vertical-align:top">500</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:28px">Internal Server Error.</h2></div></div></div><!--$--><!--/$--><script src="/_next/static/chunks/44677b666868afc1.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[37713,[\"/_next/static/chunks/232e64796bbb6cd6.js\",\"/_next/static/chunks/d4169e4475af119d.js\"],\"default\"]\n3:I[50257,[\"/_next/static/chunks/232e64796bbb6cd6.js\",\"/_next/static/chunks/d4169e4475af119d.js\"],\"default\"]\n4:I[31113,[\"/_next/static/chunks/232e64796bbb6cd6.js\",\"/_next/static/chunks/d4169e4475af119d.js\"],\"OutletBoundary\"]\n5:\"$Sreact.suspense\"\n7:I[31113,[\"/_next/static/chunks/232e64796bbb6cd6.js\",\"/_next/static/chunks/d4169e4475af119d.js\"],\"ViewportBoundary\"]\n9:I[31113,[\"/_next/static/chunks/232e64796bbb6cd6.js\",\"/_next/static/chunks/d4169e4475af119d.js\"],\"MetadataBoundary\"]\nb:I[68211,[\"/_next/static/chunks/232e64796bbb6cd6.js\",\"/_next/static/chunks/d4169e4475af119d.js\"],\"default\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"
|
|
1
|
+
<!DOCTYPE html><!--SrrCSPhrWXIO1UrkaUyOW--><html id="__next_error__"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/44677b666868afc1.js"/><script src="/_next/static/chunks/ffced81dd79e0056.js" async=""></script><script src="/_next/static/chunks/655b834643f4873b.js" async=""></script><script src="/_next/static/chunks/530c88358cdac090.js" async=""></script><script src="/_next/static/chunks/981e4cc561261fdd.js" async=""></script><script src="/_next/static/chunks/turbopack-7411ad279c2817c8.js" async=""></script><script src="/_next/static/chunks/232e64796bbb6cd6.js" async=""></script><script src="/_next/static/chunks/d4169e4475af119d.js" async=""></script><meta name="next-size-adjust" content=""/><title>500: Internal Server Error.</title><script src="/_next/static/chunks/a6dad97d9634a72d.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div style="line-height:48px"><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}
|
|
2
|
+
@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding-right:23px;font-size:24px;font-weight:500;vertical-align:top">500</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:28px">Internal Server Error.</h2></div></div></div><!--$--><!--/$--><script src="/_next/static/chunks/44677b666868afc1.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[37713,[\"/_next/static/chunks/232e64796bbb6cd6.js\",\"/_next/static/chunks/d4169e4475af119d.js\"],\"default\"]\n3:I[50257,[\"/_next/static/chunks/232e64796bbb6cd6.js\",\"/_next/static/chunks/d4169e4475af119d.js\"],\"default\"]\n4:I[31113,[\"/_next/static/chunks/232e64796bbb6cd6.js\",\"/_next/static/chunks/d4169e4475af119d.js\"],\"OutletBoundary\"]\n5:\"$Sreact.suspense\"\n7:I[31113,[\"/_next/static/chunks/232e64796bbb6cd6.js\",\"/_next/static/chunks/d4169e4475af119d.js\"],\"ViewportBoundary\"]\n9:I[31113,[\"/_next/static/chunks/232e64796bbb6cd6.js\",\"/_next/static/chunks/d4169e4475af119d.js\"],\"MetadataBoundary\"]\nb:I[68211,[\"/_next/static/chunks/232e64796bbb6cd6.js\",\"/_next/static/chunks/d4169e4475af119d.js\"],\"default\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"SrrCSPhrWXIO1UrkaUyOW\",\"c\":[\"\",\"_global-error\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"__PAGE__\",{}]}],[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"html\",null,{\"id\":\"__next_error__\",\"children\":[[\"$\",\"head\",null,{\"children\":[\"$\",\"title\",null,{\"children\":\"500: Internal Server Error.\"}]}],[\"$\",\"body\",null,{\"children\":[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"style\":{\"lineHeight\":\"48px\"},\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}\\n@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"paddingRight\":23,\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\"},\"children\":\"500\"}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"28px\"},\"children\":\"Internal Server Error.\"}]}]]}]}]}]]}],[[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/232e64796bbb6cd6.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/_next/static/chunks/d4169e4475af119d.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"$L4\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@6\"}]}]]}],{},null,false,false]},null,false,false],[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$L7\",null,{\"children\":\"$L8\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$L9\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.Metadata\",\"children\":\"$La\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$b\",\"$undefined\"],\"S\":true}\n"])</script><script>self.__next_f.push([1,"8:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"6:null\na:[]\n"])</script></body></html>
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
7:I[31113,["/_next/static/chunks/232e64796bbb6cd6.js","/_next/static/chunks/d4169e4475af119d.js"],"ViewportBoundary"]
|
|
7
7
|
9:I[31113,["/_next/static/chunks/232e64796bbb6cd6.js","/_next/static/chunks/d4169e4475af119d.js"],"MetadataBoundary"]
|
|
8
8
|
b:I[68211,["/_next/static/chunks/232e64796bbb6cd6.js","/_next/static/chunks/d4169e4475af119d.js"],"default"]
|
|
9
|
-
0:{"P":null,"b":"
|
|
9
|
+
0:{"P":null,"b":"SrrCSPhrWXIO1UrkaUyOW","c":["","_global-error"],"q":"","i":false,"f":[[["",{"children":["__PAGE__",{}]}],[["$","$1","c",{"children":[null,["$","$L2",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":[["$","$1","c",{"children":[["$","html",null,{"id":"__next_error__","children":[["$","head",null,{"children":["$","title",null,{"children":"500: Internal Server Error."}]}],["$","body",null,{"children":["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"style":{"lineHeight":"48px"},"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}\n@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","paddingRight":23,"fontSize":24,"fontWeight":500,"verticalAlign":"top"},"children":"500"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"28px"},"children":"Internal Server Error."}]}]]}]}]}]]}],[["$","script","script-0",{"src":"/_next/static/chunks/232e64796bbb6cd6.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/_next/static/chunks/d4169e4475af119d.js","async":true,"nonce":"$undefined"}]],["$","$L4",null,{"children":["$","$5",null,{"name":"Next.MetadataOutlet","children":"$@6"}]}]]}],{},null,false,false]},null,false,false],["$","$1","h",{"children":[null,["$","$L7",null,{"children":"$L8"}],["$","div",null,{"hidden":true,"children":["$","$L9",null,{"children":["$","$5",null,{"name":"Next.Metadata","children":"$La"}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}],false]],"m":"$undefined","G":["$b","$undefined"],"S":true}
|
|
10
10
|
8:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
|
|
11
11
|
6:null
|
|
12
12
|
a:[]
|
package/.next/standalone/packages/admin/.next/server/app/_global-error.segments/__PAGE__.segment.rsc
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
1:"$Sreact.fragment"
|
|
2
2
|
2:I[31113,["/_next/static/chunks/232e64796bbb6cd6.js","/_next/static/chunks/d4169e4475af119d.js"],"OutletBoundary"]
|
|
3
3
|
3:"$Sreact.suspense"
|
|
4
|
-
0:{"buildId":"
|
|
4
|
+
0:{"buildId":"SrrCSPhrWXIO1UrkaUyOW","rsc":["$","$1","c",{"children":[["$","html",null,{"id":"__next_error__","children":[["$","head",null,{"children":["$","title",null,{"children":"500: Internal Server Error."}]}],["$","body",null,{"children":["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"style":{"lineHeight":"48px"},"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}\n@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","paddingRight":23,"fontSize":24,"fontWeight":500,"verticalAlign":"top"},"children":"500"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"28px"},"children":"Internal Server Error."}]}]]}]}]}]]}],[["$","script","script-0",{"src":"/_next/static/chunks/232e64796bbb6cd6.js","async":true}],["$","script","script-1",{"src":"/_next/static/chunks/d4169e4475af119d.js","async":true}]],["$","$L2",null,{"children":["$","$3",null,{"name":"Next.MetadataOutlet","children":"$@4"}]}]]}],"loading":null,"isPartial":false}
|
|
5
5
|
4:null
|
package/.next/standalone/packages/admin/.next/server/app/_global-error.segments/_full.segment.rsc
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
7:I[31113,["/_next/static/chunks/232e64796bbb6cd6.js","/_next/static/chunks/d4169e4475af119d.js"],"ViewportBoundary"]
|
|
7
7
|
9:I[31113,["/_next/static/chunks/232e64796bbb6cd6.js","/_next/static/chunks/d4169e4475af119d.js"],"MetadataBoundary"]
|
|
8
8
|
b:I[68211,["/_next/static/chunks/232e64796bbb6cd6.js","/_next/static/chunks/d4169e4475af119d.js"],"default"]
|
|
9
|
-
0:{"P":null,"b":"
|
|
9
|
+
0:{"P":null,"b":"SrrCSPhrWXIO1UrkaUyOW","c":["","_global-error"],"q":"","i":false,"f":[[["",{"children":["__PAGE__",{}]}],[["$","$1","c",{"children":[null,["$","$L2",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":[["$","$1","c",{"children":[["$","html",null,{"id":"__next_error__","children":[["$","head",null,{"children":["$","title",null,{"children":"500: Internal Server Error."}]}],["$","body",null,{"children":["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"style":{"lineHeight":"48px"},"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}\n@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","paddingRight":23,"fontSize":24,"fontWeight":500,"verticalAlign":"top"},"children":"500"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"28px"},"children":"Internal Server Error."}]}]]}]}]}]]}],[["$","script","script-0",{"src":"/_next/static/chunks/232e64796bbb6cd6.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/_next/static/chunks/d4169e4475af119d.js","async":true,"nonce":"$undefined"}]],["$","$L4",null,{"children":["$","$5",null,{"name":"Next.MetadataOutlet","children":"$@6"}]}]]}],{},null,false,false]},null,false,false],["$","$1","h",{"children":[null,["$","$L7",null,{"children":"$L8"}],["$","div",null,{"hidden":true,"children":["$","$L9",null,{"children":["$","$5",null,{"name":"Next.Metadata","children":"$La"}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}],false]],"m":"$undefined","G":["$b","$undefined"],"S":true}
|
|
10
10
|
8:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
|
|
11
11
|
6:null
|
|
12
12
|
a:[]
|
package/.next/standalone/packages/admin/.next/server/app/_global-error.segments/_head.segment.rsc
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
2:I[31113,["/_next/static/chunks/232e64796bbb6cd6.js","/_next/static/chunks/d4169e4475af119d.js"],"ViewportBoundary"]
|
|
3
3
|
3:I[31113,["/_next/static/chunks/232e64796bbb6cd6.js","/_next/static/chunks/d4169e4475af119d.js"],"MetadataBoundary"]
|
|
4
4
|
4:"$Sreact.suspense"
|
|
5
|
-
0:{"buildId":"
|
|
5
|
+
0:{"buildId":"SrrCSPhrWXIO1UrkaUyOW","rsc":["$","$1","h",{"children":[null,["$","$L2",null,{"children":[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]}],["$","div",null,{"hidden":true,"children":["$","$L3",null,{"children":["$","$4",null,{"name":"Next.Metadata","children":[]}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}],"loading":null,"isPartial":false}
|
package/.next/standalone/packages/admin/.next/server/app/_global-error.segments/_index.segment.rsc
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
1:"$Sreact.fragment"
|
|
2
2
|
2:I[37713,["/_next/static/chunks/232e64796bbb6cd6.js","/_next/static/chunks/d4169e4475af119d.js"],"default"]
|
|
3
3
|
3:I[50257,["/_next/static/chunks/232e64796bbb6cd6.js","/_next/static/chunks/d4169e4475af119d.js"],"default"]
|
|
4
|
-
0:{"buildId":"
|
|
4
|
+
0:{"buildId":"SrrCSPhrWXIO1UrkaUyOW","rsc":["$","$1","c",{"children":[null,["$","$L2",null,{"parallelRouterKey":"children","template":["$","$L3",null,{}]}]]}],"loading":null,"isPartial":false}
|
package/.next/standalone/packages/admin/.next/server/app/_global-error.segments/_tree.segment.rsc
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0:{"buildId":"
|
|
1
|
+
0:{"buildId":"SrrCSPhrWXIO1UrkaUyOW","tree":{"name":"","paramType":null,"paramKey":"","hasRuntimePrefetch":false,"slots":{"children":{"name":"__PAGE__","paramType":null,"paramKey":"__PAGE__","hasRuntimePrefetch":false,"slots":null,"isRootLayout":false}},"isRootLayout":false},"staleTime":300}
|
package/.next/standalone/packages/admin/.next/server/chunks/ssr/packages_admin_src_1fda1e02._.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module.exports=[39252,a=>{"use strict";var b=a.i(49144),c=a.i(64406);function d({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"card",className:(0,c.cn)("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",a),...d})}function e({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"card-header",className:(0,c.cn)("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",a),...d})}function f({className:a,...d}){return(0,b.jsx)("h3",{"data-slot":"card-title",className:(0,c.cn)("leading-none font-semibold",a),...d})}function g({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"card-description",className:(0,c.cn)("text-muted-foreground text-sm",a),...d})}function h({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"card-content",className:(0,c.cn)("px-6",a),...d})}a.s(["Card",()=>d,"CardContent",()=>h,"CardDescription",()=>g,"CardHeader",()=>e,"CardTitle",()=>f])},72086,a=>{"use strict";var b=a.i(49144),c=a.i(94685),d=a.i(96397),e=Object.defineProperty,f=c.forwardRef(e(function(a,c){return(0,b.jsx)(d.Primitive.label,{...a,ref:c,onMouseDown:b=>{b.target.closest("button, input, select, textarea")||(a.onMouseDown?.(b),!b.defaultPrevented&&b.detail>1&&b.preventDefault())}})},"name",{value:"Label",configurable:!0})),g=a.i(64406);function h({className:a,...c}){return(0,b.jsx)(f,{"data-slot":"label",className:(0,g.cn)("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",a),...c})}a.s(["Label",()=>h],72086)},76238,17525,a=>{"use strict";var b=a.i(94685),c=a.i(36510);class d extends Error{status;constructor(a,b){super(a),this.status=b,this.name="ApiError"}}async function e(a,b){let e=await fetch(`${(0,c.apiUrl)()}/api${a}`,{...b,credentials:"include",headers:{"content-type":"application/json",...b?.headers}});if(!e.ok){let a=await e.json().catch(()=>null);throw new d(a?.message??`Request failed with status ${e.status}`,e.status)}if(204!==e.status)return e.json()}function f(){return e("/integrations")}function g(a){return e(`/integrations/${a}`)}function h(){return e("/configurations")}function i(a){return e(`/configurations/${a}`)}function j(a){return e("/configurations",{method:"POST",body:JSON.stringify(a)})}function k(a,b){return e(`/configurations/${a}`,{method:"PATCH",body:JSON.stringify(b)})}function l(a){return e(`/configurations/${a}`,{method:"DELETE"})}function m(a){let b=a?.endUserExternalId?`?endUserExternalId=${encodeURIComponent(a.endUserExternalId)}`:"";return e(`/connections${b}`)}function n(a){return e(`/connections/${a}`,{method:"DELETE"})}function o(a){return e("/connect/sessions/test",{method:"POST",body:JSON.stringify({configurationId:a})})}function p(a,c=[]){let[e,f]=(0,b.useState)(null),[g,h]=(0,b.useState)(!0),[i,j]=(0,b.useState)(null),k=(0,b.useCallback)(()=>{h(!0),j(null),a().then(f).catch(a=>j(a instanceof d?a.message:"Something went wrong")).finally(()=>h(!1))},c);return(0,b.useEffect)(()=>{k()},[k]),{data:e,loading:g,error:i,reload:k}}a.s(["ApiError",()=>d,"createConfiguration",()=>j,"createTestConnectSession",()=>o,"deleteConfiguration",()=>l,"getConfiguration",()=>i,"getIntegration",()=>g,"listConfigurations",()=>h,"listConnections",()=>m,"listIntegrations",()=>f,"revokeConnection",()=>n,"updateConfiguration",()=>k],17525),a.s(["useApiResource",()=>p],76238)},71613,a=>{"use strict";var b=a.i(49144),c=a.i(91218),d=a.i(42261),e=a.i(64406);let f=(0,d.cva)("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 gap-1 [&>svg]:size-3 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function g({className:a,variant:d,asChild:g=!1,...h}){let i=g?c.Slot:"span";return(0,b.jsx)(i,{"data-slot":"badge",className:(0,e.cn)(f({variant:d}),a),...h})}a.s(["Badge",()=>g])},26046,34729,a=>{"use strict";var b=a.i(49144),c=a.i(94685),d=a.i(17349),e=a.i(40016),f=a.i(96265),g=a.i(47046),h=a.i(36708),i=a.i(63239),j=a.i(96397),k=Object.defineProperty,l=(a,b)=>k(a,"name",{value:b,configurable:!0}),m="Checkbox",[n,o]=(0,e.createContextScope)(m),[p,q]=n(m);function r(a){let{__scopeCheckbox:d,checked:e,children:f,defaultChecked:h,disabled:i,form:j,name:k,onCheckedChange:l,required:n,value:o="on",internal_do_not_use_render:q}=a,[r,s]=(0,g.useControllableState)({prop:e,defaultProp:h??!1,onChange:l,caller:m}),[t,u]=c.useState(null),[v,y]=c.useState(null),z=c.useRef(!1),[A,B]=c.useReducer(a=>a+1,0),C=!t||!!j||!!t.closest("form"),D={checked:r,disabled:i,setChecked:s,control:t,setControl:u,name:k,form:j,value:o,hasConsumerStoppedPropagationRef:z,userInteractionCount:A,onUserInteraction:B,required:n,defaultChecked:!x(h)&&h,isFormControl:C,bubbleInput:v,setBubbleInput:y};return(0,b.jsx)(p,{scope:d,...D,children:w(q)?q(D):f})}l(r,"CheckboxProvider");var s=c.forwardRef(l(function({__scopeCheckbox:a,onKeyDown:e,onClick:g,...h},i){let{control:k,value:m,disabled:n,checked:o,required:p,setControl:r,setChecked:s,hasConsumerStoppedPropagationRef:t,onUserInteraction:u,isFormControl:v,bubbleInput:w}=q("CheckboxTrigger",a),z=(0,d.useComposedRefs)(i,r),A=c.useRef(o);return c.useEffect(()=>{let a=k?.form;if(a){let b=l(()=>s(A.current),"reset");return a.addEventListener("reset",b),()=>a.removeEventListener("reset",b)}},[k,s]),(0,b.jsx)(j.Primitive.button,{type:"button",role:"checkbox","aria-checked":x(o)?"mixed":o,"aria-required":p,"data-state":y(o),"data-disabled":n?"":void 0,disabled:n,value:m,...h,ref:z,onKeyDown:(0,f.composeEventHandlers)(e,a=>{"Enter"===a.key&&a.preventDefault()}),onClick:(0,f.composeEventHandlers)(g,a=>{u(),s(a=>!!x(a)||!a),w&&v&&(t.current=a.isPropagationStopped(),t.current||a.stopPropagation())})})},"CheckboxTrigger")),t=c.forwardRef(l(function(a,c){let{__scopeCheckbox:d,name:e,checked:f,defaultChecked:g,required:h,disabled:i,value:j,onCheckedChange:k,form:l,...m}=a;return(0,b.jsx)(r,{__scopeCheckbox:d,checked:f,defaultChecked:g,disabled:i,required:h,onCheckedChange:k,name:e,form:l,value:j,internal_do_not_use_render:({isFormControl:a})=>(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(s,{...m,ref:c,__scopeCheckbox:d}),a&&(0,b.jsx)(v,{__scopeCheckbox:d})]})})},"Checkbox")),u=c.forwardRef(l(function(a,c){let{__scopeCheckbox:d,forceMount:e,...f}=a,g=q("CheckboxIndicator",d);return(0,b.jsx)(i.Presence,{present:e||x(g.checked)||!0===g.checked,children:(0,b.jsx)(j.Primitive.span,{"data-state":y(g.checked),"data-disabled":g.disabled?"":void 0,...f,ref:c,style:{pointerEvents:"none",...a.style}})})},"CheckboxIndicator")),v=c.forwardRef(l(function({__scopeCheckbox:a,onClick:e,...g},i){let{control:k,hasConsumerStoppedPropagationRef:l,userInteractionCount:m,checked:n,defaultChecked:o,required:p,disabled:r,name:s,value:t,form:u,bubbleInput:v,setBubbleInput:w}=q("CheckboxBubbleInput",a),y=(0,d.useComposedRefs)(i,w),z=(0,h.useSize)(k),A=c.useRef(!1),B=c.useRef(n),C=c.useRef(m);c.useEffect(()=>{if(!v)return;let a=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set,b=m!==C.current;C.current=m;let c=B.current!==n;B.current=n;let d=!(b&&l.current);if(c&&a){A.current=!b;let c=new Event("click",{bubbles:d});v.indeterminate=x(n),a.call(v,!x(n)&&n),v.dispatchEvent(c),A.current=!1}},[v,n,l,m]);let D=c.useRef(!x(n)&&n);return(0,b.jsx)(j.Primitive.input,{type:"checkbox","aria-hidden":!0,defaultChecked:o??D.current,required:p,disabled:r,name:s,value:t,form:u,...g,tabIndex:-1,ref:y,onClick:(0,f.composeEventHandlers)(e,a=>{A.current&&a.stopPropagation()}),style:{...g.style,...z,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})},"CheckboxBubbleInput"));function w(a){return"function"==typeof a}function x(a){return"indeterminate"===a}function y(a){return x(a)?"indeterminate":a?"checked":"unchecked"}l(w,"isFunction"),l(x,"isIndeterminate"),l(y,"getState");var z=a.i(50481),A=a.i(64406);function B({className:a,...c}){return(0,b.jsx)(t,{"data-slot":"checkbox",className:(0,A.cn)("peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",a),...c,children:(0,b.jsx)(u,{"data-slot":"checkbox-indicator",className:"flex items-center justify-center text-current transition-none",children:(0,b.jsx)(z.CheckIcon,{className:"size-3.5"})})})}var C=a.i(2858),D=a.i(72086),E=a.i(6453);function F({fields:a,value:c,onChange:d}){return 0===a.length?null:(0,b.jsx)("div",{className:"flex flex-col gap-4",children:a.map(a=>{let e=`config-field-${a.key}`,f=c[a.key];return"boolean"===a.type?(0,b.jsxs)("div",{className:"flex items-center gap-2",children:[(0,b.jsx)(B,{id:e,checked:!0===f,onCheckedChange:b=>d(a.key,!0===b)}),(0,b.jsxs)(D.Label,{htmlFor:e,className:"font-normal",children:[a.label,a.required&&(0,b.jsx)("span",{className:"text-destructive",children:" *"})]})]},a.key):"select"===a.type?(0,b.jsxs)("div",{className:"grid gap-1.5",children:[(0,b.jsxs)(D.Label,{htmlFor:e,children:[a.label,a.required&&(0,b.jsx)("span",{className:"text-destructive",children:" *"})]}),(0,b.jsxs)(E.Select,{value:"string"==typeof f?f:void 0,onValueChange:b=>d(a.key,b),children:[(0,b.jsx)(E.SelectTrigger,{id:e,className:"w-full",children:(0,b.jsx)(E.SelectValue,{placeholder:"Select…"})}),(0,b.jsx)(E.SelectContent,{children:(a.options??[]).map(a=>(0,b.jsx)(E.SelectItem,{value:a.value,children:a.label},a.value))})]}),a.help&&(0,b.jsx)("p",{className:"text-muted-foreground text-sm",children:a.help})]},a.key):(0,b.jsxs)("div",{className:"grid gap-1.5",children:[(0,b.jsxs)(D.Label,{htmlFor:e,children:[a.label,a.required&&(0,b.jsx)("span",{className:"text-destructive",children:" *"})]}),(0,b.jsx)(C.Input,{id:e,type:"number"===a.type?"number":a.secret?"password":"text",value:"string"==typeof f||"number"==typeof f?f:"",onChange:b=>d(a.key,"number"===a.type?b.target.valueAsNumber:b.target.value)}),a.help&&(0,b.jsx)("p",{className:"text-muted-foreground text-sm",children:a.help})]},a.key)})})}a.s(["ConfigFieldsForm",()=>F],26046);var G=a.i(7220),H=a.i(95420),H=H,I=a.i(71613);function J({options:a,value:d,onChange:e,placeholder:f,className:g}){let[h,i]=(0,c.useState)(!1),[j,k]=(0,c.useState)(""),[l,m]=(0,c.useState)(0),n=(0,c.useRef)(null),o=(0,c.useRef)(null),p=a.filter(a=>a.toLowerCase().includes(j.toLowerCase()));function q(a){e(d.includes(a)?d.filter(b=>b!==a):[...d,a]),k("")}return(0,c.useEffect)(()=>{m(0)},[j,h]),(0,c.useEffect)(()=>{function a(a){n.current?.contains(a.target)||i(!1)}return document.addEventListener("pointerdown",a),()=>document.removeEventListener("pointerdown",a)},[]),(0,b.jsxs)("div",{ref:n,className:(0,A.cn)("relative",g),children:[(0,b.jsxs)("div",{className:"border-input focus-within:border-ring focus-within:ring-ring/50 flex min-h-9 w-full flex-wrap items-center gap-1.5 rounded-md border bg-transparent px-2 py-1.5 text-sm shadow-xs transition-[color,box-shadow] focus-within:ring-[3px]",onClick:()=>{i(!0),o.current?.focus()},children:[d.map(a=>(0,b.jsxs)(I.Badge,{variant:"secondary",className:"gap-1 font-mono",children:[a,(0,b.jsxs)("button",{type:"button",onMouseDown:b=>{b.preventDefault(),b.stopPropagation(),q(a)},className:"text-muted-foreground hover:text-foreground",children:[(0,b.jsx)(H.default,{className:"size-3"}),(0,b.jsxs)("span",{className:"sr-only",children:["Remove ",a]})]})]},a)),(0,b.jsx)("input",{ref:o,value:j,onChange:a=>k(a.target.value),onFocus:()=>i(!0),onKeyDown:function(a){if("Backspace"===a.key&&""===j&&d.length>0)return void e(d.slice(0,-1));if(!h&&("ArrowDown"===a.key||"Enter"===a.key))return void i(!0);if("ArrowDown"===a.key)a.preventDefault(),m(a=>Math.min(a+1,p.length-1));else if("ArrowUp"===a.key)a.preventDefault(),m(a=>Math.max(a-1,0));else if("Enter"===a.key){a.preventDefault();let b=p[l];b&&q(b)}else"Escape"===a.key&&i(!1)},placeholder:0===d.length?f:void 0,className:"text-foreground placeholder:text-muted-foreground min-w-24 flex-1 bg-transparent outline-none"})]}),h&&(0,b.jsxs)("div",{className:"bg-popover text-popover-foreground absolute z-50 mt-1 max-h-64 w-full overflow-auto rounded-md border p-1 shadow-md",children:[0===p.length&&(0,b.jsx)("p",{className:"text-muted-foreground px-2 py-1.5 text-sm",children:"No matches"}),p.map((a,c)=>{let e=d.includes(a);return(0,b.jsxs)("button",{type:"button",onMouseDown:b=>{b.preventDefault(),q(a)},onMouseEnter:()=>m(c),className:(0,A.cn)("flex w-full items-center justify-between gap-2 rounded-sm px-2 py-1.5 text-left font-mono text-sm",c===l&&"bg-accent text-accent-foreground"),children:[a,e&&(0,b.jsx)(G.Check,{className:"size-4 shrink-0"})]},a)})]})]})}function K({scopesAvailable:a,value:c,onChange:d}){return 0===a.length?null:(0,b.jsx)(J,{options:a,value:c,onChange:d,placeholder:"Add scopes…"})}a.s(["ScopesPicker",()=>K],34729)},53970,a=>{"use strict";var b=a.i(49144),c=a.i(94685),d=a.i(17804),e=a.i(1767);let f=(0,a.i(52894).default)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);var g=a.i(25710),h=a.i(86270),i=a.i(80904),j=a.i(17525),k=a.i(76238),l=a.i(71613),m=a.i(13326),n=a.i(39252),o=a.i(26046),p=a.i(83203),q=a.i(2858),r=a.i(6453),s=a.i(34729),t=a.i(23521);let u=i.z.object({name:i.z.string().min(1,"Give this configuration a name"),environment:i.z.enum(["LIVE","SANDBOX"]),clientId:i.z.string().min(1,"Client ID is required"),clientSecret:i.z.string().min(1,"Client secret is required")});function v(){let a=(0,d.useRouter)(),{data:i,loading:v}=(0,k.useApiResource)(j.listIntegrations),[w,x]=(0,c.useState)(null),[y,z]=(0,c.useState)([]),[A,B]=(0,c.useState)({}),[C,D]=(0,c.useState)(!1),E=(0,g.useForm)({resolver:(0,e.zodResolver)(u),defaultValues:{name:"",environment:"LIVE",clientId:"",clientSecret:""}});async function F(b){if(w){D(!0);try{let c=await (0,j.createConfiguration)({provider:w.key,name:b.name,clientId:b.clientId,clientSecret:b.clientSecret,environment:b.environment,scopes:y,settings:A});h.toast.success(`Created "${c.name}"`),a.push(`/configurations/${c.id}`)}catch(a){E.setError("root",{message:a instanceof j.ApiError?a.message:"Could not create configuration"})}finally{D(!1)}}}return w?(0,b.jsxs)("div",{className:"flex max-w-2xl flex-col gap-4",children:[(0,b.jsxs)("div",{children:[(0,b.jsxs)(m.Button,{variant:"ghost",size:"sm",className:"-ml-2 mb-2",onClick:()=>x(null),children:[(0,b.jsx)(f,{}),"Choose a different provider"]}),(0,b.jsxs)("h1",{className:"text-xl font-semibold tracking-tight",children:["New ",w.name," configuration"]})]}),(0,b.jsx)(n.Card,{children:(0,b.jsx)(n.CardContent,{className:"pt-6",children:(0,b.jsx)(p.Form,{...E,children:(0,b.jsxs)("form",{onSubmit:E.handleSubmit(F),className:"flex flex-col gap-4",children:[(0,b.jsx)(p.FormField,{control:E.control,name:"name",render:({field:a})=>(0,b.jsxs)(p.FormItem,{children:[(0,b.jsx)(p.FormLabel,{children:"Name"}),(0,b.jsx)(p.FormControl,{children:(0,b.jsx)(q.Input,{placeholder:`${w.name} production`,...a})}),(0,b.jsx)(p.FormMessage,{})]})}),(0,b.jsx)(p.FormField,{control:E.control,name:"environment",render:({field:a})=>(0,b.jsxs)(p.FormItem,{children:[(0,b.jsx)(p.FormLabel,{children:"Environment"}),(0,b.jsxs)(r.Select,{value:a.value,onValueChange:a.onChange,children:[(0,b.jsx)(p.FormControl,{children:(0,b.jsx)(r.SelectTrigger,{className:"w-full",children:(0,b.jsx)(r.SelectValue,{})})}),(0,b.jsxs)(r.SelectContent,{children:[(0,b.jsx)(r.SelectItem,{value:"LIVE",children:"Live"}),(0,b.jsx)(r.SelectItem,{value:"SANDBOX",children:"Sandbox"})]})]}),(0,b.jsx)(p.FormMessage,{})]})}),(0,b.jsx)(p.FormField,{control:E.control,name:"clientId",render:({field:a})=>(0,b.jsxs)(p.FormItem,{children:[(0,b.jsx)(p.FormLabel,{children:"Client ID"}),(0,b.jsx)(p.FormControl,{children:(0,b.jsx)(q.Input,{className:"font-mono",...a})}),(0,b.jsx)(p.FormMessage,{})]})}),(0,b.jsx)(p.FormField,{control:E.control,name:"clientSecret",render:({field:a})=>(0,b.jsxs)(p.FormItem,{children:[(0,b.jsx)(p.FormLabel,{children:"Client secret"}),(0,b.jsx)(p.FormControl,{children:(0,b.jsx)(q.Input,{type:"password",className:"font-mono",...a})}),(0,b.jsx)(p.FormMessage,{})]})}),w.scopesAvailable.length>0&&(0,b.jsxs)("div",{className:"grid gap-1.5",children:[(0,b.jsx)(p.FormLabel,{children:"Scopes"}),(0,b.jsx)(s.ScopesPicker,{scopesAvailable:w.scopesAvailable,value:y,onChange:z})]}),(0,b.jsx)(o.ConfigFieldsForm,{fields:w.configFields,value:A,onChange:(a,b)=>B(c=>({...c,[a]:b}))}),E.formState.errors.root&&(0,b.jsx)("p",{className:"text-destructive text-sm",children:E.formState.errors.root.message}),(0,b.jsx)("div",{className:"flex justify-end gap-2 pt-2",children:(0,b.jsx)(m.Button,{type:"submit",disabled:C,children:C?"Creating…":"Create configuration"})})]})})})})]}):(0,b.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,b.jsxs)("div",{children:[(0,b.jsx)("h1",{className:"text-xl font-semibold tracking-tight",children:"New configuration"}),(0,b.jsx)("p",{className:"text-muted-foreground text-sm",children:"Pick the provider your users will connect to."})]}),v&&(0,b.jsxs)("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3",children:[(0,b.jsx)(t.Skeleton,{className:"h-24 w-full"}),(0,b.jsx)(t.Skeleton,{className:"h-24 w-full"}),(0,b.jsx)(t.Skeleton,{className:"h-24 w-full"})]}),!v&&(0,b.jsx)("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3",children:(i??[]).map(a=>(0,b.jsxs)(n.Card,{role:"button",tabIndex:0,onClick:()=>x(a),onKeyDown:b=>"Enter"===b.key&&x(a),className:"hover:border-primary/50 cursor-pointer transition-colors",children:[(0,b.jsx)(n.CardHeader,{children:(0,b.jsxs)(n.CardTitle,{className:"flex items-center justify-between text-base",children:[a.name,(0,b.jsx)(l.Badge,{variant:"outline",children:a.authType})]})}),(0,b.jsxs)(n.CardContent,{className:"text-muted-foreground text-sm",children:[a.scopesAvailable.length," scope",1===a.scopesAvailable.length?"":"s"," ","available"]})]},a.key))})]})}a.s(["default",()=>v],53970)}];
|
|
1
|
+
module.exports=[39252,a=>{"use strict";var b=a.i(49144),c=a.i(64406);function d({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"card",className:(0,c.cn)("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",a),...d})}function e({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"card-header",className:(0,c.cn)("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",a),...d})}function f({className:a,...d}){return(0,b.jsx)("h3",{"data-slot":"card-title",className:(0,c.cn)("leading-none font-semibold",a),...d})}function g({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"card-description",className:(0,c.cn)("text-muted-foreground text-sm",a),...d})}function h({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"card-content",className:(0,c.cn)("px-6",a),...d})}a.s(["Card",()=>d,"CardContent",()=>h,"CardDescription",()=>g,"CardHeader",()=>e,"CardTitle",()=>f])},72086,a=>{"use strict";var b=a.i(49144),c=a.i(94685),d=a.i(96397),e=Object.defineProperty,f=c.forwardRef(e(function(a,c){return(0,b.jsx)(d.Primitive.label,{...a,ref:c,onMouseDown:b=>{b.target.closest("button, input, select, textarea")||(a.onMouseDown?.(b),!b.defaultPrevented&&b.detail>1&&b.preventDefault())}})},"name",{value:"Label",configurable:!0})),g=a.i(64406);function h({className:a,...c}){return(0,b.jsx)(f,{"data-slot":"label",className:(0,g.cn)("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",a),...c})}a.s(["Label",()=>h],72086)},76238,17525,a=>{"use strict";var b=a.i(94685),c=a.i(36510);class d extends Error{status;constructor(a,b){super(a),this.status=b,this.name="ApiError"}}async function e(a,b){let e=await fetch(`${(0,c.apiUrl)()}/api${a}`,{...b,credentials:"include",headers:{"content-type":"application/json",...b?.headers}});if(!e.ok){let a=await e.json().catch(()=>null);throw new d(a?.message??`Request failed with status ${e.status}`,e.status)}if(204!==e.status)return e.json()}function f(){return e("/integrations")}function g(a){return e(`/integrations/${a}`)}function h(){return e("/configurations")}function i(a){return e(`/configurations/${a}`)}function j(a){return e("/configurations",{method:"POST",body:JSON.stringify(a)})}function k(a,b){return e(`/configurations/${a}`,{method:"PATCH",body:JSON.stringify(b)})}function l(a){return e(`/configurations/${a}`,{method:"DELETE"})}function m(a){let b=a?.endUserExternalId?`?endUserExternalId=${encodeURIComponent(a.endUserExternalId)}`:"";return e(`/connections${b}`)}function n(a){return e(`/connections/${a}`,{method:"DELETE"})}function o(a){return e("/connect/sessions/test",{method:"POST",body:JSON.stringify({configurationId:a})})}function p(a,c=[]){let[e,f]=(0,b.useState)(null),[g,h]=(0,b.useState)(!0),[i,j]=(0,b.useState)(null),k=(0,b.useCallback)(()=>{h(!0),j(null),a().then(f).catch(a=>j(a instanceof d?a.message:"Something went wrong")).finally(()=>h(!1))},c);return(0,b.useEffect)(()=>{k()},[k]),{data:e,loading:g,error:i,reload:k}}a.s(["ApiError",()=>d,"createConfiguration",()=>j,"createTestConnectSession",()=>o,"deleteConfiguration",()=>l,"getConfiguration",()=>i,"getIntegration",()=>g,"listConfigurations",()=>h,"listConnections",()=>m,"listIntegrations",()=>f,"revokeConnection",()=>n,"updateConfiguration",()=>k],17525),a.s(["useApiResource",()=>p],76238)},71613,a=>{"use strict";var b=a.i(49144),c=a.i(91218),d=a.i(42261),e=a.i(64406);let f=(0,d.cva)("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 gap-1 [&>svg]:size-3 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function g({className:a,variant:d,asChild:g=!1,...h}){let i=g?c.Slot:"span";return(0,b.jsx)(i,{"data-slot":"badge",className:(0,e.cn)(f({variant:d}),a),...h})}a.s(["Badge",()=>g])},26046,34729,a=>{"use strict";var b=a.i(49144),c=a.i(94685),d=a.i(17349),e=a.i(40016),f=a.i(96265),g=a.i(47046),h=a.i(36708),i=a.i(63239),j=a.i(96397),k=Object.defineProperty,l=(a,b)=>k(a,"name",{value:b,configurable:!0}),m="Checkbox",[n,o]=(0,e.createContextScope)(m),[p,q]=n(m);function r(a){let{__scopeCheckbox:d,checked:e,children:f,defaultChecked:h,disabled:i,form:j,name:k,onCheckedChange:l,required:n,value:o="on",internal_do_not_use_render:q}=a,[r,s]=(0,g.useControllableState)({prop:e,defaultProp:h??!1,onChange:l,caller:m}),[t,u]=c.useState(null),[v,y]=c.useState(null),z=c.useRef(!1),[A,B]=c.useReducer(a=>a+1,0),C=!t||!!j||!!t.closest("form"),D={checked:r,disabled:i,setChecked:s,control:t,setControl:u,name:k,form:j,value:o,hasConsumerStoppedPropagationRef:z,userInteractionCount:A,onUserInteraction:B,required:n,defaultChecked:!x(h)&&h,isFormControl:C,bubbleInput:v,setBubbleInput:y};return(0,b.jsx)(p,{scope:d,...D,children:w(q)?q(D):f})}l(r,"CheckboxProvider");var s=c.forwardRef(l(function({__scopeCheckbox:a,onKeyDown:e,onClick:g,...h},i){let{control:k,value:m,disabled:n,checked:o,required:p,setControl:r,setChecked:s,hasConsumerStoppedPropagationRef:t,onUserInteraction:u,isFormControl:v,bubbleInput:w}=q("CheckboxTrigger",a),z=(0,d.useComposedRefs)(i,r),A=c.useRef(o);return c.useEffect(()=>{let a=k?.form;if(a){let b=l(()=>s(A.current),"reset");return a.addEventListener("reset",b),()=>a.removeEventListener("reset",b)}},[k,s]),(0,b.jsx)(j.Primitive.button,{type:"button",role:"checkbox","aria-checked":x(o)?"mixed":o,"aria-required":p,"data-state":y(o),"data-disabled":n?"":void 0,disabled:n,value:m,...h,ref:z,onKeyDown:(0,f.composeEventHandlers)(e,a=>{"Enter"===a.key&&a.preventDefault()}),onClick:(0,f.composeEventHandlers)(g,a=>{u(),s(a=>!!x(a)||!a),w&&v&&(t.current=a.isPropagationStopped(),t.current||a.stopPropagation())})})},"CheckboxTrigger")),t=c.forwardRef(l(function(a,c){let{__scopeCheckbox:d,name:e,checked:f,defaultChecked:g,required:h,disabled:i,value:j,onCheckedChange:k,form:l,...m}=a;return(0,b.jsx)(r,{__scopeCheckbox:d,checked:f,defaultChecked:g,disabled:i,required:h,onCheckedChange:k,name:e,form:l,value:j,internal_do_not_use_render:({isFormControl:a})=>(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(s,{...m,ref:c,__scopeCheckbox:d}),a&&(0,b.jsx)(v,{__scopeCheckbox:d})]})})},"Checkbox")),u=c.forwardRef(l(function(a,c){let{__scopeCheckbox:d,forceMount:e,...f}=a,g=q("CheckboxIndicator",d);return(0,b.jsx)(i.Presence,{present:e||x(g.checked)||!0===g.checked,children:(0,b.jsx)(j.Primitive.span,{"data-state":y(g.checked),"data-disabled":g.disabled?"":void 0,...f,ref:c,style:{pointerEvents:"none",...a.style}})})},"CheckboxIndicator")),v=c.forwardRef(l(function({__scopeCheckbox:a,onClick:e,...g},i){let{control:k,hasConsumerStoppedPropagationRef:l,userInteractionCount:m,checked:n,defaultChecked:o,required:p,disabled:r,name:s,value:t,form:u,bubbleInput:v,setBubbleInput:w}=q("CheckboxBubbleInput",a),y=(0,d.useComposedRefs)(i,w),z=(0,h.useSize)(k),A=c.useRef(!1),B=c.useRef(n),C=c.useRef(m);c.useEffect(()=>{if(!v)return;let a=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set,b=m!==C.current;C.current=m;let c=B.current!==n;B.current=n;let d=!(b&&l.current);if(c&&a){A.current=!b;let c=new Event("click",{bubbles:d});v.indeterminate=x(n),a.call(v,!x(n)&&n),v.dispatchEvent(c),A.current=!1}},[v,n,l,m]);let D=c.useRef(!x(n)&&n);return(0,b.jsx)(j.Primitive.input,{type:"checkbox","aria-hidden":!0,defaultChecked:o??D.current,required:p,disabled:r,name:s,value:t,form:u,...g,tabIndex:-1,ref:y,onClick:(0,f.composeEventHandlers)(e,a=>{A.current&&a.stopPropagation()}),style:{...g.style,...z,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})},"CheckboxBubbleInput"));function w(a){return"function"==typeof a}function x(a){return"indeterminate"===a}function y(a){return x(a)?"indeterminate":a?"checked":"unchecked"}l(w,"isFunction"),l(x,"isIndeterminate"),l(y,"getState");var z=a.i(50481),A=a.i(64406);function B({className:a,...c}){return(0,b.jsx)(t,{"data-slot":"checkbox",className:(0,A.cn)("peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",a),...c,children:(0,b.jsx)(u,{"data-slot":"checkbox-indicator",className:"flex items-center justify-center text-current transition-none",children:(0,b.jsx)(z.CheckIcon,{className:"size-3.5"})})})}var C=a.i(2858),D=a.i(72086),E=a.i(6453);function F({fields:a,value:c,onChange:d}){return 0===a.length?null:(0,b.jsx)("div",{className:"flex flex-col gap-4",children:a.map(a=>{let e=`config-field-${a.key}`,f=c[a.key];return"boolean"===a.type?(0,b.jsxs)("div",{className:"flex items-center gap-2",children:[(0,b.jsx)(B,{id:e,checked:!0===f,onCheckedChange:b=>d(a.key,!0===b)}),(0,b.jsxs)(D.Label,{htmlFor:e,className:"font-normal",children:[a.label,a.required&&(0,b.jsx)("span",{className:"text-destructive",children:" *"})]})]},a.key):"select"===a.type?(0,b.jsxs)("div",{className:"grid gap-1.5",children:[(0,b.jsxs)(D.Label,{htmlFor:e,children:[a.label,a.required&&(0,b.jsx)("span",{className:"text-destructive",children:" *"})]}),(0,b.jsxs)(E.Select,{value:"string"==typeof f?f:void 0,onValueChange:b=>d(a.key,b),children:[(0,b.jsx)(E.SelectTrigger,{id:e,className:"w-full",children:(0,b.jsx)(E.SelectValue,{placeholder:"Select…"})}),(0,b.jsx)(E.SelectContent,{children:(a.options??[]).map(a=>(0,b.jsx)(E.SelectItem,{value:a.value,children:a.label},a.value))})]}),a.help&&(0,b.jsx)("p",{className:"text-muted-foreground text-sm",children:a.help})]},a.key):(0,b.jsxs)("div",{className:"grid gap-1.5",children:[(0,b.jsxs)(D.Label,{htmlFor:e,children:[a.label,a.required&&(0,b.jsx)("span",{className:"text-destructive",children:" *"})]}),(0,b.jsx)(C.Input,{id:e,type:"number"===a.type?"number":a.secret?"password":"text",value:"string"==typeof f||"number"==typeof f?f:"",onChange:b=>d(a.key,"number"===a.type?b.target.valueAsNumber:b.target.value)}),a.help&&(0,b.jsx)("p",{className:"text-muted-foreground text-sm",children:a.help})]},a.key)})})}a.s(["ConfigFieldsForm",()=>F],26046);var G=a.i(7220),H=a.i(95420),H=H,I=a.i(71613);function J({options:a,value:d,onChange:e,placeholder:f,className:g}){let[h,i]=(0,c.useState)(!1),[j,k]=(0,c.useState)(""),[l,m]=(0,c.useState)(0),n=(0,c.useRef)(null),o=(0,c.useRef)(null),p=a.filter(a=>a.toLowerCase().includes(j.toLowerCase()));function q(a){e(d.includes(a)?d.filter(b=>b!==a):[...d,a]),k("")}return(0,c.useEffect)(()=>{m(0)},[j,h]),(0,c.useEffect)(()=>{function a(a){n.current?.contains(a.target)||i(!1)}return document.addEventListener("pointerdown",a),()=>document.removeEventListener("pointerdown",a)},[]),(0,b.jsxs)("div",{ref:n,className:(0,A.cn)("relative",g),children:[(0,b.jsxs)("div",{className:"border-input focus-within:border-ring focus-within:ring-ring/50 flex min-h-9 w-full flex-wrap items-center gap-1.5 rounded-md border bg-transparent px-2 py-1.5 text-sm shadow-xs transition-[color,box-shadow] focus-within:ring-[3px]",onClick:()=>{i(!0),o.current?.focus()},children:[d.map(a=>(0,b.jsxs)(I.Badge,{variant:"secondary",className:"gap-1 font-mono",children:[a,(0,b.jsxs)("button",{type:"button",onMouseDown:b=>{b.preventDefault(),b.stopPropagation(),q(a)},className:"text-muted-foreground hover:text-foreground",children:[(0,b.jsx)(H.default,{className:"size-3"}),(0,b.jsxs)("span",{className:"sr-only",children:["Remove ",a]})]})]},a)),(0,b.jsx)("input",{ref:o,value:j,onChange:a=>k(a.target.value),onFocus:()=>i(!0),onKeyDown:function(a){if("Backspace"===a.key&&""===j&&d.length>0)return void e(d.slice(0,-1));if(!h&&("ArrowDown"===a.key||"Enter"===a.key))return void i(!0);if("ArrowDown"===a.key)a.preventDefault(),m(a=>Math.min(a+1,p.length-1));else if("ArrowUp"===a.key)a.preventDefault(),m(a=>Math.max(a-1,0));else if("Enter"===a.key){a.preventDefault();let b=p[l];b&&q(b)}else"Escape"===a.key&&i(!1)},placeholder:0===d.length?f:void 0,className:"text-foreground placeholder:text-muted-foreground min-w-24 flex-1 bg-transparent outline-none"})]}),h&&(0,b.jsxs)("div",{className:"bg-popover text-popover-foreground absolute z-50 mt-1 max-h-64 w-full overflow-auto rounded-md border p-1 shadow-md",children:[0===p.length&&(0,b.jsx)("p",{className:"text-muted-foreground px-2 py-1.5 text-sm",children:"No matches"}),p.map((a,c)=>{let e=d.includes(a);return(0,b.jsxs)("button",{type:"button",onMouseDown:b=>{b.preventDefault(),q(a)},onMouseEnter:()=>m(c),className:(0,A.cn)("flex w-full items-center justify-between gap-2 rounded-sm px-2 py-1.5 text-left font-mono text-sm",c===l&&"bg-accent text-accent-foreground"),children:[a,e&&(0,b.jsx)(G.Check,{className:"size-4 shrink-0"})]},a)})]})]})}function K({scopesAvailable:a,value:c,onChange:d}){return 0===a.length?null:(0,b.jsx)(J,{options:a,value:c,onChange:d,placeholder:"Add scopes…"})}a.s(["ScopesPicker",()=>K],34729)},53970,a=>{"use strict";var b=a.i(49144),c=a.i(94685),d=a.i(17804),e=a.i(1767);let f=(0,a.i(52894).default)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);var g=a.i(25710),h=a.i(86270),i=a.i(80904),j=a.i(17525),k=a.i(76238),l=a.i(71613),m=a.i(13326),n=a.i(39252),o=a.i(26046),p=a.i(83203),q=a.i(2858),r=a.i(6453),s=a.i(34729),t=a.i(23521);let u=i.z.object({name:i.z.string().min(1,"Give this configuration a name"),slug:i.z.string().regex(/^[a-z0-9-]*$/,"Lowercase letters, digits and dashes only"),environment:i.z.enum(["LIVE","SANDBOX"]),clientId:i.z.string().min(1,"Client ID is required"),clientSecret:i.z.string().min(1,"Client secret is required")});function v(){let a=(0,d.useRouter)(),{data:i,loading:v}=(0,k.useApiResource)(j.listIntegrations),[w,x]=(0,c.useState)(null),[y,z]=(0,c.useState)([]),[A,B]=(0,c.useState)({}),[C,D]=(0,c.useState)(!1),E=(0,g.useForm)({resolver:(0,e.zodResolver)(u),defaultValues:{name:"",slug:"",environment:"LIVE",clientId:"",clientSecret:""}});async function F(b){if(w){D(!0);try{let c=await (0,j.createConfiguration)({provider:w.key,name:b.name,slug:b.slug||void 0,clientId:b.clientId,clientSecret:b.clientSecret,environment:b.environment,scopes:y,settings:A});h.toast.success(`Created "${c.name}"`),a.push(`/configurations/${c.id}`)}catch(a){E.setError("root",{message:a instanceof j.ApiError?a.message:"Could not create configuration"})}finally{D(!1)}}}return w?(0,b.jsxs)("div",{className:"flex max-w-2xl flex-col gap-4",children:[(0,b.jsxs)("div",{children:[(0,b.jsxs)(m.Button,{variant:"ghost",size:"sm",className:"-ml-2 mb-2",onClick:()=>x(null),children:[(0,b.jsx)(f,{}),"Choose a different provider"]}),(0,b.jsxs)("h1",{className:"text-xl font-semibold tracking-tight",children:["New ",w.name," configuration"]})]}),(0,b.jsx)(n.Card,{children:(0,b.jsx)(n.CardContent,{className:"pt-6",children:(0,b.jsx)(p.Form,{...E,children:(0,b.jsxs)("form",{onSubmit:E.handleSubmit(F),className:"flex flex-col gap-4",children:[(0,b.jsx)(p.FormField,{control:E.control,name:"name",render:({field:a})=>(0,b.jsxs)(p.FormItem,{children:[(0,b.jsx)(p.FormLabel,{children:"Name"}),(0,b.jsx)(p.FormControl,{children:(0,b.jsx)(q.Input,{placeholder:`${w.name} production`,...a})}),(0,b.jsx)(p.FormMessage,{})]})}),(0,b.jsx)(p.FormField,{control:E.control,name:"slug",render:({field:a})=>(0,b.jsxs)(p.FormItem,{children:[(0,b.jsx)(p.FormLabel,{children:"Slug"}),(0,b.jsx)(p.FormControl,{children:(0,b.jsx)(q.Input,{className:"font-mono",placeholder:w.key,...a})}),(0,b.jsx)(p.FormDescription,{children:"What your own backend names this configuration when it starts a connect flow. Defaults to the name, slugified, and cannot be changed afterwards."}),(0,b.jsx)(p.FormMessage,{})]})}),(0,b.jsx)(p.FormField,{control:E.control,name:"environment",render:({field:a})=>(0,b.jsxs)(p.FormItem,{children:[(0,b.jsx)(p.FormLabel,{children:"Environment"}),(0,b.jsxs)(r.Select,{value:a.value,onValueChange:a.onChange,children:[(0,b.jsx)(p.FormControl,{children:(0,b.jsx)(r.SelectTrigger,{className:"w-full",children:(0,b.jsx)(r.SelectValue,{})})}),(0,b.jsxs)(r.SelectContent,{children:[(0,b.jsx)(r.SelectItem,{value:"LIVE",children:"Live"}),(0,b.jsx)(r.SelectItem,{value:"SANDBOX",children:"Sandbox"})]})]}),(0,b.jsx)(p.FormMessage,{})]})}),(0,b.jsx)(p.FormField,{control:E.control,name:"clientId",render:({field:a})=>(0,b.jsxs)(p.FormItem,{children:[(0,b.jsx)(p.FormLabel,{children:"Client ID"}),(0,b.jsx)(p.FormControl,{children:(0,b.jsx)(q.Input,{className:"font-mono",...a})}),(0,b.jsx)(p.FormMessage,{})]})}),(0,b.jsx)(p.FormField,{control:E.control,name:"clientSecret",render:({field:a})=>(0,b.jsxs)(p.FormItem,{children:[(0,b.jsx)(p.FormLabel,{children:"Client secret"}),(0,b.jsx)(p.FormControl,{children:(0,b.jsx)(q.Input,{type:"password",className:"font-mono",...a})}),(0,b.jsx)(p.FormMessage,{})]})}),w.scopesAvailable.length>0&&(0,b.jsxs)("div",{className:"grid gap-1.5",children:[(0,b.jsx)(p.FormLabel,{children:"Scopes"}),(0,b.jsx)(s.ScopesPicker,{scopesAvailable:w.scopesAvailable,value:y,onChange:z})]}),(0,b.jsx)(o.ConfigFieldsForm,{fields:w.configFields,value:A,onChange:(a,b)=>B(c=>({...c,[a]:b}))}),E.formState.errors.root&&(0,b.jsx)("p",{className:"text-destructive text-sm",children:E.formState.errors.root.message}),(0,b.jsx)("div",{className:"flex justify-end gap-2 pt-2",children:(0,b.jsx)(m.Button,{type:"submit",disabled:C,children:C?"Creating…":"Create configuration"})})]})})})})]}):(0,b.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,b.jsxs)("div",{children:[(0,b.jsx)("h1",{className:"text-xl font-semibold tracking-tight",children:"New configuration"}),(0,b.jsx)("p",{className:"text-muted-foreground text-sm",children:"Pick the provider your users will connect to."})]}),v&&(0,b.jsxs)("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3",children:[(0,b.jsx)(t.Skeleton,{className:"h-24 w-full"}),(0,b.jsx)(t.Skeleton,{className:"h-24 w-full"}),(0,b.jsx)(t.Skeleton,{className:"h-24 w-full"})]}),!v&&(0,b.jsx)("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3",children:(i??[]).map(a=>(0,b.jsxs)(n.Card,{role:"button",tabIndex:0,onClick:()=>x(a),onKeyDown:b=>"Enter"===b.key&&x(a),className:"hover:border-primary/50 cursor-pointer transition-colors",children:[(0,b.jsx)(n.CardHeader,{children:(0,b.jsxs)(n.CardTitle,{className:"flex items-center justify-between text-base",children:[a.name,(0,b.jsx)(l.Badge,{variant:"outline",children:a.authType})]})}),(0,b.jsxs)(n.CardContent,{className:"text-muted-foreground text-sm",children:[a.scopesAvailable.length," scope",1===a.scopesAvailable.length?"":"s"," ","available"]})]},a.key))})]})}a.s(["default",()=>v],53970)}];
|
|
2
2
|
|
|
3
3
|
//# sourceMappingURL=packages_admin_src_1fda1e02._.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module.exports=[62058,a=>{"use strict";var b=a.i(49144),c=a.i(94685),d=a.i(17804),e=a.i(1767),f=a.i(25710),g=a.i(86270),h=a.i(80904),i=a.i(17525),j=a.i(76238),k=a.i(21867),l=a.i(71613),m=a.i(13326),n=a.i(39252),o=a.i(91798),p=a.i(26046),q=a.i(83203),r=a.i(2858),s=a.i(34729),t=a.i(84149),u=a.i(23521),v=a.i(96265),w=a.i(17349),x=a.i(40016),y=a.i(47046),z=a.i(36708),A=a.i(96397),B=Object.defineProperty,C=(a,b)=>B(a,"name",{value:b,configurable:!0}),D="Switch",[E,F]=(0,x.createContextScope)(D),[G,H]=E(D);function I(a){let{__scopeSwitch:d,checked:e,children:f,defaultChecked:g,disabled:h,form:i,name:j,onCheckedChange:k,required:l,value:m="on",internal_do_not_use_render:n}=a,[o,p]=(0,y.useControllableState)({prop:e,defaultProp:g??!1,onChange:k,caller:D}),[q,r]=c.useState(null),[s,t]=c.useState(null),u=c.useRef(!1),[v,w]=c.useReducer(a=>a+1,0),x=!q||!!i||!!q.closest("form"),z={checked:o,setChecked:p,disabled:h,control:q,setControl:r,name:j,form:i,value:m,hasConsumerStoppedPropagationRef:u,userInteractionCount:v,onUserInteraction:w,required:l,defaultChecked:g,isFormControl:x,bubbleInput:s,setBubbleInput:t};return(0,b.jsx)(G,{scope:d,...z,children:N(n)?n(z):f})}C(I,"SwitchProvider");var J=c.forwardRef(C(function({__scopeSwitch:a,onClick:d,...e},f){let{control:g,form:h,value:i,disabled:j,checked:k,required:l,setControl:m,setChecked:n,hasConsumerStoppedPropagationRef:o,onUserInteraction:p,isFormControl:q,bubbleInput:r}=H("SwitchTrigger",a),s=(0,w.useComposedRefs)(f,m),t=c.useRef(k);return c.useEffect(()=>{let a=h?g?.ownerDocument.getElementById(h):g?.form;if(a instanceof HTMLFormElement){let b=C(()=>n(t.current),"reset");return a.addEventListener("reset",b),()=>a.removeEventListener("reset",b)}},[g,h,n]),(0,b.jsx)(A.Primitive.button,{type:"button",role:"switch","aria-checked":k,"aria-required":l,"data-state":O(k),"data-disabled":j?"":void 0,disabled:j,value:i,...e,ref:s,onClick:(0,v.composeEventHandlers)(d,a=>{p(),n(a=>!a),r&&q&&(o.current=a.isPropagationStopped(),o.current||a.stopPropagation())})})},"SwitchTrigger")),K=c.forwardRef(C(function(a,c){let{__scopeSwitch:d,name:e,checked:f,defaultChecked:g,required:h,disabled:i,value:j,onCheckedChange:k,form:l,...m}=a;return(0,b.jsx)(I,{__scopeSwitch:d,checked:f,defaultChecked:g,disabled:i,required:h,onCheckedChange:k,name:e,form:l,value:j,internal_do_not_use_render:({isFormControl:a})=>(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(J,{...m,ref:c,__scopeSwitch:d}),a&&(0,b.jsx)(M,{__scopeSwitch:d})]})})},"Switch")),L=c.forwardRef(C(function(a,c){let{__scopeSwitch:d,...e}=a,f=H("SwitchThumb",d);return(0,b.jsx)(A.Primitive.span,{"data-state":O(f.checked),"data-disabled":f.disabled?"":void 0,...e,ref:c})},"SwitchThumb")),M=c.forwardRef(C(function({__scopeSwitch:a,onClick:d,...e},f){let{control:g,hasConsumerStoppedPropagationRef:h,userInteractionCount:i,checked:j,defaultChecked:k,required:l,disabled:m,name:n,value:o,form:p,bubbleInput:q,setBubbleInput:r}=H("SwitchBubbleInput",a),s=(0,w.useComposedRefs)(f,r),t=(0,z.useSize)(g),u=c.useRef(!1),x=c.useRef(j),y=c.useRef(i);c.useEffect(()=>{if(!q)return;let a=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set,b=i!==y.current;y.current=i;let c=x.current!==j;x.current=j;let d=!(b&&h.current);if(c&&a){u.current=!b;let c=new Event("click",{bubbles:d});a.call(q,j),q.dispatchEvent(c),u.current=!1}},[q,j,h,i]);let B=c.useRef(j);return(0,b.jsx)(A.Primitive.input,{type:"checkbox","aria-hidden":!0,defaultChecked:k??B.current,required:l,disabled:m,name:n,value:o,form:p,...e,tabIndex:-1,ref:s,onClick:(0,v.composeEventHandlers)(d,a=>{u.current&&a.stopPropagation()}),style:{...e.style,...t,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})},"SwitchBubbleInput"));function N(a){return"function"==typeof a}function O(a){return a?"checked":"unchecked"}C(N,"isFunction"),C(O,"getState");var P=a.i(64406);function Q({className:a,...c}){return(0,b.jsx)(K,{"data-slot":"switch",className:(0,P.cn)("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",a),...c,children:(0,b.jsx)(L,{"data-slot":"switch-thumb",className:(0,P.cn)("bg-background pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0")})})}let R=h.z.object({name:h.z.string().min(1,"Give this configuration a name"),clientId:h.z.string().min(1,"Client ID is required"),clientSecret:h.z.string(),isEnabled:h.z.boolean()});function S(){let{id:a}=(0,d.useParams)(),h=(0,d.useRouter)(),{data:v,loading:w,error:x}=(0,j.useApiResource)(async()=>{let b=await (0,i.getConfiguration)(a),c=await (0,i.getIntegration)(b.provider.key);return{configuration:b,integration:c}},[a]),[y,z]=(0,c.useState)([]),[A,B]=(0,c.useState)({}),[C,D]=(0,c.useState)(!1),[E,F]=(0,c.useState)(!1),G=(0,f.useForm)({resolver:(0,e.zodResolver)(R),defaultValues:{name:"",clientId:"",clientSecret:"",isEnabled:!0}});async function H(b){D(!0);try{await (0,i.updateConfiguration)(a,{name:b.name,clientId:b.clientId,clientSecret:b.clientSecret||void 0,isEnabled:b.isEnabled,scopes:y,settings:A}),g.toast.success("Configuration saved"),h.refresh()}catch(a){G.setError("root",{message:a instanceof i.ApiError?a.message:"Could not save configuration"})}finally{D(!1)}}async function I(){F(!0);try{let b=await (0,i.createTestConnectSession)(a);window.open(b.connectUrl,"_blank","noopener,noreferrer")}catch(a){g.toast.error(a instanceof i.ApiError?a.message:"Could not start a test connection")}finally{F(!1)}}async function J(){try{await (0,i.deleteConfiguration)(a),g.toast.success("Configuration deleted"),h.push("/configurations")}catch(a){g.toast.error(a instanceof i.ApiError?a.message:"Could not delete configuration")}}if((0,c.useEffect)(()=>{v&&(G.reset({name:v.configuration.name,clientId:v.configuration.clientId??"",clientSecret:"",isEnabled:v.configuration.isEnabled}),z(v.configuration.scopes),B(v.configuration.metadata??{}))},[v]),w)return(0,b.jsxs)("div",{className:"flex max-w-2xl flex-col gap-4",children:[(0,b.jsx)(u.Skeleton,{className:"h-8 w-64"}),(0,b.jsx)(u.Skeleton,{className:"h-64 w-full"})]});if(x||!v)return(0,b.jsx)("p",{className:"text-destructive text-sm",children:x??"Configuration not found"});let{configuration:K,integration:L}=v;return(0,b.jsxs)("div",{className:"flex max-w-2xl flex-col gap-4",children:[(0,b.jsxs)("div",{className:"flex items-start justify-between",children:[(0,b.jsxs)("div",{children:[(0,b.jsx)("h1",{className:"text-xl font-semibold tracking-tight",children:K.name}),(0,b.jsxs)("p",{className:"text-muted-foreground text-sm",children:[L.name," ·"," ",(0,b.jsx)(l.Badge,{variant:"outline",children:K.environment})]})]}),(0,b.jsxs)("div",{className:"flex gap-2",children:[(0,b.jsx)(m.Button,{variant:"outline",onClick:I,disabled:E,children:E?"Starting…":"Test connect"}),(0,b.jsxs)(k.AlertDialog,{children:[(0,b.jsx)(k.AlertDialogTrigger,{asChild:!0,children:(0,b.jsx)(m.Button,{variant:"outline",className:"text-destructive",children:"Delete"})}),(0,b.jsxs)(k.AlertDialogContent,{children:[(0,b.jsxs)(k.AlertDialogHeader,{children:[(0,b.jsxs)(k.AlertDialogTitle,{children:["Delete “",K.name,"”?"]}),(0,b.jsx)(k.AlertDialogDescription,{children:"Existing connections made through this configuration are unaffected, but no new ones can be created. This can't be undone."})]}),(0,b.jsxs)(k.AlertDialogFooter,{children:[(0,b.jsx)(k.AlertDialogCancel,{children:"Cancel"}),(0,b.jsx)(k.AlertDialogAction,{onClick:J,children:"Delete"})]})]})]})]})]}),(0,b.jsxs)(n.Card,{children:[(0,b.jsx)(n.CardHeader,{children:(0,b.jsx)(n.CardTitle,{className:"text-base",children:"Redirect URI"})}),(0,b.jsxs)(n.CardContent,{children:[(0,b.jsxs)("p",{className:"text-muted-foreground mb-2 text-sm",children:["Give this to ",L.name," as the callback URL for this OAuth app."]}),(0,b.jsx)(o.CodeChip,{value:K.redirectUri??""})]})]}),(0,b.jsx)(n.Card,{children:(0,b.jsx)(n.CardContent,{className:"pt-6",children:(0,b.jsx)(q.Form,{...G,children:(0,b.jsxs)("form",{onSubmit:G.handleSubmit(H),className:"flex flex-col gap-4",children:[(0,b.jsx)(q.FormField,{control:G.control,name:"name",render:({field:a})=>(0,b.jsxs)(q.FormItem,{children:[(0,b.jsx)(q.FormLabel,{children:"Name"}),(0,b.jsx)(q.FormControl,{children:(0,b.jsx)(r.Input,{...a})}),(0,b.jsx)(q.FormMessage,{})]})}),(0,b.jsx)(q.FormField,{control:G.control,name:"isEnabled",render:({field:a})=>(0,b.jsxs)(q.FormItem,{className:"flex flex-row items-center justify-between rounded-lg border p-3",children:[(0,b.jsxs)("div",{children:[(0,b.jsx)(q.FormLabel,{children:"Enabled"}),(0,b.jsx)("p",{className:"text-muted-foreground text-sm",children:"Disabled configurations can't start new connect sessions."})]}),(0,b.jsx)(q.FormControl,{children:(0,b.jsx)(Q,{checked:a.value,onCheckedChange:a.onChange})})]})}),(0,b.jsx)(q.FormField,{control:G.control,name:"clientId",render:({field:a})=>(0,b.jsxs)(q.FormItem,{children:[(0,b.jsx)(q.FormLabel,{children:"Client ID"}),(0,b.jsx)(q.FormControl,{children:(0,b.jsx)(r.Input,{className:"font-mono",...a})}),(0,b.jsx)(q.FormMessage,{})]})}),(0,b.jsx)(q.FormField,{control:G.control,name:"clientSecret",render:({field:a})=>(0,b.jsxs)(q.FormItem,{children:[(0,b.jsx)(q.FormLabel,{children:"Client secret"}),(0,b.jsx)(q.FormControl,{children:(0,b.jsx)(r.Input,{type:"password",className:"font-mono",placeholder:"Leave blank to keep the current secret",...a})}),(0,b.jsx)(q.FormMessage,{})]})}),L.scopesAvailable.length>0&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(t.Separator,{}),(0,b.jsxs)("div",{className:"grid gap-1.5",children:[(0,b.jsx)(q.FormLabel,{children:"Scopes"}),(0,b.jsx)(s.ScopesPicker,{scopesAvailable:L.scopesAvailable,value:y,onChange:z})]})]}),L.configFields.length>0&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(t.Separator,{}),(0,b.jsx)(p.ConfigFieldsForm,{fields:L.configFields,value:A,onChange:(a,b)=>B(c=>({...c,[a]:b}))})]}),G.formState.errors.root&&(0,b.jsx)("p",{className:"text-destructive text-sm",children:G.formState.errors.root.message}),(0,b.jsx)("div",{className:"flex justify-end pt-2",children:(0,b.jsx)(m.Button,{type:"submit",disabled:C,children:C?"Saving…":"Save changes"})})]})})})})]})}a.s(["default",()=>S],62058)}];
|
|
1
|
+
module.exports=[62058,a=>{"use strict";var b=a.i(49144),c=a.i(94685),d=a.i(17804),e=a.i(1767),f=a.i(25710),g=a.i(86270),h=a.i(80904),i=a.i(17525),j=a.i(76238),k=a.i(21867),l=a.i(71613),m=a.i(13326),n=a.i(39252),o=a.i(91798),p=a.i(26046),q=a.i(83203),r=a.i(2858),s=a.i(34729),t=a.i(84149),u=a.i(23521),v=a.i(96265),w=a.i(17349),x=a.i(40016),y=a.i(47046),z=a.i(36708),A=a.i(96397),B=Object.defineProperty,C=(a,b)=>B(a,"name",{value:b,configurable:!0}),D="Switch",[E,F]=(0,x.createContextScope)(D),[G,H]=E(D);function I(a){let{__scopeSwitch:d,checked:e,children:f,defaultChecked:g,disabled:h,form:i,name:j,onCheckedChange:k,required:l,value:m="on",internal_do_not_use_render:n}=a,[o,p]=(0,y.useControllableState)({prop:e,defaultProp:g??!1,onChange:k,caller:D}),[q,r]=c.useState(null),[s,t]=c.useState(null),u=c.useRef(!1),[v,w]=c.useReducer(a=>a+1,0),x=!q||!!i||!!q.closest("form"),z={checked:o,setChecked:p,disabled:h,control:q,setControl:r,name:j,form:i,value:m,hasConsumerStoppedPropagationRef:u,userInteractionCount:v,onUserInteraction:w,required:l,defaultChecked:g,isFormControl:x,bubbleInput:s,setBubbleInput:t};return(0,b.jsx)(G,{scope:d,...z,children:N(n)?n(z):f})}C(I,"SwitchProvider");var J=c.forwardRef(C(function({__scopeSwitch:a,onClick:d,...e},f){let{control:g,form:h,value:i,disabled:j,checked:k,required:l,setControl:m,setChecked:n,hasConsumerStoppedPropagationRef:o,onUserInteraction:p,isFormControl:q,bubbleInput:r}=H("SwitchTrigger",a),s=(0,w.useComposedRefs)(f,m),t=c.useRef(k);return c.useEffect(()=>{let a=h?g?.ownerDocument.getElementById(h):g?.form;if(a instanceof HTMLFormElement){let b=C(()=>n(t.current),"reset");return a.addEventListener("reset",b),()=>a.removeEventListener("reset",b)}},[g,h,n]),(0,b.jsx)(A.Primitive.button,{type:"button",role:"switch","aria-checked":k,"aria-required":l,"data-state":O(k),"data-disabled":j?"":void 0,disabled:j,value:i,...e,ref:s,onClick:(0,v.composeEventHandlers)(d,a=>{p(),n(a=>!a),r&&q&&(o.current=a.isPropagationStopped(),o.current||a.stopPropagation())})})},"SwitchTrigger")),K=c.forwardRef(C(function(a,c){let{__scopeSwitch:d,name:e,checked:f,defaultChecked:g,required:h,disabled:i,value:j,onCheckedChange:k,form:l,...m}=a;return(0,b.jsx)(I,{__scopeSwitch:d,checked:f,defaultChecked:g,disabled:i,required:h,onCheckedChange:k,name:e,form:l,value:j,internal_do_not_use_render:({isFormControl:a})=>(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(J,{...m,ref:c,__scopeSwitch:d}),a&&(0,b.jsx)(M,{__scopeSwitch:d})]})})},"Switch")),L=c.forwardRef(C(function(a,c){let{__scopeSwitch:d,...e}=a,f=H("SwitchThumb",d);return(0,b.jsx)(A.Primitive.span,{"data-state":O(f.checked),"data-disabled":f.disabled?"":void 0,...e,ref:c})},"SwitchThumb")),M=c.forwardRef(C(function({__scopeSwitch:a,onClick:d,...e},f){let{control:g,hasConsumerStoppedPropagationRef:h,userInteractionCount:i,checked:j,defaultChecked:k,required:l,disabled:m,name:n,value:o,form:p,bubbleInput:q,setBubbleInput:r}=H("SwitchBubbleInput",a),s=(0,w.useComposedRefs)(f,r),t=(0,z.useSize)(g),u=c.useRef(!1),x=c.useRef(j),y=c.useRef(i);c.useEffect(()=>{if(!q)return;let a=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set,b=i!==y.current;y.current=i;let c=x.current!==j;x.current=j;let d=!(b&&h.current);if(c&&a){u.current=!b;let c=new Event("click",{bubbles:d});a.call(q,j),q.dispatchEvent(c),u.current=!1}},[q,j,h,i]);let B=c.useRef(j);return(0,b.jsx)(A.Primitive.input,{type:"checkbox","aria-hidden":!0,defaultChecked:k??B.current,required:l,disabled:m,name:n,value:o,form:p,...e,tabIndex:-1,ref:s,onClick:(0,v.composeEventHandlers)(d,a=>{u.current&&a.stopPropagation()}),style:{...e.style,...t,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})},"SwitchBubbleInput"));function N(a){return"function"==typeof a}function O(a){return a?"checked":"unchecked"}C(N,"isFunction"),C(O,"getState");var P=a.i(64406);function Q({className:a,...c}){return(0,b.jsx)(K,{"data-slot":"switch",className:(0,P.cn)("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",a),...c,children:(0,b.jsx)(L,{"data-slot":"switch-thumb",className:(0,P.cn)("bg-background pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0")})})}let R=h.z.object({name:h.z.string().min(1,"Give this configuration a name"),clientId:h.z.string().min(1,"Client ID is required"),clientSecret:h.z.string(),isEnabled:h.z.boolean()});function S(){let{id:a}=(0,d.useParams)(),h=(0,d.useRouter)(),{data:v,loading:w,error:x}=(0,j.useApiResource)(async()=>{let b=await (0,i.getConfiguration)(a),c=await (0,i.getIntegration)(b.provider.key);return{configuration:b,integration:c}},[a]),[y,z]=(0,c.useState)([]),[A,B]=(0,c.useState)({}),[C,D]=(0,c.useState)(!1),[E,F]=(0,c.useState)(!1),G=(0,f.useForm)({resolver:(0,e.zodResolver)(R),defaultValues:{name:"",clientId:"",clientSecret:"",isEnabled:!0}});async function H(b){D(!0);try{await (0,i.updateConfiguration)(a,{name:b.name,clientId:b.clientId,clientSecret:b.clientSecret||void 0,isEnabled:b.isEnabled,scopes:y,settings:A}),g.toast.success("Configuration saved"),h.refresh()}catch(a){G.setError("root",{message:a instanceof i.ApiError?a.message:"Could not save configuration"})}finally{D(!1)}}async function I(){F(!0);try{let b=await (0,i.createTestConnectSession)(a);window.open(b.connectUrl,"_blank","noopener,noreferrer")}catch(a){g.toast.error(a instanceof i.ApiError?a.message:"Could not start a test connection")}finally{F(!1)}}async function J(){try{await (0,i.deleteConfiguration)(a),g.toast.success("Configuration deleted"),h.push("/configurations")}catch(a){g.toast.error(a instanceof i.ApiError?a.message:"Could not delete configuration")}}if((0,c.useEffect)(()=>{v&&(G.reset({name:v.configuration.name,clientId:v.configuration.clientId??"",clientSecret:"",isEnabled:v.configuration.isEnabled}),z(v.configuration.scopes),B(v.configuration.metadata??{}))},[v]),w)return(0,b.jsxs)("div",{className:"flex max-w-2xl flex-col gap-4",children:[(0,b.jsx)(u.Skeleton,{className:"h-8 w-64"}),(0,b.jsx)(u.Skeleton,{className:"h-64 w-full"})]});if(x||!v)return(0,b.jsx)("p",{className:"text-destructive text-sm",children:x??"Configuration not found"});let{configuration:K,integration:L}=v;return(0,b.jsxs)("div",{className:"flex max-w-2xl flex-col gap-4",children:[(0,b.jsxs)("div",{className:"flex items-start justify-between",children:[(0,b.jsxs)("div",{children:[(0,b.jsx)("h1",{className:"text-xl font-semibold tracking-tight",children:K.name}),(0,b.jsxs)("p",{className:"text-muted-foreground text-sm",children:[L.name," ·"," ",(0,b.jsx)(l.Badge,{variant:"outline",children:K.environment})]})]}),(0,b.jsxs)("div",{className:"flex gap-2",children:[(0,b.jsx)(m.Button,{variant:"outline",onClick:I,disabled:E,children:E?"Starting…":"Test connect"}),(0,b.jsxs)(k.AlertDialog,{children:[(0,b.jsx)(k.AlertDialogTrigger,{asChild:!0,children:(0,b.jsx)(m.Button,{variant:"outline",className:"text-destructive",children:"Delete"})}),(0,b.jsxs)(k.AlertDialogContent,{children:[(0,b.jsxs)(k.AlertDialogHeader,{children:[(0,b.jsxs)(k.AlertDialogTitle,{children:["Delete “",K.name,"”?"]}),(0,b.jsx)(k.AlertDialogDescription,{children:"Existing connections made through this configuration are unaffected, but no new ones can be created. This can't be undone."})]}),(0,b.jsxs)(k.AlertDialogFooter,{children:[(0,b.jsx)(k.AlertDialogCancel,{children:"Cancel"}),(0,b.jsx)(k.AlertDialogAction,{onClick:J,children:"Delete"})]})]})]})]})]}),(0,b.jsxs)(n.Card,{children:[(0,b.jsx)(n.CardHeader,{children:(0,b.jsx)(n.CardTitle,{className:"text-base",children:"Redirect URI"})}),(0,b.jsxs)(n.CardContent,{children:[(0,b.jsxs)("p",{className:"text-muted-foreground mb-2 text-sm",children:["Give this to ",L.name," as the callback URL for this OAuth app."]}),(0,b.jsx)(o.CodeChip,{value:K.redirectUri??""})]})]}),(0,b.jsxs)(n.Card,{children:[(0,b.jsx)(n.CardHeader,{children:(0,b.jsx)(n.CardTitle,{className:"text-base",children:"Slug"})}),(0,b.jsxs)(n.CardContent,{children:[(0,b.jsxs)("p",{className:"text-muted-foreground mb-2 text-sm",children:["What your backend sends as ",(0,b.jsx)("code",{children:"configurationSlug"})," when it calls ",(0,b.jsx)("code",{children:"POST /api/connect/sessions"}),". Fixed at creation."]}),(0,b.jsx)(o.CodeChip,{value:K.slug})]})]}),(0,b.jsx)(n.Card,{children:(0,b.jsx)(n.CardContent,{className:"pt-6",children:(0,b.jsx)(q.Form,{...G,children:(0,b.jsxs)("form",{onSubmit:G.handleSubmit(H),className:"flex flex-col gap-4",children:[(0,b.jsx)(q.FormField,{control:G.control,name:"name",render:({field:a})=>(0,b.jsxs)(q.FormItem,{children:[(0,b.jsx)(q.FormLabel,{children:"Name"}),(0,b.jsx)(q.FormControl,{children:(0,b.jsx)(r.Input,{...a})}),(0,b.jsx)(q.FormMessage,{})]})}),(0,b.jsx)(q.FormField,{control:G.control,name:"isEnabled",render:({field:a})=>(0,b.jsxs)(q.FormItem,{className:"flex flex-row items-center justify-between rounded-lg border p-3",children:[(0,b.jsxs)("div",{children:[(0,b.jsx)(q.FormLabel,{children:"Enabled"}),(0,b.jsx)("p",{className:"text-muted-foreground text-sm",children:"Disabled configurations can't start new connect sessions."})]}),(0,b.jsx)(q.FormControl,{children:(0,b.jsx)(Q,{checked:a.value,onCheckedChange:a.onChange})})]})}),(0,b.jsx)(q.FormField,{control:G.control,name:"clientId",render:({field:a})=>(0,b.jsxs)(q.FormItem,{children:[(0,b.jsx)(q.FormLabel,{children:"Client ID"}),(0,b.jsx)(q.FormControl,{children:(0,b.jsx)(r.Input,{className:"font-mono",...a})}),(0,b.jsx)(q.FormMessage,{})]})}),(0,b.jsx)(q.FormField,{control:G.control,name:"clientSecret",render:({field:a})=>(0,b.jsxs)(q.FormItem,{children:[(0,b.jsx)(q.FormLabel,{children:"Client secret"}),(0,b.jsx)(q.FormControl,{children:(0,b.jsx)(r.Input,{type:"password",className:"font-mono",placeholder:"Leave blank to keep the current secret",...a})}),(0,b.jsx)(q.FormMessage,{})]})}),L.scopesAvailable.length>0&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(t.Separator,{}),(0,b.jsxs)("div",{className:"grid gap-1.5",children:[(0,b.jsx)(q.FormLabel,{children:"Scopes"}),(0,b.jsx)(s.ScopesPicker,{scopesAvailable:L.scopesAvailable,value:y,onChange:z})]})]}),L.configFields.length>0&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(t.Separator,{}),(0,b.jsx)(p.ConfigFieldsForm,{fields:L.configFields,value:A,onChange:(a,b)=>B(c=>({...c,[a]:b}))})]}),G.formState.errors.root&&(0,b.jsx)("p",{className:"text-destructive text-sm",children:G.formState.errors.root.message}),(0,b.jsx)("div",{className:"flex justify-end pt-2",children:(0,b.jsx)(m.Button,{type:"submit",disabled:C,children:C?"Saving…":"Save changes"})})]})})})})]})}a.s(["default",()=>S],62058)}];
|
|
2
2
|
|
|
3
3
|
//# sourceMappingURL=packages_admin_src_app_%28app%29_configurations_%5Bid%5D_page_tsx_521c6b92._.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
<!DOCTYPE html><!--
|
|
2
|
-
@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding-right:23px;font-size:24px;font-weight:500;vertical-align:top">500</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:28px">Internal Server Error.</h2></div></div></div><!--$--><!--/$--><script src="/_next/static/chunks/44677b666868afc1.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[37713,[\"/_next/static/chunks/232e64796bbb6cd6.js\",\"/_next/static/chunks/d4169e4475af119d.js\"],\"default\"]\n3:I[50257,[\"/_next/static/chunks/232e64796bbb6cd6.js\",\"/_next/static/chunks/d4169e4475af119d.js\"],\"default\"]\n4:I[31113,[\"/_next/static/chunks/232e64796bbb6cd6.js\",\"/_next/static/chunks/d4169e4475af119d.js\"],\"OutletBoundary\"]\n5:\"$Sreact.suspense\"\n7:I[31113,[\"/_next/static/chunks/232e64796bbb6cd6.js\",\"/_next/static/chunks/d4169e4475af119d.js\"],\"ViewportBoundary\"]\n9:I[31113,[\"/_next/static/chunks/232e64796bbb6cd6.js\",\"/_next/static/chunks/d4169e4475af119d.js\"],\"MetadataBoundary\"]\nb:I[68211,[\"/_next/static/chunks/232e64796bbb6cd6.js\",\"/_next/static/chunks/d4169e4475af119d.js\"],\"default\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"
|
|
1
|
+
<!DOCTYPE html><!--SrrCSPhrWXIO1UrkaUyOW--><html id="__next_error__"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/44677b666868afc1.js"/><script src="/_next/static/chunks/ffced81dd79e0056.js" async=""></script><script src="/_next/static/chunks/655b834643f4873b.js" async=""></script><script src="/_next/static/chunks/530c88358cdac090.js" async=""></script><script src="/_next/static/chunks/981e4cc561261fdd.js" async=""></script><script src="/_next/static/chunks/turbopack-7411ad279c2817c8.js" async=""></script><script src="/_next/static/chunks/232e64796bbb6cd6.js" async=""></script><script src="/_next/static/chunks/d4169e4475af119d.js" async=""></script><meta name="next-size-adjust" content=""/><title>500: Internal Server Error.</title><script src="/_next/static/chunks/a6dad97d9634a72d.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div style="line-height:48px"><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}
|
|
2
|
+
@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding-right:23px;font-size:24px;font-weight:500;vertical-align:top">500</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:28px">Internal Server Error.</h2></div></div></div><!--$--><!--/$--><script src="/_next/static/chunks/44677b666868afc1.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[37713,[\"/_next/static/chunks/232e64796bbb6cd6.js\",\"/_next/static/chunks/d4169e4475af119d.js\"],\"default\"]\n3:I[50257,[\"/_next/static/chunks/232e64796bbb6cd6.js\",\"/_next/static/chunks/d4169e4475af119d.js\"],\"default\"]\n4:I[31113,[\"/_next/static/chunks/232e64796bbb6cd6.js\",\"/_next/static/chunks/d4169e4475af119d.js\"],\"OutletBoundary\"]\n5:\"$Sreact.suspense\"\n7:I[31113,[\"/_next/static/chunks/232e64796bbb6cd6.js\",\"/_next/static/chunks/d4169e4475af119d.js\"],\"ViewportBoundary\"]\n9:I[31113,[\"/_next/static/chunks/232e64796bbb6cd6.js\",\"/_next/static/chunks/d4169e4475af119d.js\"],\"MetadataBoundary\"]\nb:I[68211,[\"/_next/static/chunks/232e64796bbb6cd6.js\",\"/_next/static/chunks/d4169e4475af119d.js\"],\"default\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"SrrCSPhrWXIO1UrkaUyOW\",\"c\":[\"\",\"_global-error\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"__PAGE__\",{}]}],[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"html\",null,{\"id\":\"__next_error__\",\"children\":[[\"$\",\"head\",null,{\"children\":[\"$\",\"title\",null,{\"children\":\"500: Internal Server Error.\"}]}],[\"$\",\"body\",null,{\"children\":[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"style\":{\"lineHeight\":\"48px\"},\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}\\n@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"paddingRight\":23,\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\"},\"children\":\"500\"}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"28px\"},\"children\":\"Internal Server Error.\"}]}]]}]}]}]]}],[[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/232e64796bbb6cd6.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/_next/static/chunks/d4169e4475af119d.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"$L4\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@6\"}]}]]}],{},null,false,false]},null,false,false],[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$L7\",null,{\"children\":\"$L8\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$L9\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.Metadata\",\"children\":\"$La\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$b\",\"$undefined\"],\"S\":true}\n"])</script><script>self.__next_f.push([1,"8:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"6:null\na:[]\n"])</script></body></html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
self.__RSC_SERVER_MANIFEST="{\n \"node\": {},\n \"edge\": {},\n \"encryptionKey\": \"
|
|
1
|
+
self.__RSC_SERVER_MANIFEST="{\n \"node\": {},\n \"edge\": {},\n \"encryptionKey\": \"pWJ2W+Ul7SFrV4nep5m1kFyf0r5ajy0mpiIVSpgSlA4=\"\n}"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,36144,e=>{"use strict";var t=e.i(78234),n=e.i(33178);function r({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card",className:(0,n.cn)("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),...r})}function a({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card-header",className:(0,n.cn)("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...r})}function s({className:e,...r}){return(0,t.jsx)("h3",{"data-slot":"card-title",className:(0,n.cn)("leading-none font-semibold",e),...r})}function o({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card-description",className:(0,n.cn)("text-muted-foreground text-sm",e),...r})}function i({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card-content",className:(0,n.cn)("px-6",e),...r})}e.s(["Card",()=>r,"CardContent",()=>i,"CardDescription",()=>o,"CardHeader",()=>a,"CardTitle",()=>s])},85858,e=>{"use strict";var t=e.i(78234),n=e.i(99975),r=e.i(81137),a=Object.defineProperty,s=n.forwardRef(a(function(e,n){return(0,t.jsx)(r.Primitive.label,{...e,ref:n,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}})},"name",{value:"Label",configurable:!0})),o=e.i(33178);function i({className:e,...n}){return(0,t.jsx)(s,{"data-slot":"label",className:(0,o.cn)("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...n})}e.s(["Label",()=>i],85858)},3161,78309,e=>{"use strict";var t=e.i(99975),n=e.i(76482);class r extends Error{status;constructor(e,t){super(e),this.status=t,this.name="ApiError"}}async function a(e,t){let a=await fetch(`${(0,n.apiUrl)()}/api${e}`,{...t,credentials:"include",headers:{"content-type":"application/json",...t?.headers}});if(!a.ok){let e=await a.json().catch(()=>null);throw new r(e?.message??`Request failed with status ${a.status}`,a.status)}if(204!==a.status)return a.json()}function s(){return a("/integrations")}function o(e){return a(`/integrations/${e}`)}function i(){return a("/configurations")}function l(e){return a(`/configurations/${e}`)}function c(e){return a("/configurations",{method:"POST",body:JSON.stringify(e)})}function d(e,t){return a(`/configurations/${e}`,{method:"PATCH",body:JSON.stringify(t)})}function u(e){return a(`/configurations/${e}`,{method:"DELETE"})}function f(e){let t=e?.endUserExternalId?`?endUserExternalId=${encodeURIComponent(e.endUserExternalId)}`:"";return a(`/connections${t}`)}function m(e){return a(`/connections/${e}`,{method:"DELETE"})}function x(e){return a("/connect/sessions/test",{method:"POST",body:JSON.stringify({configurationId:e})})}function p(e,n=[]){let[a,s]=(0,t.useState)(null),[o,i]=(0,t.useState)(!0),[l,c]=(0,t.useState)(null),d=(0,t.useCallback)(()=>{i(!0),c(null),e().then(s).catch(e=>c(e instanceof r?e.message:"Something went wrong")).finally(()=>i(!1))},n);return(0,t.useEffect)(()=>{d()},[d]),{data:a,loading:o,error:l,reload:d}}e.s(["ApiError",()=>r,"createConfiguration",()=>c,"createTestConnectSession",()=>x,"deleteConfiguration",()=>u,"getConfiguration",()=>l,"getIntegration",()=>o,"listConfigurations",()=>i,"listConnections",()=>f,"listIntegrations",()=>s,"revokeConnection",()=>m,"updateConfiguration",()=>d],78309),e.s(["useApiResource",()=>p],3161)},87016,e=>{"use strict";var t=e.i(78234),n=e.i(99975),r=e.i(64503),a=e.i(76173),s=e.i(31261),o=e.i(43836),i=Object.defineProperty,l=(e,t)=>i(e,"name",{value:t,configurable:!0}),[c,d]=(0,r.createContextScope)("AlertDialog",[s.createDialogScope]),u=(0,s.createDialogScope)(),f=l(e=>{let{__scopeAlertDialog:n,...r}=e,a=u(n);return(0,t.jsx)(s.Root,{...a,...r,modal:!0})},"AlertDialog"),m=n.forwardRef(l(function(e,n){let{__scopeAlertDialog:r,...a}=e,o=u(r);return(0,t.jsx)(s.Trigger,{...o,...a,ref:n})},"AlertDialogTrigger")),x=l(e=>{let{__scopeAlertDialog:n,...r}=e,a=u(n);return(0,t.jsx)(s.Portal,{...a,...r})},"AlertDialogPortal"),p=n.forwardRef(l(function(e,n){let{__scopeAlertDialog:r,...a}=e,o=u(r);return(0,t.jsx)(s.Overlay,{...o,...a,ref:n})},"AlertDialogOverlay")),[h,g]=c("AlertDialogContent"),j=n.forwardRef(l(function(e,r){let{__scopeAlertDialog:i,children:l,...c}=e,d=u(i),f=n.useRef(null),m=(0,a.useComposedRefs)(r,f),x=n.useRef(null);return(0,t.jsx)(h,{scope:i,cancelRef:x,children:(0,t.jsx)(s.Content,{role:"alertdialog",...d,...c,ref:m,onOpenAutoFocus:(0,o.composeEventHandlers)(c.onOpenAutoFocus,e=>{e.preventDefault(),x.current?.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:l})})},"AlertDialogContent")),b=n.forwardRef(l(function(e,n){let{__scopeAlertDialog:r,...a}=e,o=u(r);return(0,t.jsx)(s.Title,{...o,...a,ref:n})},"AlertDialogTitle")),v=n.forwardRef(l(function(e,n){let{__scopeAlertDialog:r,...a}=e,o=u(r);return(0,t.jsx)(s.Description,{...o,...a,ref:n})},"AlertDialogDescription")),y=n.forwardRef(l(function(e,n){let{__scopeAlertDialog:r,...a}=e,o=u(r);return(0,t.jsx)(s.Close,{...o,...a,ref:n})},"AlertDialogAction")),C=n.forwardRef(l(function(e,n){let{__scopeAlertDialog:r,...o}=e,{cancelRef:i}=g("AlertDialogCancel",r),l=u(r),c=(0,a.useComposedRefs)(n,i);return(0,t.jsx)(s.Close,{...l,...o,ref:c})},"AlertDialogCancel")),w=e.i(33178),k=e.i(81404);function N(e){return(0,t.jsx)(f,{"data-slot":"alert-dialog",...e})}function S(e){return(0,t.jsx)(m,{"data-slot":"alert-dialog-trigger",...e})}function D(e){return(0,t.jsx)(x,{"data-slot":"alert-dialog-portal",...e})}function E({className:e,...n}){return(0,t.jsx)(p,{"data-slot":"alert-dialog-overlay",className:(0,w.cn)("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...n})}function A({className:e,...n}){return(0,t.jsxs)(D,{children:[(0,t.jsx)(E,{}),(0,t.jsx)(j,{"data-slot":"alert-dialog-content",className:(0,w.cn)("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",e),...n})]})}function R({className:e,...n}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-header",className:(0,w.cn)("flex flex-col gap-2 text-center sm:text-left",e),...n})}function F({className:e,...n}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-footer",className:(0,w.cn)("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...n})}function I({className:e,...n}){return(0,t.jsx)(b,{"data-slot":"alert-dialog-title",className:(0,w.cn)("text-lg font-semibold",e),...n})}function P({className:e,...n}){return(0,t.jsx)(v,{"data-slot":"alert-dialog-description",className:(0,w.cn)("text-muted-foreground text-sm",e),...n})}function T({className:e,...n}){return(0,t.jsx)(y,{className:(0,w.cn)((0,k.buttonVariants)(),e),...n})}function L({className:e,...n}){return(0,t.jsx)(C,{className:(0,w.cn)((0,k.buttonVariants)({variant:"outline"}),e),...n})}e.s(["AlertDialog",()=>N,"AlertDialogAction",()=>T,"AlertDialogCancel",()=>L,"AlertDialogContent",()=>A,"AlertDialogDescription",()=>P,"AlertDialogFooter",()=>F,"AlertDialogHeader",()=>R,"AlertDialogTitle",()=>I,"AlertDialogTrigger",()=>S],87016)},91449,e=>{"use strict";var t=e.i(78234),n=e.i(99975),r=e.i(79081),a=e.i(48045);let s=(0,a.default)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]),o=(0,a.default)("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]),i=(0,a.default)("EyeOff",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);var l=e.i(27940),c=e.i(33178);function d({value:e,mask:a=!1,className:d}){let[u,f]=(0,n.useState)(!1),[m,x]=(0,n.useState)(!a);async function p(){await navigator.clipboard.writeText(e),f(!0),l.toast.success("Copied to clipboard"),setTimeout(()=>f(!1),1500)}return(0,t.jsxs)("span",{className:(0,c.cn)("bg-muted/60 inline-flex max-w-full items-center gap-1 rounded-md border px-2 py-1 font-mono text-xs",d),children:[(0,t.jsx)("span",{className:"truncate",children:m?e:"•".repeat(Math.min(e.length,24))}),a&&(0,t.jsxs)("button",{type:"button",onClick:()=>x(e=>!e),className:"text-muted-foreground hover:text-foreground shrink-0",children:[m?(0,t.jsx)(i,{className:"size-3.5"}):(0,t.jsx)(o,{className:"size-3.5"}),(0,t.jsx)("span",{className:"sr-only",children:m?"Hide":"Reveal"})]}),(0,t.jsxs)("button",{type:"button",onClick:p,className:"text-muted-foreground hover:text-foreground shrink-0",children:[u?(0,t.jsx)(r.Check,{className:"size-3.5"}):(0,t.jsx)(s,{className:"size-3.5"}),(0,t.jsx)("span",{className:"sr-only",children:"Copy"})]})]})}e.s(["CodeChip",()=>d],91449)},50824,31403,e=>{"use strict";var t=e.i(78234),n=e.i(99975),r=e.i(76173),a=e.i(64503),s=e.i(43836),o=e.i(76440),i=e.i(72261),l=e.i(26747),c=e.i(81137),d=Object.defineProperty,u=(e,t)=>d(e,"name",{value:t,configurable:!0}),f="Checkbox",[m,x]=(0,a.createContextScope)(f),[p,h]=m(f);function g(e){let{__scopeCheckbox:r,checked:a,children:s,defaultChecked:i,disabled:l,form:c,name:d,onCheckedChange:u,required:m,value:x="on",internal_do_not_use_render:h}=e,[g,j]=(0,o.useControllableState)({prop:a,defaultProp:i??!1,onChange:u,caller:f}),[b,v]=n.useState(null),[y,k]=n.useState(null),N=n.useRef(!1),[S,D]=n.useReducer(e=>e+1,0),E=!b||!!c||!!b.closest("form"),A={checked:g,disabled:l,setChecked:j,control:b,setControl:v,name:d,form:c,value:x,hasConsumerStoppedPropagationRef:N,userInteractionCount:S,onUserInteraction:D,required:m,defaultChecked:!w(i)&&i,isFormControl:E,bubbleInput:y,setBubbleInput:k};return(0,t.jsx)(p,{scope:r,...A,children:C(h)?h(A):s})}u(g,"CheckboxProvider");var j=n.forwardRef(u(function({__scopeCheckbox:e,onKeyDown:a,onClick:o,...i},l){let{control:d,value:f,disabled:m,checked:x,required:p,setControl:g,setChecked:j,hasConsumerStoppedPropagationRef:b,onUserInteraction:v,isFormControl:y,bubbleInput:C}=h("CheckboxTrigger",e),N=(0,r.useComposedRefs)(l,g),S=n.useRef(x);return n.useEffect(()=>{let e=d?.form;if(e){let t=u(()=>j(S.current),"reset");return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[d,j]),(0,t.jsx)(c.Primitive.button,{type:"button",role:"checkbox","aria-checked":w(x)?"mixed":x,"aria-required":p,"data-state":k(x),"data-disabled":m?"":void 0,disabled:m,value:f,...i,ref:N,onKeyDown:(0,s.composeEventHandlers)(a,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:(0,s.composeEventHandlers)(o,e=>{v(),j(e=>!!w(e)||!e),C&&y&&(b.current=e.isPropagationStopped(),b.current||e.stopPropagation())})})},"CheckboxTrigger")),b=n.forwardRef(u(function(e,n){let{__scopeCheckbox:r,name:a,checked:s,defaultChecked:o,required:i,disabled:l,value:c,onCheckedChange:d,form:u,...f}=e;return(0,t.jsx)(g,{__scopeCheckbox:r,checked:s,defaultChecked:o,disabled:l,required:i,onCheckedChange:d,name:a,form:u,value:c,internal_do_not_use_render:({isFormControl:e})=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(j,{...f,ref:n,__scopeCheckbox:r}),e&&(0,t.jsx)(y,{__scopeCheckbox:r})]})})},"Checkbox")),v=n.forwardRef(u(function(e,n){let{__scopeCheckbox:r,forceMount:a,...s}=e,o=h("CheckboxIndicator",r);return(0,t.jsx)(l.Presence,{present:a||w(o.checked)||!0===o.checked,children:(0,t.jsx)(c.Primitive.span,{"data-state":k(o.checked),"data-disabled":o.disabled?"":void 0,...s,ref:n,style:{pointerEvents:"none",...e.style}})})},"CheckboxIndicator")),y=n.forwardRef(u(function({__scopeCheckbox:e,onClick:a,...o},l){let{control:d,hasConsumerStoppedPropagationRef:u,userInteractionCount:f,checked:m,defaultChecked:x,required:p,disabled:g,name:j,value:b,form:v,bubbleInput:y,setBubbleInput:C}=h("CheckboxBubbleInput",e),k=(0,r.useComposedRefs)(l,C),N=(0,i.useSize)(d),S=n.useRef(!1),D=n.useRef(m),E=n.useRef(f);n.useEffect(()=>{if(!y)return;let e=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set,t=f!==E.current;E.current=f;let n=D.current!==m;D.current=m;let r=!(t&&u.current);if(n&&e){S.current=!t;let n=new Event("click",{bubbles:r});y.indeterminate=w(m),e.call(y,!w(m)&&m),y.dispatchEvent(n),S.current=!1}},[y,m,u,f]);let A=n.useRef(!w(m)&&m);return(0,t.jsx)(c.Primitive.input,{type:"checkbox","aria-hidden":!0,defaultChecked:x??A.current,required:p,disabled:g,name:j,value:b,form:v,...o,tabIndex:-1,ref:k,onClick:(0,s.composeEventHandlers)(a,e=>{S.current&&e.stopPropagation()}),style:{...o.style,...N,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})},"CheckboxBubbleInput"));function C(e){return"function"==typeof e}function w(e){return"indeterminate"===e}function k(e){return w(e)?"indeterminate":e?"checked":"unchecked"}u(C,"isFunction"),u(w,"isIndeterminate"),u(k,"getState");var N=e.i(41796),S=e.i(33178);function D({className:e,...n}){return(0,t.jsx)(b,{"data-slot":"checkbox",className:(0,S.cn)("peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",e),...n,children:(0,t.jsx)(v,{"data-slot":"checkbox-indicator",className:"flex items-center justify-center text-current transition-none",children:(0,t.jsx)(N.CheckIcon,{className:"size-3.5"})})})}var E=e.i(43711),A=e.i(85858),R=e.i(10395);function F({fields:e,value:n,onChange:r}){return 0===e.length?null:(0,t.jsx)("div",{className:"flex flex-col gap-4",children:e.map(e=>{let a=`config-field-${e.key}`,s=n[e.key];return"boolean"===e.type?(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(D,{id:a,checked:!0===s,onCheckedChange:t=>r(e.key,!0===t)}),(0,t.jsxs)(A.Label,{htmlFor:a,className:"font-normal",children:[e.label,e.required&&(0,t.jsx)("span",{className:"text-destructive",children:" *"})]})]},e.key):"select"===e.type?(0,t.jsxs)("div",{className:"grid gap-1.5",children:[(0,t.jsxs)(A.Label,{htmlFor:a,children:[e.label,e.required&&(0,t.jsx)("span",{className:"text-destructive",children:" *"})]}),(0,t.jsxs)(R.Select,{value:"string"==typeof s?s:void 0,onValueChange:t=>r(e.key,t),children:[(0,t.jsx)(R.SelectTrigger,{id:a,className:"w-full",children:(0,t.jsx)(R.SelectValue,{placeholder:"Select…"})}),(0,t.jsx)(R.SelectContent,{children:(e.options??[]).map(e=>(0,t.jsx)(R.SelectItem,{value:e.value,children:e.label},e.value))})]}),e.help&&(0,t.jsx)("p",{className:"text-muted-foreground text-sm",children:e.help})]},e.key):(0,t.jsxs)("div",{className:"grid gap-1.5",children:[(0,t.jsxs)(A.Label,{htmlFor:a,children:[e.label,e.required&&(0,t.jsx)("span",{className:"text-destructive",children:" *"})]}),(0,t.jsx)(E.Input,{id:a,type:"number"===e.type?"number":e.secret?"password":"text",value:"string"==typeof s||"number"==typeof s?s:"",onChange:t=>r(e.key,"number"===e.type?t.target.valueAsNumber:t.target.value)}),e.help&&(0,t.jsx)("p",{className:"text-muted-foreground text-sm",children:e.help})]},e.key)})})}e.s(["ConfigFieldsForm",()=>F],50824);var I=e.i(79081),P=e.i(6435),P=P,T=e.i(67022);function L({options:e,value:r,onChange:a,placeholder:s,className:o}){let[i,l]=(0,n.useState)(!1),[c,d]=(0,n.useState)(""),[u,f]=(0,n.useState)(0),m=(0,n.useRef)(null),x=(0,n.useRef)(null),p=e.filter(e=>e.toLowerCase().includes(c.toLowerCase()));function h(e){a(r.includes(e)?r.filter(t=>t!==e):[...r,e]),d("")}return(0,n.useEffect)(()=>{f(0)},[c,i]),(0,n.useEffect)(()=>{function e(e){m.current?.contains(e.target)||l(!1)}return document.addEventListener("pointerdown",e),()=>document.removeEventListener("pointerdown",e)},[]),(0,t.jsxs)("div",{ref:m,className:(0,S.cn)("relative",o),children:[(0,t.jsxs)("div",{className:"border-input focus-within:border-ring focus-within:ring-ring/50 flex min-h-9 w-full flex-wrap items-center gap-1.5 rounded-md border bg-transparent px-2 py-1.5 text-sm shadow-xs transition-[color,box-shadow] focus-within:ring-[3px]",onClick:()=>{l(!0),x.current?.focus()},children:[r.map(e=>(0,t.jsxs)(T.Badge,{variant:"secondary",className:"gap-1 font-mono",children:[e,(0,t.jsxs)("button",{type:"button",onMouseDown:t=>{t.preventDefault(),t.stopPropagation(),h(e)},className:"text-muted-foreground hover:text-foreground",children:[(0,t.jsx)(P.default,{className:"size-3"}),(0,t.jsxs)("span",{className:"sr-only",children:["Remove ",e]})]})]},e)),(0,t.jsx)("input",{ref:x,value:c,onChange:e=>d(e.target.value),onFocus:()=>l(!0),onKeyDown:function(e){if("Backspace"===e.key&&""===c&&r.length>0)return void a(r.slice(0,-1));if(!i&&("ArrowDown"===e.key||"Enter"===e.key))return void l(!0);if("ArrowDown"===e.key)e.preventDefault(),f(e=>Math.min(e+1,p.length-1));else if("ArrowUp"===e.key)e.preventDefault(),f(e=>Math.max(e-1,0));else if("Enter"===e.key){e.preventDefault();let t=p[u];t&&h(t)}else"Escape"===e.key&&l(!1)},placeholder:0===r.length?s:void 0,className:"text-foreground placeholder:text-muted-foreground min-w-24 flex-1 bg-transparent outline-none"})]}),i&&(0,t.jsxs)("div",{className:"bg-popover text-popover-foreground absolute z-50 mt-1 max-h-64 w-full overflow-auto rounded-md border p-1 shadow-md",children:[0===p.length&&(0,t.jsx)("p",{className:"text-muted-foreground px-2 py-1.5 text-sm",children:"No matches"}),p.map((e,n)=>{let a=r.includes(e);return(0,t.jsxs)("button",{type:"button",onMouseDown:t=>{t.preventDefault(),h(e)},onMouseEnter:()=>f(n),className:(0,S.cn)("flex w-full items-center justify-between gap-2 rounded-sm px-2 py-1.5 text-left font-mono text-sm",n===u&&"bg-accent text-accent-foreground"),children:[e,a&&(0,t.jsx)(I.Check,{className:"size-4 shrink-0"})]},e)})]})]})}function z({scopesAvailable:e,value:n,onChange:r}){return 0===e.length?null:(0,t.jsx)(L,{options:e,value:n,onChange:r,placeholder:"Add scopes…"})}e.s(["ScopesPicker",()=>z],31403)},6698,e=>{"use strict";var t=e.i(78234),n=e.i(99975),r=e.i(59636),a=e.i(14315),s=e.i(68120),o=e.i(27940),i=e.i(32356),l=e.i(78309),c=e.i(3161),d=e.i(87016),u=e.i(67022),f=e.i(81404),m=e.i(36144),x=e.i(91449),p=e.i(50824),h=e.i(9018),g=e.i(43711),j=e.i(31403),b=e.i(42075),v=e.i(77785),y=e.i(43836),C=e.i(76173),w=e.i(64503),k=e.i(76440),N=e.i(72261),S=e.i(81137),D=Object.defineProperty,E=(e,t)=>D(e,"name",{value:t,configurable:!0}),A="Switch",[R,F]=(0,w.createContextScope)(A),[I,P]=R(A);function T(e){let{__scopeSwitch:r,checked:a,children:s,defaultChecked:o,disabled:i,form:l,name:c,onCheckedChange:d,required:u,value:f="on",internal_do_not_use_render:m}=e,[x,p]=(0,k.useControllableState)({prop:a,defaultProp:o??!1,onChange:d,caller:A}),[h,g]=n.useState(null),[j,b]=n.useState(null),v=n.useRef(!1),[y,C]=n.useReducer(e=>e+1,0),w=!h||!!l||!!h.closest("form"),N={checked:x,setChecked:p,disabled:i,control:h,setControl:g,name:c,form:l,value:f,hasConsumerStoppedPropagationRef:v,userInteractionCount:y,onUserInteraction:C,required:u,defaultChecked:o,isFormControl:w,bubbleInput:j,setBubbleInput:b};return(0,t.jsx)(I,{scope:r,...N,children:H(m)?m(N):s})}E(T,"SwitchProvider");var L=n.forwardRef(E(function({__scopeSwitch:e,onClick:r,...a},s){let{control:o,form:i,value:l,disabled:c,checked:d,required:u,setControl:f,setChecked:m,hasConsumerStoppedPropagationRef:x,onUserInteraction:p,isFormControl:h,bubbleInput:g}=P("SwitchTrigger",e),j=(0,C.useComposedRefs)(s,f),b=n.useRef(d);return n.useEffect(()=>{let e=i?o?.ownerDocument.getElementById(i):o?.form;if(e instanceof HTMLFormElement){let t=E(()=>m(b.current),"reset");return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[o,i,m]),(0,t.jsx)(S.Primitive.button,{type:"button",role:"switch","aria-checked":d,"aria-required":u,"data-state":B(d),"data-disabled":c?"":void 0,disabled:c,value:l,...a,ref:j,onClick:(0,y.composeEventHandlers)(r,e=>{p(),m(e=>!e),g&&h&&(x.current=e.isPropagationStopped(),x.current||e.stopPropagation())})})},"SwitchTrigger")),z=n.forwardRef(E(function(e,n){let{__scopeSwitch:r,name:a,checked:s,defaultChecked:o,required:i,disabled:l,value:c,onCheckedChange:d,form:u,...f}=e;return(0,t.jsx)(T,{__scopeSwitch:r,checked:s,defaultChecked:o,disabled:l,required:i,onCheckedChange:d,name:a,form:u,value:c,internal_do_not_use_render:({isFormControl:e})=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(L,{...f,ref:n,__scopeSwitch:r}),e&&(0,t.jsx)(M,{__scopeSwitch:r})]})})},"Switch")),O=n.forwardRef(E(function(e,n){let{__scopeSwitch:r,...a}=e,s=P("SwitchThumb",r);return(0,t.jsx)(S.Primitive.span,{"data-state":B(s.checked),"data-disabled":s.disabled?"":void 0,...a,ref:n})},"SwitchThumb")),M=n.forwardRef(E(function({__scopeSwitch:e,onClick:r,...a},s){let{control:o,hasConsumerStoppedPropagationRef:i,userInteractionCount:l,checked:c,defaultChecked:d,required:u,disabled:f,name:m,value:x,form:p,bubbleInput:h,setBubbleInput:g}=P("SwitchBubbleInput",e),j=(0,C.useComposedRefs)(s,g),b=(0,N.useSize)(o),v=n.useRef(!1),w=n.useRef(c),k=n.useRef(l);n.useEffect(()=>{if(!h)return;let e=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set,t=l!==k.current;k.current=l;let n=w.current!==c;w.current=c;let r=!(t&&i.current);if(n&&e){v.current=!t;let n=new Event("click",{bubbles:r});e.call(h,c),h.dispatchEvent(n),v.current=!1}},[h,c,i,l]);let D=n.useRef(c);return(0,t.jsx)(S.Primitive.input,{type:"checkbox","aria-hidden":!0,defaultChecked:d??D.current,required:u,disabled:f,name:m,value:x,form:p,...a,tabIndex:-1,ref:j,onClick:(0,y.composeEventHandlers)(r,e=>{v.current&&e.stopPropagation()}),style:{...a.style,...b,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})},"SwitchBubbleInput"));function H(e){return"function"==typeof e}function B(e){return e?"checked":"unchecked"}E(H,"isFunction"),E(B,"getState");var U=e.i(33178);function $({className:e,...n}){return(0,t.jsx)(z,{"data-slot":"switch",className:(0,U.cn)("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",e),...n,children:(0,t.jsx)(O,{"data-slot":"switch-thumb",className:(0,U.cn)("bg-background pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0")})})}let _=i.z.object({name:i.z.string().min(1,"Give this configuration a name"),clientId:i.z.string().min(1,"Client ID is required"),clientSecret:i.z.string(),isEnabled:i.z.boolean()});function q(){let{id:e}=(0,r.useParams)(),i=(0,r.useRouter)(),{data:y,loading:C,error:w}=(0,c.useApiResource)(async()=>{let t=await (0,l.getConfiguration)(e),n=await (0,l.getIntegration)(t.provider.key);return{configuration:t,integration:n}},[e]),[k,N]=(0,n.useState)([]),[S,D]=(0,n.useState)({}),[E,A]=(0,n.useState)(!1),[R,F]=(0,n.useState)(!1),I=(0,s.useForm)({resolver:(0,a.zodResolver)(_),defaultValues:{name:"",clientId:"",clientSecret:"",isEnabled:!0}});async function P(t){A(!0);try{await (0,l.updateConfiguration)(e,{name:t.name,clientId:t.clientId,clientSecret:t.clientSecret||void 0,isEnabled:t.isEnabled,scopes:k,settings:S}),o.toast.success("Configuration saved"),i.refresh()}catch(e){I.setError("root",{message:e instanceof l.ApiError?e.message:"Could not save configuration"})}finally{A(!1)}}async function T(){F(!0);try{let t=await (0,l.createTestConnectSession)(e);window.open(t.connectUrl,"_blank","noopener,noreferrer")}catch(e){o.toast.error(e instanceof l.ApiError?e.message:"Could not start a test connection")}finally{F(!1)}}async function L(){try{await (0,l.deleteConfiguration)(e),o.toast.success("Configuration deleted"),i.push("/configurations")}catch(e){o.toast.error(e instanceof l.ApiError?e.message:"Could not delete configuration")}}if((0,n.useEffect)(()=>{y&&(I.reset({name:y.configuration.name,clientId:y.configuration.clientId??"",clientSecret:"",isEnabled:y.configuration.isEnabled}),N(y.configuration.scopes),D(y.configuration.metadata??{}))},[y]),C)return(0,t.jsxs)("div",{className:"flex max-w-2xl flex-col gap-4",children:[(0,t.jsx)(v.Skeleton,{className:"h-8 w-64"}),(0,t.jsx)(v.Skeleton,{className:"h-64 w-full"})]});if(w||!y)return(0,t.jsx)("p",{className:"text-destructive text-sm",children:w??"Configuration not found"});let{configuration:z,integration:O}=y;return(0,t.jsxs)("div",{className:"flex max-w-2xl flex-col gap-4",children:[(0,t.jsxs)("div",{className:"flex items-start justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h1",{className:"text-xl font-semibold tracking-tight",children:z.name}),(0,t.jsxs)("p",{className:"text-muted-foreground text-sm",children:[O.name," ·"," ",(0,t.jsx)(u.Badge,{variant:"outline",children:z.environment})]})]}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(f.Button,{variant:"outline",onClick:T,disabled:R,children:R?"Starting…":"Test connect"}),(0,t.jsxs)(d.AlertDialog,{children:[(0,t.jsx)(d.AlertDialogTrigger,{asChild:!0,children:(0,t.jsx)(f.Button,{variant:"outline",className:"text-destructive",children:"Delete"})}),(0,t.jsxs)(d.AlertDialogContent,{children:[(0,t.jsxs)(d.AlertDialogHeader,{children:[(0,t.jsxs)(d.AlertDialogTitle,{children:["Delete “",z.name,"”?"]}),(0,t.jsx)(d.AlertDialogDescription,{children:"Existing connections made through this configuration are unaffected, but no new ones can be created. This can't be undone."})]}),(0,t.jsxs)(d.AlertDialogFooter,{children:[(0,t.jsx)(d.AlertDialogCancel,{children:"Cancel"}),(0,t.jsx)(d.AlertDialogAction,{onClick:L,children:"Delete"})]})]})]})]})]}),(0,t.jsxs)(m.Card,{children:[(0,t.jsx)(m.CardHeader,{children:(0,t.jsx)(m.CardTitle,{className:"text-base",children:"Redirect URI"})}),(0,t.jsxs)(m.CardContent,{children:[(0,t.jsxs)("p",{className:"text-muted-foreground mb-2 text-sm",children:["Give this to ",O.name," as the callback URL for this OAuth app."]}),(0,t.jsx)(x.CodeChip,{value:z.redirectUri??""})]})]}),(0,t.jsx)(m.Card,{children:(0,t.jsx)(m.CardContent,{className:"pt-6",children:(0,t.jsx)(h.Form,{...I,children:(0,t.jsxs)("form",{onSubmit:I.handleSubmit(P),className:"flex flex-col gap-4",children:[(0,t.jsx)(h.FormField,{control:I.control,name:"name",render:({field:e})=>(0,t.jsxs)(h.FormItem,{children:[(0,t.jsx)(h.FormLabel,{children:"Name"}),(0,t.jsx)(h.FormControl,{children:(0,t.jsx)(g.Input,{...e})}),(0,t.jsx)(h.FormMessage,{})]})}),(0,t.jsx)(h.FormField,{control:I.control,name:"isEnabled",render:({field:e})=>(0,t.jsxs)(h.FormItem,{className:"flex flex-row items-center justify-between rounded-lg border p-3",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(h.FormLabel,{children:"Enabled"}),(0,t.jsx)("p",{className:"text-muted-foreground text-sm",children:"Disabled configurations can't start new connect sessions."})]}),(0,t.jsx)(h.FormControl,{children:(0,t.jsx)($,{checked:e.value,onCheckedChange:e.onChange})})]})}),(0,t.jsx)(h.FormField,{control:I.control,name:"clientId",render:({field:e})=>(0,t.jsxs)(h.FormItem,{children:[(0,t.jsx)(h.FormLabel,{children:"Client ID"}),(0,t.jsx)(h.FormControl,{children:(0,t.jsx)(g.Input,{className:"font-mono",...e})}),(0,t.jsx)(h.FormMessage,{})]})}),(0,t.jsx)(h.FormField,{control:I.control,name:"clientSecret",render:({field:e})=>(0,t.jsxs)(h.FormItem,{children:[(0,t.jsx)(h.FormLabel,{children:"Client secret"}),(0,t.jsx)(h.FormControl,{children:(0,t.jsx)(g.Input,{type:"password",className:"font-mono",placeholder:"Leave blank to keep the current secret",...e})}),(0,t.jsx)(h.FormMessage,{})]})}),O.scopesAvailable.length>0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(b.Separator,{}),(0,t.jsxs)("div",{className:"grid gap-1.5",children:[(0,t.jsx)(h.FormLabel,{children:"Scopes"}),(0,t.jsx)(j.ScopesPicker,{scopesAvailable:O.scopesAvailable,value:k,onChange:N})]})]}),O.configFields.length>0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(b.Separator,{}),(0,t.jsx)(p.ConfigFieldsForm,{fields:O.configFields,value:S,onChange:(e,t)=>D(n=>({...n,[e]:t}))})]}),I.formState.errors.root&&(0,t.jsx)("p",{className:"text-destructive text-sm",children:I.formState.errors.root.message}),(0,t.jsx)("div",{className:"flex justify-end pt-2",children:(0,t.jsx)(f.Button,{type:"submit",disabled:E,children:E?"Saving…":"Save changes"})})]})})})})]})}e.s(["default",()=>q],6698)}]);
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,36144,e=>{"use strict";var t=e.i(78234),n=e.i(33178);function r({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card",className:(0,n.cn)("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),...r})}function s({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card-header",className:(0,n.cn)("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...r})}function a({className:e,...r}){return(0,t.jsx)("h3",{"data-slot":"card-title",className:(0,n.cn)("leading-none font-semibold",e),...r})}function o({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card-description",className:(0,n.cn)("text-muted-foreground text-sm",e),...r})}function i({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card-content",className:(0,n.cn)("px-6",e),...r})}e.s(["Card",()=>r,"CardContent",()=>i,"CardDescription",()=>o,"CardHeader",()=>s,"CardTitle",()=>a])},85858,e=>{"use strict";var t=e.i(78234),n=e.i(99975),r=e.i(81137),s=Object.defineProperty,a=n.forwardRef(s(function(e,n){return(0,t.jsx)(r.Primitive.label,{...e,ref:n,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}})},"name",{value:"Label",configurable:!0})),o=e.i(33178);function i({className:e,...n}){return(0,t.jsx)(a,{"data-slot":"label",className:(0,o.cn)("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...n})}e.s(["Label",()=>i],85858)},3161,78309,e=>{"use strict";var t=e.i(99975),n=e.i(76482);class r extends Error{status;constructor(e,t){super(e),this.status=t,this.name="ApiError"}}async function s(e,t){let s=await fetch(`${(0,n.apiUrl)()}/api${e}`,{...t,credentials:"include",headers:{"content-type":"application/json",...t?.headers}});if(!s.ok){let e=await s.json().catch(()=>null);throw new r(e?.message??`Request failed with status ${s.status}`,s.status)}if(204!==s.status)return s.json()}function a(){return s("/integrations")}function o(e){return s(`/integrations/${e}`)}function i(){return s("/configurations")}function l(e){return s(`/configurations/${e}`)}function c(e){return s("/configurations",{method:"POST",body:JSON.stringify(e)})}function d(e,t){return s(`/configurations/${e}`,{method:"PATCH",body:JSON.stringify(t)})}function u(e){return s(`/configurations/${e}`,{method:"DELETE"})}function f(e){let t=e?.endUserExternalId?`?endUserExternalId=${encodeURIComponent(e.endUserExternalId)}`:"";return s(`/connections${t}`)}function x(e){return s(`/connections/${e}`,{method:"DELETE"})}function m(e){return s("/connect/sessions/test",{method:"POST",body:JSON.stringify({configurationId:e})})}function p(e,n=[]){let[s,a]=(0,t.useState)(null),[o,i]=(0,t.useState)(!0),[l,c]=(0,t.useState)(null),d=(0,t.useCallback)(()=>{i(!0),c(null),e().then(a).catch(e=>c(e instanceof r?e.message:"Something went wrong")).finally(()=>i(!1))},n);return(0,t.useEffect)(()=>{d()},[d]),{data:s,loading:o,error:l,reload:d}}e.s(["ApiError",()=>r,"createConfiguration",()=>c,"createTestConnectSession",()=>m,"deleteConfiguration",()=>u,"getConfiguration",()=>l,"getIntegration",()=>o,"listConfigurations",()=>i,"listConnections",()=>f,"listIntegrations",()=>a,"revokeConnection",()=>x,"updateConfiguration",()=>d],78309),e.s(["useApiResource",()=>p],3161)},87016,e=>{"use strict";var t=e.i(78234),n=e.i(99975),r=e.i(64503),s=e.i(76173),a=e.i(31261),o=e.i(43836),i=Object.defineProperty,l=(e,t)=>i(e,"name",{value:t,configurable:!0}),[c,d]=(0,r.createContextScope)("AlertDialog",[a.createDialogScope]),u=(0,a.createDialogScope)(),f=l(e=>{let{__scopeAlertDialog:n,...r}=e,s=u(n);return(0,t.jsx)(a.Root,{...s,...r,modal:!0})},"AlertDialog"),x=n.forwardRef(l(function(e,n){let{__scopeAlertDialog:r,...s}=e,o=u(r);return(0,t.jsx)(a.Trigger,{...o,...s,ref:n})},"AlertDialogTrigger")),m=l(e=>{let{__scopeAlertDialog:n,...r}=e,s=u(n);return(0,t.jsx)(a.Portal,{...s,...r})},"AlertDialogPortal"),p=n.forwardRef(l(function(e,n){let{__scopeAlertDialog:r,...s}=e,o=u(r);return(0,t.jsx)(a.Overlay,{...o,...s,ref:n})},"AlertDialogOverlay")),[h,g]=c("AlertDialogContent"),j=n.forwardRef(l(function(e,r){let{__scopeAlertDialog:i,children:l,...c}=e,d=u(i),f=n.useRef(null),x=(0,s.useComposedRefs)(r,f),m=n.useRef(null);return(0,t.jsx)(h,{scope:i,cancelRef:m,children:(0,t.jsx)(a.Content,{role:"alertdialog",...d,...c,ref:x,onOpenAutoFocus:(0,o.composeEventHandlers)(c.onOpenAutoFocus,e=>{e.preventDefault(),m.current?.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:l})})},"AlertDialogContent")),b=n.forwardRef(l(function(e,n){let{__scopeAlertDialog:r,...s}=e,o=u(r);return(0,t.jsx)(a.Title,{...o,...s,ref:n})},"AlertDialogTitle")),v=n.forwardRef(l(function(e,n){let{__scopeAlertDialog:r,...s}=e,o=u(r);return(0,t.jsx)(a.Description,{...o,...s,ref:n})},"AlertDialogDescription")),C=n.forwardRef(l(function(e,n){let{__scopeAlertDialog:r,...s}=e,o=u(r);return(0,t.jsx)(a.Close,{...o,...s,ref:n})},"AlertDialogAction")),y=n.forwardRef(l(function(e,n){let{__scopeAlertDialog:r,...o}=e,{cancelRef:i}=g("AlertDialogCancel",r),l=u(r),c=(0,s.useComposedRefs)(n,i);return(0,t.jsx)(a.Close,{...l,...o,ref:c})},"AlertDialogCancel")),w=e.i(33178),k=e.i(81404);function N(e){return(0,t.jsx)(f,{"data-slot":"alert-dialog",...e})}function S(e){return(0,t.jsx)(x,{"data-slot":"alert-dialog-trigger",...e})}function D(e){return(0,t.jsx)(m,{"data-slot":"alert-dialog-portal",...e})}function E({className:e,...n}){return(0,t.jsx)(p,{"data-slot":"alert-dialog-overlay",className:(0,w.cn)("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...n})}function A({className:e,...n}){return(0,t.jsxs)(D,{children:[(0,t.jsx)(E,{}),(0,t.jsx)(j,{"data-slot":"alert-dialog-content",className:(0,w.cn)("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",e),...n})]})}function R({className:e,...n}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-header",className:(0,w.cn)("flex flex-col gap-2 text-center sm:text-left",e),...n})}function F({className:e,...n}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-footer",className:(0,w.cn)("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...n})}function I({className:e,...n}){return(0,t.jsx)(b,{"data-slot":"alert-dialog-title",className:(0,w.cn)("text-lg font-semibold",e),...n})}function P({className:e,...n}){return(0,t.jsx)(v,{"data-slot":"alert-dialog-description",className:(0,w.cn)("text-muted-foreground text-sm",e),...n})}function T({className:e,...n}){return(0,t.jsx)(C,{className:(0,w.cn)((0,k.buttonVariants)(),e),...n})}function L({className:e,...n}){return(0,t.jsx)(y,{className:(0,w.cn)((0,k.buttonVariants)({variant:"outline"}),e),...n})}e.s(["AlertDialog",()=>N,"AlertDialogAction",()=>T,"AlertDialogCancel",()=>L,"AlertDialogContent",()=>A,"AlertDialogDescription",()=>P,"AlertDialogFooter",()=>F,"AlertDialogHeader",()=>R,"AlertDialogTitle",()=>I,"AlertDialogTrigger",()=>S],87016)},91449,e=>{"use strict";var t=e.i(78234),n=e.i(99975),r=e.i(79081),s=e.i(48045);let a=(0,s.default)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]),o=(0,s.default)("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]),i=(0,s.default)("EyeOff",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);var l=e.i(27940),c=e.i(33178);function d({value:e,mask:s=!1,className:d}){let[u,f]=(0,n.useState)(!1),[x,m]=(0,n.useState)(!s);async function p(){await navigator.clipboard.writeText(e),f(!0),l.toast.success("Copied to clipboard"),setTimeout(()=>f(!1),1500)}return(0,t.jsxs)("span",{className:(0,c.cn)("bg-muted/60 inline-flex max-w-full items-center gap-1 rounded-md border px-2 py-1 font-mono text-xs",d),children:[(0,t.jsx)("span",{className:"truncate",children:x?e:"•".repeat(Math.min(e.length,24))}),s&&(0,t.jsxs)("button",{type:"button",onClick:()=>m(e=>!e),className:"text-muted-foreground hover:text-foreground shrink-0",children:[x?(0,t.jsx)(i,{className:"size-3.5"}):(0,t.jsx)(o,{className:"size-3.5"}),(0,t.jsx)("span",{className:"sr-only",children:x?"Hide":"Reveal"})]}),(0,t.jsxs)("button",{type:"button",onClick:p,className:"text-muted-foreground hover:text-foreground shrink-0",children:[u?(0,t.jsx)(r.Check,{className:"size-3.5"}):(0,t.jsx)(a,{className:"size-3.5"}),(0,t.jsx)("span",{className:"sr-only",children:"Copy"})]})]})}e.s(["CodeChip",()=>d],91449)},50824,31403,e=>{"use strict";var t=e.i(78234),n=e.i(99975),r=e.i(76173),s=e.i(64503),a=e.i(43836),o=e.i(76440),i=e.i(72261),l=e.i(26747),c=e.i(81137),d=Object.defineProperty,u=(e,t)=>d(e,"name",{value:t,configurable:!0}),f="Checkbox",[x,m]=(0,s.createContextScope)(f),[p,h]=x(f);function g(e){let{__scopeCheckbox:r,checked:s,children:a,defaultChecked:i,disabled:l,form:c,name:d,onCheckedChange:u,required:x,value:m="on",internal_do_not_use_render:h}=e,[g,j]=(0,o.useControllableState)({prop:s,defaultProp:i??!1,onChange:u,caller:f}),[b,v]=n.useState(null),[C,k]=n.useState(null),N=n.useRef(!1),[S,D]=n.useReducer(e=>e+1,0),E=!b||!!c||!!b.closest("form"),A={checked:g,disabled:l,setChecked:j,control:b,setControl:v,name:d,form:c,value:m,hasConsumerStoppedPropagationRef:N,userInteractionCount:S,onUserInteraction:D,required:x,defaultChecked:!w(i)&&i,isFormControl:E,bubbleInput:C,setBubbleInput:k};return(0,t.jsx)(p,{scope:r,...A,children:y(h)?h(A):a})}u(g,"CheckboxProvider");var j=n.forwardRef(u(function({__scopeCheckbox:e,onKeyDown:s,onClick:o,...i},l){let{control:d,value:f,disabled:x,checked:m,required:p,setControl:g,setChecked:j,hasConsumerStoppedPropagationRef:b,onUserInteraction:v,isFormControl:C,bubbleInput:y}=h("CheckboxTrigger",e),N=(0,r.useComposedRefs)(l,g),S=n.useRef(m);return n.useEffect(()=>{let e=d?.form;if(e){let t=u(()=>j(S.current),"reset");return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[d,j]),(0,t.jsx)(c.Primitive.button,{type:"button",role:"checkbox","aria-checked":w(m)?"mixed":m,"aria-required":p,"data-state":k(m),"data-disabled":x?"":void 0,disabled:x,value:f,...i,ref:N,onKeyDown:(0,a.composeEventHandlers)(s,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:(0,a.composeEventHandlers)(o,e=>{v(),j(e=>!!w(e)||!e),y&&C&&(b.current=e.isPropagationStopped(),b.current||e.stopPropagation())})})},"CheckboxTrigger")),b=n.forwardRef(u(function(e,n){let{__scopeCheckbox:r,name:s,checked:a,defaultChecked:o,required:i,disabled:l,value:c,onCheckedChange:d,form:u,...f}=e;return(0,t.jsx)(g,{__scopeCheckbox:r,checked:a,defaultChecked:o,disabled:l,required:i,onCheckedChange:d,name:s,form:u,value:c,internal_do_not_use_render:({isFormControl:e})=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(j,{...f,ref:n,__scopeCheckbox:r}),e&&(0,t.jsx)(C,{__scopeCheckbox:r})]})})},"Checkbox")),v=n.forwardRef(u(function(e,n){let{__scopeCheckbox:r,forceMount:s,...a}=e,o=h("CheckboxIndicator",r);return(0,t.jsx)(l.Presence,{present:s||w(o.checked)||!0===o.checked,children:(0,t.jsx)(c.Primitive.span,{"data-state":k(o.checked),"data-disabled":o.disabled?"":void 0,...a,ref:n,style:{pointerEvents:"none",...e.style}})})},"CheckboxIndicator")),C=n.forwardRef(u(function({__scopeCheckbox:e,onClick:s,...o},l){let{control:d,hasConsumerStoppedPropagationRef:u,userInteractionCount:f,checked:x,defaultChecked:m,required:p,disabled:g,name:j,value:b,form:v,bubbleInput:C,setBubbleInput:y}=h("CheckboxBubbleInput",e),k=(0,r.useComposedRefs)(l,y),N=(0,i.useSize)(d),S=n.useRef(!1),D=n.useRef(x),E=n.useRef(f);n.useEffect(()=>{if(!C)return;let e=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set,t=f!==E.current;E.current=f;let n=D.current!==x;D.current=x;let r=!(t&&u.current);if(n&&e){S.current=!t;let n=new Event("click",{bubbles:r});C.indeterminate=w(x),e.call(C,!w(x)&&x),C.dispatchEvent(n),S.current=!1}},[C,x,u,f]);let A=n.useRef(!w(x)&&x);return(0,t.jsx)(c.Primitive.input,{type:"checkbox","aria-hidden":!0,defaultChecked:m??A.current,required:p,disabled:g,name:j,value:b,form:v,...o,tabIndex:-1,ref:k,onClick:(0,a.composeEventHandlers)(s,e=>{S.current&&e.stopPropagation()}),style:{...o.style,...N,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})},"CheckboxBubbleInput"));function y(e){return"function"==typeof e}function w(e){return"indeterminate"===e}function k(e){return w(e)?"indeterminate":e?"checked":"unchecked"}u(y,"isFunction"),u(w,"isIndeterminate"),u(k,"getState");var N=e.i(41796),S=e.i(33178);function D({className:e,...n}){return(0,t.jsx)(b,{"data-slot":"checkbox",className:(0,S.cn)("peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",e),...n,children:(0,t.jsx)(v,{"data-slot":"checkbox-indicator",className:"flex items-center justify-center text-current transition-none",children:(0,t.jsx)(N.CheckIcon,{className:"size-3.5"})})})}var E=e.i(43711),A=e.i(85858),R=e.i(10395);function F({fields:e,value:n,onChange:r}){return 0===e.length?null:(0,t.jsx)("div",{className:"flex flex-col gap-4",children:e.map(e=>{let s=`config-field-${e.key}`,a=n[e.key];return"boolean"===e.type?(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(D,{id:s,checked:!0===a,onCheckedChange:t=>r(e.key,!0===t)}),(0,t.jsxs)(A.Label,{htmlFor:s,className:"font-normal",children:[e.label,e.required&&(0,t.jsx)("span",{className:"text-destructive",children:" *"})]})]},e.key):"select"===e.type?(0,t.jsxs)("div",{className:"grid gap-1.5",children:[(0,t.jsxs)(A.Label,{htmlFor:s,children:[e.label,e.required&&(0,t.jsx)("span",{className:"text-destructive",children:" *"})]}),(0,t.jsxs)(R.Select,{value:"string"==typeof a?a:void 0,onValueChange:t=>r(e.key,t),children:[(0,t.jsx)(R.SelectTrigger,{id:s,className:"w-full",children:(0,t.jsx)(R.SelectValue,{placeholder:"Select…"})}),(0,t.jsx)(R.SelectContent,{children:(e.options??[]).map(e=>(0,t.jsx)(R.SelectItem,{value:e.value,children:e.label},e.value))})]}),e.help&&(0,t.jsx)("p",{className:"text-muted-foreground text-sm",children:e.help})]},e.key):(0,t.jsxs)("div",{className:"grid gap-1.5",children:[(0,t.jsxs)(A.Label,{htmlFor:s,children:[e.label,e.required&&(0,t.jsx)("span",{className:"text-destructive",children:" *"})]}),(0,t.jsx)(E.Input,{id:s,type:"number"===e.type?"number":e.secret?"password":"text",value:"string"==typeof a||"number"==typeof a?a:"",onChange:t=>r(e.key,"number"===e.type?t.target.valueAsNumber:t.target.value)}),e.help&&(0,t.jsx)("p",{className:"text-muted-foreground text-sm",children:e.help})]},e.key)})})}e.s(["ConfigFieldsForm",()=>F],50824);var I=e.i(79081),P=e.i(6435),P=P,T=e.i(67022);function L({options:e,value:r,onChange:s,placeholder:a,className:o}){let[i,l]=(0,n.useState)(!1),[c,d]=(0,n.useState)(""),[u,f]=(0,n.useState)(0),x=(0,n.useRef)(null),m=(0,n.useRef)(null),p=e.filter(e=>e.toLowerCase().includes(c.toLowerCase()));function h(e){s(r.includes(e)?r.filter(t=>t!==e):[...r,e]),d("")}return(0,n.useEffect)(()=>{f(0)},[c,i]),(0,n.useEffect)(()=>{function e(e){x.current?.contains(e.target)||l(!1)}return document.addEventListener("pointerdown",e),()=>document.removeEventListener("pointerdown",e)},[]),(0,t.jsxs)("div",{ref:x,className:(0,S.cn)("relative",o),children:[(0,t.jsxs)("div",{className:"border-input focus-within:border-ring focus-within:ring-ring/50 flex min-h-9 w-full flex-wrap items-center gap-1.5 rounded-md border bg-transparent px-2 py-1.5 text-sm shadow-xs transition-[color,box-shadow] focus-within:ring-[3px]",onClick:()=>{l(!0),m.current?.focus()},children:[r.map(e=>(0,t.jsxs)(T.Badge,{variant:"secondary",className:"gap-1 font-mono",children:[e,(0,t.jsxs)("button",{type:"button",onMouseDown:t=>{t.preventDefault(),t.stopPropagation(),h(e)},className:"text-muted-foreground hover:text-foreground",children:[(0,t.jsx)(P.default,{className:"size-3"}),(0,t.jsxs)("span",{className:"sr-only",children:["Remove ",e]})]})]},e)),(0,t.jsx)("input",{ref:m,value:c,onChange:e=>d(e.target.value),onFocus:()=>l(!0),onKeyDown:function(e){if("Backspace"===e.key&&""===c&&r.length>0)return void s(r.slice(0,-1));if(!i&&("ArrowDown"===e.key||"Enter"===e.key))return void l(!0);if("ArrowDown"===e.key)e.preventDefault(),f(e=>Math.min(e+1,p.length-1));else if("ArrowUp"===e.key)e.preventDefault(),f(e=>Math.max(e-1,0));else if("Enter"===e.key){e.preventDefault();let t=p[u];t&&h(t)}else"Escape"===e.key&&l(!1)},placeholder:0===r.length?a:void 0,className:"text-foreground placeholder:text-muted-foreground min-w-24 flex-1 bg-transparent outline-none"})]}),i&&(0,t.jsxs)("div",{className:"bg-popover text-popover-foreground absolute z-50 mt-1 max-h-64 w-full overflow-auto rounded-md border p-1 shadow-md",children:[0===p.length&&(0,t.jsx)("p",{className:"text-muted-foreground px-2 py-1.5 text-sm",children:"No matches"}),p.map((e,n)=>{let s=r.includes(e);return(0,t.jsxs)("button",{type:"button",onMouseDown:t=>{t.preventDefault(),h(e)},onMouseEnter:()=>f(n),className:(0,S.cn)("flex w-full items-center justify-between gap-2 rounded-sm px-2 py-1.5 text-left font-mono text-sm",n===u&&"bg-accent text-accent-foreground"),children:[e,s&&(0,t.jsx)(I.Check,{className:"size-4 shrink-0"})]},e)})]})]})}function z({scopesAvailable:e,value:n,onChange:r}){return 0===e.length?null:(0,t.jsx)(L,{options:e,value:n,onChange:r,placeholder:"Add scopes…"})}e.s(["ScopesPicker",()=>z],31403)},6698,e=>{"use strict";var t=e.i(78234),n=e.i(99975),r=e.i(59636),s=e.i(14315),a=e.i(68120),o=e.i(27940),i=e.i(32356),l=e.i(78309),c=e.i(3161),d=e.i(87016),u=e.i(67022),f=e.i(81404),x=e.i(36144),m=e.i(91449),p=e.i(50824),h=e.i(9018),g=e.i(43711),j=e.i(31403),b=e.i(42075),v=e.i(77785),C=e.i(43836),y=e.i(76173),w=e.i(64503),k=e.i(76440),N=e.i(72261),S=e.i(81137),D=Object.defineProperty,E=(e,t)=>D(e,"name",{value:t,configurable:!0}),A="Switch",[R,F]=(0,w.createContextScope)(A),[I,P]=R(A);function T(e){let{__scopeSwitch:r,checked:s,children:a,defaultChecked:o,disabled:i,form:l,name:c,onCheckedChange:d,required:u,value:f="on",internal_do_not_use_render:x}=e,[m,p]=(0,k.useControllableState)({prop:s,defaultProp:o??!1,onChange:d,caller:A}),[h,g]=n.useState(null),[j,b]=n.useState(null),v=n.useRef(!1),[C,y]=n.useReducer(e=>e+1,0),w=!h||!!l||!!h.closest("form"),N={checked:m,setChecked:p,disabled:i,control:h,setControl:g,name:c,form:l,value:f,hasConsumerStoppedPropagationRef:v,userInteractionCount:C,onUserInteraction:y,required:u,defaultChecked:o,isFormControl:w,bubbleInput:j,setBubbleInput:b};return(0,t.jsx)(I,{scope:r,...N,children:H(x)?x(N):a})}E(T,"SwitchProvider");var L=n.forwardRef(E(function({__scopeSwitch:e,onClick:r,...s},a){let{control:o,form:i,value:l,disabled:c,checked:d,required:u,setControl:f,setChecked:x,hasConsumerStoppedPropagationRef:m,onUserInteraction:p,isFormControl:h,bubbleInput:g}=P("SwitchTrigger",e),j=(0,y.useComposedRefs)(a,f),b=n.useRef(d);return n.useEffect(()=>{let e=i?o?.ownerDocument.getElementById(i):o?.form;if(e instanceof HTMLFormElement){let t=E(()=>x(b.current),"reset");return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[o,i,x]),(0,t.jsx)(S.Primitive.button,{type:"button",role:"switch","aria-checked":d,"aria-required":u,"data-state":B(d),"data-disabled":c?"":void 0,disabled:c,value:l,...s,ref:j,onClick:(0,C.composeEventHandlers)(r,e=>{p(),x(e=>!e),g&&h&&(m.current=e.isPropagationStopped(),m.current||e.stopPropagation())})})},"SwitchTrigger")),z=n.forwardRef(E(function(e,n){let{__scopeSwitch:r,name:s,checked:a,defaultChecked:o,required:i,disabled:l,value:c,onCheckedChange:d,form:u,...f}=e;return(0,t.jsx)(T,{__scopeSwitch:r,checked:a,defaultChecked:o,disabled:l,required:i,onCheckedChange:d,name:s,form:u,value:c,internal_do_not_use_render:({isFormControl:e})=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(L,{...f,ref:n,__scopeSwitch:r}),e&&(0,t.jsx)(M,{__scopeSwitch:r})]})})},"Switch")),O=n.forwardRef(E(function(e,n){let{__scopeSwitch:r,...s}=e,a=P("SwitchThumb",r);return(0,t.jsx)(S.Primitive.span,{"data-state":B(a.checked),"data-disabled":a.disabled?"":void 0,...s,ref:n})},"SwitchThumb")),M=n.forwardRef(E(function({__scopeSwitch:e,onClick:r,...s},a){let{control:o,hasConsumerStoppedPropagationRef:i,userInteractionCount:l,checked:c,defaultChecked:d,required:u,disabled:f,name:x,value:m,form:p,bubbleInput:h,setBubbleInput:g}=P("SwitchBubbleInput",e),j=(0,y.useComposedRefs)(a,g),b=(0,N.useSize)(o),v=n.useRef(!1),w=n.useRef(c),k=n.useRef(l);n.useEffect(()=>{if(!h)return;let e=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set,t=l!==k.current;k.current=l;let n=w.current!==c;w.current=c;let r=!(t&&i.current);if(n&&e){v.current=!t;let n=new Event("click",{bubbles:r});e.call(h,c),h.dispatchEvent(n),v.current=!1}},[h,c,i,l]);let D=n.useRef(c);return(0,t.jsx)(S.Primitive.input,{type:"checkbox","aria-hidden":!0,defaultChecked:d??D.current,required:u,disabled:f,name:x,value:m,form:p,...s,tabIndex:-1,ref:j,onClick:(0,C.composeEventHandlers)(r,e=>{v.current&&e.stopPropagation()}),style:{...s.style,...b,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})},"SwitchBubbleInput"));function H(e){return"function"==typeof e}function B(e){return e?"checked":"unchecked"}E(H,"isFunction"),E(B,"getState");var U=e.i(33178);function $({className:e,...n}){return(0,t.jsx)(z,{"data-slot":"switch",className:(0,U.cn)("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",e),...n,children:(0,t.jsx)(O,{"data-slot":"switch-thumb",className:(0,U.cn)("bg-background pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0")})})}let _=i.z.object({name:i.z.string().min(1,"Give this configuration a name"),clientId:i.z.string().min(1,"Client ID is required"),clientSecret:i.z.string(),isEnabled:i.z.boolean()});function q(){let{id:e}=(0,r.useParams)(),i=(0,r.useRouter)(),{data:C,loading:y,error:w}=(0,c.useApiResource)(async()=>{let t=await (0,l.getConfiguration)(e),n=await (0,l.getIntegration)(t.provider.key);return{configuration:t,integration:n}},[e]),[k,N]=(0,n.useState)([]),[S,D]=(0,n.useState)({}),[E,A]=(0,n.useState)(!1),[R,F]=(0,n.useState)(!1),I=(0,a.useForm)({resolver:(0,s.zodResolver)(_),defaultValues:{name:"",clientId:"",clientSecret:"",isEnabled:!0}});async function P(t){A(!0);try{await (0,l.updateConfiguration)(e,{name:t.name,clientId:t.clientId,clientSecret:t.clientSecret||void 0,isEnabled:t.isEnabled,scopes:k,settings:S}),o.toast.success("Configuration saved"),i.refresh()}catch(e){I.setError("root",{message:e instanceof l.ApiError?e.message:"Could not save configuration"})}finally{A(!1)}}async function T(){F(!0);try{let t=await (0,l.createTestConnectSession)(e);window.open(t.connectUrl,"_blank","noopener,noreferrer")}catch(e){o.toast.error(e instanceof l.ApiError?e.message:"Could not start a test connection")}finally{F(!1)}}async function L(){try{await (0,l.deleteConfiguration)(e),o.toast.success("Configuration deleted"),i.push("/configurations")}catch(e){o.toast.error(e instanceof l.ApiError?e.message:"Could not delete configuration")}}if((0,n.useEffect)(()=>{C&&(I.reset({name:C.configuration.name,clientId:C.configuration.clientId??"",clientSecret:"",isEnabled:C.configuration.isEnabled}),N(C.configuration.scopes),D(C.configuration.metadata??{}))},[C]),y)return(0,t.jsxs)("div",{className:"flex max-w-2xl flex-col gap-4",children:[(0,t.jsx)(v.Skeleton,{className:"h-8 w-64"}),(0,t.jsx)(v.Skeleton,{className:"h-64 w-full"})]});if(w||!C)return(0,t.jsx)("p",{className:"text-destructive text-sm",children:w??"Configuration not found"});let{configuration:z,integration:O}=C;return(0,t.jsxs)("div",{className:"flex max-w-2xl flex-col gap-4",children:[(0,t.jsxs)("div",{className:"flex items-start justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h1",{className:"text-xl font-semibold tracking-tight",children:z.name}),(0,t.jsxs)("p",{className:"text-muted-foreground text-sm",children:[O.name," ·"," ",(0,t.jsx)(u.Badge,{variant:"outline",children:z.environment})]})]}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(f.Button,{variant:"outline",onClick:T,disabled:R,children:R?"Starting…":"Test connect"}),(0,t.jsxs)(d.AlertDialog,{children:[(0,t.jsx)(d.AlertDialogTrigger,{asChild:!0,children:(0,t.jsx)(f.Button,{variant:"outline",className:"text-destructive",children:"Delete"})}),(0,t.jsxs)(d.AlertDialogContent,{children:[(0,t.jsxs)(d.AlertDialogHeader,{children:[(0,t.jsxs)(d.AlertDialogTitle,{children:["Delete “",z.name,"”?"]}),(0,t.jsx)(d.AlertDialogDescription,{children:"Existing connections made through this configuration are unaffected, but no new ones can be created. This can't be undone."})]}),(0,t.jsxs)(d.AlertDialogFooter,{children:[(0,t.jsx)(d.AlertDialogCancel,{children:"Cancel"}),(0,t.jsx)(d.AlertDialogAction,{onClick:L,children:"Delete"})]})]})]})]})]}),(0,t.jsxs)(x.Card,{children:[(0,t.jsx)(x.CardHeader,{children:(0,t.jsx)(x.CardTitle,{className:"text-base",children:"Redirect URI"})}),(0,t.jsxs)(x.CardContent,{children:[(0,t.jsxs)("p",{className:"text-muted-foreground mb-2 text-sm",children:["Give this to ",O.name," as the callback URL for this OAuth app."]}),(0,t.jsx)(m.CodeChip,{value:z.redirectUri??""})]})]}),(0,t.jsxs)(x.Card,{children:[(0,t.jsx)(x.CardHeader,{children:(0,t.jsx)(x.CardTitle,{className:"text-base",children:"Slug"})}),(0,t.jsxs)(x.CardContent,{children:[(0,t.jsxs)("p",{className:"text-muted-foreground mb-2 text-sm",children:["What your backend sends as ",(0,t.jsx)("code",{children:"configurationSlug"})," when it calls ",(0,t.jsx)("code",{children:"POST /api/connect/sessions"}),". Fixed at creation."]}),(0,t.jsx)(m.CodeChip,{value:z.slug})]})]}),(0,t.jsx)(x.Card,{children:(0,t.jsx)(x.CardContent,{className:"pt-6",children:(0,t.jsx)(h.Form,{...I,children:(0,t.jsxs)("form",{onSubmit:I.handleSubmit(P),className:"flex flex-col gap-4",children:[(0,t.jsx)(h.FormField,{control:I.control,name:"name",render:({field:e})=>(0,t.jsxs)(h.FormItem,{children:[(0,t.jsx)(h.FormLabel,{children:"Name"}),(0,t.jsx)(h.FormControl,{children:(0,t.jsx)(g.Input,{...e})}),(0,t.jsx)(h.FormMessage,{})]})}),(0,t.jsx)(h.FormField,{control:I.control,name:"isEnabled",render:({field:e})=>(0,t.jsxs)(h.FormItem,{className:"flex flex-row items-center justify-between rounded-lg border p-3",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(h.FormLabel,{children:"Enabled"}),(0,t.jsx)("p",{className:"text-muted-foreground text-sm",children:"Disabled configurations can't start new connect sessions."})]}),(0,t.jsx)(h.FormControl,{children:(0,t.jsx)($,{checked:e.value,onCheckedChange:e.onChange})})]})}),(0,t.jsx)(h.FormField,{control:I.control,name:"clientId",render:({field:e})=>(0,t.jsxs)(h.FormItem,{children:[(0,t.jsx)(h.FormLabel,{children:"Client ID"}),(0,t.jsx)(h.FormControl,{children:(0,t.jsx)(g.Input,{className:"font-mono",...e})}),(0,t.jsx)(h.FormMessage,{})]})}),(0,t.jsx)(h.FormField,{control:I.control,name:"clientSecret",render:({field:e})=>(0,t.jsxs)(h.FormItem,{children:[(0,t.jsx)(h.FormLabel,{children:"Client secret"}),(0,t.jsx)(h.FormControl,{children:(0,t.jsx)(g.Input,{type:"password",className:"font-mono",placeholder:"Leave blank to keep the current secret",...e})}),(0,t.jsx)(h.FormMessage,{})]})}),O.scopesAvailable.length>0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(b.Separator,{}),(0,t.jsxs)("div",{className:"grid gap-1.5",children:[(0,t.jsx)(h.FormLabel,{children:"Scopes"}),(0,t.jsx)(j.ScopesPicker,{scopesAvailable:O.scopesAvailable,value:k,onChange:N})]})]}),O.configFields.length>0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(b.Separator,{}),(0,t.jsx)(p.ConfigFieldsForm,{fields:O.configFields,value:S,onChange:(e,t)=>D(n=>({...n,[e]:t}))})]}),I.formState.errors.root&&(0,t.jsx)("p",{className:"text-destructive text-sm",children:I.formState.errors.root.message}),(0,t.jsx)("div",{className:"flex justify-end pt-2",children:(0,t.jsx)(f.Button,{type:"submit",disabled:E,children:E?"Saving…":"Save changes"})})]})})})})]})}e.s(["default",()=>q],6698)}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,36144,e=>{"use strict";var t=e.i(78234),n=e.i(33178);function r({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card",className:(0,n.cn)("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),...r})}function s({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card-header",className:(0,n.cn)("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...r})}function o({className:e,...r}){return(0,t.jsx)("h3",{"data-slot":"card-title",className:(0,n.cn)("leading-none font-semibold",e),...r})}function i({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card-description",className:(0,n.cn)("text-muted-foreground text-sm",e),...r})}function a({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card-content",className:(0,n.cn)("px-6",e),...r})}e.s(["Card",()=>r,"CardContent",()=>a,"CardDescription",()=>i,"CardHeader",()=>s,"CardTitle",()=>o])},85858,e=>{"use strict";var t=e.i(78234),n=e.i(99975),r=e.i(81137),s=Object.defineProperty,o=n.forwardRef(s(function(e,n){return(0,t.jsx)(r.Primitive.label,{...e,ref:n,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}})},"name",{value:"Label",configurable:!0})),i=e.i(33178);function a({className:e,...n}){return(0,t.jsx)(o,{"data-slot":"label",className:(0,i.cn)("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...n})}e.s(["Label",()=>a],85858)},3161,78309,e=>{"use strict";var t=e.i(99975),n=e.i(76482);class r extends Error{status;constructor(e,t){super(e),this.status=t,this.name="ApiError"}}async function s(e,t){let s=await fetch(`${(0,n.apiUrl)()}/api${e}`,{...t,credentials:"include",headers:{"content-type":"application/json",...t?.headers}});if(!s.ok){let e=await s.json().catch(()=>null);throw new r(e?.message??`Request failed with status ${s.status}`,s.status)}if(204!==s.status)return s.json()}function o(){return s("/integrations")}function i(e){return s(`/integrations/${e}`)}function a(){return s("/configurations")}function l(e){return s(`/configurations/${e}`)}function c(e){return s("/configurations",{method:"POST",body:JSON.stringify(e)})}function d(e,t){return s(`/configurations/${e}`,{method:"PATCH",body:JSON.stringify(t)})}function u(e){return s(`/configurations/${e}`,{method:"DELETE"})}function m(e){let t=e?.endUserExternalId?`?endUserExternalId=${encodeURIComponent(e.endUserExternalId)}`:"";return s(`/connections${t}`)}function f(e){return s(`/connections/${e}`,{method:"DELETE"})}function x(e){return s("/connect/sessions/test",{method:"POST",body:JSON.stringify({configurationId:e})})}function h(e,n=[]){let[s,o]=(0,t.useState)(null),[i,a]=(0,t.useState)(!0),[l,c]=(0,t.useState)(null),d=(0,t.useCallback)(()=>{a(!0),c(null),e().then(o).catch(e=>c(e instanceof r?e.message:"Something went wrong")).finally(()=>a(!1))},n);return(0,t.useEffect)(()=>{d()},[d]),{data:s,loading:i,error:l,reload:d}}e.s(["ApiError",()=>r,"createConfiguration",()=>c,"createTestConnectSession",()=>x,"deleteConfiguration",()=>u,"getConfiguration",()=>l,"getIntegration",()=>i,"listConfigurations",()=>a,"listConnections",()=>m,"listIntegrations",()=>o,"revokeConnection",()=>f,"updateConfiguration",()=>d],78309),e.s(["useApiResource",()=>h],3161)},50824,31403,e=>{"use strict";var t=e.i(78234),n=e.i(99975),r=e.i(76173),s=e.i(64503),o=e.i(43836),i=e.i(76440),a=e.i(72261),l=e.i(26747),c=e.i(81137),d=Object.defineProperty,u=(e,t)=>d(e,"name",{value:t,configurable:!0}),m="Checkbox",[f,x]=(0,s.createContextScope)(m),[h,p]=f(m);function g(e){let{__scopeCheckbox:r,checked:s,children:o,defaultChecked:a,disabled:l,form:c,name:d,onCheckedChange:u,required:f,value:x="on",internal_do_not_use_render:p}=e,[g,j]=(0,i.useControllableState)({prop:s,defaultProp:a??!1,onChange:u,caller:m}),[v,b]=n.useState(null),[y,w]=n.useState(null),N=n.useRef(!1),[S,E]=n.useReducer(e=>e+1,0),F=!v||!!c||!!v.closest("form"),I={checked:g,disabled:l,setChecked:j,control:v,setControl:b,name:d,form:c,value:x,hasConsumerStoppedPropagationRef:N,userInteractionCount:S,onUserInteraction:E,required:f,defaultChecked:!k(a)&&a,isFormControl:F,bubbleInput:y,setBubbleInput:w};return(0,t.jsx)(h,{scope:r,...I,children:C(p)?p(I):o})}u(g,"CheckboxProvider");var j=n.forwardRef(u(function({__scopeCheckbox:e,onKeyDown:s,onClick:i,...a},l){let{control:d,value:m,disabled:f,checked:x,required:h,setControl:g,setChecked:j,hasConsumerStoppedPropagationRef:v,onUserInteraction:b,isFormControl:y,bubbleInput:C}=p("CheckboxTrigger",e),N=(0,r.useComposedRefs)(l,g),S=n.useRef(x);return n.useEffect(()=>{let e=d?.form;if(e){let t=u(()=>j(S.current),"reset");return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[d,j]),(0,t.jsx)(c.Primitive.button,{type:"button",role:"checkbox","aria-checked":k(x)?"mixed":x,"aria-required":h,"data-state":w(x),"data-disabled":f?"":void 0,disabled:f,value:m,...a,ref:N,onKeyDown:(0,o.composeEventHandlers)(s,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:(0,o.composeEventHandlers)(i,e=>{b(),j(e=>!!k(e)||!e),C&&y&&(v.current=e.isPropagationStopped(),v.current||e.stopPropagation())})})},"CheckboxTrigger")),v=n.forwardRef(u(function(e,n){let{__scopeCheckbox:r,name:s,checked:o,defaultChecked:i,required:a,disabled:l,value:c,onCheckedChange:d,form:u,...m}=e;return(0,t.jsx)(g,{__scopeCheckbox:r,checked:o,defaultChecked:i,disabled:l,required:a,onCheckedChange:d,name:s,form:u,value:c,internal_do_not_use_render:({isFormControl:e})=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(j,{...m,ref:n,__scopeCheckbox:r}),e&&(0,t.jsx)(y,{__scopeCheckbox:r})]})})},"Checkbox")),b=n.forwardRef(u(function(e,n){let{__scopeCheckbox:r,forceMount:s,...o}=e,i=p("CheckboxIndicator",r);return(0,t.jsx)(l.Presence,{present:s||k(i.checked)||!0===i.checked,children:(0,t.jsx)(c.Primitive.span,{"data-state":w(i.checked),"data-disabled":i.disabled?"":void 0,...o,ref:n,style:{pointerEvents:"none",...e.style}})})},"CheckboxIndicator")),y=n.forwardRef(u(function({__scopeCheckbox:e,onClick:s,...i},l){let{control:d,hasConsumerStoppedPropagationRef:u,userInteractionCount:m,checked:f,defaultChecked:x,required:h,disabled:g,name:j,value:v,form:b,bubbleInput:y,setBubbleInput:C}=p("CheckboxBubbleInput",e),w=(0,r.useComposedRefs)(l,C),N=(0,a.useSize)(d),S=n.useRef(!1),E=n.useRef(f),F=n.useRef(m);n.useEffect(()=>{if(!y)return;let e=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set,t=m!==F.current;F.current=m;let n=E.current!==f;E.current=f;let r=!(t&&u.current);if(n&&e){S.current=!t;let n=new Event("click",{bubbles:r});y.indeterminate=k(f),e.call(y,!k(f)&&f),y.dispatchEvent(n),S.current=!1}},[y,f,u,m]);let I=n.useRef(!k(f)&&f);return(0,t.jsx)(c.Primitive.input,{type:"checkbox","aria-hidden":!0,defaultChecked:x??I.current,required:h,disabled:g,name:j,value:v,form:b,...i,tabIndex:-1,ref:w,onClick:(0,o.composeEventHandlers)(s,e=>{S.current&&e.stopPropagation()}),style:{...i.style,...N,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})},"CheckboxBubbleInput"));function C(e){return"function"==typeof e}function k(e){return"indeterminate"===e}function w(e){return k(e)?"indeterminate":e?"checked":"unchecked"}u(C,"isFunction"),u(k,"isIndeterminate"),u(w,"getState");var N=e.i(41796),S=e.i(33178);function E({className:e,...n}){return(0,t.jsx)(v,{"data-slot":"checkbox",className:(0,S.cn)("peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",e),...n,children:(0,t.jsx)(b,{"data-slot":"checkbox-indicator",className:"flex items-center justify-center text-current transition-none",children:(0,t.jsx)(N.CheckIcon,{className:"size-3.5"})})})}var F=e.i(43711),I=e.i(85858),R=e.i(10395);function D({fields:e,value:n,onChange:r}){return 0===e.length?null:(0,t.jsx)("div",{className:"flex flex-col gap-4",children:e.map(e=>{let s=`config-field-${e.key}`,o=n[e.key];return"boolean"===e.type?(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(E,{id:s,checked:!0===o,onCheckedChange:t=>r(e.key,!0===t)}),(0,t.jsxs)(I.Label,{htmlFor:s,className:"font-normal",children:[e.label,e.required&&(0,t.jsx)("span",{className:"text-destructive",children:" *"})]})]},e.key):"select"===e.type?(0,t.jsxs)("div",{className:"grid gap-1.5",children:[(0,t.jsxs)(I.Label,{htmlFor:s,children:[e.label,e.required&&(0,t.jsx)("span",{className:"text-destructive",children:" *"})]}),(0,t.jsxs)(R.Select,{value:"string"==typeof o?o:void 0,onValueChange:t=>r(e.key,t),children:[(0,t.jsx)(R.SelectTrigger,{id:s,className:"w-full",children:(0,t.jsx)(R.SelectValue,{placeholder:"Select…"})}),(0,t.jsx)(R.SelectContent,{children:(e.options??[]).map(e=>(0,t.jsx)(R.SelectItem,{value:e.value,children:e.label},e.value))})]}),e.help&&(0,t.jsx)("p",{className:"text-muted-foreground text-sm",children:e.help})]},e.key):(0,t.jsxs)("div",{className:"grid gap-1.5",children:[(0,t.jsxs)(I.Label,{htmlFor:s,children:[e.label,e.required&&(0,t.jsx)("span",{className:"text-destructive",children:" *"})]}),(0,t.jsx)(F.Input,{id:s,type:"number"===e.type?"number":e.secret?"password":"text",value:"string"==typeof o||"number"==typeof o?o:"",onChange:t=>r(e.key,"number"===e.type?t.target.valueAsNumber:t.target.value)}),e.help&&(0,t.jsx)("p",{className:"text-muted-foreground text-sm",children:e.help})]},e.key)})})}e.s(["ConfigFieldsForm",()=>D],50824);var L=e.i(79081),P=e.i(6435),P=P,A=e.i(67022);function T({options:e,value:r,onChange:s,placeholder:o,className:i}){let[a,l]=(0,n.useState)(!1),[c,d]=(0,n.useState)(""),[u,m]=(0,n.useState)(0),f=(0,n.useRef)(null),x=(0,n.useRef)(null),h=e.filter(e=>e.toLowerCase().includes(c.toLowerCase()));function p(e){s(r.includes(e)?r.filter(t=>t!==e):[...r,e]),d("")}return(0,n.useEffect)(()=>{m(0)},[c,a]),(0,n.useEffect)(()=>{function e(e){f.current?.contains(e.target)||l(!1)}return document.addEventListener("pointerdown",e),()=>document.removeEventListener("pointerdown",e)},[]),(0,t.jsxs)("div",{ref:f,className:(0,S.cn)("relative",i),children:[(0,t.jsxs)("div",{className:"border-input focus-within:border-ring focus-within:ring-ring/50 flex min-h-9 w-full flex-wrap items-center gap-1.5 rounded-md border bg-transparent px-2 py-1.5 text-sm shadow-xs transition-[color,box-shadow] focus-within:ring-[3px]",onClick:()=>{l(!0),x.current?.focus()},children:[r.map(e=>(0,t.jsxs)(A.Badge,{variant:"secondary",className:"gap-1 font-mono",children:[e,(0,t.jsxs)("button",{type:"button",onMouseDown:t=>{t.preventDefault(),t.stopPropagation(),p(e)},className:"text-muted-foreground hover:text-foreground",children:[(0,t.jsx)(P.default,{className:"size-3"}),(0,t.jsxs)("span",{className:"sr-only",children:["Remove ",e]})]})]},e)),(0,t.jsx)("input",{ref:x,value:c,onChange:e=>d(e.target.value),onFocus:()=>l(!0),onKeyDown:function(e){if("Backspace"===e.key&&""===c&&r.length>0)return void s(r.slice(0,-1));if(!a&&("ArrowDown"===e.key||"Enter"===e.key))return void l(!0);if("ArrowDown"===e.key)e.preventDefault(),m(e=>Math.min(e+1,h.length-1));else if("ArrowUp"===e.key)e.preventDefault(),m(e=>Math.max(e-1,0));else if("Enter"===e.key){e.preventDefault();let t=h[u];t&&p(t)}else"Escape"===e.key&&l(!1)},placeholder:0===r.length?o:void 0,className:"text-foreground placeholder:text-muted-foreground min-w-24 flex-1 bg-transparent outline-none"})]}),a&&(0,t.jsxs)("div",{className:"bg-popover text-popover-foreground absolute z-50 mt-1 max-h-64 w-full overflow-auto rounded-md border p-1 shadow-md",children:[0===h.length&&(0,t.jsx)("p",{className:"text-muted-foreground px-2 py-1.5 text-sm",children:"No matches"}),h.map((e,n)=>{let s=r.includes(e);return(0,t.jsxs)("button",{type:"button",onMouseDown:t=>{t.preventDefault(),p(e)},onMouseEnter:()=>m(n),className:(0,S.cn)("flex w-full items-center justify-between gap-2 rounded-sm px-2 py-1.5 text-left font-mono text-sm",n===u&&"bg-accent text-accent-foreground"),children:[e,s&&(0,t.jsx)(L.Check,{className:"size-4 shrink-0"})]},e)})]})]})}function z({scopesAvailable:e,value:n,onChange:r}){return 0===e.length?null:(0,t.jsx)(T,{options:e,value:n,onChange:r,placeholder:"Add scopes…"})}e.s(["ScopesPicker",()=>z],31403)},21894,e=>{"use strict";var t=e.i(78234),n=e.i(99975),r=e.i(59636),s=e.i(14315);let o=(0,e.i(48045).default)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);var i=e.i(68120),a=e.i(27940),l=e.i(32356),c=e.i(78309),d=e.i(3161),u=e.i(67022),m=e.i(81404),f=e.i(36144),x=e.i(50824),h=e.i(9018),p=e.i(43711),g=e.i(10395),j=e.i(31403),v=e.i(77785);let b=l.z.object({name:l.z.string().min(1,"Give this configuration a name"),environment:l.z.enum(["LIVE","SANDBOX"]),clientId:l.z.string().min(1,"Client ID is required"),clientSecret:l.z.string().min(1,"Client secret is required")});function y(){let e=(0,r.useRouter)(),{data:l,loading:y}=(0,d.useApiResource)(c.listIntegrations),[C,k]=(0,n.useState)(null),[w,N]=(0,n.useState)([]),[S,E]=(0,n.useState)({}),[F,I]=(0,n.useState)(!1),R=(0,i.useForm)({resolver:(0,s.zodResolver)(b),defaultValues:{name:"",environment:"LIVE",clientId:"",clientSecret:""}});async function D(t){if(C){I(!0);try{let n=await (0,c.createConfiguration)({provider:C.key,name:t.name,clientId:t.clientId,clientSecret:t.clientSecret,environment:t.environment,scopes:w,settings:S});a.toast.success(`Created "${n.name}"`),e.push(`/configurations/${n.id}`)}catch(e){R.setError("root",{message:e instanceof c.ApiError?e.message:"Could not create configuration"})}finally{I(!1)}}}return C?(0,t.jsxs)("div",{className:"flex max-w-2xl flex-col gap-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsxs)(m.Button,{variant:"ghost",size:"sm",className:"-ml-2 mb-2",onClick:()=>k(null),children:[(0,t.jsx)(o,{}),"Choose a different provider"]}),(0,t.jsxs)("h1",{className:"text-xl font-semibold tracking-tight",children:["New ",C.name," configuration"]})]}),(0,t.jsx)(f.Card,{children:(0,t.jsx)(f.CardContent,{className:"pt-6",children:(0,t.jsx)(h.Form,{...R,children:(0,t.jsxs)("form",{onSubmit:R.handleSubmit(D),className:"flex flex-col gap-4",children:[(0,t.jsx)(h.FormField,{control:R.control,name:"name",render:({field:e})=>(0,t.jsxs)(h.FormItem,{children:[(0,t.jsx)(h.FormLabel,{children:"Name"}),(0,t.jsx)(h.FormControl,{children:(0,t.jsx)(p.Input,{placeholder:`${C.name} production`,...e})}),(0,t.jsx)(h.FormMessage,{})]})}),(0,t.jsx)(h.FormField,{control:R.control,name:"environment",render:({field:e})=>(0,t.jsxs)(h.FormItem,{children:[(0,t.jsx)(h.FormLabel,{children:"Environment"}),(0,t.jsxs)(g.Select,{value:e.value,onValueChange:e.onChange,children:[(0,t.jsx)(h.FormControl,{children:(0,t.jsx)(g.SelectTrigger,{className:"w-full",children:(0,t.jsx)(g.SelectValue,{})})}),(0,t.jsxs)(g.SelectContent,{children:[(0,t.jsx)(g.SelectItem,{value:"LIVE",children:"Live"}),(0,t.jsx)(g.SelectItem,{value:"SANDBOX",children:"Sandbox"})]})]}),(0,t.jsx)(h.FormMessage,{})]})}),(0,t.jsx)(h.FormField,{control:R.control,name:"clientId",render:({field:e})=>(0,t.jsxs)(h.FormItem,{children:[(0,t.jsx)(h.FormLabel,{children:"Client ID"}),(0,t.jsx)(h.FormControl,{children:(0,t.jsx)(p.Input,{className:"font-mono",...e})}),(0,t.jsx)(h.FormMessage,{})]})}),(0,t.jsx)(h.FormField,{control:R.control,name:"clientSecret",render:({field:e})=>(0,t.jsxs)(h.FormItem,{children:[(0,t.jsx)(h.FormLabel,{children:"Client secret"}),(0,t.jsx)(h.FormControl,{children:(0,t.jsx)(p.Input,{type:"password",className:"font-mono",...e})}),(0,t.jsx)(h.FormMessage,{})]})}),C.scopesAvailable.length>0&&(0,t.jsxs)("div",{className:"grid gap-1.5",children:[(0,t.jsx)(h.FormLabel,{children:"Scopes"}),(0,t.jsx)(j.ScopesPicker,{scopesAvailable:C.scopesAvailable,value:w,onChange:N})]}),(0,t.jsx)(x.ConfigFieldsForm,{fields:C.configFields,value:S,onChange:(e,t)=>E(n=>({...n,[e]:t}))}),R.formState.errors.root&&(0,t.jsx)("p",{className:"text-destructive text-sm",children:R.formState.errors.root.message}),(0,t.jsx)("div",{className:"flex justify-end gap-2 pt-2",children:(0,t.jsx)(m.Button,{type:"submit",disabled:F,children:F?"Creating…":"Create configuration"})})]})})})})]}):(0,t.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h1",{className:"text-xl font-semibold tracking-tight",children:"New configuration"}),(0,t.jsx)("p",{className:"text-muted-foreground text-sm",children:"Pick the provider your users will connect to."})]}),y&&(0,t.jsxs)("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3",children:[(0,t.jsx)(v.Skeleton,{className:"h-24 w-full"}),(0,t.jsx)(v.Skeleton,{className:"h-24 w-full"}),(0,t.jsx)(v.Skeleton,{className:"h-24 w-full"})]}),!y&&(0,t.jsx)("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3",children:(l??[]).map(e=>(0,t.jsxs)(f.Card,{role:"button",tabIndex:0,onClick:()=>k(e),onKeyDown:t=>"Enter"===t.key&&k(e),className:"hover:border-primary/50 cursor-pointer transition-colors",children:[(0,t.jsx)(f.CardHeader,{children:(0,t.jsxs)(f.CardTitle,{className:"flex items-center justify-between text-base",children:[e.name,(0,t.jsx)(u.Badge,{variant:"outline",children:e.authType})]})}),(0,t.jsxs)(f.CardContent,{className:"text-muted-foreground text-sm",children:[e.scopesAvailable.length," scope",1===e.scopesAvailable.length?"":"s"," ","available"]})]},e.key))})]})}e.s(["default",()=>y],21894)}]);
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,36144,e=>{"use strict";var t=e.i(78234),n=e.i(33178);function r({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card",className:(0,n.cn)("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),...r})}function s({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card-header",className:(0,n.cn)("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...r})}function o({className:e,...r}){return(0,t.jsx)("h3",{"data-slot":"card-title",className:(0,n.cn)("leading-none font-semibold",e),...r})}function i({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card-description",className:(0,n.cn)("text-muted-foreground text-sm",e),...r})}function a({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card-content",className:(0,n.cn)("px-6",e),...r})}e.s(["Card",()=>r,"CardContent",()=>a,"CardDescription",()=>i,"CardHeader",()=>s,"CardTitle",()=>o])},85858,e=>{"use strict";var t=e.i(78234),n=e.i(99975),r=e.i(81137),s=Object.defineProperty,o=n.forwardRef(s(function(e,n){return(0,t.jsx)(r.Primitive.label,{...e,ref:n,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}})},"name",{value:"Label",configurable:!0})),i=e.i(33178);function a({className:e,...n}){return(0,t.jsx)(o,{"data-slot":"label",className:(0,i.cn)("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...n})}e.s(["Label",()=>a],85858)},3161,78309,e=>{"use strict";var t=e.i(99975),n=e.i(76482);class r extends Error{status;constructor(e,t){super(e),this.status=t,this.name="ApiError"}}async function s(e,t){let s=await fetch(`${(0,n.apiUrl)()}/api${e}`,{...t,credentials:"include",headers:{"content-type":"application/json",...t?.headers}});if(!s.ok){let e=await s.json().catch(()=>null);throw new r(e?.message??`Request failed with status ${s.status}`,s.status)}if(204!==s.status)return s.json()}function o(){return s("/integrations")}function i(e){return s(`/integrations/${e}`)}function a(){return s("/configurations")}function l(e){return s(`/configurations/${e}`)}function c(e){return s("/configurations",{method:"POST",body:JSON.stringify(e)})}function d(e,t){return s(`/configurations/${e}`,{method:"PATCH",body:JSON.stringify(t)})}function u(e){return s(`/configurations/${e}`,{method:"DELETE"})}function m(e){let t=e?.endUserExternalId?`?endUserExternalId=${encodeURIComponent(e.endUserExternalId)}`:"";return s(`/connections${t}`)}function f(e){return s(`/connections/${e}`,{method:"DELETE"})}function x(e){return s("/connect/sessions/test",{method:"POST",body:JSON.stringify({configurationId:e})})}function h(e,n=[]){let[s,o]=(0,t.useState)(null),[i,a]=(0,t.useState)(!0),[l,c]=(0,t.useState)(null),d=(0,t.useCallback)(()=>{a(!0),c(null),e().then(o).catch(e=>c(e instanceof r?e.message:"Something went wrong")).finally(()=>a(!1))},n);return(0,t.useEffect)(()=>{d()},[d]),{data:s,loading:i,error:l,reload:d}}e.s(["ApiError",()=>r,"createConfiguration",()=>c,"createTestConnectSession",()=>x,"deleteConfiguration",()=>u,"getConfiguration",()=>l,"getIntegration",()=>i,"listConfigurations",()=>a,"listConnections",()=>m,"listIntegrations",()=>o,"revokeConnection",()=>f,"updateConfiguration",()=>d],78309),e.s(["useApiResource",()=>h],3161)},50824,31403,e=>{"use strict";var t=e.i(78234),n=e.i(99975),r=e.i(76173),s=e.i(64503),o=e.i(43836),i=e.i(76440),a=e.i(72261),l=e.i(26747),c=e.i(81137),d=Object.defineProperty,u=(e,t)=>d(e,"name",{value:t,configurable:!0}),m="Checkbox",[f,x]=(0,s.createContextScope)(m),[h,p]=f(m);function g(e){let{__scopeCheckbox:r,checked:s,children:o,defaultChecked:a,disabled:l,form:c,name:d,onCheckedChange:u,required:f,value:x="on",internal_do_not_use_render:p}=e,[g,j]=(0,i.useControllableState)({prop:s,defaultProp:a??!1,onChange:u,caller:m}),[v,b]=n.useState(null),[y,w]=n.useState(null),N=n.useRef(!1),[S,F]=n.useReducer(e=>e+1,0),E=!v||!!c||!!v.closest("form"),I={checked:g,disabled:l,setChecked:j,control:v,setControl:b,name:d,form:c,value:x,hasConsumerStoppedPropagationRef:N,userInteractionCount:S,onUserInteraction:F,required:f,defaultChecked:!k(a)&&a,isFormControl:E,bubbleInput:y,setBubbleInput:w};return(0,t.jsx)(h,{scope:r,...I,children:C(p)?p(I):o})}u(g,"CheckboxProvider");var j=n.forwardRef(u(function({__scopeCheckbox:e,onKeyDown:s,onClick:i,...a},l){let{control:d,value:m,disabled:f,checked:x,required:h,setControl:g,setChecked:j,hasConsumerStoppedPropagationRef:v,onUserInteraction:b,isFormControl:y,bubbleInput:C}=p("CheckboxTrigger",e),N=(0,r.useComposedRefs)(l,g),S=n.useRef(x);return n.useEffect(()=>{let e=d?.form;if(e){let t=u(()=>j(S.current),"reset");return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[d,j]),(0,t.jsx)(c.Primitive.button,{type:"button",role:"checkbox","aria-checked":k(x)?"mixed":x,"aria-required":h,"data-state":w(x),"data-disabled":f?"":void 0,disabled:f,value:m,...a,ref:N,onKeyDown:(0,o.composeEventHandlers)(s,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:(0,o.composeEventHandlers)(i,e=>{b(),j(e=>!!k(e)||!e),C&&y&&(v.current=e.isPropagationStopped(),v.current||e.stopPropagation())})})},"CheckboxTrigger")),v=n.forwardRef(u(function(e,n){let{__scopeCheckbox:r,name:s,checked:o,defaultChecked:i,required:a,disabled:l,value:c,onCheckedChange:d,form:u,...m}=e;return(0,t.jsx)(g,{__scopeCheckbox:r,checked:o,defaultChecked:i,disabled:l,required:a,onCheckedChange:d,name:s,form:u,value:c,internal_do_not_use_render:({isFormControl:e})=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(j,{...m,ref:n,__scopeCheckbox:r}),e&&(0,t.jsx)(y,{__scopeCheckbox:r})]})})},"Checkbox")),b=n.forwardRef(u(function(e,n){let{__scopeCheckbox:r,forceMount:s,...o}=e,i=p("CheckboxIndicator",r);return(0,t.jsx)(l.Presence,{present:s||k(i.checked)||!0===i.checked,children:(0,t.jsx)(c.Primitive.span,{"data-state":w(i.checked),"data-disabled":i.disabled?"":void 0,...o,ref:n,style:{pointerEvents:"none",...e.style}})})},"CheckboxIndicator")),y=n.forwardRef(u(function({__scopeCheckbox:e,onClick:s,...i},l){let{control:d,hasConsumerStoppedPropagationRef:u,userInteractionCount:m,checked:f,defaultChecked:x,required:h,disabled:g,name:j,value:v,form:b,bubbleInput:y,setBubbleInput:C}=p("CheckboxBubbleInput",e),w=(0,r.useComposedRefs)(l,C),N=(0,a.useSize)(d),S=n.useRef(!1),F=n.useRef(f),E=n.useRef(m);n.useEffect(()=>{if(!y)return;let e=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set,t=m!==E.current;E.current=m;let n=F.current!==f;F.current=f;let r=!(t&&u.current);if(n&&e){S.current=!t;let n=new Event("click",{bubbles:r});y.indeterminate=k(f),e.call(y,!k(f)&&f),y.dispatchEvent(n),S.current=!1}},[y,f,u,m]);let I=n.useRef(!k(f)&&f);return(0,t.jsx)(c.Primitive.input,{type:"checkbox","aria-hidden":!0,defaultChecked:x??I.current,required:h,disabled:g,name:j,value:v,form:b,...i,tabIndex:-1,ref:w,onClick:(0,o.composeEventHandlers)(s,e=>{S.current&&e.stopPropagation()}),style:{...i.style,...N,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})},"CheckboxBubbleInput"));function C(e){return"function"==typeof e}function k(e){return"indeterminate"===e}function w(e){return k(e)?"indeterminate":e?"checked":"unchecked"}u(C,"isFunction"),u(k,"isIndeterminate"),u(w,"getState");var N=e.i(41796),S=e.i(33178);function F({className:e,...n}){return(0,t.jsx)(v,{"data-slot":"checkbox",className:(0,S.cn)("peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",e),...n,children:(0,t.jsx)(b,{"data-slot":"checkbox-indicator",className:"flex items-center justify-center text-current transition-none",children:(0,t.jsx)(N.CheckIcon,{className:"size-3.5"})})})}var E=e.i(43711),I=e.i(85858),D=e.i(10395);function L({fields:e,value:n,onChange:r}){return 0===e.length?null:(0,t.jsx)("div",{className:"flex flex-col gap-4",children:e.map(e=>{let s=`config-field-${e.key}`,o=n[e.key];return"boolean"===e.type?(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(F,{id:s,checked:!0===o,onCheckedChange:t=>r(e.key,!0===t)}),(0,t.jsxs)(I.Label,{htmlFor:s,className:"font-normal",children:[e.label,e.required&&(0,t.jsx)("span",{className:"text-destructive",children:" *"})]})]},e.key):"select"===e.type?(0,t.jsxs)("div",{className:"grid gap-1.5",children:[(0,t.jsxs)(I.Label,{htmlFor:s,children:[e.label,e.required&&(0,t.jsx)("span",{className:"text-destructive",children:" *"})]}),(0,t.jsxs)(D.Select,{value:"string"==typeof o?o:void 0,onValueChange:t=>r(e.key,t),children:[(0,t.jsx)(D.SelectTrigger,{id:s,className:"w-full",children:(0,t.jsx)(D.SelectValue,{placeholder:"Select…"})}),(0,t.jsx)(D.SelectContent,{children:(e.options??[]).map(e=>(0,t.jsx)(D.SelectItem,{value:e.value,children:e.label},e.value))})]}),e.help&&(0,t.jsx)("p",{className:"text-muted-foreground text-sm",children:e.help})]},e.key):(0,t.jsxs)("div",{className:"grid gap-1.5",children:[(0,t.jsxs)(I.Label,{htmlFor:s,children:[e.label,e.required&&(0,t.jsx)("span",{className:"text-destructive",children:" *"})]}),(0,t.jsx)(E.Input,{id:s,type:"number"===e.type?"number":e.secret?"password":"text",value:"string"==typeof o||"number"==typeof o?o:"",onChange:t=>r(e.key,"number"===e.type?t.target.valueAsNumber:t.target.value)}),e.help&&(0,t.jsx)("p",{className:"text-muted-foreground text-sm",children:e.help})]},e.key)})})}e.s(["ConfigFieldsForm",()=>L],50824);var R=e.i(79081),P=e.i(6435),P=P,A=e.i(67022);function T({options:e,value:r,onChange:s,placeholder:o,className:i}){let[a,l]=(0,n.useState)(!1),[c,d]=(0,n.useState)(""),[u,m]=(0,n.useState)(0),f=(0,n.useRef)(null),x=(0,n.useRef)(null),h=e.filter(e=>e.toLowerCase().includes(c.toLowerCase()));function p(e){s(r.includes(e)?r.filter(t=>t!==e):[...r,e]),d("")}return(0,n.useEffect)(()=>{m(0)},[c,a]),(0,n.useEffect)(()=>{function e(e){f.current?.contains(e.target)||l(!1)}return document.addEventListener("pointerdown",e),()=>document.removeEventListener("pointerdown",e)},[]),(0,t.jsxs)("div",{ref:f,className:(0,S.cn)("relative",i),children:[(0,t.jsxs)("div",{className:"border-input focus-within:border-ring focus-within:ring-ring/50 flex min-h-9 w-full flex-wrap items-center gap-1.5 rounded-md border bg-transparent px-2 py-1.5 text-sm shadow-xs transition-[color,box-shadow] focus-within:ring-[3px]",onClick:()=>{l(!0),x.current?.focus()},children:[r.map(e=>(0,t.jsxs)(A.Badge,{variant:"secondary",className:"gap-1 font-mono",children:[e,(0,t.jsxs)("button",{type:"button",onMouseDown:t=>{t.preventDefault(),t.stopPropagation(),p(e)},className:"text-muted-foreground hover:text-foreground",children:[(0,t.jsx)(P.default,{className:"size-3"}),(0,t.jsxs)("span",{className:"sr-only",children:["Remove ",e]})]})]},e)),(0,t.jsx)("input",{ref:x,value:c,onChange:e=>d(e.target.value),onFocus:()=>l(!0),onKeyDown:function(e){if("Backspace"===e.key&&""===c&&r.length>0)return void s(r.slice(0,-1));if(!a&&("ArrowDown"===e.key||"Enter"===e.key))return void l(!0);if("ArrowDown"===e.key)e.preventDefault(),m(e=>Math.min(e+1,h.length-1));else if("ArrowUp"===e.key)e.preventDefault(),m(e=>Math.max(e-1,0));else if("Enter"===e.key){e.preventDefault();let t=h[u];t&&p(t)}else"Escape"===e.key&&l(!1)},placeholder:0===r.length?o:void 0,className:"text-foreground placeholder:text-muted-foreground min-w-24 flex-1 bg-transparent outline-none"})]}),a&&(0,t.jsxs)("div",{className:"bg-popover text-popover-foreground absolute z-50 mt-1 max-h-64 w-full overflow-auto rounded-md border p-1 shadow-md",children:[0===h.length&&(0,t.jsx)("p",{className:"text-muted-foreground px-2 py-1.5 text-sm",children:"No matches"}),h.map((e,n)=>{let s=r.includes(e);return(0,t.jsxs)("button",{type:"button",onMouseDown:t=>{t.preventDefault(),p(e)},onMouseEnter:()=>m(n),className:(0,S.cn)("flex w-full items-center justify-between gap-2 rounded-sm px-2 py-1.5 text-left font-mono text-sm",n===u&&"bg-accent text-accent-foreground"),children:[e,s&&(0,t.jsx)(R.Check,{className:"size-4 shrink-0"})]},e)})]})]})}function z({scopesAvailable:e,value:n,onChange:r}){return 0===e.length?null:(0,t.jsx)(T,{options:e,value:n,onChange:r,placeholder:"Add scopes…"})}e.s(["ScopesPicker",()=>z],31403)},21894,e=>{"use strict";var t=e.i(78234),n=e.i(99975),r=e.i(59636),s=e.i(14315);let o=(0,e.i(48045).default)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);var i=e.i(68120),a=e.i(27940),l=e.i(32356),c=e.i(78309),d=e.i(3161),u=e.i(67022),m=e.i(81404),f=e.i(36144),x=e.i(50824),h=e.i(9018),p=e.i(43711),g=e.i(10395),j=e.i(31403),v=e.i(77785);let b=l.z.object({name:l.z.string().min(1,"Give this configuration a name"),slug:l.z.string().regex(/^[a-z0-9-]*$/,"Lowercase letters, digits and dashes only"),environment:l.z.enum(["LIVE","SANDBOX"]),clientId:l.z.string().min(1,"Client ID is required"),clientSecret:l.z.string().min(1,"Client secret is required")});function y(){let e=(0,r.useRouter)(),{data:l,loading:y}=(0,d.useApiResource)(c.listIntegrations),[C,k]=(0,n.useState)(null),[w,N]=(0,n.useState)([]),[S,F]=(0,n.useState)({}),[E,I]=(0,n.useState)(!1),D=(0,i.useForm)({resolver:(0,s.zodResolver)(b),defaultValues:{name:"",slug:"",environment:"LIVE",clientId:"",clientSecret:""}});async function L(t){if(C){I(!0);try{let n=await (0,c.createConfiguration)({provider:C.key,name:t.name,slug:t.slug||void 0,clientId:t.clientId,clientSecret:t.clientSecret,environment:t.environment,scopes:w,settings:S});a.toast.success(`Created "${n.name}"`),e.push(`/configurations/${n.id}`)}catch(e){D.setError("root",{message:e instanceof c.ApiError?e.message:"Could not create configuration"})}finally{I(!1)}}}return C?(0,t.jsxs)("div",{className:"flex max-w-2xl flex-col gap-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsxs)(m.Button,{variant:"ghost",size:"sm",className:"-ml-2 mb-2",onClick:()=>k(null),children:[(0,t.jsx)(o,{}),"Choose a different provider"]}),(0,t.jsxs)("h1",{className:"text-xl font-semibold tracking-tight",children:["New ",C.name," configuration"]})]}),(0,t.jsx)(f.Card,{children:(0,t.jsx)(f.CardContent,{className:"pt-6",children:(0,t.jsx)(h.Form,{...D,children:(0,t.jsxs)("form",{onSubmit:D.handleSubmit(L),className:"flex flex-col gap-4",children:[(0,t.jsx)(h.FormField,{control:D.control,name:"name",render:({field:e})=>(0,t.jsxs)(h.FormItem,{children:[(0,t.jsx)(h.FormLabel,{children:"Name"}),(0,t.jsx)(h.FormControl,{children:(0,t.jsx)(p.Input,{placeholder:`${C.name} production`,...e})}),(0,t.jsx)(h.FormMessage,{})]})}),(0,t.jsx)(h.FormField,{control:D.control,name:"slug",render:({field:e})=>(0,t.jsxs)(h.FormItem,{children:[(0,t.jsx)(h.FormLabel,{children:"Slug"}),(0,t.jsx)(h.FormControl,{children:(0,t.jsx)(p.Input,{className:"font-mono",placeholder:C.key,...e})}),(0,t.jsx)(h.FormDescription,{children:"What your own backend names this configuration when it starts a connect flow. Defaults to the name, slugified, and cannot be changed afterwards."}),(0,t.jsx)(h.FormMessage,{})]})}),(0,t.jsx)(h.FormField,{control:D.control,name:"environment",render:({field:e})=>(0,t.jsxs)(h.FormItem,{children:[(0,t.jsx)(h.FormLabel,{children:"Environment"}),(0,t.jsxs)(g.Select,{value:e.value,onValueChange:e.onChange,children:[(0,t.jsx)(h.FormControl,{children:(0,t.jsx)(g.SelectTrigger,{className:"w-full",children:(0,t.jsx)(g.SelectValue,{})})}),(0,t.jsxs)(g.SelectContent,{children:[(0,t.jsx)(g.SelectItem,{value:"LIVE",children:"Live"}),(0,t.jsx)(g.SelectItem,{value:"SANDBOX",children:"Sandbox"})]})]}),(0,t.jsx)(h.FormMessage,{})]})}),(0,t.jsx)(h.FormField,{control:D.control,name:"clientId",render:({field:e})=>(0,t.jsxs)(h.FormItem,{children:[(0,t.jsx)(h.FormLabel,{children:"Client ID"}),(0,t.jsx)(h.FormControl,{children:(0,t.jsx)(p.Input,{className:"font-mono",...e})}),(0,t.jsx)(h.FormMessage,{})]})}),(0,t.jsx)(h.FormField,{control:D.control,name:"clientSecret",render:({field:e})=>(0,t.jsxs)(h.FormItem,{children:[(0,t.jsx)(h.FormLabel,{children:"Client secret"}),(0,t.jsx)(h.FormControl,{children:(0,t.jsx)(p.Input,{type:"password",className:"font-mono",...e})}),(0,t.jsx)(h.FormMessage,{})]})}),C.scopesAvailable.length>0&&(0,t.jsxs)("div",{className:"grid gap-1.5",children:[(0,t.jsx)(h.FormLabel,{children:"Scopes"}),(0,t.jsx)(j.ScopesPicker,{scopesAvailable:C.scopesAvailable,value:w,onChange:N})]}),(0,t.jsx)(x.ConfigFieldsForm,{fields:C.configFields,value:S,onChange:(e,t)=>F(n=>({...n,[e]:t}))}),D.formState.errors.root&&(0,t.jsx)("p",{className:"text-destructive text-sm",children:D.formState.errors.root.message}),(0,t.jsx)("div",{className:"flex justify-end gap-2 pt-2",children:(0,t.jsx)(m.Button,{type:"submit",disabled:E,children:E?"Creating…":"Create configuration"})})]})})})})]}):(0,t.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h1",{className:"text-xl font-semibold tracking-tight",children:"New configuration"}),(0,t.jsx)("p",{className:"text-muted-foreground text-sm",children:"Pick the provider your users will connect to."})]}),y&&(0,t.jsxs)("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3",children:[(0,t.jsx)(v.Skeleton,{className:"h-24 w-full"}),(0,t.jsx)(v.Skeleton,{className:"h-24 w-full"}),(0,t.jsx)(v.Skeleton,{className:"h-24 w-full"})]}),!y&&(0,t.jsx)("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3",children:(l??[]).map(e=>(0,t.jsxs)(f.Card,{role:"button",tabIndex:0,onClick:()=>k(e),onKeyDown:t=>"Enter"===t.key&&k(e),className:"hover:border-primary/50 cursor-pointer transition-colors",children:[(0,t.jsx)(f.CardHeader,{children:(0,t.jsxs)(f.CardTitle,{className:"flex items-center justify-between text-base",children:[e.name,(0,t.jsx)(u.Badge,{variant:"outline",children:e.authType})]})}),(0,t.jsxs)(f.CardContent,{className:"text-muted-foreground text-sm",children:[e.scopesAvailable.length," scope",1===e.scopesAvailable.length?"":"s"," ","available"]})]},e.key))})]})}e.s(["default",()=>y],21894)}]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kosha-ai/admin",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"description": "Kosha admin UI (Next.js standalone build)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"kosha",
|
|
@@ -53,8 +53,8 @@
|
|
|
53
53
|
"@radix-ui/react-separator": "^1.1.1",
|
|
54
54
|
"@radix-ui/react-tooltip": "^1.1.6",
|
|
55
55
|
"@radix-ui/react-label": "^2.1.1",
|
|
56
|
-
"@kosha-ai/server": "0.0.
|
|
57
|
-
"@kosha-ai/integration-sdk": "0.0.
|
|
56
|
+
"@kosha-ai/server": "0.0.4",
|
|
57
|
+
"@kosha-ai/integration-sdk": "0.0.4"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"tailwindcss": "^4.0.0",
|
|
File without changes
|
|
File without changes
|