{"version":3,"file":"CmsUrlWriter.WRHtPdds.mjs","names":[],"sources":["https:/framerusercontent.com/modules/WtuKgFgGwzacZqL7oaEo/9daoKqmnyF9c5XhIpD5Q/CmsUrlWriter.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";import{addPropertyControls,ControlType}from\"framer\";export default function CmsUrlWriter(props){const{link=\"\",storageKey=\"lilo-cms-url\"}=props;useEffect(()=>{console.log(\"[CmsUrlWriter] all props received:\",props);console.log(\"[CmsUrlWriter] mount/update\",{link,storageKey,linkType:typeof link,linkLength:link?.length});if(!link||!storageKey){console.warn(\"[CmsUrlWriter] skipped: missing link or storageKey\",{link,storageKey});return;}try{localStorage.setItem(storageKey,link);const verify=localStorage.getItem(storageKey);console.log(\"[CmsUrlWriter] wrote to localStorage\",{storageKey,link,verify});}catch(err){console.error(\"[CmsUrlWriter] localStorage.setItem failed\",err);}},[link,storageKey]);return /*#__PURE__*/_jsx(\"div\",{style:{width:1,height:1,opacity:0,pointerEvents:\"none\"}});}addPropertyControls(CmsUrlWriter,{link:{type:ControlType.Link,title:\"Link\",description:\"Bind to the CMS Partnerlink field\"},storageKey:{type:ControlType.String,title:\"Storage Key\",defaultValue:\"lilo-cms-url\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"CmsUrlWriter\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CmsUrlWriter.map"],"mappings":"2KAA4H,SAAwB,EAAa,EAAM,CAAC,GAAK,CAAC,OAAK,GAAG,aAAW,gBAAgB,EAAkjB,OAA5iB,MAAc,CAAmK,GAAlK,QAAQ,IAAI,qCAAqC,EAAM,CAAC,QAAQ,IAAI,8BAA8B,CAAC,OAAK,aAAW,SAAS,OAAO,EAAK,WAAW,GAAM,OAAO,CAAC,CAAI,CAAC,GAAM,CAAC,EAAW,CAAC,QAAQ,KAAK,qDAAqD,CAAC,OAAK,aAAW,CAAC,CAAC,OAAQ,GAAG,CAAC,aAAa,QAAQ,EAAW,EAAK,CAAC,IAAM,EAAO,aAAa,QAAQ,EAAW,CAAC,QAAQ,IAAI,uCAAuC,CAAC,aAAW,OAAK,SAAO,CAAC,OAAQ,EAAI,CAAC,QAAQ,MAAM,6CAA6C,EAAI,GAAI,CAAC,EAAK,EAAW,CAAC,CAAqB,EAAK,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,cAAc,OAAO,CAAC,CAAC,kBAAjzB,IAA6B,IAAoD,CAAkuB,EAAoB,EAAa,CAAC,KAAK,CAAC,KAAK,EAAY,KAAK,MAAM,OAAO,YAAY,oCAAoC,CAAC,WAAW,CAAC,KAAK,EAAY,OAAO,MAAM,cAAc,aAAa,eAAe,CAAC,CAAC"}