async function readTextFile(e){var t=new XMLHttpRequest,n="";for(done=!1,t.onreadystatechange=function(){4==this.readyState&&200==this.status&&(n=this.responseText.replace(/\n/g,"
"),done=!0)},t.open("GET",e,!0),t.send();0==done;)await sleep(50);return n}function hoverOn(){try{v.bouton.innerHTML=v.$i18n.t("devenirAnconaute"),v.anco.src="./images/AncoSmile.png"}catch(e){}}function hoverOut(){try{v.bouton.innerHTML=v.$i18n.t("pret"),v.anco.src="./images/AncoLook.png"}catch(e){}}function sleep(e){return new Promise(t=>setTimeout(t,e))}async function changeHomeText(e="",t=!0){let n=v.ancobaltList.indexOf(e);document.getElementById("AccueilText").innerHTML=v.ancobaltList[n],v.textHome=v.ancobaltList[n],t&&(v.u=n,v.u=v.u>=v.ancobaltList.length-1?0:v.u+1);let o=document.getElementsByClassName("homeTextFullScroll"),i=0;for(let e of o)e.style.background=i==n?"#31369fb3":"#ffffffb3",i+=1}async function homeloopText(){await changeHomeText(v.ancobaltList[0]);let e=document.querySelector("#AccueilText"),t=window.getComputedStyle(e);if(v.barname==v.$i18n.t("home")[0])try{e=document.querySelector("#AccueilText"),t=window.getComputedStyle(e),document.getElementById("AccueilText").style.setProperty("opacity","1.0")}catch(e){}for(;;)if(v.barname==v.$i18n.t("home")[0])try{for(e=document.querySelector("#AccueilText"),t=window.getComputedStyle(e),await sleep(1e4);parseFloat(t.opacity)>0;)await sleep(70),document.getElementById("AccueilText").style.setProperty("opacity",(parseFloat(t.opacity)-.1).toString());for(v.textHome=v.ancobaltList[v.u],await changeHomeText(v.textHome,clicked=!1),v.u=v.u>=v.ancobaltList.length-1?0:v.u+1;t.opacity<1;)await sleep(50),document.getElementById("AccueilText").style.setProperty("opacity",(parseFloat(t.opacity)+.1).toString())}catch(e){try{document.getElementById("AccueilText").style.setProperty("opacity","1.0")}catch(e){}await sleep(1e4)}else await sleep(5e3)}async function displayPasswordDiv(){window.matchMedia("(orientation: portrait)").matches?(document.getElementById("formdiv").style.gridTemplateColumns="repeat(1, 1fr)",document.getElementById("formdiv").style.gridTemplateRows="repeat(3, 3fr)",document.getElementById("ancotext").style.height=""):(document.getElementById("formdiv").style.gridTemplateColumns="repeat(1, 1fr)",document.getElementById("formdiv").style.gridTemplateRows="repeat(5, 3fr)",document.getElementById("ancotext").style.height=""),v.subscription=!0,v.formDiv.innerHTML=''+v.$i18n.t("mdp")+'
\n '+v.$i18n.t("confirmermdp")+'
\n Anco!\n
'+v.$i18n.t("entrerMdp")+'
\n
'+v.$i18n.t("pret")+"
",updateJoinusText(),v.text=v.$i18n.t("entrerMdpBis?"),document.getElementById("one").addEventListener("keyup",v.handleKeyDown),document.getElementById("fiveMDP").addEventListener("keyup",v.handleKeyDown),v.isLoading=!1}async function displayForm(){0==v.userStatus&&(onFocus(0),window.matchMedia("(orientation: portrait)").matches?(document.getElementById("formdiv").style.gridTemplateColumns="repeat(2, 1fr)",document.getElementById("formdiv").style.gridTemplateRows="repeat(9, 3fr)",document.getElementById("ancotext").style.height="min(10em,15vmin)"):(document.getElementById("formdiv").style.gridTemplateColumns="repeat(3, 1fr)",document.getElementById("formdiv").style.gridTemplateRows="repeat(5, 3fr)",document.getElementById("ancotext").style.height="min(10em,15vmin)")),window.matchMedia("(orientation: portrait)").matches?(document.getElementById("formdiv").style.gridTemplateColumns="repeat(2, 1fr)",document.getElementById("formdiv").style.gridTemplateRows="repeat(9, 3fr)",document.getElementById("ancotext").style.height="min(10em,15vmin)"):(document.getElementById("formdiv").style.gridTemplateColumns="repeat(3, 1fr)",document.getElementById("formdiv").style.gridTemplateRows="repeat(5, 3fr)",document.getElementById("ancotext").style.height="",document.getElementById("ancotext").style.height="min(10em,15vmin)"),v.subscription=!0,v.formDiv.innerHTML=''+v.$i18n.t("nom")+'
'+v.$i18n.t("prenom")+'
'+v.$i18n.t("telephone")+'
'+v.$i18n.t("mail")+'
'+v.$i18n.t("adresse")+'
'+v.$i18n.t("ville")+'
'+v.$i18n.t("codepostal")+'
'+v.$i18n.t("pays")+'
'+v.$i18n.t("date_de_naissance")+'
'+v.$i18n.t("codeparrainage")+'
Anco!
'+v.$i18n.t("ancotextInscription")+'
'+v.$i18n.t("pret")+"
"}async function displayKeySetter(){window.matchMedia("(orientation: portrait)").matches?(document.getElementById("formdiv").style.gridTemplateColumns="repeat(1, 1fr)",document.getElementById("formdiv").style.gridTemplateRows="repeat(6, 3fr)",document.getElementById("ancotext").style.height=""):(document.getElementById("formdiv").style.gridTemplateColumns="repeat(1, 1fr)",document.getElementById("formdiv").style.gridTemplateRows="repeat(7, 3fr)",document.getElementById("ancotext").style.height=""),v.subscription=!0,v.formDiv.innerHTML=""+v.$i18n.t("pascompteBinance")+''+v.$i18n.t("apiKey")+'
\n '+v.$i18n.t("secret")+'
\n '+v.$i18n.t("mdp")+'
\n \n
'+v.$i18n.t("apikeyandsecret")+'
\n
'+v.$i18n.t("pret")+"
",v.isLoading=!1,v.anco=document.getElementById("ancogif"),v.ancotext=document.getElementById("ancotext"),updateJoinusText(),document.getElementById("five").addEventListener("keypress",function(e){"Enter"===e.key&&setAPIKeys()}),document.getElementById("ten").addEventListener("keyup",v.handleKeyDown2),document.getElementById("eleven").addEventListener("keyup",v.handleKeyDown2)}async function displayAbonnement(){for(window.matchMedia("(orientation: portrait)").matches,document.getElementById("formdiv").style.gridTemplateColumns="repeat(1, 1fr)",document.getElementById("formdiv").style.gridTemplateRows="repeat(8, 3fr)",document.getElementById("ancotext").style.height="",v.subscription=!0,await getWallet();1!=v.isOk;)await sleep(200);v.montantAlloue>=500&&0==v.permissionSpot&&1==v.reloadDisplayAbonnement&&(v.reloadDisplayAbonnement=!1),v.min=0,v.montantAlloue=Math.floor(v.montantAlloue),v.montantAlloue>=500?v.min=500:v.min=0,v.montantAlloue>=1e4?v.montantAlloue=1e4:v.montantAlloue=v.montantAlloue,v.valeurMax=v.montantAlloue,v.prixAbo=Math.ceil((1.9-Math.log10(v.montantAlloue)/3.7)/100*v.montantAlloue),v.formDiv=document.getElementById("formdiv"),v.anco=null;var e="oneDATittleDCIAClassique";if(0!=v.reduction&&(e="oneDATittleDCIAClassiqueReduction"),0==v.reloadDisplayAbonnement){v.formDiv.innerHTML="
"+v.$i18n.t("classique")+"Premium
"+v.$i18n.t("readCGV")+" "+v.$i18n.t("cgv")+'\n '+v.$i18n.t(e).replace("@PrixClassique",1*(1-v.reduction/100)+"€")+' '+v.$i18n.t("montant_alloue")+": =v.max){v.montantAlloue=v.max}else{v.montantAlloue = this.value}; document.getElementById('montantA').value = v.montantAlloue;document.getElementById('montantAlloue').value = v.montantAlloue;\" oninput=\"javascript: this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\\..*)\\./g, '$1');\" step=\"1\" min='10000' max='"+v.max+"' value='"+v.montantAlloue+"'>

USDT


Anco!\n
'+v.$i18n.t("ancotextDCIA")+" "+v.$i18n.t("profiter")+" "+v.reduction+"% "+v.$i18n.t("frais")+'.
\n
'+v.$i18n.t("pret")+"
",document.getElementsByClassName("aboPremiumClassique")[0].style.background="rgba(10,10,10,0.5)";abonnementSelected("Sage");var t=document.getElementsByClassName("range")[0];v.valeurMax}if(v.ancotext=document.getElementById("ancotext"),v.mobileDevice){try{for(const e of document.getElementsByClassName("offre1Form"))e.style.width=""}catch(e){}document.getElementById("ancogifAbo").style.setProperty("top","55%","important")}if(v.montantAlloue<500){v.reloadDisplayAbonnement=!0;try{v.anco.src="./images/AncoSmile2.png"}catch(e){}v.ancotext.innerHTML=v.$i18n.t("compteusdtbas");try{document.getElementById("montantAlloue").style.display="none",document.getElementById("oneDA").style.width="100%",document.getElementById("oneDA").innerHTML="",document.getElementById("oneDATittle").innerHTML="",document.getElementById("joinus").style.display="none",document.getElementById("thirteenDA").style.display="none",document.getElementById("threeDA").style.width="100%",document.getElementById("offreSelectionneBis").style.display="none"}catch(e){}return document.getElementById("threeDA").innerHTML=v.$i18n.t("soldeInsuffisant"),await sleep(1e3),void(v.isLoading=!1)}if(0==v.permissionSpot||0==v.ipRestrited){v.reloadDisplayAbonnement=!0,v.anco.src="./images/AncoSmile2.png",v.ancotext.innerHTML=v.$i18n.t("authAPIKEYError");try{document.getElementById("montantAlloue").style.display="none",document.getElementById("oneDA").style.width="100%",document.getElementById("oneDA").innerHTML="",document.getElementById("oneDATittle").innerHTML="",document.getElementById("joinus").style.display="none",document.getElementById("thirteenDA").style.display="none",document.getElementById("threeDA").style.width="100%",document.getElementById("offreSelectionneBis").style.display="none"}catch(e){}return document.getElementById("threeDA").innerHTML=v.$i18n.t("authAPIKEYErrorBis"),await sleep(1e3),void(v.isLoading=!1)}updateJoinusText(),t.addEventListener("mousedown",unlockStartHandler,!1),t.addEventListener("mousestart",unlockStartHandler,!1),t.addEventListener("mouseup",unlockEndHandler,!1),t.addEventListener("touchend",unlockEndHandler,!1),t.addEventListener("input",function(){this.value>20&&t.classList.add("ltpurple"),this.value>40&&t.classList.add("purple"),this.value>60&&t.classList.add("pink"),this.value<20&&t.classList.remove("ltpurple"),this.value<40&&t.classList.remove("purple"),this.value<60&&t.classList.remove("pink")}),v.isLoading=!1}async function terminer(){await getInformationClient(),v.nousrejoindre=!1,await sleep(10),v.displayJoinus=!1,await sleep(10),v.displayContact=!0,await sleep(10),v.hasAnID=!0,await sleep(10),v.userStatus=-1,await sleep(10),this.subscription=!1,await sleep(10),v.homebarClicked(v.$i18n.t("home")[0])}async function displayFacture(){window.innerWidth/window.innerHeight"+v.$i18n.t("felicitation")+'\n '+v.$i18n.t("aboEnregistre")+"\n "+v.$i18n.t("quandCommenceAbo")+"

"+v.$i18n.t("debutAboPremiertrade")+"
\n "+v.$i18n.t("cbPourPayer")+"

"+v.$i18n.t("paiementNonRealise")+'
\n '+v.$i18n.t("payerAbo")+' '+v.$i18n.t("terminer")+""):v.formDiv.innerHTML=""+v.$i18n.t("felicitation")+'\n '+v.$i18n.t("aboEnregistre")+"\n "+v.$i18n.t("quandCommenceAbo")+"

"+v.$i18n.t("debutAboPremiertrade")+"
\n "+v.$i18n.t("cbPourPayer")+"

"+v.$i18n.t("paiementNonRealise")+'
\n '+v.$i18n.t("payerAbo")+' '+v.$i18n.t("terminer")+""}async function reloadAbonnement(){v.isOk=!1,document.getElementById("joinusRefresh").animate([{transform:"rotate(0deg)"},{transform:"rotate(360deg)"}],{duration:1e3,iterations:8}),v.isOk=await getWallet();let e=0;for(;e<40;)if(await sleep(200),e+=1,1==v.isOk&&1==v.permissionSpot&&1==v.ipRestrited)return v.reloadDisplayAbonnement=!1,await displayAbonnement(),!0}function copyIPtext(){var e=document.getElementById("ipText");navigator.clipboard.writeText(v.$i18n.t("ipText")),e.innerHTML=v.$i18n.t("ipText")+" ("+v.$i18n.t("copie")+"!)"}async function activerRenouvellementAuto(e=1,t=""){if(1==e){v.bottomDivText=!0,await sleep(50),document.getElementById("waitPAGE").style.filter="blur(10px)",document.getElementById("Contact").style.filter="blur(10px)",document.getElementById("waitPAGE").style.webkitFilter="blur(10px)",document.getElementById("Contact").style.webkitFilter="blur(10px)";n=await readTextFile("./text/"+v.$i18n.t("renouvellementSrc")+".txt");document.getElementById("bottomText").innerHTML=n.toString().replace("{nom}",v.Prenom).replace("{function}","setPrelevementAuto()").replace("{cardType}",v.cardType.charAt(0).toUpperCase()+v.cardType.slice(1)).replace("{last4}","····"+v.last4.toString())}if(2==e){v.bottomDivText=!0,await sleep(50),document.getElementById("formdiv").style.filter="blur(10px)",document.getElementById("anco_").style.filter="blur(10px)",document.getElementById("formdiv").style.webkitFilter="blur(10px)",document.getElementById("anco_").style.webkitFilter="blur(10px)";var n=await readTextFile("./text/"+v.$i18n.t("renouvellementSrc")+".txt");"Classique"==t?document.getElementById("bottomText").innerHTML=n.toString().replace("{nom}","Anconaute").replace("{function}","activerRenouvellementAuto(3,'Classique')").replace("{cardType}","carte de crédit").replace("{last4}",""):"Premium"==t&&(document.getElementById("bottomText").innerHTML=n.toString().replace("{nom}","Anconaute").replace("{function}","activerRenouvellementAuto(3,'Premium')").replace("{cardType}","carte de crédit").replace("{last4}",""))}if(3==e){document.getElementById("formdiv").style.filter="",document.getElementById("anco_").style.filter="",document.getElementById("formdiv").style.webkitFilter="",document.getElementById("anco_").style.webkitFilter="";var o='{ "uuid":"'+v.sessUserId+'"}',i=JSON.parse(o),l=$.post("https://us-central1-ancobaltproject.cloudfunctions.net/setRenouvellementAuto",i);l.done(async function(e){try{document.getElementById("waitText").innerHTML=v.$i18n.t("messageFinProcessusInscription")}catch(e){}console.log("la requête a fonctionné")}).fail(async function(e){document.getElementById("boutonActivationPrelevement").innerHTML=v.$i18n.t("errorRequete"),reponse=400}),v.exitform(),document.getElementById("anco_").style.filter="",document.getElementById("anco_").style.webkitFilter="",window.innerWidth/window.innerHeight>9/16?v.formDiv.innerHTML="
\"Anco!\"
"+v.$i18n.t("communicationServeur")+"
":v.formDiv.innerHTML='
Anco!
'+v.$i18n.t("communicationServeur")+"
",o='{ "uuid":"'+v.sessUserId+'","abonnement":'+v.abonnementSelectionne+',"abonnementType":"'+t+'", "montantAlloue":0, "windows":'+v.windowsDCIA+', "renouvellement":"true", "seuilTP":'+v.tpdcia+" }",await sleep(50),i=JSON.parse(o);(l=$.post("https://us-central1-ancobaltproject.cloudfunctions.net/invoiceInscriptionDCIA",i)).done(async function(e){v.abonnementSelectionne,v.formDiv.innerHTML='
Anco!
'+v.$i18n.t("felicitation")+"
",await sleep(1e3),v.urlInvoice=e.urlInvoice,await displayFacture()}).fail(async function(e){v.formDiv.innerHTML='
Anco!
'+v.$i18n.t("errorRequetBis")+"
",console.log(v.$i18n.t("errorRequete")),reponse=400,await sleep(5e3),await displayAbonnement()})}}async function aboType(e="Classique"){let t=document.getElementsByClassName("aboPremiumClassique");v.montantAlloue=500,"Classique"==e&&(document.getElementById("offreDCIA").innerHTML="
"+v.$i18n.t("classique")+"Premium
"+v.$i18n.t("oneDATittleDCIAClassique")+'
'+v.$i18n.t("boutonAbo")+"
",await sleep(10),t[1].style.background="rgba(240,240,240,0.5)",t[0].style.background="",t[0].style.textShadow="",document.getElementById("offreDCIA").style.background=""),"Premium"==e&&(document.getElementById("offreDCIA").style.background="rgba(10,10,10,0.5)",document.getElementById("offreDCIA").innerHTML="
"+v.$i18n.t("classique")+"Premium
"+v.$i18n.t("oneDATittleDCIAPremium")+'
'+v.$i18n.t("boutonAbo")+"
",await sleep(10),t[1].style.background="rgba(240,240,240,0.5)",t[0].style.background="",t[0].style.textShadow="")}async function aboTypeProcess(e="Classique"){let t=document.getElementsByClassName("aboPremiumClassique");if("Classique"==e&&(await displayAbonnement(),await sleep(10),t[0].style.background="rgba(10,10,10,0.5)",t[1].style.background="",t[1].style.textShadow="",document.getElementById("formdiv").style.background=""),"Premium"==e){for(await getWallet(),v.montantAlloue<=15e4?v.max=v.montantAlloue:v.max=15e4;1!=v.isOk;)await sleep(200);var n="oneDATittleDCIAPremium";0!=v.reduction&&(n="oneDATittleDCIAPremiumReduction"),v.montantAlloue<1e4?document.getElementById("formdiv").innerHTML="
"+v.$i18n.t("classique")+"Premium
"+v.$i18n.t("compteusdtbasBis")+"":(v.montantAlloue=Math.floor(v.montantAlloue),v.prixAbo=Math.ceil((1.9-Math.log10(v.montantAlloue)/3.7)/100*v.montantAlloue),v.formDiv=document.getElementById("formdiv"),v.anco=null,document.getElementById("formdiv").innerHTML="
"+v.$i18n.t("classique")+"Premium
"+v.$i18n.t("readCGV")+" "+v.$i18n.t("cgv")+'\n '+v.$i18n.t(n).replace("@PrixPremium",399*(1-v.reduction/100)+"€")+' '+v.$i18n.t("montant_alloue")+": =v.max){v.montantAlloue=v.max}else{v.montantAlloue = this.value}; document.getElementById('montantA').value = v.montantAlloue;document.getElementById('montantAlloue').value = v.montantAlloue;\" oninput=\"javascript: this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\\..*)\\./g, '$1');\" step=\"1\" min='10000' max='"+v.max+"' value='"+v.montantAlloue+"'>

USDT


Anco!\n
'+v.$i18n.t("ancotextDCIA")+" "+v.$i18n.t("profiter")+" "+v.reduction+"% "+v.$i18n.t("frais")+'.
\n
'+v.$i18n.t("pret")+"
"),document.getElementById("formdiv").style.background="rgba(10,10,10,0.5)",await sleep(10),t[1].style.background="rgba(240,240,240,0.5)",t[0].style.background="",t[0].style.textShadow=""}}async function getWallet(){let e='{ "uuid":"'+v.sessUserId+'","coin":"BTC","stableCoin":"USDT" }';const t=JSON.parse(e);$.post("https://www.ancobalt.fr/getWalletBinance",t).done(async function(e){return v.montantAlloue=e.walletStableCoin,v.permissionSpot=e.permissionSpot,v.ipRestrited=e.ipRestrict,v.isOk=!0,!0}).fail(function(){console.log(v.$i18n.t("errorRequete")),reponse=400,v.isOk=!1})}function setMaxOfRange(){document.getElementById("montantAlloue").value=v.valeurMax,v.montantAlloue=v.valeurMax,v.prixAbo=Math.ceil((1.9-Math.log10(v.montantAlloue)/3.7)/100*v.montantAlloue);try{document.getElementById("prixAbo").innerHTML=v.prixAbo,document.getElementById("prixAbo2").innerHTML=(v.prixAbo*(1-v.reduction/100)).toFixed(1)}catch(e){}document.getElementById("montantA").value=v.montantAlloue}function abonnementSelected(e){if("Sage"==e){try{onFocus(23)}catch(e){v.anco=document.getElementById("ancogif"),null==v.anco&&(v.anco=document.getElementById("ancogifAbo"))}v.abonnementSelectionne=8,v.montantAlloue<5e3?(v.windowsDCIA=Math.floor(v.montantAlloue/10),v.tpdcia=1.01):v.montantAlloue<1e4?(v.windowsDCIA=500,v.tpdcia=1.01):v.montantAlloue>=1e4&&(v.windowsDCIA=1e3,v.tpdcia=1.01)}else if("Mesure"==e){try{onFocus(24)}catch(e){v.anco=document.getElementById("ancogif"),null==v.anco&&(v.anco=document.getElementById("ancogifAbo"))}v.abonnementSelectionne=8,v.montantAlloue<5e3?(v.windowsDCIA=Math.floor(v.montantAlloue/10),v.tpdcia=1.05):v.montantAlloue<1e4?(v.windowsDCIA=500,v.tpdcia=1.05):v.montantAlloue>=1e4&&(v.windowsDCIA=1e3,v.tpdcia=1.05)}else if("Hardi"==e){try{onFocus(25)}catch(e){v.anco=document.getElementById("ancogif"),null==v.anco&&(v.anco=document.getElementById("ancogifAbo"))}v.abonnementSelectionne=8,v.montantAlloue<5e3?(v.windowsDCIA=Math.floor(v.montantAlloue/10),v.tpdcia=1.01):v.montantAlloue<1e4?(v.windowsDCIA=500,v.tpdcia=1.01):v.montantAlloue>=1e4&&(v.windowsDCIA=1e3,v.tpdcia=1.01)}}function updateJoinusText(){v.texteBouton=v.$i18n.t("creerCompte"),0==v.userStatus?v.texteBouton=v.$i18n.t("inscritpion"):1==v.userStatus?v.texteBouton=v.$i18n.t("definir"):2==v.userStatus?v.texteBouton=v.$i18n.t("ajout"):3==v.userStatus?v.texteBouton=v.$i18n.t("parmAbo"):-1==v.userStatus&&(v.texteBouton=v.$i18n.t("acces")),0==v.userStatus?v.texteHoverBouton=v.$i18n.t("addInfo"):1==v.userStatus?v.texteHoverBouton=v.$i18n.t("noMDP"):2==v.userStatus?v.texteHoverBouton=v.$i18n.t("noApiKey"):3==v.userStatus?v.texteHoverBouton=v.$i18n.t("lastStep"):-1==v.userStatus?v.texteHoverBouton=v.$i18n.t("dashboard"):v.texteHoverBouton=v.$i18n.t("nousRejoindre")}function displayWindowSize(){var e=document.documentElement.clientWidth;document.documentElement.clientHeight;try{v.anco.src=e<1440?"./images/AncoChoc.png":"./images/AncoLook.png"}catch(e){}}async function sendForm(){var e=document.getElementsByTagName("input")[0].value,t=document.getElementsByTagName("input")[1].value,n=document.getElementsByTagName("input")[2].value,o=document.getElementsByTagName("input")[3].value,i=document.getElementsByTagName("input")[4].value,l=document.getElementsByTagName("input")[5].value,a=document.getElementsByTagName("input")[6].value,s=document.getElementsByTagName("input")[7].value,r=document.getElementsByTagName("input")[8].value;let c,m="";""==document.getElementsByTagName("input")[9].value?(c=null,m=12):(c=document.getElementsByTagName("input")[9].value,m=12);let d='{ "nom":"'+e+'" , "prenom":"'+t+'","telephone":"'+n+'" , "mail":"'+o+'","adresse":"'+i+'" , "ville":"'+l+'","code_postal":"'+a+'" , "pays":"'+s+'","date_naissance":"'+r+'", "uuid":"'+v.sessUserId+'", "code_parrainage":"'+c+'","role":"'+m+'"}';const u=JSON.parse(d);try{v.bouton.removeEventListener("mouseenter",hoverOn),v.bouton.removeEventListener("mouseout",hoverOut)}catch(e){}if(""!=e&&""!=t&&""!=n&&""!=o&&""!=i&&""!=l&&""!=a&&""!=s&&""!=r&&""!=c){v.mobileDeviceBis?v.formDiv.innerHTML='
Anco!
'+v.$i18n.t("communicationServeur")+"
":v.formDiv.innerHTML='
Anco!
'+v.$i18n.t("communicationServeur")+"
";$.post("https://europe-west1-ancobaltproject.cloudfunctions.net/bigquery-python",u).done(async function(e){console.log("La requête a bien abouti!"),reponse=200,v.userStatus=1,null==v.sessUserId&&(v.sessUserId=e.uuid),v.reduction=e.reduction,await ifRequestWorked(!0)}).fail(async function(e){v.mobileDeviceBis?v.formDiv.innerHTML='
Anco!
'+v.$i18n.t("errorRequetBis")+e.responseJSON.text+"
":v.formDiv.innerHTML='
Anco!
'+v.$i18n.t("errorRequetBis")+e.responseJSON.text+"
",await sleep(5e3),await displayForm(),console.log(v.$i18n.t("errorRequete")),reponse=400})}else v.ancotext=document.getElementById("ancotext"),printLetterByLetter(v.$i18n.t("champRemplies"),10,v.ancotext)}async function getInformationClient(){let e=new URLSearchParams(window.location.search).get("uuid");if(-1==v.userStatus&&1==v.isConnected){let t='{ "uuid":"'+e+'" }';const n=JSON.parse(t);$.post("https://us-central1-ancobaltproject.cloudfunctions.net/getInformationClient",n).done(async function(e){v.Nom=e.NOM,v.Prenom=e.PRENOM,v.prelevementAuto=e.MODE_PAIEMENT_CHOISI}).fail(function(){console.log(v.$i18n.t("errorRequete")),reponse=400})}}async function getEarlyAdopter(){let e=new URLSearchParams(window.location.search).get("uuid"),t='{ "uuid":"'+e+'", "isNew":"False" }';const n=JSON.parse(t);$.post("https://us-central1-ancobaltproject.cloudfunctions.net/earltadopterCreationAccount",n).done(async function(t){if(console.log(v.$i18n.t("requete200")),reponse=200,v.sessUserId=e,v.userEmail=t.mail,v.userStatus=t.status,0==v.userStatus||1==v.userStatus)v.hasAnID=!0,v.isConnected=!0,v.displayJoinus=!0,v.displayContact=!1,await ifRequestWorked(!0);else{3==v.userStatus&&await getWallet(),v.isLoading=!1,v.hasAnID=!1}}).fail(function(){v.hasAnID=!1,v.isLoading=!1,reponse=400,console.log("user is not valid!!")})}async function sendPassword(){var e=document.getElementsByTagName("input")[0].value,t=document.getElementsByTagName("input")[1].value;if(v.confIsOK&&v.mdpIsOK&&e==t){let t='{ "mdp":"'+e+'" , "createMDP":"True", "client_id":"'+v.sessUserId+'" }';const n=JSON.parse(t);try{v.bouton.removeEventListener("mouseenter",hoverOn),v.bouton.removeEventListener("mouseout",hoverOut)}catch(e){}v.mobileDeviceBis?v.formDiv.innerHTML='
Anco!
'+v.$i18n.t("communicationServeur")+"
":v.formDiv.innerHTML='
Anco!
'+v.$i18n.t("communicationServeur")+"
";$.post("https://us-central1-ancobaltproject.cloudfunctions.net/finalize_client",n).done(async function(e){v.userStatus=2,await displayKeySetter()}).fail(async function(){console.log(v.$i18n.t("errorRequete")),reponse=400,v.mobileDeviceBis?v.formDiv.innerHTML='
Anco!
'+v.$i18n.t("tryRequete")+"
":v.formDiv.innerHTML='
Anco!
'+v.$i18n.t("tryRequete")+"
",await sleep(5e3),await displayPasswordDiv()})}}function changePW(){document.getElementById("logDiv").innerHTML=""+v.$i18n.t("setMail")+"
"+v.$i18n.t("retour")+""+v.$i18n.t("envoyer")+"
",document.getElementById("logDiv").style.justifyContent="center",document.getElementById("logDiv").style.alignItems="center"}async function retourMDP(){document.getElementById("logDiv").style.justifyContent="",document.getElementById("logDiv").style.alignItems="",v.boutonConnexionClicked=!1,await sleep(10),v.boutonConnexionClicked=!0}async function reinitPassword(){let e='{ "uuid":"'+document.getElementsByTagName("input")[0].value+'", "token":"reinit" }';const t=JSON.parse(e);document.getElementById("logDiv").innerHTML="";$.post("https://us-central1-ancobaltproject.cloudfunctions.net/pwChange",t).done(async function(e){document.getElementById("logDiv").innerHTML=""+v.$i18n.t("mailEnvoye")+""+v.$i18n.t("retour")+"",document.getElementById("logDiv").style.justifyContent="center"}).fail(async function(){document.getElementById("logDiv").innerHTML=""+v.$i18n.t("erreurTryAgain")+""+v.$i18n.t("retour")+"",document.getElementById("logDiv").style.justifyContent="center"})}async function checkPassword(){var e=document.getElementsByTagName("input")[0].value,t=document.getElementsByTagName("input")[1].value,n=document.getElementsByTagName("input")[2].checked;v.ancotext=null,v.ancotext=document.getElementById("ancotextConnexion");try{v.anco=document.getElementById("ancogifProjetConnexion")}catch(e){}if(-1!=e.indexOf("@")&&e.length>4&&t.length>=6){let o='{ "email":"'+e+'", "mdp":"'+t+'" }';window.innerWidth/window.innerHeight>v.aspect_ratio?(document.getElementById("submitLogin").innerHTML="
",document.getElementById("submitLogin").style.width="3vmin",document.getElementById("submitLogin").style.height="5vmin"):(document.getElementById("submitLogin").innerHTML="
",document.getElementById("submitLogin").style.width="3vmin",document.getElementById("submitLogin").style.height="5vmin");const i=JSON.parse(o);printLetterByLetter(v.$i18n.t("interrogeServeur"),10,v.ancotext);try{v.anco.src="./images/AncoSmile2.png"}catch(e){}$.post("https://us-central1-ancobaltproject.cloudfunctions.net/auth_client",i).done(async function(e){v.isLoading=!0,await sleep(30),v.hasAnID=!0,await sleep(30),v.home=v.$i18n.t("home"),v.isConnected=!0,0==v.maintenance&&await v.homebarClicked(v.$i18n.t("home")[0]),await sleep(30),document.getElementById("bandoBottom").style.opacity="1",document.getElementById("bandoBottom").style.display="",v.sessUserId=e.id_client,v.userStatus=e.status,v.reduction=e.reduction,updateJoinusText();let t=v.sessUserId;if(1==n){let e='{ "uuid":"'+t+'", "create":"True"}';const n=JSON.parse(e);(o=$.post("https://us-central1-ancobaltproject.cloudfunctions.net/getTempLogID",n)).done(async function(e){setCookie("ancoToken",e.TOKEN,7),setCookie("reduction",v.reduction,7)}).fail(function(){console.log(v.$i18n.t("errorRequete")),reponse=400})}else{let e='{ "uuid":"'+t+'", "create":"True"}';const n=JSON.parse(e);(o=$.post("https://us-central1-ancobaltproject.cloudfunctions.net/getTempLogID",n)).done(async function(e){setCookie("ancoToken",e.TOKEN,.02),setCookie("reduction",v.reduction,.02)}).fail(function(){console.log(v.$i18n.t("errorRequete")),reponse=400})}if(-1==v.userStatus&&1==v.isConnected){await v.getInfoPaiement();let e='{ "uuid":"'+t+'" }';const n=JSON.parse(e);var o=$.post("https://us-central1-ancobaltproject.cloudfunctions.net/getInformationClient",n);o.done(async function(e){v.Nom=e.NOM,v.Prenom=e.PRENOM,v.prelevementAuto=e.MODE_PAIEMENT_CHOISI,v.isLoading=!1}).fail(function(){console.log(v.$i18n.t("errorRequete")),reponse=400,v.isLoading=!1})}v.isConnected=!0,await sleep(30);try{this.contact=document.getElementById("Contact"),this.contact.style.opacity="1",this.contact.style.display=""}catch(e){}v.isLoading=!1}).fail(function(){if(document.getElementById("submitLogin").style.width="",document.getElementById("submitLogin").style.height="",0==v.numErreur){v.ancotext.innerHTML=v.$i18n.t("errorId");try{v.anco.src="./images/AncoSmile2.png"}catch(e){}}else if(1==v.numErreur){v.ancotext.innerHTML=v.$i18n.t("errorMDP2");try{v.anco.src="./images/AncoSmile2.png"}catch(e){}}else{v.ancotext.innerHTML=v.$i18n.t("compteBlocke");try{v.anco.src="./images/AncoCroise.png"}catch(e){}}v.numErreur=v.numErreur+1,document.getElementById("submitLogin").innerText=v.$i18n.t("seConnecter"),reponse=400,v.isLoading=!1})}else{e.length<4||-1==e.indexOf("@")?v.ancotext.innerHTML="
"+v.$i18n.t("emailNonValide"):t.length<5&&(v.ancotext.innerHTML="
"+v.$i18n.t("mdpTropCourt"));try{v.anco.src="./images/AncoSmile2.png"}catch(e){}v.isLoading=!1}}async function setAPIKeys(){var e=document.getElementsByTagName("input")[0].value,t=document.getElementsByTagName("input")[1].value,n=document.getElementsByTagName("input")[2].value;if(64==document.getElementsByTagName("input")[0].value.length&&64==document.getElementsByTagName("input")[1].value.length){v.mobileDeviceBis,v.formDiv.innerHTML='
Anco!
'+v.$i18n.t("communicationServeur")+"
";let o='{ "mdp":"'+n+'" , "createMDP":"False", "client_id":"'+v.sessUserId+'", "apiKey":"'+e+'", "secret":"'+t+'" }';const i=JSON.parse(o);$.post("https://www.ancobalt.fr/finalize_client",i).done(async function(e){v.userStatus=3,await displayAbonnement()}).fail(async function(e){v.mobileDeviceBis,v.formDiv.innerHTML='
Anco!
'+v.$i18n.t("errorRequetBis")+e.responseJSON.text+"
",console.log(v.$i18n.t("errorRequete")),reponse=400,await sleep(5e3),await displayKeySetter()})}}async function setPrelevementAuto(){document.getElementById("boutonActivationPrelevement").innerHTML=v.$i18n.t("communicationServeurBis");let e='{ "uuid":"'+v.sessUserId+'"}';const t=JSON.parse(e);$.post("https://us-central1-ancobaltproject.cloudfunctions.net/setRenouvellementAuto",t).done(async function(e){document.getElementById("boutonActivationPrelevement").innerHTML=v.$i18n.t("prelevAutoActive"),await sleep(1e3),document.getElementById("waitText").innerHTML=v.$i18n.t("bonjour")+""+v.Prenom+"

"+v.$i18n.t("earlyAdopterWelcom"),v.exitform()}).fail(async function(e){document.getElementById("boutonActivationPrelevement").innerHTML=v.$i18n.t("errorRequete"),reponse=400})}async function finalizeSubcription(e="Classique"){v.subscription=!0,document.getElementById("inputCGV").checked&&(v.montantAlloue>=500&&"Classique"==e||v.montantAlloue>=1e4&&"Premium"==e)&&8==v.abonnementSelectionne?await activerRenouvellementAuto(status3=2,abo=e):v.montantAlloue<500?onFocus(20):0==document.getElementsByTagName("input")[2].checked&&onFocus(22)}async function ifRequestWorked(e=!1){await sleep(10),v.nousrejoindre=!0,3!=v.userStatus&&await v.nousRejoindreClick(e);try{for(0==v.userStatus&&(v.isLoading=!1),1==v.userStatus&&(await displayPasswordDiv(),v.mdp=document.getElementById("ten"),v.mdpconf=document.getElementById("eleven")),2==v.userStatus&&(await displayKeySetter(),v.mdp=document.getElementById("ten"),v.mdpconf=document.getElementById("eleven"),v.mdp.removeEventListener("keyup",v.handleKeyDown),v.mdpconf.removeEventListener("keyup",v.handleKeyDown)),3==v.userStatus&&await displayAbonnement(),v.anco=document.getElementById("ancogif"),v.ancotext=document.getElementById("ancotext"),v.bouton2=document.getElementById("joinus");null==this.bouton2;)try{this.bouton2=document.getElementById("joinus"),await sleep(1)}catch(e){await sleep(1)}this.bouton2.addEventListener("mouseenter",function(e){v.bouton2.innerHTML=v.$i18n.t("valider"),v.bouton2.style.paddingInline="4vmin"},{passive:!0}),this.bouton2.addEventListener("mouseleave",function(e){v.bouton2.innerHTML=v.$i18n.t("pret"),v.bouton2.style.paddingInline="2vmin"},{passive:!0})}catch(e){}}function setCookie(e,t,n){var o="";if(n){var i=new Date;i.setTime(i.getTime()+24*n*60*60*1e3),o="; expires="+i.toUTCString()}document.cookie=e+"="+(t||"")+o+"; SameSite=None; Secure; path=/"}function getCookie(e){for(var t=e+"=",n=document.cookie.split(";"),o=0;ov.anco.src="./images/AncoLook.png",100),v.anco.src="./images/AncoBase.png"},6e3)):(v.anco.src="./images/AncoBase.png",txt=v.$i18n.t("notSeeMDP")),clearInterval(v.copieAVHInterval),clearInterval(v.interval),v.interval=null,v.copieAVHInterval=null,this.ancotext.innerHTML=txt,this.mdpInput=document.getElementsByTagName("input")[0],this.confInput=document.getElementsByTagName("input")[1];const t="password"===this.mdpInput.getAttribute("type")?"text":"password",n="password"===this.confInput.getAttribute("type")?"text":"password";if(e){this.mdpkey=document.getElementsByTagName("input")[2];const e="password"===this.mdpkey.getAttribute("type")?"text":"password";this.mdpkey.setAttribute("type",e)}this.mdpInput.setAttribute("type",t),this.confInput.setAttribute("type",n)}function onFocus(e){v.anco=document.getElementById("ancogif"),null==v.anco&&(v.anco=document.getElementById("ancogifAbo")),v.anco.src=e<3?"./images/AncoLookTop.png":e<5?"./images/AncoLookMidUp.png":e<8?"./images/AncoLookMid.png":10==e||11==e?"./images/AncoLookMidUp.png":"./images/AncoLookDown.png";var t=10;0==e?v.text=v.$i18n.t("ancotextInscription"):1==e?v.text=v.$i18n.t("onFocus1"):2==e?v.text=v.$i18n.t("onFocus2"):3==e?v.text=v.$i18n.t("onFocus3"):4==e?v.text=v.$i18n.t("onFocus4"):5==e?v.text=v.$i18n.t("onFocus5"):6==e?v.text=v.$i18n.t("onFocus6"):7==e?v.text=v.$i18n.t("onFocus7"):8==e?v.text=v.$i18n.t("onFocus8"):9==e?v.text=v.$i18n.t("onFocus9"):10==e?(v.mdpIsOK?v.text=v.$i18n.t("onFocus10"):v.text=v.$i18n.t("onFocus10Bis"),t=5):11==e?(v.confIsOK&&v.mdpIsOK&&v.mdpconfValue==v.mdpValue?(v.text=v.$i18n.t("onFocus11"),v.bouton2.style.background="#09ff00"):v.confIsOK&&v.mdpconfValue==v.mdpValue?v.text=v.$i18n.t("onFocus11Bis"):v.text=v.$i18n.t("onFocus11BisBis"),t=5):12==e?v.text=v.$i18n.t("onFocus12"):13==e?v.text=v.$i18n.t("onFocus13"):14==e?v.text=v.$i18n.t("onFocus14"):15==e?v.text=v.$i18n.t("onFocus15"):16==e?v.text=v.$i18n.t("onFocus16"):17==e?v.text=v.$i18n.t("onFocus17"):18==e?v.text=v.$i18n.t("onFocus18"):19==e?v.text=v.$i18n.t("onFocus19"):20==e?v.text=v.$i18n.t("onFocus20"):21==e?v.text=v.$i18n.t("onFocus21"):22==e?v.text=v.$i18n.t("onFocus22"):23==e?v.text=v.$i18n.t("onFocus23"):24==e?v.text=v.$i18n.t("onFocus24"):25==e?v.text=v.$i18n.t("onFocus25"):26==e&&(v.text=v.$i18n.t("onFocus26")),clearInterval(v.blink),v.blink=null,v.blink=setInterval(function(){try{setTimeout(function(){try{v.anco.src="./images/AncoLook.png"}catch(e){}},100),v.anco.src="./images/AncoBase.png"}catch(e){}},6e3),clearInterval(v.copieAVHInterval),clearInterval(v.interval),v.interval=null,v.copieAVHInterval=null,printLetterByLetter(v.text,t,v.ancotext)}function onBlur(e){v.anco.src="./images/AncoLook.png"}function expandAvis(e){avisDiv=document.getElementById("avisDiv"),joinus_=document.getElementById("joinus_"),joinus_.style.zIndex="0",avisDiv.style.height="80%",avisDiv.style.width="80%",avisDiv.style.zIndex="9999",avisDiv.style.backgroundColor="rgba(240,240,240,0.9)",document.getElementById("ancotextHome").innerHTML="Donnez
votre avis !"}function printLetterByLetter(e,t,n){n.innerHTML="","Acheter"==e?n.style.setProperty("color","#1acd1e"):"Attendre"==e?n.style.setProperty("color","#1941d4"):"Vendre"==e&&n.style.setProperty("color","#c51e1e");let o=0;null==v.interval&&(v.interval=setInterval(function(){"¤"==e.charAt(o)?n.innerHTML+="
":"µ"==e.charAt(o)?n.innerHTML+=''+v.$i18n.t("laFAQ")+".":"~"==e.charAt(o)?n.innerHTML+=''+v.reduction+"%":"}"==e.charAt(o)?n.innerHTML+=''+v.$i18n.t("tittleAbonnement")[0]+"":"{"==e.charAt(o)?n.innerHTML+=''+v.$i18n.t("tittleAbonnement")[1]+"":"]"==e.charAt(o)?n.innerHTML+=''+v.$i18n.t("tittleAbonnement")[2]+"":"°"==e.charAt(o)?n.innerHTML+="
":n.innerHTML+=e.charAt(o),++o>e.length&&(clearInterval(v.interval),v.interval=null)},t))}async function getToFAQ(e){document.getElementById("displayAll").style.display="",document.getElementById("displayAll").style.opacity="",await v.homebarClicked(v.$i18n.t("home")[5],!0),setTimeout(function(){v.textFAQChange(v.$i18n.t("faqInfo")[2]),v.textFAQChangeRep(v.$i18n.t("faqTitle")[2][0])},200)}function animateGetEmail(){"black"==getEmail.style.getPropertyValue("color")?(getEmail.innerText=" "+v.$i18n.t("nousRejoindreQ")+" ",getEmail.style.setProperty("color","white"),getEmail.style.setProperty("top","0vmin"),getEmail.style.setProperty("background-color","black")):(getEmail.innerHTML=v.$i18n.t("listAttente")+'

',getEmail.style.setProperty("color","black"),getEmail.style.setProperty("top","-7vmin"),getEmail.style.setProperty("background-color","white"))}async function mettreListeAttente(){var e=document.getElementById("earlyInput").value;if(-1!=e.indexOf("@")&&e.length>4&&-1!=e.indexOf(".")){v.ancotext=document.getElementById("ancotextProjet2"),document.getElementById("earlyInput").style.border="0.2em solid green";let n='{ "uuid":"'+e+'", "isNew":"True" }';v.ancotext.innerHTML="

"+v.$i18n.t("communicationServeurBis")+".";document.getElementById("earlyInputBouton").style.display="none",document.getElementById("ancoAccueil").src="./images/AncoBase.png";const o=JSON.parse(n);var t=document.getElementById("getEmail");$.post("https://us-central1-ancobaltproject.cloudfunctions.net/earltadopterCreationAccount",o).done(async function(e){v.ancotext.innerHTML="

"+v.$i18n.t("listAttenteRejoins"),document.getElementById("ancoAccueil").src="./images/AncoSmile2.png",t.style.display="none"}).fail(async function(e){t.style.display="none"})}else document.getElementById("earlyInput").style.border="0.2em solid red"}async function checkCodeParrainage(){let e=new URLSearchParams(window.location.search);v.codeParrainage=e.get("codeparrainage");let t='{ "codeparrainage":"'+v.codeParrainage+'"}';const n=JSON.parse(t);$.post("https://us-central1-ancobaltproject.cloudfunctions.net/checkCodeParrainage",n).done(async function(e){1==e.exist&&(console.log(v.$i18n.t("requete200")),reponse=200,v.userStatus=0,v.hasAnID=!0,v.displayJoinus=!0,v.displayContact=!1,await ifRequestWorked(!0))})}async function startPage(e=v.$i18n.t("home")[0]){v.getImageListCarte();var t=getCookie("ancoToken");if(v.reduction=parseInt(getCookie("reduction")),null!=t){let e='{ "create":"False", "cookie":"'+t+'"}';const n=JSON.parse(e);$.post("https://us-central1-ancobaltproject.cloudfunctions.net/getTempLogID",n).done(async function(e){v.hasAnID=!0,v.homeShow=[!0,!0,!0,!1,!0,!0],v.home=v.$i18n.t("home"),v.isConnected=!0,0==v.maintenance&&await v.homebarClicked(v.$i18n.t("home")[0]),await sleep(30),document.getElementById("bandoBottom").style.opacity="1",document.getElementById("bandoBottom").style.display="",v.sessUserId=e.UUID,v.userStatus=e.STATUS,v.userEmail=e.MAIL,updateJoinusText();let t=v.sessUserId;if(-1==v.userStatus&&1==v.isConnected){await v.getInfoPaiement();let e='{ "uuid":"'+t+'" }';const n=JSON.parse(e);$.post("https://us-central1-ancobaltproject.cloudfunctions.net/getInformationClient",n).done(async function(e){v.Nom=e.NOM,v.Prenom=e.PRENOM,v.prelevementAuto=e.MODE_PAIEMENT_CHOISI}).fail(function(){console.log(v.$i18n.t("errorRequete")),reponse=400})}v.isConnected=!0,document.getElementById("joinus_").style.setProperty("opacity","1"),document.getElementById("joinus_").style.display=""}).fail(function(){eraseCookie("ancoToken"),document.getElementById("joinus_").style.setProperty("opacity","0.0"),document.getElementById("joinus_").style.display="none",reponse=400}),homeloopText()}window.location.href.indexOf("codeparrainage")>-1&&(v.isLoading=!0,await checkCodeParrainage()),null!==document.querySelector("#AccueilText")&&homeloopText(),await v.homebarClicked(e);try{document.getElementById(e+"Bar_").style.opacity=1,document.getElementById(e+"Bar_image").style.opacity=1,v.mobileDeviceBis?(document.getElementById(e+"Bar_").style.top="-1em",document.getElementById(e+"Bar_image").style.top="-1em"):(document.getElementById(e+"Bar_").style.left="40%",document.getElementById(e+"Bar_image").style.left="40%")}catch(e){}let n=new URLSearchParams(window.location.search),o=window.location.pathname.slice(1);null!=n.get("codeparrainage")||o==v.$i18n.t("inscription")?v.nousRejoindreClick():o==v.$i18n.t("connexion")?v.boutonConnexionClickedfn():e==v.$i18n.t("home")[0]&&v.$router.push(v.$i18n.t("home")[0]),"fr"==v.$i18n.locale?(document.getElementsByClassName("languageDiv")[1].style.height="0%",document.getElementsByClassName("languageDiv")[1].style.fontSize="0vmin"):"en"==v.$i18n.locale?(document.getElementsByClassName("languageDiv")[0].style.height="0%",document.getElementsByClassName("languageDiv")[0].style.fontSize="0vmin"):(document.getElementsByClassName("languageDiv")[1].style.height="0%",document.getElementsByClassName("languageDiv")[1].style.fontSize="0vmin"),document.body.style.backgroundPositionY="0px",v.totalHeightDiv=0;for(let e of v.homeBarShow){let t=v.home.indexOf(e);try{v.totalHeightDiv+=document.getElementById(homebarFr[t]).getBoundingClientRect().height}catch(e){}}v.selectedFAQSection=v.FAQTitle[0];for(const e of document.getElementsByClassName("textLigneFAQ"))e.style.transition="all 0.5s",e.style.webkitTransition="all 0.5s";await v.textFAQChange(),document.getElementById("displayAll").addEventListener("scroll",eventScroll),await sleep(10),v.init=!1}function deconnexion(){eraseCookie("ancoToken"),document.location.reload(!0)}function dashboard(){document.getElementById("ancoLoading2").innerHTML="
";var e=document.createElement("script");clearInterval(v.blink),fetch("dashboard.html").then(e=>e.text()).then(t=>{document.getElementById("app").innerHTML=t,e.src="js/dashboard.js",document.head.appendChild(e),v.dashboardClicked=!0;try{document.getElementById("backAccueil").style.position="relative",document.getElementById("boutonAccueil").style.width="auto",document.getElementById("boutonAccueil").style.opacity="1",document.getElementById("boutonAccueil").style.display="flex",document.getElementById("boutonAccueil").style.fontSize="min(2vmin,1em)",document.getElementById("boutonDeconnexion").style.width="auto",document.getElementById("boutonDeconnexion").style.opacity="1",document.getElementById("boutonDeconnexion").style.display="flex",document.getElementById("boutonDeconnexion").style.fontSize="min(2vmin,1em)"}catch(e){}})}function unlockStartHandler(){window.cancelAnimationFrame(rafID),currValue=+this.value}function unlockEndHandler(){currValue=+this.value,currValue>=maxValue?successHandler():rafID=window.requestAnimationFrame(animateHandler)}function animateHandler(){currValue,maxValue;inputRange.value=currValue,currValue<20&&inputRange.classList.remove("ltpurple"),currValue<40&&inputRange.classList.remove("purple"),currValue<60&&inputRange.classList.remove("pink"),currValue>-1&&window.requestAnimationFrame(animateHandler),currValue-=speed}function successHandler(){alert("Unlocked")}function imageLoaded(e){if(e==v.cartesUrl.length-1)for(var t=v.cartesUrl.length-1;t>0;t--)document.getElementById("img"+t.toString()).style.opacity="1.0"}async function resize_(){v.totalHeightDiv=0;for(let e of v.homeBarShow){let t=v.home.indexOf(e);try{v.totalHeightDiv+=document.getElementById(homebarFr[t]).getBoundingClientRect().height}catch(e){}}eventScroll(),window.matchMedia("(orientation: portrait)").matches?(document.body.style.backgroundPositionY="0px",v.FAQInfoSelected=["Premiers pas"],v.projetInfoSelected=v.projetInfo,v.selectedFAQSection=v.lastFAQQuestionTitleSelected,v.mobileDeviceBis=!0,document.getElementById("displayAll").style.height="calc(100% - 4em - min(4em,8vmin))"):(v.FAQInfoSelected=v.FAQInfo,v.projetInfoSelected=v.projetInfo,v.selectedFAQSection=v.FAQQuestionTitle[v.indexFAQ],v.mobileDeviceBis=!1,document.getElementById("displayAll").style.height="100%"),document.getElementById("displayAll").style.width="100%";try{window.matchMedia("(orientation: portrait)").matches?(0==v.userStatus&&(document.getElementById("formdiv").style.gridTemplateColumns="repeat(2, 1fr)",document.getElementById("formdiv").style.gridTemplateRows="repeat(9, 3fr)",document.getElementById("ancotext").style.height="min(10em,15vmin)"),1==v.userStatus&&(document.getElementById("formdiv").style.gridTemplateColumns="repeat(1, 1fr)",document.getElementById("formdiv").style.gridTemplateRows="repeat(3, 3fr)"),2==v.userStatus&&(document.getElementById("formdiv").style.gridTemplateColumns="repeat(1, 1fr)",document.getElementById("formdiv").style.gridTemplateRows="repeat(6, 3fr)"),3==v.userStatus&&(document.getElementById("formdiv").style.gridTemplateColumns="repeat(1, 1fr)",document.getElementById("formdiv").style.gridTemplateRows="repeat(8, 3fr)",document.getElementById("thirteenDA").style.width="100%")):(0==v.userStatus&&(document.getElementById("formdiv").style.gridTemplateColumns="repeat(3, 1fr)",document.getElementById("formdiv").style.gridTemplateRows="repeat(5, 3fr)",document.getElementById("ancotext").style.height="min(10em,15vmin)"),1==v.userStatus&&(document.getElementById("formdiv").style.gridTemplateColumns="repeat(1, 1fr)",document.getElementById("formdiv").style.gridTemplateRows="repeat(5, 3fr)"),2==v.userStatus&&(document.getElementById("formdiv").style.gridTemplateColumns="repeat(1, 1fr)",document.getElementById("formdiv").style.gridTemplateRows="repeat(7, 3fr)"),3==v.userStatus&&(document.getElementById("formdiv").style.gridTemplateColumns="repeat(1, 1fr)",document.getElementById("formdiv").style.gridTemplateRows="repeat(8, 3fr)"))}catch(e){}}async function testresize(){if(await sleep(10),0==v.realMobiledevice)if(window.matchMedia("(orientation: portrait)").matches&&!v.mobileDevice){if(!v.mobileDevice){v.mobileDevice=!0;try{dashVue.mobileDevice=!0,document.getElementById("backAccueil").style.width="20%"}catch(e){}if(v.homeBarShow=v.$i18n.t("homeBarShow"),v.FAQInfoSelected=["Premiers pas"],v.projetInfoSelected=["Données"],v.selectedFAQSection=v.lastFAQQuestionTitleSelected,$('link[href*="./css/styleMobile.css"]').removeAttr("disabled"),$('link[href*="./css/style.css"]').attr("disabled","true"),1==v.userStatus)try{document.getElementById("formdiv").style.gridTemplateColumns="repeat(1, 1fr)"}catch(e){}if(3==v.userStatus)try{document.getElementById("threeDA").style.width="200%",document.getElementById("formdiv").style.gridTemplateColumns="repeat(1, 1fr)";for(const e of document.getElementsByClassName("offre1Form"))e.style.width=""}catch(e){}try{document.getElementById("ancogifAbo").style.setProperty("top","55%","!important")}catch(e){}}}else if(window.matchMedia("(orientation:landscape)").matches&&v.mobileDevice&&v.mobileDevice){v.mobileDevice=!1;try{dashVue.mobileDevice=!1,document.getElementById("backAccueil").style.width="40%"}catch(e){}if(v.homeBarShow=v.home,v.FAQInfoSelected=v.FAQInfo,v.projetInfoSelected=v.projetInfo,v.selectedFAQSection=v.FAQQuestionTitle[v.indexFAQ],$('link[href*="./css/style.css"]').removeAttr("disabled"),$('link[href*="./css/styleMobile.css"]').attr("disabled","true"),1==v.userStatus)try{document.getElementById("formdiv").style.gridTemplateColumns=""}catch(e){}if(3==v.userStatus)try{document.getElementById("threeDA").style.width="",document.getElementById("formdiv").style.gridTemplateColumns="repeat(2, 1fr)";for(const e of document.getElementsByClassName("offre1Form"))e.style.width="10%";document.getElementById("ancogifAbo").style.removeProperty("top")}catch(e){}testOrientation()}}async function testOrientation(){await sleep(10),v.realMobiledevice?(document.getElementById("block_land").style.display=0!=window.orientation?"flex":"none",document.getElementById("app").style.display=0!=window.orientation?"none":"",document.body.style.boxShadow=0!=window.orientation?"inset 0px 0px 2000px 100px #00000040":""):(document.getElementById("block_land").style.display="none",document.getElementById("app").style.display=""),document.getElementById("block_land").style.opacity="1"}function swiperightCarte(e){let t=document.getElementsByClassName("imageFullScroll");e.detail.directions.right&&v.indImagCarteScroll-1>=0&&(v.indImagCarteScroll=v.indImagCarteScroll-1),e.detail.directions.left&&v.indImagCarteScroll+1<=t.length-1&&(v.indImagCarteScroll=v.indImagCarteScroll+1);let n=0;for(let e of t)n==v.indImagCarteScroll?e.style.background="#31369fb3":e.style.background="#ffffffb3",n+=1;document.getElementById("carteImageFull").src=v.cartesUrl[v.indImagCarte].url[v.indImagCarteScroll]}function swipeUPDOWNtCarte(e){e.detail.directions.top&&v.changeImage("next"),e.detail.directions.bottom&&v.changeImage("previous")}function swipeEventListener(e){try{var t=document.getElementById("divCarteImageFull");SwipeListener(t);"add"==e?t.addEventListener("swipe",swiperightCarte):t.removeEventListener("swipe",swiperightCarte)}catch(e){}}function inscriptionLink(e){v.codeParrainage=e,v.nousRejoindreClick()}function binanceLink(){window.open(v.$i18n.t("referalBinance"),"_blank")}function newsAncobalt(){window.open(v.$i18n.t("referalAncoNews"),"_blank")}function swipeUPDOWNEventListener(e){try{var t=document.getElementById("fullInfoCartes");SwipeListener(t);"add"==e?t.addEventListener("swipe",swipeUPDOWNtCarte):t.removeEventListener("swipe",swipeUPDOWNtCarte)}catch(e){}}async function backPlusInfo(e){let t=document.getElementsByClassName("plusInformationDiv"),n=document.getElementsByClassName("plusInformationDivText");t[e].style.background="",t[e].style.opacity="0",t[e].style.width="0",t[e].style.height="0",n[e].innerHTML=v.$i18n.t("plusInformationText")[e][1],3==e&&(t[e].style.justifyContent="",n[e].style.justifyContent="",n[e].style.marginBottom="0.5em",n[e].style.width="",n[e].style.marginLeft="");for(o=0;odocument.getElementById(homebarFr[t]).getBoundingClientRect().height/ratioSection[t]?(document.getElementById(homebarFr[t]).style.opacity=1,document.getElementById(e+"Bar_").style.opacity=1,v.mobileDeviceBis?(document.getElementById(e+"Bar_").style.top="-1em",document.getElementById(e+"Bar_image").style.top="-1em"):(document.getElementById(e+"Bar_").style.left="40%",document.getElementById(e+"Bar_image").style.left="40%"),document.getElementById(e+"Bar_image").style.opacity=1,v.$route.path!="/"+e&&0==v.init&&v.$router.push(e)):(document.getElementById(e+"Bar_").style.opacity="",document.getElementById(e+"Bar_").style.left="",document.getElementById(e+"Bar_image").style.left="",document.getElementById(e+"Bar_").style.top="",document.getElementById(e+"Bar_image").style.top="",document.getElementById(e+"Bar_image").style.opacity="")}catch(e){}v.lastbarname=""}Vue.use(VueApexCharts),Vue.use(VueI18n),Vue.component("apexchart",VueApexCharts);const ml={template:"
"},edc={template:"
"},Accueil={template:"
"},Projet={template:"
"},Offre={template:"
"},Cartes={template:"
"},Equipe={template:"
"},FAQ={template:"
"},Connexion={template:"
"},Inscription={template:"
"},routes=[{path:"/"+i18n.t("bottomTextTitle")[0][1],component:ml},{path:"/"+i18n.t("bottomTextTitle")[1][1],component:edc},{path:"/"+i18n.t("home")[0],component:Accueil,beforeEnter(e,t,n){document.title=i18n.t("home")[0],document.head.querySelector("meta[property='og:title']").content=i18n.t("home")[0],document.head.querySelector("meta[property='og:description']").content=i18n.t("homeDescription")[0],document.head.querySelector("meta[name=description]").content=i18n.t("homeDescription")[0],document.head.querySelector("link[rel=canonical]").href="https://www.ancobalt.com/"+i18n.t("home")[0],document.head.querySelector("meta[property='og:url']").content="https://www.ancobalt.com/"+i18n.t("home")[0],n()}},{path:"/"+i18n.t("home")[1],component:Projet,beforeEnter(e,t,n){document.title=i18n.t("home")[1],document.head.querySelector("meta[property='og:title']").content=i18n.t("home")[1],document.head.querySelector("meta[property='og:description']").content=i18n.t("homeDescription")[1],document.head.querySelector("meta[name=description]").content=i18n.t("homeDescription")[1],document.head.querySelector("link[rel=canonical]").href="https://www.ancobalt.com/"+i18n.t("home")[1],document.head.querySelector("meta[property='og:url']").content="https://www.ancobalt.com/"+i18n.t("home")[1],n()}},{path:"/"+i18n.t("home")[2],component:Offre,beforeEnter(e,t,n){document.title=i18n.t("home")[2],document.head.querySelector("meta[property='og:title']").content=i18n.t("home")[2],document.head.querySelector("meta[property='og:description']").content=i18n.t("homeDescription")[2],document.head.querySelector("meta[name=description]").content=i18n.t("homeDescription")[2],document.head.querySelector("link[rel=canonical]").href="https://www.ancobalt.com/"+i18n.t("home")[2],document.head.querySelector("meta[property='og:url']").content="https://www.ancobalt.com/"+i18n.t("home")[2],n()}},{path:"/"+i18n.t("home")[3],component:Cartes,beforeEnter(e,t,n){document.title=i18n.t("home")[3],document.head.querySelector("meta[property='og:title']").content=i18n.t("home")[3],document.head.querySelector("meta[property='og:description']").content=i18n.t("homeDescription")[3],document.head.querySelector("meta[name=description]").content=i18n.t("homeDescription")[3],document.head.querySelector("link[rel=canonical]").href="https://www.ancobalt.com/"+i18n.t("home")[3],document.head.querySelector("meta[property='og:url']").content="https://www.ancobalt.com/"+i18n.t("home")[3],n()}},{path:"/"+i18n.t("home")[4],component:Equipe,beforeEnter(e,t,n){document.title=i18n.t("home")[4],document.head.querySelector("meta[property='og:title']").content=i18n.t("home")[4],document.head.querySelector("meta[property='og:description']").content=i18n.t("homeDescription")[4],document.head.querySelector("meta[name=description]").content=i18n.t("homeDescription")[4],document.head.querySelector("link[rel=canonical]").href="https://www.ancobalt.com/"+i18n.t("home")[4],document.head.querySelector("meta[property='og:url']").content="https://www.ancobalt.com/"+i18n.t("home")[4],n()}},{path:"/"+i18n.t("home")[5],component:FAQ,beforeEnter(e,t,n){document.title=i18n.t("home")[5],document.head.querySelector("meta[property='og:title']").content=i18n.t("home")[5],document.head.querySelector("meta[property='og:description']").content=i18n.t("homeDescription")[5],document.head.querySelector("meta[name=description]").content=i18n.t("homeDescription")[5],document.head.querySelector("link[rel=canonical]").href="https://www.ancobalt.com/"+i18n.t("home")[5],document.head.querySelector("meta[property='og:url']").content="https://www.ancobalt.com/"+i18n.t("home")[5],n()}},{path:"/"+i18n.t("connexion"),component:Connexion,beforeEnter(e,t,n){document.title=i18n.t("connexion"),document.head.querySelector("meta[property='og:title']").content=i18n.t("connexion"),document.head.querySelector("meta[property='og:description']").content=i18n.t("cgvuDescription")[0],document.head.querySelector("meta[name=description]").content=i18n.t("cgvuDescription")[0],document.head.querySelector("link[rel=canonical]").href="https://www.ancobalt.com/"+i18n.t("connexion"),document.head.querySelector("meta[property='og:url']").content="https://www.ancobalt.com/"+i18n.t("connexion"),n()}},{path:"/"+i18n.t("inscription"),component:Inscription,beforeEnter(e,t,n){document.title=i18n.t("inscription"),document.head.querySelector("meta[property='og:title']").content=i18n.t("inscription"),document.head.querySelector("meta[property='og:description']").content=i18n.t("cgvuDescription")[1],document.head.querySelector("meta[name=description]").content=i18n.t("cgvuDescription")[1],document.head.querySelector("link[rel=canonical]").href="https://www.ancobalt.com/"+i18n.t("inscription"),document.head.querySelector("meta[property='og:url']").content="https://www.ancobalt.com/"+i18n.t("inscription"),n()}}],router=new VueRouter({routes:routes,mode:"history"});var vbis=new Vue({el:"#block_land",i18n:i18n}),v=new Vue({el:"#app",router:router,i18n:i18n,performance:[],data:{chartOptions:{chart:{id:"vuechart-example",dropShadow:{enabled:!0,top:5,left:0,blur:3,color:"#000",opacity:.15},redrawOnParentResize:!0,redrawOnWindowResize:!0,width:"100%",height:"100%",toolbar:{show:!1}},legend:{fontSize:"15px",offsetY:30,labels:{colors:"#ffffff",useSeriesColors:!1},markers:{fillColors:["#fbc534","#2ee2fa"]}},tooltip:{theme:!1,x:{show:!1},y:{formatter:function(e,{series:t,seriesIndex:n,dataPointIndex:o,w:i}){return e.toString()+"%"}},style:{fontSize:"20px"},fillSeriesColor:!0},xaxis:{type:"datetime",categories:this.performance.Date,labels:{show:!0,rotate:0,rotateAlways:!0,hideOverlappingLabels:!0,showDuplicates:!1,style:{colors:"#ffffff"},format:"MMM yy"},axisBorder:{show:!1},axisTicks:{show:!1},crosshairs:{show:!1},tooltip:{enabled:!1}},colors:["#fbc534","#2ee2fa"],yaxis:[{seriesName:"Profit & Loss USDT",show:!1,min:-100,max:100,crosshairs:{show:!1}},{min:-100,max:100,seriesName:"Profit & Loss BTC",show:!1,crosshairs:{show:!1}}],grid:{show:!1,xaxis:{lines:{show:!1}},yaxis:{lines:{show:!1}}},stroke:{curve:"smooth",colors:["#fbc534","#2ee2fa"],width:4},markers:{size:0,colors:["#fbc534","#2ee2fa"],strokeWidth:0,strokeOpacity:0,fillOpacity:0},dataLabels:{enabled:!1,offsetY:-10,formatter:function(e,t){return e.toFixed(2)+"%"},style:{fontSize:"30px",fontFamily:"Nasa21,sans-serif",colors:["#ffffff"]},background:{enabled:!1}},fill:{colors:["#fbc534","#2ee2fa"],type:"gradient",gradient:{shape:"light",shadeIntensity:0,opacityFrom:0,opacityTo:0,stops:[0,100],type:"vertical"}},responsive:[{breakpoint:9*window.innerHeight/16,options:{stroke:{size:2},legend:{fontSize:"10px"}}}]},series:[{name:"BTC",data:this.performance.BTCUSDT,type:"area"},{name:"Anco",data:this.performance.BTCUSDT_DCiA,type:"area"}],dashboardClicked:!1,aspect_ratio:1,u:1,min:0,max:0,totalHeightDiv:0,infoDisclaimerBool:!1,carteClickedFinished:!0,ipRestrited:!1,indexx:0,cartesUrl:[],realMobiledevice:!1,sortCardList:i18n.t("sortCardList"),sortCardListBool:[!0,!1,!1],plusInformationText:i18n.t("plusInformationText"),home:i18n.t("home"),homeBarShow:i18n.t("homeBarShow"),homeShow:[!0,!0,!0,!1,!0,!0],barname:"Accueil",lastbarname:"Accueil",ancobaltList:i18n.t("listTextHome"),listTextProjet:i18n.t("listTextProjet_"),textProjet:i18n.t("listTextProjet_")[0],textHome:i18n.t("listTextHome")[0],selectionTextProjet:null,nousrejoindre:!1,nousrejoindre_:!0,anco:null,ancotext:null,bottomBarClicked:!1,prevProjetEnd:!0,prevProjetStart:!1,text:i18n.t("ancotextInscriptionBis"),projetInfo:i18n.t("projetInfo"),projetInfoSelected:[i18n.t("projetInfo")[0]],FAQInfo:i18n.t("faqInfo"),FAQInfoSelected:[i18n.t("faqInfo")[0]],lastFAQInfoSelected:[i18n.t("faqInfo")[0]],FAQTitle:i18n.t("faqTitle"),FAQQuestionTitle:i18n.t("faqQuestionTitle"),FAQQuestionTitleSelected:i18n.t("faqQuestionTitleSelected"),lastFAQQuestionTitleSelected:i18n.t("lastFAQQuestionTitleSelected"),FAQReponse:i18n.t("faqReponse"),selectedFAQSection:[],indexFAQ:0,bulleprojetinfo:i18n.t("bulleprojetinfo"),srcProjetImage:i18n.t("srcProjetImage"),copieAVH:i18n.t("copieAVH"),bottomText:i18n.t("bottomText"),bottomTextTitle:i18n.t("bottomTextTitle"),bottomTextTitleBis:i18n.t("bottomTextTitleBis"),projetcopie1:null,projetcopie2:null,copieAVHInterval:null,index_copieAVH:0,lastProjetSelected:i18n.t("projetInfo")[0],bouton:null,bouton1:null,bouton2:null,interval:null,blink:null,hasClicked:!1,bottomDivText:!1,displayContact:!0,hasAnID:!1,formDiv:null,mdpIsOK:!1,confIsOK:!1,isOk:!1,init:!0,visiblePwd:!1,sectionOffre:i18n.t("sectionOffre"),offreList:[[["Basic",4.99,10]],[["Freemium",0,40],["Medium",19,30],["Premium",79,15]]],abonnementSelectionne:3,offreListBis:[],sectionSelectionne:"",showSelectionBar:!0,showOffreSelectionne:!1,sessUserId:null,userEmail:null,userStatus:0,numErreur:0,isLoading:!0,isConnected:!1,displayJoinus:!0,texteBouton:i18n.t("texteBouton"),texteHoverBouton:i18n.t("texteHoverBouton"),subscription:!1,maintenance:!1,Nom:"",Prenom:"",montantAlloue:0,windowsDCIA:0,tpdcia:0,codeParrainage:"",permissionSpot:!1,reloadDisplayAbonnement:!1,urlInvoice:"",prelevementAuto:"AUTO",cardType:"defaultCard",last4:"0000",staysConnected:!1,isConnected:!1,boutonConnexionClicked:!1,carteClicked:!1,indImagCarte:0,indImagCarteScroll:0,nextImagCartEnd:!0,prevImagCartEnd:!0,fullImageList:[],fullImageListLenghtSup1:!0,mobileDevice:!1,mobileDeviceBis:!1,moreClicked:!1,prevAccueilEnd:!0,prevAccueilStart:!0,plusInformationBool:!1,fullplusInfo:!1,plusInformationBot:[!1,!1,!1,!1],reduction:0,countDownDate:new Date("May 1, 2023 00:00:00").getTime(),counDownDateTextD:"0",counDownDateTextH:"0",counDownDateTextm:"0",counDownDateTexts:"0",parleDeNous:[["CRYPTO SMOOTH","images/ancobalt_CryptosmoothSmall.png","https://www.crypto-smooth.com/news-ancobalt-intelligence-artificielle/"],["ESEO Alumni","images/ancobalt_EseoAlumni.png","https://www.eseo-alumni.com/fr/article/rencontre-avec-guillaume-pons-et-dorian-sindji-fondateurs-d-ancobalt/25/05/2023/584"]]},methods:{plusInformationFunc:async function(e){if(0==this.fullplusInfo){this.fullplusInfo=!0;let n=document.getElementsByClassName("plusInformationDiv"),o=document.getElementsByClassName("plusInformationDivText");3==e?(n[e].style.justifyContent="space-between",o[e].style.justifyContent="flex-start",o[e].style.marginBottom="0.5em",v.mobileDevice?(o[e].style.width="95%",o[e].style.marginLeft=""):(o[e].style.width="40%",o[e].style.marginLeft="2.5%")):Vue.set(this.plusInformationBot,3,!1);for(t=0;t"+this.$i18n.t("plusInformationText")[t][2]+""):(n[t].style.width="0%",n[t].style.height="0%");await sleep(250);for(var t=0;te.json()).then(e=>this.performance=e).then(()=>v.updateChart())},getImageListCarte:function(){fetch("./cartes/pathImage.json").then(e=>e.json()).then(e=>this.cartesUrl=e.array.reverse())},retourOffre:function(){document.getElementById("offreDCIA").innerHTML="",this.offreListBis=[],this.showOffreSelectionne=!1,this.showSelectionBar=!0},selectionOffre:async function(e){v.montantAlloue=Math.floor(500),v.montantAlloue>=500?v.min=500:v.min=0,v.valeurMax=1e4,v.prixAbo=Math.ceil((1.9-Math.log10(v.montantAlloue)/3.7)/100*v.montantAlloue),v.anco=null,this.showSelectionBar=!1,this.sectionSelectionne=e,await sleep(50),this.showOffreSelectionne=!0,await sleep(10),document.getElementById("offreDCIA").innerHTML="
"+v.$i18n.t("oneDATittleDCIAPremium")+'
'+v.$i18n.t("boutonAbo")+"
",document.getElementById("montantA").addEventListener("keyup",function(){v.montantAlloue=document.getElementById("montantA").value,v.montantAlloue<500?v.montantAlloue=500:v.montantAlloue>1e4&&(v.montantAlloue=1e4,document.getElementById("montantA").value=v.montantAlloue),document.getElementById("montantAlloue").value=v.montantAlloue,v.prixAbo=Math.ceil((1.9-Math.log10(v.montantAlloue)/3.7)/100*v.montantAlloue),document.getElementById("prixAbo").innerHTML=v.prixAbo}),document.getElementById("montantA").addEventListener("blur",function(){v.montantAlloue=document.getElementById("montantA").value,v.montantAlloue<500?(v.montantAlloue=500,document.getElementById("montantA").value=v.montantAlloue):v.montantAlloue>v.valeurMax&&(v.montantAlloue=v.valeurMax,document.getElementById("montantA").value=v.montantAlloue),document.getElementById("montantAlloue").value=v.montantAlloue,v.prixAbo=Math.ceil((1.9-Math.log10(v.montantAlloue)/3.7)/100*v.montantAlloue),document.getElementById("prixAbo").innerHTML=v.prixAbo});abonnementSelected("Sage");document.getElementsByClassName("range")[0],v.valeurMax;for(var t=0;t=2?v.index_copieAVH=0:v.index_copieAVH=v.index_copieAVH+1},3e3))}}},updateChart:function(){let e=Math.max.apply(Math,[Math.abs(Math.max.apply(Math,v.performance.BTCUSDT_DCiA)),Math.abs(Math.min.apply(Math,v.performance.BTCUSDT_DCiA))]),t=Math.max.apply(Math,[Math.abs(Math.max.apply(Math,v.performance.BTCUSDT)),Math.abs(Math.min.apply(Math,v.performance.BTCUSDT))]),n=Math.max.apply(Math,[e,t]);this.chartOptions={chart:{id:"vuechart-example",dropShadow:{enabled:!0,top:5,left:0,blur:3,color:"#000",opacity:.15},redrawOnParentResize:!0,redrawOnWindowResize:!0,width:"100%",height:"100%",toolbar:{show:!1}},legend:{fontSize:"15px",offsetY:30,labels:{colors:"#ffffff",useSeriesColors:!1},markers:{fillColors:["#fbc534","#2ee2fa"]}},tooltip:{theme:!1,x:{show:!1},y:{formatter:function(e,{series:t,seriesIndex:n,dataPointIndex:o,w:i}){return e.toString()+"%"}},style:{fontSize:"20px"},fillSeriesColor:!0},xaxis:{type:"datetime",categories:this.performance.Date,labels:{show:!0,rotate:0,rotateAlways:!0,hideOverlappingLabels:!0,showDuplicates:!1,style:{colors:"#ffffff"},format:"MMM yy"},axisBorder:{show:!1},axisTicks:{show:!1},crosshairs:{show:!1},tooltip:{enabled:!1}},colors:["#fbc534","#2ee2fa"],yaxis:[{seriesName:"Profit & Loss USDT",show:!1,min:-n,max:n,crosshairs:{show:!1}},{min:-n,max:n,seriesName:"Profit & Loss BTC",show:!1,crosshairs:{show:!1}}],grid:{show:!1,xaxis:{lines:{show:!1}},yaxis:{lines:{show:!1}}},stroke:{curve:"smooth",colors:["#fbc534","#2ee2fa"],width:4},markers:{size:0,colors:["#fbc534","#2ee2fa"],strokeWidth:0,strokeOpacity:0,fillOpacity:0},dataLabels:{enabled:!1,offsetY:-10,formatter:function(e,t){return e.toFixed(2)+"%"},style:{fontSize:"30px",fontFamily:"Nasa21,sans-serif",colors:["#ffffff"]},background:{enabled:!1}},fill:{colors:["#fbc534","#2ee2fa"],type:"gradient",gradient:{shape:"light",shadeIntensity:0,opacityFrom:0,opacityTo:0,stops:[0,100],type:"vertical"}},responsive:[{breakpoint:9*window.innerHeight/16,options:{stroke:{size:2},legend:{fontSize:"10px"}}}]},this.series=[{name:'Ancobalt',data:this.performance.BTCUSDT,type:"area"},{name:'Ancobalt',data:this.performance.BTCUSDT_DCiA,type:"area"}]},displayBoutonJoinus:async function(){if(this.nousrejoindre=!1,this.nousrejoindre_=!0,this.bouton1=document.getElementById("joinus_"),v.texteBouton=v.$i18n.t("creerCompte"),1==v.isConnected){for(0==v.userStatus?v.texteBouton=v.$i18n.t("addInfo"):1==v.userStatus?v.texteBouton=v.$i18n.t("definir"):2==v.userStatus?v.texteBouton=v.$i18n.t("ajout"):-1==v.userStatus&&(v.texteBouton=v.$i18n.t("acces")),0==v.userStatus?v.texteHoverBouton=v.$i18n.t("inscritpion"):1==v.userStatus?v.texteHoverBouton=v.$i18n.t("noMDP"):2==v.userStatus?v.texteHoverBouton=v.$i18n.t("noApiKey"):-1==v.userStatus?v.texteHoverBouton=v.$i18n.t("dashboard"):v.texteHoverBouton=v.$i18n.t("nousRejoindre");null==this.bouton1;)try{this.bouton1=document.getElementById("joinus_"),await sleep(1)}catch(e){await sleep(1)}this.bouton1.addEventListener("mouseenter",function(e){v.bouton1.innerHTML=v.texteBouton},{passive:!0}),this.bouton1.addEventListener("mouseleave",function(e){v.bouton1.innerHTML=v.texteHoverBouton},{passive:!0}),this.bouton1.style.display="",this.bouton1.style.setProperty("opacity","1.0")}else this.bouton1.style.display="none"},boutonConnexionClickedfn:async function(){try{document.getElementById("displayAll").style.filter="",document.getElementById("displayAll").style.webkitFilter=""}catch(e){}this.displayContact=!1,this.bottomDivText=!1,this.boutonConnexionClicked=!0,this.offreListBis=[],this.showOffreSelectionne=!1,this.showSelectionBar=!0,this.bottomDivText=!1,await sleep(50),this.displayContact=!1,this.homeShow=[!1,!1,!1,!1,!1,!1],this.lastbarname="",clearInterval(this.blink),clearInterval(v.copieAVHInterval),this.projetcopie1=null,this.projetcopie2=null,this.hasClicked=!1,this.selectionTextProjet=null,this.nousrejoindre=!1,this.mobileDevice&&this.extendHomebar()},extendFAQQection:async function(e=!1,t=v.FAQInfo[0]){this.selectedFAQSection=[this.FAQTitle[this.indexFAQ][0]],"100%"==document.getElementById("ListFAQContent").style.height?(document.getElementById("ListFAQContent").style.height="",document.getElementById("ListFAQContent").style.justifyContent="",document.getElementById("ListFAQContent").style.paddingTop="",this.selectedFAQSection=this.lastFAQQuestionTitleSelected,document.getElementById("extendquestionLigneFAQ").innerText="+"):0==e&&(document.getElementById("ListFAQContent").style.height="100%",document.getElementById("ListFAQContent").style.justifyContent="flex-start",document.getElementById("ListFAQContent").style.paddingTop="1em",this.selectedFAQSection=this.FAQTitle[this.indexFAQ],document.getElementById("extendquestionLigneFAQ").innerText="-")},extendFAQSection:async function(e=!1){"70%"==document.getElementById("mainFAQ").style.height?(document.getElementById("mainFAQ").style.height="",document.getElementById("FAQContent").style.height="",document.getElementById("FAQquestionTitle").style.opacity="",this.FAQInfoSelected=this.lastFAQInfoSelected,document.getElementById("extendFAQSection").innerText="+"):0==e&&(document.getElementById("mainFAQ").style.height="70%",document.getElementById("FAQContent").style.height="1%",document.getElementById("FAQquestionTitle").style.opacity="0",this.FAQInfoSelected=this.FAQInfo,document.getElementById("extendFAQSection").innerText="-")},nextProjetSection:async function(e){let t=this.projetInfo.indexOf(this.projetInfoSelected[0]);"next"==e&&t+10&&(this.projetInfoSelected=[this.projetInfo[t-1]],this.prevProjetStart=t-1!=0,this.prevProjetEnd=!0),this.textProjetChange(this.projetInfoSelected[0])},nextAccueilSection:async function(e){let t=v.ancobaltList.indexOf(v.textHome);"next"==e?v.u=t>=v.ancobaltList.length-1?0:t+1:"previous"==e&&(v.u=t<=0?v.ancobaltList.length-1:t-1),changeHomeText(this.ancobaltList[v.u],clicked=!1)},extendHomebar:async function(e=!1){let t=document.getElementsByClassName("nameBar"),n=document.getElementsByClassName("nameBarDiv");if("70%"==document.getElementById("homeBar").style.height){this.homeBarShow=v.$i18n.t("homeBarShow"),document.getElementById("homeBar").style.backgroundColor="",document.getElementById("homeBar").style.height="",document.getElementById("homeBar").style.borderRadius="",document.getElementById("homeBar").style.flexWrap="",document.getElementById("homeBar").style.width="",document.getElementById("homeBar").style.marginTop="",document.getElementById("homeBar").style.marginRight="",document.getElementById("menuBurger").style.display="",document.getElementById("menuBurgerBack").style.display="",document.getElementById("menuBurgerBack").style.opacity="";for(let e of document.getElementsByClassName("nameBarDiv"))e.style.height="",e.style.width="",e.style.opacity="",e.style.display="";try{document.getElementById("boutonInscription").style.height="",document.getElementById("boutonInscription").style.width="",document.getElementById("boutonInscription").style.opacity="",document.getElementById("boutonInscription").style.display="",document.getElementById("boutonConnexion").style.height="",document.getElementById("boutonConnexion").style.width="",document.getElementById("boutonConnexion").style.opacity="",document.getElementById("boutonConnexion").style.display=""}catch(e){}if(this.mobileDevice)try{document.getElementById("boutonAccueil").style.height="",document.getElementById("boutonAccueil").style.width="",document.getElementById("boutonAccueil").style.opacity="",document.getElementById("boutonAccueil").style.display="",document.getElementById("boutonDeconnexion").style.height="",document.getElementById("boutonDeconnexion").style.width="",document.getElementById("boutonDeconnexion").style.opacity="",document.getElementById("boutonDeconnexion").style.display=""}catch(e){}document.getElementById("EdcCGVU").style.height="",document.getElementById("EdcCGVU").style.width="",document.getElementById("EdcCGVU").style.opacity="";for(let e of t)e.style.marginLeft="",e.style.marginRight="",e.style.padding="";for(let e of n)e.style.marginLeft="",e.style.marginRight="";this.moreClicked=!1,window.removeEventListener("click",this.eventClickResizeHomeBar)}else if(0==e){document.getElementById("menuBurger").style.display="none",this.homeBarShow=v.$i18n.t("home"),document.getElementById("homeBar").style.backgroundColor="rgb(25 25 25 / 95%)",document.getElementById("homeBar").style.height="70%",document.getElementById("homeBar").style.width="100%",document.getElementById("homeBar").style.marginTop="0",document.getElementById("homeBar").style.marginRight="0",document.getElementById("homeBar").style.width="100%",document.getElementById("homeBar").style.borderRadius="0px 0px 40px 40px",document.getElementById("homeBar").style.flexWrap="wrap";for(let e of document.getElementsByClassName("nameBarDiv"))e.style.display="flex";try{document.getElementById("boutonInscription").style.display="flex",document.getElementById("boutonConnexion").style.display="flex"}catch(e){}if(this.mobileDevice)try{document.getElementById("boutonAccueil").style.display="flex",document.getElementById("boutonDeconnexion").style.display="flex"}catch(e){}for(let e of t)e.style.marginLeft="0.5em",e.style.marginRight="0.5em";for(let e of n)e.style.marginLeft="0.5em",e.style.marginRight="0.5em";this.moreClicked=!0,await sleep(100);for(let e of document.getElementsByClassName("nameBarDiv"))e.style.height="fit-content",e.style.width="auto",e.style.opacity="1";document.getElementById("menuBurgerBack").style.display="initiale",document.getElementById("menuBurgerBack").style.opacity="1";try{document.getElementById("boutonInscription").style.height="auto",document.getElementById("boutonInscription").style.width="auto",document.getElementById("boutonInscription").style.opacity="1",document.getElementById("boutonConnexion").style.height="auto",document.getElementById("boutonConnexion").style.width="auto",document.getElementById("boutonConnexion").style.opacity="1"}catch(e){}if(this.mobileDevice)try{document.getElementById("boutonAccueil").style.height="auto",document.getElementById("boutonAccueil").style.width="auto",document.getElementById("boutonAccueil").style.opacity="1",document.getElementById("boutonDeconnexion").style.height="auto",document.getElementById("boutonDeconnexion").style.width="auto",document.getElementById("boutonDeconnexion").style.opacity="1"}catch(e){}document.getElementById("EdcCGVU").style.height="2em",document.getElementById("EdcCGVU").style.width="100%",document.getElementById("EdcCGVU").style.opacity="1",window.addEventListener("click",this.eventClickResizeHomeBar)}},homebarClicked:async function(e,t=!1){try{document.getElementById("displayAll").style.filter="",document.getElementById("displayAll").style.webkitFilter=""}catch(e){}try{document.getElementById("ancoSpeakHome").style.opacity=""}catch(e){}this.plusInformationBot=[!1,!1,!1,!1],this.fullplusInfo=!1,this.boutonConnexionClicked=!1,this.nousrejoindre=!1,this.displayContact=!0,this.plusInformationBool=!1,await sleep(5);try{document.getElementById("Contact").style.filter="",document.getElementById("Contact").style.webkitFilter=""}catch(e){}if(this.extendHomebar(fromHomeClicked=!0),e!=this.lastbarname||t){this.offreListBis=[],this.showOffreSelectionne=!1,this.showSelectionBar=!0,this.bottomDivText=!1,await sleep(50),this.displayContact=!0,this.homeShow=[!0,!0,!0,!1,!0,!0];let t=this.home.indexOf(e);await sleep(50);for(var n=document.getElementById(homebarFr[t]).getBoundingClientRect().top,o=(document.getElementById("displayAll").scrollTop,document.getElementById(homebarFr[t]).getBoundingClientRect().top,parseInt(Math.abs(document.getElementById(homebarFr[t]).getBoundingClientRect().top)/100)),i=0;i<=100;i++)n<0?document.getElementById("displayAll").scrollTop-=o:document.getElementById("displayAll").scrollTop+=o,await sleep(1);document.getElementById("displayAll").scrollTop+=document.getElementById(homebarFr[t]).getBoundingClientRect().top,this.barname=e,this.lastbarname=this.barname,clearInterval(this.blink),clearInterval(v.copieAVHInterval);for(const e of document.getElementsByTagName("a"))e.removeAttribute("style");for(let t of v.homeBarShow)try{t==e?(document.getElementById(e).style.opacity=1,document.getElementById(e+"Bar_").style.opacity=1,v.mobileDeviceBis?(document.getElementById(e+"Bar_").style.top="-1em",document.getElementById(e+"Bar_image").style.top="-1em"):(document.getElementById(e+"Bar_").style.left="40%",document.getElementById(e+"Bar_image").style.left="40%"),document.getElementById(e+"Bar_image").style.opacity=1):(document.getElementById(t+"Bar_").style.opacity="",document.getElementById(t+"Bar_").style.left="",document.getElementById(t+"Bar_image").style.left="",document.getElementById(t+"Bar_").style.top="",document.getElementById(t+"Bar_image").style.top="",document.getElementById(e+"Bar_image").style.opacity="")}catch(e){}v.home.indexOf(e);let l=document.getElementsByClassName("nameBarDiv");for(let e of l)e.children[0].style.background="",e.children[0].style.color="";try{document.getElementById(e+"Bar_").style.opacity=1,document.getElementById(e+"Bar_image").style.opacity=1,v.mobileDeviceBis?(document.getElementById(e+"Bar_").style.top="-1em",document.getElementById(e+"Bar_image").style.top="-1em"):(document.getElementById(e+"Bar_").style.left="40%",document.getElementById(e+"Bar_image").style.left="40%")}catch(e){}if(this.projetcopie1=null,this.projetcopie2=null,this.hasClicked=!1,this.selectionTextProjet=null,e!==v.$i18n.t("home")[0]){if(null!=this.bouton1){this.bouton1.style.display="none";try{setTimeout(()=>this.bouton1.style.opacity="0",50)}catch(e){}}if(this.bouton1=document.getElementById("joinus_"),e==v.$i18n.t("home")[5]){try{this.bouton1.style.display="none"}catch(e){}this.selectedFAQSection=this.FAQTitle[0];for(const e of document.getElementsByClassName("textLigneFAQ"))e.style.transition="all 0.5s",e.style.webkitTransition="all 0.5s";await this.textFAQChange()}if(e==v.$i18n.t("home")[2]&&this.updateChart(),e==v.$i18n.t("home")[3]&&(this.carteClickedFinished=!0,await sleep(5),this.sortCardListBool=[!0,!1,!1],document.getElementsByClassName("sortCarteName")[0].style.color=""),e==v.$i18n.t("home")[1]){for(this.displayJoinus=!0;null==this.selectionTextProjet;)this.selectionTextProjet=document.getElementById("ancotextProjet"),await sleep(5);this.textProjet=this.listTextProjet[0],v.lastProjetSelected=v.$i18n.t("projetInfo")[0],this.mobileDevice||(document.getElementById(v.lastProjetSelected).style.textDecorationColor="rgba(240,240,240,1)"),printLetterByLetter(this.bulleprojetinfo[0],10,this.selectionTextProjet)}}else 1==this.isConnected&&this.displayBoutonJoinus()}else 0!=this.isConnected&&-1!=this.userStatus||(document.getElementById("joinus_").style.display="none");try{await v.selectionOffre("")}catch(e){}this.$route.path!="/"+this.barname&&0==this.init&&this.$router.push(this.barname)},nousRejoindreClick:async function(e=!1){try{document.getElementById("displayAll").style.filter="",document.getElementById("displayAll").style.webkitFilter=""}catch(e){}this.lastbarname="",this.homeShow=[!1,!1,!1,!1,!1,!1],this.displayContact=!1,this.boutonConnexionClicked=!1,this.barname="",this.bottomDivText=!1;try{this.bouton1=document.getElementById("joinus_"),this.bouton1.style.setProperty("opacity","0.0"),this.bouton1.style.display="none"}catch(e){}this.homeShow=[!1,!1,!1,!1,!1,!1],this.nousrejoindre=!0;try{this.bouton=document.getElementById("joinus"),this.anco=document.getElementById("ancogif"),this.contact=document.getElementById("Contact")}catch(e){}try{document.getElementById("formdiv").style.filter="",document.getElementById("formdiv").style.webkitFilter=""}catch(e){}let t=0;for(;(null==this.anco||null==this.bouton)&&t<5;){try{this.anco=document.getElementById("ancogif"),this.bouton=document.getElementById("joinus")}catch(e){}await sleep(50),t+=1}this.ancotext=document.getElementById("ancotext"),clearInterval(v.copieAVHInterval),clearInterval(v.interval),v.interval=null,v.copieAVHInterval=null;try{printLetterByLetter(this.text,10,v.ancotext)}catch(e){}try{document.getElementsByName("date_naissance")[0].value="2000-01-01"}catch(e){}try{null!==this.userEmail&&(document.getElementsByName("mail")[0].value=this.userEmail)}catch(e){}if(this.formDiv=document.getElementById("formdiv"),1==v.userStatus&&await displayPasswordDiv(),2==v.userStatus&&await displayKeySetter(),3==v.userStatus&&await displayAbonnement(),-1==v.userStatus)dashboard();else{clearInterval(v.blink);try{this.blink=null,this.blink=setInterval(function(){setTimeout(()=>v.anco.src="./images/AncoLook.png",100),v.anco.src="./images/AncoBase.png"},6e3)}catch(e){}if(this.nousrejoindre_=!1,0==this.hasClicked){try{this.bouton.addEventListener("mouseenter",hoverOn),this.bouton.addEventListener("mouseout",hoverOut)}catch(e){}this.hasClicked=!0}}0==v.userStatus&&(onFocus(0),window.matchMedia("(orientation: portrait)").matches?(document.getElementById("formdiv").style.gridTemplateColumns="repeat(2, 1fr)",document.getElementById("formdiv").style.gridTemplateRows="repeat(9, 3fr)",document.getElementById("ancotext").style.height="min(10em,15vmin)"):(document.getElementById("formdiv").style.gridTemplateColumns="repeat(3, 1fr)",document.getElementById("formdiv").style.gridTemplateRows="repeat(5, 3fr)",document.getElementById("ancotext").style.height="min(10em,15vmin)"))},exitformAA:function(){let e=this.lastbarname;if("en"==v.$i18n.locale){let t=v.$i18n.t("home").indexOf(this.lastbarname);e=urlFr[t]}if(-1!=v.homeShow.indexOf(!0)){document.getElementById("displayAll").style.filter="",document.getElementById("displayAll").style.webkitFilter="";try{document.getElementById("ancoSpeakHome").style.filter="",document.getElementById("ancoSpeakHome").style.webkitFilter=""}catch(e){}}else v.nousrejoindre?(document.getElementById("formdiv").style.filter="",document.getElementById("formdiv").style.webkitFilter=""):v.boutonConnexionClicked&&(document.getElementById("ecranConnexion").style.filter="",document.getElementById("ecranConnexion").style.webkitFilter="");this.bottomDivText=!1,this.$route.path!="/"+this.lastbarname&&this.$router.push(this.lastbarname)},exitform:function(){0==this.subscription&&0==this.maintenance&&1==this.hasAnID?(this.hasClicked=!1,this.displayContact=!0,this.bottomDivText=!1,document.getElementById("homeBar").style.opacity="",document.getElementById("displayAll").style.display="",document.getElementById("displayAll").style.opacity="",this.homebarClicked(this.lastbarname,!0),setTimeout(()=>this.contact.style.opacity="1",50),this.bouton1.style.display="",setTimeout(()=>this.bouton1.style.opacity="1",50),this.contact=document.getElementById("Contact"),this.contact.style.opacity="1",this.contact.style.display=""):1==this.subscription&&0==this.maintenance?(document.getElementById("formdiv").style.filter="",document.getElementById("formdiv").style.webkitFilter="",this.bottomDivText=!1,this.subscription=!1):0==this.subscription&&1==this.maintenance&&1==this.hasAnID?(document.getElementById("waitPAGE").style.filter="",document.getElementById("waitPAGE").style.webkitFilter="",document.getElementById("waitPAGE").style.opacity="1",document.getElementById("ancoAccueilWait").style.filter="",document.getElementById("ancoAccueilWait").style.webkitFilter="",document.getElementById("ancoAccueilWait").style.opacity="1.0",document.getElementById("Contact").style.filter="",document.getElementById("Contact").style.webkitFilter="",this.bottomDivText=!1,this.subscription=!1):-1!=this.userStatus&&1==this.maintenance&&1==this.hasAnID?(document.getElementById("formdiv").style.filter="",document.getElementById("formdiv").style.webkitFilter="",this.bottomDivText=!1,this.subscription=!1):0==this.hasAnID&&1==this.maintenance&&(document.getElementById("bottomText").style.color="",document.getElementById("Contact").style.filter="",document.getElementById("Contact").style.webkitFilter="",document.getElementById("ancoAccueil").style.filter="",document.getElementById("ancoAccueil").style.webkitFilter="",document.getElementById("ancobulleProjet2").style.filter="",document.getElementById("ancobulleProjet2").style.webkitFilter="",document.getElementById("ancotextProjet2").style.filter="",document.getElementById("ancotextProjet2").style.webkitFilter="",document.getElementById("logLogo").style.filter="",document.getElementById("logLogo").style.webkitFilter="",document.getElementById("logDiv").style.filter="",document.getElementById("logDiv").style.webkitFilter="",this.bottomDivText=!1,this.subscription=!1)},bottomBarClickAAA:async function(e,t=!0){let n=this.lastbarname;if("en"==v.$i18n.locale){let e=v.$i18n.t("home").indexOf(this.lastbarname);n=urlFr[e]}if(v.mobileDevice&&this.extendHomebar(fromHomeClicked=!0),-1!=v.homeShow.indexOf(!0)){document.getElementById("displayAll").style.filter="blur(25px)",document.getElementById("displayAll").style.webkitFilter="blur(25px)";try{document.getElementById("ancoSpeakHome").style.filter="blur(25px)",document.getElementById("ancoSpeakHome").style.webkitFilter="blur(25px)"}catch(e){}}else v.nousrejoindre?(document.getElementById("formdiv").style.filter="blur(25px)",document.getElementById("formdiv").style.webkitFilter="blur(25px)"):v.boutonConnexionClicked&&(document.getElementById("ecranConnexion").style.filter="blur(25px)",document.getElementById("ecranConnexion").style.webkitFilter="blur(25px)");this.bottomDivText=!0,await sleep(50),t&&(index=this.bottomTextTitleBis.indexOf(e),e=this.bottomText[index]),document.getElementById("bottomText").innerHTML=await readTextFile("./text/"+e+".txt")},bottomBarClick:async function(e){this.subscription=!1;try{setTimeout(()=>this.bouton1.style.opacity="0",50),this.bouton1.style.display="none"}catch(e){}this.displayContact=!1,this.nousrejoindre=!1,this.barname="",this.bottomDivText=!0,await sleep(50);for(;null==document.getElementById("bottomText");)await sleep(50);this.nousrejoindre_=!1,index=this.bottomTextTitle.indexOf(e),e=this.bottomText[index],document.getElementById("bottomText").innerHTML=await readTextFile("./text/"+e+".txt")},bottomBarClickBis:async function(e,t=!0){this.subscription=!0,v.hasAnID=!0,this.bottomDivText=!0,await sleep(50);let n=0;for(;n<3&&null==document.getElementById("bottomText");)await sleep(50),n+=1;document.getElementById("bottomText").style.color="rgb(255,255,255)",document.getElementById("bottomText").style.fontWeight="bolder",document.getElementById("bottomText").style.lineHeight="2em",document.getElementById("bottomDivText").style.zIndex="20",document.getElementById("formdiv").style.filter="blur(20px)",document.getElementById("formdiv").style.webkitFilter="blur(20px)",1==t&&(index=this.bottomTextTitle.indexOf(e),e=this.bottomText[index]),document.getElementById("bottomText").innerHTML=await readTextFile("./text/"+e+".txt")},bottomBarClickMaintenance:async function(e){this.bottomDivText=!0,await sleep(50),this.subscription=!1;let t=0;for(;t<3&&null==document.getElementById("bottomText");)await sleep(50),t+=1;document.getElementById("Contact").style.filter="blur(10px)",document.getElementById("Contact").style.webkitFilter="blur(10px)",document.getElementById("waitPAGE").style.filter="blur(10px)",document.getElementById("waitPAGE").style.webkitFilter="blur(10px)",document.getElementById("waitPAGE").style.opacity="0.5",document.getElementById("ancoAccueilWait").style.filter="blur(10px)",document.getElementById("ancoAccueilWait").style.webkitFilter="blur(10px)",document.getElementById("ancoAccueilWait").style.opacity="0.5",index=this.bottomTextTitle.indexOf(e),e=this.bottomText[index],document.getElementById("bottomText").innerHTML=await readTextFile("./text/"+e+".txt")},bottomBarClickMaintenanceConnexion:async function(e){this.bottomDivText=!0,await sleep(50);let t=0;for(;t<3&&null==document.getElementById("bottomText");)await sleep(50),t+=1;document.getElementById("bottomText").style.color="rgb(255 255 255)",document.getElementById("bottomText").style.fontWeight="",document.getElementById("bottomText").style.lineHeight="2em",document.getElementById("Contact").style.filter="blur(10px)",document.getElementById("ancoAccueil").style.filter="blur(10px)",document.getElementById("ancobulleProjet2").style.filter="blur(10px)",document.getElementById("ancotextProjet2").style.filter="blur(10px)",document.getElementById("logLogo").style.filter="blur(10px)",document.getElementById("logDiv").style.filter="blur(10px)",document.getElementById("Contact").style.webkitFilter="blur(10px)",document.getElementById("ancoAccueil").style.webkitFilter="blur(10px)",document.getElementById("ancobulleProjet2").style.webkitFilter="blur(10px)",document.getElementById("ancotextProjet2").style.webkitFilter="blur(10px)",document.getElementById("logLogo").style.webkitFilter="blur(10px)",document.getElementById("logDiv").style.webkitFilter="blur(10px)",index=this.bottomTextTitle.indexOf(e),e=this.bottomText[index],document.getElementById("bottomText").innerHTML=await readTextFile("./text/"+e+".txt")},handleKeyDown(e){this.mdpValue=document.getElementsByTagName("input")[0].value,this.mdpconfValue=document.getElementsByTagName("input")[1].value,v.anco=document.getElementById("ancogif"),v.ancotext=document.getElementById("ancotext"),v.bouton2=document.getElementById("joinus"),inputVal=e.target.name,this.charList=[".","!","?","$","*","#","&","@","_","-"],this.text="";var t=/[!-\/:-@[-` {-~]/;if("mdp"==inputVal)if(this.mdpValue.length>=6){let e=this.mdpValue;for(const t of this.charList)this.mdpValue.includes(t)&&(this.mdpIsOK=!0),e=e.split(t).join("");t.test(e)?(this.mdpIsOK=!1,this.text=v.$i18n.t("mdpCaraNonAuth")):this.mdpIsOK?(this.mdpValue.length<10?this.text=v.$i18n.t("mdpSecurise"):this.mdpValue.length<14?this.text=v.$i18n.t("mdpSecuriseMax"):this.mdpValue.length>=14&&(this.text=v.$i18n.t("mdpSecuriseMaxBis")),this.mdpValue==this.mdpconfValue?(this.confIsOK=!0,v.bouton2.style.background="#09ff00"):(this.confIsOK=!1,v.bouton2.style.background="#ff9259",this.text=v.$i18n.t("mdpDifferent"))):this.text=v.$i18n.t("mdpErreurCara")}else this.mdpIsOK=!1,this.text=v.$i18n.t("mdpCaralongueur");else"confmdp"==inputVal&&(this.mdpconfValue.length==this.mdpValue.length?this.mdpconfValue==this.mdpValue?(this.confIsOK=!0,this.mdpIsOK?(this.text=v.$i18n.t("mdpEnRegle"),v.bouton2.style.background="#09ff00"):this.text=v.$i18n.t("mdpIdentiqueInvalide")):(this.confIsOK=!1,this.text=v.$i18n.t("mdpDifferent_")):(this.confIsOK=!1,this.text=v.$i18n.t("mdpTailleDifferente")));clearInterval(v.copieAVHInterval),clearInterval(v.interval),v.interval=null,v.copieAVHInterval=null,this.ancotext.innerHTML=this.text,this.mdpIsOK&&this.confIsOK?v.anco.src="./images/AncoSmile.png":v.bouton2.style.background="#ff9259"},handleKeyDown2(e){64==document.getElementsByTagName("input")[0].value.length?document.getElementsByTagName("input")[0].style.backgroundColor="#42f581":document.getElementsByTagName("input")[0].style.backgroundColor="#f59c42",64==document.getElementsByTagName("input")[1].value.length?document.getElementsByTagName("input")[1].style.backgroundColor="#42f581":document.getElementsByTagName("input")[1].style.backgroundColor="#f59c42"},getInfoPaiement:async function(){let e='{ "uuid":"'+v.sessUserId+'"}';var t={url:"https://us-central1-ancobaltproject.cloudfunctions.net/getMoyenPaiement",method:"POST",timeout:0,data:JSON.parse(e),dataType:"json",async:!0};$.ajax(t).done(async function(e){v.isLoading=!1,v.cardType=e.cardType,v.last4=e.last4}).fail(async function(){reponse=400})}}}),x=setInterval(function(){var e=(new Date).getTime(),t=v.countDownDate-e;v.counDownDateTextD=Math.floor(t/864e5),v.counDownDateTextH=Math.floor(t%864e5/36e5),v.counDownDateTextm=Math.floor(t%36e5/6e4),v.counDownDateTexts=Math.floor(t%6e4/1e3),t<0&&(clearInterval(x),v.counDownDateTextD=0,v.counDownDateTextH=0,v.counDownDateTextm=0,v.counDownDateTexts=0)},1e3);window.onload=async function(){let e=window.location.pathname.slice(1);if(v.getPerformance(),e==v.$i18n.t("home")[0]||e==v.$i18n.t("home")[1]||e==v.$i18n.t("home")[2]||e==v.$i18n.t("home")[3]||e==v.$i18n.t("home")[4]||e==v.$i18n.t("home")[5])startPage(e);else if(e==v.$i18n.t("bottomTextTitle")[0][1]||e==v.$i18n.t("bottomTextTitle")[1][1]){let t="";e==v.$i18n.t("bottomTextTitle")[0][1]&&(t=v.$i18n.t("bottomTextTitle")[0][0]),e==v.$i18n.t("bottomTextTitle")[1][1]&&(t=v.$i18n.t("bottomTextTitle")[1][0]),v.bottomBarClickedFn(),v.bottomBarClickAAA(t)}else startPage(v.$i18n.t("home")[0]);resize_(),addEventListener("popstate",e=>backHistory()),v.isLoading=!1};