{"version":3,"file":"FocusImage.Db1SUGkF.mjs","names":["__esmMin","c","init_jsx_runtime","addPropertyControls","init_framer_D6uXRwWs","ControlType","FocusImage","image","style","POSITIONS","focus","init_FocusImage"],"sources":["https:/framerusercontent.com/modules/DQG2EALdr1KGMowsRvfB/xI3ZXYlU2tUefIPIYVJr/FocusImage.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";// Cover photo with a per-case focus point (Hibou, feedback round 2). Framer can't set the image position on a fill\n// that is bound to a variable, so the case cards and rows render the CMS cover through this component. The focus\n// comes from the Cases and Artikelen field \"Cover focuspunt\" and decides which part survives the crop (4:5 on phone).\nconst POSITIONS={Midden:\"50% 50%\",Boven:\"50% 0%\",Onder:\"50% 100%\",Links:\"0% 50%\",Rechts:\"100% 50%\"};/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function FocusImage({image,focus,style}){if(!image?.src)return /*#__PURE__*/_jsx(\"div\",{style:{...style,background:\"rgba(0, 0, 0, 0.06)\"}});// sizes is one length: Framer prefixes each breakpoint's media query to it, so a list here becomes invalid\n// and browsers fall back to a too-small source. On phone the 16:9 photo fills a 4:5 box by height, so it renders\n// about 2.2x the box width: hence 200vw. From tablet up the 810px cap covers every cover.\nreturn /*#__PURE__*/_jsx(\"img\",{src:image.src,srcSet:image.srcSet,sizes:\"min(200vw, 810px)\",alt:image.alt??\"\",loading:\"lazy\",decoding:\"async\",style:{...style,display:\"block\",objectFit:\"cover\",objectPosition:image.positionX||image.positionY?`${image.positionX??\"50%\"} ${image.positionY??\"50%\"}`:POSITIONS[focus]??POSITIONS.Midden}});}addPropertyControls(FocusImage,{image:{type:ControlType.ResponsiveImage,title:\"Image\"},focus:{type:ControlType.Enum,title:\"Focus\",options:Object.keys(POSITIONS),defaultValue:\"Midden\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FocusImage\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any\",\"framerSupportedLayoutWidth\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FocusImage.map"],"mappings":"A,4JAMG,SAAwBM,EAAW,CAAC,QAAM,QAAM,SAAO,CAG1D,OAH+DC,GAAO,IAGlD,gBAAK,MAAM,CAAC,IAAIA,EAAM,IAAI,OAAOA,EAAM,OAAO,MAAM,oBAAoB,IAAIA,EAAM,KAAK,GAAG,QAAQ,OAAO,SAAS,QAAQ,MAAM,CAAC,GAAGC,EAAM,QAAQ,QAAQ,UAAU,QAAQ,eAAeD,EAAM,WAAWA,EAAM,UAAU,GAAGA,EAAM,WAAW,MAAM,GAAGA,EAAM,WAAW,QAAQE,EAAUC,IAAQD,EAAU,MAAM,CAAC,CAAC,EAH5O,gBAAK,MAAM,CAAC,MAAM,CAAC,GAAGD,EAAM,WAAW,qBAAqB,CAAC,CAAC,CAGgL,C,4CANtU,EAAU,CAAC,OAAO,UAAU,MAAM,SAAS,MAAM,WAAW,MAAM,SAAS,OAAO,UAAU,EAM2OL,EAAoBG,EAAW,CAAC,MAAM,CAAC,KAAKD,EAAY,gBAAgB,MAAM,OAAO,EAAE,MAAM,CAAC,KAAKA,EAAY,KAAK,MAAM,QAAQ,QAAQ,OAAO,KAAKI,CAAS,EAAE,aAAa,QAAQ,CAAC,CAAC,C"}