Hello world!

Welcome to WordPress. This is your first post. Edit or delete it, then start writing!

/* Eurofacial — Scripts (minified production). Source: 03-eurofacial-scripts.js */ !function(){"use strict";function e(){window.dataLayer.push(arguments)}function t(e){var t=e.id||e.getAttribute("data-form-name")||"form",n=(e.querySelector("[type=email]")||{}).value,o=(e.querySelector("[type=tel]")||{}).value,a=(e.querySelector('[id$="-nome"]')||{}).value,i=(e.querySelector('[id$="-convenio"]')||{}).value,r=(e.querySelector('[id$="-motivo"]')||{}).value;window.EF.trackLead({form_name:t,lead_convenio:i,lead_motivo:r,email:n,phone:o,first_name:a})}function n(){if(window.EF_CONFIG.useCustomCursor&&window.matchMedia("(hover: hover) and (pointer: fine)").matches&&!window.matchMedia("(prefers-reduced-motion: reduce)").matches&&!document.querySelector(".ef-cursor")){document.documentElement.classList.add("has-custom-cursor");var e=document.createElement("div");e.className="ef-cursor",e.setAttribute("data-state","idle"),e.innerHTML='
',document.body.appendChild(e);var t=-100,n=-100,o=-100,a=-100,i=0,r=0,d=0;document.addEventListener("pointermove",function(o){t=o.clientX,n=o.clientY,e.classList.contains("is-ready")||e.classList.add("is-ready");var a,c=o.target;if(c instanceof Element){var s=c.closest("a, button, [role='button'], select, [data-cursor='hover']"),l=c.closest("input:not([type='checkbox']):not([type='radio']):not([type='submit']):not([type='button']), textarea, [contenteditable='true']");a=l?"text":s?"hover":"idle",e.getAttribute("data-state")!==a&&e.setAttribute("data-state",a)}var u=performance.now(),f=Math.hypot(o.clientX-r,o.clientY-d);if(u-i>120&&f>22){var p=document.createElement("div");p.className="ef-pulse",p.style.left=o.clientX+"px",p.style.top=o.clientY+"px",document.body.appendChild(p),setTimeout(function(){p.remove()},1900),i=u,r=o.clientX,d=o.clientY}},{passive:!0}),document.addEventListener("pointerdown",function(){e.setAttribute("data-pressed","true")}),document.addEventListener("pointerup",function(){e.setAttribute("data-pressed","false")}),document.addEventListener("mouseleave",function(){e.classList.remove("is-ready")}),document.addEventListener("mouseenter",function(){e.classList.add("is-ready")}),requestAnimationFrame(function i(){o+=.24*(t-o),a+=.24*(n-a),e.style.transform="translate3d("+o+"px,"+a+"px,0)",requestAnimationFrame(i)})}}function o(){try{document.querySelectorAll('[id^="btn-whatsapp-"]').forEach(function(e){e.addEventListener("click",function(){window.EF.trackWhatsapp(e.id.replace("btn-whatsapp-",""))})}),document.querySelectorAll('[id^="tel-"], .ef-cta-phone').forEach(function(e){e.addEventListener("click",function(){var t=e.id?e.id.replace("tel-",""):"phone";window.EF.trackPhone(t)})})}catch(e){console.warn("[EF] wireCTAs failed",e)}try{!function(){document.addEventListener("submit_success",function(e){e.target&&t(e.target)},!0);var e=window.dataLayer.push;window.dataLayer.push=function(){var n=e.apply(this,arguments);try{for(var o=0;oWhatsAppAgendar avaliação',document.body.appendChild(e),e.querySelector("#btn-whatsapp-mobile-bar").addEventListener("click",function(){window.EF.trackWhatsapp("mobile_bottom_bar")}),e.querySelector("#btn-agendar-mobile-bar").addEventListener("click",function(e){e.preventDefault();var t=document.querySelector(window.EF_CONFIG.formAnchor);t&&t.scrollIntoView({behavior:"smooth",block:"start"})});var t=!1;window.addEventListener("scroll",n,{passive:!0}),n()}function n(){t||(t=!0,requestAnimationFrame(function(){e.setAttribute("data-show",window.scrollY>240?"true":"false"),t=!1}))}}()}catch(e){console.warn("[EF] mobile cta failed",e)}try{!function(){if(window.EF_CONFIG.useBuiltinCookieBanner){var e=localStorage.getItem(window.EF_CONFIG.cookieKey);if(e)window.EF.updateConsent("granted"===e);else{var t=document.createElement("div");t.id="ef-cookie-banner",t.style.cssText="position:fixed;left:12px;right:12px;bottom:12px;max-width:28rem;margin:0 0 0 auto;z-index:50",t.innerHTML='

Sua privacidade

Usamos cookies para melhorar sua experiência e mensurar nossas campanhas, conforme a LGPD e o Google Consent Mode v2. Saiba mais.

',document.body.appendChild(t),t.querySelector("#ef-cookie-reject").addEventListener("click",function(){n(!1)}),t.querySelector("#ef-cookie-accept").addEventListener("click",function(){n(!0)})}}function n(e){localStorage.setItem(window.EF_CONFIG.cookieKey,e?"granted":"denied"),window.EF.updateConsent(e),t.remove()}}()}catch(e){console.warn("[EF] cookie banner failed",e)}try{window.location.pathname.replace(/\/$/,"")===window.EF_CONFIG.thanksUrl.replace(/\/$/,"")&&window.EF.trackLead({form_name:"thank_you_page_view",value:1})}catch(e){console.warn("[EF] thanks track failed",e)}}window.EF_CONFIG=Object.assign({whatsappUrl:"https://wa.me/5511999999999?text=Ol%C3%A1%2C+gostaria+de+agendar+uma+avalia%C3%A7%C3%A3o+na+Eurofacial",phoneNumber:"+5511999999999",formAnchor:"#contato",thanksUrl:"/obrigado/",cookieKey:"ef_cookie_consent_v1",useBuiltinCookieBanner:!1,useCustomCursor:!0,useMobileCTA:!0},window.EF_CONFIG||{}),window.dataLayer=window.dataLayer||[],window.gtag=window.gtag||e,window.EF=window.EF||{},window.EF.trackLead=function(e){var t=e||{};if(window.dataLayer.push({event:"generate_lead",form_name:t.form_name||"unknown",lead_convenio:t.lead_convenio||null,lead_motivo:t.lead_motivo||null,enhanced_conversion_data:t.email||t.phone?{email:t.email||void 0,phone_number:t.phone||void 0,first_name:t.first_name||void 0,last_name:t.last_name||void 0}:void 0,currency:"BRL",value:t.value||1}),"function"==typeof window.fbq)try{window.fbq("track","Lead",{content_name:t.form_name,value:t.value||1,currency:"BRL"})}catch(e){}},window.EF.trackWhatsapp=function(e){if(window.dataLayer.push({event:"click_whatsapp",location:e||"unknown",destination_url:window.EF_CONFIG.whatsappUrl}),"function"==typeof window.fbq)try{window.fbq("track","Contact",{content_name:"whatsapp_"+(e||"unknown")})}catch(e){}},window.EF.trackPhone=function(e){if(window.dataLayer.push({event:"click_phone",location:e||"unknown",destination_number:window.EF_CONFIG.phoneNumber}),"function"==typeof window.fbq)try{window.fbq("track","Contact",{content_name:"phone_"+(e||"unknown")})}catch(e){}},window.EF.trackVideo=function(e,t){window.dataLayer.push({event:"video_engagement",action:e,video_id:t})},window.EF.updateConsent=function(t){if(e("consent","update",{ad_storage:t?"granted":"denied",ad_user_data:t?"granted":"denied",ad_personalization:t?"granted":"denied",analytics_storage:t?"granted":"denied"}),"function"==typeof window.fbq)try{window.fbq("consent",t?"grant":"revoke")}catch(e){}window.dataLayer.push({event:"consent_update",granted:t})},"loading"===document.readyState?document.addEventListener("DOMContentLoaded",o):o()}();