PageSourceSearch

https://www.bs9.com.br/build/assets/app-DYg1f0oU.js

js bs9.com.br collected 2026-10-04 11:21:55 UTC 4,425 bytes, 9 lines download raw bytes

1function e(){document.querySelectorAll(`[data-webflow-gallery]`).forEach(e=>{if(e.dataset.galleryInit)return;e.dataset.galleryInit=`1`;let t=e.querySelector(`.galeria.w-slider`),n=t?.querySelector(`.w-slider-nav`),r=e.querySelector(`.galeria_thumb`),i=Array.from(e.querySelectorAll(`[data-gallery-index]`)),a=e.querySelectorAll(`.captions-container .caption_texto`),o=e.querySelector(`.image-counter`);if(!t||!n||!i.length)return;function s(e){o&&(o.textContent=`${e+1} / ${i.length}`),i.forEach((t,n)=>{let r=n===e;t.classList.toggle(`is-active`,r),t.setAttribute(`aria-selected`,String(r))});let t=i[e];if(r&&t){let e=r.getBoundingClientRect(),n=t.getBoundingClientRect(),i=r.scrollLeft+n.left-e.left-(r.clientWidth-n.width)/2;r.scrollTo({left:Math.max(0,i),behavior:`smooth`})}a.forEach(t=>{let n=Number(t.dataset.index)===e;t.classList.toggle(`is-active`,n),t.setAttribute(`aria-hidden`,String(!n))})}function c(){let e=Array.from(n.querySelectorAll(`.w-slider-dot`)).findIndex(e=>e.classList.contains(`w-active`));return e>=0?e:0}function l(e,t=0){let r=n.querySelectorAll(`.w-slider-dot`);if(r[e]){r[e].click(),s(e);return}t<10&&window.setTimeout(()=>l(e,t+1),50)}i.forEach((e,t)=>{e.addEventListener(`click`,()=>l(t))}),new MutationObserver(()=>s(c())).observe(n,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`class`]}),window.requestAnimationFrame(()=>s(c()))})}window.initGalleries=e,typeof MutationObserver<`u`&&new MutationObserver(t=>{for(let{addedNodes:n}of t)for(let t of n)if(t.nodeType===1&&(t.matches?.(`[data-webflow-gallery]`)||t.querySelector?.(`[data-webflow-gallery]`))){e();return}}).observe(document.body,{childList:!0,subtree:!0});var t=`enquete_voter_id`,n={already_voted:`Você já votou nesta enquete.`,poll_not_active:`Esta enquete não está mais disponível.`,option_not_in_poll:`Opção inválida. Atualize a página e tente novamente.`,rate_limited:`Muitas tentativas. Aguarde um instante e tente novamente.`};function r(e){document.cookie=`${t}=${e}; path=/; max-age=${3600*24*365}; samesite=lax`}function i(){let e=localStorage.getItem(t);return e||(e=crypto.randomUUID(),localStorage.setItem(t,e)),r(e),e}function a(e){return`enquete_votada_${e}`}function o(e,t){let n=e.querySelector(`[data-enquete-mensagem]`);n&&(n.textContent=t)}function s(e,t,n){let r=e.querySelector(`[data-enquete-lista]`);
1if(!r)return;let i=t.reduce((e,t)=>e+t.votes_count,0);r.innerHTML=t.map(e=>{let t=i>0?Math.round(e.votes_count/i*100):0;return`
2            <li class="item-resultado${String(e.id)===String(n)?` is-selecionada`:``}">
3                <p class="item-pergunta">${e.description}</p>
4                <div class="barra-resultado">
5                    <div class="barra-resultado-preenchida" style="width: ${t}%"></div>
6                </div>
7                <span class="percentual-resultado">${t}%</span>
8            </li>
9        `}).join(``)}async function c(e){let t=e.closest(`[data-enquete]`),r=e.dataset.pollId,c=e.querySelector(`input[name="poll_option_id"]:checked`);if(!c){o(t,`Selecione uma opção para participar.`);return}let l=e.querySelector(`[data-enquete-submit]`);l.disabled=!0,o(t,`Enviando seu voto...`);try{let u=await fetch(e.dataset.voteUrl,{method:`POST`,headers:{"Content-Type":`application/json`,Accept:`application/json`},body:JSON.stringify({poll_option_id:c.value,voter_id:i()})}),d=await u.json();if(!u.ok){l.disabled=!1,o(t,n[d.reason]??`Não foi possível registrar seu voto. Tente novamente.`);return}localStorage.setItem(a(r),`1`),l.remove(),e.querySelectorAll(`input[name="poll_option_id"]`).forEach(e=>{e.disabled=!0}),Array.isArray(d.results)&&d.results.length>0?(s(t,d.results,c.value),o(t,`Obrigado por participar!`)):o(t,`Você já votou. Os resultados serão exibidos após o encerramento da enquete.`)}catch{l.disabled=!1,o(t,`Não foi possível registrar seu voto. Tente novamente.`)}}function l(){document.querySelectorAll(`[data-enquete]`).forEach(e=>{if(e.dataset.enqueteInit)return;e.dataset.enqueteInit=`1`;let t=e.querySelector(`[data-enquete-form]`);if(t){if(localStorage.getItem(a(t.dataset.pollId))){i(),o(e,`Você já participou desta enquete. Obrigado!`),t.querySelector(`[data-enquete-submit]`)?.remove(),t.querySelectorAll(`input[name="poll_option_id"]`).forEach(e=>{e.disabled=!0});return}t.addEventListener(`submit`,e=>{e.preventDefault(),c(t)})}})}window.initEnquete=l,document.addEventListener(`DOMContentLoaded`,()=>{e(),l()});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.