You can buy this project and download/modify it how often you want.
Contains code for the availability dialog. @since 9.9.0