import{r as o,j as i}from"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a71.js";import{r as n}from"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a7124.js";import{u as l}from"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a7120.js";import{X as c,Y as m}from"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a7111.js";import{u as p}from"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a7162.js";import{X as d,A as x}from"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a719.js";import"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a717.js";import"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a718.js";import"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a7119.js";import"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a714.js";import"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a713.js";import"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a712.js";import"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a7110.js";import"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a716.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};
