1function documentReady(callback){new Promise((resolutionFunc,rejectionFunc)=>{if(document.readyState==='interactive'||document.readyState==='complete'){resolutionFunc('interactive')} 2document.addEventListener('DOMContentLoaded',()=>{resolutionFunc('DOMContentLoaded')},!1);setTimeout(()=>{resolutionFunc('timeout')},35000)}).then(resolution=>{callback(resolution)}).catch(err=>{callback(err)})} 3documentReady(()=>{const wrapElementInHtml=()=>{} 4const $wpBlocks=document.querySelectorAll('.wp-block-audio:not(.dzsap-treated)');$wpBlocks.forEach(($node)=>{const src=$node.querySelector('audio').getAttribute('src');const preloadMethod=$node.querySelector('audio').getAttribute('preload');const isAutoplay=$node.querySelector('audio').autoplay;const isLoop=$node.querySelector('audio').loop;$node.classList.add('dzsap-treated');let playerOptions={loop:isLoop?'on':'off',autoplay:isAutoplay?'on':'off',preload_method:preloadMethod,};let $feed_dzsapConfigs=null;const $feed_dzsapConfigsAll=document.querySelectorAll('.dzsap-feed--dzsap-configs');if($feed_dzsapConfigsAll.length){$feed_dzsapConfigs=$feed_dzsapConfigsAll[$feed_dzsapConfigsAll.length-1]} 5if($feed_dzsapConfigs){window.dzsap_apconfigs=JSON.parse($feed_dzsapConfigs.innerHTML)} 6let $feed_dzsapMainSettings=null;const $feed_dzsapMainSettingsAll=document.querySelectorAll('.dzsap-main-settings');if($feed_dzsapMainSettingsAll.length){$feed_dzsapMainSettings=$feed_dzsapMainSettingsAll[$feed_dzsapMainSettingsAll.length-1]} 7if($feed_dzsapMainSettings){window.dzsap_settings=JSON.parse($feed_dzsapMainSettings.innerHTML)} 8const view_replace_audio_shortcode=String(window.dzsap_settings.view_replace_audio_shortcode);const sanitizedKey=view_replace_audio_shortcode.replace(/[^a-zA-Z0-9\-]+/g,'');if(sanitizedKey&&window.dzsap_apconfigs[sanitizedKey]){playerOptions=Object.assign(window.dzsap_apconfigs[sanitizedKey],playerOptions)} 9let newHtml=`<div class="audioplayer-tobe apconfig-${sanitizedKey} ${playerOptions.skin_ap} auto-init`;if(playerOptions.button_aspect){newHtml+=` ${playerOptions.button_aspect}`} 10newHtml+=`" data-options='${JSON.stringify(playerOptions)}' data-type="audio" 11 data-source="${src}" > 12 </div>`;$node.innerHTML=newHtml;setTimeout(()=>{if(window.jQuery&&window.dzsap_init_allGalleries){window.dzsap_init_allGalleries(window.jQuery)} 13if(window.jQuery&&window.dzsap_init_allPlayers){window.dzsap_init_allPlayers(window.jQuery)}},10)})})
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.