<div id="fc-inline"></div>
<input type="hidden" name="fc_job_id" id="fc-job-id" value="">
<script src="https://cdn.filecheck.io/element/{pk}/filecheck.js" async></script>
<script>
(function () {
var started = Date.now();
(function tick() {
if (window.Filecheck && window.Filecheck.mount) {
var el = window.Filecheck.mount({
publishableKey: '{pk}',
workflowId: '{workflowId}',
presentation: '{presentation}',
connectorId: '{connectorId}' || undefined,
});
if (el) el.on('status', function (e) {
document.getElementById('fc-job-id').value = e.jobId || '';
});
return;
}
if (Date.now() - started < 10000) setTimeout(tick, 50);
})();
})();
</script>