{"version":3,"file":"Substack.BEaWmUvc.mjs","names":[],"sources":["https:/framerusercontent.com/modules/s8PUEl0YKXwdgcw9JH4T/Z4i8EQ2ijuAN8fD9c8AW/Substack.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Responsive Substack Subscribe Embed\n *\n * @framerDisableUnlink\n * @framerIntrinsicWidth 480\n * @framerIntrinsicHeight 320\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function SubstackEmbed(props){const{publicationUrl,height,maxWidth,borderColor,borderWidth,borderRadius,backgroundColor,alignment,style}=props;// Normalize the publication URL → always end with /embed\nconst cleanUrl=(publicationUrl||\"\").trim().replace(/\\/+$/,\"\").replace(/\\/embed$/,\"\");const src=cleanUrl?`${cleanUrl}/embed`:\"\";const justify=alignment===\"left\"?\"flex-start\":alignment===\"right\"?\"flex-end\":\"center\";return /*#__PURE__*/_jsx(\"div\",{style:{...style,width:\"100%\",height:\"100%\",display:\"flex\",justifyContent:justify,alignItems:\"flex-start\"},children:/*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",maxWidth:`${maxWidth}px`,height:`${height}px`,borderRadius:`${borderRadius}px`,overflow:\"hidden\",border:`${borderWidth}px solid ${borderColor}`,background:backgroundColor,boxSizing:\"border-box\"},children:src?/*#__PURE__*/_jsx(\"iframe\",{src:src,width:\"100%\",height:\"100%\",style:{border:\"none\",background:backgroundColor,display:\"block\",width:\"100%\",height:\"100%\"},frameBorder:0,scrolling:\"no\",title:\"Substack subscribe form\"}):/*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",color:\"#888\",fontFamily:\"Inter, sans-serif\",fontSize:14,padding:16,textAlign:\"center\"},children:\"Add your Substack publication URL in the properties panel\"})})});}SubstackEmbed.defaultProps={publicationUrl:\"https://taylortharptattoo.substack.com\",height:320,maxWidth:480,borderColor:\"#EEEEEE\",borderWidth:1,borderRadius:0,backgroundColor:\"#FFFFFF\",alignment:\"center\"};addPropertyControls(SubstackEmbed,{publicationUrl:{type:ControlType.String,title:\"Publication URL\",defaultValue:\"https://taylortharptattoo.substack.com\",placeholder:\"https://yourname.substack.com\",description:\"Your Substack URL (with or without /embed). The component appends /embed automatically.\"},maxWidth:{type:ControlType.Number,title:\"Max Width\",defaultValue:480,min:200,max:800,step:1,unit:\"px\",description:\"Caps the form width on large screens. The form fills its container below this width — so it stays responsive on mobile.\"},height:{type:ControlType.Number,title:\"Height\",defaultValue:320,min:200,max:600,step:1,unit:\"px\"},alignment:{type:ControlType.Enum,title:\"Alignment\",options:[\"left\",\"center\",\"right\"],optionTitles:[\"Left\",\"Center\",\"Right\"],defaultValue:\"center\",displaySegmentedControl:true},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#FFFFFF\"},borderColor:{type:ControlType.Color,title:\"Border Color\",defaultValue:\"#EEEEEE\"},borderWidth:{type:ControlType.Number,title:\"Border Width\",defaultValue:1,min:0,max:10,step:1,unit:\"px\"},borderRadius:{type:ControlType.Number,title:\"Border Radius\",defaultValue:0,min:0,max:40,step:1,unit:\"px\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"SubstackEmbed\",\"slots\":[],\"annotations\":{\"framerDisableUnlink\":\"* @framerIntrinsicWidth 480\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerIntrinsicHeight\":\"320\",\"framerSupportedLayoutWidth\":\"any\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Substack.map"],"mappings":"uJAQG,SAAwB,EAAc,EAAM,CAAC,GAAK,CAAC,iBAAe,SAAO,WAAS,cAAY,cAAY,eAAa,kBAAgB,YAAU,SAAO,EACrJ,GAAU,GAAgB,IAAI,MAAM,CAAC,QAAQ,OAAO,GAAG,CAAC,QAAQ,WAAW,GAAG,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