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_15_728248e3-b235-44ed-9cd5-d3199fba8c4f10.js";import{a as l}from"./v_7_4_2_15_728248e3-b235-44ed-9cd5-d3199fba8c4f4.js";import{u as o}from"./v_7_4_2_15_728248e3-b235-44ed-9cd5-d3199fba8c4f19.js";import{a as d}from"./v_7_4_2_15_728248e3-b235-44ed-9cd5-d3199fba8c4f58.js";import"./v_7_4_2_15_728248e3-b235-44ed-9cd5-d3199fba8c4f18.js";import"./v_7_4_2_15_728248e3-b235-44ed-9cd5-d3199fba8c4f6.js";import"./v_7_4_2_15_728248e3-b235-44ed-9cd5-d3199fba8c4f8.js";import"./v_7_4_2_15_728248e3-b235-44ed-9cd5-d3199fba8c4f.js";import"./v_7_4_2_15_728248e3-b235-44ed-9cd5-d3199fba8c4f5.js";import"./v_7_4_2_15_728248e3-b235-44ed-9cd5-d3199fba8c4f7.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};
