{"version":3,"file":"RealSubmitButton.DFWgVwqs.mjs","names":["React.useState","React.useRef"],"sources":["https:/framerusercontent.com/modules/cs4Go5vrUV6NBRmnIZnS/Vw0N4bknqxXFfN3DaRXd/FormCheckboxField.js","https:/framerusercontent.com/modules/QWkqgXkQJ5z8BcFjz3Nd/Yv0OcfwJN1CkgbEzpRfu/FormCustomSelect.js","https:/framerusercontent.com/modules/bNplYXwZQdwKw4bKWAZf/NfB2WKKLayKia2fJI1TL/FormRoot.js","https:/framerusercontent.com/modules/Wen5o0aiTkmcOLeBke07/qNTdX0NOIGTHwrV8SGB3/FormTextareaField.js","https:/framerusercontent.com/modules/RKmU11JNC8Eb06mZdsJ9/yfmM0k8jjOqQ4z45xxk6/FormTextField.js","https:/framerusercontent.com/modules/LgzsayIrSUuLGtyZijB7/zApHVGb4LTSWgSKfCSI1/RealSubmitButton.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";/**\n * Skutečný GDPR souhlas – bez zaškrtnutí (required) formulář neumožní odeslat.\n */export default function FormCheckboxField(){return /*#__PURE__*/_jsx(\"input\",{type:\"checkbox\",form:\"kontaktni-form\",name:\"souhlas_gdpr\",required:true,style:{width:\"100%\",height:\"100%\",margin:0,cursor:\"pointer\",accentColor:\"#1E5494\"}});}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FormCheckboxField\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FormCheckboxField.map","import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";import{createPortal}from\"react-dom\";/**\n * Vlastní dropdown ve stylu webu (tmavé pozadí, bílý text) – nahrazuje\n * nativní prohlížečový <select>. Šipka je součástí tlačítka.\n */export default function FormCustomSelect(props){const{name,options,placeholder}=props;const list=(options||\"\").split(\",\").map(function(s){return s.trim();}).filter(Boolean);const[open,setOpen]=React.useState(false);const[selected,setSelected]=React.useState(\"\");const[coords,setCoords]=React.useState({top:0,left:0,width:0});const triggerRef=React.useRef(null);const menuRef=React.useRef(null);React.useEffect(()=>{const style=document.createElement(\"style\");style.textContent=\".ff-option:hover { background: rgba(255,255,255,0.08) !important; }\";document.head.appendChild(style);return function(){document.head.removeChild(style);};},[]);React.useEffect(()=>{if(!open)return;function onDocMouseDown(e){const inTrigger=triggerRef.current&&triggerRef.current.contains(e.target);const inMenu=menuRef.current&&menuRef.current.contains(e.target);if(!inTrigger&&!inMenu){setOpen(false);}}document.addEventListener(\"mousedown\",onDocMouseDown);return function(){document.removeEventListener(\"mousedown\",onDocMouseDown);};},[open]);const openMenu=function(){if(triggerRef.current){const r=triggerRef.current.getBoundingClientRect();setCoords({top:r.bottom+8,left:r.left,width:Math.max(r.width,200)});}setOpen(true);};const selectOption=function(opt){setSelected(opt);setOpen(false);};return /*#__PURE__*/_jsxs(\"div\",{style:{width:\"100%\",height:\"100%\"},children:[/*#__PURE__*/_jsx(\"input\",{type:\"hidden\",form:\"kontaktni-form\",name:name,value:selected}),/*#__PURE__*/_jsxs(\"button\",{ref:triggerRef,type:\"button\",onClick:function(){if(open){setOpen(false);}else{openMenu();}},style:{width:\"100%\",height:\"100%\",background:\"transparent\",border:\"none\",outline:\"none\",color:\"#FFFFFF\",font:\"inherit\",textAlign:\"left\",cursor:\"pointer\",padding:0,display:\"flex\",alignItems:\"center\",justifyContent:\"space-between\",gap:\"8px\"},children:[/*#__PURE__*/_jsx(\"span\",{children:selected||placeholder}),/*#__PURE__*/_jsx(\"span\",{style:{display:\"inline-block\",transform:open?\"rotate(180deg)\":\"none\",transition:\"transform 0.15s ease\"},children:\"▾\"})]}),open&&typeof document!==\"undefined\"?/*#__PURE__*/createPortal(/*#__PURE__*/_jsx(\"div\",{ref:menuRef,style:{position:\"fixed\",top:coords.top,left:coords.left,minWidth:coords.width,background:\"rgb(14, 34, 64)\",border:\"1px solid rgba(255,255,255,0.15)\",borderRadius:\"14px\",padding:\"6px\",zIndex:9999,boxShadow:\"0 16px 32px rgba(0,0,0,0.4)\"},children:list.map(function(opt){return /*#__PURE__*/_jsx(\"div\",{className:\"ff-option\",onMouseDown:function(e){e.preventDefault();selectOption(opt);},style:{padding:\"10px 14px\",borderRadius:\"8px\",color:\"#FFFFFF\",font:\"inherit\",fontSize:\"14px\",cursor:\"pointer\"},children:opt},opt);})}),document.body):null]});}FormCustomSelect.defaultProps={name:\"vyber\",options:\"A, B, C\",placeholder:\"Vyberte\"};addPropertyControls(FormCustomSelect,{name:{type:ControlType.String,title:\"Name\",defaultValue:\"vyber\"},options:{type:ControlType.String,title:\"Options (č\\xe1rkou)\",defaultValue:\"A, B, C\"},placeholder:{type:ControlType.String,title:\"Placeholder\",defaultValue:\"Vyberte\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FormCustomSelect\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FormCustomSelect.map","import{jsx as _jsx}from\"react/jsx-runtime\";/**\n * Neviditelný form wrapper – drží formulář pohromadě. Ostatní pole na něj\n * odkazují přes form=\"kontaktni-form\", i když jsou v jiných komponentách.\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function FormRoot(){return /*#__PURE__*/_jsx(\"form\",{id:\"kontaktni-form\",name:\"Popt\\xe1vka\",style:{position:\"absolute\",width:0,height:0,overflow:\"hidden\"}});}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FormRoot\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"fixed\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FormRoot.map","import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Skutečné víceřádkové pole zprávy – průhledné, dědí styl rodičovského rámečku.\n */export default function FormTextareaField(props){const{name,placeholder,required}=props;React.useEffect(()=>{const style=document.createElement(\"style\");style.textContent=`.ff-textarea::placeholder { color: rgba(255,255,255,0.45); }`;document.head.appendChild(style);return()=>{document.head.removeChild(style);};},[]);return /*#__PURE__*/_jsx(\"textarea\",{className:\"ff-textarea\",form:\"kontaktni-form\",name:name,placeholder:placeholder,required:required,style:{width:\"100%\",height:\"100%\",background:\"transparent\",border:\"none\",outline:\"none\",resize:\"none\",color:\"#FFFFFF\",font:\"inherit\"}});}FormTextareaField.defaultProps={name:\"zprava\",placeholder:\"\",required:false};addPropertyControls(FormTextareaField,{name:{type:ControlType.String,title:\"Name\",defaultValue:\"zprava\"},placeholder:{type:ControlType.String,title:\"Placeholder\",defaultValue:\"\"},required:{type:ControlType.Boolean,title:\"Required\",defaultValue:false}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FormTextareaField\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FormTextareaField.map","import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Skutečné textové pole – průhledné, dědí styl rodičovského rámečku\n * (pozadí, border-radius zůstávají z Framer Frame, mění se jen obsah).\n * Vypnuté prohlížečové autofill ikonky a podbarvení.\n */export default function FormTextField(props){const{name,placeholder,type,required}=props;React.useEffect(()=>{const style=document.createElement(\"style\");style.textContent=`\n            .ff-input::placeholder { color: rgba(255,255,255,0.45); }\n            .ff-input:-webkit-autofill,\n            .ff-input:-webkit-autofill:hover,\n            .ff-input:-webkit-autofill:focus {\n                -webkit-text-fill-color: #ffffff !important;\n                -webkit-box-shadow: 0 0 0px 1000px transparent inset !important;\n                box-shadow: 0 0 0px 1000px transparent inset !important;\n                transition: background-color 9999s ease-in-out 0s;\n                caret-color: #ffffff;\n            }\n        `;document.head.appendChild(style);return()=>{document.head.removeChild(style);};},[]);return /*#__PURE__*/_jsx(\"input\",{className:\"ff-input\",form:\"kontaktni-form\",name:name,type:type,placeholder:placeholder,required:required,autoComplete:\"off\",style:{width:\"100%\",height:\"100%\",background:\"transparent\",border:\"none\",outline:\"none\",color:\"#FFFFFF\",font:\"inherit\",appearance:\"none\",WebkitAppearance:\"none\"}});}FormTextField.defaultProps={name:\"pole\",placeholder:\"\",type:\"text\",required:false};addPropertyControls(FormTextField,{name:{type:ControlType.String,title:\"Name\",defaultValue:\"pole\"},placeholder:{type:ControlType.String,title:\"Placeholder\",defaultValue:\"\"},type:{type:ControlType.Enum,title:\"Type\",options:[\"text\",\"email\",\"tel\"],defaultValue:\"text\"},required:{type:ControlType.Boolean,title:\"Required\",defaultValue:false}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FormTextField\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FormTextField.map","import{jsx as _jsx}from\"react/jsx-runtime\";/**\n * Skutečné odesílací tlačítko – nahrazuje původní text + šipku jedním\n * funkčním prvkem se stejným vzhledem (dědí barvu/font z rodiče).\n * @framerSupportedLayoutWidth fill\n * @framerSupportedLayoutHeight fill\n */export default function RealSubmitButton(){return /*#__PURE__*/_jsx(\"button\",{type:\"submit\",form:\"kontaktni-form\",style:{width:\"100%\",height:\"100%\",background:\"transparent\",border:\"none\",outline:\"none\",cursor:\"pointer\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",font:\"inherit\",color:\"inherit\"},children:\"Odeslat popt\\xe1vku\"});}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"RealSubmitButton\",\"slots\":[],\"annotations\":{\"framerSupportedLay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