{"version":3,"file":"Popupsuccess.CbBMGiXM.mjs","names":["React.useState"],"sources":["https:/framerusercontent.com/modules/Lr5bJ9GTwMqGm50XZKQu/MUa5K7Ff0bg8zpBunA70/Popupsuccess.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";export function FormSuccessPopup(props){const{title=\"Thank you!\",message=\"Your reservation request has been submitted.\\nA confirmation email will arrive shortly.\",button=\"Close\",formSelector=\"form\"}=props;const[open,setOpen]=React.useState(false);React.useEffect(()=>{const form=document.querySelector(formSelector);if(!form){console.warn(\"⚠️ FormSuccessPopup: no form found for selector:\",formSelector);return;}const handleSubmit=()=>{setTimeout(()=>setOpen(true),300);};form.addEventListener(\"submit\",handleSubmit);return()=>{form.removeEventListener(\"submit\",handleSubmit);};},[formSelector]);if(!open)return null;return /*#__PURE__*/_jsxs(\"div\",{style:{position:\"fixed\",inset:0,width:\"100vw\",height:\"100vh\",background:\"rgba(0,0,0,0.65)\",backdropFilter:\"blur(4px)\",display:\"grid\",placeItems:\"center\",zIndex:999999,animation:\"fadeIn 0.3s ease-out\"},onClick:()=>setOpen(false),children:[/*#__PURE__*/_jsxs(\"div\",{style:{background:\"white\",padding:\"30px 40px\",borderRadius:\"14px\",maxWidth:\"90vw\",width:\"360px\",textAlign:\"center\",boxShadow:\"0 12px 40px rgba(0,0,0,0.4)\",animation:\"scaleIn 0.25s ease-out\",whiteSpace:\"pre-line\"},onClick:e=>e.stopPropagation(),children:[/*#__PURE__*/_jsx(\"h2\",{style:{marginTop:0,fontSize:24},children:title}),/*#__PURE__*/_jsx(\"p\",{style:{marginBottom:24,fontSize:16,lineHeight:1.4},children:message}),/*#__PURE__*/_jsx(\"button\",{style:{padding:\"10px 22px\",fontSize:\"16px\",background:\"black\",color:\"white\",border:\"none\",borderRadius:\"6px\",cursor:\"pointer\"},onClick:()=>setOpen(false),children:button})]}),/*#__PURE__*/_jsx(\"style\",{children:`\n                @keyframes fadeIn {\n                    from { opacity: 0; }\n                    to { opacity: 1; }\n                }\n                @keyframes scaleIn {\n                    from { transform: scale(0.85); opacity: 0; }\n                    to { transform: scale(1); opacity: 1; }\n                }\n            `})]});}// 👉 Add right-sidebar inputs in Framer\naddPropertyControls(FormSuccessPopup,{title:{type:ControlType.String,title:\"Title\",defaultValue:\"Thank you!\"},message:{type:ControlType.String,title:\"Message\",defaultValue:\"Your reservation request has been submitted.\\nA confirmation email will arrive shortly.\"},button:{type:ControlType.String,title:\"Button Text\",defaultValue:\"Close\"},formSelector:{type:ControlType.String,title:\"Form Selector\",defaultValue:\"form\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"FormSuccessPopup\":{\"type\":\"reactComponent\",\"name\":\"FormSuccessPopup\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Popupsuccess.map"],"mappings":"mLAAyI,SAAgB,EAAiB,EAAM,CAAC,GAAK,CAAC,QAAM,aAAa,UAAQ;2CAA0F,SAAO,QAAQ,eAAa,QAAQ,EAAW,CAAC,EAAK,GAASA,EAAe,GAAM,CAAmX,OAAlX,MAAoB,CAAC,IAAM,EAAK,SAAS,cAAc,EAAa,CAAC,GAAG,CAAC,EAAK,CAAC,QAAQ,KAAK,mDAAmD,EAAa,CAAC,OAAQ,IAAM,MAAiB,CAAC,eAAe,EAAQ,GAAK,CAAC,IAAI,EAAgD,OAA7C,EAAK,iBAAiB,SAAS,EAAa,KAAW,CAAC,EAAK,oBAAoB,SAAS,EAAa,GAAK,CAAC,EAAa,CAAC,CAAK,EAAqC,EAAM,MAAM,CAAC,MAAM,CAAC,SAAS,QAAQ,MAAM,EAAE,MAAM,QAAQ,OAAO,QAAQ,WAAW,mBAAmB,eAAe,YAAY,QAAQ,OAAO,WAAW,SAAS,OAAO,OAAO,UAAU,uBAAuB,CAAC,YAAY,EAAQ,GAAM,CAAC,SAAS,CAAc,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