1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,14764,e=>{"use strict";let t=(0,e.i(75254).default)("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);e.s(["Send",0,t],14764)},63488,e=>{"use strict";let t=(0,e.i(75254).default)("mail",[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]]);e.s(["Mail",0,t],63488)},97480,58268,e=>{"use strict";var t=e.i(43476),a=e.i(71645),r=e.i(63488),i=e.i(14764);let s="I agree to receive the Prague Daily News email newsletter and accept the Privacy Policy. I can unsubscribe at any time.",n="pd_newsletter_signup",l="pd_nl_signup";function o(e){try{window.localStorage.setItem(n,e)}catch{}let t=new Date(Date.now()+15552e6).toUTCString();document.cookie=`${l}=${e}; expires=${t}; path=/; SameSite=Lax`}e.s(["newsletterHasOptedOut",0,function(){try{if(window.localStorage.getItem(n))return!0}catch{}return document.cookie.split("; ").some(e=>e.startsWith(`${l}=`))},"rememberNewsletterPref",0,o],58268),e.s(["NewsletterSignupForm",0,function({sourceCampaign:e,compact:n=!1,onSuccess:l}){let[c,d]=(0,a.useState)(""),[u,m]=(0,a.useState)(!1),[p,x]=(0,a.useState)("idle"),[h,b]=(0,a.useState)("");async function f(t){if(t.preventDefault(),"loading"!==p){if(b(""),!u)return void b("Please tick the box to confirm you want the newsletter.");x("loading");try{let t=await fetch("/api/newsletter/subscribe",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:c,sourceCampaign:e,sourcePath:window.location.pathname})}),a=await t.json().catch(()=>({}));if(!t.ok){x("error"),b(429===t.status?"Too many attempts. Please try again in a few minutes.":t.status>=500?"Newsletter sign-up is temporarily unavailable. Please try again later.":"string"==typeof a?.error?a.error:"Something went wrong. Please try again.");return}o("subscribed"),x(a?.status==="already_subscribed"?"already":"success"),l?.()}catch{x("error"),b("Network error. Please try again.")}}}return"success"===p?(0,t.jsxs)("div",{className:"rounded-xl border border-accent/30 bg-accent/10 px-4 py-3.5 text-sm leading-6 text-white",children:[(0,t.jsx)("span",{className:"font-semibold text-accent",children:"Almost there."})," Check your inbox and click the link to confirm your subscription. (It can take a minute â and check spam just in case.)"]}):"already"===p?(0,t.jsx)("div",{className:"rounded-xl border border-border bg-surface/70 px-4 py-3.5 text-sm leading-6 text-muted-foreground",children:"Youâre already subscribed â thanks for reading Prague Daily News."}):(0,t.jsxs)("form",{onSubmit:f,noValidate:!0,className:"w-full",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-2.5 sm:flex-row",children:[(0,t.jsxs)("div",{className:"relative w-full min-w-0 sm:flex-1",children:[(0,t.jsx)(r.Mail,{className:"pointer-events-none absolute left-3.5 top-1/2 h-[18px] w-[18px] -translate-y-1/2 text-muted-foreground","aria-hidden":"true"}),(0,t.jsx)("input",{type:"email",required:!0,value:c,onChange:e=>d(e.target.value),disabled:"loading"===p,placeholder:"[email protected]",autoComplete:"email","aria-label":"Email address",className:"h-12 w-full rounded-xl border border-border bg-background pl-11 pr-4 text-sm text-white placeholder:text-muted-foreground focus:border-accent focus:outline-none disabled:opacity-60"})]}),(0,t.jsxs)("button",{type:"submit",disabled:"loading"===p,className:"inline-flex h-12 shrink-0 items-center justify-center gap-2 rounded-xl bg-accent px-6 text-sm font-bold text-accent-foreground transition-opacity hover:opacity-90 disabled:opacity-60",children:[(0,t.jsx)(i.Send,{className:"h-[18px] w-[18px]","aria-hidden":"true"}),"loading"===p?"Subscribingâ¦":"Subscribe"]})]}),(0,t.jsxs)("label",{className:"mt-3 flex cursor-pointer items-start gap-2.5 text-xs leading-5 text-muted-foreground",children:[(0,t.jsx)("input",{type:"checkbox",checked:u,onChange:e=>m(e.target.checked),className:"mt-0.5 h-4 w-4 shrink-0 accent-[var(--accent)]","aria-label":"Consent to receive the newsletter"}),(0,t.jsxs)("span",{children:[s.split("Privacy Policy")[0],(0,t.jsx)("a",{href:"/privacy-policy/",className:"text-accent underline underline-offset-2",children:"Privacy Policy"}),s.split("Privacy Policy").slice(1).join("Privacy Policy")]})]}),n?null:(0,t.jsx)("p",{className:"mt-2 text-xs leading-5 text-muted-foreground
1/80",children:"Double opt-in: youâll get a confirmation email and arenât subscribed until you click the link."}),h?(0,t.jsx)("p",{className:"mt-2 text-xs font-medium text-red-400",children:h}):null]})}],97480)},2868,e=>{"use strict";var t=e.i(43476),a=e.i(71645),r=e.i(18566),i=e.i(97480),s=e.i(58268);function n(e){return e.startsWith("/admin")||e.startsWith("/newsletter")||"/mobile-app"===e||e.startsWith("/mobile-app/")}e.s(["NewsletterPopup",0,function(){let e=(0,r.usePathname)(),[l,o]=(0,a.useState)(!1);function c(){(0,s.rememberNewsletterPref)("dismissed"),o(!1)}return((0,a.useEffect)(()=>{if(n(window.location.pathname)||(0,s.newsletterHasOptedOut)())return;let e=window.setTimeout(()=>{let e;e=window.Capacitor,document.documentElement.classList.contains("pdn-native-app")||e?.isNativePlatform?.()===!0||n(window.location.pathname)||(0,s.newsletterHasOptedOut)()||o(!0)},25e3);return()=>window.clearTimeout(e)},[]),(0,a.useEffect)(()=>{if(!l)return;let e=e=>{"Escape"===e.key&&((0,s.rememberNewsletterPref)("dismissed"),o(!1))};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[l]),!l||n(e??""))?null:(0,t.jsx)("div",{role:"dialog","aria-modal":"true","aria-label":"Subscribe to the Prague Daily News newsletter",onClick:c,style:{background:"rgba(0,0,0,0.7)"},className:"fixed inset-0 z-[100] flex items-end justify-center p-4 sm:items-center",children:(0,t.jsxs)("div",{onClick:e=>e.stopPropagation(),className:"relative w-full max-w-md rounded-2xl border border-border bg-surface p-6 sm:max-w-xl sm:p-8",children:[(0,t.jsx)("button",{type:"button",onClick:c,"aria-label":"Close",className:"absolute right-4 top-4 text-2xl leading-none text-muted-foreground transition-colors hover:text-white",children:"Ã"}),(0,t.jsx)("div",{className:"text-[11px] font-semibold uppercase tracking-[0.22em] text-accent",children:"Prague Daily News"}),(0,t.jsx)("h2",{className:"mt-2 text-2xl font-bold leading-tight text-white",children:"Get Pragueâs Daily News in Your Inbox"}),(0,t.jsx)("p",{className:"mt-2 text-sm leading-6 text-muted-foreground",children:"The five stories Prague is reading each morning â news, food & drink, culture and whatâs on. Free, and you can unsubscribe anytime."}),(0,t.jsx)("div",{className:"mt-5",children:(0,t.jsx)(i.NewsletterSignupForm,{sourceCampaign:"popup"})})]})})}])},75376,e=>{e.n(e.i(2868))}]);
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.