{"version":3,"file":"SubscriptionForm.Cu0D5Gle.mjs","names":["useMemo"],"sources":["https:/framerusercontent.com/modules/f2B0nkZHy7gXUF9UqpkN/hvYsdcdURidPU9r2UoeV/SubscriptionForm.js"],"sourcesContent":["// Embedded newsletter iframe with controls for URL, width, height, border, and margin\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useMemo}from\"react\";/**\n * Embedded Newsletter Form\n *\n * @framerIntrinsicWidth 840\n * @framerIntrinsicHeight 305\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function SubscriptionForm(props){const{url,frameWidth,frameHeight,borderRadius,margin,showBorder,borderColor,borderThickness,style}=props;const containerStyle=useMemo(()=>({...style,display:\"block\",marginLeft:\"auto\",marginRight:\"auto\",maxWidth:\"100%\",borderRadius,boxShadow:showBorder?\"0 1px 4px 0 rgba(0,0,0,0.08)\":undefined,overflow:\"hidden\",margin,width:\"100%\",border:showBorder?`${borderThickness}px solid ${borderColor}`:\"none\"}),[borderRadius,showBorder,style,margin,borderColor,borderThickness]);return /*#__PURE__*/_jsx(\"div\",{style:containerStyle,children:/*#__PURE__*/_jsx(\"iframe\",{src:url,width:frameWidth,height:frameHeight,frameBorder:showBorder?String(borderThickness):\"0\",scrolling:\"auto\",allowFullScreen:true,style:{display:\"block\",width:\"100%\",height:frameHeight,border:showBorder?`${borderThickness}px solid ${borderColor}`:\"none\",borderRadius,background:\"#fff\"},title:\"Embedded Newsletter Form\"})});}addPropertyControls(SubscriptionForm,{url:{type:ControlType.String,title:\"URL\",defaultValue:\"https://a4ad0a2e.sibforms.com/serve/MUIFABCnEFe_HlY2YJkxtPovExqeaa91nhYP5o4e4endsg33P6QXjzzFfM3Jf9jI20oSHyrrVOnlEw4_US67Wx2yZyJ12a4rlbG5VHA5yuY0ceZjjwVfBKoCcY5jzgPoW5ENMd5Ruhb2n2tOInFY-m-k4JR70CKcnnG7qZxcyiR2iujuAKDr55ML4JmqaJsqD9DznmhJW5aYM4SG\",placeholder:\"Paste newsletter form URL…\"},frameWidth:{type:ControlType.Number,title:\"Width\",defaultValue:840,min:320,max:1500,step:1,unit:\"px\"},frameHeight:{type:ControlType.Number,title:\"Height\",defaultValue:305,min:150,max:1200,step:1,unit:\"px\"},borderRadius:{type:ControlType.Number,title:\"Radius\",defaultValue:8,min:0,max:32},margin:{type:ControlType.Number,title:\"Margin\",defaultValue:0,min:0,max:80,step:1,unit:\"px\"},showBorder:{type:ControlType.Boolean,title:\"Border\",defaultValue:false,enabledTitle:\"Show\",disabledTitle:\"Hide\"},borderColor:{type:ControlType.Color,title:\"Border Color\",defaultValue:\"#EEEEEE\",hidden:({showBorder})=>!showBorder},borderThickness:{type:ControlType.Number,title:\"Border Thickness\",defaultValue:1,min:1,max:16,step:1,unit:\"px\",hidden:({showBorder})=>!showBorder}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"SubscriptionForm\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"840\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerIntrinsicHeight\":\"305\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./SubscriptionForm.map"],"mappings":"0KASG,SAAwB,EAAiB,EAAM,CAAC,GAAK,CAAC,MAAI,aAAW,cAAY,eAAa,SAAO,aAAW,cAAY,kBAAgB,SAAO,EAAmX,OAAoB,EAAK,MAAM,CAAC,MAAxXA,OAAa,CAAC,GAAG,EAAM,QAAQ,QAAQ,WAAW,OAAO,YAAY,OAAO,SAAS,OAAO,eAAa,UAAU,EAAW,+BAA+B,IAAA,GAAU,SAAS,SAAS,SAAO,MAAM,OAAO,OAAO,EAAW,GAAG,EAAgB,WAAW,IAAc,OAAO,EAAE,CAAC,EAAa,EAAW,EAAM,EAAO,EAAY,EA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