import{j as i,$ as o,a0 as n}from"./v_7_4_2_23_80f0be4c-2624-48ff-84de-a733d033e3d610.js";import{a as l}from"./v_7_4_2_23_80f0be4c-2624-48ff-84de-a733d033e3d64.js";import{r as c}from"./v_7_4_2_23_80f0be4c-2624-48ff-84de-a733d033e3d623.js";import{u as m}from"./v_7_4_2_23_80f0be4c-2624-48ff-84de-a733d033e3d619.js";import{u as p}from"./v_7_4_2_23_80f0be4c-2624-48ff-84de-a733d033e3d661.js";import{X as d,A as x}from"./v_7_4_2_23_80f0be4c-2624-48ff-84de-a733d033e3d68.js";import"./v_7_4_2_23_80f0be4c-2624-48ff-84de-a733d033e3d618.js";import"./v_7_4_2_23_80f0be4c-2624-48ff-84de-a733d033e3d66.js";import"./v_7_4_2_23_80f0be4c-2624-48ff-84de-a733d033e3d67.js";import"./v_7_4_2_23_80f0be4c-2624-48ff-84de-a733d033e3d6.js";import"./v_7_4_2_23_80f0be4c-2624-48ff-84de-a733d033e3d69.js";import"./v_7_4_2_23_80f0be4c-2624-48ff-84de-a733d033e3d65.js";import"./v_7_4_2_23_80f0be4c-2624-48ff-84de-a733d033e3d62.js";import"./v_7_4_2_23_80f0be4c-2624-48ff-84de-a733d033e3d63.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};
