import{j as i,Z as o,$ as n}from"./v_7_4_2_18_ea7d0884-20ea-4e04-b6f3-cef449ac182f10.js";import{a as l}from"./v_7_4_2_18_ea7d0884-20ea-4e04-b6f3-cef449ac182f4.js";import{r as c}from"./v_7_4_2_18_ea7d0884-20ea-4e04-b6f3-cef449ac182f23.js";import{u as m}from"./v_7_4_2_18_ea7d0884-20ea-4e04-b6f3-cef449ac182f19.js";import{u as p}from"./v_7_4_2_18_ea7d0884-20ea-4e04-b6f3-cef449ac182f61.js";import{X as d,A as x}from"./v_7_4_2_18_ea7d0884-20ea-4e04-b6f3-cef449ac182f8.js";import"./v_7_4_2_18_ea7d0884-20ea-4e04-b6f3-cef449ac182f18.js";import"./v_7_4_2_18_ea7d0884-20ea-4e04-b6f3-cef449ac182f6.js";import"./v_7_4_2_18_ea7d0884-20ea-4e04-b6f3-cef449ac182f7.js";import"./v_7_4_2_18_ea7d0884-20ea-4e04-b6f3-cef449ac182f.js";import"./v_7_4_2_18_ea7d0884-20ea-4e04-b6f3-cef449ac182f9.js";import"./v_7_4_2_18_ea7d0884-20ea-4e04-b6f3-cef449ac182f5.js";import"./v_7_4_2_18_ea7d0884-20ea-4e04-b6f3-cef449ac182f2.js";import"./v_7_4_2_18_ea7d0884-20ea-4e04-b6f3-cef449ac182f3.js";const b={INFO:"bg-sky-300",ALERT:"bg-red-400",PROMOTION:"bg-warning"},_={INFO:"hover:bg-info",ALERT:"hover:bg-error",PROMOTION:"hover:bg-warning"};function A(){const t=m(a=>a.language),{active_inbox_notify:e,closeNotificacoes_inbox:r,setNotificacoes_inboxVisible:s}=c(p(a=>({active_inbox_notify:a.active_inbox_notify,closeNotificacoes_inbox:a.closeNotificacoes_inbox,setNotificacoes_inboxVisible:a.setNotificacoes_inboxVisible})));return l.useEffect(()=>{e.external_url&&e.external_url.length!==0&&(s(e.id),chrome.runtime.sendMessage({message:"promotional",path:e.external_url}))},[]),i.jsx("div",{className:"bg-[var(--drawer-background-deep)]  py-[10px] ",children:i.jsxs("div",{className:"px-5 py-1 h3bz2vbyshadow-sm animate__animated animate__zoomIn border border-solid border-[var(--border-list)] "+b[e.type],children:[i.jsx("div",{className:"absolute right-0",children:i.jsx("div",{className:"relative top-[-2px] right-[2px] pulse cursor-pointer",onClick:r,children:i.jsx(d,{size:20,className:"text-[var(--butterbar-primary)]"})})}),i.jsxs("div",{className:"flex rounded-2xl p-2",children:[i.jsx("div",{className:"relative",children:i.jsxs("div",{className:"absolute flex-1 right-[-1px] top-[-8px] text-[var(--butterbar-primary)]",children:[e.type==="INFO"&&i.jsx(o,{size:24,className:"animate__animated animate__pulse animate__infinite"}),e.type==="ALERT"&&i.jsx(n,{size:24,className:"animate__animated animate__pulse animate__infinite"}),e.type==="PROMOTION"&&i.jsx(x,{size:24,className:"animate__animated animate__pulse animate__infinite"})]})}),i.jsxs("div",{className:"flex items-center flex-col gap-2 flex-auto pr-[2px] pl-2",children:[i.jsx("p",{className:"text-[var(--butterbar-primary)]",dangerouslySetInnerHTML:{__html:e.statement.replace(/\_(.*?)\_/g,'<strong class="italic">$1</strong>').replace(/\*(.*?)\*/g,"<strong>$1</strong>").replace(/\n/g,"<br>")}}),e.link.length!==0&&i.jsx("div",{className:"badge badge-outline border-solid pulse cursor-pointer text-[var(--butterbar-primary)] border-[var(--butterbar-primary)] "+_[e.type],onClick:()=>window.open(e.link,"_blank"),children:e.btnName.length!==0?e.btnName:t.cliqueAqui})]})]})]})})}export{A as default};
