{"version":3,"file":"JsonLdScript.BOGJOewK.mjs","names":[],"sources":["https:/framerusercontent.com/modules/1ZiM1pjOE1KaInmoJ7yF/RiH9fOlMntlkkUPKFm3J/JsonLdScript.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";export function JsonLdScript(props){const{code}=props;// Kalau kosong, gak usah render apa-apa\nif(!code||code.trim().length===0)return null;let cleaned=code.trim();try{// Coba parse untuk memastikan JSON valid\nconst parsed=JSON.parse(cleaned);// Jika valid → stringify ulang biar rapi & aman\ncleaned=JSON.stringify(parsed);}catch(error){console.error(\"%c[JsonLdScript] Invalid JSON-LD:\",\"color:red; font-weight:bold;\",error,\"\\nOriginal code:\",code);// Kalau error → jangan render script, biar tidak merusak HEAD\nreturn null;}return /*#__PURE__*/_jsx(\"script\",{type:\"application/ld+json\",// kode dari CMS langsung dimasukkan ke dalam script\ndangerouslySetInnerHTML:{__html:cleaned}});}addPropertyControls(JsonLdScript,{code:{title:\"JSON-LD\",type:ControlType.String,defaultValue:`{\n  \"@context\": \"https://schema.org\"\n}`,displayTextArea:true}});\nexport const __FramerMetadata__ = {\"exports\":{\"JsonLdScript\":{\"type\":\"reactComponent\",\"name\":\"JsonLdScript\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./JsonLdScript.map"],"mappings":"6JAA+F,SAAgB,EAAa,EAAM,CAAC,GAAK,CAAC,QAAM,EAC/I,GAAG,CAAC,GAAM,EAAK,KAAK,CAAC,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,EAAQ,EAAK,KAAK,EAAE,GAAG,CACxE,IAAM,EAAO,KAAK,MAAM,CAAO,EAC/B,EAAQ,KAAK,UAAU,CAAM,CAAE,OAAO,EAAM,CAC5C,OAD6C,QAAQ,MAAM,oCAAoC,+BAA+B,EAAM;gBAAmB,CAAI,EACpJ,IAAK,CAAC,OAAoB,EAAK,SAAS,CAAC,KAAK,sBACrD,wBAAwB,CAAC,OAAO,CAAO,CAAC,CAAC,CAAE,iBALD,IAAoD,EAKlD,EAAoB,EAAa,CAAC,KAAK,CAAC,MAAM,UAAU,KAAK,EAAY,OAAO,aAAa;;GAEtI,gBAAgB,EAAI,CAAC,CAAC"}