PageSourceSearch

https://www.avaxrent.com/_next/static/chunks/15665.6a0676bfc99b46d5.js

js avaxrent.com collected 2026-10-09 00:40:41 UTC 5,812 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[15665],{15665:(e,a,t)=>{t.r(a),t.d(a,{default:()=>p});var s=t(11749),r=t(86273),l=t(32360),i=t(25182),n=t(30493),o=t(29670),d=t(91316),c=t(2265);let u={de:{heading:"Kostenlose Insel-Hop-Karte Kroatien",sub:"Hochaufl\xf6sende PDF-Karte aller kroatischen Inseln + F\xe4hrrouten. Tragen Sie Ihre E-Mail ein und laden Sie sie sofort herunter.",placeholder:"Ihre E-Mail-Adresse...",cta:"Karte herunterladen",success:"Ihre Karte ist bereit!",successSub:"Link auch per E-Mail gesendet. Nicht gebucht? In 24 Stunden erhalten Sie 5 % Rabatt.",download:"PDF jetzt herunterladen"},it:{heading:"Mappa Island Hopping Croazia — Gratis",sub:"Mappa PDF ad alta risoluzione di tutte le isole croate + rotte dei traghetti. Inserisci la tua email e scaricala subito.",placeholder:"La tua email...",cta:"Scarica la mappa",success:"La tua mappa \xe8 pronta!",successSub:"Link inviato anche via email. Non hai ancora prenotato? Riceverai uno sconto del 5% entro 24 ore.",download:"Scarica PDF ora"},hr:{heading:"Besplatna karta otočnog hopanja",sub:"Visoko-rezolucijska PDF karta svih hrvatskih otoka + ferry rute. Upišite email i odmah preuzmite.",placeholder:"Vaša email adresa...",cta:"Preuzmi kartu",success:"Vaša karta je spremna!",successSub:"Link je poslan i na email. Niste rezervirali? Za 24h dobivate 5% popusta.",download:"Preuzmi PDF"}},h={heading:"Free Island Hopping Map — Croatia",sub:"High-res PDF of all Croatian islands + ferry routes. Drop your email and download instantly.",placeholder:"Your email address...",cta:"Get the Map",success:"Your map is ready!",successSub:"Link also sent to your inbox. Haven't booked yet? You'll receive 5% off in 24 hours.",download:"Download PDF now"};function p({city:e}){let{language:a}=(0,c.o)(),[t,m]=(0,r.useState)(""),[x,b]=(0,r.useState)("idle"),[f,g]=(0,r.useState)(""),w=(0,r.useRef)(Date.now()),j=(0,r.useRef)(null),k=u[a]??h,y=async e=>{if(e.preventDefault(),t&&"loading"!==x){b("loading");try{let e=await fetch("/api/newsletter/subscribe",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:t,language:a,source:"island_map",_website:j.current?.value??"",_loadedAt:w.current})});if(e.ok)b("success");else{let a=await e.json();b("error"),g(a.error||"Something went wrong.")}}catch{b("error"),g("Network error. Please try again.")}}};return(0,s.jsx)("section",{className:"bg-gradient-to-br from-slate-800 to-slate-900 border border-slate-700 rounded-2xl p-6 my-6",children:(0,s.jsxs)("div",{className:"flex items-start gap-4",children:[(0,s.jsx)("div",{className:"shrink-0 w-11 h-11 bg-blue-600/20 border border-blue-500/30 rounded-xl flex items-center justify-center mt-0.5",children:(0,s.jsx)(l.A,{className:"w-5 h-5 text-blue-400"})}),(0,s.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,s.jsx)("p",{className:"text-blue-400 text-xs font-semibold uppercase tracking-wide mb-1",children:"de"===a?"Gratis PDF":"it"===a?"PDF Gratuito":"hr"===a?"Besplatni PDF":"Free Download"}),(0,s.jsx)("h3",{className:"text-white font-bold text-lg leading-snug mb-2",children:k.heading}),(0,s.jsx)("p",{className:"text-neutral-500 text-sm leading-relaxed mb-4",children:k.sub}),"success"===x?(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 text-emerald-400 text-sm font-medium",children:[(0,s.jsx)(i.A,{className:"w-4 h-4 shrink-0"}),(0,s.jsx)("span",{children:k.success})]}),(0,s.jsxs)("p",{className:"text-neutral-500 text-xs flex items-start gap-1.5",children:[(0,s.jsx)(n.A,{className:"w-3.5 h-3.5 mt-0.5 shrink-0"}),k.successSub]}),(0,s.jsxs)("a",{href:"/downloads/island-hopping-map.pdf",download:!0,className:"inline-flex items-center gap-2 bg-blue-600 hover:bg-blue-700 text-white px-5 py-2.5 rounded-xl text-sm font-bold transition-colors",children:[(0,s.jsx)(o.A,{className:"w-4 h-4"}),k.download]})]}):(0,s.jsxs)("form",{onSubmit:y,children:[(0,s.jsx)("div",{style:{position:"absolute",opacity:0,height:0,overflow:"hidden"},"aria-hidden":"true",children:(0,s.jsx)("input",{ref:j,type:"text",name:"website",tabIndex:-1,autoComplete:"off"})}),(0,s.jsxs)("div",{className:"flex gap-2 flex-wrap sm:flex-nowrap",children:[(0,s.jsx)("input",{type:"email",value:t,onChange:e=>{m(e.target.value),"error"===x&&b("idle")},placeholder:k.placeholder,required:!0,className:"flex-1 min-w-0 bg-white/5 border border-white/10 text-white placeholder:text-neutral-500 rounded-xl px-3.5 py-2.5 text-sm focus:outline-none focus:ring-1 focus:border-blue-500/50 focus:ring-blue-500/30 transition-all"}),(0,s.jsxs)("button",{type:"submit",disabled:"loading"===x,className:"shrink-0 inline-flex items-center gap-2 bg-blue-600 hover:bg-blue-700 text-white px-5 py-2.5 rounded-xl text-sm font-bold transition-colors disabled:opacity-50",children:["loading"===x?(0,s.jsx)(d.A,{className:"w-4 h-4 animate-spin"}):(0,s.jsx)(o.A,{className:"w-4 h-4"}),k.cta]})]}),"error"===x&&(0,s.jsx)("p",{role:"alert",className:"text-red-400 text-xs mt-1.5",children:f})]})]})]})})}},29670:(e,a,t)=>{t.d(a,{A:()=>s});let s=(0,t(50111).A)("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]])},32360:(e,a,t)=>{t.d(a,{A:()=>s});let s=(0,t(50111).A)("map",[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]])},91316:(e,a,t)=>{t.d(a,{A:()=>s});let s=(0,t(50111).A)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])}}]);

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.