{"version":3,"file":"Map_Fanatics.CXHWVstx.mjs","names":["useRef","_Fragment","__esmMin","window","init_ssg_sandbox_shims","init_npm_react_18_3_1","de","l","p","c","init_jsx_runtime","ce","DropOffPage","iframeRef","handleMessage","e","iframe","init_Map_Fanatics"],"sources":["https:/framerusercontent.com/modules/bLt8OaCFHqk46qPJBBwX/1XcP9YflFUIMppxidXmO/Map_Fanatics.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{useEffect,useRef}from\"react\";export default function DropOffPage(){const iframeRef=useRef(null);useEffect(()=>{const handleMessage=e=>{if(e.data?.height&&iframeRef.current){iframeRef.current.style.height=e.data.height+\"px\";}};window.addEventListener(\"message\",handleMessage);return()=>window.removeEventListener(\"message\",handleMessage);},[]);useEffect(()=>{if(!iframeRef.current)return;const iframe=iframeRef.current;const iframeContent=`\n      <!DOCTYPE html>\n      <html>\n        <head>\n          <meta charset=\"utf-8\">\n          <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n          <style>\n            body {\n              margin: 0;\n              padding: 20px;\n              font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;\n            }\n            #storepoint-widget {\n              width: 100%;\n              min-height: 400px;\n            }\n          </style>\n        </head>\n        <body>\n          <div id=\"storepoint-widget\">Loading widget...</div>\n          <script>\n            function sendHeight() {\n              window.parent.postMessage({ height: document.body.scrollHeight }, '*')\n            }\n            new ResizeObserver(sendHeight).observe(document.body)\n\n            function initWidget() {\n              if (window.StorepointWidget) {\n                try {\n                  new window.StorepointWidget(\"167a130b773562\", \"#storepoint-widget\", {})\n                  setTimeout(sendHeight, 500)\n                } catch (error) {\n                  console.error(\"Error initializing widget:\", error)\n                }\n              } else {\n                setTimeout(initWidget, 500)\n              }\n            }\n            const script = document.createElement(\"script\")\n            script.type = \"text/javascript\"\n            script.async = true\n            script.src = \"https://widget.storepoint.co/embed.js\"\n            script.onload = function() { setTimeout(initWidget, 100) }\n            document.head.appendChild(script)\n          </script>\n        </body>\n      </html>\n    `;iframe.onload=()=>console.log(\"Iframe loaded\");iframe.srcdoc=iframeContent;},[]);return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                @media (max-width: 768px) {\n                    .drop-off-wrapper {\n                        padding: 32px 0 !important;\n                    }\n                    .drop-off-title {\n                        font-size: 24px !important;\n                        line-height: 32px !important;\n                    }\n                    .drop-off-desc {\n                        font-size: 14px !important;\n                        line-height: 20px !important;\n                        margin-top: 25px !important;\n                    }\n                }\n            `}),/*#__PURE__*/_jsxs(\"div\",{className:\"drop-off-wrapper\",style:{margin:\"0 auto\",display:\"flex\",width:\"100%\",maxWidth:\"1440px\",flexDirection:\"column\",padding:\"88px 0 88px 0\",minWidth:\"100%\"},children:[/*#__PURE__*/_jsx(\"h2\",{className:\"drop-off-title\",style:{paddingLeft:\"8px\",fontSize:\"40px\",fontWeight:\"bold\",marginBottom:\"0\"},children:\"Official Consignment Centers\"}),/*#__PURE__*/_jsx(\"p\",{className:\"drop-off-desc\",style:{paddingLeft:\"8px\",fontSize:\"16px\",marginTop:\"16px\",marginBottom:\"0\",maxWidth:\"890px\"},children:\"Turn your collectibles into instant cash at any of our 200+ partner locations. Simply find a nearby participating shop, drop off your cards, and we'll walk you through the consignment process.\"}),/*#__PURE__*/_jsx(\"iframe\",{ref:iframeRef,style:{width:\"100%\",height:\"600px\",border:\"none\",marginTop:\"48px\",borderRadius:\"8px\",backgroundColor:\"white\"},title:\"Storepoint Widget\"})]})]});}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"DropOffPage\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Map_Fanatics.map"],"mappings":"A,qJAAmH,SAAwBY,GAAa,CAAC,IAAMC,EAAUb,EAAO,IAAI,EA+C7F,OA/C+FW,MAAc,CA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