{"version":3,"file":"Newsletter_Form.Ca5k5vPg.mjs","names":[],"sources":["https:/framerusercontent.com/modules/Fo3mEiNwBTgJDw97HQZZ/iHvVwDYTJnHILUC90zx5/Newsletter_Form.js"],"sourcesContent":["/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n * @framerDisableUnlink\n */import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";export default function SimpleKitForm(props){const{formId,heading,description,namePlaceholder=\"Dein Name\",emailPlaceholder=\"Deine Email Adresse\",buttonLabel=\"Jetzt anmelden\",inputTextColor=\"#333\",inputBgColor=\"#EDE6E1\",buttonBgColor=\"#C9FF40\",buttonTextColor=\"#222\",headingFont={fontSize:32,fontWeight:700},descriptionFont={fontSize:18,fontWeight:400},buttonFont={fontSize:16,fontWeight:\"bold\"},inputFont={fontSize:16}}=props;if(!formId){return /*#__PURE__*/_jsx(\"div\",{children:\"Please enter a Kit Form ID in the properties panel.\"});}const formAction=`https://app.convertkit.com/forms/${formId}/subscriptions`;return /*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:\"16px\",alignItems:\"center\",width:\"100%\",maxWidth:\"500px\",textAlign:\"center\"},children:[heading&&/*#__PURE__*/_jsx(\"h2\",{style:{margin:0,...headingFont},children:heading}),description&&/*#__PURE__*/_jsx(\"p\",{style:{margin:0,...descriptionFont},children:description}),/*#__PURE__*/_jsxs(\"form\",{action:formAction,method:\"post\",style:{display:\"flex\",flexDirection:\"column\",gap:\"8px\",width:\"100%\",maxWidth:\"500px\"},children:[/*#__PURE__*/_jsx(\"input\",{type:\"text\",name:\"first_name\",placeholder:namePlaceholder,required:true,style:{width:\"100%\",color:inputTextColor,backgroundColor:inputBgColor,border:\"none\",borderRadius:\"8px\",padding:\"12px\",...inputFont}}),/*#__PURE__*/_jsx(\"input\",{type:\"email\",name:\"email_address\",placeholder:emailPlaceholder,required:true,style:{width:\"100%\",color:inputTextColor,backgroundColor:inputBgColor,border:\"none\",borderRadius:\"8px\",padding:\"12px\",...inputFont}}),/*#__PURE__*/_jsx(\"button\",{type:\"submit\",style:{width:\"100%\",border:\"none\",cursor:\"pointer\",fontWeight:\"bold\",padding:\"12px 20px\",fontSize:\"16px\",borderRadius:\"8px\",color:buttonTextColor,backgroundColor:buttonBgColor,transition:\"background-color 0.3s ease\",...buttonFont},onMouseEnter:e=>e.target.style.backgroundColor=\"#B8F836\",onMouseLeave:e=>e.target.style.backgroundColor=buttonBgColor,children:buttonLabel})]})]});}// ✅ Add Property Controls for Framer\naddPropertyControls(SimpleKitForm,{formId:{type:ControlType.String,title:\"Kit Form ID\",placeholder:\"Enter your ConvertKit Form ID\"},heading:{type:ControlType.String,title:\"Heading\"},headingFont:{type:ControlType.Font,title:\"Heading Font\",controls:\"extended\"},description:{type:ControlType.String,title:\"Description\",displayTextArea:true},descriptionFont:{type:ControlType.Font,title:\"Description Font\",controls:\"extended\"},namePlaceholder:{type:ControlType.String,title:\"Name Placeholder\"},emailPlaceholder:{type:ControlType.String,title:\"Email Placeholder\"},inputTextColor:{type:ControlType.Color,title:\"Input Text Color\"},inputBgColor:{type:ControlType.Color,title:\"Input Background\"},inputFont:{type:ControlType.Font,title:\"Input Font\",controls:\"extended\"},buttonLabel:{type:ControlType.String,title:\"Button Label\"},buttonTextColor:{type:ControlType.Color,title:\"Button Text Color\"},buttonBgColor:{type:ControlType.Color,title:\"Button Background\"},buttonFont:{type:ControlType.Font,title:\"Button Font\",controls:\"extended\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"SimpleKitForm\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Newsletter_Form.map"],"mappings":"wOAIgH,SAAwB,EAAc,EAAM,CAAC,GAAK,CAAC,SAAO,UAAQ,cAAY,kBAAgB,YAAY,mBAAiB,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