import{j as e,x as t,y as s}from"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e10.js";import{r as n}from"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e22.js";import{u as o}from"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e19.js";import{X as l,A as m}from"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e8.js";import"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e18.js";import"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e4.js";import"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e.js";import"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e7.js";import"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e6.js";import"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e2.js";import"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e3.js";import"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e9.js";import"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e5.js";const c={INFO:"bg-sky-300",ALERT:"bg-red-400",PROMOTION:"bg-warning"},p={INFO:"hover:bg-info",ALERT:"hover:bg-error",PROMOTION:"hover:bg-warning"};function I(){const{active_inbox_notify:a,closeNotificacoes_inbox:r}=n(),{language:i}=o();return e.jsx("div",{className:"bg-[var(--drawer-background-deep)]  py-[10px] ",children:e.jsxs("div",{className:"px-5 py-1 h3bz2vbyshadow-sm animate__animated animate__zoomIn border border-solid border-[var(--border-list)] "+c[a.type],children:[e.jsx("div",{className:"absolute right-0",children:e.jsx("div",{className:"relative top-[-2px] right-[2px] pulse cursor-pointer",onClick:r,children:e.jsx(l,{size:20,className:"text-[var(--butterbar-primary)]"})})}),e.jsxs("div",{className:"flex rounded-2xl p-2",children:[e.jsx("div",{className:"relative",children:e.jsxs("div",{className:"absolute flex-1 right-[-1px] top-[-8px] text-[var(--butterbar-primary)]",children:[a.type==="INFO"&&e.jsx(t,{size:24,className:"animate__animated animate__pulse animate__infinite"}),a.type==="ALERT"&&e.jsx(s,{size:24,className:"animate__animated animate__pulse animate__infinite"}),a.type==="PROMOTION"&&e.jsx(m,{size:24,className:"animate__animated animate__pulse animate__infinite"})]})}),e.jsxs("div",{className:"flex items-center flex-col gap-2 flex-auto pr-[2px] pl-2",children:[e.jsx("p",{className:"text-[var(--butterbar-primary)]",dangerouslySetInnerHTML:{__html:a.statement.replace(/\_(.*?)\_/g,'<strong class="italic">$1</strong>').replace(/\*(.*?)\*/g,"<strong>$1</strong>").replace(/\n/g,"<br>")}}),a.link.length!==0&&e.jsx("div",{className:"badge badge-outline border-solid pulse cursor-pointer text-[var(--butterbar-primary)] border-[var(--butterbar-primary)] "+p[a.type],onClick:()=>window.open(a.link,"_blank"),children:a.btnName.length!==0?a.btnName:i.cliqueAqui})]})]})]})})}export{I as default};
