{"version":3,"file":"RadarSection.DbPPEMW-.mjs","names":["useState","fallbackId"],"sources":["https:/framerusercontent.com/modules/visfwT9XPRoUBTKxhnfa/VilarGstbnq6zh8EE6ik/RadarSection.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useEffect,useState}from\"react\";import{addPropertyControls,ControlType}from\"framer\";export default function RadarSection(props){const[isTailwindLoaded,setIsTailwindLoaded]=useState(false);useEffect(()=>{let cancelled=false;let pollId;const markReady=()=>{if(!cancelled)setIsTailwindLoaded(true);};const tailwindCssIsReady=()=>{const probe=document.createElement(\"div\");probe.className=\"text-cyan-500\";probe.style.cssText=\"position:absolute;left:-9999px;top:-9999px;pointer-events:none\";document.body.appendChild(probe);const color=window.getComputedStyle(probe).color;probe.remove();return color.includes(\"6\")&&color.includes(\"182\")&&color.includes(\"212\");};const waitForTailwindCss=()=>{if(tailwindCssIsReady()){markReady();return;}pollId=window.setTimeout(waitForTailwindCss,100);};const existingScript=document.getElementById(\"tailwind-cdn\")||document.querySelector('script[src*=\"cdn.tailwindcss.com\"]');if(existingScript){existingScript.addEventListener(\"load\",waitForTailwindCss,{once:true});waitForTailwindCss();const fallbackId=window.setTimeout(markReady,5e3);return()=>{cancelled=true;window.clearTimeout(pollId);window.clearTimeout(fallbackId);existingScript.removeEventListener(\"load\",waitForTailwindCss);};}const script=document.createElement(\"script\");script.id=\"tailwind-cdn\";script.src=\"https://cdn.tailwindcss.com\";script.async=true;script.onload=waitForTailwindCss;script.onerror=markReady;document.head.appendChild(script);const fallbackId=window.setTimeout(markReady,5e3);return()=>{cancelled=true;window.clearTimeout(pollId);window.clearTimeout(fallbackId);};},[]);const drones=[{x:\"50%\",y:\"45%\",delay:\"0s\",path:\"flight-path-1\",size:\"w-8 h-8 md:w-20 md:h-20\",color:\"text-emerald-400\",shadow:\"rgba(52,211,153,1)\",opacity:\"opacity-100\",scale:\"scale-100\"},{x:\"62%\",y:\"30%\",delay:\"-2s\",path:\"flight-path-2\",size:\"w-5 h-5 md:w-12 md:h-12\",color:\"text-cyan-400\",shadow:\"rgba(34,211,238,0.8)\",opacity:\"opacity-90\",scale:\"scale-90\"},{x:\"62%\",y:\"70%\",delay:\"-1s\",path:\"flight-path-3\",size:\"w-5 h-5 md:w-12 md:h-12\",color:\"text-cyan-400\",shadow:\"rgba(34,211,238,0.8)\",opacity:\"opacity-90\",scale:\"scale-90\"},{x:\"40%\",y:\"35%\",delay:\"-4s\",path:\"flight-path-1\",size:\"w-5 h-5 md:w-12 md:h-12\",color:\"text-cyan-500\",shadow:\"rgba(34,211,238,0.6)\",opacity:\"opacity-90\",scale:\"scale-90\"},{x:\"40%\",y:\"65%\",delay:\"-3s\",path:\"flight-path-2\",size:\"w-5 h-5 md:w-12 md:h-12\",color:\"text-cyan-500\",shadow:\"rgba(34,211,238,0.6)\",opacity:\"opacity-90\",scale:\"scale-90\"},{x:\"75%\",y:\"15%\",delay:\"-5s\",path:\"flight-path-3\",size:\"w-4 h-4 md:w-10 md:h-10\",color:\"text-amber-400\",shadow:\"rgba(251,191,36,0.7)\",opacity:\"opacity-80\",scale:\"scale-75\"},{x:\"75%\",y:\"85%\",delay:\"-2.5s\",path:\"flight-path-1\",size:\"w-4 h-4 md:w-10 md:h-10\",color:\"text-blue-400\",shadow:\"rgba(59,130,246,0.7)\",opacity:\"opacity-80\",scale:\"scale-75\"},{x:\"30%\",y:\"25%\",delay:\"-1.5s\",path:\"flight-path-2\",size:\"w-4 h-4 md:w-10 md:h-10\",color:\"text-blue-500\",shadow:\"rgba(59,130,246,0.5)\",opacity:\"opacity-80\",scale:\"scale-75\"},{x:\"30%\",y:\"75%\",delay:\"-6s\",path:\"flight-path-3\",size:\"w-4 h-4 md:w-10 md:h-10\",color:\"text-blue-500\",shadow:\"rgba(59,130,246,0.5)\",opacity:\"opacity-80\",scale:\"scale-75\"},{x:\"85%\",y:\"35%\",delay:\"-3.5s\",path:\"flight-path-1\",size:\"w-3 h-3 md:w-8 md:h-8\",color:\"text-rose-400\",shadow:\"rgba(244,63,94,0.6)\",opacity:\"opacity-70\",scale:\"scale-50\"},{x:\"20%\",y:\"40%\",delay:\"-4.5s\",path:\"flight-path-3\",size:\"w-3 h-3 md:w-8 md:h-8\",color:\"text-purple-500\",shadow:\"rgba(168,85,247,0.4)\",opacity:\"opacity-60\",scale:\"scale-[0.6]\"}];if(!isTailwindLoaded)return null;return /*#__PURE__*/_jsxs(\"div\",{// ✨ 這裡加入了 relative 與 z-0\nclassName:\"w-full max-w-5xl mx-auto px-4 sm:px-6 py-4 md:py-8 font-sans text-slate-100 relative z-0\",// ✨ 這裡加入了 isolation: \"isolate\" 來建立結界\nstyle:{backgroundColor:props.bgColor,isolation:\"isolate\"},children:[/*#__PURE__*/_jsx(\"style\",{dangerouslySetInnerHTML:{__html:`\n                .speed-lines { background-image: linear-gradient(to right, rgba(34, 211, 238, 0.15) 1px, transparent 1px); background-size: 150px 100%; animation: pan-fast 0.35s linear infinite; }\n                @keyframes pan-fast { 0% { background-position: 0px 0; } 100% { background-position: -150px 0; } }\n                @keyframes irregular-1 { 0%, 100% { transform: translate(0px, 0px); } 20% { transform: translate(15px, -12px); } 40% { transform: translate(-8px, 15px); } 60% { transform: translate(18px, 8px); } 80% { transform: translate(-12px, -15px); } }\n                @keyframes irregular-2 { 0%, 100% { transform: translate(0px, 0px); } 25% { transform: translate(-18px, 10px); } 50% { transform: translate(12px, -18px); } 75% { transform: translate(-10px, -8px); } }\n                @keyframes irregular-3 { 0%, 100% { transform: translate(0px, 0px); } 30% { transform: translate(10px, 18px); } 60% { transform: translate(-15px, -12px); } 85% { transform: translate(18px, 5px); } }\n                .flight-path-1 { animation: irregular-1 7s ease-in-out infinite; }\n                .flight-path-2 { animation: irregular-2 8.5s ease-in-out infinite; }\n                .flight-path-3 { animation: irregular-3 6.5s ease-in-out infinite; }\n            `}}),/*#__PURE__*/_jsx(\"svg\",{width:\"0\",height:\"0\",className:\"hidden\",children:/*#__PURE__*/_jsx(\"defs\",{children:/*#__PURE__*/_jsxs(\"g\",{id:\"drone-solid\",children:[/*#__PURE__*/_jsx(\"polygon\",{points:\"18,0 -12,12 -6,0 -12,-12\",fill:\"currentColor\"}),/*#__PURE__*/_jsx(\"polygon\",{points:\"12,0 -4,5 -2,0 -4,-5\",fill:\"#ffffff\",opacity:\"0.95\"}),/*#__PURE__*/_jsx(\"circle\",{cx:\"-14\",cy:\"0\",r:\"6\",fill:\"currentColor\",opacity:\"0.4\",filter:\"blur(3px)\"})]})})}),/*#__PURE__*/_jsxs(\"div\",{className:\"relative w-full aspect-[3/1] md:aspect-[5/1] border border-cyan-700/60 rounded-2xl bg-[#020617] shadow-[0_0_40px_rgba(6,182,212,0.15)] ring-1 ring-white/5 overflow-hidden\",children:[/*#__PURE__*/_jsx(\"div\",{className:\"absolute inset-0 speed-lines opacity-100\"}),/*#__PURE__*/_jsx(\"div\",{className:\"absolute top-1/2 left-0 w-full h-px bg-cyan-900/40\"}),/*#__PURE__*/_jsx(\"div\",{className:\"absolute top-0 left-1/2 w-px h-full bg-cyan-900/40\"}),/*#__PURE__*/_jsx(\"div\",{className:\"absolute inset-0 bg-gradient-to-r from-[#020617] via-transparent to-[#020617] pointer-events-none z-10\"}),/*#__PURE__*/_jsx(\"div\",{className:\"absolute top-3 left-3 md:top-5 md:left-5 w-3 h-3 md:w-6 md:h-6 border-t-2 border-l-2 border-cyan-500/40 z-20\"}),/*#__PURE__*/_jsx(\"div\",{className:\"absolute top-3 right-3 md:top-5 md:right-5 w-3 h-3 md:w-6 md:h-6 border-t-2 border-r-2 border-cyan-500/40 z-20\"}),/*#__PURE__*/_jsx(\"div\",{className:\"absolute bottom-3 left-3 md:bottom-5 md:left-5 w-3 h-3 md:w-6 md:h-6 border-b-2 border-l-2 border-cyan-500/40 z-20\"}),/*#__PURE__*/_jsx(\"div\",{className:\"absolute bottom-3 right-3 md:bottom-5 md:right-5 w-3 h-3 md:w-6 md:h-6 border-b-2 border-r-2 border-cyan-500/40 z-20\"}),/*#__PURE__*/_jsxs(\"div\",{className:\"absolute top-4 left-4 md:top-7 md:left-14 flex items-center gap-1.5 md:gap-2 text-[6px] md:text-[9px] font-mono text-cyan-400 uppercase tracking-widest z-20 font-bold\",children:[/*#__PURE__*/_jsx(\"span\",{className:\"w-1 h-1 md:w-1.5 md:h-1.5 bg-red-500 rounded-full animate-pulse\"}),\" \",\"AIRSPACE / TACTICAL SWARM\"]}),/*#__PURE__*/_jsx(\"div\",{className:\"absolute bottom-4 right-4 md:bottom-7 md:right-14 block text-[6px] md:text-[9px] font-mono text-emerald-400 uppercase tracking-widest text-right font-bold z-20\",children:\"VELOCITY / MACH 0.85\"}),/*#__PURE__*/_jsx(\"div\",{className:\"absolute inset-0 z-30\",children:drones.map((d,i)=>/*#__PURE__*/_jsx(\"div\",{className:`absolute -translate-x-1/2 -translate-y-1/2 z-40 ${d.color} ${d.opacity} ${d.scale}`,style:{left:d.x,top:d.y,filter:`drop-shadow(0 0 15px ${d.shadow})`},children:/*#__PURE__*/_jsx(\"div\",{className:`${d.path}`,style:{animationDelay:d.delay},children:/*#__PURE__*/_jsx(\"svg\",{viewBox:\"-20 -20 40 40\",className:`${d.size} overflow-visible transition-all duration-300`,children:/*#__PURE__*/_jsx(\"use\",{href:\"#drone-solid\"})})})},i))})]})]});}addPropertyControls(RadarSection,{bgColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"transparent\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"RadarSection\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./RadarSection.map"],"mappings":"sMAAmJ,SAAwB,EAAa,EAAM,CAAC,GAAK,CAAC,EAAiB,GAAqBA,EAAS,GAAM,CAAqxG,OAApxG,MAAc,CAAC,IAAI,EAAU,GAAU,EAAa,MAAc,CAAK,GAAU,EAAoB,GAAK,EAAS,MAAuB,CAAC,IAAM,EA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