1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4149],{50411:(e,t,r)=>{r.r(t),r.d(t,{SimpleAnnouncementBarBlock:()=>a});var n=r(26811),o=r(88621);let a=e=>(0,n.Y)(o.v,{...e})},88583:(e,t,r)=>{r.d(t,{A:()=>o});var n=r(75834);let o=function(e){(0,n.useEffect)(e,[])}},88621:(e,t,r)=>{r.d(t,{m:()=>y,v:()=>v});var n=r(26811),o=r(75834),a=r(93840),i=r(68889),l=r(76721),d=r(20832),u=r(81598),s=r(61752),c=r(92446),h=r(97605);let m={bottom:{sm:.5,lg:8.5},top:{sm:.5+h.uF,lg:8.5+h.uF}},f={bottom:{sm:.5,lg:7.75},top:{sm:.5+h.uF,lg:7.75+h.uF}},g={CloseButton:(0,d.A)(u.$n,{shouldForwardProp:e=>"fontColorMode"!==e,target:"esqd3kl0"})("padding:1rem;border:0;min-width:3rem;background:none;color:",e=>"dark"===e.fontColorMode?"rgb(var(--theme-text-dark-low))":"rgb(var(--theme-text-light-high))",";:hover,:active,:focus{background:none;color:",e=>"dark"===e.fontColorMode?"rgb(var(--theme-text-dark-high))":"rgb(var(--theme-text-light-solid))",";box-shadow:",e=>"dark"===e.fontColorMode?"0 0 0 4px rgba(var(--theme-surface-darkgrey), 0.24)":"0 0 0 4px rgba(var(--theme-snow), 0.24)",";}"),Container:(0,d.A)(s.mc,{shouldForwardProp:e=>"verticalSpacingSize"!==e,target:"esqd3kl1"})("position:fixed;",e=>{let{verticalPosition:t,verticalSpacingSize:r}=e;return"".concat(t,": ").concat(m[t][r],"rem;")}," left:50%;transform:translateX(-50%);z-index:999;width:95%;max-width:",c.PI.maxWidths.lg,";border-radius:var(--theme-border-radius);border:1px solid rgba(var(--theme-surface-silver));padding:1rem 1.25rem;.announcement-bar-content{display:flex;align-items:center;justify-content:space-between;max-width:unset;gap:0.125rem;padding:0;}",c.PI.media.lg,"{",e=>{let{verticalPosition:t,verticalSpacingSize:r}=e;return"".concat(t,": ").concat(f[t][r],"rem;")},"}")},p={Root:function(e){let{children:t,backgroundColor:r,background:o="primary",colorModifier:a="light",verticalPosition:i="bottom",bottomSpacing:d="sm",handleClose:u}=e;return(0,n.FD)(g.Container,{contentClassName:"announcement-bar-content",backgroundColor:o,backgroundColorHex:r,verticalPosition:i,verticalSpacingSize:d,children:[t,(0,n.Y)(g.CloseButton,{onClick:u,fontColorMode:a,"aria-label":"Fechar aviso",modifier:"solid-invert",children:(0,n.Y)(l.I,{icon:"close",width:20,height:20})})]})}},v=e=>{let{message:t,colorModifier:r="light",...l}=e,[d,u]=(0,o.useState)(!1),s=(0,a.vU)(r);return d?null:(0,n.Y)(p.Root,{...l,handleClose:()=>{u(!0)},colorModifier:r,children:(0,n.Y)(i.o5,{tag:"div",dark:"medium",html:t,light:s})})};var b=r(88583),k=r(46225),w=r(95141);let y=e=>{let{message:t,persistentState:r,colorModifier:l="light",...d}=e,{state:u,createPersistentState:s}=function(e){let{cookies:t}=e,{asPath:r}=(0,k.useRouter)();return{state:t.some(e=>{let{name:t,value:r}=e,n=w.W.get(t);return!!n&&n===r}),createPersistentState:()=>{let e=t.find(e=>{let{isDefault:t}=e;return!!t});if(!e)return;let{name:n,value:o}=e,a=new Date;a.setMonth(a.getMonth()+11),w.W.set(n,o,a.toUTCString(),r)},disablePersistentState:()=>t.forEach(e=>{let{name:t}=e;w.W.delete(t)})}}({cookies:r.cookies}),[c,h]=(0,o.useState)(!0),m=(0,a.vU)(l);return((0,b.A)(()=>{(!r.allowPersistentState||!u)&&(r.allowPersistentState&&u||h(!1))}),c)?null:(0,n.Y)(p.Root,{...d,colorModifier:l,handleClose:()=>{h(!0),s()},children:(0,n.Y)(i.o5,{tag:"div",dark:"medium",html:t,light:m})})}},91935:(e,t,r)=>{r.d(t,{HD:()=>h});var n=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},o=new WeakMap,a=new WeakMap,i={},l=0,d=function(e){return e&&(e.host||d(e.parentNode))},u=function(e,t,r,n){var u=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var r=d(e);return r&&t.contains(r)?r:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});i[r]||(i[r]=new WeakMap);var s=i[r],c=[],h=new Set,m=new Set(u),f=function(e){!e||h.has(e)||(h.add(e),f(e.parentNode))};u.forEach(f);var g=function(e){!e||m.has(e)||Array.prototype.forEach.call(e.children,function(e){if(h.has(e))g(e);else try{var t=e.getAttribute(n),i=null!==t&&"false"!==t,l=(o.get(e)||0)+1,d=(s.get(e)||0)+1;o.set(e,l),s.set(e,d),c.push(e),1===l&&i&&a.set(e,!0),1===d&&e.setAttribute(r,"true"),i||e.setAttribute(n,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};
1return g(t),h.clear(),l++,function(){c.forEach(function(e){var t=o.get(e)-1,i=s.get(e)-1;o.set(e,t),s.set(e,i),t||(a.has(e)||e.removeAttribute(n),a.delete(e)),i||e.removeAttribute(r)}),--l||(o=new WeakMap,o=new WeakMap,a=new WeakMap,i={})}},s=function(e,t,r){void 0===r&&(r="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),a=t||n(e);return a?(o.push.apply(o,Array.from(a.querySelectorAll("[aria-live]"))),u(o,a,r,"aria-hidden")):function(){return null}},c=function(e,t,r){void 0===r&&(r="data-inert-ed");var o=t||n(e);return o?u(e,o,r,"inert"):function(){return null}},h=function(e,t,r){return void 0===r&&(r="data-suppressed"),("undefined"!=typeof HTMLElement&&HTMLElement.prototype.hasOwnProperty("inert")?c:s)(e,t,r)}}}]); 2//# sourceMappingURL=4149.131132254f171e24.js.map
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.