// source --> https://mzconsultancy.com.au/wp-content/plugins/search-in-place/js/codepeople_shearch_in_place.min.js?ver=1.0.105 var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(c,d,k){c instanceof String&&(c=String(c));for(var f=c.length,h=0;h.item",function(a){d(this).toggleClass("active")}).on("mousedown",".search-in-place>.item",h).on("mousedown",".search-in-place>.label.more",h);else d(".search-in-place>.item").live("mouseover mouseout",function(a){d(this).toggleClass("active")}).live("mousedown",h).live("mousedown",".search-in-place>.label.more", h)};u.prototype={active:null,search:"",config:{min:codepeople_search_in_place.char_number,image_width:50,image_height:50,colors:"highlight_colors"in codepeople_search_in_place?codepeople_search_in_place.highlight_colors:"#B5DCE1 #F4E0E9 #D7E0B1 #F4D9D0 #D6CDC8 #F4E3C9 #CFDAF0 #F4EFEC".split(" "),areas:"areas"in codepeople_search_in_place?codepeople_search_in_place.areas:"div.hentry #content #main div.content #middle #container #wrapper article .elementor body".split(" ")},autohide:function(){var a= this,b='input[name="s"]';"own_only"in codepeople_search_in_place&&1*codepeople_search_in_place.own_only&&(b+="[data-search-in-place]");d(document).on("input keyup focus",b,function(b){var e=d(this),w=e.val();if(1!=d(b.currentTarget).data("search-in-page")||"focus"!=b.type&&13!==b.keyCode){if(0==d(".search-in-place-close-icon").length&&!e.data("search-in-page")&&c()){var g=d('');e.after(g);var l=e.offset(),q=e.outerWidth()-5,m=e.outerHeight(),f=Math.min(g.height(), m-5),h=Math.min(g.width(),f);g.height(f);g.width(h);g.offset({top:l.top+(m-f)/2,left:l.left+(q-h)})}e.attr("autocomplete","off");a.checkString(w)?(setTimeout(function(){a.getResults(e)},500),k=!0):(a.clearAutocomplete(e),d(".search-in-place").hide(),k=!1);"keyup"==b.type&&39==b.keyCode&&a.fromAutocomplete(e)}});d(document).on("click",".search-in-place-close-icon",function(a){a.stopPropagation();a.preventDefault();n(!0)});d(document).on("mouseover",":not(.search-in-place, .search-in-place *)",function(){c()|| setTimeout(n,150)});d(document).on("blur",'input[name="s"]',function(){var a=d(this),b=a.data("background-color");"undefined"!=typeof b&&a.css("background-color",b);d('[name="cpsp-autocomplete"]').remove()});d(document).on("click",':not(input[name="s"])',function(){setTimeout(n,150)})},checkString:function(a){return this.config.min<=a.length},getResults:function(a){function b(b){"object"==typeof b&&("result"in b&&e.displayResult(b.result,c),"autocomplete"in b&&b.autocomplete.length?e.autocomplete(b.autocomplete[0], a):e.clearAutocomplete(a))}var e=this;if(void 0==a.data("search-in-page")&&!f.length||void 0!=a.data("search-in-page")&&void 0==a.data("no-popup")){var p=a.offset(),c=d(".search-in-place"),g=a.outerWidth();p={left:p.left,top:parseInt(p.top)+a.outerHeight()+5};if(e.search==a.val()&&c.length){c.show().width(g).offset(p);return}c.remove();c=d('
');c.appendTo("body");c.width(g).offset(p);e.displayLoading(c)}e.search=a.val();a.data("search-in-page")?(e.exclude_hidden= a.data("exclude-hidden")||0,g=e.search.replace(/^\s+/,"").replace(/\s+$/,"").replace(/\s+/g," "),g="operator"in codepeople_search_in_place&&"and"==codepeople_search_in_place.operator?[g]:g.split(" "),d(".search-in-place-mark").each(function(){var a=d(this).parent();d(this).contents().filter(function(){return 3===this.nodeType}).unwrap();a[0]=a[0].normalize()}),g=r.highlightTerms(g),void 0==a.data("no-popup")&&(b(g),d(".search-in-place-more").remove(),d(".search-in-place .title a").mousedown(function(b){b.preventDefault(); b.stopPropagation();a.blur();t(d(d(b.target).attr("href")));n(!0)}))):(g={s:e.search,action:"search_in_place"},"lang"in codepeople_search_in_place&&(g.lang=codepeople_search_in_place.lang),e.active&&e.active.abort(),e.active=jQuery.ajax({url:atob(codepeople_search_in_place.root)+"admin-ajax.php",data:g,cache:!0,dataType:"json",success:function(a){b(a)}}))},autocomplete:function(a,b){var e=b.data("background-color")||b.css("background-color"),c=function(a){if(a){if("transparent"===a.toLowerCase())return[0, 0,0,0];if("#"===a[0])return 7>a.length&&(a="#"+a[1]+a[1]+a[2]+a[2]+a[3]+a[3]+(4";var l=a[g],q=l.length;h+=q;for(var m=0;m',c=l[m].thumbnail?c+('
'):c+'
',c+=''+l[m].title+"",l[m].resume&&(c+=''+l[m].resume+""),l[m].author&&(c+=''+l[m].author+""),l[m].date&& (c+=''+l[m].date+""),c+='
'}c+='
';h?1*codepeople_search_in_place.result_number<=h&&(a=codepeople_search_in_place.home,a+=-1==a.indexOf("?")?"?":"&","lang"in codepeople_search_in_place&&(a+="lang="+codepeople_search_in_place.lang+"&"),c+=''+codepeople_search_in_place.more+" >"):c+=codepeople_search_in_place.empty;c+="
"; if(b)b.html(c).find(".thumbnail img").on("load",function(){var a=e.imgSize(this);d(this).width(a.w).height(a.h).css("visibility","visible")});else f.length&&(f.html(c),f.find(".thumbnail img").css("visibility","visible"))},imgSize:function(a){a=d(a);var b=a.width();a=a.height();if(b>this.config.image_width){var c=this.config.image_width;var f=c/b*a;b=c;a=f}a>this.config.image_height&&(f=this.config.image_height,b*=f/a,a=f);return{w:b,h:a}},displayLoading:function(a){a.append('
')}, highlightTerms:function(a){var b=this,c,f=0,h={result:{source:[]}};innerHighlight=function(a,b){var c=0;if(3==b.nodeType){var e=a.toUpperCase(),g=b.data,f=replaceTildes(g).toUpperCase().indexOf(e),l="codepeople_search_in_place"in window&&"summary_length"in codepeople_search_in_place?1*codepeople_search_in_place.summary_length:20;0<=f&&0==d(b).closest(".search-in-place-mark").length&&(b=replaceNodeContent(b,a,f),!1!==b&&(h.result.source.push({link:"#"+b,title:a,resume:g.substring(Math.max(0,f-10), Math.min(f+e.length+l,g.length))+"[...]"}),c=1))}else possibleTextNode(b)&&lookupTextNodes(b,a);return c};replaceTildes=function(a){return a.normalize("NFD").replace(/[\u0300-\u036f]/g,"")};replaceNodeContent=function(a,e,h){if(b.exclude_hidden&&d(a).parent().is(":hidden"))return!1;var g=document.createElement("mark");a=a.splitText(h);a.splitText(e.length);e=a.cloneNode(!0);f++;h="search-in-page-"+f;g.setAttribute("id",h);g.setAttribute("style","background-color:"+c);g.setAttribute("class","search-in-place-mark"); g.appendChild(e);a.parentNode.replaceChild(g,a);return h};possibleTextNode=function(a){return 1==a.nodeType&&a.childNodes&&!/(script|style)/i.test(a.tagName)};lookupTextNodes=function(a,b){for(var c=0;c=codepeople_search_in_place.char_number&&(c=b.config.colors[a%b.config.colors.length], innerHighlight(d,e))})})});return h}};var r=new u;1*codepeople_search_in_place.highlight&&codepeople_search_in_place.terms&&0'+codepeople_search_in_place.post_title+""),d(".type-page").prepend('
'+codepeople_search_in_place.page_title+"
"));r.autohide()}}; jQuery(codepeople_search_in_place_generator);jQuery(window).on("load",codepeople_search_in_place_generator);