{"version":3,"file":"LocaleImage.Cpik7-GL.mjs","names":["__esmMin","init_jsx_runtime","c","useLocaleInfo","addPropertyControls","init_framer_D6uXRwWs","ControlType","LocaleImage","props","isGerman","activeLocale","image","de","en","eager","natural","contain","radius","init_LocaleImage"],"sources":["https:/framerusercontent.com/modules/Us14T1aJousfnCQcyV0J/qpM1z5c2nJCpI7LppDYj/LocaleImage.js"],"sourcesContent":["// Picks the image for the active locale: German pages get the German UI shot,\n// every other locale the English one (falls back to German when it is empty).\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,useLocaleInfo}from\"framer\";/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function LocaleImage(props){const{de,en,radius=24,eager=true,contain=false,natural=false}=props;const{activeLocale}=useLocaleInfo();const isGerman=!activeLocale||(activeLocale.code??\"\").startsWith(\"de\");const image=(isGerman?de:en)?.src?isGerman?de:en:de?.src?de:en;if(!image?.src)return /*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",width:\"100%\",height:\"100%\"}});return /*#__PURE__*/_jsx(\"img\",{src:image.src,srcSet:image.srcSet,alt:image.alt??\"\",loading:eager?\"eager\":\"lazy\",decoding:\"async\",sizes:\"(min-width: 1200px) 1120px, 100vw\",style:{position:\"relative\",display:\"block\",width:\"100%\",height:natural?\"auto\":\"100%\",objectFit:contain?\"contain\":\"cover\",background:contain&&!natural?\"#F7F8FA\":undefined,borderRadius:radius}});}addPropertyControls(LocaleImage,{de:{type:ControlType.ResponsiveImage,title:\"German\"},en:{type:ControlType.ResponsiveImage,title:\"English\"},radius:{type:ControlType.Number,title:\"Radius\",defaultValue:24,min:0,max:64},natural:{type:ControlType.Boolean,title:\"Natural Ratio\",defaultValue:false},contain:{type:ControlType.Boolean,title:\"Contain\",defaultValue:false},eager:{type:ControlType.Boolean,title:\"Eager\",defaultValue:true}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"LocaleImage\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"fixed\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./LocaleImage.map"],"mappings":"A,qKAKG,SAAwBO,EAAY,EAAM,CAAC,GAAK,CAAC,KAAG,KAAG,SAAO,GAAG,QAAM,GAAK,UAAQ,GAAM,UAAQ,IAAOC,EAAW,CAAC,gBAAcL,EAAc,EAAQM,EAAS,CAACC,IAAeA,EAAa,MAAM,GAAA,CAAI,WAAW,IAAI,EAAQC,GAAOF,EAASG,EAAGC,EAAA,EAAK,IAAIJ,EAASG,EAAGC,EAAGD,GAAI,IAAIA,EAAGC,EAA2G,OAApGF,GAAO,IAAiH,gBAAK,MAAM,CAAC,IAAIA,EAAM,IAAI,OAAOA,EAAM,OAAO,IAAIA,EAAM,KAAK,GAAG,QAAQG,EAAM,QAAQ,OAAO,SAAS,QAAQ,MAAM,oCAAoC,MAAM,CAAC,SAAS,WAAW,QAAQ,QAAQ,MAAM,OAAO,OAAOC,EAAQ,OAAO,OAAO,UAAUC,EAAQ,UAAU,QAAQ,WAAWA,GAAS,CAACD,EAAQ,UAAU,IAAA,GAAU,aAAaE,CAAM,CAAC,CAAC,EAAhb,gBAAK,MAAM,CAAC,MAAM,CAAC,SAAS,WAAW,MAAM,OAAO,OAAO,MAAM,CAAC,CAAC,CAA+W,C,sCAACb,EAAoBG,EAAY,CAAC,GAAG,CAAC,KAAKD,EAAY,gBAAgB,MAAM,QAAQ,EAAE,GAAG,CAAC,KAAKA,EAAY,gBAAgB,MAAM,SAAS,EAAE,OAAO,CAAC,KAAKA,EAAY,OAAO,MAAM,SAAS,aAAa,GAAG,IAAI,EAAE,IAAI,EAAE,EAAE,QAAQ,CAAC,KAAKA,EAAY,QAAQ,MAAM,gBAAgB,aAAa,EAAK,EAAE,QAAQ,CAAC,KAAKA,EAAY,QAAQ,MAAM,UAAU,aAAa,EAAK,EAAE,MAAM,CAAC,KAAKA,EAAY,QAAQ,MAAM,QAAQ,aAAa,EAAI,CAAC,CAAC,C"}