{#if requiredCapability?.status === "verified"}
{translateMessage("The required PostgREST RPC operations and binary semantics were verified.")}
{:else if requiredCapability?.status === "unsupported"}
{translateMessage("The PostgREST SQL contract is missing required operations: ${CAPABILITIES}.", {
CAPABILITIES: requiredCapability.missing.join(", "),
})}
{:else if requiredCapability?.status === "failed"}
{translateMessage("The Adaptive safety check failed (${CATEGORY}; retry ${RETRY}).", {
CATEGORY: requiredCapability.failure.category,
RETRY: requiredCapability.failure.retry,
})}
{:else if inspectionIsCurrent}
{translateMessage("Required Adaptive operations were not checked.")}
{/if}
{translateMessage(
"The saved connection contains the Vault credential and optional API key. Configuration encryption protects exported Setup data when it is enabled; do not share a plain connection string."
)}
{error}
{#if processing}
{translateMessage("Checking connection... Please wait.")}
{:else}
{#if inspectionIsCurrent && inspection?.available && inspectedSettings}
commitVerified()}
/>
checkConnection()}
/>
{:else}
checkConnection()}
/>
{/if}
{#if setupMode === "settings"}
{translateMessage(
"Saving without a successful connection test keeps this profile, but automatic synchronisation may fail until the connection or server SQL is corrected."
)}
commit()}
/>
{/if}
setResult(TYPE_CANCELLED)} />
{/if}