{"version":3,"sources":["common/seo.jsx","home/apis.js","common/loader.jsx","common/viewWinnerModal.jsx","sweepstakes/components/layouts/enterSweep.jsx","sweepstakes/components/layouts/detailsModalCard.jsx","sweepstakes/components/modals/howItWorks.jsx","sweepstakes/components/common/leaderboardBoxCard.jsx","sweepstakes/components/common/leaderboardWaitingCard.jsx","sweepstakes/components/layouts/leaderboard.jsx","sweepstakes/components/layouts/mainComponent.jsx","sweepstakes/components/layouts/accordionItems/prizeCardAccordionBody.jsx","sweepstakes/components/layouts/accordionItems/prizeCardAccordionHead.jsx","sweepstakes/components/layouts/accordionItems/accordionItem.jsx","sweepstakes/components/layouts/sidebar.jsx","sweepstakes/sweepsDetails.jsx"],"names":["SEO","_ref","_window","_window$location","title","description","image","keywords","ogTitle","ogDescription","ogUrl","ogImageAlt","twitterCard","twitterTitle","twitterDescription","_jsxs","Helmet","children","_jsx","name","content","property","concat","window","location","origin","loadContests","async","headers","process","response","axios","method","params","url","jwt","data","e","loadGameCounts","id","fetchNFT","tokenId","address","callback","then","nftResponse","catch","err","subscribeNewsLetter","email","context","React","Component","withRouter","connect","state","getUser","dispatch","contestEntry","loadProfile","winner","showModal","toggleModal","themeMode","getCookie","_Fragment","Modal","className","dialogClassName","tabindex","userIcon","failedIcon","infoIcon","trophyIcon","completeIcon","UpperBox","_ref2","_instance$winner5","_instance$winner5$ima","_instance$winner6","_instance$winner7","_instance$winner8","_instance$winner9","_instance$userEntry$t6","_instance$userEntry7","_instance$totalEntryT2","instance","status","counts","src","alt","SWEEP_INSTANCES_TEXTS","heading2","subText2","small","userName","sweepsStakesEntries","sweepsStakesWon","userEntry","totalTickets","totalEntryTickets","getSweepStakes","enterSweep","loadSweepstakesLeaderBoard","loadUpdatedInstanceInfo","slug","loadAvailableTickets","togglePopupRedux","payload","togglePurchaseCoinsRedux","toggleConnectWalletRedux","_instance$userEntry$t2","_instance$userEntry3","_instance$userEntry$t3","_instance$userEntry4","_instance$userEntry$t4","_instance$userEntry5","_instance$userEntry$t5","_instance$userEntry6","_instance$totalEntryT","_instance$winner2","_instance$winner3","_instance$winner4","_SWEEP_INSTANCES_TEXT","_SWEEP_INSTANCES_TEXT2","_SWEEP_INSTANCES_TEXT3","_SWEEP_INSTANCES_TEXT4","tickets","setTickets","useState","enterSweepLoading","setEnterSweepLoading","tab","setTab","error","setError","setStatus","setCounts","navigate","useNavigate","sliderStyles","trackStyle","background","height","handleStyle","border","opacity","width","marginTop","boxShadow","railStyle","backgroundColor","disabledStyle","top","availableTickets","profile","availableTicketsLoading","connectedWallet","instanceDetails","loadingUpdatedInfo","useEffect","_instance$userEntry","_instance$userEntry$e","_instance$winner","entryRequests","length","res","_profile$userProfile","_profile$userProfile2","pusher","Pusher","cluster","channel","userProfile","subscribe","eventName","bind","updateData","_profile$userProfile3","unbind","unsubscribe","disconnect","isLoggedIn","localStorage","getItem","sliderDisabled","maxTicketsPerUser","popupErrors","maxTickets","Math","min","firstBlockTickets","floor","secondBlockTickets","getErrors","_instance$userEntry$t","_instance$userEntry2","errorMessage","medium","large","original","prizeValueUSD","toLocaleString","Timer","initialTime","moment","timeExpired","diff","direction","startImmediately","control","Days","Hours","Minutes","Seconds","Skeleton","winningTicketNumber","Slider","max","step","value","onChange","disabled","type","onClick","checked","for","OverlayTrigger","placement","overlay","Popover","Body","preventDefault","_getUser$profile","_getUser$profile$conn","payLoad","instanceId","walletAddress","_hsq","push","properties","sweepRes","mixpanel","track","prize","prizeTitle","_sweepRes$data","message","handleSweepEntry","_","isEmpty","subText","heading","DetailsModalCard","subTitle","icon","slides","nav1","setNav1","nav2","setNav2","dataLayer","prepareData","event","section","advanmcement","show","onHide","_createElement","ref","slider","slidesToShow","slidesToScroll","arrows","fade","dots","adaptiveHeight","asNavFor","key","map","slide","_slide$image","index","href","slickNext","LeaderboardCard","_player$user","_player$user2","_player$user3","player","ended","tie","rank","setShowModal","user","getNumberWithOrdinal","firstTicket","lastTicket","ViewWinnerModal","LeaderboardWaitingCard","Leaderboard","_fewPlayers","_fewPlayers2","_fewPlayers3","_watingPlayers","loading","stats","entries","take","fewPlayers","watingPlayers","sort","a","b","shuffleWinner","arr","keyToMatch","findIndex","item","_item$user","itemToMove","splice","unshift","Array","fill","borderRadius","_fewPlayers4","_fewPlayers$index","_fewPlayers5","_fewPlayers$index2","_fewPlayers6","_fewPlayers$index3","_fewPlayers7","_getSweepStakes$insta","_getSweepStakes$insta2","_instance$howItWorksT","showHowItWorksModal","setHowItWorksModal","lbRes","toggleHowItWorksModal","prev","style","marginBottom","EnterSweep","Accordion","Item","sweepstakesLeaderBoard","leaderBoardLoading","HowItWorksModal","howItWorksTemplate","steps","timeLeft","drawingStatus","formatDate","activatedAt","AccordionItem","target","eventKey","headChildren","spanText","classes","toggleOff","Fragment","Button","Collapse","PrizeCardAccordionHead","PrizeCardAccordionBody","defaultActiveKey","fontSize","color","lineHeight","textDecoration","textAlign","SweepstakesDetails","constructor","arguments","createRef","componentDidMount","scrollTo","innerWidth","this","props","toggleDiscordModalRedux","router","setState","loadInstanceDetails","instanceRes","render","_instanceDetails$imag","showDiscordModal","Header","Sidebar","MainComponent","DiscordChatModal"],"mappings":"kHAAA,gCAmCeA,UAhCHC,IAYL,IAADC,EAAAC,EAAA,IAZO,MACXC,EAAK,YACLC,EAAW,MACXC,EAAK,SACLC,EAAQ,QACRC,EAAO,cACPC,EAAa,MACbC,EAAK,WACLC,EAAU,YACVC,EAAW,aACXC,EAAY,mBACZC,GACDb,EACC,OACEc,eAACC,IAAM,CAAAC,SAAA,CACLC,cAAA,SAAAD,SAAQb,IACRc,cAAA,QAAMC,KAAK,cAAcC,QAASf,IACjCC,GAASY,cAAA,QAAMG,SAAS,WAAWD,QAASd,EAAO,oBAAkB,SACrEC,GAAYW,cAAA,QAAMC,KAAK,WAAWC,QAASb,IAE3CI,GAAcO,cAAA,QAAMG,SAAS,eAAeD,QAAST,IACrDH,GAAWU,cAAA,QAAMG,SAAS,WAAWD,QAASZ,IAC9CC,GAAiBS,cAAA,QAAMG,SAA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Ae,IAAfA,OAAe,EAAfA,EAAiB1J,MAAK,mCAEnFW,eAAA,OACEoD,UAAS,gHAAA7C,QACNgK,GAAc,gCAA+B,KAAAhK,OAC5CsW,KAAKC,MAAMrU,QAAQ6U,kBAAoB,gBAAe,cAC1DpX,SAAA,CAGAC,cAACoX,IAAM,CAACvU,UAAU,OAAOgK,KAAK,cAC9B7M,cAAA,OAAKiD,UAAU,0CAAyClD,SACtDC,cAAA,OAAKiD,UAAU,kBAAiBlD,SAC9BC,cAAA,OAAKiD,UAAU,MAAKlD,SAClBC,cAAA,OAAKiD,UAAU,YAAWlD,SACxBF,eAAA,OAAKoD,UAAU,sCAAqClD,SAAA,CAClDC,cAACqX,GAAO,CAACjT,SAAUwE,IACnB5I,cAACsX,EAAa,CAAClT,SAAUwE,EAAiBmJ,QAAS2E,KAAKC,MAAMxR,eAAe4M,UAC5E2E,KAAKC,MAAMrU,QAAQ6U,kBAAoB9W,OAAOoW,YAAc,SAC3DzW,cAAA,OACEiD,UAAU,eACV6J,QAASA,KACP4J,KAAKC,MAAMC,yBAAwB,EAAM,IAI9CF,KAAKC,MAAMrU,QAAQ6U,kBAClBnX,cAAA,OAAKiD,UAAU,uFAAsFlD,SACnGC,cAACuX,UAAgB,sBAWvC,EAWapV,sBAAWC,aAJDC,IAAK,CAC5B8C,eAAgBA,YAAe9C,GAC/BC,QAASA,YAAQD,OANSE,IAAQ,CAClCwU,oBAAqBA,CAACxR,EAAM9D,IAAac,EAASwU,YAAoBxR,EAAM9D,IAC5EmV,wBAA0B1V,GAASqB,EAASqU,aAAwB1V,OAM5CkB,CAA6C+T,I","file":"static/js/25.dce3cd94.chunk.js","sourcesContent":["import React from \"react\";\r\nimport { Helmet } from \"react-helmet\";\r\n\r\nconst SEO = ({\r\n title,\r\n description,\r\n image,\r\n keywords,\r\n ogTitle,\r\n ogDescription,\r\n ogUrl,\r\n ogImageAlt,\r\n twitterCard,\r\n twitterTitle,\r\n twitterDescription,\r\n}) => {\r\n return (\r\n \r\n {title}\r\n \r\n {image && }\r\n {keywords && }\r\n\r\n {ogImageAlt && }\r\n {ogTitle && }\r\n {ogDescription && }\r\n {ogUrl && }\r\n \r\n {twitterCard && }\r\n {twitterTitle && }\r\n {twitterDescription && }\r\n \r\n );\r\n};\r\n\r\nexport default SEO;\r\n","import axios from \"axios\";\nimport jwt from \"jwt-decode\";\n\nexport const loadContests = async (params) => {\n try {\n const headers = {\n \"X-API-KEY\": process.env.REACT_APP_APIKEY,\n };\n const response = await axios({\n method: \"get\",\n params,\n headers,\n url: `${process.env.REACT_APP_APIURL}contest/`,\n });\n return jwt(response.data).data;\n } catch (e) {\n throw e;\n }\n};\nexport const loadGames = async (params) => {\n try {\n const headers = {\n \"X-API-KEY\": process.env.REACT_APP_APIKEY,\n };\n const response = await axios({\n method: \"get\",\n params,\n headers,\n url: `${process.env.REACT_APP_APIURL}game/`,\n });\n return response.data;\n } catch (e) {\n throw e;\n }\n};\nexport const loadActiveContests = async (params) => {\n try {\n const headers = {\n \"X-API-KEY\": process.env.REACT_APP_APIKEY,\n Authorization: localStorage.getItem(\"x-auth-token\"),\n };\n const response = await axios({\n method: \"get\",\n params,\n headers,\n url: `${process.env.REACT_APP_APIURL}game/active`,\n });\n return response.data;\n } catch (e) {\n throw e;\n }\n};\nexport const loadGameCounts = async (id) => {\n try {\n const headers = {\n \"X-API-KEY\": process.env.REACT_APP_APIKEY,\n };\n const response = await axios({\n method: \"get\",\n headers,\n url: `${process.env.REACT_APP_APIURL}gameCount/${id}`,\n });\n return response.data;\n } catch (e) {\n throw e;\n }\n};\nexport const loadContestDetails = async (slug) => {\n try {\n const headers = {\n \"X-API-KEY\": process.env.REACT_APP_APIKEY,\n };\n const response = await axios({\n method: \"get\",\n headers,\n url: `${process.env.REACT_APP_APIURL}contest/${slug}`,\n });\n return response;\n } catch (e) {\n return e.response;\n throw e;\n }\n};\nexport const loadSlides = async () => {\n try {\n const headers = {\n \"X-API-KEY\": process.env.REACT_APP_APIKEY,\n };\n const response = await axios({\n method: \"get\",\n headers,\n url: `${process.env.REACT_APP_APIURL}slider/`,\n });\n return response.data.data;\n } catch (e) {\n throw e;\n }\n};\nexport const fetchNFT = (tokenId, address, callback) => {\n axios({\n method: \"get\",\n url: `https://api.opensea.io/api/v1/asset/${address}/${tokenId}`,\n headers: { \"X-API-KEY\": process.env.REACT_APP_OPEN_SEA_API_KEY },\n })\n .then((nftResponse) => {\n callback(nftResponse);\n })\n .catch((err) => {\n callback(err.response.data);\n });\n};\nexport const subscribeNewsLetter = async (email, context) => {\n try {\n const headers = {\n \"X-API-KEY\": process.env.REACT_APP_APIKEY,\n };\n const response = await axios({\n method: \"post\",\n headers,\n url: `${process.env.REACT_APP_APIURL}newsletter/subscribe/${email}`,\n data: { context },\n });\n return response;\n } catch (e) {\n throw e;\n }\n};\n","import React from \"react\";\n// import LoadingBar from \"react-top-loading-bar\";\nclass Loader extends React.Component {\n render() {\n return (\n <>\n // \n );\n }\n}\n\nexport default Loader;\n","import React from \"react\";\nimport { Modal } from \"react-bootstrap\";\nimport { getCookie } from \"../utils/cookiesUtilities\";\nimport { connect } from \"react-redux\";\n\nimport { contestEntry, getUser, loadProfile } from \"../store/user\";\nimport { withRouter } from \"../utils/withRouter\";\n\nconst ViewWinner = ({ winner, showModal, toggleModal }) => {\n const themeMode = getCookie(\"themeMode\");\n return (\n <>\n \n {/* {winner && (\n
\n
\n {\" \"}\n
\n \"\"\n
\n
\n
Player Profile
\n
\n {winner.image ? (\n \"\"\n ) : (\n \"\"\n )}\n
\n\n {winner.userName &&
{winner.userName}
}\n\n {winner.description &&
{winner.description}
}\n
\n {winner.twitter && (\n {\n e.preventDefault();\n await setLink(`https://twitter.com/${winner.twitter}`);\n setShowFullModal(true);\n }}\n >\n \n {winner.twitter}\n \n )}\n {winner.instagram && (\n {\n e.preventDefault();\n await setLink(`https://instagram.com/${winner.instagram}`);\n setShowFullModal(true);\n }}\n target=\"_blank\"\n className=\"np-social-links-box d-flex align-items-center ellipsis\"\n rel=\"noreferrer\"\n >\n {winner.instagram}\n \n )}\n {winner.website && (\n {\n e.preventDefault();\n navigator.clipboard.writeText(winner.website);\n toast();\n }}\n rel=\"noreferrer\"\n >\n Discord\n \n )}\n
\n
\n
\n {loading || !counts ? : counts.played}\n

{loading || !counts ? : \"GAMES PLAYED\"}

\n
\n
\n {loading || !counts ? : counts.ticketsWon}\n

{loading || !counts ? : \"TICKETS WON\"}

\n
\n
\n {loading || !counts ? : counts.sweepsStakesEntries}\n

{loading || !counts ? : \"SWEEPSTAKES\"}

\n
\n
\n {loading || !counts ? : counts.sweepsStakesWon}\n

{loading || !counts ? : \"SWEEPSTAKES WON\"}

\n
\n
\n
\n
\n
\n )} */}\n \n\n {/* {\n setShowFullModal(!showFullModal);\n }}\n link={link}\n /> */}\n \n );\n};\n\nconst mapDispatchToProps = (dispatch) => ({\n contestEntry: (data, callback) => dispatch(contestEntry(data, callback)),\n loadProfile: () => dispatch(loadProfile()),\n});\nconst mapStateToProps = (state) => ({\n getUser: getUser(state),\n});\nexport default withRouter(connect(mapStateToProps, mapDispatchToProps)(ViewWinner));\n","import React, { useEffect, useState } from \"react\";\r\nimport Slider from \"rc-slider\";\r\nimport { connect } from \"react-redux\";\r\nimport { getSweepStakes, enterSweep, loadSweepstakesLeaderBoard, loadUpdatedInstanceInfo } from \"store/sweepstakes\";\r\nimport { loadGameCounts } from \"home/apis\";\r\nimport {\r\n getUser,\r\n loadAvailableTickets,\r\n togglePopupRedux,\r\n togglePurchaseCoinsRedux,\r\n toggleConnectWalletRedux,\r\n} from \"store/user\";\r\nimport { withRouter } from \"utils/withRouter\";\r\nimport moment from \"moment\";\r\nimport Timer from \"react-compound-timer\";\r\nimport { SWEEP_INSTANCES_TEXTS } from \"utils/misc\";\r\nimport Pusher from \"pusher-js\";\r\nimport _ from \"lodash\";\r\nimport { OverlayTrigger, Popover } from \"react-bootstrap\";\r\n\r\nimport Skeleton from \"react-loading-skeleton\";\r\nimport { useNavigate } from \"react-router-dom\";\r\nimport mixpanel from \"mixpanel-browser\";\r\n\r\n// Images\r\nconst userIcon = process.env.REACT_APP_WEBSITE_ASSETS_URL + \"images/user.png\";\r\nconst loadingIcon = process.env.REACT_APP_WEBSITE_ASSETS_URL + \"images/loading-icon.svg\";\r\nconst processingIcon = process.env.REACT_APP_WEBSITE_ASSETS_URL + \"images/w-refresh-icon.svg\";\r\nconst failedIcon = process.env.REACT_APP_WEBSITE_ASSETS_URL + \"images/info-1-x10.svg\";\r\nconst infoIcon = process.env.REACT_APP_WEBSITE_ASSETS_URL + \"images/info-16x16.svg\";\r\nconst accordionIcon = process.env.REACT_APP_WEBSITE_ASSETS_URL + \"images/page-collapse-down-icon.svg\";\r\nconst ticketIcon = process.env.REACT_APP_WEBSITE_ASSETS_URL + \"images/subtract-blue.svg\";\r\nconst ticketBGIcon = process.env.REACT_APP_WEBSITE_ASSETS_URL + \"images/sweepstakes.png\";\r\nconst ticketBGIconWinner = process.env.REACT_APP_WEBSITE_ASSETS_URL + \"images/sweepstakes-1.png\";\r\nconst trophyIcon = process.env.REACT_APP_WEBSITE_ASSETS_URL + \"images/winner-trophy-icon.svg\";\r\nconst waitIcon = process.env.REACT_APP_WEBSITE_ASSETS_URL + \"images/clock__1.svg\";\r\nconst completeIcon = process.env.REACT_APP_WEBSITE_ASSETS_URL + \"images/checked-16x16.svg\";\r\nconst greenStarIcon = process.env.REACT_APP_WEBSITE_ASSETS_URL + \"images/3-clock_1.png\";\r\n\r\nfunction EnterSweep({\r\n getSweepStakes,\r\n enterSweep,\r\n getUser,\r\n loadSweepstakesLeaderBoard,\r\n loadUpdatedInstanceInfo,\r\n loadAvailableTickets,\r\n togglePopupRedux,\r\n togglePurchaseCoinsRedux,\r\n toggleConnectWalletRedux,\r\n}) {\r\n // Component States\r\n const [tickets, setTickets] = useState(1);\r\n const [enterSweepLoading, setEnterSweepLoading] = useState(false);\r\n const [tab, setTab] = useState(1);\r\n const [error, setError] = useState(\"\");\r\n const [status, setStatus] = useState(1);\r\n const [counts, setCounts] = useState(null);\r\n\r\n const navigate = useNavigate();\r\n\r\n // Tickets slider stylings\r\n const sliderStyles = {\r\n trackStyle: {\r\n background: \"linear-gradient(4deg, #3da50c 100%, #62e724 8.33%)\",\r\n height: 10,\r\n },\r\n handleStyle: {\r\n border: \"2px solid #fff\",\r\n opacity: 1,\r\n height: 25,\r\n width: 25,\r\n marginTop: -9,\r\n background: \"linear-gradient(4deg, #3da50c 100%, #62e724 8.33%)\",\r\n boxShadow: \"0px 3.2963204383850098px 3.2963204383850098px 0px rgba(0, 0, 0, 0.50)\",\r\n },\r\n railStyle: { backgroundColor: \"#3D3D3D\", height: 10 },\r\n };\r\n\r\n // Disabled Tickets slider stylings\r\n const disabledStyle = {\r\n handleStyle: {\r\n ...sliderStyles.handleStyle,\r\n background: \"#979797\",\r\n },\r\n trackStyle: {\r\n background: \"#979797\",\r\n height: \"100%\",\r\n top: 0,\r\n },\r\n railStyle: {\r\n backgroundColor: \"#3D3D3D\",\r\n height: 14,\r\n top: 0,\r\n width: \"100.3%\",\r\n },\r\n };\r\n\r\n // States from redux store\r\n const { availableTickets, profile, availableTicketsLoading } = getUser;\r\n const { connectedWallet } = profile;\r\n const instance = getSweepStakes?.instanceDetails;\r\n const loadingUpdatedInfo = getSweepStakes?.loadingUpdatedInfo;\r\n\r\n // Change states on startup\r\n useEffect(() => {\r\n if (instance && instance?.userEntry?.entryRequests?.length > 0) setTab(3);\r\n if (instance) {\r\n if (instance.status > 1) setTab(3);\r\n setStatus(instance.status);\r\n }\r\n if (instance?.winner) {\r\n loadGameCounts(instance?.winner?.id).then((res) => {\r\n setCounts(res);\r\n });\r\n }\r\n }, [instance]);\r\n\r\n // Pusher code for showing status badges\r\n useEffect(() => {\r\n const pusher = new Pusher(process.env.REACT_APP_PUSHER_KEY, {\r\n cluster: process.env.REACT_APP_PUSHER_CLUSTER,\r\n });\r\n // Subscribe to the pusher channel\r\n const channel = profile?.userProfile?.id && pusher?.subscribe(profile?.userProfile?.id);\r\n\r\n // Listen to pusher event\r\n const eventName = \"entry-\" + instance?.id;\r\n channel?.bind(eventName, function (data) {\r\n if (data?.status === \"success\") {\r\n setTab(4);\r\n setTickets(1);\r\n updateData();\r\n } else setTab(2);\r\n });\r\n return () => {\r\n // Unsubscribe and disconnect from Pusher when component unmounts\r\n channel?.unbind(eventName);\r\n pusher?.unsubscribe(profile?.userProfile?.id);\r\n pusher?.disconnect();\r\n };\r\n }, [profile, profile?.userProfile]);\r\n\r\n const updateData = () => {\r\n loadUpdatedInstanceInfo(instance?.slug, () => {});\r\n loadSweepstakesLeaderBoard(instance?.id, () => {});\r\n loadAvailableTickets(() => {});\r\n };\r\n\r\n // Handling Sweeps Entry Method\r\n const handleSweepEntry = (e) => {\r\n if (e) e.preventDefault();\r\n setEnterSweepLoading(true);\r\n const payLoad = {\r\n instanceId: instance?.id,\r\n tickets,\r\n walletAddress: getUser?.profile?.connectedWallet?.walletAddress, // Get wallet address from user store\r\n };\r\n let _hsq = (window._hsq = window._hsq || []);\r\n _hsq.push([\r\n \"trackCustomBehavioralEvent\",\r\n {\r\n name: process.env.REACT_APP_HUBSPOT_SWEEPSTAKES_ENTRY_EVENT,\r\n properties: {},\r\n },\r\n ]);\r\n enterSweep(payLoad, (sweepRes) => {\r\n setEnterSweepLoading(false);\r\n if (sweepRes?.status === 402) {\r\n togglePopupRedux(true);\r\n } else if (sweepRes?.status === 200) {\r\n setTab(3);\r\n if (process.env.REACT_APP_MIXPANEL == 1)\r\n mixpanel?.track(\"Enter sweepstakes_successful \", {\r\n prize: instance?.prizeTitle,\r\n \"Ticket amount\": tickets,\r\n });\r\n } else {\r\n setTab(2);\r\n if (process.env.REACT_APP_MIXPANEL == 1) mixpanel?.track(\"Enter sweepstakes_error/failure\");\r\n setError(sweepRes?.data?.message);\r\n }\r\n });\r\n };\r\n const getErrors = () => {\r\n if (!connectedWallet) return \"\";\r\n else if (availableTickets === 0) {\r\n const message = \"You don't have enough tickets in your account. Play games to win tickets.\";\r\n return message;\r\n } else if (instance?.maxTicketsPerUser - (instance?.userEntry?.totalTickets ?? 0) <= 0) {\r\n const message = \"You have already entered the maximum permissible number of tickets in this sweepstakes.\";\r\n return message;\r\n } else return \"\";\r\n };\r\n const isLoggedIn = localStorage.getItem(\"x-auth-token\");\r\n const sliderDisabled =\r\n !isLoggedIn ||\r\n tab > 1 ||\r\n (connectedWallet && availableTickets === 0) ||\r\n instance?.maxTicketsPerUser - (instance?.userEntry?.totalTickets ?? 0) <= 0;\r\n let popupErrors = \"\";\r\n const maxTickets = Math.min(availableTickets, instance?.maxTicketsPerUser - (instance?.userEntry?.totalTickets ?? 0));\r\n const firstBlockTickets = Math.floor(maxTickets * 0.25);\r\n const secondBlockTickets = Math.floor(maxTickets * 0.5);\r\n const thirdBlockTickets = maxTickets;\r\n\r\n if (sliderDisabled) popupErrors = getErrors();\r\n\r\n const errorMessage =\r\n tab === 1\r\n ? !isLoggedIn\r\n ? 1\r\n : availableTickets === 0\r\n ? 2\r\n : instance?.maxTicketsPerUser - (instance?.userEntry?.totalTickets ?? 0) <= 0\r\n ? 3\r\n : 0\r\n : 0;\r\n return (\r\n <>\r\n
\r\n
\r\n
\r\n
\r\n \r\n \"\"\r\n
\r\n
\r\n
\r\n {instance?.image && (\r\n \r\n )}\r\n
\r\n
\r\n
{instance?.title}
\r\n

${instance?.prizeValueUSD.toLocaleString()}

\r\n
\r\n
\r\n
\r\n
    \r\n \r\n {(control) => {\r\n return (\r\n <>\r\n
  • \r\n
    \r\n
    \r\n \r\n
    \r\n

    DAYs

    \r\n
    \r\n
  • \r\n
  • \r\n
    \r\n
    \r\n \r\n
    \r\n

    HR

    \r\n
    \r\n
  • \r\n
  • \r\n
    \r\n
    \r\n {\" \"}\r\n
    \r\n

    MIN

    \r\n
    \r\n
  • \r\n
  • \r\n
    \r\n
    \r\n {\" \"}\r\n
    \r\n

    SEC

    \r\n
    \r\n
  • \r\n \r\n );\r\n }}\r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n {instance?.status === 1 ? (\r\n
\r\n
\r\n \"\"\r\n
\r\n
\r\n {tickets}\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \"\"\r\n
\r\n
Enter for a Chance to Win!
\r\n
\r\n
\r\n {loadingUpdatedInfo ? (\r\n \r\n ) : (\r\n <>\r\n
\r\n
\r\n
{instance?.userEntry?.totalTickets ?? 0}
\r\n

Your Tickets

\r\n
\r\n
\r\n
\r\n
\r\n
{instance?.maxTicketsPerUser}
\r\n

Max Tickets

\r\n
\r\n
\r\n
\r\n
\r\n
{instance?.totalEntryTickets ?? 0}
\r\n

Total Tickets

\r\n
\r\n
\r\n \r\n )}\r\n
\r\n
\r\n
\r\n ) : (instance?.status === 6 || instance?.status === 7 || instance?.status === 3) && instance?.winner ? (\r\n
\r\n
\r\n \"\"\r\n
\r\n
\r\n #{instance?.winningTicketNumber}\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \"\"\r\n
\r\n
Prize Awarded
\r\n
\r\n
The chosen one is here!
\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
{instance?.winner?.userName}
\r\n
{counts?.sweepsStakesEntries} Games Played
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
{counts?.sweepsStakesWon}
\r\n

Sweepstakes Won

\r\n
\r\n
\r\n
\r\n
\r\n
\r\n ) : (\r\n \r\n )}\r\n
\r\n {instance?.status === 1 && (\r\n
\r\n
\r\n
\r\n {/* Ticket Slider */}\r\n {\r\n setTickets(e);\r\n }}\r\n trackStyle={!sliderDisabled ? sliderStyles.trackStyle : disabledStyle.trackStyle}\r\n handleStyle={!sliderDisabled ? sliderStyles.handleStyle : disabledStyle.handleStyle}\r\n railStyle={!sliderDisabled ? sliderStyles.railStyle : disabledStyle.railStyle}\r\n disabled={sliderDisabled}\r\n id=\"customRange\"\r\n key=\"enter-sweep-slider\"\r\n />\r\n
\r\n
\r\n
\r\n \"range\r\n
\r\n
\r\n {tickets}\r\n
\r\n
\r\n
\r\n
\r\n )}\r\n\r\n {availableTicketsLoading ? (\r\n <>\r\n ) : errorMessage ? (\r\n
\r\n
\r\n
\r\n
\r\n \"\"\r\n
\r\n
\r\n

\r\n {errorMessage === 1\r\n ? \"Not Logged In\"\r\n : errorMessage === 2\r\n ? \"TICKET BALANCE LOW\"\r\n : \"MAX TICKETS ENTERED\"}\r\n

\r\n

\r\n {errorMessage === 1\r\n ? \"Please login to enter\"\r\n : errorMessage === 2\r\n ? \"YOU NEED MORE TICKETS TO ENTER\"\r\n : \"WAITING FOR SWEEPSTAKES TO CLOSE\"}\r\n

\r\n
\r\n
{\" \"}\r\n {errorMessage === 2 && (\r\n
\r\n {\r\n navigate(\"/contests\");\r\n }}\r\n >\r\n WIN TICKETS\r\n \r\n
\r\n )}\r\n
\r\n
\r\n ) : tab === 1 ? (\r\n // Enter Sweeps Buttons\r\n
\r\n
\r\n
\r\n
\r\n {\r\n setTickets(firstBlockTickets);\r\n }}\r\n disabled={firstBlockTickets <= 0 || enterSweepLoading || sliderDisabled}\r\n />\r\n \r\n
\r\n
\r\n
\r\n
\r\n {\r\n setTickets(secondBlockTickets);\r\n }}\r\n disabled={secondBlockTickets <= 0 || enterSweepLoading || sliderDisabled}\r\n />\r\n \r\n
\r\n
\r\n
\r\n
\r\n {\r\n setTickets(maxTickets);\r\n }}\r\n disabled={maxTickets <= 0 || enterSweepLoading || sliderDisabled}\r\n />\r\n \r\n
\r\n
\r\n\r\n
\r\n \r\n \r\n

{popupErrors}

\r\n
\r\n \r\n ) : (\r\n <>\r\n )\r\n }\r\n >\r\n {\r\n e.preventDefault();\r\n if (sliderDisabled || enterSweepLoading) return;\r\n if (!connectedWallet) {\r\n togglePopupRedux(true);\r\n } else {\r\n handleSweepEntry();\r\n }\r\n }}\r\n disabled={enterSweepLoading}\r\n >\r\n {enterSweepLoading ? \"loading...\" : \"ENTER\"}\r\n \r\n \r\n
\r\n
\r\n
\r\n ) : tab === 2 ? (\r\n // Transaction Failed Tag\r\n
\r\n
\r\n
\r\n
\r\n \"\"\r\n
\r\n
\r\n

{!_.isEmpty(error) ? error : \"Transaction Failed\"}

\r\n
\r\n
\r\n
\r\n {\r\n // Try Again\r\n e.preventDefault();\r\n setTab(1);\r\n }}\r\n >\r\n
\r\n \"\"\r\n
\r\n Try again\r\n \r\n
\r\n
\r\n
\r\n ) : tab === 3 ? (\r\n // Processing Transaction Tag\r\n
\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n

{SWEEP_INSTANCES_TEXTS[status]?.heading}

\r\n {SWEEP_INSTANCES_TEXTS[status]?.subText &&

{SWEEP_INSTANCES_TEXTS[status]?.subText}

}\r\n
\r\n
\r\n
\r\n
\r\n ) : (\r\n // Transaction Success Tag\r\n
\r\n
\r\n
\r\n
\r\n \"\"\r\n
\r\n
\r\n

ENTRIES CONFIRMED

\r\n
\r\n
\r\n
\r\n {\r\n e.preventDefault();\r\n setTab(1);\r\n }}\r\n >\r\n Enter Again\r\n \r\n
\r\n
\r\n
\r\n )}\r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nconst UpperBox = ({ instance, status, counts }) => {\r\n return (\r\n
\r\n
\r\n \"\"\r\n
\r\n
\r\n {(status === 6 || status === 7) && instance?.winner ? (\r\n <>\r\n
\r\n
\r\n \r\n
\r\n
{instance?.winner?.userName}
\r\n
\r\n
Sweepstakes Winner Selected
\r\n \r\n ) : (\r\n <>\r\n
\r\n {status !== 2 && status !== 8 && (\r\n
\r\n \"\"\r\n
\r\n )}\r\n
\r\n {SWEEP_INSTANCES_TEXTS[status].heading2}\r\n
\r\n
\r\n
{SWEEP_INSTANCES_TEXTS[status].subText2}
\r\n \r\n )}\r\n {status === 3 ? (\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
{instance?.winner?.userName}
\r\n
{counts?.sweepsStakesEntries} Sweepstakes
\r\n
\r\n
\r\n
\r\n {counts && (\r\n <>\r\n
\r\n
\r\n
{counts?.sweepsStakesWon}
\r\n

Sweepstakes Won

\r\n
\r\n
\r\n \r\n )}\r\n
\r\n ) : status === 2 || status === 8 ? (\r\n <>\r\n ) : (\r\n
\r\n
\r\n
\r\n
{instance?.userEntry?.totalTickets ?? 0}
\r\n

Your Tickets

\r\n
\r\n
\r\n
\r\n
\r\n
{instance?.totalEntryTickets ?? 0}
\r\n

Total Tickets

\r\n
\r\n
\r\n
\r\n )}\r\n
\r\n
\r\n );\r\n};\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n enterSweep: (data, callback) => dispatch(enterSweep(data, callback)),\r\n loadSweepstakesLeaderBoard: (id, callback) => dispatch(loadSweepstakesLeaderBoard(id, callback)),\r\n loadUpdatedInstanceInfo: (slug, callback) => dispatch(loadUpdatedInstanceInfo(slug, callback)),\r\n loadAvailableTickets: (callback) => dispatch(loadAvailableTickets(callback)),\r\n togglePopupRedux: (payload) => dispatch(togglePopupRedux(payload)),\r\n togglePurchaseCoinsRedux: (payload) => dispatch(togglePurchaseCoinsRedux(payload)),\r\n toggleConnectWalletRedux: (payload) => dispatch(toggleConnectWalletRedux(payload)),\r\n});\r\nconst mapStateToProps = (state) => ({\r\n getUser: getUser(state),\r\n getSweepStakes: getSweepStakes(state),\r\n});\r\nexport default withRouter(connect(mapStateToProps, mapDispatchToProps)(EnterSweep));\r\n","import React from \"react\";\r\n\r\nfunction DetailsModalCard({ title, subTitle, icon, onClick }) {\r\n return (\r\n
\r\n
\r\n
\r\n \"\"\r\n
\r\n
\r\n
{title}
\r\n

{subTitle}

\r\n
\r\n
\r\n
\r\n );\r\n}\r\n\r\nexport default DetailsModalCard;\r\n","import { useEffect, useState } from \"react\";\nimport { Modal } from \"react-bootstrap\";\nimport { connect } from \"react-redux\";\nimport Slider from \"react-slick\";\nimport { getCookie } from \"utils/cookiesUtilities\";\n\n// Images\n\nimport { prepareData } from \"common/gtmDatalayer\";\nimport { contestEntry, getUser, loadProfile } from \"store/user\";\nimport { withRouter } from \"utils/withRouter\";\n\nconst HowItWorks = ({ showModal, toggleModal, slides }) => {\n const themeMode = getCookie(\"themeMode\");\n const [nav1, setNav1] = useState(null);\n const [nav2, setNav2] = useState(null);\n\n useEffect(() => {\n if (showModal) {\n window.dataLayer = window.dataLayer || [];\n window.dataLayer.push(\n prepareData({\n event: \"how_to_play\", // fixed value\n section: \"carousel\", // fixed value\n advanmcement: \"button\", // dynamic value\n step: \"1\", // dynamic value\n }),\n );\n }\n }, [showModal]);\n\n const options1 = {\n slidesToShow: 1,\n slidesToScroll: 1,\n arrows: false,\n fade: true,\n dots: true,\n adaptiveHeight: true,\n asNavFor: \".tuts-text-slider\",\n };\n const options2 = {\n slidesToShow: 1,\n slidesToScroll: 1,\n asNavFor: \".tuts-thumbnail-slider\",\n dots: false,\n arrows: false,\n adaptiveHeight: true,\n };\n return (\n <>\n \n
\n setNav1(slider)}\n className=\"pb-0 tuts-thumbnail-slider w-100\"\n {...options1}\n asNavFor={nav2}\n key=\"hiw-slider-4\"\n >\n {slides?.map((slide) => (\n
\n
\n \"\"\n
\n
\n ))}\n \n
\n setNav2(slider)}\n {...options2}\n asNavFor={nav1}\n key=\"hiw-slider-5\"\n className=\"pb-0 tuts-text-slider w-100\"\n >\n {slides?.map((slide, index) => (\n
\n {slide?.title &&

{slide?.title}

}\n {slide?.description}\n

\n {\n e.preventDefault();\n if (slides?.length - 1 === index) {\n toggleModal(e);\n } else {\n window.dataLayer.push(\n prepareData({\n event: \"how_to_play\", // fixed value\n section: \"carousel\", // fixed value\n advanmcement: \"button\", // dynamic value\n step: \"2\", // dynamic value\n }),\n );\n nav1.slickNext();\n }\n }}\n >\n {index === slides?.length - 1 ? \"DISMISS\" : \"NEXT\"}\n \n
\n ))}\n \n
\n
\n \n \n );\n};\n\nconst mapDispatchToProps = (dispatch) => ({\n contestEntry: (data, callback) => dispatch(contestEntry(data, callback)),\n loadProfile: () => dispatch(loadProfile()),\n});\nconst mapStateToProps = (state) => ({\n getUser: getUser(state),\n});\nexport default withRouter(connect(mapStateToProps, mapDispatchToProps)(HowItWorks));\n","import React, { useState } from \"react\";\n\n// Components\nimport ViewWinnerModal from \"common/viewWinnerModal\";\nimport { getNumberWithOrdinal } from \"utils/misc\";\n\n// Images\nconst userImage = process.env.REACT_APP_WEBSITE_ASSETS_URL + \"images/user.png\";\n\nconst LeaderboardCard = ({ player, type, totalTickets = 1, winner, winningTicketNumber, ended, tie, rank }) => {\n const [showModal, setShowModal] = useState(false);\n return (\n <>\n {\n // if (process.env.REACT_APP_MIXPANEL == 1) mixpanel?.track(`View leaderboard player / View member `);\n // setShowModal(true);\n // }}\n >\n
\n {!ended && (\n
\n
Rank
\n
\n {tie && \"T-\"}\n {rank}\n {getNumberWithOrdinal(rank)}\n
\n
\n )}\n
\n \n
\n
\n {player?.user?.userName}\n
\n {ended && (\n
\n {winner && winner?.id === player?.user.id\n ? `WINNER #${winningTicketNumber}`\n : `#${player?.firstTicket} - #${player?.lastTicket}`}\n
\n )}\n
\n \n\n {\n setShowModal(!showModal);\n }}\n winner={player.user}\n />\n \n );\n};\nexport default LeaderboardCard;\n","import React from \"react\";\n\n// Images\nconst userImage = process.env.REACT_APP_WEBSITE_ASSETS_URL + \"images/user.png\";\n\nconst LeaderboardWaitingCard = ({ ended }) => {\n return (\n <>\n
\n
\n {!ended && (\n
\n
Rank
\n
-
\n
\n )}\n
\n \"\"\n
\n
\n {ended ? \"-\" : \"WAITING FOR ENTRY\"}\n
\n {ended &&
##
}\n
\n
\n \n );\n};\nexport default LeaderboardWaitingCard;\n","import React, { useState } from \"react\";\r\nimport _ from \"lodash\";\r\n\r\n// Components\r\nimport EnterSweep from \"./enterSweep\";\r\nimport LeaderboardCard from \"../common/leaderboardBoxCard\";\r\nimport LeaderboardWaitingCard from \"../common/leaderboardWaitingCard\";\r\n\r\n// Modals\r\nimport HowItWorksModal from \"sweepstakes/components/modals/howItWorks\";\r\nimport Skeleton from \"react-loading-skeleton\";\r\n\r\nfunction Leaderboard({ loading, stats, winner, winningTicketNumber, ended }) {\r\n const shuffleWinner = (arr, keyToMatch) => {\r\n // Find the index of the object with the matching key\r\n const index = arr.findIndex((item) => item?.user?.id === keyToMatch);\r\n\r\n // If the key was found in the array\r\n if (index !== -1) {\r\n // Remove the object from its current position\r\n const itemToMove = arr.splice(index, 1)[0];\r\n\r\n // Insert the object at the 0th index\r\n arr.unshift(itemToMove);\r\n }\r\n return arr;\r\n };\r\n\r\n // Variables\r\n const entries = stats?.entries;\r\n const players = _.take(entries ?? [], 8);\r\n var fewPlayers = entries?.length > 0 ? [...entries] : [];\r\n var watingPlayers = [];\r\n fewPlayers?.sort((a, b) => b.totalTickets - a.totalTickets);\r\n if (winner) {\r\n // If the winner is decided shuffle winner to the first index\r\n fewPlayers = shuffleWinner(fewPlayers, winner.id);\r\n }\r\n\r\n if (fewPlayers?.length < 8) {\r\n watingPlayers = Array(8 - fewPlayers.length).fill(0);\r\n }\r\n let rank = 1;\r\n\r\n return (\r\n
\r\n {loading ? (\r\n <>\r\n
\r\n {\" \"}\r\n
\r\n
\r\n {\" \"}\r\n
\r\n
\r\n {\" \"}\r\n
\r\n
\r\n {\" \"}\r\n
{\" \"}\r\n
\r\n {\" \"}\r\n
\r\n
\r\n {\" \"}\r\n
\r\n
\r\n {\" \"}\r\n
\r\n
\r\n {\" \"}\r\n
\r\n \r\n ) : (\r\n <>\r\n {fewPlayers?.map((player, index) => {\r\n if (index > 0 && fewPlayers[index - 1]?.totalTickets > fewPlayers[index]?.totalTickets) {\r\n rank = rank + 1;\r\n }\r\n return (\r\n 0 && fewPlayers[index - 1]?.totalTickets === fewPlayers[index]?.totalTickets) ||\r\n (index < fewPlayers?.length - 1 &&\r\n fewPlayers[index]?.totalTickets === fewPlayers[index + 1]?.totalTickets)\r\n }\r\n rank={rank}\r\n />\r\n );\r\n })}\r\n {!ended && watingPlayers?.map((player) => )}\r\n \r\n )}\r\n
\r\n );\r\n}\r\n\r\nexport default Leaderboard;\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { Accordion } from \"react-bootstrap\";\r\nimport mixpanel from \"mixpanel-browser\";\r\nimport { useNavigate } from \"react-router-dom\";\r\n\r\n// Redux\r\nimport { connect } from \"react-redux\";\r\nimport { getSweepStakes, loadSweepstakesLeaderBoard } from \"store/sweepstakes\";\r\n\r\n// Components\r\nimport EnterSweep from \"./enterSweep\";\r\nimport DetailsModalCard from \"./detailsModalCard\";\r\n\r\n// Modals\r\nimport Skeleton from \"react-loading-skeleton\";\r\nimport HowItWorksModal from \"sweepstakes/components/modals/howItWorks\";\r\nimport Leaderboard from \"./leaderboard\";\r\n\r\n// Images\r\nconst detailsIcon1 = process.env.REACT_APP_WEBSITE_ASSETS_URL + \"images/flex-grow-icon-1.svg\";\r\nconst detailsIcon2 = process.env.REACT_APP_WEBSITE_ASSETS_URL + \"images/flex-grow-icon-2.svg\";\r\n\r\nfunction MainComponent({ loading, instance, getSweepStakes, loadSweepstakesLeaderBoard }) {\r\n const navigate = useNavigate();\r\n const [showHowItWorksModal, setHowItWorksModal] = useState(false);\r\n useEffect(() => {\r\n instance && loadSweepstakesLeaderBoard(instance?.id, (lbRes) => {});\r\n }, [instance]);\r\n\r\n const toggleHowItWorksModal = (e) => {\r\n setHowItWorksModal((prev) => !prev);\r\n };\r\n\r\n return (\r\n
\r\n {loading ? (\r\n \r\n ) : (\r\n
\r\n \r\n
\r\n )}\r\n {!loading && (\r\n
\r\n \r\n {\r\n if (process.env.REACT_APP_MIXPANEL == 1) mixpanel?.track(\"View Sweepstakes - How it works modal\");\r\n toggleHowItWorksModal(e);\r\n }}\r\n />\r\n {\" \"}\r\n \r\n {\r\n if (e) e.preventDefault();\r\n navigate(\"/sweepstakes-rules\");\r\n }}\r\n />\r\n \r\n
\r\n )}\r\n \r\n \r\n
\r\n );\r\n}\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n loadSweepstakesLeaderBoard: (id, callback) => dispatch(loadSweepstakesLeaderBoard(id, callback)),\r\n});\r\n\r\nconst mapStateToProps = (state) => ({\r\n getSweepStakes: getSweepStakes(state),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(MainComponent);\r\n","import React from \"react\";\r\nimport { getSweepStakes } from \"store/sweepstakes\";\r\nimport { connect } from \"react-redux\";\r\nimport moment from \"moment\";\r\nimport Timer from \"react-compound-timer\";\r\n\r\nfunction PrizeCardAccordionBody({ getSweepStakes }) {\r\n const { instanceDetails } = getSweepStakes;\r\n return (\r\n <>\r\n {instanceDetails?.description && (\r\n
\r\n
ABOUT THIS Sweepstakes
\r\n
\r\n

{instanceDetails?.description}

\r\n
\r\n
\r\n )}\r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({\r\n getSweepStakes: getSweepStakes(state),\r\n});\r\n\r\nexport default connect(mapStateToProps, null)(PrizeCardAccordionBody);\r\n","import React from \"react\";\r\nimport { getSweepStakes } from \"store/sweepstakes\";\r\nimport { connect } from \"react-redux\";\r\nimport moment from \"moment-timezone\";\r\nimport Timer from \"react-compound-timer\";\r\nimport { formatDate } from \"utils/dateConversion\";\r\n\r\nconst tickIcon = process.env.REACT_APP_WEBSITE_ASSETS_URL + \"images/check-circle-16x16.svg\";\r\nconst drawingIcon = process.env.REACT_APP_WEBSITE_ASSETS_URL + \"images/refresh-icon.svg\";\r\nconst startDateIcon = process.env.REACT_APP_WEBSITE_ASSETS_URL + \"images/row-grid-icon-1.svg\";\r\nconst endDateIcon = process.env.REACT_APP_WEBSITE_ASSETS_URL + \"images/row-grid-icon-2.svg\";\r\n\r\nfunction PrizeCardAccordionHead({ getSweepStakes }) {\r\n const { instanceDetails } = getSweepStakes;\r\n const timeLeft = moment(instanceDetails?.timeExpired).diff(moment());\r\n const drawingStatus =\r\n instanceDetails?.status === 4 ||\r\n instanceDetails?.status === 5 ||\r\n instanceDetails?.status === 6 ||\r\n instanceDetails?.status === 9\r\n ? 1\r\n : 0;\r\n return (\r\n <>\r\n
\r\n {instanceDetails?.image && (\r\n \r\n )}\r\n
\r\n
    \r\n
  • \r\n
    \r\n
    ${instanceDetails?.prizeValueUSD.toLocaleString()}
    \r\n
    value
    \r\n
    \r\n
  • \r\n
\r\n
\r\n
\r\n {instanceDetails?.winner || drawingStatus ? <> :

Time Left

}\r\n\r\n {instanceDetails?.winner || drawingStatus ? (\r\n <>\r\n
\r\n {drawingStatus ? (\r\n <>\r\n {\" \"}\r\n
Drawing in progress
\r\n
\r\n \"\"\r\n
\r\n \r\n ) : (\r\n <>\r\n
Winner Selected
\r\n
\r\n \"\"\r\n
\r\n \r\n )}\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \"\"\r\n
\r\n
\r\n
{formatDate(instanceDetails?.activatedAt, \"MM/DD/YY\")}
\r\n
{formatDate(instanceDetails?.activatedAt, \"hh:mm A\")} EST
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \"\"\r\n
\r\n
\r\n
{formatDate(instanceDetails?.timeExpired, \"MM/DD/YY\")}
\r\n
{formatDate(instanceDetails?.timeExpired, \"hh:mm A\")} EST
\r\n
\r\n
\r\n
\r\n
\r\n \r\n ) : (\r\n
\r\n
    \r\n {timeLeft && instanceDetails?.timeExpired && (\r\n \r\n {(control) => {\r\n return (\r\n <>\r\n
  • \r\n
    \r\n
    \r\n \r\n
    \r\n

    DAYs

    \r\n
    \r\n
  • \r\n
  • \r\n
    \r\n
    \r\n \r\n
    \r\n

    HR

    \r\n
    \r\n
  • \r\n
  • \r\n
    \r\n
    \r\n {\" \"}\r\n
    \r\n

    MIN

    \r\n
    \r\n
  • \r\n
  • \r\n
    \r\n
    \r\n {\" \"}\r\n
    \r\n

    SEC

    \r\n
    \r\n
  • \r\n \r\n );\r\n }}\r\n \r\n )}\r\n
\r\n
\r\n )}\r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({\r\n getSweepStakes: getSweepStakes(state),\r\n});\r\n\r\nexport default connect(mapStateToProps, null)(PrizeCardAccordionHead);\r\n","import React, { Fragment } from \"react\";\r\n\r\nimport { Accordion } from \"react-bootstrap\";\r\n\r\nfunction AccordionItem({ icon, title, target, eventKey, children, headChildren, spanText, classes, toggleOff }) {\r\n return (\r\n \r\n \r\n
\r\n \r\n
\r\n
\r\n \"\"\r\n
\r\n
\r\n {title} {spanText && {spanText}}\r\n
\r\n
\r\n \r\n {headChildren}\r\n
\r\n \r\n {children}\r\n \r\n
\r\n
\r\n );\r\n}\r\n\r\nexport default AccordionItem;\r\n","import React, { useState } from \"react\";\r\nimport { Accordion } from \"react-bootstrap\";\r\nimport { connect } from \"react-redux\";\r\nimport { getSweepStakes, loadSweepstakesLeaderBoard } from \"store/sweepstakes\";\r\nimport { withRouter } from \"utils/withRouter\";\r\nimport { useNavigate } from \"react-router-dom\";\r\nimport Skeleton from \"react-loading-skeleton\";\r\n\r\n// Component\r\nimport PrizeCardAccordionBody from \"./accordionItems/prizeCardAccordionBody\";\r\nimport PrizeCardAccordionHead from \"./accordionItems/prizeCardAccordionHead\";\r\nimport AccordionItem from \"./accordionItems/accordionItem\";\r\nimport HowItWorksModal from \"sweepstakes/components/modals/howItWorks\";\r\nimport DetailsModalCard from \"./detailsModalCard\";\r\nimport mixpanel from \"mixpanel-browser\";\r\n\r\n// Images\r\nconst page2Icon = process.env.REACT_APP_WEBSITE_ASSETS_URL + \"images/new-page-icon-01.svg\";\r\nconst detailsIcon1 = process.env.REACT_APP_WEBSITE_ASSETS_URL + \"images/flex-grow-icon-1.svg\";\r\nconst detailsIcon2 = process.env.REACT_APP_WEBSITE_ASSETS_URL + \"images/flex-grow-icon-2.svg\";\r\nconst disclaimerIcon = process.env.REACT_APP_WEBSITE_ASSETS_URL + \"images/disclaimer-icon.svg\";\r\n\r\nfunction Sidebar({ instance, getSweepStakes }) {\r\n const [showHowItWorksModal, setHowItWorksModal] = useState(false);\r\n const toggleHowItWorksModal = (e) => {\r\n setHowItWorksModal((prev) => !prev);\r\n };\r\n const navigate = useNavigate();\r\n return (\r\n <>\r\n
\r\n
\r\n \r\n {getSweepStakes?.loading ? (\r\n <>\r\n \r\n \r\n \r\n \r\n \r\n ) : (\r\n <>\r\n {/* Sweepstakes Instance Details component */}\r\n }\r\n toggleOff={true}\r\n >\r\n \r\n \r\n \r\n {\r\n if (process.env.REACT_APP_MIXPANEL == 1) mixpanel?.track(\"View Sweepstakes - How it works modal\");\r\n toggleHowItWorksModal(e);\r\n }}\r\n />\r\n {\" \"}\r\n \r\n {\r\n if (e) e.preventDefault();\r\n navigate(\"/sweepstakes-rules\");\r\n }}\r\n />\r\n \r\n \r\n )}\r\n \r\n {!getSweepStakes?.loading && (\r\n \r\n <>\r\n \r\n
\r\n

\r\n NO PURCHASE NECESSARY TO ENTER OR WIN. PURCHASE WILL NOT INCREASE THE ODDS OF WINNING. Sweepstakes\r\n are open only to legal residents of the United States and the District of Columbia, who are living\r\n in the United States and the District of Columbia and who are at least 18 years of age.\r\n Sweepstakes are void in HI, ID, MI, MN, VT, WA, PR and where otherwise prohibited by law.  Winners\r\n are responsible for all taxes associated with the prizes. Odds of winning depend on the number of\r\n entries received during the sweepstakes period. For Alternative Method of Entry,{\" \"}\r\n \r\n click here\r\n \r\n

\r\n Sponsor: Burn Ghost Inc., PO Box 384, Canandaigua NY, 14424. For Sweepstakes end dates and\r\n detailed rules,{\" \"}\r\n \r\n click here\r\n \r\n
\r\n
\r\n © 2023 Copyright Burn Ghost, Inc. ALL RIGHTS RESERVED.\r\n
\r\n

\r\n
\r\n \r\n \r\n
\r\n )}\r\n
\r\n
\r\n \r\n \r\n );\r\n}\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n loadSweepstakesLeaderBoard: (id, callback) => dispatch(loadSweepstakesLeaderBoard(id, callback)),\r\n});\r\n\r\nconst mapStateToProps = (state) => ({\r\n getSweepStakes: getSweepStakes(state),\r\n});\r\nexport default withRouter(connect(mapStateToProps, mapDispatchToProps)(Sidebar));\r\n","import React, { createRef, Component, Fragment } from \"react\";\nimport { getUser, toggleDiscordModalRedux } from \"store/user\";\nimport { getSweepStakes, loadInstanceDetails } from \"store/sweepstakes\";\nimport { withRouter } from \"utils/withRouter\";\nimport _ from \"lodash\";\nimport Skeleton from \"react-loading-skeleton\";\nimport { connect } from \"react-redux\";\nimport Pusher from \"pusher-js\";\n\n// Components\nimport Header from \"common/header\";\nimport Loader from \"common/loader\";\nimport SEO from \"common/seo\";\nimport MainComponent from \"./components/layouts/mainComponent\";\nimport DiscordChatModal from \"common/sections/discordChat\";\nimport Sidebar from \"./components/layouts/sidebar\";\n\nclass SweepstakesDetails extends Component {\n ref = createRef(null);\n state = {\n loading: false,\n };\n\n componentDidMount = () => {\n window.scrollTo(0, 0);\n if (window.innerWidth > 1280.98) {\n this.props.toggleDiscordModalRedux(true);\n }\n const slug = this.props.router.params.slug;\n this.setState({ loading: true });\n this.props.loadInstanceDetails(slug, (instanceRes) => {\n this.setState({ loading: false });\n });\n\n const pusher = new Pusher(process.env.REACT_APP_PUSHER_KEY, {\n cluster: process.env.REACT_APP_PUSHER_CLUSTER,\n });\n // Subscribe to the pusher channel\n const channel = pusher?.subscribe(slug);\n\n // Listen to pusher event\n const eventName = \"update-\" + slug;\n channel?.bind(eventName, (data) => {\n if (data?.status === \"success\") {\n this.props.loadInstanceDetails(slug, (instanceRes) => {\n this.setState({ loading: false });\n });\n }\n });\n };\n\n render() {\n const { instanceDetails } = this.props.getSweepStakes;\n const isLoggedIn = localStorage.getItem(\"x-auth-token\");\n return (\n <>\n \n \n {/* */}\n
\n
\n
\n
\n
\n
\n \n \n {this.props.getUser.showDiscordModal && window.innerWidth <= 1280.98 && (\n {\n this.props.toggleDiscordModalRedux(false);\n }}\n >
\n )}\n {this.props.getUser.showDiscordModal && (\n
\n \n
\n )}\n
\n
\n
\n
\n \n \n \n );\n }\n}\n\nconst mapDispatchToProps = (dispatch) => ({\n loadInstanceDetails: (slug, callback) => dispatch(loadInstanceDetails(slug, callback)),\n toggleDiscordModalRedux: (data) => dispatch(toggleDiscordModalRedux(data)),\n});\nconst mapStateToProps = (state) => ({\n getSweepStakes: getSweepStakes(state),\n getUser: getUser(state),\n});\nexport default withRouter(connect(mapStateToProps, mapDispatchToProps)(SweepstakesDetails));\n"],"sourceRoot":""}