Your IP : 216.73.216.138


Current Path : /home/ereika83/public_html/wp-content/plugins/squirrly-seo/view/assets/js/assistant/
Upload File :
Current File : /home/ereika83/public_html/wp-content/plugins/squirrly-seo/view/assets/js/assistant/squirrly.min.js

(function($){"use strict";if($.isFunction($.fn.sq_main)||typeof $sq_config==="undefined"||typeof $sq_params==="undefined"){return}$.sq_initialized=false;$.sq_setConfig=function(){$.sq_config=$.extend({div:$("#postsquirrly"),debug:false,editor:false,editor_type:false,active_editor:false,token:"",url_token:"",sq_apiurl:"//api.squirrly.co/v2/",ajaxurl:"",sq_nonce:"",sq_version:"",is_gutenberg:0,referer:"",keyword:"",lsi:[],language:"en-US",subscription_active:1,subscription_paid:0,sq_keywordtag:"",postID:0,prevNonce:"",user_url:"http://"+document.domain,research_language:"us",timeout_seo:null,timeout_search:null,timeout_research:null,sq_windowerror:false,interval_seo:null,calltimeout:5e3,delay_seo:3e4,cookie_expires:60*24*2,nrb:8,after_insert:'<div><br style="clear:both" /></div>',firsttime:false,manual:false,silent:false,briefcase:false,sq_cache:[]},$sq_config)};$.sq_setParams=function(){$.sq_params=$.extend({low_density:1,high_density:2.5,high_density_title:35,low_density_title:2.5,min_length_title:10,max_length_title:75,min_length_body:80,max_length_body:0,min_length_description:20,max_length_description:160,begin_last_max_chars:300,max_word_density:5,beginning_length:255,ending_length:255,min_words_between_keywords:50,min_chars_between_keywords:100,max_keywords:5},$sq_params)};$.sq_setfields=function(){$.sq_fields=$.extend({wp_title:$("#titlediv"),wp_input_title:$("#post").find("#title"),wp_postimagediv:$("#postimagediv"),wp_content_wrap:$(".wp-editor-wrap"),wp_content:$(".wp-editor-area"),wp_publish:$("#publish"),wp_postarea:$(".postarea"),wp_thumbnail_alt:$("#attachment_alt"),wp_thumbnail:$(".wp_attachment_image"),content_html:$("#content-html"),content_tmce:$("#content-tmce"),content_html_wp3:$("#edButtonHTML"),content_tmce_wp3:$("#edButtonPreview"),sq_box:$.sq_config.div.find(".sq_box"),sq_preloading:$.sq_config.div.find("#sq_preloading"),sq_preloading_keyword:$.sq_config.div.find("#sq_preloading_keyword"),sq_errorloading:$.sq_config.div.find("#sq_errorloading"),div_blocksearch:$.sq_config.div.find("#sq_blocksearch"),div_blockseo:$.sq_config.div.find("#sq_blockseo"),div_blockbriefcase:$("#sq_briefcase"),div_blocksnippet:$("#sq_blocksnippet"),sq_blocktabs:$.sq_config.div.find("#sq_block_tabs"),sq_blocksteps:$.sq_config.div.find(".sq_block_steps"),sq_search:$.sq_config.div.find(".sq_search"),sq_search_img_filter:$.sq_config.div.find("#sq_search_img_filter"),sq_search_second:$.sq_config.div.find("#sq_search_second"),sq_keyword_second:$.sq_config.div.find("#sq_keyword_second"),sq_keyword_second_check:$.sq_config.div.find("#sq_keyword_second_check"),sq_briefcase_icon:$.sq_config.div.find("#sq_briefcase_icon"),sq_briefcase_list:$.sq_config.div.find("#sq_briefcase_list"),sq_research_link:$.sq_config.div.find("#sq_research_link"),sq_selectit:$.sq_config.div.find("#sq_selectit"),sq_types:$.sq_config.div.find("#sq_types"),sq_type_img:$.sq_config.div.find("#sq_type_img"),sq_type_twitter:$.sq_config.div.find("#sq_type_twitter"),sq_type_news:$.sq_config.div.find("#sq_type_news"),sq_type_blog:$.sq_config.div.find("#sq_type_blog"),sq_type_wiki:$.sq_config.div.find("#sq_type_wiki"),sq_type_local:$.sq_config.div.find("#sq_type_local"),sq_research:$("#sq_research"),sq_blog_preview:$('<div id="sq_blog_preview"><div id="sq_blog_preview_close" >x</div><div id="sq_blog_preview_title"></div><div id="sq_blog_preview_body"></div></div><div id="sq_blog_preview_overlay"></div>'),sq_search_img_nolicence:$("#sq_search_img_nolicence"),sq_keyword_div:$.sq_config.div.find(".sq_keyword"),sq_keyword:$.sq_config.div.find("#sq_keyword"),sq_keyword_score:$.sq_config.div.find("#sq_keyword_score"),sq_keyword_check:$.sq_config.div.find("#sq_keyword_check"),sq_keyword_nokeyword:$.sq_config.div.find("#sq_nokeyword"),sq_keywords_research:$("#sq_keywords_research"),sq_keywords_research_add:$(".sq_keywords_research_add"),sq_keywords_research_submit:$(".sq_keywords_research_submit"),sq_keywords_research_clear:$(".sq_keywords_research_clear"),sq_research_close:$("#sq_research_close")},$.sq_fields)};$.isDom=function(inp){return inp&&inp.tagName&&inp.nodeName&&inp.ownerDocument&&inp.removeAttribute};$.sq_isGutenberg=function(){if(typeof wp!=="undefined"&&typeof wp.data!=="undefined"&&typeof wp.data.select("core/editor")!=="undefined"&&typeof wp.blocks!=="undefined"){if(wp.data.select("core/editor")&&$.isFunction(wp.data.select("core/editor").getEditedPostAttribute)&&$(".block-editor").length>0){return true}}return false};$.sq_isDiviBuilder=function(){if($("#et_pb_layout:visible").length>0){return true}return false};$.sq_getBuilderEditorContainer=function(){if($.sq_isGutenberg()){if($(".block-editor-block-list__layout.is-root-container").length>0){return $(".block-editor-block-list__layout.is-root-container")}}else if($.sq_isFrontend()){if($.sq_editor.getFrontendEditor()&&$.sq_editor.getFrontendEditor().getBuilderContainer()){return $.sq_editor.getFrontendEditor().getBuilderContainer()}}else if($.sq_config.active_editor){return $.sq_config.active_editor}return $("<div></div>")};$.sq_isFrontend=function(){if(typeof $.sq_config.div==="undefined"){$.sq_initialize()}if($.sq_config.div.length>0&&$.sq_config.div.hasClass("sq_frontend")){return true}return false};$.sq_getDomain=function(url,ret,separator){var domainName="";if(typeof ret==="undefined"){var ret=[8,10]}if(typeof separator==="undefined"){var separator=""}url=url.split(/([a-z0-9_\-]{1,5}:\/\/)?(([a-z0-9_\-]{1,}):([a-z0-9_\-]{1,})\@)?((www\.)|([a-z0-9_\-]{1,}\.)+)?([a-z0-9_\-]{3,})((\.[a-z]{2,4})(:(\d{1,5}))?)(\/([a-z0-9_\-]{1,}\/)+)?([a-z0-9_\-]{1,})?(\.[a-z]{2,})?(\?)?(((\&)?[a-z0-9_\-]{1,}(\=[a-z0-9_\-]{1,})?)+)?/g);$.each(ret,function(key,val){if(typeof url[val]!=="undefined"){domainName=domainName+(domainName!==""?separator:"")+url[val]}});return domainName};if(!$.sq_showMessage)$.sq_showMessage=function(text,time){$(".sq_notice").hide();var $div=$('<div class="sq_notice sq_fixed" ><div>'+text+"</div></div>");$("body").prepend($div);if(typeof time==="undefined"){time=2e3}setTimeout(function(){$div.remove()},time);return $div.find("div")};if(!$.sq_getHashParam)$.sq_getHashParam=function(key){if(location.href.indexOf("#")!==-1&&location.href.indexOf("#"+key)!==-1&&window.location.href.split("#")[1]!==""){var results=new RegExp("[\\?&#]"+key+"=([^&#]*)").exec(window.location.href);if(results){return results[1]||0}else{var results=new RegExp("[\\?&#]"+key+"[^&#]*").exec(window.location.href);if(results){return"1"}}}return false};if(!$.sq_setHashParam)$.sq_setHashParam=function(key){var separator="";if(!$.sq_getHashParam(key)){if(location.href.indexOf("#")!==-1){if(location.href.split("#")[1]!=="")separator="&"}else{separator="#"}window.location.href=window.location.href+separator+key}return false};if(!$.sq_deleteHashParam)$.sq_deleteHashParam=function(key){if($.sq_getHashParam(key)){window.location.href=window.location.href.replace("&"+key,"")}if($.sq_getHashParam(key)){window.location.href=window.location.href.replace(key,"")}return false};$.sq_formatNumber=function(number){var x,x1,x2;number+="";x=number.split(".");x1=x[0];x2=x.length>1?"."+x[1]:"";var rgx=/(\d+)(\d{3})/;while(rgx.test(x1)){x1=x1.replace(rgx,"$1"+","+"$2")}return x1+x2};$.sq_clearText=function(str){if(typeof str!=="undefined"&&str.length>0){str=$.sq_clearDiacritics(str);str=$.sq_stripTags(str)}return str};$.sq_umlautsText=function(str){str=str.replace("ä","ae");str=str.replace("ö","oe");str=str.replace("ß","ss");str=str.replace("ü","ue");str=str.replace("æ","ae");str=str.replace("ø","oe");str=str.replace("å","aa");str=str.replace("é","e");str=str.replace("è","e");return str};$.sq_stripTags=function(str){if(typeof str!=="undefined"&&str.length>0){str=$("<div />").html(str).text()}return str};$.sq_stripShortcode=function(str){if(typeof str!=="undefined"&&str.length>0){str=str.replace(/\\[[^\\]]+\\]/g,"")}return str};$.sq_stripChars=function(str){if(typeof str!=="undefined"&&str.length>0){str=str.replace(/[-.\/]+/g," ");var pattern=$.sq_regex("[^\\p{L}\\d\\s]");if(pattern){str=str.replace(pattern,"")}str=str.replace(/\s{2,}/g," ");str=str.trim()}return str};$.sq_clearDiacritics=function(str){if(typeof sqDiacritics!=="undefined"&&typeof str=="string"){return sqDiacritics.clear(str)}return str};$.sq_getCookie=function(name){var nameEQ=name+"=";var ca=document.cookie.split(";");for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==" ")c=c.substring(1,c.length);if(c.indexOf(nameEQ)==0)return decodeURIComponent(c.substring(nameEQ.length,c.length))}return null};$.sq_setCookie=function(name,value){value=value.replace(new RegExp("\\\\","g"),"");document.cookie=name+"="+encodeURIComponent(value)+"; expires="+$.sq_config.cookie_expires+"; path=/"};$.sq_uriEncode=function(url){return url.replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29")};$.sq_getCache=function(name){if(typeof $.sq_config.sq_cache!=="undefined")if(typeof $.sq_config.sq_cache[name]!=="undefined")return $.sq_config.sq_cache[name];return""};$.sq_setCache=function(name,value){if(typeof name!=="undefined"&&typeof $.sq_config.sq_cache!=="undefined"){$.sq_config.sq_cache[name]=value}};$.sq_strEqual=function(a,b){return typeof a==="string"&&typeof b==="string"?a.localeCompare(b,undefined,{sensitivity:"accent"})===0:a===b};$.sq_isArray=function(input){return typeof input==="object"&&input instanceof Array};$.sq_regex=function(striptag){if(typeof XRegExp!=="undefined"){return XRegExp(striptag,"gi")}return false};$.fn.sq_loading=function(name){var $this=this;if(typeof name==="undefined"){$this.sq_classname="sq_minloading"}else{$this.sq_classname=name}clearTimeout($.sq_loadprocess);$this.first().addClass($this.sq_classname);return $this};$.fn.sq_doneloading=function(name){var $this=this;if(typeof name==="undefined"){name="sq_minloading"}clearTimeout($.sq_loadprocess);$this.removeClass(name);$this.find(".sq_error_message").remove();return $this};$.sq_checkin=function(){return $.post($.sq_config.ajaxurl,{action:"sla_checkin",sq_nonce:$.sq_config.sq_nonce,output:"json"}).done(function(response){$.sq_fields.sq_box.show();$.sq_fields.sq_preloading.hide();$.sq_fields.sq_preloading_keyword.show();if(typeof response.error!=="undefined"){if(response.error==="invalid_token"){if($.isFunction($.sq_config.div.sq_floating)){$.sq_floating=$.sq_config.div.sq_floating([]);$.sq_floating.init()}var $message=$('<div class="sq_error_message" style="width: 100%;text-align: center;padding: 10px;"><a href="admin.php?page=sq_dashboard" style="color: #df3434;font-size: 13px;font-weight: 500;">'+$.sq_config.__noconnection+"</a></div>");var sq_header=$.sq_fields.sq_box.find(".sq_header");$.sq_fields.sq_box.html($message);$.sq_fields.sq_box.prepend(sq_header);$.sq_fields.sq_box.find(".sq_box_maximize").hide();$.sq_fields.sq_box.find(".sq_box_close").on("click",function(){$.sq_config.div.hide();$.sq_setCookie("sq_sla","off")});$.sq_config.div.show();setTimeout(function(){$.sq_config.div.hide()},5e3)}else if(response.error==="maintenance"){if($.isFunction($.sq_config.div.sq_floating)){$.sq_floating=$.sq_config.div.sq_floating([]);$.sq_floating.init()}var $message=$('<div class="sq_error_message" style="width: 100%;text-align: center;padding: 10px;font-size: 12px;">'+$.sq_config.__maintenance+"</div>");var sq_header=$.sq_fields.sq_box.find(".sq_header");$.sq_fields.sq_box.html($message);$.sq_fields.sq_box.prepend(sq_header);$.sq_fields.sq_box.find(".sq_box_maximize").hide();$.sq_fields.sq_box.find(".sq_box_close").on("click",function(){$.sq_config.div.hide();$.sq_setCookie("sq_sla","off")});$.sq_config.div.show();setTimeout(function(){$.sq_config.div.hide()},5e3)}}if(typeof response.data!=="undefined"){var triggerLoadInterval=setInterval(function(){if($.sq_triggerLoad("seo.loaded")){clearInterval(triggerLoadInterval)}},1e3)}}).fail(function(){$.sq_fields.sq_box.show();$.sq_fields.sq_preloading.hide();$.sq_fields.sq_errorloading.show()})};$.sq_triggerLoad=function(message){if(typeof $.sq_config.div==="undefined"){$.sq_initialize()}if(typeof $.sq_blockbriefcase!=="undefined"&&typeof $.sq_blockseo!=="undefined"&&typeof $.sq_blocksearch!=="undefined"){$.sq_blockbriefcase.trigger(message);$.sq_blockseo.trigger(message);$.sq_blocksearch.trigger(message);$.sq_config.div.trigger(message);return true}else{return false}};$.sq_savePost=function(){var $sq_seo=[];$.sq_config.div.find('input[name="sq_seo[]"]').each(function(){$sq_seo.push(this.value)});if($.sq_blockbriefcase){$.sq_blockbriefcase.trigger("briefcase.save")}$.post($.sq_config.ajaxurl,{action:"sq_ajax_save_post",sq_nonce:$.sq_config.sq_nonce,post_id:$.sq_config.postID,sq_keyword:$.sq_config.keyword,referer:"backend",sq_seo:$sq_seo,optimizations:JSON.stringify($.sq_blockbriefcase.setOptimizations())})};$.sq_editor={getIframeEditor:function(element){var $this=$("#wpcontent");if(typeof element==="undefined"){element="#tinymce"}if($.sq_isGutenberg()){if($this.find("#editor").find("div.edit-post-visual-editor").length>0){return $this.find("#editor").find("div.edit-post-visual-editor")}if($this.find("#editor").find("div.edit-post-text-editor__body").length>0){return $this.find("#editor").find("div.edit-post-text-editor__body")}}if($this.find("#post").length>0&&$this.find("#post").find("iframe").length>0){if($this.find(".mce-container").find("iframe").contents().find(element+".has-focus").length>0){return $(".mce-container").find("iframe").contents().find(element+".has-focus")}if($this.find(".mce-container").find("iframe").contents().find(element).length>0){return $this.find(".mce-container").find("iframe").contents().find(element)}if($this.find("#content_ifr").contents().find(element).length>0){return $this.find("#content_ifr").contents().find(element)}if($this.find(".cke_contents").find("iframe").contents().find("body").length>0){return $this.find(".cke_contents").find("iframe").contents().find("body")}if($this.find("#cke_wysiwyg_frame").contents().find("body").length>0){return $this.find("#cke_wysiwyg_frame").contents().find("body")}}return false},getTinymceEditor:function(ed){var editor;if(typeof ed!=="undefined"&&typeof ed==="object"){editor=ed;if(typeof editor.activeEditor==="object")editor=editor.activeEditor}else{if(typeof tinyMCE==="object"){editor=tinyMCE;if(typeof tinyMCE.get("content")!=="undefined"){editor=tinyMCE.get("content")}else{if(typeof tinyMCE.activeEditor==="object"&&tinyMCE.activeEditor!==null){editor=tinyMCE.activeEditor}else{if(document.getElementById("content")!==null){editor=new tinymce.Editor("content");editor.contentCSS=["/wp-content/plugins/squirrly-seo/themes/default/css/sq_frontend.css"]}}}}}return editor},getBlockEditor:function(action){if($.sq_isGutenberg()){if(action==="select"){var ed=window.wp.data.select("core/editor")}else{var ed=window.wp.data.dispatch("core/editor")}return ed}return false},getFrontendEditor:function(action){if($.sq_isFrontend()){if(typeof window.sq_editor!=="undefined"){return window.sq_editor}}return false},createEditorButton:function(name){if($.sq_isFrontend()&&$("."+name).length==0){$("body").append('<button type="button" class="'+name+'"><i class="sq_logo" ></i></button>')}else if($.sq_isGutenberg()){if($(".edit-post-more-menu").length>0){$(".edit-post-more-menu").before('<button type="button" class="sq-position-static '+name+'"><i class="sq_logo" ></i></button>')}else if($(".interface-pinned-items").length>0){$(".interface-pinned-items").after('<button type="button" class="sq-ml-2 sq-position-static '+name+'"><i class="sq_logo" ></i></button>')}else if($(".edit-post-header__settings").length>0){$(".edit-post-header__settings").append('<button type="button" class="sq-position-static '+name+'"><i class="sq_logo" ></i></button>')}}else{$("body").append('<button type="button" class="'+name+'"><i class="sq_logo" ></i></button>')}},listenHtml:function(e){if(e.originalEvent.dataTransfer===null)return;var img=e.originalEvent.dataTransfer.getData("text");if($("#"+$(img).attr("id")).parent("li").attr("class")==="sq_search_img_li"){$.sq_fields.wp_content.val($.sq_fields.wp_content.val()+$.sq_blocksearch.packimg($(img).attr("id"),$("#"+$(img).attr("id")).parent("li").attr("src"),$("#"+$(img).attr("id")).parent("li")))}},listen:function(e){if($("#"+e.target.id).parent("li").attr("class")==="sq_search_img_li"){if($.sq_editor.lastimage!==$("#"+e.target.id).parent("li").attr("src")){$.sq_editor.insert($.sq_blocksearch.packimg(e.target.id,$("#"+e.target.id).parent("li").attr("src"),$("#"+e.target.id).parent("li")))}}$.sq_editor.lastimage=$("#"+e.target.id).parent("li").attr("src")},setContent:function(content,ed){if($.sq_config.editor_type==="tinymce"){var editor=$.sq_editor.getTinymceEditor(ed);if(typeof editor!=="undefined"){editor.setContent(content)}}},insert:function(content,ed){if($.sq_isDiviBuilder()||$.sq_isFrontend()){var input=document.createElement("textarea");document.body.prepend(input);input.value=content;input.focus();input.select();try{document.execCommand("copy");alert("We've copied the code and you can paste it in the Page Builder.")}catch(e){alert("You can copy the box and paste it in the Page Builder")}input.remove();if($(".edit-post-layout__content").length>0){$(".edit-post-layout__content").animate({scrollTop:$(".edit-post-layout__content").scrollTop()+$("#et_pb_layout").offset().top-50},"slow")}else{$("html,body").animate({scrollTop:$("#et_pb_layout").offset().top-50},"slow")}}else if($("#wpb_visual_composer:visible").length>0){var input=document.createElement("textarea");document.body.prepend(input);input.value=content;input.focus();input.select();try{document.execCommand("copy");alert("Visual Composer detected. We've copied the code and you can paste it in Visual Composer Editor.")}catch(e){alert("Visual Composer detected. You can copy the box and paste it in Visual Composer")}input.remove();if($(".edit-post-layout__content").length>0){$(".edit-post-layout__content").animate({scrollTop:$(".edit-post-layout__content").scrollTop()+$("#wpb_visual_composer").offset().top-50},"slow")}else{$("html,body").animate({scrollTop:$("#wpb_visual_composer").offset().top-50},"slow")}}else if($("#elementor-switch-mode-input").length>0&&$("#elementor-switch-mode-input").val()=="builder"){var input=document.createElement("textarea");document.body.appendChild(input);input.value=content;input.focus();input.select();try{document.execCommand("copy");alert("Elementor is detected. We've copied the code and you can paste it in Elementor Text Editor.")}catch(e){alert("Elementor detected. You can copy the box and paste it in Elementor Text Editor")}input.remove()}else if($("div.wp-editor-container").find("div.cs-editor-container.pro").length>0){var input=document.createElement("textarea");document.body.appendChild(input);input.value=content;input.focus();input.select();try{document.execCommand("copy");alert("Themeco PRO is detected. We've copied the code and you can paste it in Themeco PRO Text Editor.")}catch(e){alert("Themeco PRO detected. You can copy the box and paste it in Themeco PRO Text Editor")}input.remove()}else if($.sq_config.editor_type==="tinymce"){if(typeof tinyMCE==="object"){var editor=tinyMCE;if(typeof editor.activeEditor==="object"){editor=editor.activeEditor}}if(typeof editor!=="undefined"&&editor!==null){if(typeof editor.selection!=="undefined"){editor.selection.setContent(content)}else{editor.setContent(content)}$.sq_blockseo.callback()}}else{$.sq_fields.wp_content.val($.sq_fields.wp_content.val().substr(0,$.sq_fields.wp_content[0].selectionStart)+content+$.sq_fields.wp_content.val().substr($.sq_fields.wp_content[0].selectionEnd));$.sq_blockseo.callback()}}};$.sq_tinymce={callback:function(ed){if(ed.id!=="content")return false;var editor=$.sq_editor.getTinymceEditor(ed);if(typeof editor!=="undefined"&&typeof $.sq_blockseo==="object"){if($.sq_config.editor_type==="tinymce"){$.sq_blockseo.callback()}}},setup:function(ed){},addEvents:function(ed,dom){if(typeof $.sq_blockseo!=="undefined"&&typeof $.sq_editor==="object"&&!$.isDom($.sq_editor)){if($.sq_config.active_editor=$.sq_editor.getIframeEditor()){$.sq_blockseo.callback()}}}};$.fn.sq_main=function(){var $this=this;$this.load=function(){$.sq_setfields();$.sq_setParams();$.sq_initialized=true;$.sq_fields.sq_preloading.show();$.sq_fields.sq_errorloading.hide();$.sq_loadtabs();$.sq_highlight=function(element,text,params){var $accuracy="exactly";var $pattern=new RegExp("[぀-ヿ㐀-䶿一-鿿豈-﫿ヲ-゚]","gi");if(text.match($pattern)){$accuracy="partially"}var options=$.extend({element:"mark","acrossElements ":1,ignoreJoiners:1,diacritics:false,separateWordSearch:false,caseSensitive:false,accuracy:{value:$accuracy,limiters:["`","~","!","@","#","$","%","^","&","*","(",")","-","_","=","+","{","}","[","]","\\","|",":",";","'",'"',",",".","<",">","/","?","“","”","s","es"]},ignorePunctuation:[" ",",","`","~","!","@","#","$","%","^","*","(",")","-","_","=","+","{","}","[","]","\\","|",":",";","'",'"',"<",">","/","?"],counter:1},params);if(typeof element!=="undefined"&&element.html()!==""&&$.isFunction(element.sq_unmark)){if(typeof options.range!=="undefined"){element.sq_unmark({done:function(){element.sq_markRanges(options.range,options)}})}else{element.sq_unmark({done:function(){element.sq_mark(text,options)}})}}};$.sq_removeHighlight=function(element){if(typeof element!=="undefined"&&$.isFunction(element.sq_unmark)&&!$.sq_isDiviBuilder()){element.sq_unmark()}};if(typeof $.sq_blockbriefcase=="undefined"&&$.isFunction($.sq_fields.sq_briefcase_list.sq_briefcase)){$.sq_blockbriefcase=$.sq_fields.sq_briefcase_list.sq_briefcase([])}if(typeof $.sq_frontend=="undefined"&&$.isFunction($.sq_config.div.sq_frontend)){$.sq_frontend=$.sq_config.div.sq_frontend([]);$.sq_frontend.init()}if(typeof $.sq_blockseo=="undefined"&&$.sq_fields.div_blockseo.length>0&&$.isFunction($.sq_fields.div_blockseo.sq_blockseo)){$.sq_blockseo=$.sq_fields.div_blockseo.sq_blockseo([])}if(typeof $.sq_blocksearch=="undefined"&&$.sq_fields.div_blocksearch.length>0&&$.isFunction($.sq_fields.div_blocksearch.sq_blocksearch)){$.sq_blocksearch=$.sq_fields.div_blocksearch.sq_blocksearch([])}if(typeof $.sq_floating=="undefined"&&$.isFunction($.sq_config.div.sq_floating)){$.sq_floating=$.sq_config.div.sq_floating([]);if(!$.sq_frontend){if(typeof $.sq_config.div==="undefined"){$.sq_setConfig()}$.sq_floating.init()}}$.sq_checkin()};return $this};$.sq_loadtabs=function(){$.sq_fields.sq_blocktabs.show();$.sq_fields.sq_blocktabs.find("div").on("click",function(){$.sq_fields.sq_selectit.trigger("click");$.sq_fields.sq_blocktabs.find("div").removeClass("sq_active");$(this).addClass("sq_active");$(".sq_block_steps").hide();$($(this).data("target")).show()});$.sq_fields.sq_blocksteps.find(".sq_nextstep").on("click",function(){$('.sq_block_tab[data-target="'+$(this).data("target")+'"]').trigger("click")});$.sq_fields.sq_blocksteps.find(".sq_finalstep").on("click",function(){window.open($(this).data("target")+"&sid="+$.sq_config.postID,"_blank")})};$.sq_initialize=function(){$.sq_setConfig();if(typeof $.sq_config.div!=="undefined"&&!$.sq_initialized&&$.sq_config.div.length>0){$.sq_config.div.sq_main().load()}};$(document).ready(function(){var triggerInitiateInterval=setInterval(function(){$.sq_initialize();if($.sq_initialized){clearInterval(triggerInitiateInterval)}},1e3)});$(document).ajaxSuccess(function(event){if(typeof $.sq_config==="undefined"){$.sq_initialize()}else if(typeof $.sq_config.div==="undefined"){$.sq_initialize()}});window.onerror=function(){if(typeof $.sq_config==="undefined"){$.sq_initialize()}else if(typeof $.sq_config.div==="undefined"){$.sq_initialize()}}})(jQuery);