import{Y as i,j as e,Z as n,$ as x,a0 as p,X as g,a1 as u}from"./v_7_4_2_16_364f475f-21c1-4d89-bf17-70efc8c405b710.js";import{a as l}from"./v_7_4_2_16_364f475f-21c1-4d89-bf17-70efc8c405b74.js";import{u as o}from"./v_7_4_2_16_364f475f-21c1-4d89-bf17-70efc8c405b719.js";import{a as d}from"./v_7_4_2_16_364f475f-21c1-4d89-bf17-70efc8c405b758.js";import"./v_7_4_2_16_364f475f-21c1-4d89-bf17-70efc8c405b718.js";import"./v_7_4_2_16_364f475f-21c1-4d89-bf17-70efc8c405b76.js";import"./v_7_4_2_16_364f475f-21c1-4d89-bf17-70efc8c405b78.js";import"./v_7_4_2_16_364f475f-21c1-4d89-bf17-70efc8c405b7.js";import"./v_7_4_2_16_364f475f-21c1-4d89-bf17-70efc8c405b75.js";import"./v_7_4_2_16_364f475f-21c1-4d89-bf17-70efc8c405b77.js";function k({notificacao:s}){const r=o(t=>t.language),[a,m]=l.useState("");return l.useEffect(()=>{(async()=>{if(s.url_img&&s.url_img.length!==0){const t=await i(s.url_img);m(t)}})()},[]),e.jsxs("div",{className:"min-w-[450px] max-w-[600px] max-h-[99vh] overflow-y-auto text-center grid gap-4 py-1",children:[e.jsxs("div",{className:"flex justify-start",children:[e.jsxs("div",{children:[s.type==="INFO"&&e.jsx(n,{className:"h-8 w-8 text-blue-500"}),s.type==="ALERT"&&e.jsx(x,{className:"h-8 w-8 text-red-500"}),s.type==="PROMOTION"&&e.jsx(p,{className:"h-8 w-8 text-yellow-500"})]}),e.jsx("div",{className:"m-auto max-w-[540px] w-full",children:e.jsx(g,{className:"px-4",children:s.title})})]}),a.length!==0&&e.jsx("img",{className:"h-[256px] w-[588px]",draggable:!1,src:a,alt:"promotional_picture"}),e.jsx(u,{children:e.jsx("p",{className:"text-justify pr-3",dangerouslySetInnerHTML:{__html:s.statement.replace(/\_(.*?)\_/g,'<strong class="italic">$1</strong>').replace(/\*(.*?)\*/g,"<strong>$1</strong>").replace(/\n/g,"<br>")}})}),s.link&&e.jsx("div",{children:e.jsxs("a",{className:"link flex gap-1 items-center text-[var(--primaria)]",href:s.link,target:"_blank",children:[e.jsx(d,{strokeWidth:3,className:"h-5 w-5 text-[var(--primaria)] pulse"}),s.btnName.length!==0?s.btnName:r.cliqueAqui]})})]})}export{k as default};
