{"version":3,"sources":["funcoes.js","loading.js","modal.js","tabs.js","smooth_scroll.js","mascaras_input.js","form_validation.js","ajax_forms.js","completaEndereco.js","reposiciona_img.js","numberPicker.js","share_buttons.js","users_online.js","popup_cookies.js","lightbox.js","header.js","gotop.js","blocos.js","blog.js","clientes.js","depoimentos.js","contadores.js","faq.js","fotos.js","videos.js","animateScroll.js"],"names":["window","lazySizesConfig","loadMode","url_base","$","data","debounce","n","t","u","e","a","i","arguments","o","apply","r","clearTimeout","setTimeout","isMobileX","screenSize","width","formatMoneyBR","v","c","d","isNaN","Math","abs","undefined","s","parseInt","toFixed","j","length","substr","replace","slice","formatMoneyBD","value","copyToClipboard","str","el","document","createElement","setAttribute","style","position","left","body","appendChild","selected","getSelection","rangeCount","getRangeAt","select","execCommand","removeChild","removeAllRanges","addRange","slugify","text","toString","normalize","toLowerCase","trim","loadScript","url","callback","script","type","readyState","onreadystatechange","onload","src","querySelector","getElementById","getCurDateExt","date","months","dayWeeks","cd","Date","day","getDate","getDay","getMonth","getFullYear","addDays","days","format","dateObj","parts","split","Error","setDate","toLocaleDateString","subDays","diffDates","date1","date2","unit","dateObj1","dateObj2","parts1","parts2","diff","round","replacesVars","LPQV_VARS_RPL","formataDataExt","randomNumber","location","hostname","elsReplace","initReplaceVars","selectorEl","Object","keys","forEach","rplVar","push","join","each","textNodes","contents","filter","nodeType","_i","_Object$keys","varVerify","nodeValue","indexOf","elParent","parent","includes","loadingReplaces","showReplaces","on","opacity","elText","innerHTML","elNewText","rK","regexRpl","RegExp","getUrlParam","param","queryString","search","urlParams","URLSearchParams","get","setCookie","cName","cValue","expDays","setTime","getTime","expires","toUTCString","cookie","getCookie","name","cDecoded","decodeURIComponent","cArr","res","val","substring","min","max","floor","random","formato","retorno","time","meses","diasSemana","siglas","String","padStart","D","l","F","m","M","Y","y","H","getHours","getMinutes","getSeconds","sigla","hasOwnProperty","$content","elsHeight","$el","outerHeight","heightFix","height","css","addClass","showLoading","fadeIn","hideLoading","fadeOut","openModal","modal","trigger","closeModal","removeClass","showAlert","titulo","mensagem","tipo","html","preventDefault","target","hasClass","attr","keyCode","not","openModalVideo","videoCod","videoTit","$modalVideo","iframe","concat","find","jQuery","ready","tabId","scrollToX","element","offset","$headerEl","console","log","top","animate","scrollTop","click","ev","pathname","hash","urlHash","href","mask","reverse","cpfCnpj","optionsDocumento","onKeyPress","field","options","telefoneSP","spOptions","flatpickr","dateFormat","disableMobile","locale","weekdays","shorthand","longhand","rangeSeparator","validarCPF","charAt","validarCNPJ","f","validaCPForCNPJ","isValidPhone","tel","test","Parsley","addValidator","validateString","messages","addAsyncValidator","resposta","responseText","maxSize","parsleyInstance","files","$element","size","requirementType","parsley","limite","count","after","countEle","next","$forms","$form","$btn","btnText","reset","acao","enviando","resetForm","clearForm","prop","sendingForm","successForm","resp","JSON","parse","status","_resp","reload","retornoUrl","return_url","_resp2","message","errorForm","xhr","exception","grecaptcha","recaptchaKey","recaptchaGenerateToken","dados","FormData","ajax","contentType","cache","processData","done","fail","cbSuccess","cbFail","execute","action","then","token","append","input","cep","loading","prev","beforeSend","success","endereco","logradouro","bairro","cidade","uf","focus","validate","error","container","img","appendTo","updateNumberPicker","btnSub","btnAdd","Number","qtde","urlEncoded","encodeURIComponent","pageTitle","title","pageTitleEncoded","$btnFacebook","$btnTwitter","$btnWhatsApp","$btnLinkedIn","$btnCopyLink","makeShareLinkFacebook","shareLinkFacebook","makeShareLinkTwiiter","shareLinkTwiiter","makeShareLinkWhatsApp","shareLinkWhatsApp","makeShareLinkLinkedIn","shareLinkLinkedIn","urlApi","isLoading","sendUserOnline","idleTime","page","result","jqXHR","textStatus","userOnlineInterval","setInterval","idleInterval","$popup","$button","localStorage","setItem","getItem","$images","lightboxCfg","navText","closeText","captionPosition","fileExt","heightRatio","captionSelector","captionType","history","simpleLightbox","toggleGoTop","slick","slidesToShow","slidesToScroll","infinite","autoplay","autoplaySpeed","responsive","breakpoint","settings","adaptiveHeight","slideItems","slideDots","arrows","dots","AOS","refresh","$container","$counters","duration","doWhenVisible","countTo","countCur","easing","step","complete","slideToggle","toggleClass","animeScroll","animationClass","documentTop","windowHeight","eleTop","scrollAnimationOffset","scrollAnimationDebounce","$window","executed","checkVisibility","isElVisible"],"mappings":";;AAAA;AACAA,MAAM,CAACC,eAAe,GAAGD,MAAM,CAACC,eAAe,IAAI,CAAC,CAAC;AACrDA,eAAe,CAACC,QAAQ,GAAG,CAAC;;AAE5B;AACA,IAAMC,QAAQ,GAAGC,CAAC,CAAC,QAAQ,CAAC,CAACC,IAAI,CAAC,UAAU,CAAC;;AAE7C;AACA,IAAMC,QAAQ,GAAG,SAAXA,QAAQA,CAAaC,CAAC,EAAEC,CAAC,EAAEC,CAAC,EAAE;EAClC,IAAIC,CAAC;EACL,OAAO,YAAY;IACjB,IAAIC,CAAC,GAAG,IAAI;MACVC,CAAC,GAAGC,SAAS;MACbC,CAAC,GAAG,SAAJA,CAACA,CAAA,EAAe;QACbJ,CAAC,GAAG,IAAI,EAAGD,CAAC,IAAIF,CAAC,CAACQ,KAAK,CAACJ,CAAC,EAAEC,CAAC,CAAC;MAChC,CAAC;MACDI,CAAC,GAAGP,CAAC,IAAI,CAACC,CAAC;IACbO,YAAY,CAACP,CAAC,CAAC,EAAGA,CAAC,GAAGQ,UAAU,CAACJ,CAAC,EAAEN,CAAC,CAAC,EAAGQ,CAAC,IAAIT,CAAC,CAACQ,KAAK,CAACJ,CAAC,EAAEC,CAAC,CAAC;EAC7D,CAAC;AACH,CAAC;;AAED;AACA,SAASO,SAASA,CAACC,UAAU,EAAE;EAC7B,OAAOhB,CAAC,CAACJ,MAAM,CAAC,CAACqB,KAAK,CAAC,CAAC,GAAGD,UAAU;AACvC;;AAEA;AACA,SAASE,aAAaA,CAACC,CAAC,EAAEC,CAAC,EAAEC,CAAC,EAAEjB,CAAC,EAAE;EACjC,IAAID,CAAC,GAAGgB,CAAC;IACPC,CAAC,GAAGE,KAAK,CAAEF,CAAC,GAAGG,IAAI,CAACC,GAAG,CAAC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AAO,GAAGjb,CAAC,CAACJ,MAAM,CAAC;EACzB,IAAMiP,SAAS,GAAGoM,OAAO,CAACpM,SAAS,CAAC,CAAC;EACrC,IAAMgM,YAAY,GAAGI,OAAO,CAAC7O,MAAM,CAAC,CAAC;EACrC,IAAM0O,MAAM,GAAG7O,GAAG,CAACsC,MAAM,CAAC,CAAC,CAACI,GAAG;EAC/B,OAAOE,SAAS,GAAGgM,YAAY,GAAGC,MAAM,GAAGC,qBAAqB;AAClE","file":"script.min.js","sourcesContent":["// Lazy load\r\nwindow.lazySizesConfig = window.lazySizesConfig || {};\r\nlazySizesConfig.loadMode = 1;\r\n\r\n// URL Base\r\nconst url_base = $(\"#infos\").data(\"url-base\");\r\n\r\n// DEBOUNCE (Melhora a performance de funções repetitivas como \"Scroll / Resize\")\r\nconst debounce = function (n, t, u) {\r\n var e;\r\n return function () {\r\n var a = this,\r\n i = arguments,\r\n o = function () {\r\n (e = null), u || n.apply(a, i);\r\n },\r\n r = u && !e;\r\n clearTimeout(e), (e = setTimeout(o, t)), r && n.apply(a, i);\r\n };\r\n};\r\n\r\n// Verifica se o tamanho da tela é menor do que o tamanho passado (Útil em caso de verificação de responsividade)\r\nfunction isMobileX(screenSize) {\r\n return $(window).width() < screenSize;\r\n}\r\n\r\n// Formata um valor para real (R$)\r\nfunction formatMoneyBR(v, c, d, t) {\r\n var n = v,\r\n c = isNaN((c = Math.abs(c))) ? 2 : c,\r\n d = d == undefined ? \",\" : d,\r\n t = t == undefined ? \".\" : t,\r\n s = n < 0 ? \"-\" : \"\",\r\n i = parseInt((n = Math.abs(+n || 0).toFixed(c))) + \"\",\r\n j = (j = i.length) > 3 ? j % 3 : 0;\r\n return (\r\n s +\r\n (j ? i.substr(0, j) + t : \"\") +\r\n i.substr(j).replace(/(\\d{3})(?=\\d)/g, \"$1\" + t) +\r\n (c\r\n ? d +\r\n Math.abs(n - i)\r\n .toFixed(c)\r\n .slice(2)\r\n : \"\")\r\n );\r\n}\r\n\r\n// Formata um valor em real (R$) para o formato do banco\r\nfunction formatMoneyBD(value) {\r\n return value.replace(\".\", \"\").replace(\",\", \".\");\r\n}\r\n\r\n// Copia uma string para a área de transferência\r\nfunction copyToClipboard(str) {\r\n const el = document.createElement(\"textarea\");\r\n el.value = str;\r\n el.setAttribute(\"readonly\", \"\");\r\n el.style.position = \"absolute\";\r\n el.style.left = \"-9999px\";\r\n document.body.appendChild(el);\r\n const selected =\r\n document.getSelection().rangeCount > 0\r\n ? document.getSelection().getRangeAt(0)\r\n : false;\r\n el.select();\r\n document.execCommand(\"copy\");\r\n document.body.removeChild(el);\r\n if (selected) {\r\n document.getSelection().removeAllRanges();\r\n document.getSelection().addRange(selected);\r\n }\r\n}\r\n\r\n// Gera um slug\r\nfunction slugify(text) {\r\n return text\r\n .toString()\r\n .normalize(\"NFD\")\r\n .replace(/[\\u0300-\\u036f]/g, \"\")\r\n .toLowerCase()\r\n .trim()\r\n .replace(/\\s+/g, \"-\")\r\n .replace(/[^\\w-]+/g, \"\")\r\n .replace(/--+/g, \"-\");\r\n}\r\n\r\n// Executa uma função após um script ser carregado\r\nfunction loadScript(url, callback) {\r\n var script = document.createElement(\"script\");\r\n script.type = \"text/javascript\";\r\n if (script.readyState) {\r\n // only required for IE <9\r\n script.onreadystatechange = function () {\r\n if (script.readyState === \"loaded\" || script.readyState === \"complete\") {\r\n script.onreadystatechange = null;\r\n callback();\r\n }\r\n };\r\n } else {\r\n //Others\r\n script.onload = function () {\r\n callback();\r\n };\r\n }\r\n script.src = url;\r\n if (document.querySelector(\"#external-js\")) {\r\n document.getElementById(\"external-js\").appendChild(script);\r\n } else {\r\n document.body.appendChild(script);\r\n }\r\n}\r\n\r\n// Retorna a data atual por extenso\r\nfunction getCurDateExt(date = null) {\r\n const months = [\r\n \"Janeiro\",\r\n \"Fevereiro\",\r\n \"Março\",\r\n \"Abril\",\r\n \"Maio\",\r\n \"Junho\",\r\n \"Julho\",\r\n \"Agosto\",\r\n \"Setembro\",\r\n \"Outubro\",\r\n \"Novembro\",\r\n \"Dezembro\",\r\n ];\r\n const dayWeeks = [\r\n \"Domingo\",\r\n \"Segunda-feira\",\r\n \"Terça-feira\",\r\n \"Quarta-feira\",\r\n \"Quinta-feira\",\r\n \"Sexta-feira\",\r\n \"Sábado\",\r\n ];\r\n const cd = date === null ? new Date() : date;\r\n const day = cd.getDate() >= 10 ? cd.getDate() : \"0\" + cd.getDate();\r\n return (\r\n dayWeeks[cd.getDay()] +\r\n \", \" +\r\n day +\r\n \" de \" +\r\n months[cd.getMonth()] +\r\n \" de \" +\r\n cd.getFullYear()\r\n );\r\n}\r\n\r\n// Adiciona dias a uma data\r\nfunction addDays(date, days, format = false) {\r\n let dateObj;\r\n if (typeof date === \"string\") {\r\n const parts = date.split(\"/\");\r\n dateObj = new Date(parts[2], parts[0] - 1, parts[1]);\r\n } else if (date instanceof Date) {\r\n dateObj = new Date(date);\r\n } else {\r\n throw new Error(\"Data inválida.\");\r\n }\r\n dateObj.setDate(dateObj.getDate() + days);\r\n if (format) {\r\n return dateObj.toLocaleDateString(\"pt-BR\");\r\n }\r\n return dateObj;\r\n}\r\n\r\n// Subtrai dias a uma data\r\nfunction subDays(date, days, format = false) {\r\n let dateObj;\r\n if (typeof date === \"string\") {\r\n const parts = date.split(\"/\");\r\n dateObj = new Date(parts[2], parts[0] - 1, parts[1]);\r\n } else if (date instanceof Date) {\r\n dateObj = new Date(date);\r\n } else {\r\n throw new Error(\"Data inválida.\");\r\n }\r\n dateObj.setDate(dateObj.getDate() - days);\r\n if (format) {\r\n return dateObj.toLocaleDateString(\"pt-BR\");\r\n }\r\n return dateObj;\r\n}\r\n\r\n// Calcula a diferença entre duas datas\r\nfunction diffDates(date1, date2, unit = \"days\") {\r\n let dateObj1, dateObj2;\r\n if (typeof date1 === \"string\") {\r\n const parts1 = date1.split(\"/\");\r\n dateObj1 = new Date(parts1[2], parts1[1] - 1, parts1[0]);\r\n } else if (date1 instanceof Date) {\r\n dateObj1 = new Date(date1);\r\n } else {\r\n throw new Error(\r\n 'Invalid format for date1. Please use a string in the format \"DD/MM/YYYY\" or a date object.'\r\n );\r\n }\r\n if (typeof date2 === \"string\") {\r\n const parts2 = date2.split(\"/\");\r\n dateObj2 = new Date(parts2[2], parts2[1] - 1, parts2[0]);\r\n } else if (date2 instanceof Date) {\r\n dateObj2 = new Date(date2);\r\n } else {\r\n throw new Error(\r\n 'Invalid format for date2. Please use a string in the format \"DD/MM/YYYY\" or a date object.'\r\n );\r\n }\r\n const diff = Math.abs(dateObj2 - dateObj1);\r\n if (unit === \"hours\") {\r\n return Math.round(diff / (1000 * 60 * 60));\r\n } else if (unit === \"days\") {\r\n return Math.round(diff / (1000 * 60 * 60 * 24));\r\n } else {\r\n throw new Error('Invalid unit. Please specify \"hours\" or \"days\".');\r\n }\r\n}\r\n\r\n// Substituição de variáveis nas páginas\r\n(function () {\r\n \"use strict\";\r\n\r\n // Variáveis a substituir\r\n const replacesVars = window.LPQV_VARS_RPL || {};\r\n replacesVars[\"{{cidade}}\"] = \"\";\r\n replacesVars[\"{{uf}}\"] = \"\";\r\n replacesVars[\"{{estado}}\"] = \"\";\r\n replacesVars[\"{{pais}}\"] = \"\";\r\n replacesVars[\"{{pais-sigla}}\"] = \"\";\r\n replacesVars[\"{{hoje}}\"] = formataDataExt(new Date(), \"{d}/{m}/{Y}\");\r\n replacesVars[\"{{hoje-ext}}\"] = getCurDateExt();\r\n replacesVars[\"{{amanha}}\"] = formataDataExt(\r\n addDays(new Date(), 1),\r\n \"{d}/{m}/{Y}\"\r\n );\r\n replacesVars[\"{{amanha-ext}}\"] = getCurDateExt(addDays(new Date(), 1));\r\n replacesVars[\"{{ano}}\"] = formataDataExt(new Date(), \"{Y}\");\r\n replacesVars[\"{{ano-ab}}\"] = formataDataExt(new Date(), \"{y}\");\r\n replacesVars[\"{{mes}}\"] = formataDataExt(new Date(), \"{m}\");\r\n replacesVars[\"{{mes-ext}}\"] = formataDataExt(new Date(), \"{F}\");\r\n replacesVars[\"{{dia}}\"] = formataDataExt(new Date(), \"{d}\");\r\n replacesVars[\"{{dia-semana}}\"] = formataDataExt(new Date(), \"{l}\");\r\n replacesVars[\"{{dia-semana-ab}}\"] = formataDataExt(new Date(), \"{D}\");\r\n replacesVars[\"{{horario}}\"] = formataDataExt(new Date(), \"{H}:{i}\");\r\n replacesVars[\"{{hora}}\"] = formataDataExt(new Date(), \"{H}\");\r\n replacesVars[\"{{minuto}}\"] = formataDataExt(new Date(), \"{i}\");\r\n replacesVars[\"{{rand-1-10}}\"] = randomNumber(1, 10);\r\n replacesVars[\"{{rand-10-100}}\"] = randomNumber(10, 100);\r\n replacesVars[\"{{rand-100-1000}}\"] = randomNumber(100, 1000);\r\n replacesVars[\"{{rand-1000-10000}}\"] = randomNumber(1000, 10000);\r\n replacesVars[\"{{url_base}}\"] = url_base;\r\n replacesVars[\"{{url_base_clean}}\"] = location.hostname\r\n .replace(\"http://\", \"\")\r\n .replace(\"https://\", \"\")\r\n .replace(\"www.\", \"\")\r\n .replace(/\\/$/, \"\");\r\n\r\n // Encontra os elementos com o padrão\r\n const elsReplace = [];\r\n\r\n function initReplaceVars() {\r\n let selectorEl = [];\r\n Object.keys(replacesVars).forEach(function (rplVar) {\r\n selectorEl.push(\":contains('\" + rplVar + \"')\");\r\n });\r\n selectorEl = selectorEl.join(\",\");\r\n $(selectorEl).each(function () {\r\n const textNodes = $(this)\r\n .contents()\r\n .filter(function () {\r\n if (this.nodeType === 3) {\r\n for (let varVerify of Object.keys(replacesVars)) {\r\n if (this.nodeValue.indexOf(varVerify) !== -1) {\r\n return true;\r\n }\r\n }\r\n }\r\n });\r\n const elParent = textNodes.parent();\r\n if (elParent[0] && !elsReplace.includes(elParent[0])) {\r\n elsReplace.push(elParent[0]);\r\n }\r\n });\r\n if (elsReplace.length > 0) {\r\n loadingReplaces();\r\n /* getGeoLocation(function (geoIp) {\r\n if (geoIp) {\r\n replacesVars[\"{{cidade}}\"] = geoIp?.city || \"\";\r\n replacesVars[\"{{uf}}\"] = geoIp?.region || \"\";\r\n replacesVars[\"{{estado}}\"] = geoIp?.regionName || \"\";\r\n replacesVars[\"{{pais}}\"] = geoIp?.country || \"\";\r\n replacesVars[\"{{pais-sigla}}\"] = geoIp?.countryCode || \"\";\r\n }\r\n showReplaces();\r\n }); */\r\n }\r\n showReplaces();\r\n }\r\n initReplaceVars();\r\n $(\"body\").on(\"replace-vars\", initReplaceVars);\r\n\r\n // Oculta os elementos enquanto os dados são carregados\r\n function loadingReplaces() {\r\n elsReplace.forEach(function (el) {\r\n el.style.opacity = \"0\";\r\n });\r\n }\r\n\r\n // Substitui as variáveis\r\n function showReplaces() {\r\n elsReplace.forEach(function (el) {\r\n let elText = el.innerHTML;\r\n let elNewText = elText;\r\n Object.keys(replacesVars).forEach(function (rK) {\r\n if (replacesVars[rK]) {\r\n const regexRpl = new RegExp(\"\\\\\" + rK + \"\", \"g\");\r\n elNewText = elNewText.replace(regexRpl, replacesVars[rK]);\r\n }\r\n });\r\n el.innerHTML = elNewText;\r\n el.style.opacity = \"1\";\r\n });\r\n }\r\n})();\r\n\r\n// Obtém um parâmetro da url\r\nfunction getUrlParam(param) {\r\n const queryString = window.location.search;\r\n const urlParams = new URLSearchParams(queryString);\r\n return urlParams.get(param);\r\n}\r\n\r\n// Cria/Atualiza um cookie\r\nfunction setCookie(cName, cValue, expDays) {\r\n let date = new Date();\r\n date.setTime(date.getTime() + expDays * 24 * 60 * 60 * 1000);\r\n const expires = \"expires=\" + date.toUTCString();\r\n document.cookie = cName + \"=\" + cValue + \"; \" + expires + \"; path=/\";\r\n}\r\n\r\n// Obtém um cookie\r\nfunction getCookie(cName) {\r\n const name = cName + \"=\";\r\n const cDecoded = decodeURIComponent(document.cookie);\r\n const cArr = cDecoded.split(\"; \");\r\n let res;\r\n cArr.forEach((val) => {\r\n if (val.indexOf(name) === 0) res = val.substring(name.length);\r\n });\r\n return res;\r\n}\r\n\r\n// Gera um número aleatório\r\nfunction randomNumber(min, max) {\r\n return Math.floor(Math.random() * (max - min + 1) + min);\r\n}\r\n\r\n// Retorna uma data em um formato específico\r\nfunction formataDataExt(data, formato = \"{d}/{m}/{Y}\") {\r\n let retorno = formato;\r\n const time = new Date(data);\r\n if (isNaN(time)) {\r\n return false;\r\n }\r\n const meses = {\r\n \"01\": \"Janeiro\",\r\n \"02\": \"Fevereiro\",\r\n \"03\": \"Março\",\r\n \"04\": \"Abril\",\r\n \"05\": \"Maio\",\r\n \"06\": \"Junho\",\r\n \"07\": \"Julho\",\r\n \"08\": \"Agosto\",\r\n \"09\": \"Setembro\",\r\n 10: \"Outubro\",\r\n 11: \"Novembro\",\r\n 12: \"Dezembro\",\r\n };\r\n const diasSemana = [\r\n \"Domingo\",\r\n \"Segunda-feira\",\r\n \"Terça-feira\",\r\n \"Quarta-feira\",\r\n \"Quinta-feira\",\r\n \"Sexta-feira\",\r\n \"Sábado\",\r\n ];\r\n const siglas = {\r\n // Dia do mês com zero à esquerda\r\n d: String(time.getDate()).padStart(2, \"0\"),\r\n // Dia da semana abreviado (3 letras)\r\n D: diasSemana[time.getDay()].substr(0, 3),\r\n // Dia do mês sem zero à esquerda\r\n j: time.getDate(),\r\n // Dia da semana completo\r\n l: diasSemana[time.getDay()],\r\n // Mês completo\r\n F: meses[String(time.getMonth() + 1).padStart(2, \"0\")],\r\n // Mês com zero à esquerda\r\n m: String(time.getMonth() + 1).padStart(2, \"0\"),\r\n // Mês abreviado (3 letras)\r\n M: meses[String(time.getMonth() + 1).padStart(2, \"0\")].substr(0, 3),\r\n // Ano completo (4 dígitos)\r\n Y: time.getFullYear(),\r\n // Ano abreviado (2 dígitos)\r\n y: String(time.getFullYear()).slice(-2),\r\n // Horas (Formato 24h)\r\n H: String(time.getHours()).padStart(2, \"0\"),\r\n // Minutos\r\n i: String(time.getMinutes()).padStart(2, \"0\"),\r\n // Segundos\r\n s: String(time.getSeconds()).padStart(2, \"0\"),\r\n };\r\n for (const sigla in siglas) {\r\n if (siglas.hasOwnProperty(sigla)) {\r\n retorno = retorno.replace(\"{\" + sigla + \"}\", siglas[sigla]);\r\n }\r\n }\r\n return retorno;\r\n}\r\n\r\n// Ajusta a altura do conteúdo da página\r\n$(function () {\r\n if ($(\".pag-height-fix\").length) {\r\n const $content = $(\".pag-height-fix\");\r\n let elsHeight = 0;\r\n $(\".header, .pag-banner, .footer\").each(function () {\r\n const $el = $(this);\r\n elsHeight += $el.outerHeight();\r\n });\r\n let heightFix = $(window).height() - elsHeight;\r\n $content.css(\"min-height\", heightFix);\r\n $content.addClass(\"loaded\");\r\n }\r\n});\r\n","/* =================== LOADING =================== */\r\n\r\n// Exibe loading\r\nfunction showLoading() {\r\n\t$('.loading').fadeIn();\r\n}\r\n\r\n// Oculta loading\r\nfunction hideLoading() {\r\n\t$('.loading').fadeOut();\r\n}","/* =================== MODAL =================== */\r\n\r\n// Abre o modal\r\nfunction openModal(modal) {\r\n $(\"body\").css(\"overflow\", \"hidden\");\r\n $(\"#\" + modal).addClass(\"open\");\r\n $(\"#\" + modal).trigger(\"modal-open\");\r\n}\r\n\r\n// Fecha o modal\r\nfunction closeModal(modal) {\r\n $(\"body\").css(\"overflow\", \"auto\");\r\n $(\"#\" + modal).removeClass(\"open\");\r\n $(\"#\" + modal).trigger(\"modal-close\");\r\n}\r\n\r\n// Abre o modal de alerta\r\nfunction showAlert(titulo, mensagem, tipo) {\r\n $(\"#modal-alert\").removeClass(\"success warning error\");\r\n $(\"#modal-alert\").addClass(tipo);\r\n $(\"#alert-titulo\").text(titulo);\r\n $(\"#alert-texto\").html(mensagem);\r\n openModal(\"modal-alert\");\r\n}\r\n\r\n$(function () {\r\n // Abre o modal ao clicar no botão\r\n $(\".modal-open\").on(\"click\", function (e) {\r\n e.preventDefault();\r\n openModal($(this).data(\"modal\"));\r\n });\r\n\r\n // Fecha o modal ao clicar no botão\r\n $(\".modal-close\").on(\"click\", function (e) {\r\n e.preventDefault();\r\n closeModal($(this).data(\"modal\"));\r\n });\r\n\r\n // Fecha o modal ao clicar em qualquer outro lugar da tela\r\n $(\".modal\").on(\"click\", function (e) {\r\n if (e.target == this && !$(this).hasClass(\"modal-force\")) {\r\n closeModal($(this).attr(\"id\"));\r\n }\r\n });\r\n\r\n // Fecha o modal ao pressionar a tecla ESC\r\n $(document).on(\"keyup\", function (e) {\r\n if (e.keyCode == 27) {\r\n $(\".modal.open\")\r\n .not(\".modal-force\")\r\n .each(function () {\r\n closeModal($(this).attr(\"id\"));\r\n });\r\n }\r\n });\r\n\r\n // Abre o modal de vídeo (Youtube)\r\n $(\".modal-video-open\").on(\"click\", function (e) {\r\n e.preventDefault();\r\n const $el = $(this);\r\n openModalVideo($el.data(\"video-cod\"), $el.data(\"video-tit\"));\r\n });\r\n function openModalVideo(videoCod, videoTit = \"\") {\r\n const $modalVideo = $(\"#modal-video\");\r\n if ($modalVideo.length) {\r\n const iframe = ``;\r\n $modalVideo.find(\".bloco-video-wrapper\").html(iframe);\r\n if (videoTit != \"\") {\r\n $modalVideo.find(\".bloco-video-titulo\").html(videoTit);\r\n }\r\n openModal(\"modal-video\");\r\n }\r\n }\r\n\r\n // Fecha o modal de vídeo (Youtube)\r\n $(\"#modal-video\").on(\"modal-close\", function () {\r\n $(\"#modal-video\").find(\".bloco-video-wrapper\").html(\"\");\r\n $(\"#modal-video\").find(\".bloco-video-titulo\").html(\"\");\r\n });\r\n});\r\n","/* =================== TABS =================== */\r\njQuery(document).ready(function($){\r\n\t$('.tabs-abas li').on('click', function() {\r\n var tabId = $(this).data('tab');\r\n\r\n $('.tabs-abas li').removeClass('active');\r\n $('.tab-content').removeClass('active');\r\n\r\n $('#'+tabId).addClass('active');\r\n $(this).addClass('active');\t \r\n });\r\n\r\n});\r\n","/* =================== SMOOTH SCROLL (SCROLL SUAVE) =================== */\r\n\r\n// Scroll para um determinado elemento\r\nfunction scrollToX(element) {\r\n let offset = 20;\r\n let $headerEl;\r\n if ($(\".header\").length > 0) {\r\n $headerEl = $(\".header\");\r\n } else if ($(\".header-full\").length > 0) {\r\n $headerEl = $(\".header-full\");\r\n }\r\n if ($headerEl && $headerEl.css(\"position\") === \"fixed\") {\r\n offset = $headerEl.outerHeight() + 20;\r\n }\r\n console.log(offset);\r\n var top = $(element) ? $(element).offset().top - offset : 0;\r\n $(\"html, body\").animate(\r\n {\r\n scrollTop: top,\r\n },\r\n 500\r\n );\r\n}\r\n\r\n$(function () {\r\n // Scroll suave para âncoras\r\n $('a[href^=\"#\"]:not([href=\"#\"]):not([href=\"#0\"])').click(function (ev) {\r\n ev.preventDefault();\r\n if (\r\n location.pathname.replace(/^\\//, \"\") ==\r\n this.pathname.replace(/^\\//, \"\") ||\r\n location.hostname == this.hostname\r\n ) {\r\n var target = $(this.hash);\r\n target = target.length ? target : $(\"[name=\" + this.hash.slice(1) + \"]\");\r\n if (target.length) {\r\n scrollToX(target);\r\n return false;\r\n }\r\n }\r\n });\r\n\r\n // Scroll suave para links externos\r\n $(document).on(\"ready\", function () {\r\n var urlHash = window.location.href.split(\"#\")[1];\r\n if (urlHash && urlHash != 0) {\r\n scrollToX(\"#\" + urlHash);\r\n }\r\n });\r\n});\r\n","/* =================== MÁSCARAS DOS CAMPOS =================== */\r\n\r\n// VALOR\r\n$('.valor').mask('000.000.000.000.000,00', {reverse: true});\r\n\r\n// CEP\r\n$(\".cep\").mask(\"00000-000\");\r\n\r\n// DATA\r\n$(\".data\").mask(\"00/00/0000\");\r\n\r\n// CPF\r\n$(\".cpf\").mask(\"000.000.000-00\", {reverse: true});\r\n\r\n// CNPJ\r\n$(\".cnpj\").mask(\"00.000.000/0000-00\", {reverse: true});\r\n\r\n// CPF OU CNPJ\r\nvar cpfCnpj = function (val) {\r\n return val.length > 14 ? '00.000.000/0000-00' : '000.000.000-009';\r\n},\r\noptionsDocumento = { onKeyPress: function(val, e, field, options) { field.mask(cpfCnpj(val), options) } }; \r\n$('.cpf-cnpj').mask(cpfCnpj, optionsDocumento); \r\n\r\n// TELEFONE\r\nvar telefoneSP = function (val) {\r\n return val.replace(/\\D/g, '').length === 11 ? '(00) 00000-0000' : '(00) 0000-00009';\r\n},\r\nspOptions = {\r\n onKeyPress: function(val, e, field, options) {\r\n field.mask(telefoneSP.apply({}, arguments), options);\r\n }\r\n};\r\n$('.telefone').mask(telefoneSP, spOptions);\r\n\r\n// CARTÃO DE CRÉDITO\r\n$(\".card-numero\").mask(\"0000 0000 0000 0000\", {reverse: true});\r\n\r\n// CARTÃO DE CRÉDITO (VALIDADE)\r\n$(\".card-validade\").mask(\"00/00\");\r\n\r\n// DATEPICKER \r\n// https://flatpickr.js.org\r\n$('.datepicker').flatpickr({\r\n dateFormat: \"d/m/Y\",\r\n //defaultDate: \"today\",\r\n disableMobile: \"true\",\r\n locale: {\r\n weekdays: {\r\n shorthand: [\"Dom\", \"Seg\", \"Ter\", \"Qua\", \"Qui\", \"Sex\", \"Sáb\"],\r\n longhand: [\"Domingo\", \"Segunda-feira\", \"Terça-feira\", \"Quarta-feira\", \"Quinta-feira\", \"Sexta-feira\", \"Sábado\"]\r\n },\r\n months: {\r\n shorthand: [\"Jan\", \"Fev\", \"Mar\", \"Abr\", \"Mai\", \"Jun\", \"Jul\", \"Ago\", \"Set\", \"Out\", \"Nov\", \"Dez\"],\r\n longhand: [\"Janeiro\", \"Fevereiro\", \"Março\", \"Abril\", \"Maio\", \"Junho\", \"Julho\", \"Agosto\", \"Setembro\", \"Outubro\", \"Novembro\", \"Dezembro\"]\r\n },\r\n rangeSeparator: \" até \"\r\n }\r\n});\r\n","(function ($) {\r\n \"use strict\";\r\n\r\n // Valida CPF\r\n function validarCPF(r) {\r\n var t, a, n, e, i;\r\n if (((i = 1), (r = r.replace(/[^\\d]+/g, \"\")).length < 11)) return !1;\r\n for (e = 0; e < r.length - 1; e++)\r\n if (r.charAt(e) != r.charAt(e + 1)) {\r\n i = 0;\r\n break;\r\n }\r\n if (i) return !1;\r\n for (t = r.substring(0, 9), a = r.substring(9), n = 0, e = 10; e > 1; e--)\r\n n += t.charAt(10 - e) * e;\r\n if ((n % 11 < 2 ? 0 : 11 - (n % 11)) != a.charAt(0)) return !1;\r\n for (t = r.substring(0, 10), n = 0, e = 11; e > 1; e--)\r\n n += t.charAt(11 - e) * e;\r\n return (n % 11 < 2 ? 0 : 11 - (n % 11)) == a.charAt(1);\r\n }\r\n\r\n // Valida CNPJ\r\n function validarCNPJ(r) {\r\n if (\"\" == (r = r.replace(/[^\\d]+/g, \"\"))) return !1;\r\n if (14 != r.length) return !1;\r\n if (\r\n \"00000000000000\" == r ||\r\n \"11111111111111\" == r ||\r\n \"22222222222222\" == r ||\r\n \"33333333333333\" == r ||\r\n \"44444444444444\" == r ||\r\n \"55555555555555\" == r ||\r\n \"66666666666666\" == r ||\r\n \"77777777777777\" == r ||\r\n \"88888888888888\" == r ||\r\n \"99999999999999\" == r\r\n )\r\n return !1;\r\n for (\r\n var t = r.length - 2,\r\n n = r.substring(0, t),\r\n a = r.substring(t),\r\n e = 0,\r\n i = t - 7,\r\n u = t;\r\n u >= 1;\r\n u--\r\n )\r\n (e += n.charAt(t - u) * i--), i < 2 && (i = 9);\r\n var f = e % 11 < 2 ? 0 : 11 - (e % 11);\r\n if (f != a.charAt(0)) return !1;\r\n for (t += 1, n = r.substring(0, t), e = 0, i = t - 7, u = t; u >= 1; u--)\r\n (e += n.charAt(t - u) * i--), i < 2 && (i = 9);\r\n return (f = e % 11 < 2 ? 0 : 11 - (e % 11)) == a.charAt(1);\r\n }\r\n\r\n // Valide CPF ou CNPJ\r\n function validaCPForCNPJ(value) {\r\n return validarCPF(value) || validarCNPJ(value);\r\n }\r\n\r\n // Valida telefone\r\n function isValidPhone(tel) {\r\n return /(\\([1-9]{2}\\))\\s([9]{1})?([0-9]{4})-([0-9]{4})/.test(\r\n String(tel).toLowerCase()\r\n );\r\n }\r\n\r\n // Nome completo\r\n window.Parsley.addValidator(\"fullname\", {\r\n validateString: function (value) {\r\n var value = value.trim().split(\" \");\r\n return value.length > 1;\r\n },\r\n messages: {\r\n \"pt-br\": \"Digite o nome completo.\",\r\n },\r\n });\r\n\r\n // Valida CPF\r\n window.Parsley.addValidator(\"cpf\", {\r\n validateString: function (value) {\r\n return validarCPF(value);\r\n },\r\n messages: {\r\n \"pt-br\": \"Informe um número de CPF válido.\",\r\n },\r\n });\r\n\r\n // Valida CNPJ\r\n window.Parsley.addValidator(\"cnpj\", {\r\n validateString: function (value) {\r\n return validarCNPJ(value);\r\n },\r\n messages: {\r\n \"pt-br\": \"Informe um número de CNPJ válido.\",\r\n },\r\n });\r\n\r\n // Valida CPF ou CNPJ\r\n window.Parsley.addValidator(\"cpf_cnpj\", {\r\n validateString: function (value) {\r\n return validaCPForCNPJ(value);\r\n },\r\n messages: {\r\n \"pt-br\": \"Informe um número de CPF ou CNPJ válido.\",\r\n },\r\n });\r\n\r\n // Verifica um campo com validação externa (Ex: E-mail já cadastrado no sistema)\r\n window.Parsley.addAsyncValidator(\"remote\", function (resposta) {\r\n return resposta.responseText == \"ok\";\r\n });\r\n\r\n // Tamanho do arquivo\r\n window.Parsley.addValidator(\"maxfilesize\", {\r\n validateString: function (value, maxSize, parsleyInstance) {\r\n var files = parsleyInstance.$element[0].files;\r\n return files.length != 1 || files[0].size <= maxSize * 1048576;\r\n },\r\n requirementType: \"integer\",\r\n messages: {\r\n \"pt-br\": \"Este arquivo não deve ser maior que %s Mb\",\r\n },\r\n });\r\n\r\n // Exibe o 'check' nos campos validados com sucesso\r\n window.Parsley.on(\"field:success\", function () {\r\n this.$element.parent(\".show-validacao\").addClass(\"valid\");\r\n }).on(\"field:error\", function () {\r\n this.$element.parent(\".show-validacao\").removeClass(\"valid\");\r\n });\r\n\r\n // Instancia o validador\r\n $(\".form-validation\").parsley();\r\n\r\n // Contador de caracter\r\n $(\"textarea[maxlength]\")\r\n .each(function () {\r\n const limite = $(this).attr(\"maxlength\");\r\n const count = $(this).val().length;\r\n $(this).after('');\r\n const countEle = $(this).next(\".caracter_count\");\r\n countEle.text(count + \"/\" + limite);\r\n })\r\n .on(\"keyup keydown keypress\", function () {\r\n const limite = $(this).attr(\"maxlength\");\r\n const count = $(this).val().length;\r\n const countEle = $(this).next(\".caracter_count\");\r\n countEle.text(count + \"/\" + limite);\r\n });\r\n})(jQuery);\r\n","// ------------------------------------\r\n// Formulários AJAX\r\n// ------------------------------------\r\n(function () {\r\n \"use strict\";\r\n\r\n const $forms = $(\".form-ajax\");\r\n\r\n $forms.each(function () {\r\n // Variáveis\r\n const $form = $(this);\r\n const $btn = $form.find('button[type=\"submit\"]');\r\n const url = $form.attr(\"action\");\r\n const type = $form.attr(\"method\");\r\n const btnText = $btn.text();\r\n const reset = $form.data(\"reset\");\r\n const acao = $form.data(\"acao\");\r\n const modal = $form.data(\"modal\");\r\n let enviando = false;\r\n\r\n // Retorna o formulário ao estado inicial\r\n function resetForm(clearForm = false) {\r\n enviando = false;\r\n $btn.prop(\"disabled\", false).removeClass(\"btn-loader\").text(btnText);\r\n if (clearForm && reset) {\r\n $form[0].reset();\r\n $form.parsley().reset();\r\n }\r\n }\r\n\r\n // Ações executadas antes e enquanto o formulário é processado\r\n function sendingForm() {\r\n enviando = true;\r\n $btn.prop(\"disabled\", true).addClass(\"btn-loader\").text(\"Aguarde...\");\r\n }\r\n\r\n // Sucesso\r\n function successForm(resp) {\r\n console.log(resp);\r\n resp = JSON.parse(resp);\r\n if (resp.status === \"success\") {\r\n // Fecha o modal\r\n if (modal) {\r\n closeModal(modal);\r\n }\r\n resetForm(reset);\r\n // Recarrega a página\r\n if (acao === \"reload\") {\r\n location.reload();\r\n }\r\n // Redireciona (Retorno no campo)\r\n else if (acao === \"retorno\") {\r\n const retornoUrl = $form.find('input[name=\"retorno\"]').val();\r\n location.href = retornoUrl;\r\n }\r\n // Redireciona (Retorno vindo da ação)\r\n else if (acao === \"retorno-acao\" && resp?.return_url) {\r\n const retornoUrl = resp?.return_url;\r\n location.href = retornoUrl;\r\n }\r\n // Exibe mensagem\r\n else {\r\n setTimeout(() => {\r\n showAlert(\"Sucesso\", resp.message, \"success\");\r\n }, 500);\r\n }\r\n } else {\r\n resetForm();\r\n showAlert(\"Erro\", resp.message, \"error\");\r\n }\r\n }\r\n\r\n // Erro\r\n function errorForm(xhr, status, exception) {\r\n console.log(exception);\r\n resetForm();\r\n showAlert(\"Erro\", \"Não foi possível realizar esta operação.\", \"error\");\r\n }\r\n\r\n // Envia o formulário\r\n $form.on(\"submit\", function (ev) {\r\n ev.preventDefault();\r\n if (!enviando) {\r\n // Verifica se tem recaptcha e adiciona o token\r\n if (\r\n $form.hasClass(\"enable-recaptcha\") &&\r\n typeof grecaptcha !== \"undefined\" &&\r\n typeof recaptchaKey !== \"undefined\"\r\n ) {\r\n recaptchaGenerateToken(\r\n $form,\r\n function () {\r\n sendingForm();\r\n const dados = new FormData($form[0]);\r\n $.ajax({\r\n url: url,\r\n type: type,\r\n data: dados,\r\n contentType: false,\r\n cache: false,\r\n processData: false,\r\n })\r\n .done(successForm)\r\n .fail(errorForm);\r\n },\r\n resetForm\r\n );\r\n return;\r\n }\r\n\r\n // Envio sem recaptcha\r\n sendingForm();\r\n const dados = new FormData($form[0]);\r\n $.ajax({\r\n url: url,\r\n type: type,\r\n data: dados,\r\n contentType: false,\r\n cache: false,\r\n processData: false,\r\n })\r\n .done(successForm)\r\n .fail(errorForm);\r\n }\r\n });\r\n });\r\n})();\r\n\r\n// ------------------------------------\r\n// Recaptcha\r\n// ------------------------------------\r\n\r\n// Variáveis\r\nconst recaptchaKey = $(\"#infos\").data(\"recaptchakey\");\r\n\r\n// Carrega o Recaptcha (Caso algum form seja encontrado)\r\nif (\r\n $(\"form.enable-recaptcha\").length > 0 &&\r\n typeof recaptchaKey !== \"undefined\"\r\n) {\r\n $('form.enable-recaptcha [type=\"submit\"]').each(function () {\r\n $(this).prop(\"disabled\", true);\r\n });\r\n setTimeout(() => {\r\n loadScript(\r\n `https://www.google.com/recaptcha/api.js?render=${recaptchaKey}`,\r\n function () {\r\n $('form.enable-recaptcha [type=\"submit\"]').each(function () {\r\n $(this).prop(\"disabled\", false);\r\n });\r\n }\r\n );\r\n }, 1500);\r\n}\r\n\r\n// Gera token de envio do recaptcha\r\nfunction recaptchaGenerateToken($form, cbSuccess, cbFail = false) {\r\n if ($form.length === 0) {\r\n return false;\r\n }\r\n grecaptcha.ready(function () {\r\n grecaptcha\r\n .execute(recaptchaKey, { action: \"submit\" })\r\n .then(function (token) {\r\n if (token) {\r\n if (!$form.find('input[name=\"g-recaptcha-response\"]').length) {\r\n $form.append(\r\n ``\r\n );\r\n $form.append(\r\n ``\r\n );\r\n } else {\r\n $form.find('input[name=\"g-recaptcha-response\"]').val(token);\r\n $form.find('input[name=\"enable-recaptcha\"]').val(1);\r\n }\r\n cbSuccess();\r\n } else {\r\n console.log(\"Não foi possível gerar o token do recaptcha.\", token);\r\n if (cbFail !== false) {\r\n cbFail();\r\n }\r\n }\r\n });\r\n });\r\n}\r\n","/* =================== COMPLETA ENDEREÇO =================== */\r\n$(function () {\r\n $(\".cep_completa\").on(\"change\", function () {\r\n var input = $(this);\r\n var cep = $(this).val();\r\n var url = $(this).data(\"url\");\r\n var loading = input.prev(\".campo-loading\");\r\n\r\n $.ajax({\r\n url: url,\r\n type: \"POST\",\r\n data: {\r\n cep: cep,\r\n },\r\n beforeSend: function () {\r\n loading.fadeIn();\r\n input.prop(\"disabled\", true);\r\n },\r\n success: function (data) {\r\n console.log(data);\r\n loading.fadeOut();\r\n input.prop(\"disabled\", false);\r\n try {\r\n var endereco = JSON.parse(data);\r\n\r\n $(\"#logradouro\").val(endereco.logradouro);\r\n $(\"#bairro\").val(endereco.bairro);\r\n $(\"#cidade\").val(endereco.cidade);\r\n $(\"#estado\").val(endereco.uf);\r\n $(\"#numero\").focus();\r\n\r\n $(\"#logradouro\").parsley().validate();\r\n $(\"#bairro\").parsley().validate();\r\n $(\"#cidade\").parsley().validate();\r\n $(\"#estado\").parsley().validate();\r\n } catch (e) {\r\n return false;\r\n }\r\n },\r\n error: function (xhr, type, exception) {\r\n loading.fadeOut();\r\n input.prop(\"disabled\", false);\r\n console.log(\"ajax error response type \" + type);\r\n },\r\n });\r\n });\r\n});\r\n","// Altera a posição da imagem no mobile\r\n$(function () {\r\n if (isMobileX(760)) {\r\n $(\".load-img-mobile\").each(function () {\r\n var container = $(this);\r\n var img = $('[data-id-img=\"' + container.data(\"img\") + '\"]');\r\n img.attr(\"data-aos\", \"\");\r\n img.appendTo(container);\r\n });\r\n }\r\n});\r\n","(function() {\r\n \"use strict\";\r\n\r\n function updateNumberPicker() {\r\n $(\".number-picker-input\").each(function() {\r\n const btnSub = $(this).find(\".number-picker-sub\");\r\n const btnAdd = $(this).find(\".number-picker-add\");\r\n const input = $(this).find(\"input\");\r\n const min = Number(input.data(\"min\"));\r\n const max = Number(input.data(\"max\"));\r\n const qtde = Number(input.val());\r\n if (!isNaN(min) && qtde === min) {\r\n btnSub.addClass(\"disabled\");\r\n } else {\r\n btnSub.removeClass(\"disabled\");\r\n }\r\n if (!isNaN(max) && qtde === max) {\r\n btnAdd.addClass(\"disabled\");\r\n } else {\r\n btnAdd.removeClass(\"disabled\");\r\n }\r\n });\r\n }\r\n\r\n updateNumberPicker();\r\n\r\n $(\".number-picker-sub\").on(\"click\", function(e) {\r\n e.preventDefault();\r\n const input = $($(this).data(\"target\"));\r\n const min = Number(input.data(\"min\"));\r\n let qtde = Number(input.val());\r\n if (isNaN(min) || qtde > min) {\r\n qtde--;\r\n input.val(qtde);\r\n input.trigger(\"change\");\r\n updateNumberPicker();\r\n }\r\n });\r\n\r\n $(\".number-picker-add\").on(\"click\", function(e) {\r\n e.preventDefault();\r\n const input = $($(this).data(\"target\"));\r\n const max = Number(input.data(\"max\"));\r\n let qtde = Number(input.val());\r\n if (isNaN(max) || qtde < max) {\r\n qtde++;\r\n input.val(qtde);\r\n input.trigger(\"change\");\r\n updateNumberPicker();\r\n }\r\n });\r\n})();\r\n","// ------------------------------------\r\n// Botões de Compartilhamento\r\n// ------------------------------------\r\n(function () {\r\n \"use strict\";\r\n\r\n // Variáveis\r\n const url = location.href;\r\n const urlEncoded = encodeURIComponent(url);\r\n const pageTitle = document.title;\r\n const pageTitleEncoded = encodeURIComponent(pageTitle);\r\n const $btnFacebook = $(\".share-button.facebook\");\r\n const $btnTwitter = $(\".share-button.twitter\");\r\n const $btnWhatsApp = $(\".share-button.whatsapp\");\r\n const $btnLinkedIn = $(\".share-button.linkedin\");\r\n const $btnCopyLink = $(\".share-button.copy-link\");\r\n\r\n // Cria o link de compartilhamento para o Facebook\r\n function makeShareLinkFacebook() {\r\n const shareLinkFacebook =\r\n \"https://www.facebook.com/sharer/sharer.php?u=\" + urlEncoded;\r\n $btnFacebook.attr(\"href\", shareLinkFacebook);\r\n }\r\n makeShareLinkFacebook();\r\n\r\n // Cria o link de compartilhamento para o Twiiter\r\n function makeShareLinkTwiiter() {\r\n const shareLinkTwiiter =\r\n \"https://twitter.com/intent/tweet?url=\" +\r\n urlEncoded +\r\n \"&text=\" +\r\n pageTitle;\r\n $btnTwitter.attr(\"href\", shareLinkTwiiter);\r\n }\r\n makeShareLinkTwiiter();\r\n\r\n // Cria o link de compartilhamento para o WhatsApp\r\n function makeShareLinkWhatsApp() {\r\n const shareLinkWhatsApp =\r\n \"https://api.whatsapp.com/send?text=\" + pageTitle + \" \" + urlEncoded;\r\n $btnWhatsApp.attr(\"href\", shareLinkWhatsApp);\r\n }\r\n makeShareLinkWhatsApp();\r\n\r\n // Cria o link de compartilhamento para o LinkedIn\r\n function makeShareLinkLinkedIn() {\r\n const shareLinkLinkedIn =\r\n \"https://www.linkedin.com/shareArticle?mini=true&url=\" +\r\n urlEncoded +\r\n \"&title=\" +\r\n pageTitleEncoded;\r\n $btnLinkedIn.attr(\"href\", shareLinkLinkedIn);\r\n }\r\n makeShareLinkLinkedIn();\r\n\r\n // Evento de click no botão para copiar o link da página\r\n $btnCopyLink.on(\"click\", function (ev) {\r\n ev.preventDefault();\r\n copyToClipboard(url);\r\n showAlert(\r\n \"Link Copiado\",\r\n \"O link para esta página foi copiado com sucesso.\",\r\n \"success\"\r\n );\r\n });\r\n})();\r\n","// Usuários online\r\n(function () {\r\n \"use strict\";\r\n\r\n // Variáveis\r\n const urlApi = url_base + \"acoes/api/users_online.php\";\r\n let isLoading = false;\r\n\r\n // Envia as informações do usuário\r\n function sendUserOnline() {\r\n if (!isLoading && idleTime < 2) {\r\n $.ajax({\r\n url: urlApi,\r\n type: \"POST\",\r\n data: {\r\n acao: \"users_online\",\r\n page: window.location.pathname,\r\n //page: window.location.origin + window.location.pathname,\r\n },\r\n beforeSend: function () {\r\n isLoading = true;\r\n },\r\n })\r\n .done(function (result) {\r\n isLoading = false;\r\n //console.log(result);\r\n })\r\n .fail(function (jqXHR, textStatus, error) {\r\n isLoading = false;\r\n console.log(error);\r\n });\r\n }\r\n }\r\n\r\n // Carrega a primeira vez quando a página é carregada\r\n $(window).on(\"load\", function () {\r\n setTimeout(sendUserOnline, 500);\r\n const userOnlineInterval = setInterval(() => {\r\n sendUserOnline();\r\n }, 30000);\r\n });\r\n\r\n // Calcula o tempo de inatividade (Minutos)\r\n let idleTime = 0;\r\n const idleInterval = setInterval(() => {\r\n idleTime = idleTime + 0.5;\r\n }, 30000);\r\n $(document).on(\r\n \"mousemove keypress scroll touchstart\",\r\n debounce(function () {\r\n idleTime = 0;\r\n }, 100)\r\n );\r\n})();\r\n","(function () {\r\n \"use strict\";\r\n const $popup = $(\"#popup-cookie\");\r\n const $button = $(\"#popup-cookie-btn\");\r\n $button.on(\"click\", function (ev) {\r\n ev.preventDefault();\r\n localStorage.setItem(\"cookie_popup\", \"true\");\r\n $popup.removeClass(\"active\");\r\n });\r\n if (!localStorage.getItem(\"cookie_popup\")) {\r\n setTimeout(function () {\r\n $popup.addClass(\"active\");\r\n }, 2000);\r\n }\r\n})();\r\n","// ------------------------------------\r\n// Galeria (Lightbox)\r\n// ------------------------------------\r\n(function () {\r\n \"use strict\";\r\n const $images = $(\"[data-lightbox]\");\r\n if ($images.length > 0) {\r\n const lightboxCfg = {\r\n navText: [\"\", \"\"],\r\n closeText: \"\",\r\n captionPosition: \"outside\",\r\n fileExt: false,\r\n heightRatio: 0.8,\r\n captionSelector: \"self\",\r\n captionType: \"data\",\r\n history: false,\r\n };\r\n $images.simpleLightbox(lightboxCfg);\r\n }\r\n})();\r\n","/* =================== HEADER =================== */\r\n$(function () {\r\n // Ajusta padding-top da body com base na altura do header\r\n /* function fixBodyTop() {\r\n if ($(\".header\").length && $(\".header\").css(\"position\") === \"fixed\") {\r\n const headerHeight = $(\".header\").outerHeight();\r\n $(\"body\").css(\"padding-top\", headerHeight);\r\n }\r\n }\r\n $(window).on(\"resize\", debounce(fixBodyTop, 50));\r\n $(window).on(\"load\", fixBodyTop); */\r\n // Menu fixo ao rolar a tela\r\n /* const $header = $(\".header-full\");\r\n if ($header.length > 0) {\r\n function toggleHeaderFull() {\r\n const scrollTop = $(window).scrollTop();\r\n if (scrollTop > 100) {\r\n $header.addClass(\"active\");\r\n } else {\r\n $header.removeClass(\"active\");\r\n }\r\n }\r\n toggleHeaderFull();\r\n $(window).on(\r\n \"scroll\",\r\n debounce(function () {\r\n toggleHeaderFull();\r\n }, 50)\r\n );\r\n } */\r\n});\r\n","/* =================== VOLTAR AO TOPO =================== */\r\n$(function () {\r\n function toggleGoTop() {\r\n var scrollTop = $(window).scrollTop();\r\n if (scrollTop > 100) {\r\n $(\".gotop\").addClass(\"active\");\r\n } else {\r\n $(\".gotop\").removeClass(\"active\");\r\n }\r\n }\r\n toggleGoTop();\r\n $(window).on(\r\n \"scroll\",\r\n debounce(function () {\r\n toggleGoTop();\r\n }, 100)\r\n );\r\n $(\".gotop\").on(\"click\", function () {\r\n scrollToX(\"html\");\r\n });\r\n});\r\n","/* =================== BLOCOS HOME =================== */\r\n$(function () {\r\n $(\".carrosel-blocos\").slick({\r\n slidesToShow: 4,\r\n slidesToScroll: 1,\r\n infinite: true,\r\n autoplay: true,\r\n autoplaySpeed: 5000,\r\n responsive: [\r\n {\r\n breakpoint: 1199,\r\n settings: {\r\n slidesToShow: 3,\r\n autoplay: false,\r\n adaptiveHeight: true,\r\n },\r\n },\r\n {\r\n breakpoint: 760,\r\n settings: {\r\n slidesToShow: 1,\r\n autoplay: false,\r\n adaptiveHeight: true,\r\n },\r\n },\r\n ],\r\n });\r\n\r\n // Cancela o evento de click nos blocos sem link\r\n $('.bloco-item[href=\"#\"]').on(\"click\", function (ev) {\r\n ev.preventDefault();\r\n });\r\n});\r\n","/* =================== BLOG HOME =================== */\r\n$(function () {\r\n $(\".carrosel-blog\").slick({\r\n slidesToShow: 3,\r\n slidesToScroll: 1,\r\n infinite: true,\r\n autoplay: true,\r\n adaptiveHeight: true,\r\n autoplaySpeed: 3000,\r\n responsive: [\r\n {\r\n breakpoint: 1199,\r\n settings: {\r\n slidesToShow: 2,\r\n },\r\n },\r\n {\r\n breakpoint: 760,\r\n settings: {\r\n slidesToShow: 1,\r\n },\r\n },\r\n ],\r\n });\r\n});\r\n","/* =================== CLIENTES =================== */\r\n$(function () {\r\n $(\".carrosel-clientes\").slick({\r\n slidesToShow: 6,\r\n slidesToScroll: 6,\r\n infinite: true,\r\n autoplay: true,\r\n autoplaySpeed: 5000,\r\n responsive: [\r\n {\r\n breakpoint: 1119,\r\n settings: {\r\n slidesToShow: 4,\r\n slidesToScroll: 4,\r\n },\r\n },\r\n {\r\n breakpoint: 760,\r\n settings: {\r\n slidesToShow: 2,\r\n slidesToScroll: 2,\r\n },\r\n },\r\n ],\r\n });\r\n});\r\n","/* =================== DEPOIMENTOS =================== */\r\n$(function () {\r\n const slideItems = $(\".carrosel-depoimentos .depoimento-wrp\").length;\r\n const slideDots = slideItems > 3;\r\n $(\".carrosel-depoimentos\").slick({\r\n slidesToShow: 3,\r\n slidesToScroll: 3,\r\n infinite: true,\r\n autoplay: false,\r\n autoplaySpeed: 5000,\r\n adaptiveHeight: true,\r\n arrows: false,\r\n dots: slideDots,\r\n responsive: [\r\n {\r\n breakpoint: 1199,\r\n settings: {\r\n slidesToShow: 2,\r\n slidesToScroll: 2,\r\n },\r\n },\r\n {\r\n breakpoint: 760,\r\n settings: {\r\n slidesToShow: 1,\r\n slidesToScroll: 1,\r\n dots: true,\r\n },\r\n },\r\n ],\r\n });\r\n AOS.refresh();\r\n});\r\n","/* =================== CONTADORES =================== */\r\n(function () {\r\n \"use strict\";\r\n\r\n // Variáveis\r\n const $container = $(\".contadores-lista\");\r\n const $counters = $(\".contador-num\");\r\n const duration = 2000;\r\n\r\n // Verifica os contadores existem\r\n if ($container.length > 0) {\r\n // Inicia os contadores quando estiverem visíveis na tela\r\n doWhenVisible($container, function () {\r\n $counters.each(function () {\r\n // Variáveis\r\n const $el = $(this);\r\n const countTo = $el.attr(\"data-count\");\r\n\r\n // Contador\r\n $({\r\n countCur: $el.text(),\r\n }).animate(\r\n {\r\n countCur: countTo,\r\n },\r\n {\r\n duration: duration,\r\n easing: \"swing\",\r\n step: function () {\r\n $el.text(Math.floor(this.countCur));\r\n },\r\n complete: function () {\r\n $el.text(this.countCur);\r\n },\r\n }\r\n );\r\n });\r\n });\r\n }\r\n})();\r\n","$(function () {\r\n $(\".faq-pergunta\").on(\"click\", function () {\r\n $(this).next(\".faq-resposta\").slideToggle();\r\n $(this).parent(\".faq\").toggleClass(\"open\");\r\n });\r\n});\r\n","/* =================== FOTOS HOME =================== */\r\n$(function () {\r\n $(\".carrosel-fotos\").slick({\r\n slidesToShow: 4,\r\n slidesToScroll: 1,\r\n infinite: true,\r\n autoplay: true,\r\n autoplaySpeed: 5000,\r\n responsive: [\r\n {\r\n breakpoint: 1199,\r\n settings: {\r\n slidesToShow: 3,\r\n },\r\n },\r\n {\r\n breakpoint: 760,\r\n settings: {\r\n slidesToShow: 2,\r\n },\r\n },\r\n ],\r\n });\r\n});\r\n","/* =================== VÍDEOS HOME =================== */\r\n$(function () {\r\n $(\".carrosel-videos\").slick({\r\n slidesToShow: 3,\r\n slidesToScroll: 1,\r\n infinite: true,\r\n autoplay: false,\r\n autoplaySpeed: 5000,\r\n responsive: [\r\n {\r\n breakpoint: 1199,\r\n settings: {\r\n slidesToShow: 1,\r\n },\r\n },\r\n {\r\n breakpoint: 760,\r\n settings: {\r\n slidesToShow: 1,\r\n },\r\n },\r\n ],\r\n });\r\n});\r\n","/* =================== ANIMATE SCROLL =================== */\r\n\r\n// Adiciona uma classe aos elementos após o mesmos serem exibidos na tela\r\nfunction animeScroll(target, animationClass) {\r\n var documentTop = $(document).scrollTop();\r\n var windowHeight = $(window).height();\r\n var offset = windowHeight - windowHeight / 4;\r\n\r\n target.each(function () {\r\n eleTop = $(this).offset().top;\r\n if (documentTop > eleTop - offset) {\r\n $(this).addClass(animationClass);\r\n }\r\n });\r\n}\r\n\r\n// Variáveis\r\nconst scrollAnimationOffset = 100;\r\nconst scrollAnimationDebounce = 50;\r\n\r\n// Executa uma acão quando o elemento estiver visível na tela\r\nfunction doWhenVisible($el, callback) {\r\n const $window = $(window);\r\n let executed = false;\r\n $window.on(\r\n \"scroll\",\r\n debounce(function () {\r\n checkVisibility();\r\n }, scrollAnimationDebounce)\r\n );\r\n // Verifica se o elemento está visível na tela\r\n function checkVisibility() {\r\n if (isElVisible($el)) {\r\n if (!executed) {\r\n callback();\r\n executed = true;\r\n }\r\n } else {\r\n executed = false;\r\n }\r\n }\r\n checkVisibility();\r\n}\r\n\r\n// Verifica se o elemento está visível na tela\r\nfunction isElVisible($el) {\r\n const $window = $(window);\r\n const scrollTop = $window.scrollTop();\r\n const windowHeight = $window.height();\r\n const eleTop = $el.offset().top;\r\n return scrollTop + windowHeight > eleTop + scrollAnimationOffset;\r\n}\r\n"]}