{"version":3,"file":"ProgramManufacturingImage.D4ikpwYv.mjs","names":["__esmMin","c","init_jsx_runtime","addPropertyControls","init_framer_BpuvUAiZ","ControlType","ProgramManufacturingImage","url","larger","isHero","sourceWidth","largeUrl","sizes","wide","style","init_ProgramManufacturingImage"],"sources":["https:/framerusercontent.com/modules/WzSbqtGf0iKVCy921EDT/yeJ5mwoKuRyvh2qwNpRp/ProgramManufacturingImage.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function ProgramManufacturingImage({url,alt,isHero,wide,sourceWidth,style}){if(!url)return null;const natural=isHero?960:sourceWidth||1200;const larger=Math.min(natural,1024);const largeUrl=larger===1024?url+\"?scale-down-to=1024\":url;const sizes=isHero?\"(max-width: 809px) calc(100vw - 40px), (max-width: 1024px) calc(100vw - 64px), 960px\":wide?\"(max-width: 809px) calc(100vw - 40px), 720px\":\"(max-width: 600px) calc(100vw - 40px), (max-width: 1199px) 46vw, 340px\";return /*#__PURE__*/_jsx(\"div\",{style:{...style,width:\"100%\",borderRadius:10,overflow:\"hidden\",background:\"#f7f4eb\",position:\"relative\"},children:/*#__PURE__*/_jsx(\"img\",{src:url,srcSet:url+\"?scale-down-to=512 512w, \"+largeUrl+\" \"+larger+\"w\",sizes:sizes,width:isHero?960:720,height:isHero?540:480,alt:alt,loading:isHero?\"eager\":\"lazy\",fetchPriority:isHero?\"high\":\"auto\",decoding:\"async\",style:{width:\"100%\",height:\"auto\",display:\"block\"}})});}addPropertyControls(ProgramManufacturingImage,{url:{type:ControlType.String,title:\"Image URL\",defaultValue:\"\"},alt:{type:ControlType.String,title:\"Alt text\",defaultValue:\"\"},isHero:{type:ControlType.Boolean,title:\"Priority\",defaultValue:false},wide:{type:ControlType.Boolean,title:\"Wide\",defaultValue:false},sourceWidth:{type:ControlType.Number,title:\"Original width\",defaultValue:1200}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ProgramManufacturingImage\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ProgramManufacturingImage.map"],"mappings":"A,4JAGG,SAAwBM,EAA0B,CAAC,MAAI,MAAI,SAAO,OAAK,cAAY,SAAO,CAAC,GAAG,CAACC,EAAI,OAAO,KAAgD,IAAMC,EAAO,KAAK,IAA/CC,EAAO,IAAIC,GAAa,KAAmC,IAAI,EAAQC,EAASH,IAAS,KAAKD,EAAI,sBAAsBA,EAAUK,EAAMH,EAAO,uFAAuFI,EAAK,+CAA+C,yEAAyE,MAAoB,gBAAK,MAAM,CAAC,MAAM,CAAC,GAAGC,EAAM,MAAM,OAAO,aAAa,GAAG,SAAS,SAAS,WAAW,UAAU,SAAS,UAAU,EAAE,SAAsB,gBAAK,MAAM,CAAC,IAAIP,EAAI,OAAOA,EAAI,4BAA4BI,EAAS,IAAIH,EAAO,IAAU,QAAM,MAAMC,EAAO,IAAI,IAAI,OAAOA,EAAO,IAAI,IAAQ,MAAI,QAAQA,EAAO,QAAQ,OAAO,cAAcA,EAAO,OAAO,OAAO,SAAS,QAAQ,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,QAAQ,OAAO,CAAC,CAAC,CAAC,CAAC,CAAE,C,sCAACN,EAAoBG,EAA0B,CAAC,IAAI,CAAC,KAAKD,EAAY,OAAO,MAAM,YAAY,aAAa,EAAE,EAAE,IAAI,CAAC,KAAKA,EAAY,OAAO,MAAM,WAAW,aAAa,EAAE,EAAE,OAAO,CAAC,KAAKA,EAAY,QAAQ,MAAM,WAAW,aAAa,EAAK,EAAE,KAAK,CAAC,KAAKA,EAAY,QAAQ,MAAM,OAAO,aAAa,EAAK,EAAE,YAAY,CAAC,KAAKA,EAAY,OAAO,MAAM,iBAAiB,aAAa,IAAI,CAAC,CAAC,C"}