1import{j as e,m as n,r as w,k as j,C as N,A as v,Z as C,L as P,T as L}from"./vendor-ui-C_-DsJan.js";import{r as u,L as p}from"./vendor-react-Bscl9t8p.js";import{u as S,L as A,S as R,B as q}from"./index-DJkJoksn.js";import{B}from"./Breadcrumbs-Do7-p71C.js";import"./vendor-charts-RYmyDf_a.js";const r=[{question:"Ile pokoi ma Twój hotel?",options:[{label:"Do 50 pokoi",scores:{standard:2,light:1,premium:0}},{label:"50â150 pokoi",scores:{standard:0,light:2,premium:1}},{label:"Ponad 150 pokoi",scores:{standard:0,light:0,premium:2}}]},{question:"Ile rzeczy znalezionych obsÅugujesz miesiÄcznie?",options:[{label:"1â5 rzeczy",scores:{standard:2,light:1,premium:0}},{label:"5â15 rzeczy",scores:{standard:0,light:2,premium:1}},{label:"Ponad 15 rzeczy",scores:{standard:0,light:0,premium:2}}]},{question:"Czy chcesz zbieraÄ opinie goÅci po zwrocie rzeczy?",options:[{label:"Tak, to ważne",scores:{standard:0,light:1,premium:2}},{label:"Nie, wystarczy sam zwrot",scores:{standard:2,light:1,premium:0}}]},{question:"Jak ważna jest dla Ciebie automatyzacja komunikacji z goÅciem?",options:[{label:"Kluczowa â chcÄ minimum rÄcznej pracy",scores:{standard:0,light:0,premium:2}},{label:"Przydatna, ale nie konieczna",scores:{standard:0,light:2,premium:1}},{label:"Nie potrzebujÄ â wystarczy podstawowy proces",scores:{standard:2,light:1,premium:0}}]}],T={standard:{name:"Standard",icon:C,price:"0 PLN",priceNote:null,features:["WysyÅka linku do goÅcia (SMS / e-mail / WhatsApp)","Gotowe wiadomoÅci po polsku i angielsku","Etykieta do druku","Wsparcie mailowe","1 koordynator"]},light:{name:"Light",icon:P,price:"49 PLN",priceNote:"netto / mies.",features:["Wszystko ze Standard","Pakiet powitalny: naklejki z QR","Checklista wdrożeniowa","Opieka Customer Service","Szablony komunikacji"]},premium:{name:"Premium",icon:L,price:"199 PLN",priceNote:"netto / mies.",features:["Panel podsumowaÅ + raporty","QR Add (szybkie dodawanie znalezionych rzeczy)","Automatyzacja komunikacji z goÅciem","Baza Rzeczy Znalezionych","Priorytetowe wsparcie"]}},$=()=>{const{lp:o}=S(),[s,h]=u.useState(0),[l,y]=u.useState(Array(r.length).fill(null)),[c,x]=u.useState(!1),f=t=>{const a=[...l];a[s]=t,y(a),setTimeout(()=>{s<r.length-1?h(s+1):x(!0)},300)},g=()=>{c?x(!1):s>0&&h(s-1)},d=(()=>{const t={standard:0,light:0,premium:0};return l.forEach((a,k)=>{if(a!==null){const m=r[k].options[a].scores;t.standard+=m.standard,t.light+=m.light,t.premium+=m.premium}}),t.premium>=t.light&&t.premium>=t.standard?"premium":t.light>=t.standard?"light":"standard"})(),i=T[d],z=i.icon,b=c?100:(s+1)/r.length*100;return e.jsxs(A,{children:[e.jsx(R,{title:"Quiz â Który plan Refindi jest dla Ciebie?",description:"Odpowiedz na 4 pytania i sprawdź, który plan Refindi najlepiej pasuje do Twojego hotelu. Zajmie to mniej niż 30 sekund."}),e.jsx("section",{className:"pt-6 pb-0 bg-gradient-to-b from-refindi-peach-10 to-transparent",children:e.jsx("div",{className:"container-refindi",children:e.jsx(B,{items:[{label:"Quiz",href:"/quiz"}]})})}),e.jsx("section",{className:"section-padding bg-background min-h-[60vh]",children:e.jsxs("div",{className:"container-refindi max-w-2xl mx-auto",children:[e.jsxs(n.div,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},className:"text-center mb-8",children:[e.jsx("h1",{className:"text-h2 text-foreground mb-2",children:"Który plan Refindi jest dla Ciebie?"}),e.jsx("p",{className:"text-muted-foreground",children:"Odpowiedz na 4 pytania â zajmie to mniej niż 30 sekund."})]}),e.jsx("div",{className:"w-full bg-muted rounded-full h-2 mb-8",children:e.jsx(n.div,{className:"bg-primary h-2 rounded-full",initial:{width:0},animate:{width:`${b}%`},transition:{duration:.3}})}),e.jsx(w,{mode:"wait",children:c?e.jsxs(n.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.35},className:"text-center",children:[e.jsxs("h2",{className:"text-h2 text-foreground mb-6",children:["Nasza rekomendacja: ",e.jsx("span",{className:"text-primary",children:i.name})]}),e.jsxs("div",{className:"max-w-sm mx-auto bg-card rounded-2xl border-2 border-primary shadow-lg p-6 text-left mb-8",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[e.jsx("div",{className:"p-2 rounded-xl bg-primary/10",children:e.jsx(z,{className:"h-6 w-6 text-primary"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-bold text-foreground",children:i.name}),e.jsxs("p",{className:"text-sm text-muted-foreground",children:[i.price,i.priceNote&&e.jsx("span",{className:"ml-1",children:i.priceN
1ote})]})]})]}),e.jsx("ul",{className:"space-y-2",children:i.features.map((t,a)=>e.jsxs("li",{className:"flex items-start gap-2 text-sm text-foreground",children:[e.jsx(N,{className:"h-4 w-4 text-primary mt-0.5 shrink-0"}),t]},a))})]}),e.jsx(p,{to:o(`/rejestracja?plan=${d==="standard"?"free":d}`),children:e.jsxs(q,{variant:"hero",size:"lg",className:"w-full sm:w-auto mb-4",children:["Aktywuj ",i.name," za darmo",e.jsx(v,{className:"ml-2 h-4 w-4"})]})}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(p,{to:o("/cennik"),className:"block text-sm text-muted-foreground hover:text-foreground underline underline-offset-4 transition-colors",children:"Chcesz porównaÄ wszystkie plany? Zobacz cennik â"}),e.jsx(p,{to:o("/kontakt"),className:"block text-sm text-muted-foreground hover:text-foreground underline underline-offset-4 transition-colors",children:"Chcesz porozmawiaÄ? Kontakt â"})]}),e.jsxs("button",{onClick:g,className:"mt-6 inline-flex items-center gap-1.5 text-sm text-muted-foreground hover:text-foreground transition-colors",children:[e.jsx(j,{className:"h-4 w-4"}),"Wstecz"]})]},"result"):e.jsxs(n.div,{initial:{opacity:0,x:40},animate:{opacity:1,x:0},exit:{opacity:0,x:-40},transition:{duration:.25},children:[e.jsxs("p",{className:"text-sm text-muted-foreground mb-2",children:["Pytanie ",s+1," z ",r.length]}),e.jsx("h2",{className:"text-xl font-semibold text-foreground mb-6",children:r[s].question}),e.jsx("div",{className:"space-y-3",children:r[s].options.map((t,a)=>e.jsx("button",{onClick:()=>f(a),className:`w-full text-left p-4 rounded-xl border-2 transition-all duration-200 ${l[s]===a?"border-primary bg-primary/5 ring-2 ring-primary/20":"border-border hover:border-primary/40 hover:bg-muted/50"}`,children:e.jsx("span",{className:"text-base font-medium text-foreground",children:t.label})},a))}),s>0&&e.jsxs("button",{onClick:g,className:"mt-6 flex items-center gap-1.5 text-sm text-muted-foreground hover:text-foreground transition-colors",children:[e.jsx(j,{className:"h-4 w-4"}),"Wstecz"]})]},`q-${s}`)})]})})]})};export{$ 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.