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3KkB,kDD2KoBG,QA1I9B,WACjBS,GAAY,KA0IkB,QAArBC,EACG,yBACA,mCAGN,gCAEE,sBAAIb,UChLkB,sDDiLE,QAArBa,EAA6B,YAAc,aAE9C,0BACwB,QAArBA,EACG,uBACA,0BAELE,EAAiB,WAAeqC,KAAI,SAACC,EAAMC,GAAP,OACnC,gBAAC,EAAD,CACEC,IAAKD,EACL/D,GAAI8D,EAAK9D,GACTD,KAAM+D,EAAK/D,KACXE,QAAS6D,EAAK7D,QACdE,MAAO,aACPD,MAAO,SAAC+D,GAAD,OArLK,SAACA,EAAOjE,EAAIG,IACpC+D,EAAAA,EAAAA,IACElE,EACAG,EACAI,EACAS,EACAC,EACAC,GAGF,IAAMM,EACiB,QAArBF,EAA6Bf,EAAmBS,EAC5CmD,EAAa3C,EAAiB,WAAe4C,OAC7CC,EAAe7C,EAAiB,WAAe8C,QACnD,SAACR,GAAD,OAAUA,EAAK7D,WACfmE,OAEF/C,EAAY8C,IAAeE,GAqKbE,CAAkBN,EAAOH,EAAK9D,GAAI","sources":["webpack://d9test/./src/components/scavenger-hunt/Checkbox.js","webpack://d9test/./src/components/scavenger-hunt/Checkbox.module.css","webpack://d9test/./src/pages/scavenger-hunt.js","webpack://d9test/./src/pages/scavenger-hunt.module.css","webpack://d9test/./src/images/image-header-check.svg","webpack://d9test/./src/images/image-complete-x.svg"],"sourcesContent":["import React, { useContext } from \"react\";\nimport * as classes from \"./Checkbox.module.css\";\nimport { StoreContext } from \"../../store\";\n\nconst Checkbox = ({ text, id, checked, click, floor }) => {\n const { scavengerHuntEng } = useContext(StoreContext);\n\n let checkboxClasses = [classes.CheckboxContainer];\n\n const toggleCheck = (e) => {\n click(e, id, floor);\n };\n\n if (checked) {\n checkboxClasses.push(classes.CheckboxActive);\n }\n\n return (\n \n \n \n \n );\n};\n\nexport default Checkbox;","// extracted by mini-css-extract-plugin\nexport var CheckboxContainer = \"Checkbox-module--CheckboxContainer--7aLJO\";\nexport var colorChangeInactive = \"Checkbox-module--colorChangeInactive--OjuQL\";\nexport var CheckboxActive = \"Checkbox-module--CheckboxActive--hHA4f\";\nexport var bounce = \"Checkbox-module--bounce--6ExfU\";\nexport var strike = \"Checkbox-module--strike--L8xTc\";\nexport var showCheckmark = \"Checkbox-module--showCheckmark--ddNi1\";\nexport var colorChangeActive = \"Checkbox-module--colorChangeActive--5pLA9\";","import React, { useContext, useState } from \"react\";\nimport Seo from \"../components/seo\";\nimport * as classes from \"./scavenger-hunt.module.css\";\nimport headerCheck from \"../images/image-header-check.svg\";\nimport headerX from \"../images/image-header-x.svg\";\nimport completeX from \"../images/image-complete-x.svg\";\nimport Checkbox from \"../components/scavenger-hunt/Checkbox\";\nimport ParentRouteHandler from \"../components/ParentRouteHandler\";\nimport { StoreContext } from \"../store\";\nimport { markScavenger } from \"../store/methods/scavengerHunt\";\nimport Select from \"react-select\";\nimport { colors } from \"../utilities/themeVars\";\n\nconst ScavengerHunt = ({ location }) => {\n const {\n scavengerHuntEng,\n scavengerHuntEsp,\n setScavengerHuntEng,\n setScavengerHuntEsp,\n } = useContext(StoreContext);\n\n const [progress, setProgress] = useState(false);\n const [selectedLanguage, setSelectedLanguage] = useState(\"eng\");\n\n const scavengerProgress = (event, id, floor) => {\n markScavenger(\n id,\n floor,\n scavengerHuntEng,\n scavengerHuntEsp,\n setScavengerHuntEng,\n setScavengerHuntEsp\n );\n\n const scavengerHuntData =\n selectedLanguage === \"eng\" ? scavengerHuntEng : scavengerHuntEsp;\n const totalItems = scavengerHuntData[\"thirdFloor\"].length;\n const checkedItems = scavengerHuntData[\"thirdFloor\"].filter(\n (item) => item.checked\n ).length;\n\n setProgress(totalItems === checkedItems);\n };\n\n const backToScav = () => {\n setProgress(false);\n };\n\n const handleLanguageChange = (selected) => {\n setSelectedLanguage(selected.value);\n // setProgress(false); // Reset progress when language changes\n };\n\n const scavengerHuntData =\n selectedLanguage === \"eng\" ? scavengerHuntEng : scavengerHuntEsp;\n\n const customStyles = {\n control: (provided, state) => {\n let borderColor = colors.gray4;\n if (state.isSelected || state.isFocused) {\n borderColor = colors.gray4;\n }\n return {\n ...provided,\n borderRadius: \"0\",\n borderWidth: `2px`,\n borderColor,\n \n \"&:hover\": {\n borderColor,\n },\n };\n },\n \n indicatorSeparator: () => null,\n \n option: (provided, state) => ({\n ...provided,\n background: state.isSelected ? colors.gray : colors.white,\n color: colors.text,\n }),\n \n dropdownIndicator: (provided, state) => {\n return { ...provided, color: colors.primary };\n },\n \n singleValue: (provided, state) => {\n const opacity = state.isDisabled ? 0.5 : 1;\n const transition = \"opacity 300ms\";\n const textTransform = \"uppercase\";\n const letterSpacing = \"1px\";\n const fontWeight = \"bold\";\n \n return {\n ...provided,\n opacity,\n transition,\n fontWeight,\n letterSpacing,\n textTransform,\n };\n },\n };\n\n return (\n <>\n \n {location.state?.originalPath === \"home\" ? (\n \n ) : (\n \n )}\n\n
\n \n\n {progress ? (\n <>\n

\n {selectedLanguage === \"eng\"\n ? \"GREAT WORK EXPLORER!\"\n : \"¡Buen trabajo EXPLORADOR!\"}\n \n {selectedLanguage === \"eng\"\n ? \"CLAIM YOUR PRIZE!\"\n : \"¡RECLAMA TU PREMIO!\"}\n \n

\n \n \n ) : (\n <>\n

\n {selectedLanguage === \"eng\"\n ? \"THE BROAD SCAVENGER HUNT!\"\n : \"¡La búsqueda del tesoro del Broad!\"}\n

\n {/* */}\n

\n {selectedLanguage === \"eng\"\n ? \"As you explore the Broad collection, use this scavenger hunt to help you discover more! When you find an item, check it off the list. Show your completed checklist to a Visitor Experience Team Member stationed in the lobby to claim your prize!\"\n : \"¡Mientras exploras la colección del Broad, utiliza esta búsqueda del tesoro para ayudarte a descubrir aún más! Cuando encuentres un objeto, táchalo de la lista. ¡Muestre tu lista completa a un Miembro Del Equipo De Experiencia Visitante estacionado en el vestíbulo para reclamar su premio!\"}\n

\n \n )}\n
\n\n {/* Language selection dropdown */}\n
\n \n
\n\n {/*
*/}\n\n
\n {progress ? (\n

\n {selectedLanguage === \"eng\"\n ? \"Back to scavenger hunt\"\n : \"Volver a la búsqueda del tesoro\"}\n

\n ) : (\n <>\n {/* 3RD FLOOR */}\n

\n {selectedLanguage === \"eng\" ? \"3RD FLOOR\" : \"3ᴬ planta\"}\n

\n

\n {selectedLanguage === \"eng\"\n ? \"THE BROAD COLLECTION\"\n : \"LA COLECCIÓN DEL BROAD\"}\n

\n {scavengerHuntData[\"thirdFloor\"].map((item, index) => (\n \n scavengerProgress(event, item.id, \"thirdFloor\")\n }\n />\n ))} \n \n )}\n
\n \n );\n};\n\nexport default ScavengerHunt;","// extracted by mini-css-extract-plugin\nexport var ScavengerHeader = \"scavenger-hunt-module--ScavengerHeader--NqfJz\";\nexport var ScavengerTitleEng = \"scavenger-hunt-module--ScavengerTitleEng--Lz8D8\";\nexport var ScavengerTitleEsp = \"scavenger-hunt-module--ScavengerTitleEsp--nbi-A\";\nexport var ScavengerContent = \"scavenger-hunt-module--ScavengerContent--GPjRl\";\nexport var ScavengerHeaderCheck = \"scavenger-hunt-module--ScavengerHeaderCheck--RoHuT\";\nexport var ScavengerHeaderDottedLine = \"scavenger-hunt-module--ScavengerHeaderDottedLine--mnMxU\";\nexport var ScavengerBody = \"scavenger-hunt-module--ScavengerBody--mJPtF\";\nexport var ScavengerTitle = \"scavenger-hunt-module--ScavengerTitle--T6wKg\";\nexport var ScavengerHeaderDottedLineComplete = \"scavenger-hunt-module--ScavengerHeaderDottedLineComplete--JFnIo\";\nexport var ScavengerBodyCenter = \"scavenger-hunt-module--ScavengerBodyCenter--nXS9t\";\nexport var ScavengerBackLink = \"scavenger-hunt-module--ScavengerBackLink--WGElc\";\nexport var HeaderDescEng = \"scavenger-hunt-module--HeaderDescEng--pW-Dm\";\nexport var HeaderDescEsp = \"scavenger-hunt-module--HeaderDescEsp--p2taZ\";\nexport var ScavengerFloorHeader = \"scavenger-hunt-module--ScavengerFloorHeader--lofr-\";\nexport var ScavengerDivider = \"scavenger-hunt-module--ScavengerDivider--SUMCE\";\nexport var ScavengerLanguageSelectWrapper = \"scavenger-hunt-module--ScavengerLanguageSelectWrapper--2EFpy\";\nexport var ScavengerLanguageSelect = \"scavenger-hunt-module--ScavengerLanguageSelect--X+svq\";\nexport var srOnly = \"scavenger-hunt-module--srOnly--nJK+Q\";","export default \"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0NS4zNCIgaGVpZ2h0PSI0MC4zMzIiIHZpZXdCb3g9IjAgMCA0NS4zNCA0MC4zMzIiPjxkZWZzPjxzdHlsZT4uYXtmaWxsOiNmZmY7fS5ie2ZpbGw6IzMzM2Y0ODt9PC9zdHlsZT48L2RlZnM+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTMyLjY4OCAtOTMuNDMzKSI+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoNiAtMjQ4KSI+PHJlY3QgY2xhc3M9ImEiIHdpZHRoPSIyNyIgaGVpZ2h0PSIyNyIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMzAgMzU0KSIvPjwvZz48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgzMi42ODggMTA4LjA0NCkgcm90YXRlKC0yMykiPjxwYXRoIGNsYXNzPSJiIiBkPSJNNC44LDEwLjE5MWw4Ljg1NCw3LjkyMUwzMi40LDBsNSw1LjE5M0wxMy44NDcsMjcuOTQzLDAsMTUuNTUzWiIvPjwvZz48L2c+PC9zdmc+\"","export default \"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMzIuMzQ1IiBoZWlnaHQ9IjE4Mi42ODUiIHZpZXdCb3g9IjAgMCAxMzIuMzQ1IDE4Mi42ODUiPjxkZWZzPjxzdHlsZT4uYXtmaWxsOm5vbmU7c3Ryb2tlOiNmZmY7c3Ryb2tlLWRhc2hhcnJheTo1IDQ7fS5ie2ZpbGw6I2ZmZjtmaWxsLXJ1bGU6ZXZlbm9kZDt9PC9zdHlsZT48L2RlZnM+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTE5My4yMTggLTEwNi45ODcpIj48cGF0aCBjbGFzcz0iYSIgZD0iTTEzMDU1LjcwNywyODkuNTdzNi42NjMtMzIuMjk0LDQ3LjI0OC0zMS4wMjUsODYuMDY5LTU5LjU5Miw4NC4wMzItODMuMDctMTAuNTktNDMuMTE1LTE5LjEtNTAuODIyIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTI4NjIpIi8+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjYzLjcyIDEwOC4yMzMpIHJvdGF0ZSgtMzApIj48cGF0aCBjbGFzcz0iYiIgZD0iTTI1LjI4NywyOC41NTYsMjAsMjMuMjQ4LDIzLjI0OCwyMGw1LjMwOCw1LjI4N0wzMy44NjQsMjBsMy4yNywzLjI0OC01LjMwOCw1LjMwOCw1LjMwOCw1LjMwOC0zLjI3LDMuMjctNS4zMDgtNS4zMDgtNS4zMDgsNS4zMDhMMjAsMzMuODY0WiIvPjwvZz48L2c+PC9zdmc+\""],"names":["text","id","checked","click","floor","checkboxClasses","useContext","StoreContext","scavengerHuntEng","push","className","join","type","onClick","e","htmlFor","location","scavengerHuntEsp","setScavengerHuntEng","setScavengerHuntEsp","useState","progress","setProgress","selectedLanguage","setSelectedLanguage","scavengerHuntData","customStyles","control","provided","state","borderColor","colors","isSelected","isFocused","borderRadius","borderWidth","indicatorSeparator","option","background","color","dropdownIndicator","singleValue","opacity","isDisabled","transition","fontWeight","letterSpacing","textTransform","title","originalPath","ParentRouteHandler","path","src","alt","defaultValue","value","label","isSearchable","options","styles","onChange","selected","map","item","index","key","event","markScavenger","totalItems","length","checkedItems","filter","scavengerProgress"],"sourceRoot":""}