@nivora/matrix 0.3.7 → 0.3.8
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/BUILD_ID +1 -1
- package/.next/app-path-routes-manifest.json +5 -5
- package/.next/build-manifest.json +3 -3
- package/.next/prerender-manifest.json +3 -3
- package/.next/react-loadable-manifest.json +6 -6
- package/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_global-error.html +2 -2
- package/.next/server/app/_global-error.rsc +1 -1
- package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_not-found.html +1 -1
- package/.next/server/app/_not-found.rsc +1 -1
- package/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_index.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/matrix/page_client-reference-manifest.js +1 -1
- package/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/server/app/releases/[id]/page.js +4 -4
- package/.next/server/app/releases/[id]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/releases/page.js +3 -3
- package/.next/server/app/releases/page_client-reference-manifest.js +1 -1
- package/.next/server/app/specs/[id]/page.js +1 -1
- package/.next/server/app/specs/[id]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/traceability/archive/page.js +2 -2
- package/.next/server/app/traceability/archive/page.js.nft.json +1 -1
- package/.next/server/app/traceability/archive/page_client-reference-manifest.js +1 -1
- package/.next/server/app/traceability/fs/[id]/page.js +3 -3
- package/.next/server/app/traceability/fs/[id]/page.js.nft.json +1 -1
- package/.next/server/app/traceability/fs/[id]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/traceability/fs/page_client-reference-manifest.js +1 -1
- package/.next/server/app/traceability/page_client-reference-manifest.js +1 -1
- package/.next/server/app/traceability/risk/[id]/page.js +1 -1
- package/.next/server/app/traceability/risk/[id]/page.js.nft.json +1 -1
- package/.next/server/app/traceability/risk/[id]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/traceability/risk/page_client-reference-manifest.js +1 -1
- package/.next/server/app/traceability/urs/[id]/page.js +2 -2
- package/.next/server/app/traceability/urs/[id]/page.js.nft.json +1 -1
- package/.next/server/app/traceability/urs/[id]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/traceability/urs/page_client-reference-manifest.js +1 -1
- package/.next/server/app-paths-manifest.json +5 -5
- package/.next/server/chunks/228.js +1 -0
- package/.next/server/chunks/241.js +1 -0
- package/.next/server/middleware-build-manifest.js +1 -1
- package/.next/server/middleware-react-loadable-manifest.js +1 -1
- package/.next/server/pages/404.html +1 -1
- package/.next/server/pages/500.html +2 -2
- package/.next/server/server-reference-manifest.js +1 -1
- package/.next/server/server-reference-manifest.json +1 -1
- package/.next/static/chunks/322.851e5085e555bba8.js +1 -0
- package/.next/static/chunks/app/releases/[id]/{page-fc4810ad78aacc05.js → page-ed1c37974c9eb09e.js} +1 -1
- package/.next/static/chunks/app/releases/{page-ea3a4e53452c06a7.js → page-77f6311112610ea9.js} +1 -1
- package/.next/static/chunks/app/specs/[id]/page-c3b58d96aaefc0eb.js +1 -0
- package/.next/static/chunks/app/traceability/archive/page-ac13a173483e4019.js +1 -0
- package/.next/static/chunks/app/traceability/fs/[id]/{page-74b333bf6fee2124.js → page-87c04df8b0af741d.js} +2 -2
- package/.next/static/chunks/app/traceability/risk/[id]/page-f98c258ff3f71e91.js +1 -0
- package/.next/static/chunks/app/traceability/urs/[id]/page-8037e736b226d97d.js +1 -0
- package/.next/static/chunks/{webpack-fdd24ee937b83737.js → webpack-40b11026e409e9ea.js} +1 -1
- package/bin/cli.js +60594 -2
- package/bin/cli.ts +10 -0
- package/package.json +3 -2
- package/.next/server/chunks/14.js +0 -1
- package/.next/server/chunks/2.js +0 -1
- package/.next/static/chunks/918.8613117e214693b1.js +0 -1
- package/.next/static/chunks/app/specs/[id]/page-f178b6b820cd72a2.js +0 -1
- package/.next/static/chunks/app/traceability/archive/page-935f11cdeb06e469.js +0 -1
- package/.next/static/chunks/app/traceability/risk/[id]/page-5f453b802c3b94c1.js +0 -1
- package/.next/static/chunks/app/traceability/urs/[id]/page-fcbf0f20c12adc8c.js +0 -1
- /package/.next/static/{N8nz88V5gLBgFu2wLdIIn → 5dvr1H7ybsXeR2XDZ65eM}/_buildManifest.js +0 -0
- /package/.next/static/{N8nz88V5gLBgFu2wLdIIn → 5dvr1H7ybsXeR2XDZ65eM}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/traceability/fs/[id]/page"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"484":{"*":{"id":"70664","name":"*","chunks":[],"async":false}},"
|
|
1
|
+
globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/traceability/fs/[id]/page"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"484":{"*":{"id":"70664","name":"*","chunks":[],"async":false}},"1028":{"*":{"id":"3620","name":"*","chunks":[],"async":false}},"1281":{"*":{"id":"40186","name":"*","chunks":[],"async":false}},"1304":{"*":{"id":"60440","name":"*","chunks":[],"async":false}},"1864":{"*":{"id":"44204","name":"*","chunks":[],"async":false}},"2207":{"*":{"id":"83506","name":"*","chunks":[],"async":false}},"2716":{"*":{"id":"62386","name":"*","chunks":[],"async":false}},"2776":{"*":{"id":"814","name":"*","chunks":[],"async":false}},"3813":{"*":{"id":"11331","name":"*","chunks":[],"async":false}},"4425":{"*":{"id":"33227","name":"*","chunks":[],"async":false}},"4547":{"*":{"id":"66783","name":"*","chunks":[],"async":false}},"4581":{"*":{"id":"61335","name":"*","chunks":[],"async":false}},"4777":{"*":{"id":"82265","name":"*","chunks":[],"async":false}},"5458":{"*":{"id":"6419","name":"*","chunks":[],"async":false}},"6869":{"*":{"id":"74661","name":"*","chunks":[],"async":false}},"7121":{"*":{"id":"35421","name":"*","chunks":[],"async":false}},"7123":{"*":{"id":"81921","name":"*","chunks":[],"async":false}},"8140":{"*":{"id":"20184","name":"*","chunks":[],"async":false}},"8169":{"*":{"id":"93291","name":"*","chunks":[],"async":false}},"8500":{"*":{"id":"2116","name":"*","chunks":[],"async":false}},"8616":{"*":{"id":"84342","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/matthew/Code/github/p11o/machine/docs/node_modules/next/dist/client/components/builtin/global-error.js":{"id":7123,"name":"*","chunks":[],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":7123,"name":"*","chunks":[],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/node_modules/next/dist/client/components/client-page.js":{"id":1304,"name":"*","chunks":[],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/node_modules/next/dist/esm/client/components/client-page.js":{"id":1304,"name":"*","chunks":[],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/node_modules/next/dist/client/components/client-segment.js":{"id":8616,"name":"*","chunks":[],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/node_modules/next/dist/esm/client/components/client-segment.js":{"id":8616,"name":"*","chunks":[],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":4777,"name":"*","chunks":[],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":4777,"name":"*","chunks":[],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/node_modules/next/dist/client/components/layout-router.js":{"id":7121,"name":"*","chunks":[],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/node_modules/next/dist/esm/client/components/layout-router.js":{"id":7121,"name":"*","chunks":[],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/node_modules/next/dist/client/components/render-from-template-context.js":{"id":4581,"name":"*","chunks":[],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":4581,"name":"*","chunks":[],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/node_modules/next/dist/lib/framework/boundary-components.js":{"id":484,"name":"*","chunks":[],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":484,"name":"*","chunks":[],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":6869,"name":"*","chunks":[],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":6869,"name":"*","chunks":[],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/node_modules/next/dist/client/app-dir/link.js":{"id":8500,"name":"*","chunks":["500","static/chunks/500-b84d19d842172eba.js","200","static/chunks/app/traceability/fs/page-b6683055d30b04b4.js"],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/node_modules/next/dist/esm/client/app-dir/link.js":{"id":8500,"name":"*","chunks":["500","static/chunks/500-b84d19d842172eba.js","200","static/chunks/app/traceability/fs/page-b6683055d30b04b4.js"],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/src/app/globals.css":{"id":1743,"name":"*","chunks":["500","static/chunks/500-b84d19d842172eba.js","177","static/chunks/app/layout-0f51af36ad0921db.js"],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/src/app/nav-section.tsx":{"id":1864,"name":"*","chunks":["500","static/chunks/500-b84d19d842172eba.js","177","static/chunks/app/layout-0f51af36ad0921db.js"],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/src/app/releases/releases-client.tsx":{"id":8140,"name":"*","chunks":[],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/src/app/matrix/client.tsx":{"id":2716,"name":"*","chunks":[],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/src/app/specs/[id]/risk-detail-client.tsx":{"id":1028,"name":"*","chunks":[],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/src/app/specs/[id]/scenario-list.tsx":{"id":8169,"name":"*","chunks":[],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/src/app/specs/[id]/urs-detail-client.tsx":{"id":3813,"name":"*","chunks":[],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/src/app/releases/[id]/release-detail-client.tsx":{"id":5458,"name":"*","chunks":[],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/src/app/traceability/archive/client.tsx":{"id":4547,"name":"*","chunks":[],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/src/app/traceability/fs/[id]/client.tsx":{"id":2776,"name":"*","chunks":["500","static/chunks/500-b84d19d842172eba.js","594","static/chunks/594-41cff04930a1423e.js","922","static/chunks/app/traceability/fs/%5Bid%5D/page-87c04df8b0af741d.js"],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/src/app/traceability/matrix-client.tsx":{"id":4425,"name":"*","chunks":["500","static/chunks/500-b84d19d842172eba.js","426","static/chunks/app/traceability/page-11103f39281e68c4.js"],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/src/app/traceability/risk/[id]/client.tsx":{"id":1281,"name":"*","chunks":[],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/src/app/traceability/urs/[id]/client.tsx":{"id":2207,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/matthew/Code/github/p11o/machine/docs/src/":[],"/Users/matthew/Code/github/p11o/machine/docs/src/app/layout":[{"inlined":false,"path":"static/css/2693864a24fbccd0.css"}],"/Users/matthew/Code/github/p11o/machine/docs/src/app/page":[],"/Users/matthew/Code/github/p11o/machine/docs/src/app/traceability/layout":[],"/Users/matthew/Code/github/p11o/machine/docs/src/app/traceability/page":[],"/Users/matthew/Code/github/p11o/machine/docs/src/app/traceability/fs/page":[],"/Users/matthew/Code/github/p11o/machine/docs/src/app/traceability/fs/[id]/page":[]},"rscModuleMapping":{"484":{"*":{"id":"98562","name":"*","chunks":[],"async":false}},"1028":{"*":{"id":"19665","name":"*","chunks":[],"async":false}},"1281":{"*":{"id":"59216","name":"*","chunks":[],"async":false}},"1304":{"*":{"id":"15098","name":"*","chunks":[],"async":false}},"1743":{"*":{"id":"61135","name":"*","chunks":[],"async":false}},"1864":{"*":{"id":"40946","name":"*","chunks":[],"async":false}},"2207":{"*":{"id":"89737","name":"*","chunks":[],"async":false}},"2716":{"*":{"id":"97652","name":"*","chunks":[],"async":false}},"2776":{"*":{"id":"50596","name":"*","chunks":[],"async":false}},"3813":{"*":{"id":"17250","name":"*","chunks":[],"async":false}},"4425":{"*":{"id":"65100","name":"*","chunks":[],"async":false}},"4547":{"*":{"id":"62005","name":"*","chunks":[],"async":false}},"4581":{"*":{"id":"16237","name":"*","chunks":[],"async":false}},"4777":{"*":{"id":"33859","name":"*","chunks":[],"async":false}},"5458":{"*":{"id":"29575","name":"*","chunks":[],"async":false}},"6869":{"*":{"id":"36675","name":"*","chunks":[],"async":false}},"7121":{"*":{"id":"98099","name":"*","chunks":[],"async":false}},"7123":{"*":{"id":"95547","name":"*","chunks":[],"async":false}},"8140":{"*":{"id":"4618","name":"*","chunks":[],"async":false}},"8169":{"*":{"id":"47831","name":"*","chunks":[],"async":false}},"8500":{"*":{"id":"23318","name":"*","chunks":[],"async":false}},"8616":{"*":{"id":"47644","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/traceability/fs/page"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"484":{"*":{"id":"70664","name":"*","chunks":[],"async":false}},"
|
|
1
|
+
globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/traceability/fs/page"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"484":{"*":{"id":"70664","name":"*","chunks":[],"async":false}},"1028":{"*":{"id":"3620","name":"*","chunks":[],"async":false}},"1281":{"*":{"id":"40186","name":"*","chunks":[],"async":false}},"1304":{"*":{"id":"60440","name":"*","chunks":[],"async":false}},"1864":{"*":{"id":"44204","name":"*","chunks":[],"async":false}},"2207":{"*":{"id":"83506","name":"*","chunks":[],"async":false}},"2716":{"*":{"id":"62386","name":"*","chunks":[],"async":false}},"2776":{"*":{"id":"814","name":"*","chunks":[],"async":false}},"3813":{"*":{"id":"11331","name":"*","chunks":[],"async":false}},"4425":{"*":{"id":"33227","name":"*","chunks":[],"async":false}},"4547":{"*":{"id":"66783","name":"*","chunks":[],"async":false}},"4581":{"*":{"id":"61335","name":"*","chunks":[],"async":false}},"4777":{"*":{"id":"82265","name":"*","chunks":[],"async":false}},"5458":{"*":{"id":"6419","name":"*","chunks":[],"async":false}},"6869":{"*":{"id":"74661","name":"*","chunks":[],"async":false}},"7121":{"*":{"id":"35421","name":"*","chunks":[],"async":false}},"7123":{"*":{"id":"81921","name":"*","chunks":[],"async":false}},"8140":{"*":{"id":"20184","name":"*","chunks":[],"async":false}},"8169":{"*":{"id":"93291","name":"*","chunks":[],"async":false}},"8500":{"*":{"id":"2116","name":"*","chunks":[],"async":false}},"8616":{"*":{"id":"84342","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/matthew/Code/github/p11o/machine/docs/node_modules/next/dist/client/components/builtin/global-error.js":{"id":7123,"name":"*","chunks":[],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":7123,"name":"*","chunks":[],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/node_modules/next/dist/client/components/client-page.js":{"id":1304,"name":"*","chunks":[],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/node_modules/next/dist/esm/client/components/client-page.js":{"id":1304,"name":"*","chunks":[],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/node_modules/next/dist/client/components/client-segment.js":{"id":8616,"name":"*","chunks":[],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/node_modules/next/dist/esm/client/components/client-segment.js":{"id":8616,"name":"*","chunks":[],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":4777,"name":"*","chunks":[],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":4777,"name":"*","chunks":[],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/node_modules/next/dist/client/components/layout-router.js":{"id":7121,"name":"*","chunks":[],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/node_modules/next/dist/esm/client/components/layout-router.js":{"id":7121,"name":"*","chunks":[],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/node_modules/next/dist/client/components/render-from-template-context.js":{"id":4581,"name":"*","chunks":[],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":4581,"name":"*","chunks":[],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/node_modules/next/dist/lib/framework/boundary-components.js":{"id":484,"name":"*","chunks":[],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":484,"name":"*","chunks":[],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":6869,"name":"*","chunks":[],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":6869,"name":"*","chunks":[],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/node_modules/next/dist/client/app-dir/link.js":{"id":8500,"name":"*","chunks":["500","static/chunks/500-b84d19d842172eba.js","200","static/chunks/app/traceability/fs/page-b6683055d30b04b4.js"],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/node_modules/next/dist/esm/client/app-dir/link.js":{"id":8500,"name":"*","chunks":["500","static/chunks/500-b84d19d842172eba.js","200","static/chunks/app/traceability/fs/page-b6683055d30b04b4.js"],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/src/app/globals.css":{"id":1743,"name":"*","chunks":["500","static/chunks/500-b84d19d842172eba.js","177","static/chunks/app/layout-0f51af36ad0921db.js"],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/src/app/nav-section.tsx":{"id":1864,"name":"*","chunks":["500","static/chunks/500-b84d19d842172eba.js","177","static/chunks/app/layout-0f51af36ad0921db.js"],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/src/app/releases/releases-client.tsx":{"id":8140,"name":"*","chunks":[],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/src/app/matrix/client.tsx":{"id":2716,"name":"*","chunks":[],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/src/app/specs/[id]/risk-detail-client.tsx":{"id":1028,"name":"*","chunks":[],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/src/app/specs/[id]/scenario-list.tsx":{"id":8169,"name":"*","chunks":[],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/src/app/specs/[id]/urs-detail-client.tsx":{"id":3813,"name":"*","chunks":[],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/src/app/releases/[id]/release-detail-client.tsx":{"id":5458,"name":"*","chunks":[],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/src/app/traceability/archive/client.tsx":{"id":4547,"name":"*","chunks":[],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/src/app/traceability/fs/[id]/client.tsx":{"id":2776,"name":"*","chunks":[],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/src/app/traceability/matrix-client.tsx":{"id":4425,"name":"*","chunks":["500","static/chunks/500-b84d19d842172eba.js","426","static/chunks/app/traceability/page-11103f39281e68c4.js"],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/src/app/traceability/risk/[id]/client.tsx":{"id":1281,"name":"*","chunks":[],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/src/app/traceability/urs/[id]/client.tsx":{"id":2207,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/matthew/Code/github/p11o/machine/docs/src/":[],"/Users/matthew/Code/github/p11o/machine/docs/src/app/layout":[{"inlined":false,"path":"static/css/2693864a24fbccd0.css"}],"/Users/matthew/Code/github/p11o/machine/docs/src/app/page":[],"/Users/matthew/Code/github/p11o/machine/docs/src/app/traceability/layout":[],"/Users/matthew/Code/github/p11o/machine/docs/src/app/traceability/page":[],"/Users/matthew/Code/github/p11o/machine/docs/src/app/traceability/fs/page":[]},"rscModuleMapping":{"484":{"*":{"id":"98562","name":"*","chunks":[],"async":false}},"1028":{"*":{"id":"19665","name":"*","chunks":[],"async":false}},"1281":{"*":{"id":"59216","name":"*","chunks":[],"async":false}},"1304":{"*":{"id":"15098","name":"*","chunks":[],"async":false}},"1743":{"*":{"id":"61135","name":"*","chunks":[],"async":false}},"1864":{"*":{"id":"40946","name":"*","chunks":[],"async":false}},"2207":{"*":{"id":"89737","name":"*","chunks":[],"async":false}},"2716":{"*":{"id":"97652","name":"*","chunks":[],"async":false}},"2776":{"*":{"id":"50596","name":"*","chunks":[],"async":false}},"3813":{"*":{"id":"17250","name":"*","chunks":[],"async":false}},"4425":{"*":{"id":"65100","name":"*","chunks":[],"async":false}},"4547":{"*":{"id":"62005","name":"*","chunks":[],"async":false}},"4581":{"*":{"id":"16237","name":"*","chunks":[],"async":false}},"4777":{"*":{"id":"33859","name":"*","chunks":[],"async":false}},"5458":{"*":{"id":"29575","name":"*","chunks":[],"async":false}},"6869":{"*":{"id":"36675","name":"*","chunks":[],"async":false}},"7121":{"*":{"id":"98099","name":"*","chunks":[],"async":false}},"7123":{"*":{"id":"95547","name":"*","chunks":[],"async":false}},"8140":{"*":{"id":"4618","name":"*","chunks":[],"async":false}},"8169":{"*":{"id":"47831","name":"*","chunks":[],"async":false}},"8500":{"*":{"id":"23318","name":"*","chunks":[],"async":false}},"8616":{"*":{"id":"47644","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/traceability/page"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"484":{"*":{"id":"70664","name":"*","chunks":[],"async":false}},"
|
|
1
|
+
globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/traceability/page"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"484":{"*":{"id":"70664","name":"*","chunks":[],"async":false}},"1028":{"*":{"id":"3620","name":"*","chunks":[],"async":false}},"1281":{"*":{"id":"40186","name":"*","chunks":[],"async":false}},"1304":{"*":{"id":"60440","name":"*","chunks":[],"async":false}},"1864":{"*":{"id":"44204","name":"*","chunks":[],"async":false}},"2207":{"*":{"id":"83506","name":"*","chunks":[],"async":false}},"2716":{"*":{"id":"62386","name":"*","chunks":[],"async":false}},"2776":{"*":{"id":"814","name":"*","chunks":[],"async":false}},"3813":{"*":{"id":"11331","name":"*","chunks":[],"async":false}},"4425":{"*":{"id":"33227","name":"*","chunks":[],"async":false}},"4547":{"*":{"id":"66783","name":"*","chunks":[],"async":false}},"4581":{"*":{"id":"61335","name":"*","chunks":[],"async":false}},"4777":{"*":{"id":"82265","name":"*","chunks":[],"async":false}},"5458":{"*":{"id":"6419","name":"*","chunks":[],"async":false}},"6869":{"*":{"id":"74661","name":"*","chunks":[],"async":false}},"7121":{"*":{"id":"35421","name":"*","chunks":[],"async":false}},"7123":{"*":{"id":"81921","name":"*","chunks":[],"async":false}},"8140":{"*":{"id":"20184","name":"*","chunks":[],"async":false}},"8169":{"*":{"id":"93291","name":"*","chunks":[],"async":false}},"8500":{"*":{"id":"2116","name":"*","chunks":[],"async":false}},"8616":{"*":{"id":"84342","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/matthew/Code/github/p11o/machine/docs/node_modules/next/dist/client/components/builtin/global-error.js":{"id":7123,"name":"*","chunks":[],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":7123,"name":"*","chunks":[],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/node_modules/next/dist/client/components/client-page.js":{"id":1304,"name":"*","chunks":[],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/node_modules/next/dist/esm/client/components/client-page.js":{"id":1304,"name":"*","chunks":[],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/node_modules/next/dist/client/components/client-segment.js":{"id":8616,"name":"*","chunks":[],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/node_modules/next/dist/esm/client/components/client-segment.js":{"id":8616,"name":"*","chunks":[],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":4777,"name":"*","chunks":[],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":4777,"name":"*","chunks":[],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/node_modules/next/dist/client/components/layout-router.js":{"id":7121,"name":"*","chunks":[],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/node_modules/next/dist/esm/client/components/layout-router.js":{"id":7121,"name":"*","chunks":[],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/node_modules/next/dist/client/components/render-from-template-context.js":{"id":4581,"name":"*","chunks":[],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":4581,"name":"*","chunks":[],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/node_modules/next/dist/lib/framework/boundary-components.js":{"id":484,"name":"*","chunks":[],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":484,"name":"*","chunks":[],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":6869,"name":"*","chunks":[],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":6869,"name":"*","chunks":[],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/node_modules/next/dist/client/app-dir/link.js":{"id":8500,"name":"*","chunks":["500","static/chunks/500-b84d19d842172eba.js","974","static/chunks/app/page-b6683055d30b04b4.js"],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/node_modules/next/dist/esm/client/app-dir/link.js":{"id":8500,"name":"*","chunks":["500","static/chunks/500-b84d19d842172eba.js","974","static/chunks/app/page-b6683055d30b04b4.js"],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/src/app/globals.css":{"id":1743,"name":"*","chunks":["500","static/chunks/500-b84d19d842172eba.js","177","static/chunks/app/layout-0f51af36ad0921db.js"],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/src/app/nav-section.tsx":{"id":1864,"name":"*","chunks":["500","static/chunks/500-b84d19d842172eba.js","177","static/chunks/app/layout-0f51af36ad0921db.js"],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/src/app/releases/releases-client.tsx":{"id":8140,"name":"*","chunks":[],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/src/app/matrix/client.tsx":{"id":2716,"name":"*","chunks":[],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/src/app/specs/[id]/risk-detail-client.tsx":{"id":1028,"name":"*","chunks":[],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/src/app/specs/[id]/scenario-list.tsx":{"id":8169,"name":"*","chunks":[],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/src/app/specs/[id]/urs-detail-client.tsx":{"id":3813,"name":"*","chunks":[],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/src/app/releases/[id]/release-detail-client.tsx":{"id":5458,"name":"*","chunks":[],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/src/app/traceability/archive/client.tsx":{"id":4547,"name":"*","chunks":[],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/src/app/traceability/fs/[id]/client.tsx":{"id":2776,"name":"*","chunks":[],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/src/app/traceability/matrix-client.tsx":{"id":4425,"name":"*","chunks":["500","static/chunks/500-b84d19d842172eba.js","426","static/chunks/app/traceability/page-11103f39281e68c4.js"],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/src/app/traceability/risk/[id]/client.tsx":{"id":1281,"name":"*","chunks":[],"async":false},"/Users/matthew/Code/github/p11o/machine/docs/src/app/traceability/urs/[id]/client.tsx":{"id":2207,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/matthew/Code/github/p11o/machine/docs/src/":[],"/Users/matthew/Code/github/p11o/machine/docs/src/app/layout":[{"inlined":false,"path":"static/css/2693864a24fbccd0.css"}],"/Users/matthew/Code/github/p11o/machine/docs/src/app/page":[],"/Users/matthew/Code/github/p11o/machine/docs/src/app/traceability/layout":[],"/Users/matthew/Code/github/p11o/machine/docs/src/app/traceability/page":[]},"rscModuleMapping":{"484":{"*":{"id":"98562","name":"*","chunks":[],"async":false}},"1028":{"*":{"id":"19665","name":"*","chunks":[],"async":false}},"1281":{"*":{"id":"59216","name":"*","chunks":[],"async":false}},"1304":{"*":{"id":"15098","name":"*","chunks":[],"async":false}},"1743":{"*":{"id":"61135","name":"*","chunks":[],"async":false}},"1864":{"*":{"id":"40946","name":"*","chunks":[],"async":false}},"2207":{"*":{"id":"89737","name":"*","chunks":[],"async":false}},"2716":{"*":{"id":"97652","name":"*","chunks":[],"async":false}},"2776":{"*":{"id":"50596","name":"*","chunks":[],"async":false}},"3813":{"*":{"id":"17250","name":"*","chunks":[],"async":false}},"4425":{"*":{"id":"65100","name":"*","chunks":[],"async":false}},"4547":{"*":{"id":"62005","name":"*","chunks":[],"async":false}},"4581":{"*":{"id":"16237","name":"*","chunks":[],"async":false}},"4777":{"*":{"id":"33859","name":"*","chunks":[],"async":false}},"5458":{"*":{"id":"29575","name":"*","chunks":[],"async":false}},"6869":{"*":{"id":"36675","name":"*","chunks":[],"async":false}},"7121":{"*":{"id":"98099","name":"*","chunks":[],"async":false}},"7123":{"*":{"id":"95547","name":"*","chunks":[],"async":false}},"8140":{"*":{"id":"4618","name":"*","chunks":[],"async":false}},"8169":{"*":{"id":"47831","name":"*","chunks":[],"async":false}},"8500":{"*":{"id":"23318","name":"*","chunks":[],"async":false}},"8616":{"*":{"id":"47644","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
(()=>{var a={};a.id=510,a.ids=[510],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},1932:a=>{"use strict";a.exports=require("url")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10736:(a,b,c)=>{"use strict";c.r(b),c.d(b,{GlobalError:()=>C.a,__next_app__:()=>K,handler:()=>M,routeModule:()=>L});var d=c(7553),e=c(84006),f=c(67798),g=c(34775),h=c(99373),i=c(73461),j=c(1020),k=c(26349),l=c(54365),m=c(16023),n=c(63747),o=c(24235),p=c(23938),q=c(261),r=c(66758),s=c(77243),t=c(26713),u=c(37527),v=c(22820),w=c(88216),x=c(47929),y=c(79551),z=c(89125),A=c(86439),B=c(95547),C=c.n(B),D=c(61287),E=c(81494),F=c(70722),G=c(70753),H=c(43954),I={};for(let a in D)0>["default","GlobalError","__next_app__","routeModule","handler"].indexOf(a)&&(I[a]=()=>D[a]);c.d(b,I);let J={children:["",{children:["traceability",{children:["risk",{children:["[id]",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(c.bind(c,98088)),"/Users/matthew/Code/github/p11o/machine/docs/src/app/traceability/risk/[id]/page.tsx"]}]},{}]},{}]},{layout:[()=>Promise.resolve().then(c.bind(c,11851)),"/Users/matthew/Code/github/p11o/machine/docs/src/app/traceability/layout.tsx"],metadata:{icon:[async a=>(await Promise.resolve().then(c.bind(c,70440))).default(a)],apple:[],openGraph:[],twitter:[],manifest:void 0}}]},{layout:[()=>Promise.resolve().then(c.bind(c,76537)),"/Users/matthew/Code/github/p11o/machine/docs/src/app/layout.tsx"],"global-error":[()=>Promise.resolve().then(c.t.bind(c,95547,23)),"next/dist/client/components/builtin/global-error.js"],"not-found":[()=>Promise.resolve().then(c.t.bind(c,55091,23)),"next/dist/client/components/builtin/not-found.js"],forbidden:[()=>Promise.resolve().then(c.t.bind(c,45270,23)),"next/dist/client/components/builtin/forbidden.js"],unauthorized:[()=>Promise.resolve().then(c.t.bind(c,28193,23)),"next/dist/client/components/builtin/unauthorized.js"],metadata:{icon:[async a=>(await Promise.resolve().then(c.bind(c,70440))).default(a)],apple:[],openGraph:[],twitter:[],manifest:void 0}}]}.children,K={require:c,loadChunk:()=>Promise.resolve()},L=new d.AppPageRouteModule({definition:{kind:e.RouteKind.APP_PAGE,page:"/traceability/risk/[id]/page",pathname:"/traceability/risk/[id]",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:J},distDir:".next",relativeProjectDir:""});async function M(a,b,d){var B;L.isDev&&(0,h.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let I=!!(0,h.getRequestMeta)(a,"minimalMode"),N="/traceability/risk/[id]/page";"/index"===N&&(N="/");let O=await L.prepare(a,b,{srcPage:N,multiZoneDraftMode:!1});if(!O)return b.statusCode=400,b.end("Bad Request"),null==d.waitUntil||d.waitUntil.call(d,Promise.resolve()),null;let{buildId:P,query:Q,params:R,pageIsDynamic:S,buildManifest:T,nextFontManifest:U,reactLoadableManifest:V,serverActionsManifest:W,clientReferenceManifest:X,subresourceIntegrityManifest:Y,prerenderManifest:Z,isDraftMode:$,resolvedPathname:_,revalidateOnlyGenerated:aa,routerServerContext:ab,nextConfig:ac,parsedUrl:ad,interceptionRoutePatterns:ae,deploymentId:af}=O,ag=(0,q.normalizeAppPath)(N),{isOnDemandRevalidate:ah}=O,ai=ac.experimental.ppr&&!ac.cacheComponents&&(0,H.isInterceptionRouteAppPath)(_)?null:L.match(_,Z),aj=!!Z.routes[_],ak=a.headers["user-agent"]||"",al=(0,t.getBotType)(ak),am=(0,p.isHtmlBotRequest)(a),an=(0,h.getRequestMeta)(a,"isPrefetchRSCRequest")??"1"===a.headers[s.NEXT_ROUTER_PREFETCH_HEADER],ao=(0,h.getRequestMeta)(a,"isRSCRequest")??!!a.headers[s.RSC_HEADER],ap=(0,r.getIsPossibleServerAction)(a),aq=(0,m.checkIsAppPPREnabled)(ac.experimental.ppr);if(!(0,h.getRequestMeta)(a,"postponed")&&aq&&"1"===a.headers[x.NEXT_RESUME_HEADER]&&"POST"===a.method){let b=[];for await(let c of a)b.push(c);let c=Buffer.concat(b).toString("utf8");(0,h.addRequestMeta)(a,"postponed",c)}let ar=aq&&(null==(B=Z.routes[ag]??Z.dynamicRoutes[ag])?void 0:B.renderingMode)==="PARTIALLY_STATIC",as=!1,at=!1,au=ar?(0,h.getRequestMeta)(a,"postponed"):void 0,av=ar&&ao&&!an;I&&(av=av&&!!au);let aw=(0,h.getRequestMeta)(a,"segmentPrefetchRSCRequest"),ax=(!am||!ar)&&(!ak||(0,p.shouldServeStreamingMetadata)(ak,ac.htmlLimitedBots)),ay=!!((ai||aj||Z.routes[ag])&&!(am&&ar)),az=ar&&!0===ac.cacheComponents,aA=!0===L.isDev||!ay||"string"==typeof au||(az&&(0,h.getRequestMeta)(a,"onCacheEntryV2")?av&&!I:av),aB=am&&ar,aC=null;$||!ay||aA||ap||au||av||(aC=_);let aD=aC;!aD&&L.isDev&&(aD=_),L.isDev||$||!ay||!ao||av||(0,k.d)(a.headers);let aE={...D,tree:J,GlobalError:C(),handler:M,routeModule:L,__next_app__:K};W&&X&&(0,o.setManifestsSingleton)({page:N,clientReferenceManifest:X,serverActionsManifest:W});let aF=a.method||"GET",aG=(0,g.getTracer)(),aH=aG.getActiveScopeSpan(),aI=async()=>((null==ab?void 0:ab.render404)?await ab.render404(a,b,ad,!1):b.end("This page could not be found"),null);try{let f=L.getVaryHeader(_,ae);b.setHeader("Vary",f);let k=async(c,d)=>{let e=new l.NodeNextRequest(a),f=new l.NodeNextResponse(b);return L.render(e,f,d).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let a=aG.getRootSpanAttributes();if(!a)return;if(a.get("next.span_type")!==i.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${a.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let d=a.get("next.route");if(d){let a=`${aF} ${d}`;c.setAttributes({"next.route":d,"http.route":d,"next.span_name":a}),c.updateName(a)}else c.updateName(`${aF} ${N}`)})},m=(0,h.getRequestMeta)(a,"incrementalCache"),o=async({span:e,postponed:f,fallbackRouteParams:g,forceStaticRender:i})=>{let l={query:Q,params:R,page:ag,sharedContext:{buildId:P},serverComponentsHmrCache:(0,h.getRequestMeta)(a,"serverComponentsHmrCache"),fallbackRouteParams:g,renderOpts:{App:()=>null,Document:()=>null,pageConfig:{},ComponentMod:aE,Component:(0,j.T)(aE),params:R,routeModule:L,page:N,postponed:f,shouldWaitOnAllReady:aB,serveStreamingMetadata:ax,supportsDynamicResponse:"string"==typeof f||aA,buildManifest:T,nextFontManifest:U,reactLoadableManifest:V,subresourceIntegrityManifest:Y,setCacheStatus:null==ab?void 0:ab.setCacheStatus,setIsrStatus:null==ab?void 0:ab.setIsrStatus,setReactDebugChannel:null==ab?void 0:ab.setReactDebugChannel,sendErrorsToBrowser:null==ab?void 0:ab.sendErrorsToBrowser,dir:c(33873).join(process.cwd(),L.relativeProjectDir),isDraftMode:$,botType:al,isOnDemandRevalidate:ah,isPossibleServerAction:ap,assetPrefix:ac.assetPrefix,nextConfigOutput:ac.output,crossOrigin:ac.crossOrigin,trailingSlash:ac.trailingSlash,images:ac.images,previewProps:Z.preview,deploymentId:af,enableTainting:ac.experimental.taint,htmlLimitedBots:ac.htmlLimitedBots,reactMaxHeadersLength:ac.reactMaxHeadersLength,multiZoneDraftMode:!1,incrementalCache:m,cacheLifeProfiles:ac.cacheLife,basePath:ac.basePath,serverActions:ac.experimental.serverActions,...as||at?{nextExport:!0,supportsDynamicResponse:!1,isStaticGeneration:!0,isDebugDynamicAccesses:as}:{},cacheComponents:!!ac.cacheComponents,experimental:{isRoutePPREnabled:ar,expireTime:ac.expireTime,staleTimes:ac.experimental.staleTimes,dynamicOnHover:!!ac.experimental.dynamicOnHover,inlineCss:!!ac.experimental.inlineCss,authInterrupts:!!ac.experimental.authInterrupts,clientTraceMetadata:ac.experimental.clientTraceMetadata||[],clientParamParsingOrigins:ac.experimental.clientParamParsingOrigins},waitUntil:d.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:()=>{},onInstrumentationRequestError:(b,c,d,e)=>L.onRequestError(a,b,d,e,ab),err:(0,h.getRequestMeta)(a,"invokeError"),dev:L.isDev}};as&&(l.renderOpts.nextExport=!0,l.renderOpts.supportsDynamicResponse=!1,l.renderOpts.isDebugDynamicAccesses=as),i&&(l.renderOpts.supportsDynamicResponse=!1);let n=await k(e,l),{metadata:o}=n,{cacheControl:p,headers:q={},fetchTags:r,fetchMetrics:s}=o;if(r&&(q[x.NEXT_CACHE_TAGS_HEADER]=r),a.fetchMetrics=s,ay&&(null==p?void 0:p.revalidate)===0&&!L.isDev&&!ar){let a=o.staticBailoutInfo,b=Object.defineProperty(Error(`Page changed from static to dynamic at runtime ${_}${(null==a?void 0:a.description)?`, reason: ${a.description}`:""}
|
|
2
|
-
see more here https://nextjs.org/docs/messages/app-static-to-dynamic-error`),"__NEXT_ERROR_CODE",{value:"E132",enumerable:!1,configurable:!0});if(null==a?void 0:a.stack){let c=a.stack;b.stack=b.message+c.substring(c.indexOf("\n"))}throw b}return{value:{kind:u.CachedRouteKind.APP_PAGE,html:n,headers:q,rscData:o.flightData,postponed:o.postponed,status:o.statusCode,segmentData:o.segmentData},cacheControl:p}},p=async({hasResolved:c,previousCacheEntry:f,isRevalidating:g,span:i,forceStaticRender:j=!1})=>{let k,l=!1===L.isDev,q=c||b.writableEnded;if(ah&&aa&&!f&&!I)return(null==ab?void 0:ab.render404)?await ab.render404(a,b):(b.statusCode=404,b.end("This page could not be found")),null;if(ai&&(k=(0,v.parseFallbackField)(ai.fallback)),k===v.FallbackMode.PRERENDER&&(0,t.isBot)(ak)&&(!ar||am)&&(k=v.FallbackMode.BLOCKING_STATIC_RENDER),(null==f?void 0:f.isStale)===-1&&(ah=!0),ah&&(k!==v.FallbackMode.NOT_FOUND||f)&&(k=v.FallbackMode.BLOCKING_STATIC_RENDER),!I&&k!==v.FallbackMode.BLOCKING_STATIC_RENDER&&aD&&!q&&!$&&S&&(l||!aj)){if((l||ai)&&k===v.FallbackMode.NOT_FOUND){if(ac.experimental.adapterPath)return await aI();throw new A.NoFallbackError}if(ar&&(ac.cacheComponents?!av:!ao)){let b=l&&"string"==typeof(null==ai?void 0:ai.fallback)?ai.fallback:ag,c=l&&(null==ai?void 0:ai.fallbackRouteParams)?(0,n.createOpaqueFallbackRouteParams)(ai.fallbackRouteParams):at?(0,n.getFallbackRouteParams)(ag,L):null,f=await L.handleResponse({cacheKey:b,req:a,nextConfig:ac,routeKind:e.RouteKind.APP_PAGE,isFallback:!0,prerenderManifest:Z,isRoutePPREnabled:ar,responseGenerator:async()=>o({span:i,postponed:void 0,fallbackRouteParams:c,forceStaticRender:!1}),waitUntil:d.waitUntil,isMinimalMode:I});if(null===f)return null;if(f)return delete f.cacheControl,f}}let r=ah||g||!au?void 0:au;if(az&&!I&&m&&av&&!j){let b=await m.get(_,{kind:u.IncrementalCacheKind.APP_PAGE,isRoutePPREnabled:!0,isFallback:!1});b&&b.value&&b.value.kind===u.CachedRouteKind.APP_PAGE&&(r=b.value.postponed,b&&(-1===b.isStale||!0===b.isStale)&&(0,G.scheduleOnNextTick)(async()=>{let b=L.getResponseCache(a);try{await b.revalidate(_,m,ar,!1,a=>p({...a,forceStaticRender:!0}),null,c,d.waitUntil)}catch(a){console.error("Error revalidating the page in the background",a)}}))}if(as&&void 0!==r)return{cacheControl:{revalidate:1,expire:void 0},value:{kind:u.CachedRouteKind.PAGES,html:w.default.EMPTY,pageData:{},headers:void 0,status:void 0}};let s=l&&(null==ai?void 0:ai.fallbackRouteParams)&&(0,h.getRequestMeta)(a,"renderFallbackShell")?(0,n.createOpaqueFallbackRouteParams)(ai.fallbackRouteParams):at?(0,n.getFallbackRouteParams)(ag,L):null;return o({span:i,postponed:r,fallbackRouteParams:s,forceStaticRender:j})},q=async c=>{var f,g,i,j,k;let l,m=await L.handleResponse({cacheKey:aC,responseGenerator:a=>p({span:c,...a}),routeKind:e.RouteKind.APP_PAGE,isOnDemandRevalidate:ah,isRoutePPREnabled:ar,req:a,nextConfig:ac,prerenderManifest:Z,waitUntil:d.waitUntil,isMinimalMode:I});if($&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate"),L.isDev&&b.setHeader("Cache-Control","no-store, must-revalidate"),!m){if(aC)throw Object.defineProperty(Error("invariant: cache entry required but not generated"),"__NEXT_ERROR_CODE",{value:"E62",enumerable:!1,configurable:!0});return null}if((null==(f=m.value)?void 0:f.kind)!==u.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant app-page handler received invalid cache entry ${null==(i=m.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E707",enumerable:!1,configurable:!0});let n="string"==typeof m.value.postponed;ay&&!av&&(!n||an)&&(I||b.setHeader("x-nextjs-cache",ah?"REVALIDATED":m.isMiss?"MISS":m.isStale?"STALE":"HIT"),b.setHeader(s.NEXT_IS_PRERENDER_HEADER,"1"));let{value:q}=m;if(au)l={revalidate:0,expire:void 0};else if(av)l={revalidate:0,expire:void 0};else if(!L.isDev)if($)l={revalidate:0,expire:void 0};else if(ay){if(m.cacheControl)if("number"==typeof m.cacheControl.revalidate){if(m.cacheControl.revalidate<1)throw Object.defineProperty(Error(`Invalid revalidate configuration provided: ${m.cacheControl.revalidate} < 1`),"__NEXT_ERROR_CODE",{value:"E22",enumerable:!1,configurable:!0});l={revalidate:m.cacheControl.revalidate,expire:(null==(j=m.cacheControl)?void 0:j.expire)??ac.expireTime}}else l={revalidate:x.CACHE_ONE_YEAR,expire:void 0}}else b.getHeader("Cache-Control")||(l={revalidate:0,expire:void 0});if(m.cacheControl=l,"string"==typeof aw&&(null==q?void 0:q.kind)===u.CachedRouteKind.APP_PAGE&&q.segmentData){b.setHeader(s.NEXT_DID_POSTPONE_HEADER,"2");let c=null==(k=q.headers)?void 0:k[x.NEXT_CACHE_TAGS_HEADER];I&&ay&&c&&"string"==typeof c&&b.setHeader(x.NEXT_CACHE_TAGS_HEADER,c);let d=q.segmentData.get(aw);return void 0!==d?(0,z.sendRenderResult)({req:a,res:b,generateEtags:ac.generateEtags,poweredByHeader:ac.poweredByHeader,result:w.default.fromStatic(d,s.RSC_CONTENT_TYPE_HEADER),cacheControl:m.cacheControl}):(b.statusCode=204,(0,z.sendRenderResult)({req:a,res:b,generateEtags:ac.generateEtags,poweredByHeader:ac.poweredByHeader,result:w.default.EMPTY,cacheControl:m.cacheControl}))}let r=az?(0,h.getRequestMeta)(a,"onCacheEntryV2")??(0,h.getRequestMeta)(a,"onCacheEntry"):(0,h.getRequestMeta)(a,"onCacheEntry");if(r&&await r(m,{url:(0,h.getRequestMeta)(a,"initURL")??a.url}))return null;if(q.headers){let a={...q.headers};for(let[c,d]of(I&&ay||delete a[x.NEXT_CACHE_TAGS_HEADER],Object.entries(a)))if(void 0!==d)if(Array.isArray(d))for(let a of d)b.appendHeader(c,a);else"number"==typeof d&&(d=d.toString()),b.appendHeader(c,d)}let t=null==(g=q.headers)?void 0:g[x.NEXT_CACHE_TAGS_HEADER];if(I&&ay&&t&&"string"==typeof t&&b.setHeader(x.NEXT_CACHE_TAGS_HEADER,t),!q.status||ao&&ar||(b.statusCode=q.status),!I&&q.status&&E.RedirectStatusCode[q.status]&&ao&&(b.statusCode=200),n&&!av&&b.setHeader(s.NEXT_DID_POSTPONE_HEADER,"1"),ao&&!$){if(void 0===q.rscData){if(q.html.contentType!==s.RSC_CONTENT_TYPE_HEADER)if(ac.cacheComponents)return b.statusCode=404,(0,z.sendRenderResult)({req:a,res:b,generateEtags:ac.generateEtags,poweredByHeader:ac.poweredByHeader,result:w.default.EMPTY,cacheControl:m.cacheControl});else throw Object.defineProperty(new F.InvariantError(`Expected RSC response, got ${q.html.contentType}`),"__NEXT_ERROR_CODE",{value:"E789",enumerable:!1,configurable:!0});return(0,z.sendRenderResult)({req:a,res:b,generateEtags:ac.generateEtags,poweredByHeader:ac.poweredByHeader,result:q.html,cacheControl:m.cacheControl})}return(0,z.sendRenderResult)({req:a,res:b,generateEtags:ac.generateEtags,poweredByHeader:ac.poweredByHeader,result:w.default.fromStatic(q.rscData,s.RSC_CONTENT_TYPE_HEADER),cacheControl:m.cacheControl})}let v=q.html;if(!n||I||ao)return(0,z.sendRenderResult)({req:a,res:b,generateEtags:ac.generateEtags,poweredByHeader:ac.poweredByHeader,result:v,cacheControl:m.cacheControl});if(as)return v.push(new ReadableStream({start(a){a.enqueue(y.ENCODED_TAGS.CLOSED.BODY_AND_HTML),a.close()}})),(0,z.sendRenderResult)({req:a,res:b,generateEtags:ac.generateEtags,poweredByHeader:ac.poweredByHeader,result:v,cacheControl:{revalidate:0,expire:void 0}});let A=new TransformStream;return v.push(A.readable),o({span:c,postponed:q.postponed,fallbackRouteParams:null,forceStaticRender:!1}).then(async a=>{var b,c;if(!a)throw Object.defineProperty(Error("Invariant: expected a result to be returned"),"__NEXT_ERROR_CODE",{value:"E463",enumerable:!1,configurable:!0});if((null==(b=a.value)?void 0:b.kind)!==u.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant: expected a page response, got ${null==(c=a.value)?void 0:c.kind}`),"__NEXT_ERROR_CODE",{value:"E305",enumerable:!1,configurable:!0});await a.value.html.pipeTo(A.writable)}).catch(a=>{A.writable.abort(a).catch(a=>{console.error("couldn't abort transformer",a)})}),(0,z.sendRenderResult)({req:a,res:b,generateEtags:ac.generateEtags,poweredByHeader:ac.poweredByHeader,result:v,cacheControl:{revalidate:0,expire:void 0}})};if(!aH)return await aG.withPropagatedContext(a.headers,()=>aG.trace(i.BaseServerSpan.handleRequest,{spanName:`${aF} ${N}`,kind:g.SpanKind.SERVER,attributes:{"http.method":aF,"http.target":a.url}},q));await q(aH)}catch(b){throw b instanceof A.NoFallbackError||await L.onRequestError(a,b,{routerKind:"App Router",routePath:N,routeType:"render",revalidateReason:(0,f.c)({isStaticGeneration:ay,isOnDemandRevalidate:ah})},!1,ab),b}}},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},26713:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/is-bot")},28354:a=>{"use strict";a.exports=require("util")},29021:a=>{"use strict";a.exports=require("fs")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{"use strict";a.exports=require("path")},41025:a=>{"use strict";a.exports=require("next/dist/server/app-render/dynamic-access-async-storage.external.js")},43954:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/interception-routes")},46193:a=>{"use strict";a.exports=require("node:string_decoder")},51455:a=>{"use strict";a.exports=require("node:fs/promises")},57075:a=>{"use strict";a.exports=require("node:stream")},58165:(a,b,c)=>{"use strict";c.d(b,{j:()=>f});var d=c(48249),e=c(67484);function f({options:a,selected:b,onChange:c,placeholder:f,multi:g=!0,allowCustom:h=!0}){let[i,j]=(0,e.useState)(!1),[k,l]=(0,e.useState)(""),m=(0,e.useRef)(null),n=a.filter(a=>a.label.toLowerCase().includes(k.toLowerCase())&&(!g||!b.includes(a.value)));return(0,d.jsxs)("div",{ref:m,style:{position:"relative",flex:1},children:[g&&b.length>0&&(0,d.jsx)("div",{style:{display:"flex",gap:"0.25rem",flexWrap:"wrap",marginBottom:"0.5rem"},children:b.map(e=>{let f=a.find(a=>a.value===e);return(0,d.jsxs)("span",{className:"badge badge-success",style:{display:"flex",alignItems:"center",gap:"0.25rem"},children:[f?.value||e,(0,d.jsx)("button",{onClick:()=>{c(b.filter(a=>a!==e))},style:{background:"none",border:"none",cursor:"pointer",padding:0,fontSize:"1rem",color:"inherit"},children:"\xd7"})]},e)})}),(0,d.jsx)("input",{type:"text",value:g||i?k:(()=>{if(!g&&b.length>0){let c=a.find(a=>a.value===b[0]);return c?.label||b[0]}return""})(),onChange:a=>l(a.target.value),onFocus:()=>j(!0),placeholder:0!==b.length&&g?"Add more...":f,className:"input",style:{width:"100%"}}),i&&(0,d.jsxs)("div",{style:{position:"absolute",top:"100%",left:0,right:0,marginTop:"0.25rem",background:"var(--bg-card)",border:"1px solid var(--border)",borderRadius:"8px",maxHeight:"200px",overflowY:"auto",zIndex:100,boxShadow:"0 4px 12px rgba(0,0,0,0.3)"},children:[0===n.length?(0,d.jsx)("div",{style:{padding:"0.75rem",color:"var(--text-secondary)",fontSize:"0.875rem"},children:h?"No matches - type to create":"No matching steps"}):n.slice(0,20).map(a=>(0,d.jsxs)("div",{onClick:()=>{var d;return d=a.value,void(g?c([...b,d]):(c([d]),j(!1)),l(""))},style:{padding:"0.625rem 0.75rem",cursor:"pointer",fontSize:"0.875rem",borderBottom:"1px solid var(--border)",transition:"background 0.15s"},onMouseEnter:a=>a.currentTarget.style.background="var(--bg-hover)",onMouseLeave:a=>a.currentTarget.style.background="transparent",children:[(0,d.jsx)("div",{style:{fontWeight:500},children:a.value}),a.label!==a.value&&(0,d.jsx)("div",{style:{fontSize:"0.75rem",color:"var(--text-secondary)",marginTop:"0.125rem"},children:a.label})]},a.value)),n.length>20&&(0,d.jsxs)("div",{style:{padding:"0.5rem",color:"var(--text-secondary)",fontSize:"0.75rem",textAlign:"center"},children:["+",n.length-20," more..."]})]})]})}},59216:(a,b,c)=>{"use strict";c.d(b,{RiskClient:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call RiskClient() from the server but RiskClient is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/matthew/Code/github/p11o/machine/docs/src/app/traceability/risk/[id]/client.tsx","RiskClient")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},70722:a=>{"use strict";a.exports=require("next/dist/shared/lib/invariant-error")},71081:(a,b,c)=>{"use strict";c.d(b,{Er:()=>d.Er,Ey:()=>d.Ey,I1:()=>d.I1,Lo:()=>d.Lo,Nn:()=>d.Nn,i7:()=>d.i7,wx:()=>f,x7:()=>d.x7,zm:()=>e});var d=c(23733);function e(){let a=(0,d.Er)(),b=(0,d.x7)(),c=new Map((0,d.I1)().map(a=>[a.id,a]));return a.map(a=>{let d=b.filter(b=>b.urs_ids.includes(a.id)),e=0;return{urs:a,fsItems:d.map(a=>{e+=a.scenario_count;let b=a.risk_ids.map(a=>c.get(a)).filter(Boolean);return{fs:a,risks:b}}),coverage:{fsCount:d.length,scenarioCount:e,hasCoverage:e>0}}})}function f(){let a=(0,d.Er)(),b=(0,d.x7)(),c=(0,d.I1)(),e=b.reduce((a,b)=>a+b.scenario_count,0),f=a.filter(a=>"draft"===a.status).length+c.filter(a=>"draft"===a.status).length,g=a.filter(a=>"review"===a.status).length+c.filter(a=>"review"===a.status).length,h=a.filter(a=>"approved"===a.status).length+c.filter(a=>"approved"===a.status).length,i=a.filter(a=>b.some(b=>b.urs_ids.includes(a.id))).length,j=b.filter(a=>a.scenario_count>0).length;return{counts:{urs:a.length,fs:b.length,scenarios:e,risk:c.length},byStatus:{draft:f,review:g,approved:h},coverage:{ursWithFS:i,ursTotal:a.length,fsWithTests:j,fsTotal:b.length}}}},73024:a=>{"use strict";a.exports=require("node:fs")},73136:a=>{"use strict";a.exports=require("node:url")},76760:a=>{"use strict";a.exports=require("node:path")},78474:a=>{"use strict";a.exports=require("node:events")},81787:a=>{"use strict";a.exports=require("bun:sqlite")},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},88064:(a,b,c)=>{"use strict";c.d(b,{I:()=>e});var d=c(99829);let e=(0,d.createServerReference)("40aa05229b37bc19e485dbd37bcd77ca253f4afd4e",d.callServer,void 0,d.findSourceMapURL,"restoreRiskAction")},88960:(a,b,c)=>{"use strict";c.d(b,{KN:()=>k,Mo:()=>n,d0:()=>p,mQ:()=>j,t3:()=>m,wI:()=>i,yY:()=>o,zB:()=>l});var d=c(48249);c(67484);let e={width:"100%",padding:"0.875rem 1rem",fontSize:"0.9375rem",lineHeight:"1.5",color:"var(--text-primary)",background:"var(--bg-secondary)",borderWidth:"1px",borderStyle:"solid",borderColor:"var(--border)",borderRadius:"10px",outline:"none",transition:"all 0.2s ease"},f={borderColor:"var(--accent)",boxShadow:"0 0 0 3px rgba(99, 102, 241, 0.15)"},g={...e,cursor:"pointer",appearance:"none",backgroundImage:"url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238888a0' d='M6 8L1 3h10z'/%3E%3C/svg%3E\")",backgroundRepeat:"no-repeat",backgroundPosition:"right 1rem center",paddingRight:"2.5rem"},h={...e,resize:"vertical",minHeight:"120px",fontFamily:"inherit"};function i(a,b){return{...e,...b===a?f:{}}}function j(a,b){return{...g,...b===a?f:{}}}function k(a,b){return{...h,...b===a?f:{}}}function l({label:a,children:b,required:c,compact:e,hint:f,action:g}){return(0,d.jsxs)("div",{style:{marginBottom:e?"0":"1.5rem"},children:[(0,d.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"0.5rem"},children:[(0,d.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:[(0,d.jsx)("label",{style:{fontWeight:500,fontSize:"0.875rem",color:"var(--text-primary)"},children:a}),c&&(0,d.jsx)("span",{style:{color:"var(--accent)",fontSize:"0.75rem"},children:"Required"}),f&&(0,d.jsxs)("span",{style:{color:"var(--text-secondary)",fontSize:"0.8125rem",fontWeight:400},children:["— ",f]})]}),g&&(0,d.jsx)("button",{onClick:g.onClick,style:{padding:"0.375rem 0.75rem",fontSize:"0.8125rem",fontWeight:500,background:"transparent",border:"1px solid var(--accent)",borderRadius:"6px",color:"var(--accent)",cursor:"pointer",transition:"all 0.2s"},children:g.label})]}),b]})}function m({status:a}){return"idle"===a.type?null:(0,d.jsxs)("div",{style:{marginBottom:"1.5rem",padding:"1rem 1.25rem",borderRadius:"10px",background:"success"===a.type?"rgba(16, 185, 129, 0.1)":"rgba(239, 68, 68, 0.1)",color:"success"===a.type?"var(--success)":"var(--error)",fontSize:"0.9375rem",display:"flex",alignItems:"center",gap:"0.5rem",borderWidth:"1px",borderStyle:"solid",borderColor:"success"===a.type?"rgba(16, 185, 129, 0.2)":"rgba(239, 68, 68, 0.2)"},children:["success"===a.type?"✅":"❌"," ",a.message]})}function n({icon:a,title:b,subtitle:c}){return(0,d.jsxs)("div",{style:{marginBottom:"2rem",paddingBottom:"1.5rem",borderBottom:"1px solid var(--border)"},children:[(0,d.jsxs)("h2",{style:{margin:0,fontSize:"1.25rem",fontWeight:600},children:[a," ",b]}),(0,d.jsx)("p",{style:{margin:"0.25rem 0 0",color:"var(--text-secondary)",fontSize:"0.875rem"},children:c})]})}function o({onClick:a,disabled:b,isPending:c,label:e="Save"}){return(0,d.jsx)("button",{onClick:a,disabled:b,style:{padding:"0.75rem 1.5rem",fontSize:"0.9375rem",fontWeight:600,borderRadius:"10px",border:"none",cursor:b?"not-allowed":"pointer",background:b?"var(--bg-hover)":"linear-gradient(135deg, var(--gradient-start), var(--gradient-end))",color:b?"var(--text-secondary)":"white",transition:"all 0.2s ease",boxShadow:b?"none":"0 4px 12px rgba(99, 102, 241, 0.25)"},children:c?"\uD83D\uDCBE Saving...":`💾 ${e}`})}function p({onClick:a}){return(0,d.jsx)("button",{onClick:a,style:{padding:"0.5rem",background:"transparent",border:"1px solid var(--border)",borderRadius:"8px",color:"var(--text-secondary)",cursor:"pointer",transition:"all 0.2s",lineHeight:1},title:"Remove",children:"✕"})}},94906:(a,b,c)=>{"use strict";c.d(b,{RiskClient:()=>o});var d=c(48249),e=c(67484),f=c(19099),g=c(2116),h=c.n(g),i=c(99829);let j=(0,i.createServerReference)("40779b7c851ade3b1acdccd6ab8e909d08b13ae791",i.callServer,void 0,i.findSourceMapURL,"archiveRiskAction");var k=c(88064),l=c(58165),m=c(88960),n=c(11390);function o({risk:a,isNew:b=!1,fsItems:g}){let i=(0,f.useRouter)(),[o,s]=(0,e.useState)(b),[t,u]=(0,e.useState)(a?.title||""),[v,w]=(0,e.useState)(a?.status||"draft"),[x,y]=(0,e.useState)(a?.category||""),[z,A]=(0,e.useState)(a?.gamp_category||4),[B,C]=(0,e.useState)(a?.impact||"medium"),[D,E]=(0,e.useState)(a?.probability||"medium"),[F,G]=(0,e.useState)(a?.risk_level||"medium"),[H,I]=(0,e.useState)(a?.residual_risk||"acceptable"),[J,K]=(0,e.useState)(a?.fs_ids||[]),L=a?.risks?.length?a.risks.map(a=>({id:a.id,description:a.description,impact:a.impact,probability:a.probability})):[{id:"R-001.1",description:"",impact:"medium",probability:"medium"}],M=a?.mitigations?.length?a.mitigations.map(a=>({risk_id:a.risk_id,control:a.control,test:a.test})):[{risk_id:"R-001.1",control:"",test:""}],[N,O]=(0,e.useState)(L),[P,Q]=(0,e.useState)(M),[R,S]=(0,e.useState)(null),[T,U]=(0,e.useState)({type:"idle"}),[V,W]=(0,e.useTransition)(),[X,Y]=(0,e.useState)(!1),[Z,$]=(0,e.useState)(!1),_=(a,b,c)=>{let d=[...N];d[a]={...d[a],[b]:c},O(d)},aa=(a,b,c)=>{let d=[...P];d[a]={...d[a],[b]:c},Q(d)},ab=async()=>{Y(!0)},ac=async()=>{await j(a.id),i.refresh(),s(!1)},ad=async()=>{$(!0)},ae=async()=>{await (0,k.I)(a.id),i.refresh()};return!o&&a?(0,d.jsxs)("div",{className:"card",style:{maxWidth:"900px"},children:[a.is_archived&&(0,d.jsxs)("div",{style:{background:"rgba(239, 68, 68, 0.1)",border:"1px solid var(--error)",padding:"1rem",borderRadius:"8px",marginBottom:"1.5rem",color:"var(--error)",display:"flex",justifyContent:"space-between",alignItems:"center"},children:[(0,d.jsxs)("span",{children:[(0,d.jsx)("strong",{children:"Archived:"})," This item is soft-deleted and hidden from lists."]}),(0,d.jsx)("button",{onClick:ad,className:"btn",style:{background:"var(--bg-hover)",border:"1px solid var(--error)",color:"var(--error)"},children:"Restore"})]}),(0,d.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"2rem",paddingBottom:"1.5rem",borderBottom:"1px solid var(--border)"},children:[(0,d.jsxs)("div",{children:[(0,d.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"1rem",marginBottom:"0.5rem"},children:[(0,d.jsx)("span",{style:{fontSize:"0.75rem",fontWeight:600,padding:"0.25rem 0.75rem",background:"#f97316",borderRadius:"6px",color:"white"},children:a.id}),(0,d.jsxs)("span",{className:`badge ${"acceptable"===a.residual_risk?"badge-success":"badge-error"}`,style:{textTransform:"capitalize"},children:["acceptable"===a.residual_risk?"✅":"⚠️"," ",a.residual_risk||"pending"]})]}),(0,d.jsx)("h1",{style:{margin:0,fontSize:"1.5rem",fontWeight:600,lineHeight:1.3},children:a.title})]}),(0,d.jsxs)("div",{style:{display:"flex",gap:"0.75rem"},children:[(0,d.jsx)("button",{onClick:ab,className:"btn",style:{background:"transparent",border:"1px solid var(--error)",color:"var(--error)",display:a.is_archived?"none":"flex",alignItems:"center",gap:"0.5rem"},children:"\uD83D\uDDD1️ Archive"}),(0,d.jsxs)("button",{onClick:()=>s(!0),disabled:!!a.is_archived,className:"btn btn-primary",style:{display:"flex",gap:"0.5rem",alignItems:"center",opacity:a.is_archived?.5:1,cursor:a.is_archived?"not-allowed":"pointer"},children:[(0,d.jsx)("span",{children:"✏️"})," Edit"]})]})]}),(0,d.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"repeat(4, 1fr)",gap:"1rem",marginBottom:"1.5rem"},children:[(0,d.jsx)(p,{label:"Category",value:a.category}),(0,d.jsx)(p,{label:"Impact",value:a.impact,color:r(a.impact)}),(0,d.jsx)(p,{label:"Probability",value:a.probability,color:r(a.probability)}),(0,d.jsx)(p,{label:"Risk Level",value:a.risk_level,color:r(a.risk_level)})]}),(0,d.jsx)(q,{label:"Linked Functional Specs",children:a.fs_ids.length>0?(0,d.jsx)("div",{style:{display:"flex",flexWrap:"wrap",gap:"0.5rem"},children:a.fs_ids.map(a=>(0,d.jsx)(h(),{href:`/traceability/fs/${a}`,children:(0,d.jsx)("span",{className:"badge badge-warning",children:a})},a))}):(0,d.jsx)("span",{style:{color:"var(--text-secondary)",fontStyle:"italic"},children:"No functional specs linked. Edit to add links."})}),a.risks.length>0&&(0,d.jsx)(q,{label:"Identified Risks",count:a.risks.length,children:(0,d.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:"0.75rem"},children:a.risks.map((a,b)=>(0,d.jsxs)("div",{style:{display:"flex",gap:"0.75rem",alignItems:"flex-start"},children:[(0,d.jsx)("span",{style:{color:"#f97316",fontWeight:600,fontSize:"0.875rem",fontFamily:"monospace",minWidth:"70px"},children:a.id}),(0,d.jsx)("span",{style:{lineHeight:1.6},children:a.description})]},b))})}),a.mitigations.length>0&&(0,d.jsx)(q,{label:"Mitigation & Control",count:a.mitigations.length,children:(0,d.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:"0.75rem"},children:a.mitigations.map((a,b)=>(0,d.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"0.25rem"},children:[(0,d.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:[(0,d.jsxs)("span",{style:{color:"var(--accent)",fontWeight:600,fontSize:"0.75rem"},children:["For ",a.risk_id,":"]}),(0,d.jsx)("span",{style:{fontWeight:500},children:a.control})]}),(0,d.jsxs)("div",{style:{fontSize:"0.875rem",color:"var(--text-secondary)",paddingLeft:"1rem"},children:["Test: ",a.test]})]},b))})}),(0,d.jsx)(n.R,{isOpen:X,onClose:()=>Y(!1),onConfirm:ac,title:"Archive Risk",message:"Are you sure you want to archive this Risk? It will be hidden from lists but can be restored later.",confirmLabel:"Archive",isDangerous:!0}),(0,d.jsx)(n.R,{isOpen:Z,onClose:()=>$(!1),onConfirm:ae,title:"Restore Risk",message:"Are you sure you want to restore this Risk?",confirmLabel:"Restore"})]}):(0,d.jsxs)("div",{className:"card",style:{maxWidth:"900px"},children:[(0,d.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"2rem",alignItems:"center"},children:[(0,d.jsx)(m.Mo,{icon:"⚠️",title:b?"New Risk Assessment":`Editing ${a?.id}`,subtitle:"Identify and mitigate risks"}),(0,d.jsxs)("div",{style:{display:"flex",gap:"0.75rem"},children:[!b&&(0,d.jsx)("button",{onClick:ab,className:"btn",style:{color:"var(--error)",borderColor:"var(--error)"},children:"Archive"}),(0,d.jsx)("button",{onClick:()=>{b?i.back():s(!1)},className:"btn",children:"Cancel"}),(0,d.jsx)(m.yY,{onClick:()=>{U({type:"idle"}),W(async()=>{try{let d,e={title:t,status:v,category:x,gamp_category:z,fs_ids:J,impact:B,probability:D,risk_level:F,residual_risk:H,risks:N.filter(a=>a.description.trim()||a.id).map(a=>({id:a.id,description:a.description,impact:a.impact,probability:a.probability})),mitigations:P.filter(a=>a.control.trim()).map(a=>({risk_id:a.risk_id,control:a.control,test:a.test}))};if(b){let{saveRisk:a}=await c.e(2).then(c.bind(c,72002));d=await a(e)}else{let{updateRiskAction:b}=await c.e(2).then(c.bind(c,72002));d=await b(a.id,e)}d.success?(U({type:"success",message:`Saved ${d.id}`}),b?i.push(`/traceability/risk/${d.id}`):(i.refresh(),s(!1))):U({type:"error",message:d.error})}catch(a){U({type:"error",message:"Failed to save"})}})},disabled:V||!t.trim(),isPending:V,label:"Save Risk"})]})]}),(0,d.jsx)(m.t3,{status:T}),(0,d.jsx)(m.zB,{label:"Title",required:!0,children:(0,d.jsx)("input",{value:t,onChange:a=>u(a.target.value),style:(0,m.wI)("title",R),onFocus:()=>S("title"),onBlur:()=>S(null)})}),(0,d.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"1rem",marginBottom:"1.5rem"},children:[(0,d.jsx)(m.zB,{label:"Category",compact:!0,children:(0,d.jsx)("input",{value:x,onChange:a=>y(a.target.value),style:(0,m.wI)("cat",R),onFocus:()=>S("cat")})}),(0,d.jsx)(m.zB,{label:"Link FS",required:!0,compact:!0,children:(0,d.jsx)(l.j,{options:g.map(a=>({value:a.id,label:`${a.id} - ${a.title}`})),selected:J,onChange:K,placeholder:"Search FS...",multi:!0})})]}),(0,d.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"repeat(4, 1fr)",gap:"1rem",marginBottom:"1.5rem"},children:[(0,d.jsx)(m.zB,{label:"Impact",compact:!0,children:(0,d.jsxs)("select",{value:B,onChange:a=>C(a.target.value),style:(0,m.mQ)("imp",R),onFocus:()=>S("imp"),children:[(0,d.jsx)("option",{value:"low",children:"\uD83D\uDFE2 Low"}),(0,d.jsx)("option",{value:"medium",children:"\uD83D\uDFE1 Medium"}),(0,d.jsx)("option",{value:"high",children:"\uD83D\uDFE0 High"}),(0,d.jsx)("option",{value:"critical",children:"\uD83D\uDD34 Critical"})]})}),(0,d.jsx)(m.zB,{label:"Probability",compact:!0,children:(0,d.jsxs)("select",{value:D,onChange:a=>E(a.target.value),style:(0,m.mQ)("prob",R),onFocus:()=>S("prob"),children:[(0,d.jsx)("option",{value:"low",children:"\uD83D\uDFE2 Low"}),(0,d.jsx)("option",{value:"medium",children:"\uD83D\uDFE1 Medium"}),(0,d.jsx)("option",{value:"high",children:"\uD83D\uDD34 High"})]})}),(0,d.jsx)(m.zB,{label:"Risk Level",compact:!0,children:(0,d.jsxs)("select",{value:F,onChange:a=>G(a.target.value),style:(0,m.mQ)("lvl",R),onFocus:()=>S("lvl"),children:[(0,d.jsx)("option",{value:"low",children:"\uD83D\uDFE2 Low"}),(0,d.jsx)("option",{value:"medium",children:"\uD83D\uDFE1 Medium"}),(0,d.jsx)("option",{value:"high",children:"\uD83D\uDFE0 High"}),(0,d.jsx)("option",{value:"critical",children:"\uD83D\uDD34 Critical"})]})}),(0,d.jsx)(m.zB,{label:"Residual Risk",compact:!0,children:(0,d.jsxs)("select",{value:H,onChange:a=>I(a.target.value),style:(0,m.mQ)("res",R),onFocus:()=>S("res"),children:[(0,d.jsx)("option",{value:"acceptable",children:"✅ Acceptable"}),(0,d.jsx)("option",{value:"unacceptable",children:"❌ Unacceptable"}),(0,d.jsx)("option",{value:"pending",children:"⏳ Pending"})]})})]}),(0,d.jsx)(m.zB,{label:"Identified Risks",hint:"List specific risks",action:{label:"+ Add Risk",onClick:()=>O([...N,{id:`R-001.${N.length+1}`,description:"",impact:"medium",probability:"medium"}])},children:(0,d.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:"0.75rem"},children:N.map((a,b)=>(0,d.jsxs)("div",{style:{display:"flex",gap:"0.75rem",alignItems:"center"},children:[(0,d.jsx)("input",{value:a.id,onChange:a=>_(b,"id",a.target.value),onFocus:()=>S(`risk-id-${b}`),onBlur:()=>S(null),placeholder:"R-ID",style:{...(0,m.wI)(`risk-id-${b}`,R),width:"100px",flexShrink:0}}),(0,d.jsx)("input",{value:a.description,onChange:a=>_(b,"description",a.target.value),onFocus:()=>S(`risk-desc-${b}`),onBlur:()=>S(null),placeholder:"Risk description",style:{...(0,m.wI)(`risk-desc-${b}`,R),flex:1}}),N.length>1&&(0,d.jsx)(m.d0,{onClick:()=>{N.length>1&&O(N.filter((a,c)=>c!==b))}})]},b))})}),(0,d.jsx)(m.zB,{label:"Mitigations",hint:"Control measures and testing",action:{label:"+ Add Mitigation",onClick:()=>Q([...P,{risk_id:"",control:"",test:""}])},children:(0,d.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:"0.75rem"},children:P.map((a,b)=>(0,d.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"100px 1fr 1fr auto",gap:"0.75rem",alignItems:"center",padding:"1rem",background:"var(--bg-secondary)",borderRadius:"10px",border:"1px solid var(--border)"},children:[(0,d.jsx)("input",{value:a.risk_id,onChange:a=>aa(b,"risk_id",a.target.value),onFocus:()=>S(`mit-id-${b}`),onBlur:()=>S(null),placeholder:"R-ID",style:(0,m.wI)(`mit-id-${b}`,R)}),(0,d.jsx)("input",{value:a.control,onChange:a=>aa(b,"control",a.target.value),onFocus:()=>S(`mit-control-${b}`),onBlur:()=>S(null),placeholder:"Control measure",style:(0,m.wI)(`mit-control-${b}`,R)}),(0,d.jsx)("input",{value:a.test,onChange:a=>aa(b,"test",a.target.value),onFocus:()=>S(`mit-test-${b}`),onBlur:()=>S(null),placeholder:"How to test",style:(0,m.wI)(`mit-test-${b}`,R)}),P.length>1&&(0,d.jsx)(m.d0,{onClick:()=>{P.length>1&&Q(P.filter((a,c)=>c!==b))}})]},b))})})]})}function p({label:a,value:b,color:c}){return(0,d.jsxs)("div",{children:[(0,d.jsx)("div",{style:{fontSize:"0.75rem",color:"var(--text-secondary)",fontWeight:500,marginBottom:"0.25rem"},children:a}),(0,d.jsx)("div",{style:{fontSize:"1rem",fontWeight:500,textTransform:"capitalize",color:c||"var(--text-primary)"},children:b||"—"})]})}function q({label:a,count:b,children:c}){return(0,d.jsxs)("div",{style:{marginBottom:"1.5rem"},children:[(0,d.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"0.5rem",marginBottom:"0.5rem"},children:[(0,d.jsx)("label",{style:{fontWeight:500,fontSize:"0.875rem",color:"var(--text-secondary)"},children:a}),void 0!==b&&(0,d.jsx)("span",{style:{fontSize:"0.75rem",padding:"0.125rem 0.5rem",background:"var(--bg-hover)",borderRadius:"9999px"},children:b})]}),(0,d.jsx)("div",{style:{lineHeight:1.7},children:c})]})}function r(a){switch(a?.toLowerCase()){case"high":return"#ef4444";case"medium":return"#f59e0b";case"low":return"#10b981";default:return"var(--text-primary)"}}},97720:(a,b,c)=>{Promise.resolve().then(c.bind(c,59216))},98088:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>h,dynamic:()=>g});var d=c(5735),e=c(71081),f=c(59216);let g="force-dynamic";async function h({params:a}){let{id:b}=await a,c=(0,e.x7)();if("new"===b)return(0,d.jsx)(f.RiskClient,{isNew:!0,fsItems:c.map(a=>({id:a.id,title:a.title}))});let g=(0,e.i7)(b);return g?(0,d.jsx)(f.RiskClient,{risk:g,fsItems:c.map(a=>({id:a.id,title:a.title}))}):(0,d.jsx)("div",{children:"Risk Assessment not found"})}},98392:(a,b,c)=>{Promise.resolve().then(c.bind(c,94906))}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[445,471,391,390,476,870,658,733,907,14],()=>b(b.s=10736));module.exports=c})();
|
|
2
|
+
see more here https://nextjs.org/docs/messages/app-static-to-dynamic-error`),"__NEXT_ERROR_CODE",{value:"E132",enumerable:!1,configurable:!0});if(null==a?void 0:a.stack){let c=a.stack;b.stack=b.message+c.substring(c.indexOf("\n"))}throw b}return{value:{kind:u.CachedRouteKind.APP_PAGE,html:n,headers:q,rscData:o.flightData,postponed:o.postponed,status:o.statusCode,segmentData:o.segmentData},cacheControl:p}},p=async({hasResolved:c,previousCacheEntry:f,isRevalidating:g,span:i,forceStaticRender:j=!1})=>{let k,l=!1===L.isDev,q=c||b.writableEnded;if(ah&&aa&&!f&&!I)return(null==ab?void 0:ab.render404)?await ab.render404(a,b):(b.statusCode=404,b.end("This page could not be found")),null;if(ai&&(k=(0,v.parseFallbackField)(ai.fallback)),k===v.FallbackMode.PRERENDER&&(0,t.isBot)(ak)&&(!ar||am)&&(k=v.FallbackMode.BLOCKING_STATIC_RENDER),(null==f?void 0:f.isStale)===-1&&(ah=!0),ah&&(k!==v.FallbackMode.NOT_FOUND||f)&&(k=v.FallbackMode.BLOCKING_STATIC_RENDER),!I&&k!==v.FallbackMode.BLOCKING_STATIC_RENDER&&aD&&!q&&!$&&S&&(l||!aj)){if((l||ai)&&k===v.FallbackMode.NOT_FOUND){if(ac.experimental.adapterPath)return await aI();throw new A.NoFallbackError}if(ar&&(ac.cacheComponents?!av:!ao)){let b=l&&"string"==typeof(null==ai?void 0:ai.fallback)?ai.fallback:ag,c=l&&(null==ai?void 0:ai.fallbackRouteParams)?(0,n.createOpaqueFallbackRouteParams)(ai.fallbackRouteParams):at?(0,n.getFallbackRouteParams)(ag,L):null,f=await L.handleResponse({cacheKey:b,req:a,nextConfig:ac,routeKind:e.RouteKind.APP_PAGE,isFallback:!0,prerenderManifest:Z,isRoutePPREnabled:ar,responseGenerator:async()=>o({span:i,postponed:void 0,fallbackRouteParams:c,forceStaticRender:!1}),waitUntil:d.waitUntil,isMinimalMode:I});if(null===f)return null;if(f)return delete f.cacheControl,f}}let r=ah||g||!au?void 0:au;if(az&&!I&&m&&av&&!j){let b=await m.get(_,{kind:u.IncrementalCacheKind.APP_PAGE,isRoutePPREnabled:!0,isFallback:!1});b&&b.value&&b.value.kind===u.CachedRouteKind.APP_PAGE&&(r=b.value.postponed,b&&(-1===b.isStale||!0===b.isStale)&&(0,G.scheduleOnNextTick)(async()=>{let b=L.getResponseCache(a);try{await b.revalidate(_,m,ar,!1,a=>p({...a,forceStaticRender:!0}),null,c,d.waitUntil)}catch(a){console.error("Error revalidating the page in the background",a)}}))}if(as&&void 0!==r)return{cacheControl:{revalidate:1,expire:void 0},value:{kind:u.CachedRouteKind.PAGES,html:w.default.EMPTY,pageData:{},headers:void 0,status:void 0}};let s=l&&(null==ai?void 0:ai.fallbackRouteParams)&&(0,h.getRequestMeta)(a,"renderFallbackShell")?(0,n.createOpaqueFallbackRouteParams)(ai.fallbackRouteParams):at?(0,n.getFallbackRouteParams)(ag,L):null;return o({span:i,postponed:r,fallbackRouteParams:s,forceStaticRender:j})},q=async c=>{var f,g,i,j,k;let l,m=await L.handleResponse({cacheKey:aC,responseGenerator:a=>p({span:c,...a}),routeKind:e.RouteKind.APP_PAGE,isOnDemandRevalidate:ah,isRoutePPREnabled:ar,req:a,nextConfig:ac,prerenderManifest:Z,waitUntil:d.waitUntil,isMinimalMode:I});if($&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate"),L.isDev&&b.setHeader("Cache-Control","no-store, must-revalidate"),!m){if(aC)throw Object.defineProperty(Error("invariant: cache entry required but not generated"),"__NEXT_ERROR_CODE",{value:"E62",enumerable:!1,configurable:!0});return null}if((null==(f=m.value)?void 0:f.kind)!==u.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant app-page handler received invalid cache entry ${null==(i=m.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E707",enumerable:!1,configurable:!0});let n="string"==typeof m.value.postponed;ay&&!av&&(!n||an)&&(I||b.setHeader("x-nextjs-cache",ah?"REVALIDATED":m.isMiss?"MISS":m.isStale?"STALE":"HIT"),b.setHeader(s.NEXT_IS_PRERENDER_HEADER,"1"));let{value:q}=m;if(au)l={revalidate:0,expire:void 0};else if(av)l={revalidate:0,expire:void 0};else if(!L.isDev)if($)l={revalidate:0,expire:void 0};else if(ay){if(m.cacheControl)if("number"==typeof m.cacheControl.revalidate){if(m.cacheControl.revalidate<1)throw Object.defineProperty(Error(`Invalid revalidate configuration provided: ${m.cacheControl.revalidate} < 1`),"__NEXT_ERROR_CODE",{value:"E22",enumerable:!1,configurable:!0});l={revalidate:m.cacheControl.revalidate,expire:(null==(j=m.cacheControl)?void 0:j.expire)??ac.expireTime}}else l={revalidate:x.CACHE_ONE_YEAR,expire:void 0}}else b.getHeader("Cache-Control")||(l={revalidate:0,expire:void 0});if(m.cacheControl=l,"string"==typeof aw&&(null==q?void 0:q.kind)===u.CachedRouteKind.APP_PAGE&&q.segmentData){b.setHeader(s.NEXT_DID_POSTPONE_HEADER,"2");let c=null==(k=q.headers)?void 0:k[x.NEXT_CACHE_TAGS_HEADER];I&&ay&&c&&"string"==typeof c&&b.setHeader(x.NEXT_CACHE_TAGS_HEADER,c);let d=q.segmentData.get(aw);return void 0!==d?(0,z.sendRenderResult)({req:a,res:b,generateEtags:ac.generateEtags,poweredByHeader:ac.poweredByHeader,result:w.default.fromStatic(d,s.RSC_CONTENT_TYPE_HEADER),cacheControl:m.cacheControl}):(b.statusCode=204,(0,z.sendRenderResult)({req:a,res:b,generateEtags:ac.generateEtags,poweredByHeader:ac.poweredByHeader,result:w.default.EMPTY,cacheControl:m.cacheControl}))}let r=az?(0,h.getRequestMeta)(a,"onCacheEntryV2")??(0,h.getRequestMeta)(a,"onCacheEntry"):(0,h.getRequestMeta)(a,"onCacheEntry");if(r&&await r(m,{url:(0,h.getRequestMeta)(a,"initURL")??a.url}))return null;if(q.headers){let a={...q.headers};for(let[c,d]of(I&&ay||delete a[x.NEXT_CACHE_TAGS_HEADER],Object.entries(a)))if(void 0!==d)if(Array.isArray(d))for(let a of d)b.appendHeader(c,a);else"number"==typeof d&&(d=d.toString()),b.appendHeader(c,d)}let t=null==(g=q.headers)?void 0:g[x.NEXT_CACHE_TAGS_HEADER];if(I&&ay&&t&&"string"==typeof t&&b.setHeader(x.NEXT_CACHE_TAGS_HEADER,t),!q.status||ao&&ar||(b.statusCode=q.status),!I&&q.status&&E.RedirectStatusCode[q.status]&&ao&&(b.statusCode=200),n&&!av&&b.setHeader(s.NEXT_DID_POSTPONE_HEADER,"1"),ao&&!$){if(void 0===q.rscData){if(q.html.contentType!==s.RSC_CONTENT_TYPE_HEADER)if(ac.cacheComponents)return b.statusCode=404,(0,z.sendRenderResult)({req:a,res:b,generateEtags:ac.generateEtags,poweredByHeader:ac.poweredByHeader,result:w.default.EMPTY,cacheControl:m.cacheControl});else throw Object.defineProperty(new F.InvariantError(`Expected RSC response, got ${q.html.contentType}`),"__NEXT_ERROR_CODE",{value:"E789",enumerable:!1,configurable:!0});return(0,z.sendRenderResult)({req:a,res:b,generateEtags:ac.generateEtags,poweredByHeader:ac.poweredByHeader,result:q.html,cacheControl:m.cacheControl})}return(0,z.sendRenderResult)({req:a,res:b,generateEtags:ac.generateEtags,poweredByHeader:ac.poweredByHeader,result:w.default.fromStatic(q.rscData,s.RSC_CONTENT_TYPE_HEADER),cacheControl:m.cacheControl})}let v=q.html;if(!n||I||ao)return(0,z.sendRenderResult)({req:a,res:b,generateEtags:ac.generateEtags,poweredByHeader:ac.poweredByHeader,result:v,cacheControl:m.cacheControl});if(as)return v.push(new ReadableStream({start(a){a.enqueue(y.ENCODED_TAGS.CLOSED.BODY_AND_HTML),a.close()}})),(0,z.sendRenderResult)({req:a,res:b,generateEtags:ac.generateEtags,poweredByHeader:ac.poweredByHeader,result:v,cacheControl:{revalidate:0,expire:void 0}});let A=new TransformStream;return v.push(A.readable),o({span:c,postponed:q.postponed,fallbackRouteParams:null,forceStaticRender:!1}).then(async a=>{var b,c;if(!a)throw Object.defineProperty(Error("Invariant: expected a result to be returned"),"__NEXT_ERROR_CODE",{value:"E463",enumerable:!1,configurable:!0});if((null==(b=a.value)?void 0:b.kind)!==u.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant: expected a page response, got ${null==(c=a.value)?void 0:c.kind}`),"__NEXT_ERROR_CODE",{value:"E305",enumerable:!1,configurable:!0});await a.value.html.pipeTo(A.writable)}).catch(a=>{A.writable.abort(a).catch(a=>{console.error("couldn't abort transformer",a)})}),(0,z.sendRenderResult)({req:a,res:b,generateEtags:ac.generateEtags,poweredByHeader:ac.poweredByHeader,result:v,cacheControl:{revalidate:0,expire:void 0}})};if(!aH)return await aG.withPropagatedContext(a.headers,()=>aG.trace(i.BaseServerSpan.handleRequest,{spanName:`${aF} ${N}`,kind:g.SpanKind.SERVER,attributes:{"http.method":aF,"http.target":a.url}},q));await q(aH)}catch(b){throw b instanceof A.NoFallbackError||await L.onRequestError(a,b,{routerKind:"App Router",routePath:N,routeType:"render",revalidateReason:(0,f.c)({isStaticGeneration:ay,isOnDemandRevalidate:ah})},!1,ab),b}}},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},26713:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/is-bot")},28354:a=>{"use strict";a.exports=require("util")},29021:a=>{"use strict";a.exports=require("fs")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{"use strict";a.exports=require("path")},40186:(a,b,c)=>{"use strict";c.d(b,{RiskClient:()=>o});var d=c(48249),e=c(67484),f=c(19099),g=c(2116),h=c.n(g),i=c(99829);let j=(0,i.createServerReference)("4070a37cf899da738452b8915a4218d30ff316afdb",i.callServer,void 0,i.findSourceMapURL,"archiveRiskAction");var k=c(65464),l=c(58165),m=c(88960),n=c(11390);function o({risk:a,isNew:b=!1,fsItems:g}){let i=(0,f.useRouter)(),[o,s]=(0,e.useState)(b),[t,u]=(0,e.useState)(a?.title||""),[v,w]=(0,e.useState)(a?.status||"draft"),[x,y]=(0,e.useState)(a?.category||""),[z,A]=(0,e.useState)(a?.gamp_category||4),[B,C]=(0,e.useState)(a?.impact||"medium"),[D,E]=(0,e.useState)(a?.probability||"medium"),[F,G]=(0,e.useState)(a?.risk_level||"medium"),[H,I]=(0,e.useState)(a?.residual_risk||"acceptable"),[J,K]=(0,e.useState)(a?.fs_ids||[]),L=a?.risks?.length?a.risks.map(a=>({id:a.id,description:a.description,impact:a.impact,probability:a.probability})):[{id:"R-001.1",description:"",impact:"medium",probability:"medium"}],M=a?.mitigations?.length?a.mitigations.map(a=>({risk_id:a.risk_id,control:a.control,test:a.test})):[{risk_id:"R-001.1",control:"",test:""}],[N,O]=(0,e.useState)(L),[P,Q]=(0,e.useState)(M),[R,S]=(0,e.useState)(null),[T,U]=(0,e.useState)({type:"idle"}),[V,W]=(0,e.useTransition)(),[X,Y]=(0,e.useState)(!1),[Z,$]=(0,e.useState)(!1),_=(a,b,c)=>{let d=[...N];d[a]={...d[a],[b]:c},O(d)},aa=(a,b,c)=>{let d=[...P];d[a]={...d[a],[b]:c},Q(d)},ab=async()=>{Y(!0)},ac=async()=>{await j(a.id),i.refresh(),s(!1)},ad=async()=>{$(!0)},ae=async()=>{await (0,k.I)(a.id),i.refresh()};return!o&&a?(0,d.jsxs)("div",{className:"card",style:{maxWidth:"900px"},children:[a.is_archived&&(0,d.jsxs)("div",{style:{background:"rgba(239, 68, 68, 0.1)",border:"1px solid var(--error)",padding:"1rem",borderRadius:"8px",marginBottom:"1.5rem",color:"var(--error)",display:"flex",justifyContent:"space-between",alignItems:"center"},children:[(0,d.jsxs)("span",{children:[(0,d.jsx)("strong",{children:"Archived:"})," This item is soft-deleted and hidden from lists."]}),(0,d.jsx)("button",{onClick:ad,className:"btn",style:{background:"var(--bg-hover)",border:"1px solid var(--error)",color:"var(--error)"},children:"Restore"})]}),(0,d.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"2rem",paddingBottom:"1.5rem",borderBottom:"1px solid var(--border)"},children:[(0,d.jsxs)("div",{children:[(0,d.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"1rem",marginBottom:"0.5rem"},children:[(0,d.jsx)("span",{style:{fontSize:"0.75rem",fontWeight:600,padding:"0.25rem 0.75rem",background:"#f97316",borderRadius:"6px",color:"white"},children:a.id}),(0,d.jsxs)("span",{className:`badge ${"acceptable"===a.residual_risk?"badge-success":"badge-error"}`,style:{textTransform:"capitalize"},children:["acceptable"===a.residual_risk?"✅":"⚠️"," ",a.residual_risk||"pending"]})]}),(0,d.jsx)("h1",{style:{margin:0,fontSize:"1.5rem",fontWeight:600,lineHeight:1.3},children:a.title})]}),(0,d.jsxs)("div",{style:{display:"flex",gap:"0.75rem"},children:[(0,d.jsx)("button",{onClick:ab,className:"btn",style:{background:"transparent",border:"1px solid var(--error)",color:"var(--error)",display:a.is_archived?"none":"flex",alignItems:"center",gap:"0.5rem"},children:"\uD83D\uDDD1️ Archive"}),(0,d.jsxs)("button",{onClick:()=>s(!0),disabled:!!a.is_archived,className:"btn btn-primary",style:{display:"flex",gap:"0.5rem",alignItems:"center",opacity:a.is_archived?.5:1,cursor:a.is_archived?"not-allowed":"pointer"},children:[(0,d.jsx)("span",{children:"✏️"})," Edit"]})]})]}),(0,d.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"repeat(4, 1fr)",gap:"1rem",marginBottom:"1.5rem"},children:[(0,d.jsx)(p,{label:"Category",value:a.category}),(0,d.jsx)(p,{label:"Impact",value:a.impact,color:r(a.impact)}),(0,d.jsx)(p,{label:"Probability",value:a.probability,color:r(a.probability)}),(0,d.jsx)(p,{label:"Risk Level",value:a.risk_level,color:r(a.risk_level)})]}),(0,d.jsx)(q,{label:"Linked Functional Specs",children:a.fs_ids.length>0?(0,d.jsx)("div",{style:{display:"flex",flexWrap:"wrap",gap:"0.5rem"},children:a.fs_ids.map(a=>(0,d.jsx)(h(),{href:`/traceability/fs/${a}`,children:(0,d.jsx)("span",{className:"badge badge-warning",children:a})},a))}):(0,d.jsx)("span",{style:{color:"var(--text-secondary)",fontStyle:"italic"},children:"No functional specs linked. Edit to add links."})}),a.risks.length>0&&(0,d.jsx)(q,{label:"Identified Risks",count:a.risks.length,children:(0,d.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:"0.75rem"},children:a.risks.map((a,b)=>(0,d.jsxs)("div",{style:{display:"flex",gap:"0.75rem",alignItems:"flex-start"},children:[(0,d.jsx)("span",{style:{color:"#f97316",fontWeight:600,fontSize:"0.875rem",fontFamily:"monospace",minWidth:"70px"},children:a.id}),(0,d.jsx)("span",{style:{lineHeight:1.6},children:a.description})]},b))})}),a.mitigations.length>0&&(0,d.jsx)(q,{label:"Mitigation & Control",count:a.mitigations.length,children:(0,d.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:"0.75rem"},children:a.mitigations.map((a,b)=>(0,d.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"0.25rem"},children:[(0,d.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:[(0,d.jsxs)("span",{style:{color:"var(--accent)",fontWeight:600,fontSize:"0.75rem"},children:["For ",a.risk_id,":"]}),(0,d.jsx)("span",{style:{fontWeight:500},children:a.control})]}),(0,d.jsxs)("div",{style:{fontSize:"0.875rem",color:"var(--text-secondary)",paddingLeft:"1rem"},children:["Test: ",a.test]})]},b))})}),(0,d.jsx)(n.R,{isOpen:X,onClose:()=>Y(!1),onConfirm:ac,title:"Archive Risk",message:"Are you sure you want to archive this Risk? It will be hidden from lists but can be restored later.",confirmLabel:"Archive",isDangerous:!0}),(0,d.jsx)(n.R,{isOpen:Z,onClose:()=>$(!1),onConfirm:ae,title:"Restore Risk",message:"Are you sure you want to restore this Risk?",confirmLabel:"Restore"})]}):(0,d.jsxs)("div",{className:"card",style:{maxWidth:"900px"},children:[(0,d.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"2rem",alignItems:"center"},children:[(0,d.jsx)(m.Mo,{icon:"⚠️",title:b?"New Risk Assessment":`Editing ${a?.id}`,subtitle:"Identify and mitigate risks"}),(0,d.jsxs)("div",{style:{display:"flex",gap:"0.75rem"},children:[!b&&(0,d.jsx)("button",{onClick:ab,className:"btn",style:{color:"var(--error)",borderColor:"var(--error)"},children:"Archive"}),(0,d.jsx)("button",{onClick:()=>{b?i.back():s(!1)},className:"btn",children:"Cancel"}),(0,d.jsx)(m.yY,{onClick:()=>{U({type:"idle"}),W(async()=>{try{let d,e={title:t,status:v,category:x,gamp_category:z,fs_ids:J,impact:B,probability:D,risk_level:F,residual_risk:H,risks:N.filter(a=>a.description.trim()||a.id).map(a=>({id:a.id,description:a.description,impact:a.impact,probability:a.probability})),mitigations:P.filter(a=>a.control.trim()).map(a=>({risk_id:a.risk_id,control:a.control,test:a.test}))};if(b){let{saveRisk:a}=await c.e(241).then(c.bind(c,21241));d=await a(e)}else{let{updateRiskAction:b}=await c.e(241).then(c.bind(c,21241));d=await b(a.id,e)}d.success?(U({type:"success",message:`Saved ${d.id}`}),b?i.push(`/traceability/risk/${d.id}`):(i.refresh(),s(!1))):U({type:"error",message:d.error})}catch(a){U({type:"error",message:"Failed to save"})}})},disabled:V||!t.trim(),isPending:V,label:"Save Risk"})]})]}),(0,d.jsx)(m.t3,{status:T}),(0,d.jsx)(m.zB,{label:"Title",required:!0,children:(0,d.jsx)("input",{value:t,onChange:a=>u(a.target.value),style:(0,m.wI)("title",R),onFocus:()=>S("title"),onBlur:()=>S(null)})}),(0,d.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"1rem",marginBottom:"1.5rem"},children:[(0,d.jsx)(m.zB,{label:"Category",compact:!0,children:(0,d.jsx)("input",{value:x,onChange:a=>y(a.target.value),style:(0,m.wI)("cat",R),onFocus:()=>S("cat")})}),(0,d.jsx)(m.zB,{label:"Link FS",required:!0,compact:!0,children:(0,d.jsx)(l.j,{options:g.map(a=>({value:a.id,label:`${a.id} - ${a.title}`})),selected:J,onChange:K,placeholder:"Search FS...",multi:!0})})]}),(0,d.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"repeat(4, 1fr)",gap:"1rem",marginBottom:"1.5rem"},children:[(0,d.jsx)(m.zB,{label:"Impact",compact:!0,children:(0,d.jsxs)("select",{value:B,onChange:a=>C(a.target.value),style:(0,m.mQ)("imp",R),onFocus:()=>S("imp"),children:[(0,d.jsx)("option",{value:"low",children:"\uD83D\uDFE2 Low"}),(0,d.jsx)("option",{value:"medium",children:"\uD83D\uDFE1 Medium"}),(0,d.jsx)("option",{value:"high",children:"\uD83D\uDFE0 High"}),(0,d.jsx)("option",{value:"critical",children:"\uD83D\uDD34 Critical"})]})}),(0,d.jsx)(m.zB,{label:"Probability",compact:!0,children:(0,d.jsxs)("select",{value:D,onChange:a=>E(a.target.value),style:(0,m.mQ)("prob",R),onFocus:()=>S("prob"),children:[(0,d.jsx)("option",{value:"low",children:"\uD83D\uDFE2 Low"}),(0,d.jsx)("option",{value:"medium",children:"\uD83D\uDFE1 Medium"}),(0,d.jsx)("option",{value:"high",children:"\uD83D\uDD34 High"})]})}),(0,d.jsx)(m.zB,{label:"Risk Level",compact:!0,children:(0,d.jsxs)("select",{value:F,onChange:a=>G(a.target.value),style:(0,m.mQ)("lvl",R),onFocus:()=>S("lvl"),children:[(0,d.jsx)("option",{value:"low",children:"\uD83D\uDFE2 Low"}),(0,d.jsx)("option",{value:"medium",children:"\uD83D\uDFE1 Medium"}),(0,d.jsx)("option",{value:"high",children:"\uD83D\uDFE0 High"}),(0,d.jsx)("option",{value:"critical",children:"\uD83D\uDD34 Critical"})]})}),(0,d.jsx)(m.zB,{label:"Residual Risk",compact:!0,children:(0,d.jsxs)("select",{value:H,onChange:a=>I(a.target.value),style:(0,m.mQ)("res",R),onFocus:()=>S("res"),children:[(0,d.jsx)("option",{value:"acceptable",children:"✅ Acceptable"}),(0,d.jsx)("option",{value:"unacceptable",children:"❌ Unacceptable"}),(0,d.jsx)("option",{value:"pending",children:"⏳ Pending"})]})})]}),(0,d.jsx)(m.zB,{label:"Identified Risks",hint:"List specific risks",action:{label:"+ Add Risk",onClick:()=>O([...N,{id:`R-001.${N.length+1}`,description:"",impact:"medium",probability:"medium"}])},children:(0,d.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:"0.75rem"},children:N.map((a,b)=>(0,d.jsxs)("div",{style:{display:"flex",gap:"0.75rem",alignItems:"center"},children:[(0,d.jsx)("input",{value:a.id,onChange:a=>_(b,"id",a.target.value),onFocus:()=>S(`risk-id-${b}`),onBlur:()=>S(null),placeholder:"R-ID",style:{...(0,m.wI)(`risk-id-${b}`,R),width:"100px",flexShrink:0}}),(0,d.jsx)("input",{value:a.description,onChange:a=>_(b,"description",a.target.value),onFocus:()=>S(`risk-desc-${b}`),onBlur:()=>S(null),placeholder:"Risk description",style:{...(0,m.wI)(`risk-desc-${b}`,R),flex:1}}),N.length>1&&(0,d.jsx)(m.d0,{onClick:()=>{N.length>1&&O(N.filter((a,c)=>c!==b))}})]},b))})}),(0,d.jsx)(m.zB,{label:"Mitigations",hint:"Control measures and testing",action:{label:"+ Add Mitigation",onClick:()=>Q([...P,{risk_id:"",control:"",test:""}])},children:(0,d.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:"0.75rem"},children:P.map((a,b)=>(0,d.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"100px 1fr 1fr auto",gap:"0.75rem",alignItems:"center",padding:"1rem",background:"var(--bg-secondary)",borderRadius:"10px",border:"1px solid var(--border)"},children:[(0,d.jsx)("input",{value:a.risk_id,onChange:a=>aa(b,"risk_id",a.target.value),onFocus:()=>S(`mit-id-${b}`),onBlur:()=>S(null),placeholder:"R-ID",style:(0,m.wI)(`mit-id-${b}`,R)}),(0,d.jsx)("input",{value:a.control,onChange:a=>aa(b,"control",a.target.value),onFocus:()=>S(`mit-control-${b}`),onBlur:()=>S(null),placeholder:"Control measure",style:(0,m.wI)(`mit-control-${b}`,R)}),(0,d.jsx)("input",{value:a.test,onChange:a=>aa(b,"test",a.target.value),onFocus:()=>S(`mit-test-${b}`),onBlur:()=>S(null),placeholder:"How to test",style:(0,m.wI)(`mit-test-${b}`,R)}),P.length>1&&(0,d.jsx)(m.d0,{onClick:()=>{P.length>1&&Q(P.filter((a,c)=>c!==b))}})]},b))})})]})}function p({label:a,value:b,color:c}){return(0,d.jsxs)("div",{children:[(0,d.jsx)("div",{style:{fontSize:"0.75rem",color:"var(--text-secondary)",fontWeight:500,marginBottom:"0.25rem"},children:a}),(0,d.jsx)("div",{style:{fontSize:"1rem",fontWeight:500,textTransform:"capitalize",color:c||"var(--text-primary)"},children:b||"—"})]})}function q({label:a,count:b,children:c}){return(0,d.jsxs)("div",{style:{marginBottom:"1.5rem"},children:[(0,d.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"0.5rem",marginBottom:"0.5rem"},children:[(0,d.jsx)("label",{style:{fontWeight:500,fontSize:"0.875rem",color:"var(--text-secondary)"},children:a}),void 0!==b&&(0,d.jsx)("span",{style:{fontSize:"0.75rem",padding:"0.125rem 0.5rem",background:"var(--bg-hover)",borderRadius:"9999px"},children:b})]}),(0,d.jsx)("div",{style:{lineHeight:1.7},children:c})]})}function r(a){switch(a?.toLowerCase()){case"high":return"#ef4444";case"medium":return"#f59e0b";case"low":return"#10b981";default:return"var(--text-primary)"}}},41025:a=>{"use strict";a.exports=require("next/dist/server/app-render/dynamic-access-async-storage.external.js")},43954:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/interception-routes")},46193:a=>{"use strict";a.exports=require("node:string_decoder")},51455:a=>{"use strict";a.exports=require("node:fs/promises")},57075:a=>{"use strict";a.exports=require("node:stream")},58165:(a,b,c)=>{"use strict";c.d(b,{j:()=>f});var d=c(48249),e=c(67484);function f({options:a,selected:b,onChange:c,placeholder:f,multi:g=!0,allowCustom:h=!0}){let[i,j]=(0,e.useState)(!1),[k,l]=(0,e.useState)(""),m=(0,e.useRef)(null),n=a.filter(a=>a.label.toLowerCase().includes(k.toLowerCase())&&(!g||!b.includes(a.value)));return(0,d.jsxs)("div",{ref:m,style:{position:"relative",flex:1},children:[g&&b.length>0&&(0,d.jsx)("div",{style:{display:"flex",gap:"0.25rem",flexWrap:"wrap",marginBottom:"0.5rem"},children:b.map(e=>{let f=a.find(a=>a.value===e);return(0,d.jsxs)("span",{className:"badge badge-success",style:{display:"flex",alignItems:"center",gap:"0.25rem"},children:[f?.value||e,(0,d.jsx)("button",{onClick:()=>{c(b.filter(a=>a!==e))},style:{background:"none",border:"none",cursor:"pointer",padding:0,fontSize:"1rem",color:"inherit"},children:"\xd7"})]},e)})}),(0,d.jsx)("input",{type:"text",value:g||i?k:(()=>{if(!g&&b.length>0){let c=a.find(a=>a.value===b[0]);return c?.label||b[0]}return""})(),onChange:a=>l(a.target.value),onFocus:()=>j(!0),placeholder:0!==b.length&&g?"Add more...":f,className:"input",style:{width:"100%"}}),i&&(0,d.jsxs)("div",{style:{position:"absolute",top:"100%",left:0,right:0,marginTop:"0.25rem",background:"var(--bg-card)",border:"1px solid var(--border)",borderRadius:"8px",maxHeight:"200px",overflowY:"auto",zIndex:100,boxShadow:"0 4px 12px rgba(0,0,0,0.3)"},children:[0===n.length?(0,d.jsx)("div",{style:{padding:"0.75rem",color:"var(--text-secondary)",fontSize:"0.875rem"},children:h?"No matches - type to create":"No matching steps"}):n.slice(0,20).map(a=>(0,d.jsxs)("div",{onClick:()=>{var d;return d=a.value,void(g?c([...b,d]):(c([d]),j(!1)),l(""))},style:{padding:"0.625rem 0.75rem",cursor:"pointer",fontSize:"0.875rem",borderBottom:"1px solid var(--border)",transition:"background 0.15s"},onMouseEnter:a=>a.currentTarget.style.background="var(--bg-hover)",onMouseLeave:a=>a.currentTarget.style.background="transparent",children:[(0,d.jsx)("div",{style:{fontWeight:500},children:a.value}),a.label!==a.value&&(0,d.jsx)("div",{style:{fontSize:"0.75rem",color:"var(--text-secondary)",marginTop:"0.125rem"},children:a.label})]},a.value)),n.length>20&&(0,d.jsxs)("div",{style:{padding:"0.5rem",color:"var(--text-secondary)",fontSize:"0.75rem",textAlign:"center"},children:["+",n.length-20," more..."]})]})]})}},59216:(a,b,c)=>{"use strict";c.d(b,{RiskClient:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call RiskClient() from the server but RiskClient is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/matthew/Code/github/p11o/machine/docs/src/app/traceability/risk/[id]/client.tsx","RiskClient")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},65464:(a,b,c)=>{"use strict";c.d(b,{I:()=>e});var d=c(99829);let e=(0,d.createServerReference)("406deddabbf1529d0856c5b1a62b493410713809a4",d.callServer,void 0,d.findSourceMapURL,"restoreRiskAction")},70722:a=>{"use strict";a.exports=require("next/dist/shared/lib/invariant-error")},71081:(a,b,c)=>{"use strict";c.d(b,{Er:()=>d.Er,Ey:()=>d.Ey,I1:()=>d.I1,Lo:()=>d.Lo,Nn:()=>d.Nn,i7:()=>d.i7,wx:()=>f,x7:()=>d.x7,zm:()=>e});var d=c(23733);function e(){let a=(0,d.Er)(),b=(0,d.x7)(),c=new Map((0,d.I1)().map(a=>[a.id,a]));return a.map(a=>{let d=b.filter(b=>b.urs_ids.includes(a.id)),e=0;return{urs:a,fsItems:d.map(a=>{e+=a.scenario_count;let b=a.risk_ids.map(a=>c.get(a)).filter(Boolean);return{fs:a,risks:b}}),coverage:{fsCount:d.length,scenarioCount:e,hasCoverage:e>0}}})}function f(){let a=(0,d.Er)(),b=(0,d.x7)(),c=(0,d.I1)(),e=b.reduce((a,b)=>a+b.scenario_count,0),f=a.filter(a=>"draft"===a.status).length+c.filter(a=>"draft"===a.status).length,g=a.filter(a=>"review"===a.status).length+c.filter(a=>"review"===a.status).length,h=a.filter(a=>"approved"===a.status).length+c.filter(a=>"approved"===a.status).length,i=a.filter(a=>b.some(b=>b.urs_ids.includes(a.id))).length,j=b.filter(a=>a.scenario_count>0).length;return{counts:{urs:a.length,fs:b.length,scenarios:e,risk:c.length},byStatus:{draft:f,review:g,approved:h},coverage:{ursWithFS:i,ursTotal:a.length,fsWithTests:j,fsTotal:b.length}}}},73024:a=>{"use strict";a.exports=require("node:fs")},73136:a=>{"use strict";a.exports=require("node:url")},76760:a=>{"use strict";a.exports=require("node:path")},78474:a=>{"use strict";a.exports=require("node:events")},81787:a=>{"use strict";a.exports=require("bun:sqlite")},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},88960:(a,b,c)=>{"use strict";c.d(b,{KN:()=>k,Mo:()=>n,d0:()=>p,mQ:()=>j,t3:()=>m,wI:()=>i,yY:()=>o,zB:()=>l});var d=c(48249);c(67484);let e={width:"100%",padding:"0.875rem 1rem",fontSize:"0.9375rem",lineHeight:"1.5",color:"var(--text-primary)",background:"var(--bg-secondary)",borderWidth:"1px",borderStyle:"solid",borderColor:"var(--border)",borderRadius:"10px",outline:"none",transition:"all 0.2s ease"},f={borderColor:"var(--accent)",boxShadow:"0 0 0 3px rgba(99, 102, 241, 0.15)"},g={...e,cursor:"pointer",appearance:"none",backgroundImage:"url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238888a0' d='M6 8L1 3h10z'/%3E%3C/svg%3E\")",backgroundRepeat:"no-repeat",backgroundPosition:"right 1rem center",paddingRight:"2.5rem"},h={...e,resize:"vertical",minHeight:"120px",fontFamily:"inherit"};function i(a,b){return{...e,...b===a?f:{}}}function j(a,b){return{...g,...b===a?f:{}}}function k(a,b){return{...h,...b===a?f:{}}}function l({label:a,children:b,required:c,compact:e,hint:f,action:g}){return(0,d.jsxs)("div",{style:{marginBottom:e?"0":"1.5rem"},children:[(0,d.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"0.5rem"},children:[(0,d.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:[(0,d.jsx)("label",{style:{fontWeight:500,fontSize:"0.875rem",color:"var(--text-primary)"},children:a}),c&&(0,d.jsx)("span",{style:{color:"var(--accent)",fontSize:"0.75rem"},children:"Required"}),f&&(0,d.jsxs)("span",{style:{color:"var(--text-secondary)",fontSize:"0.8125rem",fontWeight:400},children:["— ",f]})]}),g&&(0,d.jsx)("button",{onClick:g.onClick,style:{padding:"0.375rem 0.75rem",fontSize:"0.8125rem",fontWeight:500,background:"transparent",border:"1px solid var(--accent)",borderRadius:"6px",color:"var(--accent)",cursor:"pointer",transition:"all 0.2s"},children:g.label})]}),b]})}function m({status:a}){return"idle"===a.type?null:(0,d.jsxs)("div",{style:{marginBottom:"1.5rem",padding:"1rem 1.25rem",borderRadius:"10px",background:"success"===a.type?"rgba(16, 185, 129, 0.1)":"rgba(239, 68, 68, 0.1)",color:"success"===a.type?"var(--success)":"var(--error)",fontSize:"0.9375rem",display:"flex",alignItems:"center",gap:"0.5rem",borderWidth:"1px",borderStyle:"solid",borderColor:"success"===a.type?"rgba(16, 185, 129, 0.2)":"rgba(239, 68, 68, 0.2)"},children:["success"===a.type?"✅":"❌"," ",a.message]})}function n({icon:a,title:b,subtitle:c}){return(0,d.jsxs)("div",{style:{marginBottom:"2rem",paddingBottom:"1.5rem",borderBottom:"1px solid var(--border)"},children:[(0,d.jsxs)("h2",{style:{margin:0,fontSize:"1.25rem",fontWeight:600},children:[a," ",b]}),(0,d.jsx)("p",{style:{margin:"0.25rem 0 0",color:"var(--text-secondary)",fontSize:"0.875rem"},children:c})]})}function o({onClick:a,disabled:b,isPending:c,label:e="Save"}){return(0,d.jsx)("button",{onClick:a,disabled:b,style:{padding:"0.75rem 1.5rem",fontSize:"0.9375rem",fontWeight:600,borderRadius:"10px",border:"none",cursor:b?"not-allowed":"pointer",background:b?"var(--bg-hover)":"linear-gradient(135deg, var(--gradient-start), var(--gradient-end))",color:b?"var(--text-secondary)":"white",transition:"all 0.2s ease",boxShadow:b?"none":"0 4px 12px rgba(99, 102, 241, 0.25)"},children:c?"\uD83D\uDCBE Saving...":`💾 ${e}`})}function p({onClick:a}){return(0,d.jsx)("button",{onClick:a,style:{padding:"0.5rem",background:"transparent",border:"1px solid var(--border)",borderRadius:"8px",color:"var(--text-secondary)",cursor:"pointer",transition:"all 0.2s",lineHeight:1},title:"Remove",children:"✕"})}},97720:(a,b,c)=>{Promise.resolve().then(c.bind(c,59216))},98088:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>h,dynamic:()=>g});var d=c(5735),e=c(71081),f=c(59216);let g="force-dynamic";async function h({params:a}){let{id:b}=await a,c=(0,e.x7)();if("new"===b)return(0,d.jsx)(f.RiskClient,{isNew:!0,fsItems:c.map(a=>({id:a.id,title:a.title}))});let g=(0,e.i7)(b);return g?(0,d.jsx)(f.RiskClient,{risk:g,fsItems:c.map(a=>({id:a.id,title:a.title}))}):(0,d.jsx)("div",{children:"Risk Assessment not found"})}},98392:(a,b,c)=>{Promise.resolve().then(c.bind(c,40186))}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[445,471,391,390,476,870,658,733,907,228],()=>b(b.s=10736));module.exports=c})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":1,"files":["../../../../../../matrix.db","../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../node_modules/next/dist/server/app-render/console-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/console-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/fast-set-immediate.external.js","../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../node_modules/next/dist/server/runtime-reacts.external.js","../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/html-bots.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/interception-routes.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/is-bot.js","../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../node_modules/next/package.json","../../../../../../package.json","../../../../../../specs/fs/FS-002-session.feature","../../../../../../specs/fs/FS-003-registration.feature","../../../../../../specs/fs/FS-004-booking.feature","../../../../../../specs/fs/FS-005-waitlist.feature","../../../../../../specs/fs/FS-006-schedule.feature","../../../../../../specs/fs/FS-007-instructor.feature","../../../../../../specs/fs/fs-001-user-login-authentication.feature","../../../../../../specs/fs/fs-008-get-the-test-thing-tested.feature","../../../../../../specs/fs/fs-009-bleep-bloop-thing.feature","../../../../../../specs/fs/fs-010-asfdlka.feature","../../../../../../specs/fs/fs-011-create-another.feature","../../../../../package.json","../../../../chunks/
|
|
1
|
+
{"version":1,"files":["../../../../../../matrix.db","../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../node_modules/next/dist/server/app-render/console-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/console-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/fast-set-immediate.external.js","../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../node_modules/next/dist/server/runtime-reacts.external.js","../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/html-bots.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/interception-routes.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/is-bot.js","../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../node_modules/next/package.json","../../../../../../package.json","../../../../../../specs/fs/FS-002-session.feature","../../../../../../specs/fs/FS-003-registration.feature","../../../../../../specs/fs/FS-004-booking.feature","../../../../../../specs/fs/FS-005-waitlist.feature","../../../../../../specs/fs/FS-006-schedule.feature","../../../../../../specs/fs/FS-007-instructor.feature","../../../../../../specs/fs/fs-001-user-login-authentication.feature","../../../../../../specs/fs/fs-008-get-the-test-thing-tested.feature","../../../../../../specs/fs/fs-009-bleep-bloop-thing.feature","../../../../../../specs/fs/fs-010-asfdlka.feature","../../../../../../specs/fs/fs-011-create-another.feature","../../../../../package.json","../../../../chunks/228.js","../../../../chunks/241.js","../../../../chunks/390.js","../../../../chunks/391.js","../../../../chunks/445.js","../../../../chunks/471.js","../../../../chunks/476.js","../../../../chunks/658.js","../../../../chunks/733.js","../../../../chunks/870.js","../../../../chunks/907.js","../../../../webpack-runtime.js","page_client-reference-manifest.js"]}
|