/*! jQuery Migrate v1.2.1 | (c) 2005, 2013 jQuery Foundation, Inc. and other contributors | jquery.org/license */
jQuery.migrateMute===void 0&&(jQuery.migrateMute=!0),function(e,t,n){function r(n){var r=t.console;i[n]||(i[n]=!0,e.migrateWarnings.push(n),r&&r.warn&&!e.migrateMute&&(r.warn("JQMIGRATE: "+n),e.migrateTrace&&r.trace&&r.trace()))}function a(t,a,i,o){if(Object.defineProperty)try{return Object.defineProperty(t,a,{configurable:!0,enumerable:!0,get:function(){return r(o),i},set:function(e){r(o),i=e}}),n}catch(s){}e._definePropertyBroken=!0,t[a]=i}var i={};e.migrateWarnings=[],!e.migrateMute&&t.console&&t.console.log&&t.console.log("JQMIGRATE: Logging is active"),e.migrateTrace===n&&(e.migrateTrace=!0),e.migrateReset=function(){i={},e.migrateWarnings.length=0},"BackCompat"===document.compatMode&&r("jQuery is not compatible with Quirks Mode");var o=e("<input/>",{size:1}).attr("size")&&e.attrFn,s=e.attr,u=e.attrHooks.value&&e.attrHooks.value.get||function(){return null},c=e.attrHooks.value&&e.attrHooks.value.set||function(){return n},l=/^(?:input|button)$/i,d=/^[238]$/,p=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,f=/^(?:checked|selected)$/i;a(e,"attrFn",o||{},"jQuery.attrFn is deprecated"),e.attr=function(t,a,i,u){var c=a.toLowerCase(),g=t&&t.nodeType;return u&&(4>s.length&&r("jQuery.fn.attr( props, pass ) is deprecated"),t&&!d.test(g)&&(o?a in o:e.isFunction(e.fn[a])))?e(t)[a](i):("type"===a&&i!==n&&l.test(t.nodeName)&&t.parentNode&&r("Can't change the 'type' of an input or button in IE 6/7/8"),!e.attrHooks[c]&&p.test(c)&&(e.attrHooks[c]={get:function(t,r){var a,i=e.prop(t,r);return i===!0||"boolean"!=typeof i&&(a=t.getAttributeNode(r))&&a.nodeValue!==!1?r.toLowerCase():n},set:function(t,n,r){var a;return n===!1?e.removeAttr(t,r):(a=e.propFix[r]||r,a in t&&(t[a]=!0),t.setAttribute(r,r.toLowerCase())),r}},f.test(c)&&r("jQuery.fn.attr('"+c+"') may use property instead of attribute")),s.call(e,t,a,i))},e.attrHooks.value={get:function(e,t){var n=(e.nodeName||"").toLowerCase();return"button"===n?u.apply(this,arguments):("input"!==n&&"option"!==n&&r("jQuery.fn.attr('value') no longer gets properties"),t in e?e.value:null)},set:function(e,t){var a=(e.nodeName||"").toLowerCase();return"button"===a?c.apply(this,arguments):("input"!==a&&"option"!==a&&r("jQuery.fn.attr('value', val) no longer sets properties"),e.value=t,n)}};var g,h,v=e.fn.init,m=e.parseJSON,y=/^([^<]*)(<[\w\W]+>)([^>]*)$/;e.fn.init=function(t,n,a){var i;return t&&"string"==typeof t&&!e.isPlainObject(n)&&(i=y.exec(e.trim(t)))&&i[0]&&("<"!==t.charAt(0)&&r("$(html) HTML strings must start with '<' character"),i[3]&&r("$(html) HTML text after last tag is ignored"),"#"===i[0].charAt(0)&&(r("HTML string cannot start with a '#' character"),e.error("JQMIGRATE: Invalid selector string (XSS)")),n&&n.context&&(n=n.context),e.parseHTML)?v.call(this,e.parseHTML(i[2],n,!0),n,a):v.apply(this,arguments)},e.fn.init.prototype=e.fn,e.parseJSON=function(e){return e||null===e?m.apply(this,arguments):(r("jQuery.parseJSON requires a valid JSON string"),null)},e.uaMatch=function(e){e=e.toLowerCase();var t=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||0>e.indexOf("compatible")&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:t[1]||"",version:t[2]||"0"}},e.browser||(g=e.uaMatch(navigator.userAgent),h={},g.browser&&(h[g.browser]=!0,h.version=g.version),h.chrome?h.webkit=!0:h.webkit&&(h.safari=!0),e.browser=h),a(e,"browser",e.browser,"jQuery.browser is deprecated"),e.sub=function(){function t(e,n){return new t.fn.init(e,n)}e.extend(!0,t,this),t.superclass=this,t.fn=t.prototype=this(),t.fn.constructor=t,t.sub=this.sub,t.fn.init=function(r,a){return a&&a instanceof e&&!(a instanceof t)&&(a=t(a)),e.fn.init.call(this,r,a,n)},t.fn.init.prototype=t.fn;var n=t(document);return r("jQuery.sub() is deprecated"),t},e.ajaxSetup({converters:{"text json":e.parseJSON}});var b=e.fn.data;e.fn.data=function(t){var a,i,o=this[0];return!o||"events"!==t||1!==arguments.length||(a=e.data(o,t),i=e._data(o,t),a!==n&&a!==i||i===n)?b.apply(this,arguments):(r("Use of jQuery.fn.data('events') is deprecated"),i)};var j=/\/(java|ecma)script/i,w=e.fn.andSelf||e.fn.addBack;e.fn.andSelf=function(){return r("jQuery.fn.andSelf() replaced by jQuery.fn.addBack()"),w.apply(this,arguments)},e.clean||(e.clean=function(t,a,i,o){a=a||document,a=!a.nodeType&&a[0]||a,a=a.ownerDocument||a,r("jQuery.clean() is deprecated");var s,u,c,l,d=[];if(e.merge(d,e.buildFragment(t,a).childNodes),i)for(c=function(e){return!e.type||j.test(e.type)?o?o.push(e.parentNode?e.parentNode.removeChild(e):e):i.appendChild(e):n},s=0;null!=(u=d[s]);s++)e.nodeName(u,"script")&&c(u)||(i.appendChild(u),u.getElementsByTagName!==n&&(l=e.grep(e.merge([],u.getElementsByTagName("script")),c),d.splice.apply(d,[s+1,0].concat(l)),s+=l.length));return d});var Q=e.event.add,x=e.event.remove,k=e.event.trigger,N=e.fn.toggle,T=e.fn.live,M=e.fn.die,S="ajaxStart|ajaxStop|ajaxSend|ajaxComplete|ajaxError|ajaxSuccess",C=RegExp("\\b(?:"+S+")\\b"),H=/(?:^|\s)hover(\.\S+|)\b/,A=function(t){return"string"!=typeof t||e.event.special.hover?t:(H.test(t)&&r("'hover' pseudo-event is deprecated, use 'mouseenter mouseleave'"),t&&t.replace(H,"mouseenter$1 mouseleave$1"))};e.event.props&&"attrChange"!==e.event.props[0]&&e.event.props.unshift("attrChange","attrName","relatedNode","srcElement"),e.event.dispatch&&a(e.event,"handle",e.event.dispatch,"jQuery.event.handle is undocumented and deprecated"),e.event.add=function(e,t,n,a,i){e!==document&&C.test(t)&&r("AJAX events should be attached to document: "+t),Q.call(this,e,A(t||""),n,a,i)},e.event.remove=function(e,t,n,r,a){x.call(this,e,A(t)||"",n,r,a)},e.fn.error=function(){var e=Array.prototype.slice.call(arguments,0);return r("jQuery.fn.error() is deprecated"),e.splice(0,0,"error"),arguments.length?this.bind.apply(this,e):(this.triggerHandler.apply(this,e),this)},e.fn.toggle=function(t,n){if(!e.isFunction(t)||!e.isFunction(n))return N.apply(this,arguments);r("jQuery.fn.toggle(handler, handler...) is deprecated");var a=arguments,i=t.guid||e.guid++,o=0,s=function(n){var r=(e._data(this,"lastToggle"+t.guid)||0)%o;return e._data(this,"lastToggle"+t.guid,r+1),n.preventDefault(),a[r].apply(this,arguments)||!1};for(s.guid=i;a.length>o;)a[o++].guid=i;return this.click(s)},e.fn.live=function(t,n,a){return r("jQuery.fn.live() is deprecated"),T?T.apply(this,arguments):(e(this.context).on(t,this.selector,n,a),this)},e.fn.die=function(t,n){return r("jQuery.fn.die() is deprecated"),M?M.apply(this,arguments):(e(this.context).off(t,this.selector||"**",n),this)},e.event.trigger=function(e,t,n,a){return n||C.test(e)||r("Global events are undocumented and deprecated"),k.call(this,e,t,n||document,a)},e.each(S.split("|"),function(t,n){e.event.special[n]={setup:function(){var t=this;return t!==document&&(e.event.add(document,n+"."+e.guid,function(){e.event.trigger(n,null,t,!0)}),e._data(this,n,e.guid++)),!1},teardown:function(){return this!==document&&e.event.remove(document,n+"."+e._data(this,n)),!1}}})}(jQuery,window);var protocol=location.protocol;var slashes=protocol.concat("//");var hostURL=slashes.concat(window.location.hostname);if(ajaxurl===undefined){var hpath=window.location.pathname;hpath=hpath.split("/");var sitepath="";$.each(hpath,function(index,value){if(value!==""){sitepath=value;return!1}});urlCount=hostURL.split('.').length-1;if(sitepath&&urlCount<2){var ajaxurl=hostURL+"/"+sitepath+"/wp-admin/admin-ajax.php"}else{var ajaxurl=hostURL+"/wp-admin/admin-ajax.php"}}
var tdjs={model:{window:$(window),siteurl:document.location.origin,scope:'',clickedelem:'',useremail:'',authKey:'',authAgent:'',modalLoaded:!1,formvars:{},uploadoptions:function(showprogress,args,func){var options={headers:{'APIKEY':tdjs.model.authKey,'SENDAGENT':tdjs.model.authAgent},beforeSend:function(){$(args.message).html("<p align='center'>Processing please wait...<br><img src='/wp-content/plugins/lib/images/loading.gif'></p>");if(showprogress){$(args.progress).show();$(args.bar).width('0%');$(args.message).html("");$(args.percent).html("0%")}},uploadProgress:function(event,position,total,percentComplete){if(showprogress){$(args.bar).width(percentComplete+'%');$(args.percent).html(percentComplete+'%')}else{if(percentComplete<=100){$(args.message).html("<p align='center'>Uploading please wait...<br><img src='/wp-content/plugins/lib/images/loading.gif'><br>"+percentComplete+"%</p>")}
if(percentComplete==100){$(args.message).html("<p align='center'>Processing please wait...<br><img src='/wp-content/plugins/lib/images/loading.gif'></p>")}}},success:function(){if(showprogress){$(args.bar).width('100%');$(args.percent).html('100%')}},complete:function(response){if(func){if($.isFunction(func)){func(response)}}},error:function(response){if(func){if($.isFunction(func)){func(response)}}
$(args.message).html("<font color='red'> ERROR: unable to process successfully</font>")}};return options}},view:{closeModal:function(elem){offset="";if($(elem).offset()!==undefined){offset=$(elem).offset().top}
$(".modal-content").animate({opacity:0,margin:"0 auto",},500,function(){$(".modal").fadeOut('slow',function(){$(".modal").remove()});$('body').removeClass('fixed');if(offset){$('html, body').animate({scrollTop:$(elem).offset().top},500)}})},openModal:function(elem){$(".modal").fadeIn('slow');$(".modal-content").animate({opacity:1,margin:"8% auto",},1000,function(){$('body').addClass('fixed')});$('.modalclosebtn').on('click',function(){tdjs.view.closeModal(elem)});$('.modalbg').on('click',function(){tdjs.view.closeModal(elem)})},openWindow:function(mypage,myname,w,h,scroll,pos){var LeftPosition="";var TopPosition="";if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100}else if((pos!=="center"&&pos!=="random")||pos===null){LeftPosition=0;TopPosition=20}
var settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes';window.open(mypage,myname,settings)},reset_required:function(classname){$('.'+classname).each(function(){$(this).addClass('required');$(this).attr('required','')})},set_form_classes:function(){$('edd_cart_actions').each(function(){})},showAnnouncement:function(obj){modalText=$('<img>',{class:"cursor",onclick:"window.location='https://www.thepottershouse.org/hope'",src:"/wp-content/uploads/2021/11/popup_hopeinsight.jpg",style:"max-width:80%;margin:0 auto;"});var modal=$('<div>',{class:'modal'}).append($('<div>',{class:'modalbg'}));var modalContent=$('<div>',{class:'modal-content clear',style:"text-align:center;"}).append($('<div>',{class:'modalclose'}).html('<span class="icon-close f12 icon-gray modalclosebtn"></span>'));modalContent.append(modalText);modalText=$('<p>',{style:'text-align:center;',class:"modalclosebtn cursor"}).html('Click here to close');modalContent.append(modalText);modal.append(modalContent);modal.prependTo('body');if(!tdjs.model.modalLoaded){tdjs.view.openModal(obj);tdjs.model.modalLoaded=!0}},viewMenu:function(obj){if($(obj).hasClass('close')){$(obj).removeClass('close');$('.buttontxt').html('MENU');$('.responsivemenu-container').hide('slow')}else{$(obj).addClass('close');$('.buttontxt').html('CLOSE');$('.responsivemenu-container').show('slow')}}},controller:{completePay:function(){$('.circlearea').show();$('.cardbody').hide();$('.checkmark').hide();$('.purchases').hide();$('.circle-loader').removeClass('load-complete');tdjs.controller.gatherForm();cart_total=$('edd_cart_amount').attr('data-subtotal');params=tdjs.model.formvars;params.action='web_action';params.process='completepayment';params['edd-user-id']="1";params.edd_action='purchase';params['edd-gateway']='paypal';params['edd-purchase']="Complete Purchase";params['payment-mode']="paypal";$.post(ajaxurl,params,function(resp){$('.tab').removeClass('disablepointer');if(resp){json=$.parseJSON(resp);$('.circle-loader').toggleClass('load-complete');$('.checkmark').toggle();$('.checkmartxt').html(json.checkmark);$('.purchases').html(json.purchases);$('.checkmartxt').show();$('.purchases').show();$('.btn-finish').hide('slow');$('.tab').addClass('disablepointer')}})},elemInit:function(){$(".tabimg.right").on('click',function(){$(this).next().toggle('slow')});$(".tabimg.left").on('click',function(){$(this).prev().toggle('slow')});setTimeout(function(){$('.outter').hide('slow');$('.mid').hide('slow');$('.iconarea').removeClass('animated fadeIn');$('.iconarea').addClass('animated zoomOut');if($('.blocks-gallery-item').length){}},100);$(".logoarea").animate({'margin-top':'5%',opacity:1},1000,function(){});$('.navitem').on('mouseover',function(){$('.dropdown').removeClass('active');$(this).find('.dropdown').addClass('active')});$('.menu-item').on('mouseover',function(){$('.sub-menu').removeClass('active');$(this).find('.sub-menu').addClass('active')});$('.sub-menu').on('mouseout',function(){$(this).removeClass('active')});$('.dropdown').on('mouseout',function(){$(this).removeClass('active')});$('#contentsection .contentforward').show('slow');setTimeout(function(){if(typeof angular!=="undefined"){tdjs.model.scope=angular.element($("#sitebody")).scope()}},100)},emailsignup:function(elem,formarea){var emailAddress=$("#"+elem).val();$('#'+formarea).html('<div class="circle-loader circle-loadersmall"><div class="circle circle_four"></div><div class="circle circle_three"></div><div class="circle circle_two"></div><div class="circle circle_one"></div></div>');var params={action:'web_action',process:'sendemail',emailAddress:emailAddress};$.post(ajaxurl,params,function(resp){$('#'+formarea).html(resp)})},gatrack:function(send,event,widget,url,ssm,goto,blank){__gaTracker(send,event,widget,url,ssm);if(goto){if(blank){window.open(url)}else{window.location=url}}},gatherForm:function(){$('form#edd_purchase_form').find(':input.form-item').each(function(){fieldname=$(this).attr('name');fieldvalue=$(this).val();if(fieldname.indexOf("[]")>-1){fieldIndex=fieldname.match(/[^[\]]+(?=])/g);fieldname=fieldname.replace(/\[.*?\]\s?/g,'');if(fieldIndex){fieldvalue={fieldIndex:[]}}else{fieldvalue=[]}
if($(this).attr('type')=="checkbox"||$(this).attr('type')=="radio"){var radobj=document.getElementsByName($(this).attr('name'));for(var j=0;j<radobj.length;j++){if(radobj[j].checked){if(fieldIndex){fieldvalue[fieldIndex].push(radobj[j].value)}else{fieldvalue.push($(this).val())}}else{if(fieldIndex){fieldvalue[fieldIndex].push("")}else{fieldvalue.push("")}}}}else{if(fieldIndex){$('.'+fieldname).each(function(){fieldvalue[fieldIndex].push($(this).val())})}else{$('.'+fieldname).each(function(){fieldvalue.push($(this).val())})}}}
tdjs.model.formvars[fieldname]=fieldvalue})},get_tph_releases:function(){params={action:'web_action',process:'pressreleases',};$.get(ajaxurl,params,function(resp){data=resp.replace(/null/g,'');response=$.parseJSON(data);console.log(response);if(response.length){postbox=$("<div>",{class:"row-fluid flex flex-wrap"});months={1:'January',2:'February',3:'March',4:'April',5:'May',6:'June',7:'July',8:'August',9:'September',10:'October',11:'November',12:'December'};$.each(response,function(k,v){date=new Date(v.post_date);m=date.getMonth();mname=months[m+1];y=date.getFullYear();d=date.getDate();pressdate="Published "+mname+" "+d+", "+y;pressarea=$("<div>",{class:"span5 inline nofloat"});pressinner=$("<div>",{class:"pressbox"});pressdate=$("<div>",{class:"publishdate"}).html(pressdate);presstitle=v.post_title;presslink="http://www.thepottershouse.org/"+v.post_name;pressTitle=$("<h2>").html("<a href=\""+presslink+"\" target=\"_blank\">"+presstitle+"</a>");pressinner.append(pressTitle);pressinner.append(pressdate);pressarea.append(pressinner);postbox.append(pressarea)});$('#tphpress').append(postbox)}})},init:function(){tdjs.controller.elemInit();tdjs.model.window.resize(function(){tdjs.model.winwidth=$(window).width();tdjs.model.winheight=$(window).height();ratio=tdjs.model.winwidth-((tdjs.model.winwidth/2)+tdjs.model.winheight);dim=(tdjs.model.winwidth/2+tdjs.model.winheight)+'px';if(tdjs.model.winwidth<=1874){$('#sitebody:before').css({'padding-bottom':'51%'})}
setTimeout(function(){if(tdjs.model.winwidth<=1024){if(typeof tdjs.model.scope.adjustContent!=="undefined"){tdjs.model.scope.adjustContent();tdjs.model.scope.$apply()}}
if(tdjs.model.winwidth>1024){if(typeof tdjs.model.scope.adjustContent!=="undefined"){tdjs.model.scope.adjustContent();tdjs.model.scope.$apply()}}},200)});$("body").click(function(event){if(event.target){tdjs.model.clickedelem=event.target}else{console.log('ok')}})},setup_ajaxform:function(formobj,msgobj){$('#'+formobj).submit(function(event){event.preventDefault()})},setup_tokensession:function(paykey){tdjs.model.useremail!==""&&!$('#edd-email').val()?email=tdjs.model.useremail:email=$('#edd-email').val();$('#edd-email').val()?tdjs.model.useremail=$('#edd-email').val():'';keycode=$('#keycode').val();$('.form-group').html("<p align='center'>Processing please wait...</p>");$('.errormsg').html('');params={action:'web_action',process:'setuptoken',useremail:email,keycode:keycode,paykey:paykey};$.post(ajaxurl,params,function(resp){json=$.parseJSON(resp);emailField=json.emailfield;if(json.formfield){$('.form-group').html(json.formfield);if(json.instructions){$('.field_instruction').html(json.instructions)}}
if(json.usererror){$('.errormsg').html(json.usererror)}
if(json.purchases){$('.purchases').html(json.purchases);$('.wizard-header').html('')}});return!1},showPayForm:function(formobj){$('.circlearea').hide();$('.cardbody').show();$('.checkmark').hide();$('.circle-loader').removeClass('load-complete')},ssmshare:function(obj){var shareurl="https://www.tdjakes.org";var sharetxt="A gateway to Bishop T. D. Jakes, his Ministries and The Potter's Church";var sharetitle="TDJakes.org";if($(obj).attr('data-refer')!==undefined){shareurl=$(obj).attr('data-refer')}
if($(obj).attr('data-refer')!==undefined){sharetxt=$(obj).attr('data-refer')}
if($(obj).attr('data-title')!==undefined){sharetitle=$(obj).attr('data-title')}
tdjs.model.shareURL="";switch($(obj).attr('data-name')){case "Facebook":tdjs.model.shareURL="http://www.facebook.com/sharer.php?s=100&p[url]="+shareurl+"&p[title]="+sharetitle+"&p[summary]="+sharetxt;break;case "Twitter":tdjs.model.shareURL="http://twitter.com/home?status="+sharetitle+"+"+sharetxt;break}
if($(this).attr('data-name')=="Email"){window.location=$(obj).attr('data-url')}else{tdjs.view.openWindow(tdjs.model.shareURL,"Share On "+$(obj).attr('data-name'),'800','300','','center')}},viewPage:function(obj){tdjs.model.scope.$apply(function(){tdjs.model.scope.viewItem(obj,!0)})}}};setTimeout(function(){$('.outter').hide('slow');$('.mid').hide('slow');$('.iconarea').removeClass('animated fadeIn');$('.iconarea').addClass('animated zoomOut');$(".logoarea").animate({'margin-top':'5%',opacity:1},1000,function(){});if($('.blocks-gallery-item').length){tdjs.model.modalLoaded=!0}},2000);$(window).load(function(){tdjs.controller.init()});var lFollowX=0,lFollowY=0,x=0,y=0,friction=1/30;function moveBackground(){x+=(lFollowX-x)*friction;y+=(lFollowY-y)*friction;translate='translate('+x+'px, '+y+'px) scale(1.1)';$('.bg_top, .bg_bottom').css({'-webit-transform':translate,'-moz-transform':translate,'transform':translate});window.requestAnimationFrame(moveBackground)}
$(window).on('mousemove click',function(e){var lMouseX=Math.max(-100,Math.min(100,$(window).width()/2-e.clientX));var lMouseY=Math.max(-100,Math.min(100,$(window).height()/2-e.clientY));lFollowX=(20*lMouseX)/100;lFollowY=(10*lMouseY)/100});moveBackground(