{"version":3,"file":"PopUpCardapio.CLZppMFk.mjs","names":[],"sources":["https:/framerusercontent.com/modules/RRsk8to5tIt3D8zjnYux/iR0KwJ0u7IxWp38zfRSq/PopUpCardapio.js"],"sourcesContent":["// Welcome to Code in Framer\n// Get Started: https://www.framer.com/developers/\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState,useEffect}from\"react\";/**\n * These annotations control how your component sizes\n * Learn more: https://www.framer.com/developers/#code-components-auto-sizing\n *\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function PopUp(props){const[showBanner,setShowBanner]=useState(true);const[selectedImage,setSelectedImage]=useState(\"\");useEffect(()=>{const images=[\"https://raw.githubusercontent.com/carlosfichips/cardapio/14c9f628639f6038d685206073c7b257d5a0d0f1/Dia%2018.png\",\"https://raw.githubusercontent.com/carlosfichips/cardapio/14c9f628639f6038d685206073c7b257d5a0d0f1/Dia%2015.png\"];const randomIndex=Math.floor(Math.random()*images.length);setSelectedImage(images[randomIndex]);},[]);return /*#__PURE__*/_jsx(\"div\",{style:containerStyle,children:showBanner&&/*#__PURE__*/_jsx(\"div\",{style:bannerOverlayStyle,children:/*#__PURE__*/_jsxs(\"div\",{style:bannerStyle,children:[/*#__PURE__*/_jsx(\"button\",{style:closeButtonStyle,onClick:()=>setShowBanner(false),children:\"\\xd7\"}),/*#__PURE__*/_jsx(\"img\",{src:selectedImage,alt:\"Promo Banner\",style:imageStyle})]})})});}const containerStyle={height:\"100%\",display:\"flex\",justifyContent:\"center\",alignItems:\"center\",overflow:\"hidden\",position:\"relative\"};const bannerOverlayStyle={position:\"fixed\",top:0,left:0,width:\"100%\",height:\"100%\",backgroundColor:\"rgba(0, 0, 0, 0.5)\",display:\"flex\",justifyContent:\"center\",alignItems:\"center\",zIndex:9999,padding:\"16px\",boxSizing:\"border-box\"};const bannerStyle={position:\"relative\",backgroundColor:\"white\",borderRadius:\"8px\",boxShadow:\"0 4px 12px rgba(0, 0, 0, 0.3)\",width:\"100%\",maxWidth:\"500px\",maxHeight:\"90vh\",overflow:\"hidden\"};const imageStyle={width:\"100%\",height:\"auto\",display:\"block\",borderRadius:\"8px\"};const closeButtonStyle={position:\"absolute\",top:\"10px\",right:\"10px\",backgroundColor:\"#ff0000\",border:\"none\",fontSize:\"24px\",cursor:\"pointer\",color:\"#ffffff\",fontWeight:\"bold\",width:\"32px\",height:\"32px\",borderRadius:\"50%\",display:\"flex\",justifyContent:\"center\",alignItems:\"center\",boxShadow:\"0 2px 6px rgba(0, 0, 0, 0.2)\"};\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"PopUp\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"auto\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./PopUpCardapio.map"],"mappings":"0KAQG,SAAwB,EAAM,EAAM,CAAC,GAAK,CAAC,EAAW,EAAc,CAAC,GAAS,EAAK,CAAM,CAAC,EAAc,EAAiB,CAAC,EAAS,GAAG,CAAuW,MAAtW,GAAU,IAAI,CAAC,IAAM,EAAO,CAAC,iHAAiH,gHAAiH,EAAO,EAAY,KAAK,MAAM,KAAK,QAAQ,CAAC,EAAO,OAAO,CAAC,EAAiB,EAAO,GAAa,AAAE,EAAC,CAAE,EAAC,CAAqB,EAAK,MAAM,CAAC,MAAM,EAAe,SAAS,GAAyB,EAAK,MAAM,CAAC,MAAM,EAAmB,SAAsB,EAAM,MAAM,CAAC,MAAM,EAAY,SAAS,CAAc,EAAK,SAAS,CAAC,MAAM,EAAiB,QAAQ,IAAI,GAAc,EAAM,CAAC,SAAS,GAAO,EAAC,CAAc,EAAK,MAAM,CAAC,IAAI,EAAc,IAAI,eAAe,MAAM,CAAW,EAAC,AAAC,CAAC,EAAC,AAAC,EAAC,AAAC,EAAC,AAAE,wBAAioB,AAN3+C,GAAyD,IAAsC,C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