{"version":3,"file":"WorldFallback.DFPoER8a.mjs","names":["_Fragment"],"sources":["https:/framerusercontent.com/modules/AfzBbhkWv55OrkcJr8QT/LPN5HxQjrBVx7hlCr8PP/WorldFallback.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";// The source PNG is 1536x1024 with a decorative paper margin. The verified\n// geographic content spans y:128-896 (768px tall), an exact 2:1 band.\n// object-fit:cover on an <img> whose CSS box is forced to a 2:1 ratio crops\n// the image symmetrically top/bottom (1536:1024 -> 2:1 removes exactly\n// (1024-768)/2 = 128px off each side) landing precisely on that band, with\n// no JS measurement needed - the browser does the crop natively.\nconst MAP_ASPECT_CSS=\"2 / 1\";const LETTERBOX_BG=\"#EAD7B8\";const LABEL_COLOR=\"rgb(139, 115, 85)\";const MARKER_BLUE=\"#2563EB\";const MARKER_RING=\"#FBF8F3\";/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function WorldFallback(props){const{mapImage,assignmentType,latitude,longitude,markerReady,locationLabel,variant=\"card\"}=props;if(assignmentType!==\"world_fallback\")return null;const lat=parseFloat(latitude);const lng=parseFloat(longitude);const hasCoords=markerReady&&!Number.isNaN(lat)&&!Number.isNaN(lng);const xGeo=(lng+180)/360;const yGeo=(90-lat)/180;const isDetail=variant===\"detail\";const markerCenterSize=isDetail?13:8;const markerRingWidth=2;const eyebrowSize=isDetail?11:9;const valueSize=isDetail?20:16;const labelInset=isDetail?16:10;const labelBottomInset=isDetail?14:8;return /*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",width:\"100%\",height:\"100%\",overflow:\"hidden\",background:LETTERBOX_BG},children:/*#__PURE__*/_jsxs(\"div\",{style:{position:\"absolute\",inset:0,margin:\"auto\",aspectRatio:MAP_ASPECT_CSS,maxWidth:\"100%\",maxHeight:\"100%\",overflow:\"hidden\"},children:[mapImage?.src&&/*#__PURE__*/_jsx(\"img\",{src:mapImage.src,srcSet:mapImage.srcSet,alt:mapImage.alt||\"World map\",style:{width:\"100%\",height:\"100%\",objectFit:\"cover\",objectPosition:\"center center\",display:\"block\"}}),hasCoords&&/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",left:`${xGeo*100}%`,top:`${yGeo*100}%`,width:markerCenterSize,height:markerCenterSize,borderRadius:\"50%\",background:MARKER_BLUE,border:`${markerRingWidth}px solid ${MARKER_RING}`,boxShadow:\"0px 1px 3px rgba(31,25,15,0.35)\",transform:\"translate(-50%, -50%)\",pointerEvents:\"none\"}}),locationLabel&&/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",left:0,right:0,bottom:0,height:\"60%\",background:\"linear-gradient(180deg, rgba(251,248,243,0) 0%, rgba(251,248,243,0.55) 55%, rgba(251,248,243,0.92) 100%)\",pointerEvents:\"none\"}}),/*#__PURE__*/_jsxs(\"div\",{style:{position:\"absolute\",right:labelInset,bottom:labelBottomInset,display:\"flex\",flexDirection:\"column\",alignItems:\"flex-end\",gap:1,pointerEvents:\"none\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{fontFamily:\"Inter, sans-serif\",fontWeight:600,fontSize:eyebrowSize,letterSpacing:\"0.08em\",lineHeight:\"1.2em\",textTransform:\"uppercase\",color:LABEL_COLOR},children:\"Location\"}),/*#__PURE__*/_jsx(\"div\",{style:{fontFamily:\"Inter, sans-serif\",fontWeight:700,fontSize:valueSize,lineHeight:\"1.2em\",textAlign:\"right\",color:LABEL_COLOR},children:locationLabel})]})]})]})});}addPropertyControls(WorldFallback,{mapImage:{type:ControlType.ResponsiveImage,title:\"Map Image\"},assignmentType:{type:ControlType.String,title:\"Assignment Type\",defaultValue:\"\"},latitude:{type:ControlType.String,title:\"Latitude\",defaultValue:\"\"},longitude:{type:ControlType.String,title:\"Longitude\",defaultValue:\"\"},markerReady:{type:ControlType.Boolean,title:\"Marker Ready\",defaultValue:false},locationLabel:{type:ControlType.String,title:\"Location Label\",defaultValue:\"\"},variant:{type:ControlType.Enum,title:\"Variant\",options:[\"card\",\"detail\"],optionTitles:[\"Card\",\"Detail\"],defaultValue:\"card\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"WorldFallback\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./WorldFallback.map"],"mappings":"0KASG,SAAwB,EAAc,EAAM,CAAC,GAAK,CAAC,WAAS,iBAAe,WAAS,YAAU,cAAY,gBAAc,UAAQ,QAAQ,EAAM,GAAG,IAAiB,iBAAiB,OAAO,KAAK,IAAM,EAAI,WAAW,CAAQ,EAAQ,EAAI,WAAW,CAAS,EAAQ,EAAU,GAAa,CAAC,OAAO,MAAM,CAAG,GAAG,CAAC,OAAO,MAAM,CAAG,EAAQ,GAAM,EAAI,KAAK,IAAU,GAAM,GAAG,GAAK,IAAU,EAAS,IAAU,SAAe,EAAiB,EAAS,GAAG,EAAgC,EAAY,EAAS,GAAG,EAAQ,EAAU,EAAS,GAAG,GAAS,EAAW,EAAS,GAAG,GAAS,EAAiB,EAAS,GAAG,EAAE,OAAoB,EAAK,MAAM,CAAC,MAAM,CAAC,SAAS,WAAW,MAAM,OAAO,OAAO,OAAO,SAAS,SAAS,WAAW,CAAY,EAAE,SAAsB,EAAM,MAAM,CAAC,MAAM,CAAC,SAAS,WAAW,MAAM,EAAE,OAAO,OAAO,YAAY,EAAe,SAAS,OAAO,UAAU,OAAO,SAAS,QAAQ,EAAE,SAAS,CAAC,GAAU,KAAkB,EAAK,MAAM,CAAC,IAAI,EAAS,IAAI,OAAO,EAAS,OAAO,IAAI,EAAS,KAAK,YAAY,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,UAAU,QAAQ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