PageSourceSearch

https://kentro.com.br/assets/AtenderbemWebchat-CDcE7ilT.js

js kentro.com.br collected 2026-09-24 13:55:34 UTC 1,822 bytes, 2 lines download raw bytes

1import{r as l,j as m,p as f}from"./index-XrERYidG.js";function C(){const[h,s]=l.useState(!1);return l.useEffect(()=>{if(typeof window>"u")return;if(document.getElementById("atenderbem-webchat")){s(!0);return}let t=!1;const i=new WeakSet,b=e=>{if(i.has(e)||e.getAttribute("title"))return;const n=(e.getAttribute("src")||"").toLowerCase(),u=(e.id||"").toLowerCase();(n.includes("atenderbem")||n.includes("a-tend.online")||n.includes("omnichat")||n.includes("wbchat")||u.includes("omnichat")||u.includes("wbchat")||e.closest('[id*="omnichat" i],[id*="wbchat" i]')!==null)&&(e.setAttribute("title","Chat de atendimento Kentro"),i.add(e))},a=()=>{document.querySelectorAll("iframe").forEach(e=>b(e))};let o=null;const w=()=>{a(),o=new MutationObserver(()=>a()),o.observe(document.body,{childList:!0,subtree:!0})},r=()=>{if(t)return;t=!0,window.omniChatQueueId=425,window.omniChatDomain="kentrosistemas.atenderbem.com";const e=document.createElement("script");e.id="atenderbem-webchat",e.async=!0,e.src="https://wc.a-tend.online/omnichat.min.js",e.onload=()=>{s(!0),w()},(document.head||document.body).appendChild(e),c()},d=["pointerdown","keydown","touchstart","scroll"],c=()=>{d.forEach(e=>window.removeEventListener(e,r))};return d.forEach(e=>window.addEventListener(e,r,{once:!0,passive:!0})),window.__kentroLoadChat=r,()=>{c(),o?.disconnect()}},[]),h?null:m.jsx("button",{type:"button",onClick:()=>{const t=window.__kentroLoadChat;t&&t()},"aria-label":"Abrir chat de atendimento Kentro",className:"fixed bottom-5 right-5 z-40 hidden size-14 items-center justify-center rounded-full bg-[var(--mint)] text-[oklch(0.22_0.05_165)] shadow-elegant transition-transform hover:scale-110 md:inline-flex",children:m.jsx(f,{className:"size-6"})})}export{C as AtenderbemWebchat};
2//# sourceMappingURL=AtenderbemWebchat-CDcE7ilT.js.map

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.