//#region src/v2/features/collection/helpers/get-default-operation-security-toggle.ts
/**
* Determines the default toggle state for operation security.
* Returns false for 'document' type, undefined if path/method is missing,
* otherwise checks if there are selected auth schemas for the operation.
*/
var getDefaultOperationSecurityToggle = ({ authStore, documentName, ...payload }) => {
	if (payload.type === "document") return false;
	return authStore.getAuthSelectedSchemas({
		type: "operation",
		documentName,
		path: payload.path,
		method: payload.method
	}) !== void 0;
};
//#endregion
export { getDefaultOperationSecurityToggle };

//# sourceMappingURL=get-default-operation-security-toggle.js.map