1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5592],{3211:(e,s,t)=>{t.r(s),t.d(s,{default:()=>n});var o=t(4232),i=t(8230),r=t.n(i),l=t(7876);let n=({variant:e="hero",showMultipleCodes:s=!1,className:t=""})=>{let{0:i,1:n}=(0,o.useState)(null),c=[{code:"SPACEROACH",title:"Any Meta Quest Game",description:"10% discount on VR games in the Meta Horizon Store",discount:"Instant Savings",retailer:"Meta Horizon Store (VR games only)",icon:"",color:"from-blue-600 to-purple-600",popular:!0},{code:"SPACEROACHVR",title:"VR Accessories",description:"10% off select VR accessories including KIWI Design products",discount:"10% Off",retailer:"Select Retailers",icon:"",color:"from-green-500 to-teal-500"},{code:"SPACE50",title:"Roto VR Explorer",description:"$50 off the revolutionary 360\xb0 VR chair",discount:"$50 Off",retailer:"RotoVR.com",icon:"",color:"from-purple-500 to-pink-500"},{code:"SPACEROACH",title:"SKOL VR Gunstocks",description:"5% off sitewide on SKOL gunstocks",discount:"5% Off",retailer:"SKOLVR.com",icon:"",color:"from-red-500 to-orange-500"}],a=(s,t)=>{navigator.clipboard.writeText(s),n(s);try{var o,i;null==(o=(i=window).gtag)||o.call(i,"event","discount_code_copied",{discount_code:s,retailer:t,page:"homepage",component:e})}catch(e){}setTimeout(()=>n(null),3e3)};if("hero"===e){let e=c[0];return(0,l.jsx)("div",{className:`bg-gradient-to-r ${e.color} p-1 rounded-xl shadow-lg ${t}`,children:(0,l.jsxs)("div",{className:"bg-gray-900/90 backdrop-blur-sm rounded-lg p-4 flex items-center justify-between",children:[(0,l.jsxs)("div",{className:"flex items-center gap-3",children:[(0,l.jsx)("span",{className:"text-2xl",children:e.icon}),(0,l.jsxs)("div",{children:[(0,l.jsxs)("div",{className:"text-white font-bold text-lg",children:["Use code ",(0,l.jsx)("span",{className:"font-mono bg-black/20 px-2 py-1 rounded",children:e.code})]}),(0,l.jsx)("div",{className:"text-gray-300 text-sm",children:e.description})]})]}),(0,l.jsx)("button",{onClick:()=>a(e.code,e.retailer),className:`px-4 py-2 bg-gradient-to-r ${e.color} hover:opacity-80 rounded-lg font-semibold transition-all duration-200 transform hover:scale-105 shadow-lg text-white`,children:i===e.code?(0,l.jsxs)("span",{className:"flex items-center gap-2",children:[(0,l.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}),"Copied!"]}):"Copy Code"})]})})}return"sidebar"===e?(0,l.jsxs)("div",{className:`bg-gray-900 rounded-xl border border-gray-700 p-4 ${t}`,children:[(0,l.jsx)("h3",{className:"text-lg font-bold text-white mb-3 flex items-center gap-2",children:"Active Discount Codes"}),(0,l.jsx)("div",{className:"space-y-3",children:c.slice(0,s?3:1).map((e,s)=>(0,l.jsxs)("div",{className:"bg-black rounded-lg p-3",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)("span",{className:"text-lg",children:e.icon}),(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:"text-white font-semibold text-sm",children:e.code}),(0,l.jsx)("div",{className:"text-gray-200 text-xs",children:e.discount})]})]}),(0,l.jsx)("button",{onClick:()=>a(e.code,e.retailer),className:"text-blue-200 hover:text-white text-xs font-medium transition-colors",children:i===e.code?"Copied!":"Copy"})]}),(0,l.jsxs)("div",{className:"text-gray-300 text-xs",children:[(0,l.jsx)("span",{className:"font-medium",children:"Use at:"})," ",e.retailer]})]},s))}),(0,l.jsx)("div",{className:"mt-3 pt-3 border-t border-gray-700",children:(0,l.jsxs)(r(),{href:"/vr-games-discount-codes",className:"text-blue-200 hover:text-white text-sm font-medium flex items-center gap-1 transition-colors",children:["View All Codes",(0,l.jsx)("svg",{className:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})]})})]}):"inline"===e?(0,l.jsx)("div",{className:`bg-gradient-to-r from-green-600 to-blue-600 p-3 rounded-lg shadow-lg ${t}`,children:(0,l.jsxs)("div",{className:"flex items-center justify-between text-white",children:[(0,l.jsx)("div",{className:"flex items-center gap-2",children:(0,l.jsx)("span",{className:"font-semibold",children:"Save with SPACEROACH codes"})}),(0,l.jsx)(r(),{href:"/vr-games-discount-codes",className:"bg-white/20 hover:bg-white/30 px-3 py-1 rounded text-sm font-medium transition-colors",children:"Get Codes"})]})}):null}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.