1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,52634,e=>{"use strict";var t=e.i(43476),n=e.i(71645),i=e.i(13596);e.i(30780);var r=e.i(39629);function a({variant:e="light",onSelect:o,placeholder:s="Wpisz miejscowoÅÄ i adres â np. Bartoszyce Paderewskiego 18",autoFocus:l=!1}){let[d,c]=(0,n.useState)(""),[p,y]=(0,n.useState)(!1),[m,f]=(0,n.useState)(0),[g,x]=(0,n.useState)([]),h=(0,n.useRef)(null),u=(0,n.useRef)(null);(0,n.useEffect)(()=>{l&&h.current&&h.current.focus()},[l]),(0,n.useEffect)(()=>{let e=!1;return(0,r.searchAddresses)(d,6).then(t=>{e||(x(t),f(0))}),()=>{e=!0}},[d]),(0,n.useEffect)(()=>{let e=e=>{u.current&&!u.current.contains(e.target)&&y(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]);let v=e=>{c((0,r.formatAddress)(e)),y(!1),window.gtag&&window.gtag("event","search",{search_term:(0,r.formatAddress)(e),tech:e?.tech}),o&&o(e)},b={light:{bg:"#fff",fg:"var(--ink)",muted:"var(--gray-500)",border:"transparent",shadow:"var(--shadow-lg)"},dark:{bg:"rgba(255,255,255,0.06)",fg:"#fff",muted:"rgba(255,255,255,0.55)",border:"rgba(255,255,255,0.18)",shadow:"0 20px 60px rgba(0,0,0,0.35)"},glow:{bg:"#fff",fg:"var(--ink)",muted:"var(--gray-500)",border:"transparent",shadow:"0 0 0 1px rgba(0,123,195,0.2), 0 30px 80px rgba(0,123,195,0.30), var(--shadow-lg)"}}[e];return(0,t.jsxs)("div",{ref:u,style:{position:"relative",width:"100%"},children:[(0,t.jsxs)("div",{className:"clip-notch-br",style:{display:"flex",alignItems:"stretch",background:b.bg,border:"transparent"!==b.border?`1px solid ${b.border}`:"none",boxShadow:b.shadow,color:b.fg,padding:6,gap:6,"--clip":"18px"},children:[(0,t.jsx)("div",{style:{display:"flex",alignItems:"center",paddingLeft:14,paddingRight:4,color:"var(--nortis-blue)"},children:(0,t.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:[(0,t.jsx)("path",{d:"M10 2.5c-3.3 0-6 2.7-6 6 0 4.5 6 9 6 9s6-4.5 6-9c0-3.3-2.7-6-6-6Z",stroke:"currentColor",strokeWidth:"1.6"}),(0,t.jsx)("circle",{cx:"10",cy:"8.5",r:"2.2",stroke:"currentColor",strokeWidth:"1.6"})]})}),(0,t.jsx)("input",{ref:h,id:"address-search","aria-label":"Wpisz adres, aby sprawdziÄ dostÄpnoÅÄ usÅug","aria-autocomplete":"list","aria-expanded":p&&d.length>=2,"aria-haspopup":"listbox",role:"combobox",value:d,onChange:e=>{c(e.target.value),y(!0)},onFocus:()=>y(!0),onKeyDown:e=>{p&&0!==g.length&&("ArrowDown"===e.key&&(e.preventDefault(),f(e=>Math.min(e+1,g.length-1))),"ArrowUp"===e.key&&(e.preventDefault(),f(e=>Math.max(e-1,0))),"Enter"===e.key&&(e.preventDefault(),v(g[m])),"Escape"===e.key&&y(!1))},placeholder:s,style:{flex:1,border:0,outline:0,background:"transparent",color:b.fg,fontSize:18,padding:"16px 8px",fontFamily:"var(--font-display)",fontWeight:500}}),(0,t.jsxs)("button",{onClick:()=>g[0]&&v(g[0]),className:"clip-notch-br btn addr-search-btn",style:{background:"var(--nortis-blue)",color:"#fff",padding:"0 24px",fontWeight:600,fontSize:15,"--clip":"12px"},children:[(0,t.jsx)("span",{className:"addr-search-label",children:"Sprawdź cennik"}),(0,t.jsx)("span",{className:"arr"})]})]}),p&&d.length>=2&&(0,t.jsxs)("div",{className:"clip-notch-br",style:{position:"absolute",top:"calc(100% + 8px)",left:0,right:0,background:"#fff",color:"var(--ink)",boxShadow:"var(--shadow-lg)",zIndex:30,"--clip":"14px",overflow:"hidden"},children:[0===g.length&&(0,t.jsx)("div",{style:{padding:18,fontSize:14,color:"var(--gray-500)"},children:"Brak dopasowaÅ. Spróbuj wpisaÄ miejscowoÅÄ lub ulicÄ."}),g.map((e,n)=>{let a=r.TECH_META[e.tech],o=n===m;return(0,t.jsxs)("button",{onMouseEnter:()=>f(n),onClick:()=>v(e),style:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",padding:"14px 18px",background:o?"var(--gray-50)":"transparent",borderLeft:o?"3px solid var(--nortis-blue)":"3px solid transparent",textAlign:"left",transition:"background .15s"},children:[(0,t.jsxs)("span",{children:[(0,t.jsxs)("span",{style:{fontWeight:600,fontSize:15},children:[e.street," ",e.num]}),(0,t.jsxs)("span",{style:{color:"var(--gray-500)",fontSize:14,marginLeft:8},children:[e.zip," ",e.city]})]}),(0,t.jsxs)("span",{style:{display:"inline-flex",alignItems:"center",gap:8},children:[(0,t.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:10,letterSpacing:"0.08em",textTransform:"uppercase",color:a.color,padding:"3px 8px",background:`color-mix(in oklch, ${a.color} 12%, transparent)`},children:a.short}),(0,t.jsx)(i.ArrowMark,{size:9,weight:1.4,color:"var(--gray-500)"})]})]},e.id)}),(0,t.jsxs)("div",{style:{padding:"10px 18px",background:"var(--gray-50)",borderTop:"1px solid var(--gray-200)",fontFamily:"var(--font-mono)",fontSize:11,color:"var(--gray-500)",letterSpacing:"0.04em",display:"flex",justifyContent:"space-between"},children:[(0,t.jsx)("span",{children:"ââ aby wybraÄ Â· âµ aby zatwierdziÄ"}),(0,t.jsxs)("span",{children:[g.length,"/50 000+ adresów w bazie"]})]})]})]})}var o=e.i(60195);function s({label:e,pct:n,color:i}){return(0,t.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"120px 1fr 40px",gap:10,alignItems:"center"},children:[(0,t.jsx)("span",{children:e}),(0,t.jsx)("span",{style:{height:4,background:"rgba(255,255,255,0.08)",position:"relative"},children:(0,t.jsx)("span",{style:{position:"absolute",inset:0,width:`${n}%`,background:i}})}),(0,t.jsxs)("span",{style:{textAlign:"right"},children:[n,"%"]})]})}function l({onAddressSelected:e}){return(0,t.jsxs)("div",{style:{background:"var(--nortis-navy)",color:"#fff",position:"relative",overflow:"hidden"},className:"clip-diag-bottom",children:[(0,t.jsx)("div",{className:"bg-grid",style:{position:"absolute",inset:0,color:"var(--nortis-sky)"}}),(0,t.jsx)("div",{style:{position:"absolute",inset:0,background:"radial-gradient(70% 60% at 90% 10%, color-mix(in oklch, var(--nortis-blue) 50%, transparent), transparent 60%), radial-gradient(40% 50% at 0% 100%, color-mix(in oklch, var(--nortis-sky) 30%, transparent), transparent 60%)",pointerEvents:"none"}}),(0,t.jsx)("div",{className:"speed-lines",style:{color:"var(--nortis-sky)",opacity:.4}}),(0,t.jsx)(o.default,{}),(0,t.jsxs)("div",{className:"container hero-velocity-pad",style:{position:"relative",paddingTop:64,paddingBottom:140},children:[(0,t.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"1.6fr 1fr",gap:48,alignItems:"center"},children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(i.Eyebrow,{color:"var(--nortis-sky)",children:"Internet · Telewizja · Komórka"}),(0,t.jsxs)("h1",{className:"h-display h-1",style:{marginTop:20,marginBottom:0,maxWidth:"none",display:"-webkit-box",WebkitLineClamp:4,WebkitBoxOrient:"vertical",overflow:"hidden"},children:["Internet ÅwiatÅowodowy ",(0,t.jsx)("span",{style:{color:"var(--nortis-sky)"},children:"do 1000 Mb/s"})," â dobrany pod adres."]}),(0,t.jsx)("p",{style:{marginTop:24,fontSize:18,lineHeight:1.55,color:"rgba(255,255,255,0.78)",maxWidth:540}
1,children:"Lokalny operator ÅwiatÅowodowy. Sprawdź adres â w 8 sekund zobaczysz, co możemy Ci zaoferowaÄ w Twojej lokalizacji."}),(0,t.jsxs)("div",{style:{display:"flex",gap:36,marginTop:36,paddingTop:24,borderTop:"1px solid rgba(255,255,255,0.15)"},children:[(0,t.jsx)(i.Spec,{value:"1000",unit:"Mb/s",label:"Pobieranie",size:"md",dir:"down"}),(0,t.jsx)(i.Spec,{value:"600",unit:"Mb/s",label:"WysyÅanie",size:"md",dir:"up"}),(0,t.jsx)(i.Spec,{value:"<5",unit:"ms",label:"Pingi w grach",size:"md"})]})]}),(0,t.jsx)("div",{style:{position:"relative"},children:(0,t.jsxs)("div",{className:"clip-notch-tr-bl",style:{background:"color-mix(in oklch, var(--nortis-blue) 25%, var(--nortis-navy))",border:"1px solid rgba(127,196,236,0.25)",padding:26,"--clip":"20px"},children:[(0,t.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:12},children:[(0,t.jsx)("span",{className:"eyebrow",style:{color:"var(--nortis-sky)"},children:"Status sieci"}),(0,t.jsxs)("span",{style:{display:"inline-flex",alignItems:"center",gap:6,fontFamily:"var(--font-mono)",fontSize:11},children:[(0,t.jsx)("span",{style:{width:8,height:8,background:"#3ee696",borderRadius:99,boxShadow:"0 0 12px #3ee696"}}),"ONLINE"]})]}),(0,t.jsx)(i.Spec,{value:"50 124",unit:"",label:"Adresów w zasiÄgu",size:"lg"}),(0,t.jsxs)("div",{style:{marginTop:18,fontFamily:"var(--font-mono)",fontSize:12,color:"rgba(255,255,255,0.65)",display:"grid",gap:6},children:[(0,t.jsx)(s,{label:"ÅwiatÅowód · F",pct:68,color:"var(--nortis-sky)"}),(0,t.jsx)(s,{label:"Nexera · N",pct:22,color:"#88e0ff"}),(0,t.jsx)(s,{label:"Radio FWA · R",pct:10,color:"#fbb555"})]})]})})]}),(0,t.jsxs)("div",{style:{marginTop:64,position:"relative"},children:[(0,t.jsx)("div",{style:{marginBottom:14,fontFamily:"var(--font-mono)",fontSize:12,color:"var(--nortis-sky)",letterSpacing:"0.08em",textTransform:"uppercase"},children:"â Sprawdź adres â Dobierzemy ofertÄ pod technologiÄ"}),(0,t.jsx)(a,{variant:"dark",onSelect:e,autoFocus:!0}),(0,t.jsx)("img",{src:"/mascot-2.png",alt:"","aria-hidden":"true",className:"hero-mascot-peek",style:{position:"absolute",right:-48,top:-90,width:220,height:"auto",pointerEvents:"none",userSelect:"none",filter:"drop-shadow(0 8px 24px rgba(70,140,220,0.35))",transform:"rotate(8deg)"}})]})]})]})}function d({onAddressSelected:e}){return(0,t.jsxs)("div",{style:{background:"var(--gray-100)",color:"var(--ink)",position:"relative",zIndex:10,isolation:"isolate"},children:[(0,t.jsx)(o.default,{}),(0,t.jsx)("div",{className:"container",style:{paddingTop:32,paddingBottom:32,position:"relative"},children:(0,t.jsxs)("div",{className:"hero-modular-grid",style:{display:"grid",gridTemplateColumns:"1fr auto",gap:32,alignItems:"stretch"},children:[(0,t.jsxs)("div",{className:"hero-left-content",style:{paddingTop:48,paddingBottom:32},children:[(0,t.jsx)("div",{className:"anim-hero",style:{animationDelay:"0ms"},children:(0,t.jsx)(i.Eyebrow,{children:"Twój adres · Twoja oferta · 25+ lat na rynku"})}),(0,t.jsxs)("h1",{className:"h-display h-1 anim-hero hero-h1",style:{marginTop:18,marginBottom:0,maxWidth:"none",animationDelay:"120ms"},children:["Internet ÅwiatÅowodowy ",(0,t.jsx)("span",{style:{color:"var(--nortis-blue)"},children:"do 1000 Mb/s"})," â dobrany pod adres."]}),(0,t.jsx)("p",{className:"anim-hero",style:{marginTop:20,fontSize:17,lineHeight:1.55,color:"var(--gray-700)",maxWidth:580,animationDelay:"260ms"},children:"Sprawdź adres i zobacz tylko te pakiety, które sÄ
w Twojej lokalizacji technicznie dostÄpne. Bez tabel, bez paraliżu wyboru."}),(0,t.jsx)("div",{className:"anim-hero",style:{marginTop:36,animationDelay:"400ms"},children:(0,t.jsx)(a,{variant:"light",onSelect:e})})]}),(0,t.jsx)("div",{className:"hero-sidebar-right anim-hero-fade",style:{paddingTop:24,paddingBottom:24,flexDirection:"column",justifyContent:"center",alignItems:"center",minWidth:220,animationDelay:"400ms"},children:(0,t.jsxs)("picture",{children:[(0,t.jsx)("source",{media:"(max-width: 640px)",srcSet:"/gifhero-poster.webp",type:"image/webp"}),(0,t.jsx)("source",{srcSet:"/gifhero.webp",type:"image/webp"}),(0,t.jsx)("img",{src:"/gifhero.gif",alt:"Maskotka Nortis",width:440,height:440,fetchPriority:"low",decoding:"async",style:{width:440,height:"auto",display:"block",objectFit:"contain"}})]})})]})})]})}function c({onAddressSelected:e}){return(0,t.jsxs)("div",{style:{position:"relative",overflow:"hidden",background:"var(--paper)",color:"var(--ink)"},children:[(0,t.jsx)("div",{style:{position:"absolute",inset:0,background:"radial-gradient(60% 100% at 100% 50%, color-mix(in oklch, var(--nortis-blue) 18%, transparent), transparent 70%), linear-gradient(115deg, transparent 60%, color-mix(in oklch, var(--nortis-sky) 50%, transparent) 100%)",pointerEvents:"none"}}),(0,t.jsxs)("svg",{style:{position:"absolute",inset:0,width:"100%",height:"100%",pointerEvents:"none",opacity:.5},viewBox:"0 0 1600 900",preserveAspectRatio:"none",children:[(0,t.jsx)("defs",{children:(0,t.jsxs)("linearGradient",{id:"ray",x1:"0",x2:"1",children:[(0,t.jsx)("stop",{offset:"0",stopColor:"rgba(0,123,195,0)"}),(0,t.jsx)("stop",{offset:"1",stopColor:"rgba(0,123,195,0.6)"})]})}),[0,1,2,3,4,5].map(e=>(0,t.jsx)("line",{x1:"-100",y1:200+110*e,x2:"1700",y2:110*e-100,stroke:"url
1(#ray)",strokeWidth:"1.2"},e))]}),(0,t.jsx)(o.default,{}),(0,t.jsxs)("div",{className:"container",style:{position:"relative",paddingTop:96,paddingBottom:140,textAlign:"center"},children:[(0,t.jsxs)("div",{style:{display:"inline-flex",alignItems:"center",gap:12,padding:"8px 16px",background:"var(--gray-100)",border:"1px solid var(--gray-200)",marginBottom:28},className:"clip-notch-br",children:[(0,t.jsx)("span",{style:{width:8,height:8,background:"#3ee696",borderRadius:99,boxShadow:"0 0 12px #3ee696"}}),(0,t.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--ink)"},children:"SieÄ dziaÅa stabilnie · obciÄ
żenie 23%"})]}),(0,t.jsxs)("h1",{className:"h-display",style:{fontSize:"clamp(40px, 5.6vw, 86px)",lineHeight:1,marginBottom:24,letterSpacing:"-0.03em",maxWidth:1100,marginLeft:"auto",marginRight:"auto",display:"-webkit-box",WebkitLineClamp:4,WebkitBoxOrient:"vertical",overflow:"hidden"},children:["Internet ÅwiatÅowodowy ",(0,t.jsx)("span",{style:{background:"linear-gradient(95deg, var(--nortis-navy) 0%, var(--nortis-blue) 60%, var(--nortis-sky) 100%)",WebkitBackgroundClip:"text",backgroundClip:"text",color:"transparent"},children:"do 1000 Mb/s"})," â dobrany pod adres."]}),(0,t.jsx)("p",{style:{fontSize:19,color:"var(--gray-700)",maxWidth:620,margin:"0 auto 40px",lineHeight:1.55},children:"Lokalny operator z wÅasnÄ
sieciÄ
. Wpisz swój adres â pokażemy tylko te oferty, które realnie do Ciebie dotrÄ
."}),(0,t.jsx)("div",{style:{maxWidth:720,margin:"0 auto"},children:(0,t.jsx)(a,{variant:"glow",onSelect:e})}),(0,t.jsx)("div",{style:{display:"flex",justifyContent:"center",gap:48,marginTop:56,flexWrap:"wrap"},children:[{k:"1000 Mb/s",v:"internet ÅwiatÅowodowy"},{k:"200+ kanaÅów",v:"telewizja + VOD"},{k:"5G",v:"abonament komórkowy"}].map(e=>(0,t.jsxs)("div",{style:{textAlign:"left",display:"flex",alignItems:"center",gap:12},children:[(0,t.jsx)(i.ArrowMark,{size:14,weight:2,color:"var(--nortis-blue)"}),(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{style:{fontFamily:"var(--font-display)",fontWeight:600,fontSize:18},children:e.k}),(0,t.jsx)("div",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--gray-500)",textTransform:"uppercase",letterSpacing:"0.06em",marginTop:2},children:e.v})]})]},e.k))})]})]})}function p({value:e,onChange:n}){return(0,t.jsx)("div",{style:{display:"flex",gap:12,marginBottom:32,flexWrap:"wrap"},children:[{key:"24m",label:"Umowa na 24 miesiÄ
ce",sub:"Ceny promocyjne + TV, Telefon i VOD"},{key:"bezterm",label:"Umowa bezterminowa",sub:"Ceny regularne, bez dodatkowych usÅug"}].map(i=>{let r=e===i.key;return(0,t.jsxs)("button",{onClick:()=>n(i.key),className:"clip-notch-br",style:{display:"flex",alignItems:"center",gap:14,textAlign:"left",padding:"14px 20px",flex:"1 1 260px",background:r?"var(--nortis-navy)":"#fff",color:r?"#fff":"var(--ink)",border:r?"1px solid var(--nortis-navy)":"1px solid var(--gray-200)",boxShadow:r?"var(--shadow-brand)":"var(--shadow-sm)",transition:"all .2s","--clip":"14px"},children:[(0,t.jsx)("span",{style:{width:20,height:20,borderRadius:"50%",flexShrink:0,border:r?"6px solid var(--nortis-blue)":`2px solid ${r?"transparent":"var(--gray-300)"}`,background:"#fff",boxSizing:"border-box"}}),(0,t.jsxs)("span",{children:[(0,t.jsx)("span",{style:{display:"block",fontWeight:600,fontSize:15},children:i.label}),(0,t.jsx)("span",{style:{display:"block",fontSize:12,opacity:r?.7:.55,marginTop:2,fontFamily:"var(--font-mono)"},children:i.sub})]})]},i.key)})})}function y({addr:e,selected:a,onSelect:o,contract:s,onContract:l}){let d=r.TECH_META[e.tech],c=(0,n.useMemo)(()=>(0,r.packagesFor)(e.tech,e.priceList),[e.tech,e.priceList]),m=(0,n.useMemo)(()=>(0,r.priceListFor)(e.tech,e.priceList),[e.tech,e.priceList]),f="bezterm"===s;return(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{style:{display:"flex",alignItems:"flex-end",justifyContent:"space-between",flexWrap:"wrap",gap:24,marginBottom:36},children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(i.Eyebrow,{children:"Krok 02 · Internet"}),(0,t.jsxs)("h2",{className:"h-display h-2",style:{marginTop:12,marginBottom:12,maxWidth:720},children:["Dla ",(0,t.jsxs)("span",{style:{color:"var(--nortis-blue)"}
1,children:[[e.street,e.num].filter(Boolean).join(" "),", ",e.city]})," dobraliÅmy pakiety na bazie ",(0,t.jsx)("span",{style:{whiteSpace:"nowrap"},children:d.short.toLowerCase()}),"."]}),(0,t.jsx)("p",{style:{color:"var(--gray-700)",fontSize:16,maxWidth:620,margin:0},children:d.desc})]}),(0,t.jsxs)("div",{className:"clip-notch-br",style:{background:"var(--nortis-navy)",color:"#fff",padding:"16px 22px",minWidth:260},children:[(0,t.jsx)("div",{style:{fontFamily:"var(--font-mono)",fontSize:11,letterSpacing:"0.08em",color:"var(--nortis-sky)",textTransform:"uppercase",marginBottom:8},children:"Technologia w tej lokalizacji"}),(0,t.jsx)("div",{style:{fontWeight:600,fontSize:18,marginBottom:4},children:d.name}),(0,t.jsx)("div",{style:{fontFamily:"var(--font-mono)",fontSize:12,opacity:.7},children:d.badge}),m?.region&&(0,t.jsxs)("div",{style:{fontFamily:"var(--font-mono)",fontSize:11,opacity:.55,marginTop:6},children:["Strefa: ",m.region]})]})]}),(0,t.jsx)(p,{value:s,onChange:l}),(0,t.jsx)("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(280px, 1fr))",gap:20},children:c.map(e=>{let n=a&&a.id===e.id,s=f?e.price+r.INDEFINITE_CONTRACT_SURCHARGE:e.price;return(0,t.jsxs)("button",{onClick:()=>o({...e,price:s}),className:"clip-notch-br",style:{textAlign:"left",position:"relative",background:n?"var(--nortis-navy)":"#fff",color:n?"#fff":"var(--ink)",padding:28,border:n?"1px solid var(--nortis-navy)":"1px solid var(--gray-200)",boxShadow:n?"var(--shadow-brand)":"var(--shadow-sm)",transition:"all .2s","--clip":"20px"},children:[e.pop&&(0,t.jsx)("div",{style:{position:"absolute",top:0,left:0,background:"var(--nortis-blue)",color:"#fff",padding:"5px 10px",fontFamily:"var(--font-mono)",fontSize:10,letterSpacing:"0.1em",textTransform:"uppercase"},children:"NajczÄÅciej wybierany"}),(0,t.jsx)("div",{style:{fontFamily:"var(--font-mono)",fontSize:11,letterSpacing:"0.1em",textTransform:"uppercase",color:n?"var(--nortis-sky)":"var(--gray-500)",marginTop:18*!!e.pop},children:"Pakiet"}),(0,t.jsx)("div",{style:{fontWeight:700,fontSize:28,marginTop:4,marginBottom:18},children:e.name}),(0,t.jsx)(i.Spec,{value:e.speed,unit:"Mb/s",label:"Pobieranie",size:"lg",dir:"down"}),null!=e.upload&&(0,t.jsx)("div",{style:{marginTop:14},children:(0,t.jsx)(i.Spec,{value:e.upload,unit:"Mb/s",label:"WysyÅanie",size:"sm",dir:"up"})}),(0,t.jsxs)("div",{style:{marginTop:24,display:"flex",alignItems:"baseline",gap:8},children:[(0,t.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:36,fontWeight:600},children:(0,r.fmtZl)(s)}),(0,t.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:14,opacity:.7},children:"zÅ / mies."}),!f&&e.promo>e.price&&(0,t.jsxs)("span",{style:{marginLeft:8,fontSize:12,opacity:.6,textDecoration:"line-through"},children:[(0,r.fmtZl)(e.promo)," zÅ"]})]}),(0,t.jsx)("div",{style:{marginTop:4,fontFamily:"var(--font-mono)",fontSize:11,color:n?"var(--nortis-sky)":"var(--nortis-blue)"},children:f?"cena regularna · bez zobowiÄ
zaÅ":e.promo>e.price?"w promocji 24 mies.":"umowa 24 mies."}),(0,t.jsxs)("div",{style:{marginTop:24,display:"flex",alignItems:"center",justifyContent:"space-between",paddingTop:18,borderTop:`1px solid ${n?"rgba(255,255,255,0.12)":"var(--gray-200)"}`},children:[(0,t.jsx)("span",{style:{fontSize:13,fontWeight:500},children:n?"Wybrano":"Wybierz pakiet"}),(0,t.jsx)(i.ArrowMark,{size:11,weight:1.6,color:n?"var(--nortis-sky)":"var(--nortis-blue)"})]})]},e.id)})})]})}function m(){return(0,t.jsxs)("div",{style:{marginBottom:24,padding:"14px 20px",background:"var(--gray-50)",border:"1px solid var(--gray-200)",display:"flex",alignItems:"center",gap:12},children:[(0,t.jsx)("span",{style:{fontSize:18},children:"ð"}),(0,t.jsxs)("span",{style:{fontSize:13,color:"var(--gray-700)"},children:["Opcje dostÄpne wyÅÄ
cznie z ",(0,t.jsx)("strong",{children:"umowÄ
na 24 miesiÄ
ce"}),". ZmieÅ typ umowy w kroku Internet, aby je odblokowaÄ."]})]})}function f({ch:e}){return(0,t.jsxs)("div",{title:`${e.nr} \xb7 ${e.name}`,style:{display:"flex",alignItems:"center",gap:8,padding:"6px 8px",background:"#fff",border:"1px solid var(--gray-200)",minWidth:0},children:[(0,t.jsx)("div",{style:{width:36,height:24,flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",background:"#fff"},children:e.logo?(0,t.jsx)("img",{src:e.logo,alt:e.name,loading:"lazy",style:{maxWidth:"100%",maxHeight:"100%",objectFit:"contain"}}):(0,t.jsx)("span",{style:{fontSize:9,fontFamily:"var(--font-mono)",color:"var(--gray-500)"},children:e.nr})}),(0,t.jsx)("span",{style:{fontSize:11,lineHeight:1.2,color:"var(--ink)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e.name})]})}function g({channels:e}
1){let[i,r]=(0,n.useState)(!1),a=i?e:e.slice(0,12),o=e.length-12;return(0,t.jsxs)("div",{style:{marginTop:18},children:[(0,t.jsxs)("div",{style:{fontFamily:"var(--font-mono)",fontSize:10,letterSpacing:"0.1em",textTransform:"uppercase",color:"var(--gray-500)",marginBottom:10},children:["KanaÅy w pakiecie (",e.length,")"]}),(0,t.jsx)("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:6},children:a.map(e=>(0,t.jsx)(f,{ch:e},e.nr))}),o>0&&(0,t.jsx)("button",{type:"button",onClick:e=>{e.stopPropagation(),r(e=>!e)},style:{marginTop:10,fontFamily:"var(--font-mono)",fontSize:11,color:"var(--nortis-blue)",textDecoration:"underline",textUnderlineOffset:3},children:i?"ZwiÅ listÄ":`Pokaż wszystkie ${e.length} kanaÅ\xf3w`})]})}function x({addr:e,selected:a,onSelect:o,onSkip:s,bezterm:l}){let[d,c]=(0,n.useState)(null);(0,n.useEffect)(()=>{let e=!0;return fetch("/tv-channels.json").then(e=>e.json()).then(t=>{e&&c(t)}),()=>{e=!1}},[]);let p=(0,n.useMemo)(()=>(0,r.tvPackagesFor)(e?.priceList),[e?.priceList]),y=(0,n.useMemo)(()=>{if(!d)return{};let e={};for(let t of p)e[t.pkgKey]=d.filter(e=>e.pkgs.includes(t.pkgKey));return e},[d,p]);return(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{style:{marginBottom:36},children:[(0,t.jsx)(i.Eyebrow,{children:"Krok 03 · Telewizja"}),(0,t.jsx)("h2",{className:"h-display h-2",style:{marginTop:12,marginBottom:12},children:"Porównaj pakiety telewizji."}),(0,t.jsx)("p",{style:{color:"var(--gray-700)",fontSize:16,maxWidth:620,margin:0},children:"Zobacz, jakie kanaÅy otrzymasz w każdym pakiecie. Dekoder w cenie. Możesz pominÄ
Ä ten krok."}),e?.priceList&&(0,t.jsxs)("p",{style:{marginTop:10,fontFamily:"var(--font-mono)",fontSize:12,color:"var(--gray-500)"},children:["Cena pakietu TV+internet wg cennika dla strefy ",(0,t.jsx)("strong",{style:{color:"var(--nortis-blue)"},children:(0,r.priceListFor)(e.tech,e.priceList).label}),"."]})]}),l&&(0,t.jsx)(m,{}),(0,t.jsx)("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(320px, 1fr))",gap:20,opacity:l?.45:1,pointerEvents:l?"none":"auto",alignItems:"start"},children:p.map(e=>{let n=a&&a.id===e.id,s=y[e.pkgKey]||[];return(0,t.jsxs)("div",{className:"clip-notch-br",role:"button",tabIndex:0,onClick:()=>o(n?null:e),onKeyDown:t=>{("Enter"===t.key||" "===t.key)&&(t.preventDefault(),o(n?null:e))},style:{textAlign:"left",background:n?"var(--nortis-blue)":"#fff",color:n?"#fff":"var(--ink)",padding:28,border:n?"1px solid var(--nortis-blue)":"1px solid var(--gray-200)",boxShadow:n?"var(--shadow-brand)":"var(--shadow-sm)",position:"relative","--clip":"20px",cursor:"pointer",transition:"transform .15s ease, box-shadow .2s ease"},children:[e.pop&&!n&&(0,t.jsx)("div",{style:{position:"absolute",top:0,left:0,background:"var(--nortis-navy)",color:"#fff",padding:"5px 10px",fontFamily:"var(--font-mono)",fontSize:10,letterSpacing:"0.1em",textTransform:"uppercase"},children:"Polecany"}),(0,t.jsx)("div",{style:{fontFamily:"var(--font-mono)",fontSize:11,letterSpacing:"0.1em",textTransform:"uppercase",color:n?"var(--nortis-sky)":"var(--gray-500)",marginTop:e.pop&&!n?18:0},children:"Pakiet"}),(0,t.jsx)("div",{style:{fontWeight:700,fontSize:26,marginTop:4,textDecoration:l?"line-through":"none"},children:e.name}),(0,t.jsx)("p",{style:{fontSize:14,opacity:n?.85:.7,marginTop:6,marginBottom:18,textDecoration:l?"line-through":"none"},children:e.desc}),(0,t.jsx)("div",{style:{display:"flex",gap:24},children:(0,t.jsx)(i.Spec,{value:e.channels,unit:"",label:"KanaÅów",size:"md"})}),(0,t.jsxs)("div",{style:{marginTop:22,display:"flex",alignItems:"baseline",gap:8},children:[(0,t.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:30,fontWeight:600,textDecoration:l?"line-through":"none"},children:["+",(0,r.fmtZl)(e.price)]}),(0,t.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,opacity:.7},children:"zÅ / mies."})]}),(0,t.jsx)("div",{style:{marginTop:18,padding:14,background:n?"rgba(255,255,255,0.08)":"var(--gray-50)"},children:d?(0,t.jsx)(g,{channels:s}):(0,t.jsx)("div",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:n?"var(--nortis-sky)":"var(--gray-500)"},children:"Åadowanie kanaÅówâ¦"})}),(0,t.jsxs)("div",{style:{marginTop:22,width:"100%",display:"flex",justifyContent:"space-between",alignItems:"center",paddingTop:16,borderTop:`1px solid ${n?"rgba(255,255,255,0.2)":"var(--gray-200)"}`},children:[(0,t.jsx)("span",{style:{fontSize:13,fontWeight:500},children:n?"â Wybrano":"Kliknij, aby wybraÄ"}),(0,t.jsx)(i.ArrowMark,{size:11,weight:1.6,color:n?"#fff":"var(--nortis-blue)"})]})]},e.id)})}),(0,t.jsx)("div",{style:{marginTop:28},children:(0,t.jsx)("button",{onClick:s,style:{fontFamily:"var(--font-display)",fontSize:14,color:"var(--gray-700)",textDecoration:"underline",textUnderlineOffset:4},children:"Nie potrzebujÄ telewizji â przejdź dalej"})})]})}function h({telefon:e,onTelefon:n,bezterm:a,priceList:o}){let s=(0,r.telefonPlansFor)(o);return(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{style:{marginBottom:32},children:[(0,t.jsx)(i.Eyebrow,{children:"Krok 04 · Telefon"}),(0,t.jsx)("h2",{className:"h-display h-2",style:{marginTop:12,marginBottom:12},children:"DorzuÄ telefon stacjonarny."}),(0,t.jsx)("p",{style:{color:"var(--gray-700)",fontSize:16,maxWidth:620,margin:0},children:"ÅÄ
czÄ
c telefon z internetem (i TV) zyskujesz dodatkowy rabat. Możesz pominÄ
Ä ten krok."})]}),a&&(0,t.jsx)(m,{}),(0,t.jsx)("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(240px, 1fr))",gap:16,opacity:a?.45:1,pointerEvents:a?"none":"auto"},children:s.map(i=>{let o=e&&e.id===i.id;return(0,t.jsxs)("button",{onClick:()=>n(o?null:i),className:"clip-notch-br",style:{textAlign:"left",padding:22,background:o?"var(--nortis-navy)":"#fff",color:o?"#fff":"var(--ink)",border:o?"1p
1x solid var(--nortis-navy)":"1px solid var(--gray-200)",position:"relative","--clip":"16px"},children:[i.pop&&!o&&(0,t.jsx)("span",{style:{position:"absolute",top:14,right:14,fontFamily:"var(--font-mono)",fontSize:10,letterSpacing:"0.1em",color:"var(--nortis-blue)"},children:"â
POPULARNY"}),(0,t.jsx)("div",{style:{fontWeight:700,fontSize:20,textDecoration:a?"line-through":"none"},children:i.name}),(0,t.jsx)("div",{style:{marginTop:12,fontFamily:"var(--font-mono)",fontSize:13,opacity:o?.8:.7,lineHeight:1.5},children:i.desc}),(0,t.jsxs)("div",{style:{marginTop:16,display:"flex",alignItems:"baseline",gap:6},children:[(0,t.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:24,fontWeight:600,textDecoration:a?"line-through":"none"},children:["+",(0,r.fmtZl)(i.price)]}),(0,t.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,opacity:.7},children:"zÅ / mies."})]})]},i.id)})})]})}function u({reason:e}){return(0,t.jsxs)("div",{style:{marginBottom:24,padding:"14px 20px",background:"var(--gray-50)",border:"1px solid var(--gray-200)",display:"flex",alignItems:"flex-start",gap:12},children:[(0,t.jsx)("span",{style:{fontSize:18,flexShrink:0},children:"ðº"}),(0,t.jsx)("span",{style:{fontSize:13,color:"var(--gray-700)"},children:"radio"===e?"Pakiety streamingowe niedostÄpne przy internecie radiowym (FWA). VOD możesz dodaÄ po przejÅciu na ÅÄ
cze ÅwiatÅowodowe.":"Pakiety streamingowe wymagajÄ
aktywnej telewizji JAMBOX. WrÃ³Ä do kroku Telewizja i wybierz pakiet, aby odblokowaÄ VOD."})]})}function v({vod:e,onVod:n,bezterm:a,tvLocked:o}){let s=a||!!o;return(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{style:{marginBottom:32},children:[(0,t.jsx)(i.Eyebrow,{children:"Krok 05 · VOD"}),(0,t.jsx)("h2",{className:"h-display h-2",style:{marginTop:12,marginBottom:12},children:"Wybierz serwisy streamingowe."}),(0,t.jsx)("p",{style:{color:"var(--gray-700)",fontSize:16,maxWidth:620,margin:0},children:"Dowolna kombinacja â wszystko na jednej fakturze. Możesz pominÄ
Ä ten krok."})]}),a&&(0,t.jsx)(m,{}),!a&&o&&(0,t.jsx)(u,{reason:o}),(0,t.jsx)("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(220px, 1fr))",gap:14,o
1pacity:s?.45:1,pointerEvents:s?"none":"auto"},children:r.ADDONS.vod.map(i=>{let a=e.includes(i.id);return(0,t.jsxs)("button",{onClick:()=>n(i.id),className:"clip-notch-br",style:{textAlign:"left",padding:0,background:"#fff",border:a?"2px solid var(--nortis-blue)":"1px solid var(--gray-200)",position:"relative","--clip":"14px",overflow:"hidden",display:"flex",flexDirection:"column"},children:[(0,t.jsx)("div",{style:{height:120,background:"#fff",borderBottom:"1px solid var(--gray-100)",display:"flex",alignItems:"center",justifyContent:"center",padding:20},children:(0,t.jsx)("img",{src:i.img,alt:i.name,style:{maxWidth:"75%",maxHeight:70,objectFit:"contain"}})}),(0,t.jsxs)("div",{style:{padding:18,display:"flex",flexDirection:"column",flex:1},children:[(0,t.jsx)("div",{style:{fontWeight:600,fontSize:15,textDecoration:s?"line-through":"none",marginBottom:6},children:i.name}),(0,t.jsx)("div",{style:{fontSize:12,color:"var(--gray-700)",lineHeight:1.4,minHeight:32,textDecoration:s?"line-through":"none",flex:1},children:i.desc}),(0,t.jsxs)("div",{style:{marginTop:12,display:"flex",justifyContent:"space-between",alignItems:"center"},children:[(0,t.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:14,fontWeight:600,textDecoration:s?"line-through":"none"},children:["+",(0,r.fmtAddonPrice)(i)," zÅ"]}),(0,t.jsx)("span",{style:{width:22,height:22,border:a?"0":"1px solid var(--gray-300)",background:a?"var(--nortis-blue)":"#fff",color:"#fff",fontFamily:"var(--font-mono)",fontSize:12,display:"inline-flex",alignItems:"center",justifyContent:"center"},children:a?"â":""})]})]})]},i.id)})})]})}function b({label:e,value:n,onChange:i,placeholder:r,type:a="text",required:o,autoComplete:s}){return(0,t.jsxs)("div",{children:[(0,t.jsxs)("label",{style:{display:"block",fontFamily:"var(--font-mono)",fontSize:11,textTransform:"uppercase",letterSpacing:"0.08em",color:"var(--gray-500)",marginBottom:6},children:[e,o&&" *"]}),(0,t.jsx)("input",{type:a,value:n,onChange:e=>i(e.target.value),placeholder:r,required:o,autoComplete:s,className:"clip-notch-br",style:{width:"100%",padding:"14px 16px",background:"#fff",border:"1px solid var(--gray-200)",fontSize:15,"--clip":"10px"}})]})}function j({cart:e}){let n,i,a,o=e.total;return(0,t.jsxs)("div",{className:"clip-notch-br",style:{background:"var(--nortis-navy)",color:"#fff",padding:28,position:"relative",overflow:"hidden","--clip":"20px"},children:[(0,t.jsx)("div",{className:"speed-lines",style:{color:"var(--nortis-sky)"}}),(0,t.jsxs)("div",{style:{position:"relative"},children:[(0,t.jsx)("div",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--nortis-sky)",textTransform:"uppercase",letterSpacing:"0.1em",marginBottom:8},children:"Twój koszyk"}),(0,t.jsx)("div",{style:{fontWeight:700,fontSize:22,marginBottom:4},children:e.addr?`${e.addr.street} ${e.addr.num}`:"Adres niewybrany"}),e.addr&&(0,t.jsxs)("div",{style:{fontSize:12,opacity:.7,fontFamily:"var(--font-mono)"},children:[e.addr.zip," ",e.addr.city," · ",r.TECH_META[e.addr.tech].short]}),(0,t.jsx)("div",{style:{borderTop:"1px solid rgba(255,255,255,0.12)",margin:"20px 0",height:1}}),(0,t.jsxs)("div",{style:{display:"grid",gap:12},children:[e.internet&&(0,t.jsx)(k,{label:"Internet",name:`${e.internet.name} \xb7 ${e.internet.speed} Mb/s`,price:e.internet.price}),e.tv&&(0,t.jsx)(k,{label:"Telewizja",name:`${e.tv.name} \xb7 ${e.tv.channels} kan.`,price:e.tv.price}),e.telefon&&(0,t.jsx)(k,{label:"Telefon",name:e.telefon.name,price:e.telefon.price}),e.vod.length>0&&(i=(n=e.vod.map(e=>r.ADDONS.vod.find(t=>t.id===e))).some(e=>e.priceUnknown),a=n.reduce((e,t)=>e+(t.price||0),0),(0,t.jsx)(k,{label:"VOD",name:n.map(e=>e.name).join(" + "),price:a,priceLabel:i?"0x0zÅ":void 0})),e.discount>0&&(0,t.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",gap:16,color:"var(--nortis-sky)"},children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{style:{fontFamily:"var(--font-mono)",fontSize:10,letterSpacing:"0.1em",textTransform:"uppercase",opacity:.8},children:"Rabat za pakiet"}),(0,t.jsx)("div",{style:{fontSize:14,fontWeight:500,marginTop:2},children:"ÅÄ
czysz usÅugi â taniej"})]}),(0,t.jsxs)("div",{style:{fontFamily:"var(--font-mono)",fontSize:14,fontWeight:600,whiteSpace:"nowrap"},children:["â",(0,r.fmtZl)(e.discount)," zÅ"]})]}),!e.internet&&!e.tv&&!e.telefon&&0===e.vod.length&&(0,t.jsx)("div",{style:{fontSize:13,opacity:.6},children:"Brak wybranych usÅug."})]}),(0,t.jsx)("div",{style:{borderTop:"1px solid rgba(255,255,255,0.12)",margin:"20px 0",height:1}}),(0,t.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"baseline"},children:[(0,t.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,textTransform:"uppercase",letterSpacing:"0.1em",color:"var(--nortis-sky)"},children:"Razem / mies."}),(0,t.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:36,fontWeight:600},children:[(0,r.fmtZl)(o)," zÅ"]})]}),(0,t.jsx)("div",{style:{fontSize:11,opacity:.5,marginTop:4,fontFamily:"var(--font-mono)"},children:"bezterm"===e.contract?"cena regularna · umowa bezterminowa":"cena promocyjna · umowa 24 mies."})]})]})}function k({label:e,name:n,price:i,priceLabel:a}){return(0,t.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",ga
1p:16},children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{style:{fontFamily:"var(--font-mono)",fontSize:10,letterSpacing:"0.1em",textTransform:"uppercase",opacity:.6},children:e}),(0,t.jsx)("div",{style:{fontSize:14,fontWeight:500,marginTop:2},children:n})]}),(0,t.jsxs)("div",{style:{fontFamily:"var(--font-mono)",fontSize:14,fontWeight:600,whiteSpace:"nowrap"},children:["+",a??`${(0,r.fmtZl)(i)} zÅ`]})]})}function w({cart:e,onSubmit:a,submitted:o}){let[s,l]=(0,n.useState)(""),[d,c]=(0,n.useState)(""),[p,y]=(0,n.useState)(""),[m,f]=(0,n.useState)(!1),[g,x]=(0,n.useState)("rano"),[h,u]=(0,n.useState)(!1),[v,k]=(0,n.useState)(""),[z,S]=(0,n.useState)(""),T="rano"===g?"8:00â11:00":"pol"===g?"11:00â14:00":"14:00â16:00";async function C(t){if(t.preventDefault(),m&&(d||p)){u(!0),k("");try{let t,n=await fetch("/api/contact/",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({type:"lead",name:s,phone:d,email:p,time:T,cart:(t=[],e.addr&&t.push(`Adres: ${e.addr.street||""} ${e.addr.num||""}, ${e.addr.zip||""} ${e.addr.city||""} (${r.TECH_META[e.addr.tech]?.short||e.addr.tech})`),e.internet&&t.push(`Internet: ${e.internet.name} \xb7 ${e.internet.speed} Mb/s \xb7 ${(0,r.fmtZl)(e.internet.price)} zÅ`),e.tv&&t.push(`Telewizja: ${e.tv.name} \xb7 ${e.tv.channels} kan. \xb7 +${(0,r.fmtZl)(e.tv.price)} zÅ`),e.telefon&&t.push(`Telefon: ${e.telefon.name} \xb7 +${(0,r.fmtZl)(e.telefon.price)} zÅ`),e.vod?.length&&t.push(`VOD: ${e.vod.join(", ")}`),e.discount>0&&t.push(`Rabat za pakiet: â${(0,r.fmtZl)(e.discount)} zÅ`),t.push(`Umowa: ${"bezterm"===e.contract?"bezterminowa":"24 mies."}`),null!=e.total&&t.push(`Razem: ${(0,r.fmtZl)(e.total)} zÅ/mies.`),t.push(`Preferowana pora kontaktu: ${T}`),t),company:z})}),i=await n.json();if(!n.ok||!i.ok)throw Error(i.error||"send");window.gtag&&window.gtag("event","generate_lead",{form:"konfigurator"}),a({name:s,phone:d,email:p,time:g})}catch{k("Nie udaÅo siÄ wysÅaÄ. Spróbuj ponownie lub zadzwoÅ: 89 721-21-21.")}finally{u(!1)}}}return o?(0,t.jsxs)("div",{role:"status",style:{background:"var(--nortis-navy)",color:"#fff",padding:48,position:"relative",overflow:"hidden"},className:"clip-notch-br",children:[(0,t.jsx)("div",{className:"speed-lines",style:{color:"var(--nortis-sky)"}}),(0,t.jsx)(i.Eyebrow,{color:"var(--nortis-sky)",children:"Gotowe"}),(0,t.jsx)("h2",{className:"h-display h-2",style:{marginTop:12,marginBottom:12},children:"DziÄkujemy! Skontaktujemy siÄ w ciÄ
gu 24h."}),(0,t.jsxs)("p",{style:{opacity:.8,maxWidth:520,margin:0},children:["Twoja oferta zostaÅa zarejestrowana w systemie. Doradca z Nortis skontaktuje siÄ w godzinach ",T,"."]})]}):(0,t.jsxs)("div",{className:"summary-grid",style:{display:"grid",gridTemplateColumns:"1.2fr 1fr",gap:32},children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(i.Eyebrow,{children:"Krok 06 · FinaÅ"}),(0,t.jsx)("h2",{className:"h-display h-2",style:{marginTop:12,marginBottom:12},children:"Zostaw kontakt â oddzwonimy w 24h."}),(0,t.jsx)("p",{style:{color:"var(--gray-700)",marginBottom:24,maxWidth:480},children:"Doradca potwierdzi szczegóÅy oferty i ustali termin instalacji. Bez zobowiÄ
zaÅ."}),(0,t.jsxs)("form",{onSubmit:C,style:{display:"grid",gap:14,maxWidth:520},children:[(0,t.jsx)("input",{type:"text",tabIndex:-1,autoComplete:"off",value:z,onChange:e=>S(e.target.value),style:{position:"absolute",left:"-9999px",width:1,height:1,opacity:0},"aria-hidden":"true"}),(0,t.jsx)(b,{label:"ImiÄ i nazwisko",value:s,onChange:l,placeholder:"np. Anna Kowalska",required:!0,autoComplete:"name"}),(0,t.jsx)(b,{label:"Telefon (opcjonalnie)",value:d,onChange:c,placeholder:"+48 600 000 000",type:"tel",autoComplete:"tel"}),(0,t.jsx)(b,{label:"E-mail",value:p,onChange:y,placeholder:"[email protected]",type:"email",required:!0,autoComplete:"email"}),(0,t.jsx)("p",{style:{fontSize:12,color:"var(--gray-500)",margin:0,fontFamily:"var(--font-mono)"},children:"Wystarczy podaÄ e-mail â telefon pomoże nam oddzwoniÄ szybciej."}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{style:{display:"block",fontFamily:"var(--font-mono)",fontSize:11,textTransform:"uppercase",letterSpacing:"0.08em",color:"var(--gray-500)",marginBottom:6},children:"Preferowana pora kontaktu"}),(0,t.jsx)("div",{style:{display:"flex",gap:8},children:[{v:"rano",l:"8â11"},{v:"pol",l:"11â14"},{v:"pop",l:"14â16"}].map(e=>(0,t.jsx)("button",{type:"button",onClick:()=>x(e.v),className:"clip-notch-br",style:{flex:1,padding:"12px 14px",background:g===e.v?"var(--nortis-navy)":"#fff",color:g===e.v?"#fff":"var(--ink)",border:g===e.v?"1px solid var(--nortis-navy)":"1px solid var(--gray-200)",fontFamily:"var(--font-mono)",fontSize:13,"--clip":"10px"},children:e.l},e.v))})]}),(0,t.jsxs)("label",{style:{display:"flex",gap:10,alignItems:"flex-start",marginTop:6,fontSize:12,color:"var(--gray-700)",lineHeight:1.5},children:[(0,t.jsx)("input",{type:"checkbox",checked:m,onChange:e=>f(e.target.checked),style:{marginTop:3}}),(0,t.jsx)("span",{children:"Wyrażam zgodÄ na kontakt i przetwarzanie danych w celu przygotowania oferty zgodnie z politykÄ
prywatnoÅci Nortis."})]}),v&&(0,t.jsx)("p",{role:"alert",style:{fontSize:12,color:"#c0392b",margin:0},children:v}),(0,t.jsx)(i.Button,{type:"submit",variant:"primary",disabled:!m||!s||!p||h,style:{marginTop:8,justifyContent:"space-between",padding:"16px 24px",opacity:h?.6:1},children:h?"WysyÅanieâ¦":"WyÅlij i zamów rozmowÄ"})]})]}),(0,t.jsx)(j,{cart:e})]})}function z({addr:e,onResetAddress:a,dark:o=!1}
1){let[s,l]=(0,n.useState)("internet"),[d,c]=(0,n.useState)("24m"),[p,m]=(0,n.useState)(null),[f,g]=(0,n.useState)(null),[u,b]=(0,n.useState)(null),[j,k]=(0,n.useState)([]),[S,T]=(0,n.useState)(!1),[C,W]=(0,n.useState)(!1),F=(0,n.useMemo)(()=>(0,r.buildSteps)(e),[e]),N=F.findIndex(e=>e.key===s);(0,n.useEffect)(()=>{"address"===s&&l("internet")},[s]);let B=(0,n.useMemo)(()=>{let t=j.reduce((e,t)=>e+r.ADDONS.vod.find(e=>e.id===t).price,0),n=(0,r.bundleDiscount)(e?.tech,{internet:p,tv:f,telefon:u},e?.priceList),i=(p?.price||0)+(f?.price||0)+(u?.price||0)+t,a=Math.max(0,i-n);return{addr:e,internet:p,tv:f,telefon:u,vod:j,discount:n,subtotal:i,total:a,contract:d}},[e,p,f,u,j,d]),I=()=>{l(F[(0,r.nextStep)(s,e)].key)};return(0,t.jsx)("section",{style:{background:o?"var(--nortis-navy)":"var(--gray-100)",color:o?"#fff":"var(--ink)",padding:"clamp(32px, 5vw, 56px) 0 clamp(48px, 8vw, 96px)"},children:(0,t.jsxs)("div",{className:"container",children:[(0,t.jsxs)("div",{className:"funnel-header",style:{display:"flex",alignItems:"center",justifyContent:"space-between",flexWrap:"wrap",gap:16,marginBottom:32},children:[(0,t.jsx)("div",{className:"funnel-header-rail",style:{flex:1,minWidth:320},children:(0,t.jsx)(i.StepRail,{steps:F.map((e,t)=>({...e,_i:t})),current:N,onJump:e=>{"address"===F[e].key?a():l(F[e].key)},dark:o})}),(0,t.jsx)("button",{onClick:a,style:{display:"inline-flex",alignItems:"center",gap:8,fontSize:13,fontFamily:"var(--font-mono)",color:o?"rgba(255,255,255,0.7)":"var(--gray-700)",textDecoration:"underline",textUnderlineOffset:4},children:"â zmieÅ adres"})]}),(0,t.jsxs)("div",{style:{background:"#fff",color:"var(--ink)",padding:"40px 32px",boxShadow:"var(--shadow-md)",position:"relative"},className:"clip-notch-br",children:[(0,t.jsx)("button",{onClick:a,title:"Zamknij",style:{position:"absolute",top:16,right:16,width:32,height:32,display:"flex",alignItems:"center",justifyContent:"center",background:"var(--gray-100)",border:"1px solid var(--gray-200)",borderRadius:4,fontSize:16,color:"var(--gray-700)",cursor:"pointer",lineHeight:1,transition:"background .15s"},children:"â"}),"internet"===s&&(0,t.jsx)(y,{addr:e,selected:p,onSelect:m,contract:d,onContract:e=>{c(e),"bezterm"===e&&(g(null),b(null),k([]))}}),"tv"===s&&"R"!==e.tech&&(0,t.jsx)(x,{addr:e,selected:f,onSelect:e=>{g(e),W(!1)},onSkip:()=>{g(null),k([]),W(!0),I()},bezterm:"bezterm"===d}),"telefon"===s&&(0,t.jsx)(h,{telefon:u,onTelefon:b,bezterm:"bezterm"===d,priceList:e?.priceList}),"vod"===s&&(0,t.jsx)(v,{vod:j,onVod:e=>k(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e]),bezterm:"bezterm"===d,tvLocked:"R"===e.tech?"radio":C?"tv":null}),"summary"===s&&(0,t.jsx)(w,{cart:B,submitted:S,onSubmit:()=>T(!0)}),"summary"!==s&&(0,t.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginTop:36,paddingTop:24,borderTop:"1px solid var(--gray-200)"},children:[(0,t.jsx)("button",{onClick:()=>{"internet"===s?a():l(F[(0,r.prevStep)(s,e)].key)},style:{fontFamily:"var(--font-display)",fontSize:14,color:"var(--gray-700)"},children:"â Wstecz"}),(0,t.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12},children:[(0,t.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--gray-500)"},children:["Razem: ",(0,t.jsxs)("strong",{style:{color:"var(--ink)",fontSize:16},children:[(0,r.fmtZl)(B.total)," zÅ / mies."]})]}),"internet"!==s&&(0,t.jsx)("button",{onClick:()=>{"tv"===s&&(g(null),k([]),W(!0)),I()},style:{fontFamily:"var(--font-display)",fontSize:14,fontWeight:600,color:"var(--gray-700)",border:"1px solid var(--gray-200)",background:"#fff",padding:"12px 20px",cursor:"pointer"},children:"PomiÅ"}),(0,t.jsx)(i.Button,{variant:"primary",onClick:I,disabled:"internet"===s&&!p,children:"vod"===s?"Przejdź do podsumowania":"Dalej"})]})]})]})]})})}var S=e.i(30890);let T={variation:"modular",brandHue:240,brandChroma:.16,brandLightness:.55,clip:14,motion:1};e.s(["default",0,function(){let[e,i]=function(e){let[t,i]=(0,n.useState)(e);return[t,(0,n.useCallback)((e,t)=>{let n="object"==typeof e&&null!==e?e:{[e]:t};i(e=>({...e,...n}))},[])]}
1(T),[r,a]=(0,n.useState)(null),[o,s]=(0,n.useState)(0),p=(0,n.useRef)(null),y=(0,n.useRef)(!1);(0,n.useEffect)(()=>{if(r&&y.current){y.current=!1;let e=p.current;if(!e)return;let t=window.scrollY,n=e.getBoundingClientRect().top+window.scrollY-t,i=null,r=e=>{i||(i=e);let a=Math.min((e-i)/1100,1);window.scrollTo(0,t+a*a*a*n),a<1&&requestAnimationFrame(r)};requestAnimationFrame(r)}},[r,o]),(0,n.useEffect)(()=>{let t=document.documentElement;t.style.setProperty("--brand-h",String(e.brandHue)),t.style.setProperty("--brand-c",String(e.brandChroma)),t.style.setProperty("--brand-l",String(e.brandLightness)),240===e.brandHue?(t.style.setProperty("--nortis-blue","#007bc3"),t.style.setProperty("--nortis-navy","#0b1a30"),t.style.setProperty("--nortis-sky","#7fc4ec")):(t.style.setProperty("--nortis-blue",`oklch(${e.brandLightness} ${e.brandChroma} ${e.brandHue})`),t.style.setProperty("--nortis-navy",`oklch(0.22 0.06 ${e.brandHue})`),t.style.setProperty("--nortis-sky",`oklch(0.82 0.10 ${e.brandHue})`)),t.style.setProperty("--clip",`${e.clip}px`),t.style.setProperty("--clip-lg",`${2*e.clip}px`),t.style.setProperty("--motion",String(e.motion))},[e]);let m=e=>{y.current=!0,a(e),s(e=>e+1)};return(0,t.jsxs)("div",{children:["modular"===e.variation?(0,t.jsx)(d,{onAddressSelected:m}):"stream"===e.variation?(0,t.jsx)(c,{onAddressSelected:m}):(0,t.jsx)(l,{onAddressSelected:m}),(0,t.jsx)("div",{ref:p,children:r&&(0,t.jsx)(z,{addr:r,onResetAddress:()=>a(null)},o)}),(0,t.jsx)(S.TrustStrip,{}),(0,t.jsx)(S.Promotions,{}),(0,t.jsx)(S.RegionCoverage,{}),(0,t.jsx)(S.RadioCoverage,{}),(0,t.jsx)(S.TeamSection,{}),(0,t.jsx)(S.ValuePillars,{}),(0,t.jsx)(S.ForBusiness,{}),(0,t.jsx)(S.Footer,{})]})}],52634)}]);
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.