{"version":3,"file":"SubstackEmbed.3CVJDITU.mjs","names":["useRef"],"sources":["https:/framerusercontent.com/modules/Ken0Ki4w8G7RmUNlqXP1/tdkvXz0JaeiLLDG1yrAv/FilloutFormEmbed.js","https:/framerusercontent.com/modules/I2IIBJ364G4OhOWewH0u/CfJ0t4CtLBtzgjWEo8jO/SubstackEmbed.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useRef}from\"react\";import{addPropertyControls,ControlType}from\"framer\";export function FilloutEmbed({filloutId,height}){const embedRef=useRef(null);useEffect(()=>{// Check if the script already exists to avoid duplicates\nif(!document.querySelector('script[src=\"https://server.fillout.com/embed/v1/\"]')){const script=document.createElement(\"script\");script.src=\"https://server.fillout.com/embed/v1/\";script.async=true;document.body.appendChild(script);}},[]);return /*#__PURE__*/_jsx(\"div\",{ref:embedRef,style:{width:\"100%\",height:`${height}px`,overflow:\"hidden\"},\"data-fillout-id\":filloutId,\"data-fillout-embed-type\":\"standard\",\"data-fillout-inherit-parameters\":true,\"data-fillout-dynamic-resize\":true});}// Framer Property Controls\naddPropertyControls(FilloutEmbed,{filloutId:{type:ControlType.String,title:\"Fillout ID\",defaultValue:\"e44fJ7sBWQus\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"FilloutEmbed\":{\"type\":\"reactComponent\",\"name\":\"FilloutEmbed\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FilloutFormEmbed.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";export function IframeEmbed({src,variant}){// Define different widths for variants\nconst widthMap={Desktop:\"700px\",Tablet:\"500px\",Mobile:\"320px\"};return /*#__PURE__*/_jsx(\"iframe\",{src:src,width:widthMap[variant],height:\"160px\",style:{border:\"none\"},frameBorder:\"0\",scrolling:\"no\",title:\"Substack Subscription Form\"});}// Framer Property Controls\naddPropertyControls(IframeEmbed,{src:{type:ControlType.String,title:\"Embed URL\",defaultValue:\"https://test.substack.com/embed\"},variant:{type:ControlType.Enum,title:\"Variant\",options:[\"Desktop\",\"Tablet\",\"Mobile\"],optionTitles:[\"Desktop\",\"Tablet\",\"Mobile\"],defaultValue:\"Desktop\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"IframeEmbed\":{\"type\":\"reactComponent\",\"name\":\"IframeEmbed\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./SubstackEmbed.map"],"mappings":"iLAAmI,SAAgB,EAAa,CAAC,YAAU,UAAQ,CAAC,IAAM,EAASA,EAAO,KAAK,CAC8B,OAD7B,MAAc,CAC9N,GAAG,CAAC,SAAS,cAAc,qDAAqD,CAAC,CAAC,IAAM,EAAO,SAAS,cAAc,SAAS,CAAC,EAAO,IAAI,uCAAuC,EAAO,MAAM,GAAK,SAAS,KAAK,YAAY,EAAO,GAAI,EAAE,CAAC,CAAqB,EAAK,MAAM,CAAC,IAAI,EAAS,MAAM,CAAC,MAAM,OAAO,OAAO,GAAG,EAAO,IAAI,SAAS,SAAS,CAAC,kBAAkB,EAAU,0BAA0B,WAAW,kCAAkC,GAAK,8BAA8B,GAAK,CAAC,kBADvb,IAAoC,IAAoD,CAEnI,EAAoB,EAAa,CAAC,UAAU,CAAC,KAAK,EAAY,OAAO,MAAM,aAAa,aAAa,eAAe,CAAC,CAAC,ICFvB,SAAgB,EAAY,CAAC,MAAI,WAAS,CAC1E,OAAoB,EAAK,SAAS,CAAK,MAAI,MAA3F,CAAC,QAAQ,QAAQ,OAAO,QAAQ,OAAO,QAAQ,CAA2D,GAAS,OAAO,QAAQ,MAAM,CAAC,OAAO,OAAO,CAAC,YAAY,IAAI,UAAU,KAAK,MAAM,6BAA6B,CAAC,kBAD/L,IAAoD,CAE/F,EAAoB,EAAY,CAAC,IAAI,CAAC,KAAK,EAAY,OAAO,MAAM,YAAY,aAAa,kCAAkC,CAAC,QAAQ,CAAC,KAAK,EAAY,KAAK,MAAM,UAAU,QAAQ,CAAC,UAAU,SAAS,SAAS,CAAC,aAAa,CAAC,UAAU,SAAS,SAAS,CAAC,aAAa,UAAU,CAAC,CAAC"}