PageSourceSearch

https://japaratinga.al.gov.br/build/assets/PlatformNotificationPopup-BCvBwi4m.js

js japaratinga.al.gov.br collected 2026-10-02 22:55:20 UTC 3,281 bytes, 1 lines download raw bytes

1import{c as k,u as C,r as N,j as s}from"./app-CTaY8UJf.js";import{B as b}from"./button-DXCKLHtj.js";import{D as v,a as D,b as y,d as I,e as E}from"./dialog-BKzHwCpL.js";import O from"./external-link-CKJ9qIH2.js";import{B as S}from"./shield-check-CXJJ4XEh.js";function U(){const e=k.c(31),{platform_notification:t}=C().props,[j,w]=N.useState(!1);let f,p;e[0]!==t?(f=()=>{if(!t||!t.title)return;const x=`notif_dismissed_${encodeURIComponent(t.title)}`;if(!sessionStorage.getItem(x)){const _=setTimeout(()=>{w(!0)},600);return()=>clearTimeout(_)}},p=[t],e[0]=t,e[1]=f,e[2]=p):(f=e[1],p=e[2]),N.useEffect(f,p);let u;e[3]!==t?(u=()=>{if(t?.title){const x=`notif_dismissed_${encodeURIComponent(t.title)}`;sessionStorage.setItem(x,"true")}w(!1)},e[3]=t,e[4]=u):u=e[4];const l=u;if(!t||!t.title)return null;let i;e[5]!==l?(i=x=>!x&&l(),e[5]=l,e[6]=i):i=e[6];let a;e[7]!==t.image||e[8]!==t.title?(a=t.image&&s.jsx("div",{className:"w-full overflow-hidden bg-slate-950 flex items-center justify-center",children:s.jsx("img",{src:t.image,alt:t.title,className:"w-full h-auto max-h-[65vh] object-contain"})}),e[7]=t.image,e[8]=t.title,e[9]=a):a=e[9];let h;e[10]===Symbol.for("react.memo_cache_sentinel")?(h=s.jsxs("div",{className:"inline-flex items-center gap-1.5 rounded-full bg-amber-100 px-2.5 py-0.5 text-[11px] font-extrabold text-amber-800 dark:bg-amber-950/60 dark:text-amber-300 w-fit",children:[s.jsx(S,{className:"h-3.5 w-3.5"}),s.jsx("span",{children:"COMUNICADO OFICIAL"})]}),e[10]=h):h=e[10];let r;e[11]!==t.title?(r=s.jsx(v,{className:"text-xl font-black text-slate-900 dark:text-white leading-snug pt-1",children:t.title}),e[11]=t.title,e[12]=r):r=e[12];let o;e[13]!==t.description?(o=t.description&&s.jsx(D,{className:"text-xs text-slate-600 dark:text-slate-300 leading-relaxed pt-1 font-medium whitespace-pre-line max-h-60 overflow-y-auto",children:t.description}),e[13]=t.description,e[14]=o):o=e[14];let n;e[15]!==r||e[16]!==o?(n=s.jsxs(y,{className:"text-left space-y-1.5",children:[h,r,o]}),e[15]=r,e[16]=o,e[17]=n):n=e[17];let d;e[18]!==l||e[19]!==t.redirect_url?(d=s.jsx("div",{className:"flex flex-col gap-2 pt-2 sm:flex-row sm:items-center",children:t.redirect_url?s.jsxs(s.Fragment,{children:[s.jsx(b,{asChild:!0,className:"flex-1 rounded-xl text-xs font-bold shadow-md gap-2",onClick:l,children:s.jsxs("a",{href:t.redirect_url,target:"_blank",rel:"noopener noreferrer",children:[s.jsx("span",{children:"Saiba Mais / Acessar"}),s.jsx(O,{className:"h-3.5 w-3.5"})]})}),s.jsx(b,{variant:"outline",onClick:l,className:"rounded-xl text-xs font-semibold",children:"Fechar"})]}):s.jsx(b,{onClick:l,className:"w-full rounded-xl text-xs font-bold shadow-md",children:"Entendido"})}),e[18]=l,e[19]=t.redirect_url,e[20]=d):d=e[20];let c;e[21]!==n||e[22]!==d?(c=s.jsxs("div",{className:"p-6 space-y-4",children:[n,d]}),e[21]=n,e[22]=d,e[23]=c):c=e[23];let m;e[24]!==c||e[25]!==a?(m=s.jsxs(I,{className:"overflow-hidden rounded-3xl p-0 shadow-2xl sm:max-w-lg md:max-w-xl max-h-[90vh] overflow-y-auto border border-slate-200/80 bg-white dark:border-slate-800 dark:bg-slate-900",children:[a,c]}),e[24]=c,e[25]=a,e[26]=m):m=e[26];let g;return e[27]!==j||e[28]!==m||e[29]!==i?(g=s.jsx(E,{open:j,onOpenChange:i,children:m}),e[27]=j,e[28]=m,e[29]=i,e[30]=g):g=e[30],g}export{U as P};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.