{"version":3,"file":"PriorityImage.CWgqsPBK.mjs","names":[],"sources":["https:/framerusercontent.com/modules/xj53Z87v8be0tQnVvfJn/IyKSxlD7IGTwUIM3O1gS/PriorityImage.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * PriorityImage — an image the browser fetches first. Use it for the hero image (the page's LCP):\n * it is server-rendered as a plain <img fetchpriority=\"high\">, which a Framer image fill can't do.\n * Ratio reserves the image's space before it loads, so nothing below it moves.\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n * @framerIntrinsicWidth 546\n * @framerIntrinsicHeight 1000\n */export default function PriorityImage(props){const{image,ratio=0,sizes=\"100vw\",fit=\"cover\",style}=props;const fixedHeight=style?.height!==undefined&&style?.height!==\"auto\";if(!image?.src){return /*#__PURE__*/_jsx(\"div\",{style:{...style,width:\"100%\",aspectRatio:ratio>0?String(ratio):\"1\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",background:\"rgba(0,0,0,0.04)\",fontFamily:\"sans-serif\",fontSize:12,color:\"#616f8a\"},children:\"Add an image\"});}return /*#__PURE__*/_jsx(\"img\",{src:image.src,srcSet:image.srcSet,sizes:sizes,alt:image.alt??\"\",loading:\"eager\",decoding:\"async\",...{fetchpriority:\"high\"},style:{...style,display:\"block\",width:\"100%\",height:fixedHeight?\"100%\":\"auto\",aspectRatio:!fixedHeight&&ratio>0?String(ratio):undefined,objectFit:fit}});}addPropertyControls(PriorityImage,{image:{type:ControlType.ResponsiveImage,title:\"Image\"},ratio:{type:ControlType.Number,title:\"Ratio\",defaultValue:0,min:0,max:5,step:.001,description:\"Width \\xf7 height (e.g. 0.546). Reserves the space before it loads.\"},sizes:{type:ControlType.String,title:\"Sizes\",defaultValue:\"100vw\",description:\"Display width hint for the browser, e.g. 50vw.\"},fit:{type:ControlType.Enum,title:\"Fit\",options:[\"cover\",\"contain\"],optionTitles:[\"Fill\",\"Fit\"],defaultValue:\"cover\",displaySegmentedControl:true}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"PriorityImage\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\",\"framerIntrinsicHeight\":\"1000\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerIntrinsicWidth\":\"546\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./PriorityImage.map"],"mappings":"4JASG,SAAwB,EAAc,EAAM,CAAC,GAAK,CAAC,QAAM,QAAM,EAAE,QAAM,QAAQ,MAAI,QAAQ,SAAO,EAAY,EAAY,GAAO,SAAS,IAAA,IAAW,GAAO,SAAS,OAAmS,OAAxR,GAAO,IAAqS,EAAK,MAAM,CAAC,IAAI,EAAM,IAAI,OAAO,EAAM,OAAa,QAAM,IAAI,EAAM,KAAK,GAAG,QAAQ,QAAQ,SAAS,QAAY,cAAc,OAAQ,MAAM,CAAC,GAAG,EAAM,QAAQ,QAAQ,MAAM,OAAO,OAAO,EAAY,OAAO,OAAO,YAAY,CAAC,GAAa,EAAM,EAAE,OAAO,CAAK,EAAE,IAAA,GAAU,UAAU,CAAG,CAAC,CAAC,EAA1iB,EAAK,MAAM,CAAC,MAAM,CAAC,GAAG,EAAM,MAAM,OAAO,YAAY,EAAM,EAAE,OAAO,CAAK,EAAE,IAAI,QAAQ,OAAO,WAAW,SAAS,eAAe,SAAS,WAAW,mBAAmB,WAAW,aAAa,SAAS,GAAG,MAAM,SAAS,EAAE,SAAS,cAAc,CAAC,CAAuT,iBATrtB,IAAoD,EASkqB,EAAoB,EAAc,CAAC,MAAM,CAAC,KAAK,EAAY,gBAAgB,MAAM,OAAO,EAAE,MAAM,CAAC,KAAK,EAAY,OAAO,MAAM,QAAQ,aAAa,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,KAAK,YAAY,kEAAqE,EAAE,MAAM,CAAC,KAAK,EAAY,OAAO,MAAM,QAAQ,aAAa,QAAQ,YAAY,gDAAgD,EAAE,IAAI,CAAC,KAAK,EAAY,KAAK,MAAM,MAAM,QAAQ,CAAC,QAAQ,SAAS,EAAE,aAAa,CAAC,OAAO,KAAK,EAAE,aAAa,QAAQ,wBAAwB,EAAI,CAAC,CAAC"}