1import{j as e,m}from"./motion-ByrmHL-7.js";import{r as d}from"./react-vendor-Dye3IoJs.js";import{Y as x,aI as p,ac as f,b as u,ae as h,d as b,W as j,B as g}from"./index-CBCj37G3.js";import N from"./MobileOrderWizard-Dg4MxmeH.js";import{e as y}from"./roundMoney-CKbOpGpa.js";import"./ui-vendor-BR6OGFid.js";import"./formatPrice-ElVURDaT.js";import"./activationFees-DSX-K1w1.js";import"./building-2-CXTLKqCF.js";import"./log-in-DDAl0Ph7.js";import"./send-BI062Imi.js";import"./chevron-down-I9KKJa5s.js";import"./file-text-q7g2NIHv.js";const B=({onClose:r,enteredAddress:n})=>{const[s,i]=d.useState(null),{tariffs:o,loading:l}=x("mobile"),c=p(f(o,"24")).map(t=>{var a;return{...t,data:"Internet krajowy",speed:((a=t.speed)==null?void 0:a.replace("Internetu","").trim())??""}});return s?e.jsx(N,{initialPlan:s,onClose:r,initialAddress:n}):l?e.jsx("div",{className:"flex justify-center py-12",children:e.jsx(u,{className:"h-8 w-8 animate-spin text-accent"})}):e.jsxs(m.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},children:[e.jsxs("div",{className:"text-center mb-6",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 rounded-full border border-orange-500/30 bg-
1orange-500/10 px-4 py-1.5 mb-3",children:[e.jsx(h,{className:"h-4 w-4 text-orange-400"}),e.jsx("span",{className:"text-xs font-semibold uppercase tracking-wider text-orange-400",children:"Internet mobilny"})]}),e.jsx("h3",{className:"text-xl font-bold text-foreground",children:"ÅwiatÅowód niedostÄpny? Mamy alternatywÄ!"}),e.jsx("p",{className:"mt-2 text-sm text-muted-foreground max-w-md mx-auto",children:"Skorzystaj z naszego internetu mobilnego LTE â szybki internet bez kabla, dostÄpny wszÄdzie."})]}),e.jsx("div",{className:"grid gap-4 sm:grid-cols-2 max-w-2xl mx-auto",children:c.map(t=>e.jsxs("div",{className:`glass-card p-6 relative transition-all hover:border-accent/20 ${t.popular?"border-accent ring-1 ring-accent/20":""}`,children:[t.popular&&e.jsx("span",{className:"absolute -top-2.5 right-3 rounded-full bg-accent px-2.5 py-0.5 text-[10px] font-bold uppercase text-accent-foreground",children:"Polecany"}),e.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[e.jsx(b,{className:"h-5 w-5 text-accent"}),e.jsx("h4",{className:"font-bold text-foreground",children:t.name})]}),e.jsx("div",{className:"text-sm font-semibold text-accent mb-1",children:t.speed}),e.jsxs("div",{className:"mb-4",children:[e.jsx("span",{className:"text-3xl font-extrabold text-foreground",children:t.price.toFixed(2).replace(".",",")}),e.jsx("span",{className:"text-sm text-muted-foreground",children:" zÅ/mies."})]}),e.jsx("ul",{className:"space-y-1.5 mb-5",children:t.features.map(a=>e.jsxs("li",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[e.jsx(j,{className:"h-3 w-3 text-accent shrink-0"}),a]},a))}),e.jsxs(g,{onClick:()=>i(t.name),className:"w-full bg-accent text-accent-foreground hover:bg-accent/90",children:["Zamów",e.jsx(y,{className:"ml-1 h-4 w-4"})]})]},t.id))})]})};export{B as default};
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.