A subpoena or, in a civil action, a notice in lieu of subpoena as authorized by R. 1:9-1 may require production of books, papers, documents, electronically stored information, or other objects designated therein. The court on motion made promptly may quash or modify the subpoena or notice if compliance would be unreasonable or oppressive and, in a civil action, may condition denial of the motion upon the advancement by the person in whose behalf the subpoena or notice is issued of the reasonable cost of producing the objects subpoenaed. The court may direct that the objects designated in the subpoena or notice be produced before the court at a time prior to the trial or prior to the time when they are to be offered in evidence and may upon their production permit them or portions of them to be inspected by the parties and their attorneys and, in matrimonial actions and juvenile proceedings, by a probation officer or other person designated by the court. Except for pretrial production directed by the court pursuant to this rule, subpoenas for pretrial production shall comply with the requirements of R. 4:14-7(c).