{"version":3,"file":"ArchivePhoto.DpXoeEOd.mjs","names":["React.useState","__esmMin","init_npm_react_18_3_1","_e","c","init_jsx_runtime","ce","init_framer_BWFVvmND","ControlType","addPropertyControls","ArchivePhoto","src","url","image","failed","setFailed","style","number","name","init_ArchivePhoto"],"sources":["https:/framerusercontent.com/modules/dD41iKoYIXgQAMoiw8Hy/4DSuIbsJqwZLQcWmpm3I/ArchivePhoto.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";// @framerSupportedLayoutWidth any\n// @framerSupportedLayoutHeight any\nexport default function ArchivePhoto({style,image,url,number,name}){const src=url||(typeof image===\"string\"?image:image?.src||\"\");const[failed,setFailed]=React.useState(false);React.useEffect(()=>setFailed(false),[src]);return /*#__PURE__*/_jsx(\"div\",{style:{...style,width:\"100%\",height:\"100%\",position:\"relative\",background:\"#F2F2F2\",overflow:\"hidden\",fontFamily:\"Inter, sans-serif\",fontSize:11,color:\"#111111\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\"},children:!src||failed?/*#__PURE__*/_jsx(\"span\",{children:number}):/*#__PURE__*/_jsx(\"img\",{src:src,alt:name||number,loading:\"lazy\",onError:()=>setFailed(true),style:{width:\"100%\",height:\"100%\",objectFit:\"cover\",display:\"block\"}})});}addPropertyControls(ArchivePhoto,{image:{type:ControlType.Image},url:{type:ControlType.String},number:{type:ControlType.String},name:{type:ControlType.String}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ArchivePhoto\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ArchivePhoto.map"],"mappings":"A,iLAEA,SAAwBU,EAAa,CAAC,QAAM,QAAM,MAAI,SAAO,QAAM,CAAC,IAAMC,EAAIC,IAAM,OAAOC,GAAQ,SAASA,EAAMA,GAAO,KAAK,IAAS,CAACC,EAAOC,GAAWf,EAAe,EAAK,EAA8C,OAA5CM,MAAoBS,EAAU,EAAK,EAAE,CAACJ,CAAG,CAAC,EAAsB,gBAAK,MAAM,CAAC,MAAM,CAAC,GAAGK,EAAM,MAAM,OAAO,OAAO,OAAO,SAAS,WAAW,WAAW,UAAU,SAAS,SAAS,WAAW,oBAAoB,SAAS,GAAG,MAAM,UAAU,QAAQ,OAAO,WAAW,SAAS,eAAe,QAAQ,EAAE,SAAS,CAACL,GAAKG,EAAoB,gBAAK,OAAO,CAAC,SAASG,CAAM,CAAC,EAAe,gBAAK,MAAM,CAAK,MAAI,IAAIC,GAAMD,EAAO,QAAQ,OAAO,YAAYF,EAAU,EAAI,EAAE,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,UAAU,QAAQ,QAAQ,OAAO,CAAC,CAAC,CAAC,CAAC,CAAE,C,0CAACN,EAAoBC,EAAa,CAAC,MAAM,CAAC,KAAKF,EAAY,KAAK,EAAE,IAAI,CAAC,KAAKA,EAAY,MAAM,EAAE,OAAO,CAAC,KAAKA,EAAY,MAAM,EAAE,KAAK,CAAC,KAAKA,EAAY,MAAM,CAAC,CAAC,C"}