1function wpfd_elementor_frameload(){jQuery("#wpfd_elementor_loader").hide();jQuery("#wpfdelementormodalframe").css('visibility',"visible");jQuery("#wpfdelementormodalframe").show()} 2function wpfd_file_widget_trigger_controls(){jQuery('.elementor-control.wpfd-file-id-controls input[data-setting="wpfd_file_id"]',window.document).trigger('input');jQuery('.elementor-control.wpfd-category-id-controls input[data-setting="wpfd_category_id"]',window.document).trigger('input');jQuery('.elementor-control.wpfd-file-name-controls input[data-setting="wpfd_file_name"]',window.document).trigger('input')} 3function wpfd_category_widget_trigger_controls(){jQuery('.elementor-control.elementor-control-wpfd_selected_category_id input[data-setting="wpfd_selected_category_id"]',window.document).trigger('input');jQuery('.elementor-control.elementor-control-wpfd_selected_category_name input[data-setting="wpfd_selected_category_name"]',window.document).trigger('input')} 4function wpfd_pdf_embed_widget_trigger_controls(){jQuery('.elementor-control.wpfd-pdf-embed-file-id-controls input[data-setting="wpfd_pdf_embed_file_id"]',window.document).trigger('input');jQuery('.elementor-control.wpfd-pdf-embed-category-id-controls input[data-setting="wpfd_pdf_embed_category_id"]',window.document).trigger('input');jQuery('.elementor-control.wpfd-pdf-embed-file-name-controls input[data-setting="wpfd_pdf_embed_file_name"]',window.document).trigger('input')} 5function wpfd_elementor_hide_modal(e){jQuery('#lean_overlay',window.document).fadeOut(300);jQuery('#wpfdelementormodal',window.document).fadeOut(300)} 6jQuery(document).ready(function($){var WPFD_MODAL_BASE_URL='admin.php?page=wpfd&noheader=1&caninsert=1&elementorbuilder=1';function wpfdBuildModalUrl(mode,selection){var url=WPFD_MODAL_BASE_URL+'&wpfdmode='+encodeURIComponent(mode);if(mode==='pdfembed'){url+='&pdfembed=1'} 7if(selection&&selection.categoryId){url+='&wpfdcatid='+encodeURIComponent(selection.categoryId)} 8if(selection&&selection.fileId){url+='&wpfdfileid='+encodeURIComponent(selection.fileId)} 9return url} 10function wpfdOpenModal(launcher,mode,selection){var $frame=$('#wpfdelementormodalframe');var modalId=launcher.attr('href');var modalWidth=$(modalId).outerWidth();$frame.attr('data-src',wpfdBuildModalUrl(mode,selection));$('#wpfdelementormodal').css('height','90%');$frame.css('visibility','hidden').hide();$frame.attr('src',$frame.attr('data-src'));$('#wpfd_elementor_loader').show();$frame.removeClass('wpfdelementormodalframe-single-file').removeClass('wpfdelementormodalframe-category').removeClass('wpfdelementormodalframe-pdf-embed');if(mode==='file'){$frame.addClass('wpfdelementormodalframe-single-file')}else if(mode==='category'){$frame.addClass('wpfdelementormodalframe-category')}else{$frame.addClass('wpfdelementormodalframe-pdf-embed')} 11$('#lean_overlay').css({"display":"block",opacity:0}
11);$('#lean_overlay').fadeTo(200,0.5);$(modalId).css({"visibility":"visible","display":"block","text-align":"center","position":"fixed","opacity":0,"z-index":100102,"left":50+"%","margin-left":-(modalWidth/2)+"px","top":"20px"});$(modalId).fadeTo(200,1)} 12function wpfdUpdateWidgetControls(values){var updated=!1;$.each(values,function(setting,value){var $input=$('.elementor-controls-stack input[data-setting="'+setting+'"], .elementor-control input[data-setting="'+setting+'"]');if($input.length){$input.val(value);updated=!0}});return updated} 13function wpfdUpdateWidgetSettings(values){try{if(typeof window.$e==='undefined'||typeof window.elementor==='undefined'){return!1} 14var container=null;var panelView=elementor.getPanelView();if(panelView&&panelView.getCurrentPageView){var pageView=panelView.getCurrentPageView();if(pageView){if(pageView.getContainer){container=pageView.getContainer()}else if(pageView.getOption&&pageView.getOption('editedElementView')){container=pageView.getOption('editedElementView').getContainer()}}} 15if(!container){return!1} 16window.$e.run('document/elements/settings',{container:container,settings:values});return!0}catch(error){return!1}} 17function wpfdInitPdfEmbedViewer(){var attempts=0;var maxAttempts=20;(function initViewer(){var viewer=jQuery();try{var frame=document.getElementById('elementor-preview-iframe');if(frame&&frame.contentWindow&&frame.contentWindow.jQuery){viewer=frame.contentWindow.jQuery('.wpfd-pdfemb-viewer')}}catch(error){viewer=jQuery()} 18if(viewer.length&&typeof viewer.pdfEmbedder==='function'){viewer.pdfEmbedder();return} 19attempts++;if(attempts<maxAttempts){setTimeout(initViewer,500)}})()} 20$('.wpfdelementorlaunch').leanModal({top:20,beforeShow:function(){$("#wpfdelementormodal").css("height","90%");$("#wpfdelementormodalframe").css('visibility','hidden');$("#wpfdelementormodalframe").hide();$("#wpfdelementormodalframe").attr('src',$("#wpfdelementormodalframe").data('src'));$("#wpfd_elementor_loader").show()}});if(typeof wpfd_elemetor_vars!=="undefined"){$('body').append('<div id="wpfdelementormodal" class="wpfdelementormodal-elementor"><img src="'+wpfd_elemetor_vars.dir+'app/admin/assets/images/spinner-2x.gif" alt="Loading..." width="32" id="wpfd_elementor_loader" /><iframe id="wpfdelementormodalframe" title="WP File Download Iframe" onload="wpfd_elementor_frameload()" width="100%" height="100%" marginWidth="0" marginHeight="0" frameBorder="0" scrolling="auto" data-src="'+WPFD_MODAL_BASE_URL+'"></iframe><button id="wpfd-close-elementor-modal">x</button></div>')} 21$(document).on("click",'.wpfdelementorlaunch',function(e){wpfdOpenModal($(this),'file',{categoryId:$('[data-setting="wpfd_category_id"]').val(),fileId:$('[data-setting="wpfd_file_id"]').val()})});$(document).on("click",'.wpfdcategorylaunch',function(e){wpfdOpenModal($(this),'category',{categoryId:$('[data-setting="wpfd_selected_category_id"]').val()})});$(document).on("click",'.wpfdpdfembedlaunch',function(e){wpfdOpenModal($(this),'pdfembed',{categoryId:$('[data-setting="wpfd_pdf_embed_category_id"]').val(),fileId:$('[data-setting="wpfd_pdf_embed_file_id"]').val()})});window.addEventListener('message',function(event){if(event.origin!==window.location.origin){return} 22var data=event.data;if(!data||data.wpfd!=='elementor'){return} 23if(data.action==='close'){wpfd_elementor_hide_modal();return} 24if(data.action!=='insert'){return} 25var values={};if(data.mode==='category'){values.wpfd_selected_category_id=data.categoryId;values.wpfd_selected_category_name=data.categoryName}else if(data.mode==='pdfembed'){values.wpfd_pdf_embed_file_id=data.fileId;values.wpfd_pdf_embed_category_id=data.categoryId;values.wpfd_pdf_embed_file_name=data.fileName}else{values.wpfd_file_id=data.fileId;values.wpfd_category_id=data.categoryId;values.wpfd_file_name=data.fileName} 26if(wpfdUpdateWidgetControls(values)){if(data.mode==='category'){wpfd_category_widget_trigger_controls()}else if(data.mode==='pdfembed'){wpfd_pdf_embed_widget_trigger_controls()}else{wpfd_file_widget_trigger_controls()}}else{wpfdUpdateWidgetSettings(values)} 27wpfd_elementor_hide_modal();if(data.mode==='pdfembed'){wpfdInitPdfEmbedViewer()}},!1);$(document).on('click','#wpfd-close-elementor-modal',function(e){wpfd_elementor_hide_modal(e)});$('body').on('click',function(e){if($('div#wpfdelementormodal').is(':visible')&&!$(e.target).is('#wpfdelementormodal')){wpfd_elementor_hide_modal(e)}});$(document).on('click','.elementor-control .elementor-control-title',function(e){e.preventDefault()})})
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.