1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,724032,e=>{"use strict";e.s(["default",()=>o],724032);var t=e.i(843476),r=e.i(395719),s=e.i(657688);let l={src:e.i(799747).default,width:992,height:1056,blurWidth:8,blurHeight:8,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAsElEQVR42iWNSwrCMBiEe/8riIIKbn2DKCq4kGrfXda+TPonbZKmaXsBUwvDDMM3MEavZPdXK7mSfKzaDR28xJITyUC7qlnNSDeCRpRKEIpjihPJCslpr5oB6JUS4LvvwLMUx42oOg3apgaUMIrz9JMlkahA1+GDl2Bb5uV8ut+uu+3meNi/zGdFwEjD02G9mk0nYeC5jr1czH3rAYljkMwjKP5maUUBMEJ5SlHMi+gHST+nSmsybEAAAAAASUVORK5CYII="};var a=e.i(984828),n=e.i(522016);let o=()=>(0,t.jsxs)("div",{className:"flex flex-col lg:flex-row items-center justify-between py-16 px-8 lg:px-16 bg-white min-h-[600px] border-b-4 border-black",children:[(0,t.jsxs)("div",{className:"relative z-10 lg:w-1/2 flex flex-col items-start text-left mb-10 lg:mb-0 ",children:[(0,t.jsxs)("h1",{className:"text-5xl xl:text-6xl font-black font-rubik uppercase leading-tight tracking-tighter text-black mb-6 drop-shadow-[4px_4px_0px_rgba(0,0,0,0.2)]",children:["OWN THE DREAM,",(0,t.jsx)("br",{className:"hidden lg:block "})," TOGETHER."]}),(0,t.jsx)("p",{className:"text-lg md:text-xl text-gray-800 mb-10 font-medium font-rubik",children:"Join transparent, on-chain pools to democratize access to rare assets and experiences."}),(0,t.jsx)(n.default,{href:"/raffle",children:(0,t.jsxs)(r.default,{color:"pharos-orange",shape:"medium-rounded",className:"text-base xs:text-lg lg:text-xl px-10 py-4 flex items-center gap-2",children:["Explore Raffles ",(0,t.jsx)(a.FaArrowRight,{})]})})]}),(0,t.jsx)("div",{className:"relative lg:w-1/2 flex justify-center lg:justify-end items-center mt-10 lg:mt-0 lg:p-10",children:(0,t.jsxs)("div",{className:"relative w-full max-w-lg lg:max-w-none h-auto border-4 border-black bg-white shadow-[8px_8px_0px_rgba(0,0,0,0.8)] rounded-xl overflow-hidden",children:[(0,t.jsx)(s.default,{src:l,alt:"Pharos Application Screenshot",layout:"responsive",width:900,height:700,objectFit:"cover",className:"rounded-lg"}),(0,t.jsxs)("div",{className:"absolute top-0 left-0 w-full h-8 bg-gray-200 border-b-2 border-black flex items-center px-2 space-x-2",children:[(0,t.jsx)("span",{className:"w-3 h-3 bg-red-500 rounded-full border border-gray-600"}),(0,t.jsx)("span",{className:"w-3 h-3 bg-yellow-500 rounded-full border border-gray-600"}),(0,t.jsx)("span",{className:"w-3 h-3 bg-green-500 rounded-full border border-gray-600"}),(0,t.jsx)("div",{className:"flex-1 bg-white border border-gray-400 rounded-md h-5 ml-4"})]})]})})]})},508430,e=>{"use strict";let t,r;e.s(["default",()=>ee],508430);var s=e.i(843476),l=e.i(271645),a=e.i(657688),n=e.i(846932),o=e.i(486427),i=e.i(965566),x=e.i(260830),d=e.i(287022);function c(e,t){let r,s=()=>{let{currentTime:s}=t,l=(null===s?0:s.value)/100;r!==l&&e(l),r=l};return d.frame.preUpdate(s,!0),()=>(0,d.cancelFrame)(s)}var p=e.i(930551),m=e.i(889026),h=e.i(749652);let b=new WeakMap,f=(e,t,r)=>(s,l)=>l&&l[0]?l[0][e+"Size"]:(0,m.isSVGElement)(s)&&"getBBox"in s?s.getBBox()[t]:s[r],u=f("inline","width","offsetWidth"),g=f("block","height","offsetHeight");function w(e){var t;let{target:r,borderBoxSize:s}=e;null==(t=b.get(r))||t.forEach(e=>{e(r,{get width(){return u(r,s)},get height(){return g(r,s)}})})}function v(e){e.forEach(w)}let y=new Set;var j=e.i(783920),N=e.i(325791);let k=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),_={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function A(e,t,r,s){let l=r[t],{length:a,position:n}=_[t],o=l.current,i=r.time;l.current=e["scroll".concat(n)],l.scrollLength=e["scroll".concat(a)]-e["client".concat(a)],l.offset.length=0,l.offset[0]=0,l.offset[1]=l.scrollLength,l.progress=(0,j.progress)(0,l.scrollLength,l.current);let x=s-i;l.velocity=x>50?0:(0,N.velocityPerSecond)(l.current-o,x)}e.i(247167);var E=e.i(344230),C=e.i(515923),S=e.i(476959),L=e.i(772846);let R={start:0,center:.5,end:1};function M(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,s=0;if(e in R&&(e=R[e]),"string"==typeof e){let t=parseFloat(e);e.endsWith("px")?s=t:e.endsWith("%")?e=t/100:e.endsWith("vw")?s=t/100*document.documentElement.clientWidth:e.endsWith("vh")?s=t/100*document.documentElement.clientHeight:e=t}return"number"==typeof e&&(s=t*e),r+s}let T=[0,0],I={All:[[0,0],[1,1]]},P={x:0,y:0},U=new WeakMap,O=new WeakMap,B=new WeakMap,D=e=>e===document.scrollingElement?window:e;
1function z(e){let{container:s=document.scrollingElement,...l}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!s)return x.noop;let a=B.get(s);a||(a=new Set,B.set(s,a));let n=function(e,t,r){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return{measure:t=>{!function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=arguments.length>2?arguments[2]:void 0;if(r.x.targetOffset=0,r.y.targetOffset=0,t!==e){let s=t;for(;s&&s!==e;)r.x.targetOffset+=s.offsetLeft,r.y.targetOffset+=s.offsetTop,s=s.offsetParent}r.x.targetLength=t===e?t.scrollWidth:t.clientWidth,r.y.targetLength=t===e?t.scrollHeight:t.clientHeight,r.x.containerLength=e.clientWidth,r.y.containerLength=e.clientHeight}(e,s.target,r),A(e,"x",r,t),A(e,"y",r,t),r.time=t,(s.offset||s.target)&&function(e,t,r){let{offset:s=I.All}=r,{target:l=e,axis:a="y"}=r,n="y"===a?"height":"width",o=l!==e?function(e,t){let r={x:0,y:0},s=e;for(;s&&s!==t;)if((0,L.isHTMLElement)(s))r.x+=s.offsetLeft,r.y+=s.offsetTop,s=s.offsetParent;else if("svg"===s.tagName){let e=s.getBoundingClientRect(),t=(s=s.parentElement).getBoundingClientRect();r.x+=e.left-t.left,r.y+=e.top-t.top}else if(s instanceof SVGGraphicsElement){let{x:e,y:t}=s.getBBox();r.x+=e,r.y+=t;let l=null,a=s.parentNode;for(;!l;)"svg"===a.tagName&&(l=a),a=s.parentNode;s=l}else break;return r}(l,e):P,i=l===e?{width:e.scrollWidth,height:e.scrollHeight}:"getBBox"in l&&"svg"!==l.tagName?l.getBBox():{width:l.clientWidth,height:l.clientHeight},x={width:e.clientWidth,height:e.clientHeight};t[a].offset.length=0;let d=!t[a].interpolate,c=s.length;for(let e=0;e<c;e++){let r=function(e,t,r,s){let l=Array.isArray(e)?e:T,a=0;return"number"==typeof e?l=[e,e]:"string"==typeof e&&(l=(e=e.trim()).includes(" ")?e.split(" "):[e,R[e]?e:"0"]),(a=M(l[0],r,s))-M(l[1],t)}(s[e],x[n],i[n],o[a]);d||r===t[a].interpolatorOffsets[e]||(d=!0),t[a].offset[e]=r}d&&(t[a].interpolate=(0,E.interpolate)(t[a].offset,(0,C.defaultOffset)(s),{clamp:!1}),t[a].interpolatorOffsets=[...t[a].offset]),t[a].progress=(0,S.clamp)(0,1,t[a].interpolate(t[a].current))}(e,r,s)},notify:()=>t(r)}}(s,e,{time:0,x:k(),y:k()},l);if(a.add(n),!U.has(s)){let e=()=>{for(let e of a)e.measure(d.frameData.timestamp);d.frame.preUpdate(l)},l=()=>{for(let e of a)e.notify()},n=()=>d.frame.read(e);U.set(s,n);let o=D(s);window.addEventListener("resize",n,{passive:!0}),s!==document.documentElement&&O.set(s,"function"==typeof s?(y.add(s),r||(r=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};y.forEach(t=>t(e))},window.addEventListener("resize",r)),()=>{y.delete(s),y.size||"function"!=typeof r||(window.removeEventListener("resize",r),r=void 0)}):function(e,r){t||"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(v));let s=(0,h.resolveElements)(e);return s.forEach(e=>{let s=b.get(e);s||(s=new Set,b.set(e,s)),s.add(r),null==t||t.observe(e)}),()=>{s.forEach(e=>{let s=b.get(e);null==s||s.delete(r),(null==s?void 0:s.size)||null==t||t.unobserve(e)})}}(s,n)),o.addEventListener("scroll",n,{passive:!0}),n()}let o=U.get(s);return d.frame.read(o,!1,!0),()=>{(0,d.cancelFrame)(o);let e=B.get(s);if(!e||(e.delete(n),e.size))return;let t=U.get(s);if(U.delete(s),t){var r;D(s).removeEventListener("scroll",t),null==(r=O.get(s))||r(),window.removeEventListener("resize",t)}}}let q=new Map;function H(e){var t,r,s,l;let{source:a,container:n,...o}=e,{axis:i}=o;a&&(n=a);let x=null!=(t=q.get(n))?t:new Map;q.set(n,x);let d=null!=(r=o.target)?r:"self",c=null!=(s=x.get(d))?s:{},m=i+(null!=(l=o.offset)?l:[]).join(",");return c[m]||(c[m]=!o.target&&(0,p.supportsScrollTimeline)()?new ScrollTimeline({source:n,axis:i}):function(e){let t={value:0},r=z(r=>{t.value=100*r[e.axis].progress},e);return{currentTime:t,cancel:r}}({container:n,...o})),c[m]}var V=e.i(947414),W=e.i(674008);let K=()=>({scrollX:(0,o.motionValue)(0),scrollY:(0,o.motionValue)(0),scrollXProgress:(0,o.motionValue)(0),scrollYProgress:(0,o.motionValue)(0)}),F=e=>!!e&&!e.current;var J=e.i(737806);function G(e,t){let r=function(e){let t=(0,V.useConstant)(()=>(0,o.motionValue)(e)),{isStatic:r}=(0,l.useContext)(J.MotionConfigContext);if(r){let[,r]=(0,l.useState)(e);(0,l.useEffect)(()=>t.on("change",r),[])}return t}(t()),s=()=>r.set(t());return s(),(0,W.useIsomorphicLayoutEffect)(()=>{let t=()=>d.frame.preRender(s,!1,!0),r=e.map(e=>e.on("change",t));return()=>
1{r.forEach(e=>e()),(0,d.cancelFrame)(s)}}),r}function Y(e,t,r,s){if("function"==typeof e){o.collectMotionValues.current=[],e();let t=G(o.collectMotionValues.current,e);return o.collectMotionValues.current=void 0,t}let l="function"==typeof t?t:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let s=!Array.isArray(t[0]),l=s?0:-1,a=t[0+l],n=t[1+l],o=t[2+l],i=t[3+l],x=(0,E.interpolate)(n,o,i);return s?x(a):x}(t,r,s);return Array.isArray(e)?X(e,l):X([e],e=>{let[t]=e;return l(t)})}function X(e,t){let r=(0,V.useConstant)(()=>[]);return G(e,()=>{r.length=0;let s=e.length;for(let t=0;t<s;t++)r[t]=e[t].get();return t(r)})}let Z={src:e.i(753400).default,width:1024,height:1024,blurWidth:8,blurHeight:8,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAA00lEQVR42gHIADf/AIWaw7a10MnE3tDJ48zG35qeuoKezImm1wCiqMh7kLeFk7TGv9mcn7xyh62Nm7+nr9EAr6/KhpOtkaHE1s/qqrHTgJzKr7LS49r4AJCKmHdydXN7kK6sw6OkvW6DqI2JpburwgCWk6eBgpF/jq+yrsWforx1jLSVkrDDsswAq63Mg5jAj6LK1c7pq6/Nk6TMho2pf4ahAImcxX2XxH6VvsC92cfB2tzV8La10oCaxwCKqNqKqNmGoc+2t9PLxN3k3Pi8u9iIos2MdoJ/thnJnwAAAABJRU5ErkJggg=="},Q={src:e.i(407943).default,width:1024,height:1024,blurWidth:8,blurHeight:8,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAA00lEQVR42gHIADf/AG2Iwd7i69TZ5b/G12+HvYWax9re6G2LxgBohL3DyNd0f6BddqudobDCw8vKy9Jti8YAPmi9ZnejXG+hc4KprK25rquxr6yxbInEAEhsuGBtlXR+oIih3q285qWlsairu2F/vACio8CQjZ+qp7Wuu+OKn9hyf6NecJs5ZbsAvr/Zn5uto52sop+scHugY3KelZ+5oLDTAMzO27u81q+swZibtUhnrExqq73F19/j7ADV2OPExuHLzOq0ut1DbcU3ZsRde7pticERqHrsru7BbQAAAABJRU5ErkJggg=="},$={src:e.i(928892).default,width:1024,height:1024,blurWidth:8,blurHeight:8,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAA00lEQVR42gHIADf/AObq9sfQ446q1ZKv2pKw25e24pe35Je35QDm6vbM0eOgqsuTnLWruM+uvtmTrNSVs+AAy8/ktbnNjoqYg4ugi5aoqrbOpa7RiaDMAKuvzpuYqpCXrI2SpYFuboCMpqCnynqOuAB/g5iDjqqVma2KhY6ZfXVgbINreJptdpQAkK3Yr73XrLPHt7S/q6m1coGimaO6qrbOAJe24rrH3s7V5ru/0JOWsJmkyM7T5Obq9gCXt+WLqNN3k8F5kr20u9/Iy+vY3Ozn6/ehNIQ+7VwsMQAAAABJRU5ErkJggg=="},ee=()=>{let[e,t]=(0,l.useState)(0),r=(0,l.useRef)(null),o=(0,l.useRef)([]),d=[{id:1,title:"JOIN & CONTRIBUTE",description:"Add PYUSD to a community pool to enter raffles for exclusive assets and experiences.",image:Q,color:"#f97028",angle:0},{id:2,title:"PROVABLY FAIR SELECTION",description:"Winners are selected using Pyth Network's transparent and verifiable Random Number Generator.",image:Z,color:"#f3a20f",angle:120},{id:3,title:"SHARED SUCCESS",description:"One winner receives the asset, and the entire process is open and auditable on-chain.",image:$,color:"#8b5cf6",angle:240}],{scrollYProgress:p}=function(){let{container:e,target:t,...r}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},s=(0,V.useConstant)(K),a=(0,l.useRef)(null),n=(0,l.useRef)(!1),o=(0,l.useCallback)(()=>(a.current=function(e){var t,r;let{axis:s="y",container:l=document.scrollingElement,...a}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!l)return x.noop;let n={axis:s,container:l,...a};return"function"==typeof e?(t=e,r=n,2===t.length?z(e=>{t(e[r.axis].progress,e)},r):c(t,H(r))):function(e,t){let r=H(t);return e.attachTimeline({timeline:t.target?void 0:r,observe:e=>(e.pause(),c(t=>{e.time=e.iterationDuration*t},r))})}(e,n)}((e,t)=>{let{x:r,y:l}=t;s.scrollX.set(r.current),s.scrollXProgress.set(r.progress),s.scrollY.set(l.current),s.scrollYProgress.set(l.progress)},{...r,container:(null==e?void 0:e.current)||void 0,target:(null==t?void 0:t.current)||void 0}),()=>{var e;null==(e=a.current)||e.call(a)}),[e,t,JSON.stringify(r.offset)]);return(0,W.useIsomorphicLayoutEffect)(()=>{if(n.current=!1,!(F(e)||F(t)))return o();n.current=!0},[o]),(0,l.useEffect)(()=>n.current?((0,i.invariant)(!F(e),"Container ref is defined but not hydrated","use-scroll-ref"),(0,i.invariant)(!F(t),"Target ref is defined but not hydrated","use-scroll-ref"),o()):void 0,[o]),s}({target:r,offset:["start start","end end"]}),m=Y(p,[0,1],[0,240]),h=Y(m,e=>-e);return(0,l.useEffect)(()=>{let e=o.current.map((e,r)=>{if(!e)return null;let s=new IntersectionObserver(e=>
1{e.forEach(e=>{e.isIntersecting&&t(r)})},{threshold:.5,rootMargin:"-20% 0px -20% 0px"});return s.observe(e),s});return()=>{e.forEach(e=>null==e?void 0:e.disconnect())}},[]),(0,s.jsxs)("div",{ref:r,className:"w-full bg-white min-h-screen",children:[(0,s.jsx)("div",{className:"sticky top-0 z-50 bg-white pt-16 pb-4 px-4 md:px-8 lg:px-12",children:(0,s.jsx)("h2",{className:"text-5xl xl:text-6xl font-rubik font-black uppercase text-center text-black drop-shadow-[4px_4px_0px_rgba(0,0,0,0.2)]",children:"How it works"})}),(0,s.jsx)("div",{className:"hidden lg:block",children:(0,s.jsx)("div",{className:"relative max-w-[1600px] mx-auto px-16",children:(0,s.jsxs)("div",{className:"flex gap-4 items-start",children:[(0,s.jsx)("div",{className:"w-1/2 sticky top-32",children:(0,s.jsx)("div",{className:"flex items-center justify-center h-[600px]",children:(0,s.jsxs)("div",{className:"relative w-[500px] h-[500px]",children:[(0,s.jsx)("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-36 h-36 bg-white border-6 border-black shadow-[6px_6px_0px_rgba(0,0,0,1)] rounded-full flex items-center justify-center z-10",children:(0,s.jsx)("div",{className:"text-center",children:(0,s.jsxs)("div",{className:"text-lg font-rubik font-black uppercase text-black leading-tight",children:["How It",(0,s.jsx)("br",{}),"Works"]})})}),(0,s.jsx)(n.motion.div,{className:"absolute inset-0",style:{rotate:m},children:(0,s.jsxs)("div",{className:"relative w-full h-full",children:[(0,s.jsx)("div",{className:"absolute inset-12 rounded-full border-4 border-dashed border-black opacity-20"}),d.map((t,r)=>{let l=(t.angle-90)*Math.PI/180,o=180*Math.cos(l),i=180*Math.sin(l);return(0,s.jsx)(n.motion.div,{className:"absolute top-1/2 left-1/2",style:{x:o,y:i,translateX:"-50%",translateY:"-50%"},children:(0,s.jsxs)(n.motion.div,{style:{rotate:h},className:"relative",children:[(0,s.jsx)("div",{className:"w-28 h-28 rounded-full border-6 border-black shadow-[4px_4px_0px_rgba(0,0,0,1)] overflow-hidden transition-all duration-500 ".concat(e===r?"scale-125 shadow-[6px_6px_0px_rgba(0,0,0,1)]":"scale-100 opacity-70"),style:{backgroundColor:t.color},children:(0,s.jsx)("div",{className:"absolute inset-2 rounded-full border-4 border-black overflow-hidden bg-white",children:(0,s.jsx)(a.default,{src:t.image,alt:t.title,fill:!0,className:"object-cover"})})}),(0,s.jsx)("div",{className:"absolute -top-2 -right-2 w-10 h-10 border-4 border-black shadow-[2px_2px_0px_rgba(0,0,0,1)] flex items-center justify-center text-lg font-black text-white rounded-lg transition-all duration-500 ".concat(e===r?"scale-125":"scale-100"),style:{backgroundColor:"#f97028"},children:t.id})]})},t.id)})]})})]})})}),(0,s.jsx)("div",{className:"w-1/2",children:d.map((e,t)=>(0,s.jsx)("div",{ref:e=>{o.current[t]=e},className:"min-h-screen flex items-center py-20 first:pt-0",children:(0,s.jsx)(n.motion.div,{initial:{opacity:0,x:50},whileInView:{opacity:1,x:0},transition:{duration:.6,delay:.2},viewport:{once:!1,amount:.5},className:"w-full",children:(0,s.jsxs)(n.motion.div,{className:"relative rounded-xl border-6 border-black shadow-[6px_6px_0px_rgba(0,0,0,1)] bg-white",whileHover:{scale:1.01},transition:{type:"spring",stiffness:300},children:[(0,s.jsxs)("div",{className:"h-8 bg-gray-200 rounded-t-xl border-b-2 border-black flex items-center px-2 space-x-2",children:[(0,s.jsx)("span",{className:"w-3 h-3 bg-red-500 rounded-full border border-gray-600"}),(0,s.jsx)("span",{className:"w-3 h-3 bg-yellow-500 rounded-full border border-gray-600"}),(0,s.jsx)("span",{className:"w-3 h-3 bg-green-500 rounded-full border border-gray-600"}),(0,s.jsx)("div",{className:"flex-1 bg-white border border-gray-400 rounded-md h-5 ml-4 flex items-center px-2",children:(0,s.jsxs)("span",{className:"text-[10px] font-rubik font-bold text-gray-600",children:["pharos.xyz/",e.title.toLowerCase().replace(/\s+/g,"-").replace(/&/g,"and")]})})]}),(0,s.jsxs)("div",{className:"flex p-8 gap-6",children:[(0,s.jsx)(n.motion.div,{className:"w-2/5 shrink-0",initial:{opacity:0,x:-20},whileInView:{opacity:1,x:0},transition:{duration:.5,delay:.3},viewport:{once:!1,amount:.5},children:(0,s.jsx)("div",{className:"rounded-xl relative h-64 border-4 border-black shadow-[6px_6px_0px_rgba(0,0,0,1)] overflow-hidden bg-white",children:(0,s.jsx)(a.default,{src:e.image,alt:e.title,fill:!0,className:"object-cover"})})}),(0,s.jsxs)("div",{className:"flex-1 flex flex-col justify-center space-y-6",children:[(0,s.jsx)(n.motion.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5,delay:.4},viewport:{once:!1,amount:.5},children:(0,s.jsx)("div",{className:"rounded-xl inline-block px-6 py-3 border-4 border-black shadow-[6px_6px_0px_rgba(0,0,0,1)]",style:{backgroundColor:e.color},children:(0,s.jsx)("h3",{className:"text-2xl font-rubik font-black uppercase text-white",children:e.title})})}),(0,s.jsx)(n.motion.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5,delay:.5},viewport:{once:!1,amount:.5},children:(0,s.jsx)("p",{className:"text-base text-black font-medium font-rubik leading-relaxed",children:e.description})}),(0,s.jsx)(n.motion.div,{className:"space-y-4",initial:{opacity:0}
1,whileInView:{opacity:1},transition:{duration:.5,delay:.6},viewport:{once:!1,amount:.5},children:(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)("div",{className:"rounded-lg w-10 h-10 border-4 border-black shadow-[4px_4px_0px_rgba(0,0,0,1)] flex items-center justify-center text-lg font-black text-white",style:{backgroundColor:e.color},children:e.id}),(0,s.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,s.jsxs)("div",{className:"text-xs font-rubik font-black text-black",children:["STEP ",e.id," OF ",d.length]}),(0,s.jsx)("div",{className:"relative w-36 h-2 bg-gray-200 rounded-full border-2 border-black shadow-[2px_2px_0px_rgba(0,0,0,1)] overflow-hidden",children:(0,s.jsx)("div",{className:"absolute top-0 left-0 h-full rounded-full transition-all duration-500 ease-out",style:{width:"".concat((t+1)/d.length*100,"%"),backgroundColor:e.color}})})]})]})})]})]}),(0,s.jsx)("div",{className:"absolute rounded-l -top-4 -right-4 w-14 h-14 border-6 border-black shadow-[4px_4px_0px_rgba(0,0,0,1)] flex items-center justify-center text-3xl font-black text-white transform rotate-12 z-20",style:{backgroundColor:"#f97028"},children:e.id})]})})},e.id))})]})})}),(0,s.jsx)("div",{className:"lg:hidden px-4 pb-16 space-y-20",children:d.map(e=>(0,s.jsxs)(n.motion.div,{initial:{opacity:0,y:50},whileInView:{opacity:1,y:0},transition:{duration:.6},viewport:{once:!0,amount:.3},className:"space-y-8",children:[(0,s.jsx)("div",{className:"flex justify-center",children:(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)("div",{className:"absolute inset-0 flex items-center justify-center",children:(0,s.jsx)("div",{className:"w-72 h-72 rounded-full border-4 border-dashed border-black opacity-20"})}),(0,s.jsx)("div",{className:"relative w-64 h-64 rounded-full border-6 border-black shadow-[8px_8px_0px_rgba(0,0,0,1)] overflow-hidden",style:{backgroundColor:e.color},children:(0,s.jsx)("div",{className:"absolute inset-4 rounded-full border-4 border-black overflow-hidden bg-white",children:(0,s.jsx)(a.default,{src:e.image,alt:e.title,fill:!0,className:"object-cover"})})}),(0,s.jsx)("div",{className:"absolute -top-4 -right-4 w-16 h-16 border-4 border-black shadow-[4px_4px_0px_rgba(0,0,0,1)] flex items-center justify-center text-3xl font-black text-white rounded-lg transform rotate-12",style:{backgroundColor:"#f97028"},children:e.id})]})}),(0,s.jsxs)("div",{className:"space-y-6",children:[(0,s.jsx)("div",{className:"inline-block px-6 py-3 border-4 border-black shadow-[6px_6px_0px_rgba(0,0,0,1)] bg-white",children:(0,s.jsx)("h3",{className:"text-2xl font-rubik font-black uppercase text-black",children:e.title})}),(0,s.jsx)("div",{className:"p-8 border-4 border-black shadow-[8px_8px_0px_rgba(0,0,0,1)]",style:{backgroundColor:e.color},children:(0,s.jsx)("p",{className:"text-lg text-white font-bold font-rubik leading-relaxed",children:e.description})})]})]},e.id))})]})}},92457,e=>{"use strict";e.s(["default",()=>c],92457);var t=e.i(843476),r=e.i(271645),s=e.i(657688),l=e.i(395719),a=e.i(522016),n=e.i(654238),o=e.i(546500),i=e.i(984828);let x=()=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"flex justify-center items-center px-3 xs:px-4 bp-xs:px-6 md:px-8 lg:px-12",children:(0,t.jsx)("div",{className:"w-full flex justify-center",children:(0,t.jsx)("div",{className:"relative bg-linear-to-br from-white to-gray-50 border-2 xs:border-3 md:border-4 border-black shadow-[4px_4px_0px_rgba(0,0,0,0.8)] xs:shadow-[6px_6px_0px_rgba(0,0,0,0.8)] md:shadow-[8px_8px_0px_rgba(0,0,0,0.8)] rounded-lg xs:rounded-xl overflow-hidden w-full max-w-6xl animate-pulse",children:(0,t.jsxs)("div",{className:"flex flex-col md:flex-row gap-3 xs:gap-4 bp-xs:gap-5 md:gap-8 p-3 xs:p-4 bp-xs:p-5 md:p-10",children:[(0,t.jsxs)("div",{className:"flex-1 flex flex-col justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"bg-gray-300 h-8 xs:h-10 bp-xs:h-12 md:h-14 lg:h-16 rounded-lg mb-3 xs:mb-4 bp-xs:mb-5 md:mb-6 w-3/4"}),(0,t.jsxs)("div",{className:"bg-pharos-orange/10 border-l-2 xs:border-l-3 md:border-l-4 border-pharos-orange px-2 xs:px-3 bp-xs:px-4 py-2 xs:py-2.5 bp-xs:py-3 mb-3 xs:mb-4 bp-xs:mb-5 md:mb-6 rounded",children:[(0,t.jsx)("div",{className:"bg-gray-300 h-4 xs:h-5 bp-xs:h-6 md:h-7 rounded w-32 mb-2"}),(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[(0,t.jsx)("div",{className:"bg-gray-300 size-5 xs:size-6 bp-xs:size-7 md:size-8 rounded-full"}),(0,t.jsx)("div",{className:"bg-gray-300 h-6 xs:h-7 bp-xs:h-8 md:h-9 rounded w-40"})]})]}),(0,t.jsxs)("div",{className:"mb-3 xs:mb-4 bp-xs:mb-5 md:mb-6",children:[(0,t.jsx)("div",{className:"bg-gray-300 h-4 xs:h-5 md:h-6 rounded w-36 mb-2 xs:mb-2.5 bp-xs:mb-3"}),(0,t.jsxs)("div",{className:"flex items-center space-x-1.5 xs:space-x-2 bp-xs:space-x-3 md:space-x-4",children:[(0,t.jsxs)("div",{className:"flex flex-col items-center",children:[(0,t.jsx)("div",{className:"bg-gray-300 border border-black xs:border-2 rounded-md xs:rounded-lg px-1.5 xs:px-2 bp-xs:px-3 md:px-4 py-1.5 xs:py-2 bp-xs:py-2.5 md:py-3 shadow-[2px_2px_0px_#000] xs:shadow-[3px_3px_0px_#000] md:shadow-[4px_4px_0px_#000] min-w-[45px] xs:min-w-[50px] bp-xs:min-w-[60px] md:min-w-[70px] h-12 xs:h-14 lg:h-16"}),(0,t.jsx)("div",{className:"bg-gray-300 h-3 xs:h-4 md:h-5 rounded w-10 mt-1 xs:mt-1.5 md:mt-2"})]}),(0,t.jsx)("div",{className:"text-lg xs:text-xl bp-xs:text-2xl md:text-3xl lg:text-4xl font-bold text-gray-300",children:":"}),(0,t.jsxs)("div",{className:"flex flex-col items-center",children:[(0,t.jsx)("div",{className:"bg-gray-300 border border-black xs:border-2 rounded-md xs:rounded-lg px-1.5 xs:px-2 bp-xs:px-3 md:px-4 py-1.5 xs:py-2 bp-xs:py-2.5 md:py-3 shadow-[2px_2px_0px_#000] xs:shadow-[3px_3px_0px_#000] md:shadow-[4px_4px_0px_#000] min-w-[45px] xs:min-w-[50px] bp-xs:min-w-[60px] md:min-w-[70px] h-12 xs:h-14 lg:h-16"}),(0,t.jsx)("div",{className:"bg-gray-300 h-3 xs:h-4 md:h-5 rounded w-12 mt-1 xs:mt-1.5 md:mt-2"})]}),(0,t.jsx)("div",{className:"text-lg xs:text-xl bp-xs:text-2xl md:text-3xl lg:text-4xl font-bold text-gray-300",children:":"}),(0,t.jsxs)("div",{className:"flex flex-col items-center",children:[(0,t.jsx)("div",{className:"bg-gray-300 border border-black xs:border-2 rounded-md xs:rounded-lg px-1.5 xs:px-2 bp-xs:px-3 md:px-4 py-1.5 xs:py-2 bp-xs:py-2.5 md:py-3 shadow-[2px_2px_0px_#000] xs:shadow-[3px_3px_0px_#000] md:shadow-[4px_4px_0px_#000] min-w-[45px] xs:min-w-[50px] bp-xs:min-w-[60px] md:min-w-[70px] h-12 xs:h-14 lg:h-16"}),(0,t.jsx)("div",{className:"bg-gray-300 h-3 xs:h-4 md:h-5 rounded w-10 mt-1 xs:mt-1.5 md:mt-2"})]})]})]})]}),(0,t.jsx)("div",{className:"bg-gray-300 h-12 xs:h-14 bp-xs:h-16 md:h-18 rounded-lg w-full md:w-48 mt-3 xs:mt-4 bp-xs:mt-5 md:mt-6"})]}),(0,t.jsxs)("div",{className:"relative w-full xs:max-w-[200px] bp-xs:max-w-[240px] md:w-[280px] lg:w-[320px] aspect-square h-fit shrink-0 rounded-lg xs:rounded-xl overflow-hidden border-2 xs:border-3 md:border-4 border-black bg-gray-200 shadow-[4px_4px_0px_rgba(0,0,0,0.8)] xs:shadow-[6px_6px_0px_rgba(0,0,0,0.8)] md:shadow-[8px_8px_0px_rgba(0,0,0,0.8)] mx-auto md:mx-0",children:[(0,t.jsxs)("div",{className:"absolute top-0 left-0 w-full h-5 xs:h-6 bp-xs:h-7 md:h-8 bg-gray-300 border-b border-black xs:border-b-2 flex items-center px-1.5 xs:px-2 space-x-1 xs:space-x-1.5 bp-xs:space-x-2",children:[(0,t.jsx)("span",{className:"w-2 h-2 xs:w-2.5 xs:h-2.5 bp-xs:w-3 bp-xs:h-3 bg-gray-400 rounded-full border border-gray-600"}),(0,t.jsx)("span",{className:"w-2 h-2 xs:w-2.5 xs:h-2.5 bp-xs:w-3 bp-xs:h-3 bg-gray-400 rounded-full border border-gray-600"}),(0,t.jsx)("span",{className:"w-2 h-2 xs:w-2.5 xs:h-2.5 bp-xs:w-3 bp-xs:h-3 bg-gray-400 rounded-full border border-gray-600"}),(0,t.jsx)("div",{className:"flex-1 bg-gray-400 border border-gray-500 rounded-sm xs:rounded-md h-3 xs:h-4 bp-xs:h-5 ml-2 xs:ml-3 bp-xs:ml-4"})]}),(0,t.jsx)("div",{className:"w-full h-full flex items-center justify-center pt-8 xs:pt-10 bp-xs:pt-12 md:pt-14",children:(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("div",{className:"text-4xl mb-2 text-gray-400",children:"ðï¸"}),(0,t.jsx)("p",{className:"text-sm font-rubik font-bold text-gray-400",children:"Loading..."})]})})]})]})})})}),(0,t.jsx)("div",{className:"flex justify-center mt-8 space-x-3",children:[1,2,3].map(e=>(0,t.jsx)("div",{className:"w-4 h-4 rounded-full border-2 border-black bg-gray-300 animate-pulse"},e))})]}),d="0xea82FE34F42bCAa9c74dD63843AAf0e5835aC22b",c=()=>{let[e,c]=(0,r.useState)(0),[p,m]=(0,r.useState)([]),[h,b]=(0,r.useState)(!0),[f,u]=(0,r.useState)(null),[g,w]=(0,r.useState)([]),v=async e=>{try{let t=-1;for(let r of[0,1,2,3,4,5,10,15,20,25,30,40,50,75,100,150,200,300,500,1e3])try{await e.entrants(r),t=r}catch(e){break}if(!(t>=0))return 0;{let r=t,s=2*t;
1for(;r<=s;){let t=Math.floor((r+s)/2);try{await e.entrants(t),r=t+1}catch(e){s=t-1}}return r}}catch(e){return console.warn("â ï¸ Could not get participant count"),0}},y=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1e4;for(let l=1;l<=t;l++)try{let t=new Promise((e,t)=>{setTimeout(()=>t(Error("Request timeout")),s)});return await Promise.race([e(),t])}catch(e){if(console.warn("â ï¸ RPC call attempt ".concat(l," failed")),l===t)throw e;await new Promise(e=>setTimeout(e,r*Math.pow(2,l-1)))}throw Error("Max retries exceeded")},j=async()=>{try{b(!0),u(null),console.log("ð Fetching live raffles from smart contracts...");let e=new n.ethers.JsonRpcProvider("https://sepolia-rollup.arbitrum.io/rpc",void 0,{staticNetwork:!0,batchMaxCount:1}),t=["function prizeDescription() external view returns (string memory)","function ticketPrice() external view returns (uint256)","function maxTickets() external view returns (uint256)","function totalTicketsSold() external view returns (uint256)","function endTime() external view returns (uint256)","function startTime() external view returns (uint256)","function isClosed() external view returns (bool)","function winner() external view returns (address)","function maxTicketsPerUser() external view returns (uint256)","function houseFeePercentage() external view returns (uint256)","function prizeAmount() external view returns (uint256)","function entrants(uint256) external view returns (address)"],r=new n.ethers.Contract(d,["function getRaffles() external view returns (address[] memory)"],e),s=[];try{let t=await y(()=>e.getCode(d));if("0x"===t){console.log("â ï¸ Factory contract not found at address:",d),m([]);return}s=await y(()=>r.getRaffles()),console.log("ð Found raffle addresses:",s.length)}catch(e){console.error("â Error fetching raffle addresses after retries:",e),u("Failed to connect to blockchain. Please check your network connection and try again."),m([]);return}let l=[];for(let r of s)try{let s=new n.ethers.Contract(r,t,e),[a,o,i,x,d,c,p,m,h,b]=await y(()=>Promise.all([s.prizeDescription(),s.ticketPrice(),s.maxTickets(),s.totalTicketsSold(),s.endTime(),s.isClosed(),s.winner(),s.maxTicketsPerUser(),s.houseFeePercentage(),s.prizeAmount()])),f=await v(s),u=Math.floor(Date.now()/1e3);!c&&d>u&&l.push({address:r,title:a,description:a,pricePerTicket:n.ethers.formatEther(o),totalTickets:Number(i),ticketsSold:Number(x),endTime:Number(d),startTime:Number(d)-604800,isClosed:c,winner:"0x0000000000000000000000000000000000000000"===p?"":p,maxTicketsPerUser:Number(m),houseFeePercentage:Number(h),prizeAmount:n.ethers.formatEther(b),participants:f})}catch(e){console.error("â Error fetching raffle ".concat(r," after retries:"),e)}try{console.log("ð¼ï¸ Fetching images from MongoDB...");let e=await fetch("/api/raffles");if(e.ok){let t=await e.json();if(t.success&&t.raffles){console.log("ð Found MongoDB raffles:",t.raffles.length);let e=new Map;t.raffles.forEach(t=>{t.contractAddress&&t.imageUrl&&e.set(t.contractAddress.toLowerCase(),t.imageUrl)});let r=l.map(t=>({...t,imageUrl:e.get(t.address.toLowerCase())||void 0}));m(r),console.log("â
Loaded live raffles with images:",r.length);return}}}catch(e){console.log("â ï¸ Could not fetch images from MongoDB:",e)}m(l),console.log("â
Loaded live raffles from smart contracts only:",l.length)}catch(t){console.error("Error fetching live raffles:",t);let e=t instanceof Error?t.message:"Failed to fetch live raffles";e.includes("Failed to fetch")||e.includes("timeout")||e.includes("network")?u("Unable to connect to the blockchain. This might be due to network issues or the blockchain being temporarily unavailable. Please try again later."):u(e),m([])}finally{b(!1)}};return((0,r.useEffect)(()=>{j()},[]),(0,r.useEffect)(()=>{let e=setInterval(()=>{p.length>0&&c(e=>(e+1)%p.length)},5e3),t=setInterval(()=>{p.length>0&&w(p.map(e=>(e=>{let t=e-Math.floor(Date.now()/1e3);if(t<=0)return{days:"00",hours:"00",minutes:"00",seconds:"00"};let r=Math.floor(t/86400),s=Math.floor(t%86400/3600),l=Math.floor(t%3600/60);return{days:r.toString().padStart(2,"0"),hours:s.toString().padStart(2,"0"),minutes:l.toString().padStart(2,"0"),seconds:(t%60).toString().padStart(2,"0")}})(e.endTime)))},1e3);return()=>{clearInterval(e),clearInterval(t)}},[p.length]),h)?(0,t.jsxs)("div",{className:"relative w-full overflow-hidden border-b-4 border-black bg-white py-14 xs:py-24",children:[(0,t.jsx)("h2",{className:"text-4xl xs:text-5xl xl:text-6xl font-rubik font-black uppercase text-center text-black mb-28 drop-shadow-[4px_4px_0px_rgba(0,0,0,0.2)]",children:"Live Raffles"}),(0,t.jsx)(x,{})]}):f?(0,t.jsxs)("div",{className:"relative w-full overflow-hidden border-b-4 border-black bg-white py-14 xs:py-24",children:[(0,t.jsx)("h2",{className:"text-4xl xs:text-5xl xl:text-6xl font-rubik font-black uppercase text-center text-black mb-28 drop-shadow-[4px_4px_0px_rgba(0,0,0,0.2)]",children:"Live Raffles"}),(0,t.jsx)("div",{className:"flex justify-center items-center px-3 xs:px-4 bp-xs:px-6 md:px-8 lg:px-12",children:(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center py-20 max-w-2xl text-center",children:[(0,t.jsx)("div",{className:"text-6xl mb-4",children:"â ï¸"}),(0,t.jsx)("span",{className:"text-xl font-rubik font-semibold text-red-600 mb-4",children:"Unable to Load Live Raffles"}),(0,t.jsx)("p",{className:"text-gray-600 text-center mb-6 leading-relaxed",children:f}),(0,t.jsxs)("div",{className:"flex flex-col sm:flex-row gap-4",children:[(0,t.jsx)(l.default,{color:"pharos-orange",shape:"medium-rounded",className:"px-6 py-3 font-black uppercase",onClick:j,children:"Try Again"}),(0,t.jsx)(l.default,{color:"pharos-yellow",shape:"medium-rounded",className:"px-6 py-3 font-black uppercase",onClick:()=>window.location.reload(),children:"Refresh Page"})]})]})})]}):0===p.length?(0,t.jsxs)("div",{className:"relative w-full overflow-hidden border-b-4 border-black bg-white py-14 xs:py-24",children:[(0,t.jsx)("h2",{className:"text-4xl xs:text-5xl xl:text-6xl font-rubik font-black uppercase text-center text-black mb-28 drop-shadow-[4px_4px_0px_rgba(0,0,0,0.2)]",children:"Live Raffles"}),(0,t.jsx)("div",{className:"flex justify-center items-center px-3 xs:px-4 bp-xs:px-6 md:px-8 lg:px-12",children:(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center py-20",children:[(0,t.jsx)("span",{className:"text-xl font-rubik font-semibold text-gray-600 mb-4",children:"No active raffles at the moment"}),(0,t.jsx)("p",{className:"text-gray-500 text-center",children:"Check back later for new raffles!"})]})})]}):(0,t.jsxs)("div",{className:"relative w-full overflow-hidden border-b-4 border-black bg-white py-14 xs:py-24",children:[(0,t.jsx)("h2",{className:"text-4xl xs:text-5xl xl:text-6xl font-rubik font-black uppercase text-center text-black mb-28 drop-shadow-[4px_4px_0px_rgba(0,0,0,0.2)]",children:"Live Raffles"}),(0,t.jsx)("div",{className:"flex justify-center items-center px-3 xs:px-4 bp-xs:px-6 md:px-8 lg:px-12",children:(0,t.jsx)("div",{className:"flex gap-4 transition-transform duration-500 ease-in-out w-[90%] lg:w-full",style:{transform:"translateX(-".concat(100*e,"%)")},children:p.map((e,r)=>{var n,x,d;return(0,t.jsx)("div",{className:"w-full shrink-0 flex justify-center",children:(0,t.jsx)("div",{className:"relative bg-gradient-to-br from-white to-gray-50 border-2 xs:border-3 md:border-4 border-black shadow-[4px_4px_0px_rgba(0,0,0,0.8)] xs:shadow-[6px_6px_0px_rgba(0,0,0,0.8)] md:shadow-[8px_8px_0px_rgba(0,0,0,0.8)] rounded-lg xs:rounded-xl overflow-hidden w-full max-w-6xl",children:(0,t.jsx)(a.default,{href:"/raffle/".concat(e.address),className:"block group",children:(0,t.jsxs)("div",{className:"flex flex-col md:flex-row gap-3 xs:gap-4 bp-xs:gap-5 md:gap-8 p-3 xs:p-4 bp-xs:p-5 md:p-10",children:[(0,t.jsxs)("div",{className:"flex-1 flex flex-col justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{className:"text-xl xs:text-2xl bp-xs:text-3xl md:text-4xl lg:text-5xl font-rubik font-black uppercase text-black mb-3 xs:mb-4 bp-xs:mb-5 md:mb-6 leading-tight drop-shadow-[2px_2px_0px_rgba(0,0,0,0.1)] md:drop-shadow-[3px_3px_0px_rgba(0,0,0,0.1)]",children:e.title}),(0,t.jsxs)("div",{className:"bg-pharos-orange/10 border-l-2 xs:border-l-3 md:border-l-4 border-pharos-orange px-2 xs:px-3 bp-xs:px-4 py-2 xs:py-2.5 bp-xs:py-3 mb-3 xs:mb-4 bp-xs:mb-5 md:mb-6 rounded",children:[(0,t.jsx)("p",{className:"text-xs xs:text-sm bp-xs:text-base md:text-lg font-semibold text-gray-700 mb-0.5 xs:mb-1 font-rubik",children:"Ticket Price"}),(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[(0,t.jsx)(s.default,{src:o.default,alt:"PYUSD",width:40,height:40,className:"size-5 xs:size-6 bp-xs:size-7 md:size-8 object-contain"}),(0,t.jsxs)("p",{className:"text-lg xs:text-xl bp-xs:text-2xl md:text-3xl font-black text-pharos-orange font-rubik",children:[e.pricePerTicket," PYUSD"]})]})]}),(0,t.jsxs)("div",{className:"mb-3 xs:mb-4 bp-xs:mb-5 md:mb-6",children:[(0,t.jsx)("p",{className:"text-xs bp-xs:text-sm md:text-base font-bold text-gray-600 uppercase mb-2 xs:mb-2.5 bp-xs:mb-3 tracking-wide font-rubik",children:"Time Remaining"}),(0,t.jsxs)("div",{className:"flex items-center space-x-1.5 xs:space-x-2 bp-xs:space-x-3 md:space-x-4 font-rubik",children:[(0,t.jsxs)("div",{className:"flex flex-col items-center",children:[(0,t.jsx)("div",{className:"bg-[#f3a20f] text-white border border-black xs:border-2 rounded-md xs:rounded-lg px-1.5 xs:px-2 bp-xs:px-3 md:px-4 py-1.5 xs:py-2 bp-xs:py-2.5 md:py-3 text-lg xs:text-xl bp-xs:text-2xl md:text-3xl lg:text-4xl font-bold shadow-[2px_2px_0px_#000] xs:shadow-[3px_3px_0px_#000] md:shadow-[4px_4px_0px_#000] min-w-[45px] xs:min-w-[50px] bp-xs:min-w-[60px] md:min-w-[70px] text-center",children:(null==(n=g[r])?void 0:n.days)||"00"}),(0,t.jsx)("span",{className:"text-[10px] xs:text-xs md:text-sm font-bold text-black uppercase mt-1 xs:mt-1.5 md:mt-2",children:"Days"})]}),(0,t.jsx)("div",{className:"text-lg xs:text-xl bp-xs:text-2xl md:text-3xl lg:text-4xl font-bold text-pharos-orange",children:":"}),(0,t.jsxs)("div",{className:"flex flex-col items-center",children:[(0,t.jsx)("div",{className:"bg-[#f3a20f] text-white border border-black xs:border-2 rounded-md xs:rounded-lg px-1.5 xs:px-2 bp-xs:px-3 md:px-4 py-1.5 xs:py-2 bp-xs:py-2.5 md:py-3 text-lg xs:text-xl bp-xs:text-2xl md:text-3xl lg:text-4xl font-bold shadow-[2px_2px_0px_#000] xs:shadow-[3px_3px_0px_#000] md:shadow-[4px_4px_0px_#000] min-w-[45px] xs:min-w-[50px] bp-xs:min-w-[60px] md:min-w-[70px] text-center",children:(null==(x=g[r])?void 0:x.hours)||"00"}),(0,t.jsx)("span",{className:"text-[10px] xs:text-xs md:text-sm font-bold text-black uppercase mt-1 xs:mt-1.5 md:mt-2",children:"Hours"})]}),(0,t.jsx)("div",{className:"text-lg xs:text-xl bp-xs:text-2xl md:text-3xl lg:text-4xl font-bold text-pharos-orange",children:":"}),(0,t.jsxs)("div",{className:"flex flex-col items-center",children:[(0,t.jsx)("div",{className:"bg-[#f3a20f] text-white border border-black xs:border-2 rounded-md xs:rounded-lg px-1.5 xs:px-2 bp-xs:px-3 md:px-4 py-1.5 xs:py-2 bp-xs:py-2.5 md:py-3 text-lg xs:text-xl bp-xs:text-2xl md:text-3xl lg:text-4xl font-bold shadow-[2px_2px_0px_#000] xs:shadow-[3px_3px_0px_#000] md:shadow-[4px_4px_0px_#000] min-w-[45px] xs:min-w-[50px] bp-xs:min-w-[60px] md:min-w-[70px] text-center",children:(null==(d=g[r])?void 0:d.minutes)||"00"}),(0,t.jsx)("span",{className:"text-[10px] xs:text-xs md:text-sm font-bold text-black uppercase mt-1 xs:mt-1.5 md:mt-2",children:"Mins"})]})]})]})]}),(0,t.jsxs)(l.default,{color:"pharos-orange",shape:"medium-rounded",className:"w-full flex gap-2 items-center justify-center md:w-auto text-sm xs:text-base bp-xs:text-lg md:text-xl py-2.5 xs:py-3 bp-xs:py-3.5 md:py-4 px-4 xs:px-5 bp-xs:px-6 md:px-8 mt-3 xs:mt-4 bp-xs:mt-5 md:mt-6 font-black uppercase",onClick:e=>{e.stopPropagation()},children:["View Raffle ",(0,t.jsx)(i.FaArrowRight,{})]})]}),(0,t.jsxs)("div",{className:"relative w-full xs:max-w-[200px] bp-xs:max-w-[240px] md:w-[280px] lg:w-[320px] aspect-square h-fit shrink-0 rounded-lg xs:rounded-xl overflow-hidden border-2 xs:border-3 md:border-4 border-black bg-white shadow-[4px_4px_0px_rgba(0,0,0,0.8)] xs:shadow-[6px_6px_0px_rgba(0,0,0,0.8)] md:shadow-[8px_8px_0px_rgba(0,0,0,0.8)] mx-auto md:mx-0",children:[e.imageUrl?(0,t.jsx)(s.default,{src:e.imageUrl,alt:"Raffle ".concat(e.title),fill:!0,className:"transition-transform duration-300 group-hover:scale-110 group-hover:rotate-2 roun
1ded-lg object-cover"}):(0,t.jsx)("div",{className:"w-full h-full flex items-center justify-center bg-gradient-to-br from-pharos-orange/20 to-pharos-yellow/20",children:(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("div",{className:"text-4xl mb-2",children:"ðï¸"}),(0,t.jsx)("p",{className:"text-sm font-rubik font-bold text-gray-700",children:"No Image"})]})}),(0,t.jsxs)("div",{className:"absolute top-0 left-0 w-full h-5 xs:h-6 bp-xs:h-7 md:h-8 bg-gray-200 border-b border-black xs:border-b-2 flex items-center px-1.5 xs:px-2 space-x-1 xs:space-x-1.5 bp-xs:space-x-2",children:[(0,t.jsx)("span",{className:"w-2 h-2 xs:w-2.5 xs:h-2.5 bp-xs:w-3 bp-xs:h-3 bg-red-500 rounded-full border border-gray-600"}),(0,t.jsx)("span",{className:"w-2 h-2 xs:w-2.5 xs:h-2.5 bp-xs:w-3 bp-xs:h-3 bg-yellow-500 rounded-full border border-gray-600"}),(0,t.jsx)("span",{className:"w-2 h-2 xs:w-2.5 xs:h-2.5 bp-xs:w-3 bp-xs:h-3 bg-green-500 rounded-full border border-gray-600"}),(0,t.jsx)("div",{className:"flex-1 bg-white border border-gray-400 rounded-sm xs:rounded-md h-3 xs:h-4 bp-xs:h-5 ml-2 xs:ml-3 bp-xs:ml-4"})]})]})]})})})},e.address)})})}),(0,t.jsx)("div",{className:"flex justify-center mt-8 space-x-3",children:p.map((r,s)=>(0,t.jsx)("button",{className:"w-4 h-4 rounded-full border-2 border-black transition-all duration-300\n ".concat(s===e?"bg-pharos-orange shadow-[2px_2px_0px_#000]":"bg-gray-300 hover:bg-pharos-yellow"),onClick:()=>{c(s)},"aria-label":"Go to slide ".concat(s+1)},s))})]})}}]);
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.