{"version":3,"file":"PhotoCard.DozXXBte.mjs","names":["__esmMin","c","init_jsx_runtime","addPropertyControls","init_framer_Bf4_tcb2","ControlType","PhotoCard","props","fromImage","image","fromUrl","url","src","hasImage","crop","uitsnede","radius","placeholder","fit","init_PhotoCard"],"sources":["https:/framerusercontent.com/modules/9qtCIKSDlbA5UCLYR8R3/wcWHp3mi7qDtCkrL0RBL/PhotoCard.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * PhotoCard\n *\n * Two ways to give it an image, on purpose:\n *\n * 1. `image` — a normal Framer image control. Use this when working inside\n *    Framer, and it is what you bind to a CMS image field on a collection\n *    page. Takes priority when set.\n *\n * 2. `url` — a plain text URL. This exists because the MCP connector cannot\n *    write image properties at all, and cannot write `backgroundImage` when\n *    the value is already hosted on framerusercontent.com (Framer only\n *    accepts *new* image URLs there, which it uploads itself). A String\n *    control stays writable from outside Framer, so images already in the\n *    project can be placed programmatically.\n *\n * Cropping is controlled by `uitsnede`, NOT by a prop called `position`.\n * Framer nodes have their own reserved `position` attribute, so a component\n * prop of that name cannot be written from outside Framer — the connector\n * validates the value against relative/absolute/fixed/sticky and rejects\n * anything else. `uitsnede` sidesteps the collision and stays writable.\n *\n * Default is \"top\": these cards mostly show client logos, and the top of the\n * image matters more than the bottom when the crop has to lose something.\n *\n * Used for the case/photo cards on the /diensten product pages.\n *\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function PhotoCard(props){const{image,url,radius,fit,uitsnede,placeholder}=props;const fromImage=image&&typeof image===\"object\"&&typeof image.src===\"string\"?image.src:typeof image===\"string\"?image:\"\";const fromUrl=typeof url===\"string\"?url.trim():\"\";const src=fromImage||fromUrl;const hasImage=src.length>0;const allowed=[\"center\",\"top\",\"bottom\",\"left\",\"right\"];const crop=allowed.includes(uitsnede)?uitsnede:\"top\";return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\",borderRadius:radius,overflow:\"hidden\",backgroundColor:hasImage?\"transparent\":placeholder,backgroundImage:hasImage?`url(\"${src}\")`:\"none\",backgroundSize:fit,backgroundPosition:crop,backgroundRepeat:\"no-repeat\"},role:hasImage?\"img\":undefined,\"aria-label\":hasImage&&image&&typeof image===\"object\"&&image.alt?image.alt:undefined});}PhotoCard.defaultProps={url:\"\",radius:18,fit:\"cover\",uitsnede:\"top\",placeholder:\"rgba(23, 23, 23, 0.08)\"};addPropertyControls(PhotoCard,{image:{type:ControlType.ResponsiveImage,title:\"Foto\"},url:{type:ControlType.String,title:\"Foto URL\",placeholder:\"leeg = gebruik Foto\",defaultValue:\"\"},radius:{type:ControlType.Number,title:\"Radius\",min:0,max:200,step:1,unit:\"px\",defaultValue:18},fit:{type:ControlType.Enum,title:\"Vulling\",options:[\"cover\",\"contain\"],optionTitles:[\"Vullen\",\"Passen\"],defaultValue:\"cover\"},uitsnede:{type:ControlType.Enum,title:\"Uitsnede\",options:[\"top\",\"center\",\"bottom\",\"left\",\"right\"],optionTitles:[\"Boven\",\"Midden\",\"Onder\",\"Links\",\"Rechts\"],defaultValue:\"top\"},placeholder:{type:ControlType.Color,title:\"Leeg\",defaultValue:\"rgba(23, 23, 23, 0.08)\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"PhotoCard\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any\",\"framerSupportedLayoutWidth\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./PhotoCard.map"],"mappings":"A,4JA6BG,SAAwBM,EAAU,EAAM,CAAC,GAAK,CAAC,QAAM,MAAI,SAAO,MAAI,WAAS,eAAaC,EAAYC,EAAUC,GAAO,OAAOA,GAAQ,UAAU,OAAOA,EAAM,KAAM,SAASA,EAAM,IAAI,OAAOA,GAAQ,SAASA,EAAM,GAASC,EAAQ,OAAOC,GAAM,SAASA,EAAI,KA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