{"version":3,"file":"JsonLdScript.eBol_K7v.mjs","names":["__esmMin","c","init_jsx_runtime","init_framer_BisrWwwE","addPropertyControls","ControlType","JsonLdScript","props","code","cleaned","parsed","error","init_JsonLdScript"],"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":"A,4JAA+F,SAAgBM,EAAa,EAAM,CAAC,GAAK,CAAC,QAAMC,EAC/I,GAAG,CAACC,GAAMA,EAAK,KAAK,CAAC,CAAC,SAAS,EAAE,OAAO,KAAK,IAAIC,EAAQD,EAAK,KAAK,EAAE,GAAG,CACxE,IAAME,EAAO,KAAK,MAAMD,CAAO,EAC/B,EAAQ,KAAK,UAAUC,CAAM,CAAE,OAAOC,EAAM,CAC5C,OAD6C,QAAQ,MAAM,oCAAoC,+BAA+BA,EAAM;gBAAmBH,CAAI,EACpJ,IAAK,CAAC,MAAoB,gBAAK,SAAS,CAAC,KAAK,sBACrD,wBAAwB,CAAC,OAAOC,CAAO,CAAC,CAAC,CAAE,C,sCAACL,EAAoBE,EAAa,CAAC,KAAK,CAAC,MAAM,UAAU,KAAKD,EAAY,OAAO,aAAa;;GAEtI,gBAAgB,EAAI,CAAC,CAAC,C"}