import{r as o,j as i}from"./v_7_4_2_25_48461181-0d14-4d2a-b9c3-5de50369a90b.js";import{r as n}from"./v_7_4_2_25_48461181-0d14-4d2a-b9c3-5de50369a90b24.js";import{u as l}from"./v_7_4_2_25_48461181-0d14-4d2a-b9c3-5de50369a90b20.js";import{X as c,Y as m}from"./v_7_4_2_25_48461181-0d14-4d2a-b9c3-5de50369a90b11.js";import{u as p}from"./v_7_4_2_25_48461181-0d14-4d2a-b9c3-5de50369a90b62.js";import{X as d,A as x}from"./v_7_4_2_25_48461181-0d14-4d2a-b9c3-5de50369a90b9.js";import"./v_7_4_2_25_48461181-0d14-4d2a-b9c3-5de50369a90b7.js";import"./v_7_4_2_25_48461181-0d14-4d2a-b9c3-5de50369a90b8.js";import"./v_7_4_2_25_48461181-0d14-4d2a-b9c3-5de50369a90b19.js";import"./v_7_4_2_25_48461181-0d14-4d2a-b9c3-5de50369a90b4.js";import"./v_7_4_2_25_48461181-0d14-4d2a-b9c3-5de50369a90b3.js";import"./v_7_4_2_25_48461181-0d14-4d2a-b9c3-5de50369a90b2.js";import"./v_7_4_2_25_48461181-0d14-4d2a-b9c3-5de50369a90b10.js";import"./v_7_4_2_25_48461181-0d14-4d2a-b9c3-5de50369a90b6.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=l(a=>a.language),{active_inbox_notify:e,closeNotificacoes_inbox:r,setNotificacoes_inboxVisible:s}=n(p(a=>({active_inbox_notify:a.active_inbox_notify,closeNotificacoes_inbox:a.closeNotificacoes_inbox,setNotificacoes_inboxVisible:a.setNotificacoes_inboxVisible})));return o.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(c,{size:24,className:"animate__animated animate__pulse animate__infinite"}),e.type==="ALERT"&&i.jsx(m,{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};
