24. Articles 50.7 and 50.8 provide that judicial and administrative authorities must have the authority to order an applicant to provide the defendant appropriate compensation for any injury caused by the adoption of provisional measures when said measures are revoked, have lapsed, or when it has been determined that there has been no infringement or threat of infringement. Please identify the judicial and administrative authorities, on a national and local level, that are authorized to award defendants appropriate compensation for injuries caused by provisional measures and describe how the competent authorities determine "appropriate compensation".