{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/akyxNCLbPoZoZ3PFLIAT/bdUpTZD4xVN7CY28AN4y/Typebot.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useState}from\"react\";import{addPropertyControls,ControlType}from\"framer\";export function Typebot(props){const{width,height,slugURL}=props;const[iframeSrc,setIframeSrc]=useState(\"\");useEffect(()=>{const searchParams=new URLSearchParams(window.location.search);const slug=window.location.pathname.split(\"/\").filter(Boolean).pop()||\"home\";// Usa o slugURL passado como prop para montar a URL base\nconst baseUrl=`https://chatbot.semcodar.com.br/${slugURL}`;searchParams.set(\"pageName\",slug);setIframeSrc(`${baseUrl}?${searchParams.toString()}`);},[slugURL]);return /*#__PURE__*/_jsx(\"iframe\",{src:iframeSrc,width:width,height:height,style:{border:\"none\"}});}// Controles no painel do Framer\naddPropertyControls(Typebot,{width:{type:ControlType.Number,title:\"Largura\",min:100,max:1200,defaultValue:390},height:{type:ControlType.Number,title:\"Altura\",min:100,max:2e3,defaultValue:900},slugURL:{type:ControlType.String,title:\"Slug da URL\",defaultValue:\"checkout-pv\",placeholder:\"Ex: campanha10k\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"Typebot\":{\"type\":\"reactComponent\",\"name\":\"Typebot\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Typebot.map"],
  "mappings": "0HAAAA,IAA4I,SAASC,EAAQC,EAAM,CAAC,GAAK,CAAC,MAAAC,EAAM,OAAAC,EAAO,QAAAC,CAAO,EAAEH,EAAW,CAACI,EAAUC,CAAY,EAAEC,EAAS,EAAE,EAAE,OAAAC,EAAU,IAAI,CAAC,IAAMC,EAAa,IAAI,gBAAgB,OAAO,SAAS,MAAM,EAAQC,EAAK,OAAO,SAAS,SAAS,MAAM,GAAG,EAAE,OAAO,OAAO,EAAE,IAAI,GAAG,OAC/XC,EAAQ,mCAAmCP,CAAO,GAAGK,EAAa,IAAI,WAAWC,CAAI,EAAEJ,EAAa,GAAGK,CAAO,IAAIF,EAAa,SAAS,CAAC,EAAE,CAAE,EAAE,CAACL,CAAO,CAAC,EAAsBQ,EAAK,SAAS,CAAC,IAAIP,EAAU,MAAMH,EAAM,OAAOC,EAAO,MAAM,CAAC,OAAO,MAAM,CAAC,CAAC,CAAE,CACnQU,EAAoBb,EAAQ,CAAC,MAAM,CAAC,KAAKc,EAAY,OAAO,MAAM,UAAU,IAAI,IAAI,IAAI,KAAK,aAAa,GAAG,EAAE,OAAO,CAAC,KAAKA,EAAY,OAAO,MAAM,SAAS,IAAI,IAAI,IAAI,IAAI,aAAa,GAAG,EAAE,QAAQ,CAAC,KAAKA,EAAY,OAAO,MAAM,cAAc,aAAa,cAAc,YAAY,iBAAiB,CAAC,CAAC",
  "names": ["init_ssg_sandbox_shims", "Typebot", "props", "width", "height", "slugURL", "iframeSrc", "setIframeSrc", "ye", "ue", "searchParams", "slug", "baseUrl", "p", "addPropertyControls", "ControlType"]
}
