console.log("embedderCalendly 0.2");var embedC_ready=false;var calendlyScriptLoaded=false;var calendlyScriptObj=null;function embedderCalendly(e,ambiente) {} function loadCalendlyScript() {function loadJS(file) {calendlyScriptLoaded=true;var jsElm=document.createElement("script");calendlyScriptObj=jsElm;jsElm.type="application/javascript";jsElm.src=file;document.body.appendChild(jsElm);console.log("Carreguei o script "+file);} if(calendlyScriptLoaded) {calendlyScriptObj.remove();calendlyScriptObj=null;calendlyScriptLoaded=false;} loadJS("https://assets.calendly.com/assets/external/widget.js")} embedderCalendly.prototype.reenter=function() {} function criaEmbedWindowCalendly(path,titulo="Marque sua reunião",altura=665,largura=320) {var conteudo='
';console.log(conteudo);const janela=`
`+titulo+`
`;$("#interfaceHyper").append(janela);$("#embedWindowC .janelaConteudo").html(conteudo);embedC_ready=true;} function embedCalendly(path,titulo="Marque sua reunião",altura=665,largura=320) {var conteudo='
';if((env.ismobile())||(env.renderer.xr.isPresenting)) {openLink("https://calendly.com/"+path);return(false);} if(!embedC_ready) {criaEmbedWindowCalendly(path,titulo,altura,largura);} else {$("#embedWindowC").css("height",altura+"px");$("#embedWindowC").css("width",largura+"px");$("#embedWindowC .janelaTitle").html(titulo);$("#embedWindowC .janelaConteudo").html(conteudo);$("#embedWindowC").show();} loadCalendlyScript();}