PageSourceSearch

https://www.hosted.com/assets/js/custom/pages/custom.min.js?ver=3.3.6

js hosted.com collected 2026-09-25 03:55:19 UTC 55,843 bytes, 2 lines download raw bytes

1// @ts-nocheck
2var redLoc,pDir=$("#pDir").val(),pageClass=$("#pageClass").val(),ajaxLoc="/cont/auth.php",ajaxCustLoc="/cont/custom.php",ajaxCartLoc="/cont/cart.php",ajaxLoginLoc="/cont/login.php",ajaxToken=$("#ajaxToken").val(),loggedIn=$("#loggedIn").val(),otpSecs={email:0,sms:0},otpIntervalCounter={email:null,sms:null},pendingToggle=null,twoFaCallBack=null,twoFaReturnFocusEl=null,twoFaReturnFocusAltEl=null,twoFaReturnFocusTxt=null,twoFaReturnBlockEl=null,twoFaEnabled=!1;window.twoFaSkipHiddenReset=!1;var termOrder=["monthly","annually","biennially","triennially"],termLengths={monthly:1,annually:12,biennially:24,triennially:36},carts=["domCart","resellerDomCart","hostingCart","resellerHostingCart","vpsHostingCart","managedHostingCart","sslCart","avCart","pbxCart","upgradeCart"];function adjustStyle(){var e=[],t=parseInt(viewportSize.getWidth());$(["1920","1880","1760","1700","1640","1600","1550","1440","1366","1280","1230","1104","1024","991","846","800","768","740","692","667","640","598","568","534","480","428","414","375","360","320"]).each(function(n,o){t<=o&&(last=o,e.push(o))});var n=(new Date).getTime();e.length>0&&$(e).each(function(e,t){$("#dynSheet-"+t).is("*")||$(".dynSheet").last().after('<link id="dynSheet-'+t+'" class="dynSheet" rel="stylesheet" type="text/css" href="/assets/css/media/media-'+t+".css?"+n+'" media="screen">')})}function initPlaces(e){var t,n=document.getElementById(e);t=new google.maps.places.Autocomplete(n,{types:["geocode"]}),google.maps.event.addListener(t,"place_changed",function(){t.getPlace()}),setTimeout(function(){$("#"+e).attr("autocomplete","new-password")},100)}function formatPlace(e){if($(".pac-item").is("*")){var t=$(e).val(),n=$(".pac-item").html().replace('<span class="pac-icon pac-icon-marker"></span><span class="pac-item-query">',"").replace("</span><span>",", ").replace(/<span class="pac-matched">/g,"").replace(/<\/span>/g,"").replace(/<span>/g,"");return t!=n&&$(e).val(n),n}return $(e).val()}function popAddress(e,t){setTimeout(function(){t=void 0===t?"":t;var n=formatPlace($(e));n!=$(e).data("rem")&&($(e).data("rem",n),$.post(ajaxCustLoc+"?action=getPlaceData",{address:n},function(e){var n=$.parseJSON(e);1==n.intReturnCode&&(void 0!==n.street&&$("#"+t+"address1").val(n.street),void 0!==n.suburb&&$("#"+t+"address2").val(n.suburb),void 0!==n.city&&$("#"+t+"city").val(n.city),void 0!==n.province&&$("#"+t+"state").val(n.province),void 0!==n.postCode&&$("#"+t+"postcode").val(n.postCode),void 0!==n.country&&$("#"+t+"country").countrySelect("setCountry",n.country))}))},100)}function logout(){$.post("/logout?logout",function(e){window.location.href="/login?status=Logged Out"})}function getNextCartIndex(){var e={},t=[];$(carts).each(function(n,o){if(objVals(e=getCartVars(o)))switch(o){case"hostingCart":case"vpsHostingCart":case"resellerHostingCart":for(const n of e.hosting)t.push(n.rowIndex);break;case"domCart":for(const n of e.domains)t.push(n.rowIndex);break;case"resellerDomCart":case"avCart":for(const n of e.accounts)t.push(n.rowIndex);break;case"sslCart":for(const n of e.packages)t.push(n.rowIndex);break;case"pbxCart":for(const n of e.lines)t.push(n.rowIndex);break;case"upgradeCart":for(const n of e.upgrades)t.push(n.rowIndex)}});var n=0;return $(t).each(function(e,t){n<=t&&(n=t+1)}),n}function updateNavCartCount(){$.post(ajaxCartLoc+"?action=getCartCount",function(e){$(".cart-count").is("*")&&$(".cart-count").text(e)})}function submitCredsFrm(e,t,n,o){var a=[{i:"loginUser",n:"user"},{i:"loginPass",n:"pass"}],i=$("#serverType").val(),s={frmKey:e};s.dest=frmRel=t.replace("#",""),$.post(ajaxLoc+"&action=getCreds",s,function(e){var s=$.parseJSON(e),r=[];if($(s).each(function(e,t){r.push(window.atob(t))}),"link"==n)if(o)window.open(r[0]);else if(r.length){if("error"==r[0]){var l="";if("#spamLogin"===t)l="Problem with Spam Experts Login, please try again later";else l="Problem with Login, please try again later";showErr(l,"quickManage")}else var c=window.open(r[0]);"#softLogin"!=t&&"#fileManLogin"!=t&&"#phpMyAdminLogin"!=t||(loading('div[rel="'+frmRel+'"]',"done"),setTimeout(function(){c.close(),window.open(r[1])},250))}if(("domainscpanel"==i||"domainswpcpanel"==i)&&"link"!=n){for(var d=0;d<2;d++)$("<input>",{type:"hidden",id:a[d].i,name:a[d].n,value:r[d]}).appendTo('[rel="'+frmRel+'"]');var u="http"+("on"==r[2]?"s":"")+"://"+(r[3]?r[3]:r[4])+":"+("on"==r[2]?"2083":"2082")+"/login/";for("softLoginFrm"==frmRel&&$("<input>",{type:"hidden",id:"",name:"goto_uri",value:"frontend/paper_lantern/softaculous/index.live.php"}).appendTo('[rel="'+frmRel+'"]'),"fileManLoginFrm"==frmRel&&$("<input>",{type:"hidden",id:"",name:"goto_uri",value:"frontend/paper_lantern/filemanager/index.html"}).appendTo('[rel="'+frmRel+'"]'),"phpMyAdminLoginFrm"==frmRel&&$("<input>",{type:"hidden",id:"",name:"goto_uri",value:"frontend/paper_lantern/sql/PhpMyAdmin.html"}).appendTo('[rel="'+frmRel+'"]'),$('[rel="'+frmRel+'"]').attr("action",u),$('[rel="'+frmRel+'"]').submit(),d=0;d<a.length;d++)$("#"+a[d].i).remove();$('[rel="'+t+'"]').attr("action","")}$('[rel="'+frmRel+'"] button').is("*")?bttnDone("#"+$('[rel="'+frmRel+'"] button').attr("id")):$('[rel="'+frmRel+'"] a').is("*")?bttnDone($('[rel="'+frmRel+'"] a')):loading('[rel="'+frmRel+'"]'.replace("Frm",""),"done")})}function splitDom(e){var t=e.split("."),n=t[0];return t.splice(0,1),{sld:n,tld:t.join(".")}}function clearStates(e){$("#"+e+"ResAlert").removeClass("alert-danger").removeClass("alert-info").removeClass("alert-warning").removeClass("alert-success"),$("#"+e+"ResIcon").removeClass("fa-times").removeClass("fa-info-circle").removeClass("fa-exclamation-circle").removeClass("fa-check")}function showMsg(e,t,n,o,a){clearStates(t),""!=a&&void 0!==a||(a=t+"ResAlert"),$("#"+t+"ResIcon").addClass("fa-times"),"error"==n?($("#"+t+"ResMsg").html(e),$("#"+t+"ResStatus").html("Error!"),$("#"+t+"ResAlert").addClass("alert-danger")):"info"==n?($("#"+t+"ResMsg").html(e),$("#"+t+"ResStatus").html("Info!"),$("#"+t+"ResAlert").addClass("alert-info")):"notice"==n?($("#"+t+"ResMsg").html(e),$("#"+t+"ResStatus").html("Notice!"),$("#"+t+"ResAlert").addClass("alert-warning")):"warning"==n?($("#"+t+"ResMsg").html(e),$("#"+t+"ResStatus").html("Warning!"),$("#"+t+"ResAlert").addClass("alert-warning")):($("#"+t+"ResMsg").html(e),$("#"+t+"ResStatus").html("Success!"),$("#"+t+"ResAlert").addClass("alert-success")),$("#"+t+"ResAlert").stop(!0,!0).css({display:"flex",opacity:0}
2).animate({opacity:1},"slow"),$(".scrollDiv").is("*")&&$(".scrollDiv").scrollLeft(0),""==o||void 0===o?($("#"+t+"ResAlert").data("remain",!1),setTimeout(function(){$("#"+t+"ResAlert").data("remain")||$("#"+t+"ResAlert").stop(!0,!0).animate({opacity:0},"slow",function(){$(this).css("display","none")})},3500)):$("#"+t+"ResAlert").data("remain",!0),""!=a&&void 0!==a&&"none"!=a&&scrollUpTo(a)}function scrollUpTo(e,t){t=void 0===t?-85:t,$("html, body").animate({scrollTop:$("#"+e).offset().top+t},800)}function scrollToElemVis(e,t=35){const n=e.offset(),o=$(window).scrollTop(),a=o+$(window).height(),i=n.top,s=i+e.outerHeight();(i<o||s>a)&&scrollUpToClass(e,-t)}function scrollUpToClass(e,t){t=void 0===t?-85:t,$("html, body").animate({scrollTop:$(e).offset().top+t},800)}function scrollUpToClassElem(e,t){t=void 0===t?70:t;const n=$(e);if(!n.length||!n.is(":visible"))return;const o=n.offset();if(!o)return;const a=o.top-t,i=$(window).scrollTop(),s=Math.abs(i-a),r=Math.min(800,Math.max(400,100*Math.log(s+10)));s>1&&$("html, body").animate({scrollTop:a},r)}function showErr(e,t,n,o){""==n&&(n=t+"ResAlert"),showMsg(e,t,"error",o=void 0!==o&&o,n)}function scrollToPoint(e,t){""==t&&(t=800),$("html, body").animate({scrollTop:e-20},t)}function isJson(e){try{JSON.parse(e)}catch(e){return!1}return!0}function randString(e){var t="";for(t+="abcdefghijklmnopqrstuvwxyz",t+="ABCDEFGHIJKLMNOPQRSTUVWXYZ",t+="0123456789",t+="![]{}()%&*$#^~@|";!atLeastChars(n,e,2)||!atLeastNum(n,e,1);)for(var n="",o=0;o<e;o++)n+=t.charAt(Math.floor(Math.random()*t.length));return n=setCase(n,e)}function genPassAction(e,t,n){e=void 0!==e?e+"I":"i",t=void 0!==t?t:"databaseCreate",n=void 0!==n?n:12;var o=randString(12);$("#"+e+"nputPass1, #"+e+"nputPass2").removeClass("inputErr").val(o);var a=!1;"password"==$("#"+e+"nputPass1").attr("type")&&($("#"+e+"nputPass1").attr("type","text"),a=!0);var i=document.getElementById(e+"nputPass1");i.select(),i.setSelectionRange(0,99999),document.execCommand("copy"),a&&$("#"+e+"nputPass1").attr("type","password"),$("#"+e+"nputPass1").trigger("keyup"),showMsg("Password Copied to Clipboard",t)}function copyElem(e,t,n,o){var a=!1;"password"==$("#"+e).attr("type")&&($("#"+e).attr("type","text"),a=!0);var i=document.getElementById(e);i.select(),i.setSelectionRange(0,99999),document.execCommand("copy"),a&&$("#"+e).attr("type","password");var s="Copied to Clipboard";return $(t+"ResAlert").is("*")?showMsg(s,e):"undefined"!=typeof noalert&&""!=n||alert(s),o}function isLetter(e){return e.match(/[a-z]/i)}function setCase(e,t){for(var n="",o=0,a=0;a<t;a++)isLetter(e[a])&&o<2?(n+=o?e[a].toUpperCase():e[a].toLowerCase(),o++):n+=e[a];return n}function atLeastChars(e,t,n){var o=0,a=!1;if(void 0!==e)for(var i=0;i<t;i++)if(isLetter(e[i])&&o++,o==n){a=!0;break}return a}function atLeastNum(e,t,n){var o=0,a=!1;if(void 0!==e)for(var i=0;i<t;i++)if(isNaN(e[i])||o++,o==n){a=!0;break}return a}function drawDtTbl(e,t,n,o,a){n&&$("."+e).dataTable().fnDestroy();var i={pageLength:25,lengthMenu:[10,25,50,100],autoWidth:!1,sWrapper:"dataTables_wrapper dt-bootstrap4",sFilterInput:"form-control",sLengthSelect:"form-control",language:{lengthMenu:"_MENU_",search:"_INPUT_",searchPlaceholder:"Search..",info:"Page <strong>_PAGE_</strong> of <strong>_PAGES_</strong>",paginate:{first:'<i class="fa fa-angle-double-left"></i>',previous:'<i class="fa fa-angle-left"></i>',next:'<i class="fa fa-angle-right"></i>',last:'<i class="fa fa-angle-double-right"></i>'}},oLanguage:{oAria:{sSortAscending:": activate to sort column ascending",sSortDescending:": activate to sort column descending"},oPaginate:{sFirst:"First",sLast:"Last",sNext:"Next",sPrevious:"Previous"},sEmptyTable:"No data available in table",sInfo:"Showing _START_ to _END_ of _TOTAL_ entries",sInfoEmpty:"Showing 0 to 0 of 0 entries",sInfoFiltered:"(filtered from _MAX_ total entries)",sLoadingRecords:"Loading...",sProcessing:"Processing...",sZeroRecords:"No matching records found"},processing:!1,serverSide:!1},s="";s+="<'row mb-2'<'col-xs-4 col-sm-4 col-md-4'l>"+("js-dataTable-buttons"==e?"<'col-xs-4 col-sm-4 col-md-4 text-center'B>":"")+"<'ml-auto col-xs-4 col-sm-4 col-md-4'f>><'row'<'col-sm-12'tr>><'row'<'col-sm-12 col-md-5'i><'col-sm-12 col-md-7'p>>",i.dom=s,void 0!==t.data&&(i.data=t.data),$.each(t,function(e,n){"type"!=e&&"cnt"!=e&&void 0!==t[e]&&(i[e]=t[e])}),void 0!==o&&(i.fnInitComplete=function(){var e=[];$(i.data).each(function(t,n){$(n).each(function(t,n){void 0!==$(n).data("dropname")&&e.push($(n).data("dropname"))})}),o(a,e)}),$.fn.DataTable.isDataTable("."+e)||$("."+e).dataTable(i)}function setWizStep(e,t,n){var o=getCartVars(e);if(void 0===t||""==t)if(null!=o)if("domRegisterCart"===e)t=o.step;else t=1;else{o={step:1};t=1}"function"==typeof setTabData&&setTabData(o,t),$('.nav-link[data-step="'+t+'"]').attr("href",$('.nav-link[data-step="'+t+'"]').data("href")),$("#curStep").val(t),$(".tab-pane").removeClass("active"),$('.nav-link[data-step="'+t+'"]').trigger("click",n),$('.tab-pane[data-step="'+t+'"]').addClass("active")}function genDynamicDrop(e,t){var n="";"object"==typeof t?$(t).each(function(e,t){n+='<option value="'+t+'">'+t+"</option>"}):$(t).each(function(e,t){var o=$(t).data("dropname");n+='<option value="'+o+'">'+o+"</option>"}),$(e).html(n)}function validInputs(e){var t=$(e);
2t.find("input, textarea, select").removeClass("inputErr");var n=!1;return t.find("input:not(.validExc), textarea:not(.validExc), select:not(.validExc)").each(function(e,t){var o=$.trim($(t).val());$(t).val(o),0==o.length&&($(t).addClass("inputErr"),n=!0)}),n}function loading(e,t){""==t||void 0===t?$(e).addClass("block-mode-loading"):$(e).removeClass("block-mode-loading")}function loader(e,t){""==t||void 0===t?$(e).html('<i class="fa fa-1_5x fa-circle-notch fa-spin text-info"></i>'):$(e).html(t)}function bttnWait(e,t){$(e).data("html",$(e).data("html")?$(e).data("html"):$(e).html()),$(e).attr("disabled",!0).html(t||"Please Wait...").css("cursor","wait")}function bttnDone(e,t){var n=void 0===t?void 0===$(e).data("html")?"Confirm":$(e).data("html"):t;$(e).attr("disabled",!1).html(n).css("cursor","pointer")}function selWait(e){$(e).attr("disabled",!0).css("cursor","wait")}function selDone(e){$(e).attr("disabled",!1).css("cursor","default")}function scrollUp(){$("body,html").animate({scrollTop:400},800)}function isEmail(e){return/^([\w-+\.]+@([\w-+]+\.)+[\w-]{2,10})?$/.test(e)}function isDomain(e){return/^[a-zA-Z0-9][a-zA-Z0-9-]{1,61}[a-zA-Z0-9](?:\.[a-zA-Z]{2,})+$/.test(e)}function isSubDomain(e){return/^[A-Za-z0-9](?:[A-Za-z0-9\-]{0,61}[A-Za-z0-9])?$/.test(e)}function isHostName(e){return/^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\-]*[A-Za-z0-9])*$/.test(e)}function isIPAddress(e){return/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/.test(e)}function isDbName(e){return/^([a-zA-Z0-9-]{1,55})+$/.test(e)}function isDbUserName(e){return/^([a-zA-Z0-9_]{1,55})+$/.test(e)}function isEmpty(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return JSON.stringify(e)===JSON.stringify({})}function cleanTitle(e){return $.trim(domsOnly(stripTags(e)))}function cleanStr(e){return $.trim(stripTags(e))}function domsOnly(e){if(void 0!==e)return e.replace(/[^a-z0-9 .-]/gi,"")}function stripTags(e,t){if(void 0!==e){$.each([" DATABASE "," DELETE "," TABLE "," AND "," OR "],function(t,n){var o=new RegExp(n,"gi");e=e.replace(o,"")}),t=(((t||"")+"").toLowerCase().match(/<[a-z][a-z0-9]*>/g)||[]).join("");return e.replace(/<!--[\s\S]*?-->|<\?(?:php)?[\s\S]*?\?>/gi,"").replace(/<\/?([a-z][a-z0-9]*)\b[^>]*>/gi,function(e,n){return t.indexOf("<"+n.toLowerCase()+">")>-1?e:""})}}function stripForId(e){return e.replace(/[^\w\s]/gi,"").replace(/\ /g,"").toLowerCase()}function htmlEntities(e){return String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}function htmlSpecialChars(e){return String(e).replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"')}function setCookie(e,t,n){const o=new Date;o.setTime(o.getTime()+24*n*60*60*1e3);let a="expires="+o.toUTCString();document.cookie=e+"="+t+";"+a+";path=/"}function setCartVar(e,t,n){var o=getCartVar(e);null!=o?$.each(t,function(e,t){o[e]=t}):o=t,cvalue=JSON.stringify(o),n=void 0===n?1:n,setCookie(e,cvalue,n)}function setCartVars(e,t){var n=getCartVars(e);null==n&&(n={}),$.each(t,function(e,t){n[e]=t}),cvalue=JSON.stringify(n),setCookie(e,cvalue,1)}function getCartVars(e){var t=getCookie(e);return""!=t?$.parseJSON(t):null}function checkCart(e,t,n){var o=getCartVars(e),a="";if("domCart"===e)if(void 0!==o&&null!=o)for(const e of o.domains)if(e.domain===t&&e.type===n){a=e.rowIndex;break}return a}function checkCartDomEpp(e,t){var n=getCartVars(e),o=!1;if(void 0!==n&&null!=n)for(const e of n.domains)if(e.domain===t&&""!=e.eppCode){o=e.eppCode;break}return o}function getCartVar(e){var t=getCookie(e);return""!=t?$.parseJSON(t):null}function clrCartVar(e,t,n,o){var a=getCartVars(e);objVals(a)||(a={});var i=[];void 0!==a[n]&&$.each(a[n],function(e,s){s[o]!=t&&i.push(a[n][e])}),a[n]=i,cvalue=JSON.stringify(a),setCookie(e,cvalue,1)}function updateNavCartBttn(e){var t=cartCount+e;$(".cart-count").text(t)}function clrCartVars(e){setCookie(e,"")}function clrCarts(e){$(carts).each(function(e,t){clrCartVars(t)})}function getCookie(e){let t=e+"=",n=document.cookie.split(";");for(let e=0;e<n.length;e++){let o=n[e];for(;" "==o.charAt(0);)o=o.substring(1);if(0==o.indexOf(t))return o.substring(t.length,o.length)}return""}function checkCookie(e){if(""!=getCookie(e))return!0}function reloadWindow(e){void 0!==e?setTimeout(function(){window.location.reload()},e):window.location.reload()}function getDefNs(){$.post(ajaxCustLoc+"?action=getDefaultNameservers",function(e){for(var t=$.parseJSON(e),n=1;n<=5;n++)$("#defNs"+n).val(t[n])})}function refreshCart(e,t){$.post("/cont/domainRegistration.php?action=getCartDoms",function(t){objVals($.parseJSON(t))||clrCartVars(e)})}function htmlEncode(e){var t=document.createElement("div");return t.innerText=t.textContent=e,e=t.innerHTML}function htmlDecode(e){return $("<textarea/>").html(e).text()}function onlyUnique(e,t,n){return n.indexOf(e)===t}
2function genCheckHelper(){($(".domain-selection-options").find("input").iCheck({inheritID:!0,checkboxClass:"icheckbox_square-blue",radioClass:"iradio_square-blue",increaseArea:"20%"}),$(".iradio_square-blue.checked").is("*"))&&fireOptClick($(".iradio_square-blue.checked").parents(".option").attr("rel"))}function fireOptClick(e){if(!$("#"+e).is(":visible")){var t=$("#"+e).parent().children().find(".iradio_square-blue");t.hasClass("checked")||($(".iradio_square-blue").removeClass("checked"),t.addClass("checked")),$(".domain-input-group").fadeOut("fast"),setTimeout(function(){$("#"+e).slideDown("slow")},200)}}function hasLen(e){return!!e&&(Array.isArray(e)?e.length>0:"object"==typeof e&&Object.keys(e).length>0)}function objVals(e){if(void 0!==e&&null!=e){if("object"==typeof e){if(Object.keys(e).length)return!0}else if(e.length)return!0;return!1}return!1}function animElem(e,t,n,o,a,i,s,r){r=void 0!==r?1*r:1;var l=void 0!==s?s:"px",c=void 0!==n?1*n:0,d=setInterval(function(){$(e).css(t).replace(l,"");a?c>=o?clearInterval(d):(c+r>o?c=o:c+=r,$(e).css(t,c+l)):c<=o?clearInterval(d):(c-r<o?c=o:c-=r,$(e).css(t,c+l))},void 0!==i?i:10)}function initTinyMce(e,t){e=e||".jsEditor",t=t||"undo redo";tinymce.init({base_url:"/assets/js/plugins/tinymce/",suffix:".min",selector:e,menubar:!1,toolbar:t});var n=setInterval(function(){$(".tox-promotion-link").is("*")&&($(".tox-promotion-link").hide(),clearInterval(n))},200),o=setInterval(function(){$(".tox-statusbar").is("*")&&($(".tox-statusbar").hide(),clearInterval(o))},200)}function getTinyMceValue(e){e=e||"#jsEditor";return tinyMCE.triggerSave(),cleanStr($(e).val())}function getOffset(e){const t=e.getBoundingClientRect();return{left:t.left+window.scrollX,top:t.top+window.scrollY}}function getTermTxt(e){return(e=e.toLowerCase())in termLengths?"monthly"==e?"Monthly":termLengths[e]+" Months":$.ucFirst(e)}function genTermOpts(e,t,n,o){const a={};for(let t in e){let n=parseFloat(e[t]),o=termLengths[t];o&&n>=0&&(a[t]=(n/o).toFixed(2))}var i="";return t=t.toLowerCase()||"monthly",termOrder.forEach(function(s){if(void 0!==e[s]){var r,l=e[s],c=getTermTxt(s);"monthly"!=s&&(r=100-100/a.monthly*a[s]),i+="select"==n?'<option value="'+$.ucFirst(s)+'"'+(t==s?" selected":"")+">"+c+" - $"+l+("monthly"!=s?' (<span class="rSpan">$</span>'+a[s]+' <span class="pmSml">/mo</span><span class="newPurpTxt"> - Save '+r.toFixed(0)+"%</span>)":"")+"</option>":'<div data-index="'+o+'" class="option" rel="hostingTerm_'+o+'"><label class="optionLabel"><input data-index="'+o+'" type="radio" name="hostingTerm_'+o+'" value="'+s+'" id="selHostingTerm_'+o+'"'+(s==t?" checked":"")+'><span class="optionTxt"><span class="term">'+c+': </span><span class="total"><span class="rSpan">$</span>'+l+' </span><span class="perMonth">'+("monthly"!=s?'(<span class="rSpan">$</span>'+a[s]+' <span class="pmSml">/mo</span><span class="newPurpTxt"> - Save '+r.toFixed(0)+"%</span>)":"")+"</span></span></label></div>"}}),i}function hasData(e){return null!=e&&("string"!=typeof e||""!==e.trim())}function getCfg(e,t){const n=getCfgStore(e);if(!n)return null;return safeParseJSON(n,{})[t]||null}function setCfg(e,t,n){const o=safeParseJSON(getCfgStore(e),{});o[t]=o[t]||{},$.each(n,function(e,n){o[t][e]=n}),setCfgStore(e,JSON.stringify(o),1)}function cfgGet(e,t,n){var o=getCfg(e,t);return o?o[n]:null}function cfgSet(e,t,n,o){var a=getCfg(e,t)||{};a[n]=o,setCfg(e,t,a)}function cfgClr(e){setCfgStore(e,"")}function cfgClrVal(e,t,n){const o=safeParseJSON(getCfgStore(e),{});o[t]&&(delete o[t][n],setCfgStore(e,JSON.stringify(o),1))}function cfgHas(e,t,n){const o=getCfg(e,t);return o&&Object.prototype.hasOwnProperty.call(o,n)}function cfgKeys(e,t){const n=getCfg(e,t);return n?Object.keys(n):[]}function cfgHasItem(e,t,n){const o=getCfg(e,t);if(!o)return!1;const a=n.split(".");let i=o;for(const e of a){if(!Object.prototype.hasOwnProperty.call(i,e))return!1;i=i[e]}return!0}function cfgClrItem(e,t,n){const o=getCfg(e,t);if(!o)return;const a=n.split(".");let i=o;for(let e=0;e<a.length-1;e++){const t=a[e];if(!Object.prototype.hasOwnProperty.call(i,t)||"object"!=typeof i[t])return;i=i[t]}delete i[a[a.length-1]],setCfg(e,t,o)}function cfgGetItem(e,t,n,o=null){const a=getCfg(e,t);if(!a)return o;const i=n.split(".");let s=a;for(const e of i){if(!Object.prototype.hasOwnProperty.call(s,e))return o;s=s[e]}return s}function cfgSetItem(e,t,n,o){const a=getCfg(e,t)||{},i=n.split(".");let s=a;for(let e=0;e<i.length-1;e++){const t=i[e];Object.prototype.hasOwnProperty.call(s,t)&&"object"==typeof s[t]||(s[t]={}),s=s[t]}s[i[i.length-1]]=o,setCfg(e,t,a)}function safeParseJSON(e,t={}){if(!e||"undefined"===e)return t;if("object"==typeof e)return e;let n=JSON.parse(e);return"string"==typeof n&&(n=JSON.parse(n)),n||t}function setCfgCookie(e,t,n){const o=new Date;o.setTime(o.getTime()+24*n*60*60*1e3);const a="expires="+o.toUTCString();let i=e+"="+encodeURIComponent(t)+";"+a+";path=/;SameSite=Lax";"https:"===location.protocol&&(i+=";Secure"),document.cookie=i}function getCfgCookie(e){const t=e+"=",n=document.cookie.split(";");for(let o=0;o<n.length;o++){let a=n[o].trim();if(0===a.indexOf(t))try{return decodeURIComponent(a.substring(t.length))}catch(t){return console.warn("Cookie decode failed:",e,t),""}}return""}function getCfgStore(e){try{const t=localStorage.getItem(e);return t?decodeURIComponent(t):""}catch(t){return console.warn("localStorage get failed:",e,t),""}}function setCfgStore(e,t){try{localStorage.setItem(e,encodeURIComponent(t))}catch(t){console.error("localStorage set failed:",e,t)}}function deleteCfgCookie(e){document.cookie=e+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/; SameSite=Lax"+("https:"===location.protocol?"; Secure":"")}function escapeHtml(e){return $("<div>").text(e).html()}function sanitizeLimitedHtml(e){const t=["b","i","u","em","strong"],n=$("<div>").html(e);return n.find("*").each(function(){const e=this.tagName.toLowerCase();t.includes(e)?$.each(this.attributes,function(){$(this.ownerElement).removeAttr(this.name)}):$(this).replaceWith($(this).text())}),n.html()}function log(e){Object.entries(e).forEach(([e,t])=>{console.log(e,t)})}function setLocStor(e,t){localStorage.setItem(e,JSON.stringify(t))}function getLocStor(e){const t=localStorage.getItem(e);return t?JSON.parse(t):null}function hasLocStor(e){return null!==localStorage.getItem(e)}function removeLocStor(e){localStorage.removeItem(e)}function loginRed(){showMsg("Login Successful, Redirecting...","login"),setTimeout(function(){window.location.href=redLoc},1e3)}function genLoc(){if(0===$("#gotoDash").length)return null;var e="dashboard";return $("#area").length&&$("#file").length&&(e=""!=$("#file").val()?$("#area").val()+"/"+(""!=$("#subarea").val()?$("#subarea").val()+"/":"")+$("#file").val():e),"/client/"+(e+=$("#rel").length&&""!=$("#rel").val()?"/"+$("#rel").val():"")}function redGenLoc(){setTimeout(function(){redLoc?window.location.href=redLoc:window.location.reload()},1e3)}!function(e){e.viewportSize={},e.viewportSize.getHeight=function(){return t("Height")},e.viewportSize.getWidth=function(){return t("Width")};var t=function(t){var n,o=t.toLowerCase(),a=e.document,i=a.documentElement;if(void 0===e["inner"+t])n=i["client"+t];else if(e["inner"+t]!=i["client"+t]){var s=a.createElement("body");s.id="vpw-test-b",s.style.cssText="overflow:scroll";var r=a.createElement("div");r.id="vpw-test-d",r.style.cssText="position:absolute;top:-1000px",r.innerHTML="<style>@media("+o+":"+i["client"+t]+"px){body#vpw-test-b div#vpw-test-d{"+o+":7px!important}}</style>",s.appendChild(r),i.insertBefore(s,a.head),n=7==r["offset"+t]?i["client"+t]:e["inner"+t],i.removeChild(s)}else n=e["inner"+t];return n}}(this),$(document).ready(function(){if(redLoc=genLoc(),$("#ajaxToken").remove(),adjustStyle(),$(window).resize(function(){adjustStyle()}),$("#domain").length&&$("#domainTld").length){var e=$.trim($("#domain").val()).toLowerCase().replace(/\ /g,"");$("#domain").val(e),new URLSearchParams(window.location.search).has("domainTld")&&$("#domain").focus();var t=$("#domainTld").val();($("#domain").closest(".domSrchForm").length&&e&&Array.isArray(t)&&t.length>1||e&&t.length>0)&&$(".domSrchBttn").click()}if($("#scrollingPanelContainer").is("*")){var n=$("#orderSummary");if(n.length){var o=$("#scrollingPanelContainer").parent(".row").offset(),a=$("#scrollingPanelContainer").parent(".row").outerHeight()-35,i=15;$(window).resize(function(){o=$("#scrollingPanelContainer").parent(".row").offset(),a=$("#scrollingPanelContainer").parent(".row").outerHeight()-35,s()}),$(window).scroll(function(){s()}),s()}}function s(){if($(window).width()<=991)return n.stop().css("margin-top","0"),!1;var e=n.outerHeight(),t=$(window).scrollTop()-o.top+i;t>a-e&&(t=a-e>0?a-e:0),$(window).scrollTop()>o.top?n.stop().animate({marginTop:t}):n.stop().animate({marginTop:0})}function r(e){$("#topMenu .nav-link, #topMenu .menuBlock").removeClass("active"),$("#topMenu .nav-link, #topMenu .menuBlock").each(function(t,n){var o="A"===$(this).prop("tagName")?$(this).attr("href"):$(this).children("a").attr("href");"#"!=o&&e.indexOf(o)>
2=0&&($(this).addClass("active"),$(this).parents(".mainMenuSubBlock").prev().addClass("active"))})}function l(e){$(".mobMenu .nav-link").removeClass("active"),$(".mobMenu .menuBlock").removeClass("active"),$(".mobMenu .menuBlock").each(function(t,n){var o=$(this).children("a").attr("href");e.indexOf(o)>=0&&($(this).addClass("active"),$(this).parents(".mainMenuSubBlock").prev().addClass("active"))})}$('[data-toggle="tooltip"]').is("*")&&$('[data-toggle="tooltip"]').tooltip(),setTimeout(function(){$("[data-lazy-bg-img]").each(function(){$(this).css("background-image","url('"+$(this).data("lazy-bg-img")+"')")})},1500);var c=window.location.href;if(c.indexOf("?affLink")>=0&&$("#domSrchResAlert").is("*")&&(showMsg("Affiliate link successfully activated","domSrch"),setTimeout(function(){window.location.href="/"},1200)),r(c),l(c),$("#clientLogoSection").is("*")&&$.post(ajaxCustLoc+"?action=getClientLogos",function(e){var t=$.parseJSON(e),n="";$.each(t,function(e,t){n+='<div class="col-2 clientLogo"><img src="/assets/media/img/clientLogos/'+t+'" /></div>'}),$("#clientLogos").html(n)}),$(".scrollBttn").is("*")&&$(document.body).on("click",".scrollBttn",function(e){var t=$(this).data("direction"),n=$(this).data("ctrl"),o=$(this).data("elem");if("left"==t){var a=$(n+" "+o).last().clone();$(n+" "+o).last().fadeOut("fast",function(){$(this).parent().prepend(a),$(this).remove()})}else{a=$(n+" "+o).first().clone();$(n+" "+o).first().fadeOut("fast",function(){$(this).parent().append(a),$(this).remove()})}}),$(".elemLink").is("*")&&$(document.body).on("click",".elemLink",function(e){if(e.preventDefault(),!$(this).parent().hasClass("disabled")){var t=$(this).attr("rel"),n=$(this).data("loc"),o=$(this).data("link"),a=$(this).data("frmtype"),i=$("#serverType").val(),s=$(this).parent().attr("rel"),r="#"+s;if($(this).hasClass("newWindow"))if($(this).hasClass("auth")){if(loading('div[rel="'+s+'"]'),"domainscpanel"==i||"domainswpcpanel"==i)switch(r){case"#softLogin":r="#softLoginFrm";break;case"#fileManLogin":r="#fileManLoginFrm";break;case"#phpMyAdminLogin":r="#phpMyAdminLoginFrm"}submitCredsFrm($("#frmKey").val(),r,a)}else window.open(n);else window.location.href=void 0!==n?"/client/services/"+n+"/"+t:o}}),$("input#domain").is("*")&&($(document.body).on("keyup","input#domain",function(e){var t=$(this).val();if(t.indexOf(".")>=0){var n=t.split(".");if(n.splice(0,1),n[0].length>1){var o="."+n.join("."),a=[];$(".domSrchDrop .dropdown-item").each(function(e,t){var n=$(this).attr("rel");0==n.search(o)&&a.push(n)}),a.sort(),$(".domSrchDrop .dropdown-item").removeClass("active");var i=".co.za";a.length&&(i=a[0]),$("#domainTld").val(i),$("#domainTldBttn").html(i),$('.domSrchDrop .dropdown-item[rel="'+i+'"]').addClass("active")}}}),$(document.body).on("click",".domSrchDrop a.dropdown-item",function(e){$(".domSrchDrop .dropdown-item").removeClass("active");var t=$(this).attr("rel");$("#domainTld").val(t),$("#domainTldBttn").html(t),$('.domSrchDrop .dropdown-item[rel="'+t+'"]').addClass("active")}),$(document.body).on("blur","input#domain",function(e){u("#domain")}),$(document.body).on("keypress","input#domain",function(e){13!=e.keyCode&&13!=e.which||u("#domain")})),$(document.body).on("click","#twoFaAuthSignInBttn",function(){var e=$
2(this);if(bttnWait(e),validInputs("#twoFaSignInBlock"))showErr("Please complete all input fields.","twoFaAuthModal"),bttnDone(e);else{var t=$("#authCode").val();$.post(ajaxAuthLoc+"?action=verifyTwoFaAuth",{authCode:t,ajaxToken:ajaxToken},function(t){var n=$.parseJSON(t);"success"==n.result?(showMsg("Login Successful, Redirecting...","twoFaAuthModal"),redGenLoc()):(showErr(""!=n.message?n.message:"Two Factor Authentication failed, please try again.","twoFaAuthModal"),bttnDone(e))})}}),$(document.body).on("click","#twoFaAuthConfirmBttn",function(){if(bttnWait(this),validInputs("#twoFaSignInBlock"))showErr("Please complete all input fields.","twoFaAuthModal"),bttnDone(this);else{var e=$("#authCode").val();$.post(ajaxAuthLoc+"?action=checkTwoFaAuth",{authCode:e,ajaxToken:ajaxToken},function(e){var t=$.parseJSON(e);"success"==t.result?runTwoFaCallBack():(bttnDone("#twoFaAuthConfirmBttn"),showErr(""!=t.message?t.message:"Two Factor Authentication failed, please try again.","twoFaAuthModal"))})}}),$(document.body).on("click","a#confirmBackupCodeLink",function(){$(this).attr("disabled",!0),$("#twoFaSignInBlock").slideUp("slow",function(){$("#backupCode").val(""),$("#twoFaBackupCodeBlock").slideDown("slow",function(){$("#backupCode").focus()}),$("a#confirmBackupCodeLink").attr("disabled",!1)})}),$(document.body).on("click","#confirmTwoFaBackupCodeBttn",function(){if(bttnWait(this),validInputs("#twoFaBackupCodeBlock"))showErr("Please complete all input fields.","twoFaAuthModal"),bttnDone(this);else{var e=$("#backupCode").val();$.post(ajaxAuthLoc+"?action=checkTwoFaAuthBackupCode",{backupCode:e,ajaxToken:ajaxToken},function(e){var t=$.parseJSON(e);(bttnDone("#confirmTwoFaBackupCodeBttn"),"success"==t.result)?runTwoFaCallBack():showErr(""!=t.message?t.message:"Two Factor backup code failed, please try again.","twoFaAuthModal")})}}),$(document.body).on("click","a#backupCodeLink",function(){$(this).attr("disabled",!0),$("#twoFaSignInBlock").slideUp("slow",function(){$("#backupCode").val(""),$("#twoFaBackupCodeBlock").slideDown("slow",function(){$("#backupCode").focus()}),$("a#backupCodeLink").attr("disabled",!1)})}),$(document.body).on("click","#twoFaBackupCodeBttn",function(){if(bttnWait(this),validInputs("#twoFaBackupCodeBlock"))showErr("Please complete all input fields.","twoFaAuthModal"),bttnDone(this);else{var e=$("#backupCode").val();$.post(ajaxAuthLoc+"?action=verifyTwoFaAuthBackupCode",{backupCode:e,ajaxToken:ajaxToken},function(e){var t=$.parseJSON(e);"success"==t.result?(showMsg("Login Successful, Redirecting...","twoFaAuthModal"),setTimeout(function(){window.location.reload()},1200)):(bttnDone("#twoFaBackupCodeBttn"),"TwoFa Inactive"==t.message?$("#twoFaSignInModal").modal("hide"):showErr(""!=t.message?t.message:"Two Factor backup code failed (auth), please try again.","twoFaAuthModal"))})}}),$(document.body).on("click","#otpConfirmBttn",function(){if(bttnWait(this),validInputs("#otpConfirmBlock"))showErr("Please complete all input fields.","otpConfirmModal"),bttnDone(this);else{var e=$("#otpPin").val();$.post(ajaxAuthLoc+"?action=confirmOtpAuth",{otpPin:e,ajaxToken:ajaxToken},function(e){var t=$.parseJSON(e);"success"==t.result?runTwoFaCallBack():(bttnDone("#otpConfirmBttn"),showErr(""!=t.message?t.message:"One Time Pin failed (auth), please try again.","otpConfirmModal"))})}}),$(document.body).on("click","#otpCellConfirmBttn",function(){if(bttnWait(this),validInputs("#otpCellConfirmBlock"))showErr("Please complete all input fields.","otpCellConfirmModal"),bttnDone(this);else{var e=$("#otpCellPin").val();$.post(ajaxAuthLoc+"?action=confirmCellOtpAuth",{otpPin:e,ajaxToken:ajaxToken},function(e){var t=$.parseJSON(e);"success"==t.result?runTwoFaCallBack():(bttnDone("#otpCellConfirmBttn"),showErr(""!=t.message?t.message:"One Time Pin failed (auth), please try again.","otpCellConfirmModal"))})}}),$(document.body).on("click","#resendConfirmCodeLink",function(e){e.preventDefault();const t="email";if(otpSecs[t]>0)return showMsg('Please wait <span class="otpSecsMsg">'+otpSecs[t]+"</span> seconds before resending.","otpConfirmModal","warning","remain"),!1;var n=$(this),o=n.text();bttnWait(n,"Please wait..."),$.post(ajaxAuthLoc+"?action=resendOtpConfirm",{ajaxToken:ajaxToken},function(e){var t=$.parseJSON(e);"success"===t.result?(showMsg("One-Time PIN resent successfully","otpConfirmModal"),runOtpInterval(n,o,"#otpConfirmModalResAlert","#otpConfirmModalResMsg","email")):showErr(t.message||"One Time Pin Send failed (auth), please try again.","otpConfirmModal"),bttnDone(n)})}),$(document).on("click",".switch2FaConfirmLink",function(e){e.preventDefault();var t=$("#"+$(this).data("close-modal")),n=$("#"+$(this).data("open-modal"));window.twoFaSkipHiddenReset=!0,t.one("hidden.bs.modal.switch",function(){sendEmailOtpConfirm(twoFaReturnFocusEl,twoFaReturnFocusTxt),n.one("shown.bs.modal.switch",function(){window.twoFaSkipHiddenReset=!1})}),t.modal("hide")}),$(document).on("click",".switch2FaLink",function(e){e.preventDefault();var t=$("#"+$(this).data("close-modal")),n=$("#"+$(this).data("open-modal"));window.twoFaSkipHiddenReset=!0,t.one("hidden.bs.modal.switch",function(){sendEmailOtp(),n.one("shown.bs.modal.switch",function(){window.twoFaSkipHiddenReset=!1})}),t.modal("hide")}),$(document.body).on("click","#resendCellConfirmCodeLink",function(e){e.preventDefault();if(otpSecs.sms>0)return showMsg('Please wait <span class="otpSecsMsg">'+otpSecs.sms+"</span> seconds before resending.","otpCellConfirmModal","warning","remain"),!1;var t=$(this),n=t.text();bttnWait(t,"Please wait..."),$.post(ajaxAuthLoc+"?action=resendCellOtpConfirm",{ajaxToken:ajaxToken},function(e){var o=$.parseJSON(e);"success"===o.result?(showMsg("One-Time PIN resent successfully","otpCellConfirmModal"),runOtpInterval(t,n,"#otpCellConfirmModalResAlert","#otpCellConfirmModalResMsg","sms")):showErr(o.message||"One Time Pin Send failed (auth), please try again.","otpCellConfirmModal"),bttnDone(t)})}),(c.indexOf("hosting/wordpress")>=0||c.indexOf("wordpress-hosting")>=0)&&$(".block-link-pop .block-content p").is("*")&&$(".block-link-pop .block-content p").each(function(e,t){$(this).html().indexOf("ToolKit")>=0&&$(this).append('<i class="fa fa-info-circle packageInfoIcon" data-toggle="modal" data-target="#wpInfoModal"></i>')}),$(document.body).on("click","#addNewServiceBttn",function(e){$("#addNe
2wServiceBlock").is(":visible")?($("#addNewServiceBlock").slideUp(),$(this).html($(this).html().replace("down","right"))):($("#addNewServiceBlock").slideDown(),$(this).html($(this).html().replace("right","down")))}),c.indexOf("hostingConfiguration")>=0)var d=setInterval(function(){$('div[data-type="WordPress"] .block-link-pop .block-content p').is("*")&&(clearInterval(d),$('div[data-type="WordPress"] .block-link-pop .block-content p').each(function(e,t){$(this).html().indexOf("ToolKit")>=0&&$(this).append('<i class="fa fa-info-circle packageInfoIcon" data-toggle="modal" data-target="#wpInfoModal"></i>')}))},100);function u(e){var t=$.trim($(e).val()).toLowerCase().replace(/\ /g,"");if($(e).val(t),t.indexOf(".")>=0){var n=t.split(".")[0];$(e).val(n)}}if($(".freqQuesContainer").is("*")&&($(".faqAnsRow").hide(),$(document.body).on("click",".faqQuesRow",function(){$(this).next(".faqAnsRow").is(":visible")?$(this).next(".faqAnsRow").slideUp():$(this).next(".faqAnsRow").slideDown()})),$(document.body).on("click",".checkAllBttn",function(){var e=$
2(this),t=e.attr("rel"),n=e.data("state");$("#"+t+' input[type="checkbox"]').each(function(t,o){"unchecked"==n?($(o).prop("checked",!0),$(e).data("state","checked"),$(e).html("Uncheck All")):($(o).prop("checked",!1),$(e).data("state","unchecked"),$(e).html("Check All"))})}),$(document.body).on("click",".stopVid",function(){$("#sbTutVid").remove(),$("#siteBuilderModal .innerBlockContent .row").append('<iframe id="sbTutVid" width="1280" height="720" src="https://www.youtube.com/embed/dfV1qLBh9xQ" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>')}),$(document.body).on("click",".sbLoginLink",function(e){e.preventDefault(),window.open("https://builder.hosted.com/en/brand/1106416/","_blank")}),$(document.body).on("click",".showPassBttn",function(){var e=$(this).parent(),t="tr",n="td";e.is("div")&&(t="div",n="div");var o=e.parent().parent().children(t),a=$(this).hasClass("fa-eye-slash");$.each(o,function(e,t){var o=$(t).children(n);$.each(o,function(e,t){a?$(t).children("input.showPass").attr("type","text"):$(t).children("input.showPass").attr("type","password")})}),$(this).toggleClass("fa-eye"),$(this).toggleClass("fa-eye-slash")}),$(document.body).on("click","#loginFrmBttn",function(e){e.preventDefault();var t=$(this);bttnWait(t);var n=void 0!==$(this).data("alertelem")?$(this).data("alertelem"):"findOutMore",o=void 0!==$(this).data("redirect")?$(this).data("redirect"):"";if($("#loginemail, #loginpw").removeClass("inputError"),0==$.trim($("#loginemail").val()).length)showErr("Please fill in your email address",n),$("#loginemail").addClass("inputError");else if(0==$.trim($("#loginpw").val()).length)showErr("Please fill in your password",n),$("#loginpw").addClass("inputError");else if(isEmail($("#loginemail").val())){var a={email:$("#loginemail").val(),password2:$("#loginpw").val(),ajaxToken:ajaxToken,area:"custom"};$.post(ajaxLoginLoc+"?action=loginUser",{userObj:a,ajaxToken:ajaxToken},function(e){var a=$.parseJSON(e);if("success"==a.result)if(a.twoFactorEnabled)$("#twoFaBackupCodeBlock").hide(),$("#twoFaSignInBlock").show(),$("#twoFaSignInModal").modal("show"),$("#authCode").val("").trigger("focus"),bttnDone(t);else if(a.otpCheck){if("sms"===a.channel)return $("#otpCell").html(maskOtpCell(a.otpCell)),$("#otpCellModal").modal("show"),void $("#otpCellPin").val("").trigger("focus");if("email"===a.channel){$("#otpEmail").html(a.otpEmail),$("#otpModal").modal("show"),$("#otpPin").val("").trigger("focus");var i=parseInt(a.smsErrCode,10)||0;if(a.smsFallback&&[105,114,121,122,128,250].includes(i)){var s="SMS delivery failed for the mobile number on record.";105===i&&(s="SMS delivery blocked (invalid destination address)."),114===i&&(s="SMS delivery blocked (cannot route message)."),121===i&&(s="SMS delivery blocked for this mobile number."),122===i&&(s="SMS delivery blocked (opted out)."),128===i&&(s="SMS delivery blocked (number delisted)."),250===i&&(s="SMS delivery blocked (do-not-contact)."),showMsg(s+=" Sent the OTP by email instead.","otpModal","info","remain")}return}}else showMsg("Login Successful, Redirecting...",n),""!=o?setTimeout(function(){window.location.href=o},1200):reloadWindow(1200);else if("lockout"==a.result){showMsg(a.message,n,"error",1);var r=$("#secs").html()/60,l=Math.floor(r),c=l<r?30:59;$("#secs").html(c),$("#mins").html(l<r?l:l-1),intervalCounter=setInterval(function(){$("#secs").html()>0?$("#secs").html($("#secs").html()-1):$("#mins").html()>0?($("#mins").html($("#mins").html()-1),$("#secs").html(59)):(bttnDone(t),showMsg("Please try again.","login"),clearInterval(intervalCounter))},1e3)}else{bttnDone(t),showErr(s=""!=a.message?a.message:"Two Factor Authentication failed (general), please try again.",n)}})}else showErr("Invalid email address",n),$("#loginemail").addClass("inputError")}),$(document.body).on("click","#otpBttn",function(){if(bttnWait(this),validInputs("#otpBlock"))showErr("Please complete all input fields.","otpModal"),bttnDone(this);else{var e=$("#otpPin").val();$.post(ajaxAuthLoc+"?action=confirmOtpAuth",{otpPin:e,ajaxToken:ajaxToken},function(e){var t=$.parseJSON(e);"success"==t.result?(showMsg("Login Successful, Redirecting...","otpModal"),redGenLoc()):(bttnDone("#otpBttn"),showErr(""!=t.message?t.message:"One Time Pin failed (auth), please try again.","otpModal"))})}}),$(document.body).on("click","#otpCellBttn",function(){if(bttnWait(this),validInputs("#otpCellBlock"))showErr("Please complete all input fields.","otpCellModal"),bttnDone(this);else{var e=$("#otpCellPin").val();$.post(ajaxAuthLoc+"?action=confirmCellOtpAuth",{otpPin:e,ajaxToken:ajaxToken},function(e){var t=$.parseJSON(e);"success"==t.result?(showMsg("Login Successful, Redirecting...","otpCellModal"),redGenLoc()):(bttnDone("#otpCellBttn"),showErr(""!=t.message?t.message:"One Time Pin failed (auth), please try again.","otpCellModal"))})}}),$(document.body).on("click","#otpSignInFrmBttn",function(){bttnWait(this);var e=void 0!==$(this).data("redirect")?$(this).data("redirect"):"";if(validInputs("#otpSignInBlock"))showErr("Please complete all input fields.","otpLogin"),bttnDone(this);else{var t=$("#otpPin").val(),n=$("#otpEmail").html();$.post(ajaxLoginLoc+"?action=verifyOtpAuth",{otpPin:t,otpEmail:n},function(t){var n=$.parseJSON(t);"success"==n.result?(showMsg("Login Successful, Redirecting...","otpLogin"),""!=e?setTimeout(function(){window.location.href=e},1200):reloadWindow(1200)):(bttnDone("#otpSignInFrmBttn"),showErr(""!=n.message?n.message:"One Time Pin failed (general), please try again.","otpLogin"))})}}),$(document.body).on("click","#resendCodeLink",function(e){e.preventDefault();const t="email";if(otpSecs[t]>0)return showMsg('Please wait <span class="otpSecsMsg">'+otpSecs[t]+"</span> seconds before resending.","otpModal","warning","remain"),!1;var n=$(this),o=n.text();bttnWait(n,"Please wait..."),$.post(ajaxAuthLoc+"?action=resendOtpConfirm",{ajaxToken:ajaxToken},function(e){var t=$.parseJSON(e);"success"===t.result?(showMsg("One-Time PIN resent successfully","otpModal"),runOtpInterval(n,o,"#otpModalResAlert","#otpModalResMsg","email")):showErr(t.message||"One Time Pin Send failed (auth), please try again.","otpModal"),bttnDone(n)})}),$(document.body).on("click","#resendCellCodeLink",function(e){e.preventDefault();if(otpSecs.sms>0)return showMsg('Please wait <span class="otpSecsMsg">'+otpSecs.sms+"</span> seconds before resending.","otpCellModal","warning","remain"),!1;var t=$(this),n=t.text();bttnWait(t,"Please wait..."),$.post(ajaxAuthLoc+"?action=resendCellOtpConfirm",{ajaxToken:ajaxToken},function(e){var o=$.parseJSON(e);"success"===o.result?(showMsg("One-Time PIN resent successfully","otpCellModal"),runOtpInterval(t,n,"#otpCellModalResAlert","#otpCellModalResMsg","sms")):showErr(o.message||"One Time Pin Send failed (auth), please try again.","otpCellModal"),bttnDone(t)})}),$("#findOutMoreBttn").click(function(e){e.preventDefault();var t=!1;$("#findOutMoreForm input, #findOutMoreForm textarea, .gRecapBlock").removeClass("inputError"),$("#findOutMoreForm input").each(function(e,n){"otpPin"!=$(this).attr("id")&&($(this).val($.trim($(this).val())),"none"!=$("#loginFrmDiv").css("display")?0==$(this).val().length&&($(this).addClass("inputError"),t=!0):"loginemail"!=$(this).attr("id")&&"loginpw"!=$(this).attr("id")&&0==$(this).val().length&&($(this).addClass("inputError"),t=!0))}),0==$.trim($("#inputTxt").val()).length&&($("#inputTxt").addClass("inputError"),t=!0),0==$.trim($("#g-recaptcha-response").val()).length&&$(".gRecapBlock").addClass("inputError"),$("#inputTxt").val($.trim($("#inputTxt").val())),t?showMsg("Please complete all form inputs","findOutMore","error"):isEmail($("#email").val())?$.post(ajaxLoc+"?action=checkEmail",{email:$("#email").val(),sessMessage:$("#inputTxt").val(),sessName:$("#name").val(),sessNumber:$("#number").val()},function(e){"Existing User"==$.parseJSON(e).result?($("#findOutMoreFormDiv").slideUp("slow",function(){$("#loginFrmDiv").slideDown("slow")}),showMsg("It seems you have an account with us, please login to continue.","findOutMore","notice","remain"),$("#loginemail").val($("#email").val())):0==$.trim($("#g-recaptcha-response").val()).length?showErr("Please complete the form security check","findOutMore"):$.post(ajaxCustLoc+"?action=verifyCapture",{response:$("#g-recaptcha-response").val()},function(e){"success"==$.parseJSON(e)?(loading("#findOutMoreForm"),$.post(ajaxCustLoc+"?action=openTicket",{message:encodeURIComponent(cleanStr("Contact: "+$("#number").val()+" Message: "+$("#inputTxt").val())),email:$("#email").val(),name:$("#name").val()},function(e){var t=$.parseJSON(e);loading("#findOutMoreForm","done"),"success"==t.result?$("#findOutMoreFormDiv").slideUp("slow",function(){showMsg('<p><strong>Ticket Created <a href="/viewticket/'+t.tid+"/"+t.c+'" style="color:#000000;">#'+t.tid+'</a></strong></p><br><br><p>Your ticket has been successfully created. An email has been sent to your address with the ticket information. If you would like to view this ticket now you can do so by clicking <a href="/viewticket/'+t.tid+"/"+t.c+'">here</a>.</p>',"findOutMore","success",1)}):showErr(""!=t.message?t.message:"An error occured, please try again later.","findOutMore")})):showErr("Form security check failed, please retry.","findOutMore")})}):(showMsg("Invalid email address","findOutMore","error"),$("#email").addClass("inputError"))}),$(document.body).on("click","#clientNavMobBttn",function(){$(this).hide()}),$(document.body).on("click","#menuCloseBttn",function(){$("#clientNavMobBttn").fadeIn()}),$(document.body).on("click","#navMenuBttn",function(){$(".mobMenu").removeClass("opened"),$(".mobMenu .nav-link").removeClass("open"),$(".mobMenu .nav-item").removeClass("open"),$(".mobMenu").is(":visible")?($(".mobMenu").slideUp(),$("#overlay").is(":visible")&&$("#overlay").fadeOut()):$(".mobMenu").slideDown()}),$(document.body).on("click","#overlay",function(){$("#overlay").fadeOut(),$(".mobMenu").is(":visible")&&$(".mobMenu").slideUp()}),$(document.body).on("click",".mobMenu .nav-link",function(){$("#overlay").is(":visible")||$("#overlay").fadeIn(),$(".mobMenu .nav-link").removeClass("open"),$(".mobMenu .nav-link").removeClass("active"),$(".mobMenu .nav-item").removeClass("open"),$(".mobMenu .nav-item").removeClass("active"),$(".mainMenu
2SubBlock").addClass("disNone"),$(this).addClass("open"),$(this).parent().addClass("open"),$(this).parent().parent().addClass("opened");var e=$(this).attr("rel");"undefined"!=e&&""!=e&&($('.mainMenuSubBlock[rel="'+$(this).attr("rel")+'"]').removeClass("disNone"),$(document).on("click","*",function(e){var t=$(".mobMenu");t.is(e.target)||0!==t.has(e.target).length||($(".mobMenu .nav-link").removeClass("open"),$(".mainMenuSubBlock").addClass("disNone"),l(c))}))}),$(document.body).on("click",".mobMenu .menuBlock",function(){window.location.href=$(this).children("a").attr("href")}),$(document.body).on("click",".topMenu .nav-link",function(e){"#"==$(this).attr("href")&&e.preventDefault(),$(".topMenu .nav-link").removeClass("open"),$(".topMenu .nav-link").removeClass("active"),$(".mainMenuSubBlock").addClass("disNone"),$(this).addClass("open"),$(this).next().hasClass("mainMenuSubBlock")&&($(this).next().removeClass("disNone"),$(document).on("click","*",function(e){var t=$(".topMenu");t.is(e.target)||0!==t.has(e.target).length||($(".topMenu .nav-link").removeClass("open"),$(".mainMenuSubBlock").addClass("disNone"),r(c))}))}),$(document.body).on("click",".topMenu .menuBlock",function(){window.location.href=$(this).children("a").attr("href")}),$(document.body).append('<input type="hidden" id="mainMenuHandler" value="0" />'),$(".topMenu").hover(function(){$("#mainMenuHandler").val("0")},function(){$("#mainMenuHandler").val("1"),setTimeout(function(){1==$("#mainMenuHandler").val()&&($(".topMenu .nav-link").removeClass("open"),$(".mainMenuSubBlock").addClass("disNone"),r(c))},300)}),$(".gravatarImg").is("*"))var p=setInterval(function(){$("#gravImg").is("*")&&(clearInterval(p),$(".gravatarImg").each(function(e,t){$(this).data("email");var n=$(this).attr("rel");""!==$("#gravImg").val()&&$('.gravatarImg[rel="'+n+'"] img').attr("src",$("#gravImg").val()).removeClass("login-img")}))},200);var f=(c=window.location.href).substring(c.indexOf("//")+1).split("/");f.splice(0,2),c="/"+f.join("/");$('a.nav-main-link[href="/client/dashboard"]').addClass("active"),$(".nav-main-submenu .nav-main-link").each(function(e,t){"#"!==$(t).attr("href")&&(c.indexOf($(t).attr("href"))>=0||c.indexOf($(t).data("alt"))>=0)&&($('a.nav-main-link[href="/client/dashboard"]').removeClass("active"),$(t).parent().parent().parent().addClass("open"),$(t).addClass("active"))}),$(".permElem").each(function(e,t){$("#"+$(t).data("perm")+"Perms").is("*")||(($(t).is("button")||$(t).is("a"))&&($(t).css("cursor","not-allowed"),$(t).on("click",function(e){e.preventDefault()})),$(t).is("a")&&$(t).attr("href",""),$(t).attr("disabled",!0).addClass("permShade"))}),$(".nav-main-link").each(function(e,t){var n=$(t).data("perms"),o=$(t).data("perm");if(void 0!==n){var a=n.split(","),i=!1;$(a).each(function(e,t){$("#"+t+"Perms").is("*")&&(i=!0)}),i||$(t).hide()}else void 0!==o&&($("#"+o+"Perms").is("*")||$(t).hide())}),$("#userDropMenu .permElem").each(function(e,t){$("#"+$(t).data("perm")+"Perms").is("*")||($(t).is("a")&&$(t).hide(),$(t).attr("disabled",!0).addClass("permShade"))});let m=$("#chatUser").val();if(m)try{let e=JSON.parse(m);sessionStorage.setItem("hsdt",JSON.stringify({gravatar:e.gravatar,name:e.nickname,company:e.company})),sessionStorage.setItem("chat_verified",1);let t={email:e.email,name:e.nickname,hash:e.chat_signature,ccf_WHMCS:e.user_id};window.Desku?(Desku("setUserData",t),Desku("setUniqueId",{unique_id:e.user_id})):window.addEventListener("DeskuWidgetLoaded",()=>{Desku("setUserData",t),Desku("setUniqueId",{unique_id:e.user_id})})}catch(e){console.error(e)}else sessionStorage.getItem("chat_verified")&&window.addEventListener("DeskuWidgetLoaded",()=>{Desku("logout"),sessionStorage.removeItem("chat_verified")})}),$(document.body).on("click",".bttnLink",function(e){void 0!==$(this).data("loc")&&(window.location.href=$(this).data("loc"))}),$(document.body).on("keypress",".actionBound input",function(e){var t=$(this).parents(".actionBound").attr("bindsTo");"undefined"!=t&&""!=t&&(13!=e.keyCode&&13!=e.which||$("#"+t).click())}),$(document.body).on("keypress",'input[bound="true"]',function(e){var t=$(this).attr("bindsTo");"undefined"!=t&&""!=t&&(13!=e.keyCode&&13!=e.which||$("#"+t).click());var n=$(this).attr("bindsToClosest");"undefined"!=n&&""!=n&&(13!=e.keyCode&&13!=e.which||$("button").closest("."+n).click())}
2),$(document.body).on("click",".checkAllSub",function(){var e=$(this).attr("id").replace("chk_","");$("#blk_"+e+' input[type="checkbox"]').prop("checked",$(this).is(":checked"))}),$(document.body).on("click",".siblingCheck",function(){$(this).siblings('input[type="checkbox"]').click()}),$(document.body).on("click",".logoutBttn",logout),$(document.body).on("click",".massPayBttn",function(){$.post(ajaxCustLoc+"?action=runMassPay",function(e){var t=$.parseJSON(e);t.invoiceid?window.location.href="/client/billing/view-invoice/"+t.invoiceid+"#massPay":window.location.href="/client/billing/my-invoices/massPay"})}),$(document.body).on("click",".paySelectedBttn",function(){if(bttnWait(this),$('#blk_invoices input[type="checkbox"]:checked').length)if(1==$('#blk_invoices input[type="checkbox"]:checked').length)window.location.href="/client/billing/view-invoice/"+$('#blk_invoices input[type="checkbox"]:checked').attr("rel");else{var e=[];$('#blk_invoices input[type="checkbox"]:checked').each(function(t,n){e.push($(n).attr("rel"))}),$.post(ajaxCustLoc+"?action=paySelected",{invIds:e},function(e){var t=$.parseJSON(e);t.invoiceid&&(window.location.href="/client/billing/view-invoice/"+t.invoiceid)}),bttnDone(this)}else showErr("Please select at least one invoice to pay","invoices"),bttnDone(this)}),$(document.body).on("click","#sidebarToggle",function(){Dashmix.layout("sidebar_style_toggle")}),$(document.body).on("click",".navBttn",function(){window.location.href=$(this).data("href")}),$(document.body).on("click",".domSrchBttn",function(e){e.preventDefault();let t=$(this).closest(".domSrchForm").find(".domSrchInput");var n=$.trim(t.val()).toLowerCase().replace(/\ /g,"");if(t.val(n),$(".domSrchForm").first().find(".domSrchInput").val(n),"wizard"!=$(this).attr("rel"))if(/^[a-zA-Z0-9][a-zA-Z0-9-]{1,61}[a-zA-Z0-9]+$/.test(n))if(0==$("#domSrchJs").length){var o=document.createElement("script");o.id="domSrchJs",o.type="text/javascript",o.onload=function(){submitSearchForm()},o.src="/assets/js/custom/pages/domainSearch.js",document.head.appendChild(o)}else submitSearchForm();else showErr("Please provide a valid domain name","domSrch")}),function(e){e.ucFirst=function(e){if(void 0!==e&&""!=e&&null!=e&&isNaN(e)){var t,n=e.split(" "),o=n.length,a=[];for(t=0;t<o;t++){var i=n[t],s=i[0].toUpperCase()+i.substring(1,i.length).toLowerCase();a.push(s)}return a.join(" ")}return e},e.ucFirstIfLow=function(e){if(void 0!==e&&""!=e&&null!=e){var t,n=e.split(" "),o=n.length,a=[];for(t=0;t<o;t++){var i=n[t],s=i[0].toUpperCase()+i.substring(1,i.length);a.push(s)}return a.join(" ")}},e.lcFirst=function(e){if(void 0!==e&&""!=e){var t,n=e.split(" "),o=n.length,a=[];for(t=0;t<o;t++){var i=n[t],s=i[0].toLowerCase()+i.substring(1,i.length);a.push(s)}return a.join(" ")}},e.deparam=function(e){e=e.substring(e.indexOf("?")+1).split("&");var t,n,o={},a=decodeURIComponent;for(n=e.length;n>0;)o[a((t=e[--n].split("="))[0])]=a(t[1]);return o}}(jQuery),$(document.body).on("click",".innerTab",function(e){$(".innerTab").removeClass("active"),$(this).addClass("active")}),$(document.body).on("click",".dropdown-menu.selectable .dropdown-item",function(){var e=$
2(this).parent(),t=e.parent(),n=$(this).html();e.children(".dropdown-item").removeClass("active"),$(this).addClass("active"),t.children(".bttnTxt").html("\n\t\t\t\t\t\t\t\t\t\t"+n+"\n\t\t\t\t\t\t\t\t\t"),void 0!==$(this).parent().data("identifier")?t.children(".selectInput").val($(this).data($(this).parent().data("identifier"))):t.children(".selectInput").val(n)}),$(document.body).on("click",".js-wizard-simple #nextBttn",function(){$(".js-wizard-simple .nav-link.active").parent().next().children(".nav-link").is("*")&&$(".js-wizard-simple .nav-link.active").parent().next().children(".nav-link").click()}),$(document.body).on("click",".js-wizard-simple #prevBttn",function(){$(".js-wizard-simple .nav-link.active").parent().prev().children(".nav-link").is("*")&&$(".js-wizard-simple .nav-link.active").parent().prev().children(".nav-link").click()}),jQuery.fn.extend({getUrlParam:function(e,t=!0){e=decodeURIComponent(e);var n=new Array,o=null;if("#document"==$(this).attr("nodeName"))window.location.search.search(e)>-1&&(o=window.location.search.substr(1,window.location.search.length).split("&"));else if(void 0!==$(this).attr("src")){if((a=$(this).attr("src")).indexOf("?")>-1)o=a.substr(a.indexOf("?")+1).split("&")}else{if(void 0===$(this).attr("href"))return null;var a;(a=$(this).attr("href")).indexOf("?")>-1&&(o=a.substr(a.indexOf("?")+1).split("&"))}if(null==o)return null;for(var i=0;i<o.length;i++){var s=o[i].split("=");decodeURIComponent(s[0])==e&&n.push(void 0===s[1]?null:decodeURIComponent(s[1]))}return 0==n.length?null:1==n.length?n[0]:t?n[n.length-1]:n}});

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.