PageSourceSearch

https://www.tagbox.cz/assets/StartFree-DPGLqqbn.js

js tagbox.cz collected 2026-10-02 00:35:23 UTC 8,444 bytes, 1 lines download raw bytes

1import{j as e,S as k,m as p}from"./app-CJjRPFjX.js";import{u as z,d as w,r as m,L as r}from"./vendor-react-uiNVGrG3.js";import{C as R,i as S}from"./vendor-ui-CFMlvLa5.js";const E=()=>{const[b]=z();w();const y=b.get("plan")||"free",[a,j]=m.useState({email:"",eventName:"",description:"",date:""}),[t,i]=m.useState(!1),[v,g]=m.useState(!1),[x,l]=m.useState(""),o=s=>{const{name:n,value:u}=s.target;j({...a,[n]:u})},N=async s=>{if(s.preventDefault(),l(""),i(!0),!a.email||!a.eventName||!a.date){l("Prosím vyplňte vÅ¡echna povinná pole."),i(!1);return}if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(a.email)){l("Prosím zadejte platnou e-mailovou adresu."),i(!1);return}if(!/^\d{1,2}\.\d{1,2}\.\d{4}$/.test(a.date)){l("Prosím zadejte datum ve formátu DD.MM.RRRR."),i(!1);return}try{{const h=await fetch("/api/submit_form.php",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)}),f=await h.json();if(!h.ok)throw new Error(f.error||"Nepodařilo se odeslat formulář.");g(!0)}}catch(c){console.error("Chyba při odesílání:",c),l(c.message||"Nastala chyba při odeslání formuláře.")}finally{i(!1)}},d={free:"Free",basic:"Basic",city:"City",pro:"Pro"}[y]||"Free";return e.jsxs(e.Fragment,{children:[e.jsx(k,{title:"VyzkouÅ¡ejte program na rezervaci stánků zdarma",description:"Program na stánky TAGBOX – 6 měsíců zdarma. Rezervace stánků na mapě, správa prodejních stánků, automatické smlouvy. Aktivace do 24 hodin, žádná kreditní karta.",path:"/zacit-zdarma"}),e.jsx("section",{className:"pt-32 pb-20 bg-gradient-to-b from-blue-50 to-white",children:e.jsx("div",{className:"container-custom",children:e.jsxs("div",{className:"max-w-2xl mx-auto",children:[e.jsxs("div",{className:"text-center mb-12",children:[e.jsxs("h1",{className:"text-4xl md:text-5xl font-bold mb-6",children:["Začněte s TAGBOX ",d==="Free"?"zdarma":`${d}`]}),e.jsx("p",{className:"text-lg text-gray-600",children:"Vyplňte jednoduchý formulář a začněte používat TAGBOX během několika minut."})]}),v?e.jsxs(p.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},className:"bg-white rounded-xl p-8 shadow-md text-center",children:[e.jsx("div",{className:"flex justify-center mb-6",children:e.jsx("div",{className:"w-16 h-16 bg-green-100 rounded-full flex items-center justify-center",children:e.jsx(R,{size:32,className:"text-green-600"})})}),e.jsx("h2",{className:"text-2xl font-bold mb-4",children:"Děkujeme za registraci!"}),e.jsxs("p",{className:"text-gray-600 mb-6",children:["Na e-mailovou adresu ",a.email," jsme vám zaslali přístupové údaje a další instrukce."]}),e.jsxs("div",{className:"space-y-4",children:[e.jsx(r,{to:"/",className:"btn-primary block",children:"Zpět na úvodní stránku"}),e.jsx(r,{to:"/kontakt",className:"text-primary-600 hover:text-primary-700 font-medium",children:"Potřebujete pomoc?"})]})]}):e.jsxs(p.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},className:"bg-white rounded-xl p-8 shadow-md",children:[e.jsx("div",{className:"mb-6 p-3 bg-blue-50 border border-blue-100 rounded-lg",children:e.jsx("p",{className:"text-blue-800 font-medium",children:d==="Free"?"Registrujete se pro bezplatné používání systému TAGBOX pro jednu akci.":"Poptejte bezplatné používání systému TAGBOX"})}),x&&e.jsxs("div",{className:"mb-6 p-3 bg-red-50 border border-red-100 rounded-lg flex items-start",children:[e.jsx(S,{size:20,className:"text-red-600 mr-2 mt-0.5 flex-shrink-0"}),e.jsx("p",{className:"text-red-800",children:x})]}),e.jsxs("form",{onSubmit:N,children:[e.jsxs("div",{className:"mb-4",children:[e.jsxs("label",{htmlFor:"email",className:"block text-sm font-medium text-gray-700 mb-1",children:["E-mail ",e.jsx("span",{className:"text-red-500",children:"*"})]}),e.jsx("input",{type:"email",id:"email",name:"email",value:a.email,onChange:o,className:"w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-primary-500 focus:border-primary-500",placeholder:"[email protected]",required:!0,disabled:t})]}),e.jsxs("div",{className:"mb-4",children:[e.jsxs("label",{htmlFor:"eventName",className:"block text-sm font-medium text-gray-700 mb-1",children:["Název akce ",e.jsx("span",{className:"text-red-500",children:"*"})]}),e.jsx("input",{type:"text",id:"eventName",name:"eventName",value:a.eventName,onChange:o,className:"w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-primary-500 focus:border-primary-500",placeholder:"např. Farmářské trhy Mělník",required:!0,disabled:t})]}),e.jsxs("div",{className:"mb-4",children:[e.jsx("label",{htmlFor:"description",className:"block text-sm font-medium text-gray-700 mb-1",children:"Popis akce"}),e.jsx("textarea",{id:"description",name:"description",value:a.description,onChange:o,rows:4,className:"w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-primary-500 focus:border-primary-500",placeholder:"Krátký popis vaší akce...",disabled:t})]}),e.jsxs("div",{className:"mb-6",children:[e.jsxs("label",{htmlFor:"date",className:"block text-sm font-medium text-gray-700 mb-1",children:["Datum konání akce ",e.jsx("span",{className:"text-red-500",children:"*"})]}),e.jsx("input",{type:"text",id:"date",name:"date",value:a.date,onChange:o,className:"w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-primary-500 focus:border-primary-500",placeholder:"DD.MM.RRRR",required:!0,disabled:t}),e.jsx("p",{className:"mt-1 text-sm text-gray-500",children:"Formát: DD.MM.RRRR (např. 15.06.2025)"})]}),e.jsxs("div",{className:"flex items-center mb-6",children:[e.jsx("input",{type:"checkbox",id:"terms",className:"h-4 w-4 text-primary-600 focus:ring-primary-500 border-gray-300 rounded",required:!0,disabled:t}),e.jsxs("label",{htmlFor:"terms",className:"ml-2 block text-sm text-gray-700",children:["Souhlasím s ",e.jsx(r,{to:"/terms",className:"text-primary-600 hover:text-primary-700",children:"obchodními podmínkami"})," a ",e.jsx(r,{to:"/privacy",className:"text-primary-600 hover:text-primary-700",children:"zásadami ochrany osobních údajů"}),"."]})]}),e.jsx("button",{type:"submit",className:"w-full btn-primary py-3 relative",disabled:t,children:t?e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"opacity-0",children:"Vytvořit účet"}),e.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:e.jsx("div",{className:"w-6 h-6 border-2 border-white border-t-transparent roun
1ded-full animate-spin"})})]}):"Vytvořit účet"})]}),e.jsx("div",{className:"mt-6 text-center",children:e.jsxs("p",{className:"text-sm text-gray-600",children:["Již máte účet? ",e.jsx(r,{to:"/login",className:"text-primary-600 hover:text-primary-700 font-medium",children:"Přihlaste se"})]})})]})]})})}),e.jsx("section",{className:"py-16 bg-white",children:e.jsx("div",{className:"container-custom",children:e.jsxs("div",{className:"max-w-3xl mx-auto",children:[e.jsxs("div",{className:"text-center mb-12",children:[e.jsx("h2",{className:"text-3xl font-bold mb-4",children:"Co získáte registrací?"}),e.jsx("p",{className:"text-gray-600",children:"S bezplatnou registrací získáte přístup k těmto funkcím:"})]}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[{title:"Interaktivní mapa",description:"Přehledná mapa vaší akce s možností výběru a rezervace stánků."},{title:"Správa stánkařů",description:"Přehledná evidence stánkařů a jejich kontaktních údajů."},{title:"Základní reporty",description:"Základní statistiky a přehledy o vaší akci."},{title:"Zákaznická podpora",description:"E-mailová podpora pro případ jakýchkoliv dotazů nebo problémů."}].map((s,n)=>e.jsxs(p.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:n*.1},className:"bg-gray-50 p-5 rounded-lg",children:[e.jsx("h3",{className:"font-semibold text-lg mb-2",children:s.title}),e.jsx("p",{className:"text-gray-600",children:s.description})]},n))}),e.jsxs("div",{className:"mt-12 text-center",children:[e.jsx("p",{className:"text-gray-600 mb-4",children:"Žádné skryté poplatky, používání pro jednu akci zdarma."}),e.jsxs("p",{className:"text-gray-600",children:["Máte nějaké otázky?"," ",e.jsx(r,{to:"/kontakt",className:"text-primary-600 hover:text-primary-700 font-medium",children:"Kontaktujte nás"})]})]})]})})})]})};export{E 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.