{"version":3,"file":"PetStopMapa.Cy8-zTKo.mjs","names":["useState","useMemo","useCallback","__esmMin","pe","init_npm_react_18_3_1","ne","te","_e","p","c","init_jsx_runtime","init_framer_DymZktPS","ControlType","useIsStaticRenderer","addPropertyControls","PetStopMapa","props","isStatic","hasConsented","setHasConsented","embedSrc","address","mapsLink","handleLoadMap","style","radius","init_PetStopMapa"],"sources":["https:/framerusercontent.com/modules/oO8LUujOENUQR2X87Fkf/qINeYr0s6avikgmQMTng/PetStopMapa.js"],"sourcesContent":["// User request: Create a small Framer component named PetStopMapa with an accessible Google Maps iframe embed (no API key), lazy loading, configurable address and border radius, useful canvas fallback, SSR-safe behavior, and no trackers/cookies.\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";import{startTransition,useCallback,useMemo,useState}from\"react\";/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function PetStopMapa(props){const{address,radius,style}=props;const isStatic=useIsStaticRenderer();const[hasConsented,setHasConsented]=useState(false);const embedSrc=useMemo(()=>{const encoded=encodeURIComponent(address);return`https://www.google.com/maps?q=${encoded}&output=embed`;},[address]);const mapsLink=useMemo(()=>{const encoded=encodeURIComponent(address);return`https://www.google.com/maps?q=${encoded}`;},[address]);const handleLoadMap=useCallback(()=>{startTransition(()=>setHasConsented(true));},[]);if(!hasConsented||isStatic){return /*#__PURE__*/_jsxs(\"div\",{style:{...style,position:\"relative\",width:\"100%\",height:\"100%\",minHeight:220,borderRadius:radius,overflow:\"hidden\",background:\"#EDF5FC\",color:\"#082C60\",padding:16,boxSizing:\"border-box\",display:\"flex\",flexDirection:\"column\",justifyContent:\"space-between\",fontFamily:\"Nunito, sans-serif\",fontSize:16},children:[/*#__PURE__*/_jsxs(\"div\",{children:[/*#__PURE__*/_jsx(\"strong\",{children:\"Mapa PetStop\"}),/*#__PURE__*/_jsx(\"p\",{style:{margin:\"8px 0 0 0\"},children:address}),/*#__PURE__*/_jsx(\"p\",{style:{margin:\"10px 0 0 0\"},children:\"Ao carregar, voc\\xea acessa um servi\\xe7o do Google.\"})]}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",gap:10,flexWrap:\"wrap\",alignItems:\"center\",marginTop:12},children:[/*#__PURE__*/_jsx(\"button\",{type:\"button\",onClick:handleLoadMap,\"aria-label\":\"Carregar Google Maps\",disabled:isStatic,style:{appearance:\"none\",border:\"none\",borderRadius:10,padding:\"10px 14px\",background:\"#082C60\",color:\"#FFFFFF\",cursor:isStatic?\"default\":\"pointer\",opacity:isStatic?.75:1,fontFamily:\"Nunito, sans-serif\",fontSize:16},children:\"Carregar Google Maps\"}),/*#__PURE__*/_jsx(\"a\",{href:mapsLink,target:\"_blank\",rel:\"noreferrer\",style:{color:\"#082C60\",fontWeight:600},children:\"Como chegar\"})]})]});}return /*#__PURE__*/_jsx(\"div\",{style:{...style,position:\"relative\",width:\"100%\",height:\"100%\",minHeight:220,borderRadius:radius,overflow:\"hidden\",background:\"#EDF5FC\"},children:/*#__PURE__*/_jsx(\"iframe\",{title:`Mapa: ${address}`,src:embedSrc,loading:\"lazy\",referrerPolicy:\"no-referrer-when-downgrade\",style:{border:0,width:\"100%\",height:\"100%\",display:\"block\"}})});}addPropertyControls(PetStopMapa,{address:{type:ControlType.String,title:\"Endere\\xe7o\",defaultValue:\"Av. Senador Filinto M\\xfcller 988, Cuiab\\xe1 - MT\"},radius:{type:ControlType.Number,title:\"Raio\",defaultValue:12,min:0,max:40,unit:\"px\",step:1}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"PetStopMapa\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./PetStopMapa.map"],"mappings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