@cobaltcore-dev/aurora 2.1.0 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/dist/client/DeleteFlavorModal-C4nAi7gY.mjs +724 -0
  2. package/dist/client/DeleteFlavorModal-C4nAi7gY.mjs.map +1 -0
  3. package/dist/client/_flavorId-BPvssEzn.mjs +277 -0
  4. package/dist/client/_flavorId-BPvssEzn.mjs.map +1 -0
  5. package/dist/client/{_flavorId-CgueqKTs.mjs → _flavorId-CFUBcU-l.mjs} +3 -3
  6. package/dist/client/{_flavorId-CgueqKTs.mjs.map → _flavorId-CFUBcU-l.mjs.map} +1 -1
  7. package/dist/client/{_flavorId-B7fp6Nk8.mjs → _flavorId-CZcIp0Ih.mjs} +2 -2
  8. package/dist/client/{_flavorId-B7fp6Nk8.mjs.map → _flavorId-CZcIp0Ih.mjs.map} +1 -1
  9. package/dist/client/_imageId-BAezmV0Y.mjs +526 -0
  10. package/dist/client/_imageId-BAezmV0Y.mjs.map +1 -0
  11. package/dist/client/{_imageId-Ccv8PedW.mjs → _imageId-D-jqz3e3.mjs} +3 -3
  12. package/dist/client/_imageId-D-jqz3e3.mjs.map +1 -0
  13. package/dist/client/{_imageId-D9LR-02T.mjs → _imageId-gMdrdnVt.mjs} +2 -2
  14. package/dist/client/_imageId-gMdrdnVt.mjs.map +1 -0
  15. package/dist/client/{_projectId-BDARsteX.mjs → _projectId-BYccdAtX.mjs} +3 -3
  16. package/dist/client/{_projectId-BDARsteX.mjs.map → _projectId-BYccdAtX.mjs.map} +1 -1
  17. package/dist/client/{_projectId-ZBk6vka0.mjs → _projectId-CBjZC1tv.mjs} +5 -5
  18. package/dist/client/{_projectId-ZBk6vka0.mjs.map → _projectId-CBjZC1tv.mjs.map} +1 -1
  19. package/dist/client/{_projectId-CtyAHqhH.mjs → _projectId-CLEa1zgw.mjs} +2 -2
  20. package/dist/client/{_projectId-CtyAHqhH.mjs.map → _projectId-CLEa1zgw.mjs.map} +1 -1
  21. package/dist/client/{flavors-Ce3J-cFa.mjs → flavors-CJVSNz6R.mjs} +2 -2
  22. package/dist/client/{flavors-Ce3J-cFa.mjs.map → flavors-CJVSNz6R.mjs.map} +1 -1
  23. package/dist/client/{flavors-D5ThLaXO.mjs → flavors-CflJDIEH.mjs} +25 -24
  24. package/dist/client/{flavors-D5ThLaXO.mjs.map → flavors-CflJDIEH.mjs.map} +1 -1
  25. package/dist/client/imageHelpers-DBhL2ebL.mjs +1272 -0
  26. package/dist/client/imageHelpers-DBhL2ebL.mjs.map +1 -0
  27. package/dist/client/{images-C8M3ysWR.mjs → images-BsylWUiH.mjs} +836 -848
  28. package/dist/client/images-BsylWUiH.mjs.map +1 -0
  29. package/dist/client/{images-Cf5R28NR.mjs → images-zQq1nSVv.mjs} +2 -2
  30. package/dist/client/{images-Cf5R28NR.mjs.map → images-zQq1nSVv.mjs.map} +1 -1
  31. package/dist/client/index.js +10 -9
  32. package/dist/client/index.js.map +1 -1
  33. package/dist/client/{securitygroups-DXrfyuVF.mjs → securitygroups-CSmsBzUb.mjs} +104 -103
  34. package/dist/client/securitygroups-CSmsBzUb.mjs.map +1 -0
  35. package/dist/client/{securitygroups-67fFxiwt.mjs → securitygroups-T7kaNFEp.mjs} +2 -2
  36. package/dist/client/{securitygroups-67fFxiwt.mjs.map → securitygroups-T7kaNFEp.mjs.map} +1 -1
  37. package/dist/client/trpcClient.d.ts +0 -1
  38. package/dist/client/useErrorTranslation-Dc0eE8Zt.mjs +83 -0
  39. package/dist/client/useErrorTranslation-Dc0eE8Zt.mjs.map +1 -0
  40. package/dist/server/index.d.ts +0 -1
  41. package/dist/server/index.js +786 -534
  42. package/package.json +2 -2
  43. package/dist/client/DeleteFlavorModal-Be2GFiB_.mjs +0 -802
  44. package/dist/client/DeleteFlavorModal-Be2GFiB_.mjs.map +0 -1
  45. package/dist/client/ImageToastNotifications-BWfzOUMc.mjs +0 -1135
  46. package/dist/client/ImageToastNotifications-BWfzOUMc.mjs.map +0 -1
  47. package/dist/client/_flavorId-0PioWpEp.mjs +0 -276
  48. package/dist/client/_flavorId-0PioWpEp.mjs.map +0 -1
  49. package/dist/client/_imageId-Ccv8PedW.mjs.map +0 -1
  50. package/dist/client/_imageId-CiqEQB_J.mjs +0 -558
  51. package/dist/client/_imageId-CiqEQB_J.mjs.map +0 -1
  52. package/dist/client/_imageId-D9LR-02T.mjs.map +0 -1
  53. package/dist/client/images-C8M3ysWR.mjs.map +0 -1
  54. package/dist/client/securitygroups-DXrfyuVF.mjs.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"_flavorId-B7fp6Nk8.mjs","names":["Button","useNavigate","useLingui","RouteIdLevelDefaultError","FlavorErrorComponent","t","navigate","projectId","Route","useParams","to","params","errorComponent"],"sources":["../../src/client/routes/_auth/projects/$projectId/compute/flavors/$flavorId.tsx?tsr-split=errorComponent"],"sourcesContent":["import {\n Button,\n ButtonRow,\n Stack,\n PopupMenu,\n PopupMenuToggle,\n PopupMenuOptions,\n PopupMenuItem,\n PopupMenuSectionSeparator,\n Container,\n Status,\n} from \"@cloudoperators/juno-ui-components/index\"\nimport { createFileRoute, redirect, useNavigate, useParams } from \"@tanstack/react-router\"\nimport type { RouteInfo } from \"@/client/routes/routeInfo\"\nimport { Trans, useLingui } from \"@lingui/react/macro\"\nimport { getServiceIndex } from \"@/server/Authentication/helpers\"\nimport { trpcReact } from \"@/client/trpcClient\"\nimport { useSetBreadcrumb } from \"@/client/hooks/useSetBreadcrumb\"\nimport { FlavorDetailsView } from \"./-components/FlavorDetailsView\"\nimport { useErrorTranslation } from \"@/client/utils/useErrorTranslation\"\nimport { EditSpecModal } from \"./-components/EditSpecModal\"\nimport { ManageAccessModal } from \"./-components/ManageAccessModal\"\nimport { DeleteFlavorModal } from \"./-components/DeleteFlavorModal\"\nimport { useModal } from \"@/client/utils/useModal\"\nimport { ContentHeader } from \"@/client/components/ContentHeader/ContentHeader\"\nimport { RouteIdLevelDefaultError } from \"@/client/components/Errors/RouteIdLevelDefaultError\"\n\nfunction FlavorErrorComponent() {\n const { t } = useLingui()\n const navigate = useNavigate()\n const { projectId } = Route.useParams()\n\n return (\n <RouteIdLevelDefaultError\n action={\n <Button\n variant=\"primary\"\n onClick={() => navigate({ to: \"/projects/$projectId/compute/flavors\", params: { projectId } })}\n >\n {t`Back to Flavors`}\n </Button>\n }\n />\n )\n}\n\nexport const Route = createFileRoute(\"/_auth/projects/$projectId/compute/flavors/$flavorId\")({\n staticData: {\n section: \"compute\",\n service: \"flavors\",\n analytics: {\n name: \"compute.flavors.detail\",\n },\n } satisfies RouteInfo,\n loader: async ({ context, params }) => {\n const flavor = await context.trpcClient?.compute.getFlavorById.query({\n project_id: params.projectId,\n flavorId: params.flavorId,\n })\n return { flavorName: flavor?.name ?? null }\n },\n head: ({ loaderData }) => ({\n meta: [{ title: loaderData?.flavorName ?? \"Flavor Details\" }],\n }),\n component: RouteComponent,\n beforeLoad: async ({ context, params }) => {\n const { trpcClient } = context\n const { projectId } = params\n\n const availableServices = (await trpcClient?.auth.getAvailableServices.query()) || []\n\n const serviceIndex = getServiceIndex(availableServices)\n\n if (!serviceIndex[\"flavor\"] && !serviceIndex[\"compute\"]) {\n throw redirect({\n to: \"/projects/$projectId\",\n params: { projectId },\n })\n }\n },\n errorComponent: FlavorErrorComponent,\n})\n\nfunction RouteComponent() {\n const { projectId, flavorId } = useParams({\n from: \"/_auth/projects/$projectId/compute/flavors/$flavorId\",\n })\n const { trpcClient } = Route.useRouteContext()\n const navigate = useNavigate()\n const { t } = useLingui()\n const { translateError, isRetryableError } = useErrorTranslation()\n const utils = trpcReact.useUtils()\n\n const {\n data: flavor,\n status,\n error,\n refetch,\n } = trpcReact.compute.getFlavorById.useQuery({\n project_id: projectId,\n flavorId,\n })\n\n useSetBreadcrumb(Route.id, flavor?.name)\n\n const { data: permissionsData } = trpcReact.compute.canUser.useQuery({\n project_id: projectId,\n permission: [\n \"flavors:delete\",\n \"flavors:add_project\",\n \"flavors:remove_project\",\n \"flavor_specs:list\",\n \"flavor_specs:create\",\n \"flavor_specs:delete\",\n ],\n })\n\n const canDeleteFlavor = permissionsData?.[0] ?? false\n const canManageAccess = (permissionsData?.[1] ?? false) || (permissionsData?.[2] ?? false)\n const canListSpecs = permissionsData?.[3] ?? false\n const canManageSpecs = (permissionsData?.[4] ?? false) || (permissionsData?.[5] ?? false)\n\n const [specModalOpen, toggleSpecModal] = useModal()\n const [accessModalOpen, toggleAccessModal] = useModal()\n const [deleteModalOpen, toggleDeleteModal] = useModal()\n\n const handleSpecModalClose = () => {\n toggleSpecModal()\n utils.compute.getExtraSpecs.invalidate({ project_id: projectId, flavorId })\n }\n\n const handleBack = () => {\n navigate({\n to: \"/projects/$projectId/compute/flavors\",\n params: { projectId },\n })\n }\n\n const handleHome = () => {\n navigate({\n to: \"/projects/$projectId\",\n params: { projectId },\n })\n }\n\n const handleRetry = () => {\n refetch()\n }\n\n if (status === \"pending\") {\n return <Status status=\"progress\" title={t`Loading Flavor Details...`} />\n }\n\n if (status === \"error\") {\n const errorCode = error?.message || \"UNKNOWN_ERROR\"\n const translatedError = translateError(errorCode)\n const canRetry = isRetryableError(errorCode)\n\n const getStatusCode = (code: string): number | undefined => {\n if (code.includes(\"UNAUTHORIZED\")) return 401\n if (code.includes(\"FORBIDDEN\")) return 403\n if (code.includes(\"NOT_FOUND\")) return 404\n if (code.includes(\"SERVER_ERROR\")) return 500\n return undefined\n }\n\n return (\n <Container className=\"py-8\">\n <Status\n status=\"error\"\n code={getStatusCode(errorCode)}\n title={t`Error Loading Flavor`}\n body={translatedError}\n action={\n <ButtonRow>\n <Button variant=\"primary\" onClick={handleBack}>\n <Trans>Back</Trans>\n </Button>\n <Button onClick={handleHome}>\n <Trans>Home</Trans>\n </Button>\n {canRetry && (\n <Button onClick={handleRetry}>\n <Trans>Try Again</Trans>\n </Button>\n )}\n </ButtonRow>\n }\n />\n </Container>\n )\n }\n\n if (!flavor) {\n return (\n <Container className=\"py-8\">\n <Status\n status=\"error\"\n code={404}\n title={t`Flavor Not Found`}\n body={t`The requested flavor could not be found. It may have been deleted or you may not have access to it.`}\n action={\n <ButtonRow>\n <Button variant=\"primary\" onClick={handleBack}>\n <Trans>Back</Trans>\n </Button>\n <Button onClick={handleHome}>\n <Trans>Home</Trans>\n </Button>\n </ButtonRow>\n }\n />\n </Container>\n )\n }\n\n const isPublicFlavor = flavor[\"os-flavor-access:is_public\"] !== false\n const hasPopupMenuItems = (canManageAccess && !isPublicFlavor) || canDeleteFlavor\n const canEditMetadata = canManageSpecs && canListSpecs\n const hasMoreActions = hasPopupMenuItems || canEditMetadata\n\n const headerActions = hasMoreActions ? (\n <Stack gap=\"0.5\" alignment=\"center\">\n {hasPopupMenuItems && (\n <PopupMenu>\n <PopupMenuToggle as=\"div\">\n <Button icon=\"moreVert\" title={t`More Actions`} aria-label={t`More Actions`} />\n </PopupMenuToggle>\n <PopupMenuOptions>\n {canManageAccess && !isPublicFlavor && (\n <PopupMenuItem label={t`Manage Access`} onClick={toggleAccessModal} />\n )}\n {canDeleteFlavor && (\n <>\n <PopupMenuSectionSeparator />\n <PopupMenuItem label={t`Delete Flavor`} onClick={toggleDeleteModal} />\n </>\n )}\n </PopupMenuOptions>\n </PopupMenu>\n )}\n {canEditMetadata && (\n <Button variant=\"primary\" onClick={toggleSpecModal}>\n <Trans>Edit Metadata</Trans>\n </Button>\n )}\n </Stack>\n ) : undefined\n\n return (\n <>\n <ContentHeader title={flavor.name} projectId={projectId} actions={headerActions} />\n <Stack direction=\"vertical\">\n <FlavorDetailsView flavor={flavor} canListSpecs={canListSpecs} />\n </Stack>\n\n {trpcClient && (\n <>\n {specModalOpen && (\n <EditSpecModal\n client={trpcClient}\n isOpen={specModalOpen}\n onClose={handleSpecModalClose}\n project={projectId}\n flavor={flavor}\n />\n )}\n\n {accessModalOpen && (\n <ManageAccessModal\n client={trpcClient}\n isOpen={accessModalOpen}\n onClose={toggleAccessModal}\n project={projectId}\n flavor={flavor}\n />\n )}\n\n {deleteModalOpen && (\n <DeleteFlavorModal\n client={trpcClient}\n isOpen={deleteModalOpen}\n onClose={toggleDeleteModal}\n project={projectId}\n flavor={flavor}\n onSuccess={handleBack}\n />\n )}\n </>\n )}\n </>\n )\n}\n"],"mappings":";;;;;;;AA2BA,SAASI,IAAAA;CACP,IAAM,EAAA,MAAA,GAAA,GAAA,MAAQF,EAAAA,GACRI,IAAWL,EAAAA,GACX,EAAEM,iBAAcC,EAAMC,UAAS;CAErC,OACE,gBAAC,GAAA,EACC,QACE,gBAAC,GAAA;EACC,SAAQ;EACR,eAAeH,EAAS;GAAEI,IAAI;GAAwCC,QAAQ,EAAEJ,aAAU;EAAE,CAAA;EAE3FF,UAAAA,EAAAA,EAAC,EAAA,IAAA,SAAA,CAAA;;AAKZ"}
1
+ {"version":3,"file":"_flavorId-CZcIp0Ih.mjs","names":["Button","useNavigate","useLingui","RouteIdLevelDefaultError","FlavorErrorComponent","t","navigate","projectId","Route","useParams","to","params","errorComponent"],"sources":["../../src/client/routes/_auth/projects/$projectId/compute/flavors/$flavorId.tsx?tsr-split=errorComponent"],"sourcesContent":["import {\n Button,\n ButtonRow,\n Stack,\n PopupMenu,\n PopupMenuToggle,\n PopupMenuOptions,\n PopupMenuItem,\n PopupMenuSectionSeparator,\n Container,\n Status,\n} from \"@cloudoperators/juno-ui-components/index\"\nimport { createFileRoute, redirect, useNavigate, useParams } from \"@tanstack/react-router\"\nimport type { RouteInfo } from \"@/client/routes/routeInfo\"\nimport { Trans, useLingui } from \"@lingui/react/macro\"\nimport { getServiceIndex } from \"@/server/Authentication/helpers\"\nimport { trpcReact } from \"@/client/trpcClient\"\nimport { useSetBreadcrumb } from \"@/client/hooks/useSetBreadcrumb\"\nimport { FlavorDetailsView } from \"./-components/FlavorDetailsView\"\nimport { useErrorTranslation } from \"@/client/utils/useErrorTranslation\"\nimport { EditSpecModal } from \"./-components/EditSpecModal\"\nimport { ManageAccessModal } from \"./-components/ManageAccessModal\"\nimport { DeleteFlavorModal } from \"./-components/DeleteFlavorModal\"\nimport { useModal } from \"@/client/utils/useModal\"\nimport { ContentHeader } from \"@/client/components/ContentHeader/ContentHeader\"\nimport { RouteIdLevelDefaultError } from \"@/client/components/Errors/RouteIdLevelDefaultError\"\n\nfunction FlavorErrorComponent() {\n const { t } = useLingui()\n const navigate = useNavigate()\n const { projectId } = Route.useParams()\n\n return (\n <RouteIdLevelDefaultError\n action={\n <Button\n variant=\"primary\"\n onClick={() => navigate({ to: \"/projects/$projectId/compute/flavors\", params: { projectId } })}\n >\n {t`Back to Flavors`}\n </Button>\n }\n />\n )\n}\n\nexport const Route = createFileRoute(\"/_auth/projects/$projectId/compute/flavors/$flavorId\")({\n staticData: {\n section: \"compute\",\n service: \"flavors\",\n analytics: {\n name: \"compute.flavors.detail\",\n },\n } satisfies RouteInfo,\n loader: async ({ context, params }) => {\n const flavor = await context.trpcClient?.compute.getFlavorById.query({\n project_id: params.projectId,\n flavorId: params.flavorId,\n })\n return { flavorName: flavor?.name ?? null }\n },\n head: ({ loaderData }) => ({\n meta: [{ title: loaderData?.flavorName ?? \"Flavor Details\" }],\n }),\n component: RouteComponent,\n beforeLoad: async ({ context, params }) => {\n const { trpcClient } = context\n const { projectId } = params\n\n const availableServices = (await trpcClient?.auth.getAvailableServices.query()) || []\n\n const serviceIndex = getServiceIndex(availableServices)\n\n if (!serviceIndex[\"flavor\"] && !serviceIndex[\"compute\"]) {\n throw redirect({\n to: \"/projects/$projectId\",\n params: { projectId },\n })\n }\n },\n errorComponent: FlavorErrorComponent,\n})\n\nfunction RouteComponent() {\n const { projectId, flavorId } = useParams({\n from: \"/_auth/projects/$projectId/compute/flavors/$flavorId\",\n })\n const { trpcClient } = Route.useRouteContext()\n const navigate = useNavigate()\n const { t } = useLingui()\n const { translateError, isRetryableError } = useErrorTranslation()\n const utils = trpcReact.useUtils()\n\n const {\n data: flavor,\n status,\n error,\n refetch,\n } = trpcReact.compute.getFlavorById.useQuery({\n project_id: projectId,\n flavorId,\n })\n\n useSetBreadcrumb(Route.id, flavor?.name)\n\n const { data: permissionsData } = trpcReact.compute.canUser.useQuery({\n project_id: projectId,\n permission: [\n \"flavors:delete\",\n \"flavors:add_project\",\n \"flavors:remove_project\",\n \"flavor_specs:list\",\n \"flavor_specs:create\",\n \"flavor_specs:delete\",\n ],\n })\n\n const canDeleteFlavor = permissionsData?.[0] ?? false\n const canManageAccess = (permissionsData?.[1] ?? false) || (permissionsData?.[2] ?? false)\n const canListSpecs = permissionsData?.[3] ?? false\n const canManageSpecs = (permissionsData?.[4] ?? false) || (permissionsData?.[5] ?? false)\n\n const [specModalOpen, toggleSpecModal] = useModal()\n const [accessModalOpen, toggleAccessModal] = useModal()\n const [deleteModalOpen, toggleDeleteModal] = useModal()\n\n const handleSpecModalClose = () => {\n toggleSpecModal()\n utils.compute.getExtraSpecs.invalidate({ project_id: projectId, flavorId })\n }\n\n const handleBack = () => {\n navigate({\n to: \"/projects/$projectId/compute/flavors\",\n params: { projectId },\n })\n }\n\n const handleHome = () => {\n navigate({\n to: \"/projects/$projectId\",\n params: { projectId },\n })\n }\n\n const handleRetry = () => {\n refetch()\n }\n\n if (status === \"pending\") {\n return <Status status=\"progress\" title={t`Loading Flavor Details...`} />\n }\n\n if (status === \"error\") {\n const errorCode = error?.message || \"UNKNOWN_ERROR\"\n const translatedError = translateError(errorCode)\n const canRetry = isRetryableError(errorCode)\n\n const getStatusCode = (code: string): number | undefined => {\n if (code.includes(\"UNAUTHORIZED\")) return 401\n if (code.includes(\"FORBIDDEN\")) return 403\n if (code.includes(\"NOT_FOUND\")) return 404\n if (code.includes(\"SERVER_ERROR\")) return 500\n return undefined\n }\n\n return (\n <Container className=\"py-8\">\n <Status\n status=\"error\"\n code={getStatusCode(errorCode)}\n title={t`Error Loading Flavor`}\n body={translatedError}\n action={\n <ButtonRow>\n <Button variant=\"primary\" onClick={handleBack}>\n <Trans>Back</Trans>\n </Button>\n <Button onClick={handleHome}>\n <Trans>Home</Trans>\n </Button>\n {canRetry && (\n <Button onClick={handleRetry}>\n <Trans>Try Again</Trans>\n </Button>\n )}\n </ButtonRow>\n }\n />\n </Container>\n )\n }\n\n if (!flavor) {\n return (\n <Container className=\"py-8\">\n <Status\n status=\"error\"\n code={404}\n title={t`Flavor Not Found`}\n body={t`The requested flavor could not be found. It may have been deleted or you may not have access to it.`}\n action={\n <ButtonRow>\n <Button variant=\"primary\" onClick={handleBack}>\n <Trans>Back</Trans>\n </Button>\n <Button onClick={handleHome}>\n <Trans>Home</Trans>\n </Button>\n </ButtonRow>\n }\n />\n </Container>\n )\n }\n\n const isPublicFlavor = flavor[\"os-flavor-access:is_public\"] !== false\n const hasPopupMenuItems = (canManageAccess && !isPublicFlavor) || canDeleteFlavor\n const canEditMetadata = canManageSpecs && canListSpecs\n const hasMoreActions = hasPopupMenuItems || canEditMetadata\n\n const headerActions = hasMoreActions ? (\n <Stack gap=\"0.5\" alignment=\"center\">\n {hasPopupMenuItems && (\n <PopupMenu>\n <PopupMenuToggle as=\"div\">\n <Button icon=\"moreVert\" title={t`More Actions`} aria-label={t`More Actions`} />\n </PopupMenuToggle>\n <PopupMenuOptions>\n {canManageAccess && !isPublicFlavor && (\n <PopupMenuItem label={t`Manage Access`} onClick={toggleAccessModal} />\n )}\n {canDeleteFlavor && (\n <>\n <PopupMenuSectionSeparator />\n <PopupMenuItem label={t`Delete Flavor`} onClick={toggleDeleteModal} />\n </>\n )}\n </PopupMenuOptions>\n </PopupMenu>\n )}\n {canEditMetadata && (\n <Button variant=\"primary\" onClick={toggleSpecModal}>\n <Trans>Edit Metadata</Trans>\n </Button>\n )}\n </Stack>\n ) : undefined\n\n return (\n <>\n <ContentHeader title={flavor.name} projectId={projectId} actions={headerActions} />\n <Stack direction=\"vertical\">\n <FlavorDetailsView flavor={flavor} canListSpecs={canListSpecs} />\n </Stack>\n\n {trpcClient && (\n <>\n {specModalOpen && (\n <EditSpecModal\n client={trpcClient}\n isOpen={specModalOpen}\n onClose={handleSpecModalClose}\n project={projectId}\n flavor={flavor}\n />\n )}\n\n {accessModalOpen && (\n <ManageAccessModal\n client={trpcClient}\n isOpen={accessModalOpen}\n onClose={toggleAccessModal}\n project={projectId}\n flavor={flavor}\n />\n )}\n\n {deleteModalOpen && (\n <DeleteFlavorModal\n client={trpcClient}\n isOpen={deleteModalOpen}\n onClose={toggleDeleteModal}\n project={projectId}\n flavor={flavor}\n onSuccess={handleBack}\n />\n )}\n </>\n )}\n </>\n )\n}\n"],"mappings":";;;;;;;AA2BA,SAASI,IAAAA;CACP,IAAM,EAAA,MAAA,GAAA,GAAA,MAAQF,EAAAA,GACRI,IAAWL,EAAAA,GACX,EAAEM,iBAAcC,EAAMC,UAAS;CAErC,OACE,gBAAC,GAAA,EACC,QACE,gBAAC,GAAA;EACC,SAAQ;EACR,eAAeH,EAAS;GAAEI,IAAI;GAAwCC,QAAQ,EAAEJ,aAAU;EAAE,CAAA;EAE3FF,UAAAA,EAAAA,EAAC,EAAA,IAAA,SAAA,CAAA;;AAKZ"}
@@ -0,0 +1,526 @@
1
+ import { A as e, B as t, D as n, E as r, M as i, Q as a, c as o, g as s, i as c, n as l, ot as u, r as d, rt as f, s as p, x as m } from "./build-WuxXRAqf.mjs";
2
+ import { a as h, i as g } from "./trpcClient-D7gpR7YG.mjs";
3
+ import { t as _ } from "./_imageId-D-jqz3e3.mjs";
4
+ import { t as v } from "./RouteIdLevelDefaultError-DPF_x2tG.mjs";
5
+ import { n as y, t as b } from "./ContentHeader-fKKZVu-o.mjs";
6
+ import { t as ee } from "./useSetBreadcrumb-tn7lBaQV.mjs";
7
+ import { A as te, C as ne, F as x, I as S, L as C, M as re, O as ie, R as w, S as ae, _ as oe, a as se, g as ce, i as le, j as ue, n as de, o as fe, r as pe, t as me, v as he, y as ge } from "./imageHelpers-DBhL2ebL.mjs";
8
+ import { t as T } from "./TwoColumnDescriptionList-DKS42RKa.mjs";
9
+ import { Fragment as E, jsx as D, jsxs as O } from "react/jsx-runtime";
10
+ import k, { useState as A } from "react";
11
+ import { useNavigate as j, useParams as _e } from "@tanstack/react-router";
12
+ import { Trans as M, useLingui as N } from "@lingui/react";
13
+ //#region src/client/routes/_auth/projects/$projectId/compute/images/-components/ImageDetailsView.tsx
14
+ var P = ({ image: e, myMemberData: n, canUpdateMember: r, onStatusChange: a, isLoading: o }) => {
15
+ let { i18n: s, _: l } = N(), u = n.status === C.PENDING, d = n.status === C.REJECTED, f = n.created_at ? new Date(n.created_at).toLocaleString() : s._({ id: "fj5byd" }), p = n.updated_at ? new Date(n.updated_at).toLocaleString() : s._({ id: "fj5byd" }), m = e.owner ?? "";
16
+ return /*#__PURE__*/ O(t, { children: [
17
+ u && /*#__PURE__*/ D("p", {
18
+ className: "text-theme-highest font-semibold",
19
+ children: /*#__PURE__*/ D(M, { id: "/EcdUM" })
20
+ }),
21
+ /*#__PURE__*/ D("p", { children: /*#__PURE__*/ D(M, {
22
+ id: "Uwo8Xw",
23
+ values: {
24
+ ownerProject: m,
25
+ sharedAt: f
26
+ },
27
+ components: { 0: /*#__PURE__*/ D("span", { className: "font-semibold" }) }
28
+ }) }),
29
+ /*#__PURE__*/ O("ul", { children: [
30
+ /*#__PURE__*/ O("li", { children: [
31
+ /*#__PURE__*/ D("span", {
32
+ className: "font-semibold",
33
+ children: /*#__PURE__*/ D(M, { id: "azXlY+" })
34
+ }),
35
+ " ",
36
+ n.status
37
+ ] }),
38
+ /*#__PURE__*/ O("li", { children: [
39
+ /*#__PURE__*/ D("span", {
40
+ className: "font-semibold",
41
+ children: /*#__PURE__*/ D(M, { id: "G6AP+o" })
42
+ }),
43
+ " ",
44
+ f
45
+ ] }),
46
+ /*#__PURE__*/ O("li", { children: [
47
+ /*#__PURE__*/ D("span", {
48
+ className: "font-semibold",
49
+ children: /*#__PURE__*/ D(M, { id: "pFg+7w" })
50
+ }),
51
+ " ",
52
+ p
53
+ ] })
54
+ ] }),
55
+ r && (u || d || n.status === C.ACCEPTED) && /*#__PURE__*/ O(i, { children: [(u || d) && /*#__PURE__*/ D(c, {
56
+ onClick: () => a(C.ACCEPTED),
57
+ disabled: o,
58
+ children: /*#__PURE__*/ D(M, { id: "g3UF2V" })
59
+ }), (u || n.status === C.ACCEPTED) && /*#__PURE__*/ D(c, {
60
+ onClick: () => a(C.REJECTED),
61
+ disabled: o,
62
+ children: /*#__PURE__*/ D(M, { id: "1t/NnN" })
63
+ })] })
64
+ ] });
65
+ }, F = ({ image: t }) => {
66
+ let { i18n: n, _: r } = N(), i = [
67
+ {
68
+ label: n._({ id: "S0kLOH" }),
69
+ value: /*#__PURE__*/ D(y, { text: t.id })
70
+ },
71
+ {
72
+ label: n._({ id: "6YtxFj" }),
73
+ value: t.name
74
+ },
75
+ {
76
+ label: n._({ id: "uAQUqI" }),
77
+ value: t.status
78
+ },
79
+ {
80
+ label: n._({ id: "Cj2Gtd" }),
81
+ value: /*#__PURE__*/ D(w, { size: t.size })
82
+ },
83
+ {
84
+ label: n._({ id: "Cxgv2U" }),
85
+ value: `${t.min_disk} GB`
86
+ },
87
+ {
88
+ label: n._({ id: "B2Czeb" }),
89
+ value: `${t.min_ram} MB`
90
+ },
91
+ {
92
+ label: n._({ id: "NopYGU" }),
93
+ value: /*#__PURE__*/ D("span", {
94
+ className: "uppercase",
95
+ children: t.disk_format
96
+ })
97
+ },
98
+ {
99
+ label: n._({ id: "6/xipy" }),
100
+ value: /*#__PURE__*/ D("span", {
101
+ className: "uppercase",
102
+ children: t.container_format
103
+ })
104
+ },
105
+ {
106
+ label: n._({ id: "88kg0+" }),
107
+ value: t.created_at ? new Date(t.created_at).toLocaleDateString() : n._({ id: "fj5byd" })
108
+ },
109
+ {
110
+ label: n._({ id: "Llcakz" }),
111
+ value: t.updated_at ? new Date(t.updated_at).toLocaleDateString() : n._({ id: "fj5byd" })
112
+ }
113
+ ];
114
+ return /*#__PURE__*/ O(e, {
115
+ px: !1,
116
+ py: !0,
117
+ children: [/*#__PURE__*/ D("h2", { children: n._({ id: "nW/hX9" }) }), /*#__PURE__*/ D(T, { items: i })]
118
+ });
119
+ }, I = ({ image: t, isSharedWithMe: n = !1 }) => {
120
+ let { i18n: r, _: i } = N(), a = [
121
+ {
122
+ label: n ? r._({ id: "20axE5" }) : r._({ id: "YsrbQh" }),
123
+ value: t.owner ? /*#__PURE__*/ D(y, { text: t.owner }) : ""
124
+ },
125
+ {
126
+ label: r._({ id: "2q/Q7x" }),
127
+ value: t.visibility
128
+ },
129
+ {
130
+ label: r._({ id: "644xgx" }),
131
+ value: t.protected ? r._({ id: "l75CjT" }) : r._({ id: "1UzENP" })
132
+ },
133
+ {
134
+ label: r._({ id: "PzgYM9" }),
135
+ value: t?.checksum ? t.checksum : ""
136
+ }
137
+ ];
138
+ return /*#__PURE__*/ O(e, {
139
+ px: !1,
140
+ py: !0,
141
+ children: [/*#__PURE__*/ D("h2", { children: r._({ id: "a3LDKx" }) }), /*#__PURE__*/ D(T, { items: a })]
142
+ });
143
+ }, L = ({ image: t }) => {
144
+ let { i18n: n, _: i } = N(), a = /* @__PURE__ */ new Set([
145
+ "id",
146
+ "name",
147
+ "status",
148
+ "visibility",
149
+ "size",
150
+ "disk_format",
151
+ "container_format",
152
+ "min_disk",
153
+ "min_ram",
154
+ "owner",
155
+ "protected",
156
+ "created_at",
157
+ "updated_at",
158
+ "checksum"
159
+ ]), o = Object.entries(t).filter(([e]) => !a.has(e)).sort(([e], [t]) => e.localeCompare(t)), s = o.length > 0;
160
+ return /*#__PURE__*/ O(e, {
161
+ px: !1,
162
+ py: !0,
163
+ children: [/*#__PURE__*/ D("h2", { children: n._({ id: "6GBt0m" }) }), s ? /*#__PURE__*/ D(p, { children: o.map(([e, t]) => /*#__PURE__*/ O(k.Fragment, { children: [/*#__PURE__*/ D(l, { children: e }), /*#__PURE__*/ D(r, { children: t == null ? /*#__PURE__*/ D("span", { children: "null" }) : typeof t == "object" ? /*#__PURE__*/ D("span", {
164
+ className: "break-all",
165
+ children: JSON.stringify(t)
166
+ }) : typeof t == "boolean" ? t ? n._({ id: "c+xCSz" }) : n._({ id: "ocUvR+" }) : /*#__PURE__*/ D("span", {
167
+ className: "break-all",
168
+ children: String(t)
169
+ }) })] }, e)) }) : /*#__PURE__*/ D("p", {
170
+ className: "text-theme-light",
171
+ children: n._({ id: "9v5VLp" })
172
+ })]
173
+ });
174
+ }, ve = ({ image: e, isSharedWithMe: t = !1, permissions: n, myMemberData: r, onMemberStatusChange: i, isMemberStatusChanging: o, actions: s }) => /*#__PURE__*/ O(a, {
175
+ direction: "vertical",
176
+ gap: "6",
177
+ children: [
178
+ t && r && i && /*#__PURE__*/ D(P, {
179
+ image: e,
180
+ myMemberData: r,
181
+ canUpdateMember: n?.canUpdateMember ?? !1,
182
+ onStatusChange: i,
183
+ isLoading: o ?? !1
184
+ }),
185
+ s,
186
+ /*#__PURE__*/ D(F, { image: e }),
187
+ /*#__PURE__*/ D(I, {
188
+ image: e,
189
+ isSharedWithMe: t
190
+ }),
191
+ /*#__PURE__*/ D(L, { image: e })
192
+ ]
193
+ });
194
+ //#endregion
195
+ //#region src/client/routes/_auth/projects/$projectId/compute/images/-hooks/useImageActions.ts
196
+ function ye({ image: e, projectId: t, permissions: n, myMemberData: r }) {
197
+ let i = e.visibility === S.SHARED && !!r, a = e.owner === t, o = i && r?.status === "pending", s = i && r?.status === "accepted", c = e.status === x.DEACTIVATED, l = e.visibility === S.PRIVATE, u = e.visibility === S.SHARED, d = !!e.protected, f = a && n.canUpdate, p = a && n.canUpdate, m = a && n.canDelete && !d, h = o && !a && n.canUpdateMember, g = (o || s) && !a && n.canUpdateMember, _ = a && u && (n.canCreateMember || n.canDeleteMember), v = a && l && n.canUpdate, y = a && c && n.canUpdate, b = a && !c && n.canUpdate;
198
+ return {
199
+ isSharedWithMe: i,
200
+ isOwnImage: a,
201
+ isPendingShared: o,
202
+ isAcceptedShared: s,
203
+ isDeactivated: c,
204
+ isPrivate: l,
205
+ isSharedVisibility: u,
206
+ isProtected: d,
207
+ canViewDetails: !0,
208
+ canEditDetails: f,
209
+ canEditMetadata: p,
210
+ canDelete: m,
211
+ canAccept: h,
212
+ canReject: g,
213
+ canManageAccess: _,
214
+ canSetToShared: v,
215
+ canActivate: y,
216
+ canDeactivate: b,
217
+ hasAnyAction: f || p || m || h || g || _ || v || y || b
218
+ };
219
+ }
220
+ //#endregion
221
+ //#region src/client/routes/_auth/projects/$projectId/compute/images/$imageId.tsx?tsr-split=component
222
+ function be() {
223
+ let { i18n: e, _: t } = N(), n = j(), { projectId: r } = _.useParams();
224
+ return /*#__PURE__*/ D(v, { action: /*#__PURE__*/ D(c, {
225
+ variant: "primary",
226
+ onClick: () => n({
227
+ to: "/projects/$projectId/compute/images",
228
+ params: { projectId: r }
229
+ }),
230
+ children: e._({ id: "bnql/K" })
231
+ }) });
232
+ }
233
+ function R() {
234
+ let { projectId: e, imageId: t } = _e({ from: "/_auth/projects/$projectId/compute/images/$imageId" }), r = j(), { i18n: i, _: l } = N(), { data: p, status: y, error: x } = h.compute.getImageById.useQuery({
235
+ project_id: e,
236
+ imageId: t
237
+ });
238
+ ee(_.id, p?.name);
239
+ let { data: C } = h.compute.canUser.useQuery({
240
+ project_id: e,
241
+ permission: [
242
+ "images:delete",
243
+ "images:update",
244
+ "images:create_member",
245
+ "images:delete_member",
246
+ "images:update_member"
247
+ ]
248
+ }), w = {
249
+ canDelete: C?.[0] ?? !1,
250
+ canUpdate: C?.[1] ?? !1,
251
+ canCreateMember: C?.[2] ?? !1,
252
+ canDeleteMember: C?.[3] ?? !1,
253
+ canUpdateMember: C?.[4] ?? !1
254
+ }, T = h.useUtils(), [k, P] = A(!1), [F, I] = A(!1), [L, R] = A(!1), [z, B] = A(!1), [V, H] = A(!1), [U, W] = A(!1), G = h.compute.updateImage.useMutation({ onSuccess: (n) => {
255
+ T.compute.getImageById.setData({
256
+ project_id: e,
257
+ imageId: t
258
+ }, (e) => e ? {
259
+ ...e,
260
+ ...n
261
+ } : n), T.compute.listImagesWithPagination.invalidate();
262
+ } }), K = h.compute.deleteImage.useMutation({ onSuccess: () => {
263
+ T.compute.listImagesWithPagination.invalidate();
264
+ } }), q = h.compute.deactivateImage.useMutation({ onSuccess: () => {
265
+ T.compute.getImageById.invalidate({
266
+ project_id: e,
267
+ imageId: t
268
+ });
269
+ } }), J = h.compute.reactivateImage.useMutation({ onSuccess: () => {
270
+ T.compute.getImageById.invalidate({
271
+ project_id: e,
272
+ imageId: t
273
+ });
274
+ } }), Y = h.compute.updateImageVisibility.useMutation({ onSuccess: (n) => {
275
+ T.compute.getImageById.setData({
276
+ project_id: e,
277
+ imageId: t
278
+ }, (e) => e ? {
279
+ ...e,
280
+ ...n
281
+ } : n);
282
+ } }), xe = p?.visibility === S.SHARED, { data: X } = h.compute.getImageMember.useQuery({
283
+ project_id: e,
284
+ imageId: t,
285
+ memberId: e
286
+ }, {
287
+ enabled: xe && !!t && !!e,
288
+ retry: !1
289
+ }), Se = h.compute.updateImageMember.useMutation({ onSuccess: () => {
290
+ T.compute.getImageMember.invalidate({
291
+ project_id: e,
292
+ imageId: t,
293
+ memberId: e
294
+ }), T.compute.listImageMembers.invalidate({
295
+ project_id: e,
296
+ imageId: t
297
+ }), T.compute.listImagesWithPagination.invalidate(), T.compute.listSharedImagesByMemberStatus.invalidate();
298
+ } }), Ce = async (n) => {
299
+ try {
300
+ await Se.mutateAsync({
301
+ project_id: e,
302
+ imageId: t,
303
+ memberId: e,
304
+ status: n
305
+ });
306
+ let { message: r, ...i } = oe(n);
307
+ u.info(r, i);
308
+ } catch (e) {
309
+ let t = e?.message, { message: n, ...r } = ce(t);
310
+ u.error(n, r);
311
+ }
312
+ }, we = () => {
313
+ r({
314
+ to: "/projects/$projectId/compute/images",
315
+ params: { projectId: e }
316
+ });
317
+ }, Z = G.isPending || K.isPending || q.isPending || J.isPending || Y.isPending, Te = async (n) => {
318
+ if (!p) return !1;
319
+ let r = me(n, p);
320
+ try {
321
+ await G.mutateAsync({
322
+ project_id: e,
323
+ imageId: t,
324
+ operations: r
325
+ }), P(!1);
326
+ let { message: n, ...i } = ie(String(p.name ?? p.id));
327
+ return u.success(n, i), !0;
328
+ } catch {
329
+ return !1;
330
+ }
331
+ }, Ee = async (t) => {
332
+ try {
333
+ await K.mutateAsync({
334
+ project_id: e,
335
+ imageId: t.id
336
+ }), R(!1), we();
337
+ } catch {
338
+ R(!1);
339
+ }
340
+ }, De = async (t) => {
341
+ try {
342
+ await J.mutateAsync({
343
+ project_id: e,
344
+ imageId: t.id
345
+ }), B(!1);
346
+ let { message: n, ...r } = he(String(t.name ?? t.id));
347
+ u.success(n, r);
348
+ } catch (e) {
349
+ B(!1);
350
+ let { message: n, ...r } = ge(t.id, e?.message ?? "");
351
+ u.error(n, r);
352
+ }
353
+ }, Oe = async (t) => {
354
+ try {
355
+ await q.mutateAsync({
356
+ project_id: e,
357
+ imageId: t.id
358
+ }), H(!1);
359
+ let { message: n, ...r } = ae(String(t.name ?? t.id));
360
+ u.success(n, r);
361
+ } catch (e) {
362
+ H(!1);
363
+ let { message: n, ...r } = ne(t.id, e?.message ?? "");
364
+ u.error(n, r);
365
+ }
366
+ }, ke = async (t) => {
367
+ if (p) try {
368
+ await Y.mutateAsync({
369
+ project_id: e,
370
+ imageId: p.id,
371
+ visibility: t
372
+ });
373
+ let { message: n, ...r } = ue(String(p.name ?? p.id), t);
374
+ u.success(n, r);
375
+ } catch (e) {
376
+ let { message: t, ...n } = te(String(p.name ?? p.id), e?.message ?? "");
377
+ u.error(t, n);
378
+ }
379
+ };
380
+ if (y === "pending") return /*#__PURE__*/ D(f, {
381
+ status: "progress",
382
+ title: i._({ id: "hH3kDo" })
383
+ });
384
+ if (y === "error") {
385
+ let e = x?.message || i._({ id: "LobdAW" });
386
+ return /*#__PURE__*/ D(v, {
387
+ errorTitle: i._({ id: "2bUZog" }),
388
+ errorDescription: e,
389
+ action: /*#__PURE__*/ D(c, {
390
+ onClick: we,
391
+ variant: "primary",
392
+ children: /*#__PURE__*/ D(M, { id: "bnql/K" })
393
+ })
394
+ });
395
+ }
396
+ if (!p) return /*#__PURE__*/ D(be, {});
397
+ let Q = ye({
398
+ image: p,
399
+ projectId: e,
400
+ permissions: w,
401
+ myMemberData: X
402
+ }), $ = Q.canEditMetadata || Q.canSetToShared || Q.canActivate || Q.canDeactivate || Q.canDelete || Q.canManageAccess, Ae = ($ || Q.canEditDetails) && /*#__PURE__*/ O(a, {
403
+ gap: "0.5",
404
+ alignment: "center",
405
+ children: [$ && /*#__PURE__*/ O(n, {
406
+ className: "flex items-center",
407
+ children: [/*#__PURE__*/ D(o, {
408
+ as: "div",
409
+ children: /*#__PURE__*/ D(c, {
410
+ icon: "moreVert",
411
+ title: i._({ id: "PgNNGl" }),
412
+ disabled: Z
413
+ })
414
+ }), /*#__PURE__*/ O(s, { children: [
415
+ Q.canEditMetadata && /*#__PURE__*/ D(m, {
416
+ onClick: () => I(!0),
417
+ label: i._({ id: "SIfYq6" }),
418
+ disabled: Z
419
+ }),
420
+ (Q.canManageAccess || Q.canSetToShared || Q.canActivate || Q.canDeactivate) && /*#__PURE__*/ D(d, {}),
421
+ Q.canManageAccess && /*#__PURE__*/ D(m, {
422
+ onClick: () => W(!0),
423
+ label: i._({ id: "cWbW6w" }),
424
+ disabled: Z
425
+ }),
426
+ Q.canSetToShared && /*#__PURE__*/ D(m, {
427
+ label: i._({ id: "gMYsdZ" }),
428
+ onClick: () => ke("shared")
429
+ }),
430
+ Q.canActivate && /*#__PURE__*/ D(m, {
431
+ label: i._({ id: "RSFkXF" }),
432
+ onClick: () => B(!0)
433
+ }),
434
+ Q.canDeactivate && /*#__PURE__*/ D(m, {
435
+ label: i._({ id: "hQr1Cr" }),
436
+ onClick: () => H(!0)
437
+ }),
438
+ Q.canDelete && /*#__PURE__*/ O(E, { children: [/*#__PURE__*/ D(d, {}), /*#__PURE__*/ D(m, {
439
+ label: i._({ id: "KWa0gi" }),
440
+ onClick: () => R(!0)
441
+ })] })
442
+ ] })]
443
+ }), Q.canEditDetails && /*#__PURE__*/ D(c, {
444
+ onClick: () => P(!0),
445
+ variant: "primary",
446
+ disabled: Z,
447
+ children: /*#__PURE__*/ D(M, { id: "Y1YKad" })
448
+ })]
449
+ });
450
+ return /*#__PURE__*/ O(E, { children: [
451
+ /*#__PURE__*/ D(b, {
452
+ title: String(p.name ?? p.id),
453
+ projectId: e,
454
+ actions: Ae
455
+ }),
456
+ /*#__PURE__*/ D("div", {
457
+ className: "mt-3",
458
+ children: /*#__PURE__*/ D(ve, {
459
+ image: p,
460
+ isSharedWithMe: Q.isSharedWithMe,
461
+ permissions: {
462
+ canCreateMember: w.canCreateMember,
463
+ canDeleteMember: w.canDeleteMember,
464
+ canUpdateMember: w.canUpdateMember
465
+ },
466
+ myMemberData: X,
467
+ onMemberStatusChange: Ce,
468
+ isMemberStatusChanging: Se.isPending
469
+ }, p.id)
470
+ }),
471
+ k && /*#__PURE__*/ D(re, {
472
+ image: p,
473
+ isOpen: k,
474
+ isLoading: G.isPending,
475
+ onClose: () => P(!1),
476
+ onSave: Te
477
+ }),
478
+ F && g && e && p && /*#__PURE__*/ D(fe, {
479
+ client: g,
480
+ image: p,
481
+ isOpen: F,
482
+ onClose: () => {
483
+ I(!1), T.compute.getImageById.invalidate({
484
+ project_id: e,
485
+ imageId: t
486
+ }), T.compute.listImagesWithPagination.invalidate();
487
+ },
488
+ projectId: e
489
+ }, "edit-metadata-modal"),
490
+ L && /*#__PURE__*/ D(se, {
491
+ image: p,
492
+ isOpen: L,
493
+ isLoading: K.isPending,
494
+ isDisabled: !!p.protected,
495
+ onClose: () => R(!1),
496
+ onDelete: Ee
497
+ }),
498
+ z && /*#__PURE__*/ D(le, {
499
+ image: p,
500
+ isOpen: z,
501
+ isLoading: J.isPending,
502
+ onClose: () => B(!1),
503
+ onActivate: De
504
+ }),
505
+ V && /*#__PURE__*/ D(pe, {
506
+ image: p,
507
+ isOpen: V,
508
+ isLoading: q.isPending,
509
+ onClose: () => H(!1),
510
+ onDeactivate: Oe
511
+ }),
512
+ U && /*#__PURE__*/ D(de, {
513
+ image: p,
514
+ isOpen: U,
515
+ onClose: () => W(!1),
516
+ permissions: {
517
+ canCreateMember: w.canCreateMember,
518
+ canDeleteMember: w.canDeleteMember
519
+ }
520
+ })
521
+ ] });
522
+ }
523
+ //#endregion
524
+ export { R as component };
525
+
526
+ //# sourceMappingURL=_imageId-BAezmV0Y.mjs.map