{"version":3,"file":"MapEmbed.C40l8w4Y.mjs","names":[],"sources":["https:/framerusercontent.com/modules/tzcdTFCbRkRMZis0Yy38/7f6coTHRvE7mnQd7T9Cc/MapEmbed.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Map\n *\n * Google Maps without an API key. Type the hotel's address or coordinates in \"Place\".\n * The map is shown in greyscale with a soft tint so it matches the palette.\n *\n * @framerIntrinsicWidth 600\n * @framerIntrinsicHeight 480\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function MapEmbed(props){const{query,zoom,grayscale,tint,tintOpacity,style}=props;const src=`https://maps.google.com/maps?q=${encodeURIComponent(query)}&z=${zoom}&output=embed`;return /*#__PURE__*/_jsxs(\"div\",{style:{...style,position:\"relative\",overflow:\"hidden\",width:\"100%\",height:\"100%\"},children:[/*#__PURE__*/_jsx(\"iframe\",{title:`Map: ${query}`,src:src,loading:\"lazy\",referrerPolicy:\"no-referrer-when-downgrade\",style:{border:0,width:\"100%\",height:\"100%\",filter:`grayscale(${grayscale}%) contrast(1.05)`}}),/*#__PURE__*/_jsx(\"div\",{\"aria-hidden\":\"true\",style:{position:\"absolute\",inset:0,background:tint,opacity:tintOpacity,mixBlendMode:\"multiply\",pointerEvents:\"none\"}})]});}addPropertyControls(MapEmbed,{query:{type:ControlType.String,title:\"Place\",defaultValue:\"Valderrobres, Teruel\"},zoom:{type:ControlType.Number,title:\"Zoom\",defaultValue:13,min:3,max:20,step:1},grayscale:{type:ControlType.Number,title:\"Greyscale\",defaultValue:100,min:0,max:100,unit:\"%\"},tint:{type:ControlType.Color,title:\"Tint\",defaultValue:\"#D99A2B\"},tintOpacity:{type:ControlType.Number,title:\"Tint Amount\",defaultValue:.18,min:0,max:1,step:.01}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"MapEmbed\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"600\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerIntrinsicHeight\":\"480\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./MapEmbed.map"],"mappings":"8JAWG,SAAwB,EAAS,EAAM,CAAC,GAAK,CAAC,QAAM,OAAK,YAAU,OAAK,cAAY,SAAO,EAAY,EAAI,kCAAkC,mBAAmB,CAAK,EAAE,KAAK,EAAK,eAAe,OAAoB,EAAM,MAAM,CAAC,MAAM,CAAC,GAAG,EAAM,SAAS,WAAW,SAAS,SAAS,MAAM,OAAO,OAAO,MAAM,EAAE,SAAS,CAAc,EAAK,SAAS,CAAC,MAAM,QAAQ,IAAY,MAAI,QAAQ,OAAO,eAAe,6BAA6B,MAAM,CAAC,OAAO,EAAE,MAAM,OAAO,OAAO,OAAO,OAAO,aAAa,EAAU,kBAAkB,CAAC,CAAC,EAAe,EAAK,MAAM,CAAC,cAAc,OAAO,MAAM,CAAC,SAAS,WAAW,MAAM,EAAE,WAAW,EAAK,QAAQ,EAAY,aAAa,WAAW,cAAc,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAE,iBAXpoB,IAAoD,EAWilB,EAAoB,EAAS,CAAC,MAAM,CAAC,KAAK,EAAY,OAAO,MAAM,QAAQ,aAAa,sBAAsB,EAAE,KAAK,CAAC,KAAK,EAAY,OAAO,MAAM,OAAO,aAAa,GAAG,IAAI,EAAE,IAAI,GAAG,KAAK,CAAC,EAAE,UAAU,CAAC,KAAK,EAAY,OAAO,MAAM,YAAY,aAAa,IAAI,IAAI,EAAE,IAAI,IAAI,KAAK,GAAG,EAAE,KAAK,CAAC,KAAK,EAAY,MAAM,MAAM,OAAO,aAAa,SAAS,EAAE,YAAY,CAAC,KAAK,EAAY,OAAO,MAAM,cAAc,aAAa,IAAI,IAAI,EAAE,IAAI,EAAE,KAAK,GAAG,CAAC,CAAC"}