1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[32681],{64961:(t,e,n)=>{n.r(e),n.d(e,{StructureNewsletterbtn:()=>c,default:()=>u});var r=n(6029),a=n(61604),s=n.n(a),o=n(55729),i=n(81163);let l="mps-nl-lastvisit",c=({label:t,url:e,target:n,appendToUrl:a,baseUrl:c})=>{let[u,f]=(0,o.useState)(!1);async function S(){let t=localStorage.getItem(l),e=t?s()(t):s()().subtract(1,"month"),n=s()(e).add(1,"hour"),r=!1,a=!1;e.isSame(s()(),"day")&&s()().isAfter(n)?(r=await d(e.toISOString()),a=!0):e.isSame(s()(),"day")&&s()().isBefore(n)?r=!0:e.isBefore(s()().startOf("day"))&&(r=await d(e.toISOString()),a=!0),r&&(f(!0),a&&localStorage.setItem(l,s()().toISOString()))}async function d(t){try{let{latestDate:e}=await fetch(c+"/mail/newsletter-notify-state",{headers:{"Content-Type":"application/json"},method:"POST"}).then(t=>t.json());return!!e&&s()(e).isAfter(t)}catch(t){return console.error(t),!1}}return(0,o.useEffect)(()=>{S()},[]),(0,r.jsx)(i.Button,{style:"greyInverted",icon:u?"point":null,iconPosition:"before",text:t,link:e,target:n})},u=c}}]);
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.