{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/V5AC4kqKl6H96YfRBsDK/nbingHEtjMDXIjoDRiZA/Substack.js"],
  "sourcesContent": ["import{jsx as t,jsxs as e}from\"react/jsx-runtime\";import*as l from\"react\";import{addPropertyControls as o,ControlType as r}from\"framer\";/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function a({substackUrl:o,placeholder:r,buttonText:a,colors:i}){return(// Add the Substack widget configuration to the window object\nl.useEffect(()=>{window.CustomSubstackWidget={substackUrl:o,placeholder:r,buttonText:a,theme:\"custom\",colors:i};},[o,r,a,i]),// Load the Substack widget script asynchronously\nl.useEffect(()=>{let t=document.createElement(\"script\");t.src=\"https://substackapi.com/widget.js\",t.async=!0,document.body.appendChild(t);// TODO: Add cleanup if needed\n},[]),/*#__PURE__*/e(\"div\",{children:[/*#__PURE__*/t(\"div\",{id:\"custom-substack-embed\"}),\" \"]}));}// Add Substack widget properties in the properties panel\no(a,{substackUrl:{title:\"Substack URL\",type:r.String,placeholder:\"femmeafrica.substack.com\"},placeholder:{title:\"Placeholder\",type:r.String,placeholder:\"example@gmail.com\"},buttonText:{title:\"Button Text\",type:r.String,placeholder:\"Subscribe\"},colors:{title:\"Colors\",type:r.Object,controls:{primary:{title:\"Primary Color\",type:r.Color,defaultValue:\"#3D3B8D\"},input:{title:\"Input Color\",type:r.Color,defaultValue:\"#FFFFFF\"},email:{title:\"Email Color\",type:r.Color,defaultValue:\"#000000\"},text:{title:\"Text Color\",type:r.Color,defaultValue:\"#FFFFFF\"}}}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"CustomSubstackWidget\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerSupportedLayoutWidth\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Substack.map"],
  "mappings": "2IAGkB,SAARA,EAAmB,CAAC,YAAYC,EAAE,YAAYC,EAAE,WAAWF,EAAE,OAAOG,CAAC,EAAE,CAAC,OAChFC,EAAU,IAAI,CAACC,EAAO,qBAAqB,CAAC,YAAYJ,EAAE,YAAYC,EAAE,WAAWF,EAAE,MAAM,SAAS,OAAOG,CAAC,CAAE,EAAE,CAACF,EAAEC,EAAEF,EAAEG,CAAC,CAAC,EACzHC,EAAU,IAAI,CAAC,IAAIE,EAAE,SAAS,cAAc,QAAQ,EAAEA,EAAE,IAAI,oCAAoCA,EAAE,MAAM,GAAG,SAAS,KAAK,YAAYA,CAAC,CACxI,EAAE,CAAC,CAAC,EAAeC,EAAE,MAAM,CAAC,SAAS,CAAcC,EAAE,MAAM,CAAC,GAAG,uBAAuB,CAAC,EAAE,GAAG,CAAC,CAAC,CAAG,CACjGC,EAAET,EAAE,CAAC,YAAY,CAAC,MAAM,eAAe,KAAKU,EAAE,OAAO,YAAY,0BAA0B,EAAE,YAAY,CAAC,MAAM,cAAc,KAAKA,EAAE,OAAO,YAAY,mBAAmB,EAAE,WAAW,CAAC,MAAM,cAAc,KAAKA,EAAE,OAAO,YAAY,WAAW,EAAE,OAAO,CAAC,MAAM,SAAS,KAAKA,EAAE,OAAO,SAAS,CAAC,QAAQ,CAAC,MAAM,gBAAgB,KAAKA,EAAE,MAAM,aAAa,SAAS,EAAE,MAAM,CAAC,MAAM,cAAc,KAAKA,EAAE,MAAM,aAAa,SAAS,EAAE,MAAM,CAAC,MAAM,cAAc,KAAKA,EAAE,MAAM,aAAa,SAAS,EAAE,KAAK,CAAC,MAAM,aAAa,KAAKA,EAAE,MAAM,aAAa,SAAS,CAAC,CAAC,CAAC,CAAC",
  "names": ["a", "o", "r", "i", "ue", "window", "t", "u", "p", "addPropertyControls", "ControlType"]
}
