Classic UI Re-initialize Mockup Pattern

I have an upload file widget that triggers an HTMX request to update a list of uploaded files. I use pat-modal links in the list. Modal links in the updated list no longer work. As I understand it, the modal pattern needs to be re-initialized. How is this done? HTMX has an event listener that I can use to trigger the re-initialization. But I do not know the steps.

Below is an example of my link:

<a class="pat-plone-modal" href="http://localhost:9099/Plone/apps/example.pdf/@@epdfview" data-pat-plone-modal="modalSizeClass: modal-lg; content:#pdf-wrapper">example.pdf</a>

Thanks.