[
  {
    "path": ".gitignore",
    "content": "# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.\n\n# dependencies\n/node_modules\n/.pnp\n.pnp.js\n\n# testing\n/coverage\n\n# production\n/build\n/dev\n\n# misc\n.DS_Store\n.env.local\n.env.development.local\n.env.test.local\n.env.production.local\n\nnpm-debug.log*\nyarn-debug.log*\nyarn-error.log*\n"
  },
  {
    "path": "README.md",
    "content": "# Getting Started with Create React App\n\nThis project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).\n\n## Available Scripts\n\nIn the project directory, you can run:\n\n### `npm start`\n\nRuns the app in the development mode.\\\nOpen [http://localhost:3000](http://localhost:3000) to view it in your browser.\n\nThe page will reload when you make changes.\\\nYou may also see any lint errors in the console.\n\n### `npm test`\n\nLaunches the test runner in the interactive watch mode.\\\nSee the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.\n\n### `npm run build`\n\nBuilds the app for production to the `build` folder.\\\nIt correctly bundles React in production mode and optimizes the build for the best performance.\n\nThe build is minified and the filenames include the hashes.\\\nYour app is ready to be deployed!\n\nSee the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.\n\n### `npm run eject`\n\n**Note: this is a one-way operation. Once you `eject`, you can't go back!**\n\nIf you aren't satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.\n\nInstead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you're on your own.\n\nYou don't have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn't feel obligated to use this feature. However we understand that this tool wouldn't be useful if you couldn't customize it when you are ready for it.\n\n## Learn More\n\nYou can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).\n\nTo learn React, check out the [React documentation](https://reactjs.org/).\n\n### Code Splitting\n\nThis section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting)\n\n### Analyzing the Bundle Size\n\nThis section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size)\n\n### Making a Progressive Web App\n\nThis section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app)\n\n### Advanced Configuration\n\nThis section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration)\n\n### Deployment\n\nThis section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment)\n\n### `npm run build` fails to minify\n\nThis section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)\n"
  },
  {
    "path": "package.json",
    "content": "{\n  \"name\": \"quiz-app\",\n  \"version\": \"0.1.0\",\n  \"private\": true,\n  \"dependencies\": {\n    \"@emotion/react\": \"^11.10.4\",\n    \"@emotion/styled\": \"^11.10.4\",\n    \"@mui/material\": \"^5.10.3\",\n    \"@testing-library/jest-dom\": \"^5.16.5\",\n    \"@testing-library/react\": \"^13.3.0\",\n    \"@testing-library/user-event\": \"^13.5.0\",\n    \"bootstrap\": \"^5.1.3\",\n    \"lodash\": \"^4.17.21\",\n    \"react\": \"^18.0.0\",\n    \"react-bootstrap\": \"^2.3.0\",\n    \"react-dom\": \"^18.0.0\",\n    \"react-scripts\": \"5.0.1\",\n    \"web-vitals\": \"^2.1.4\"\n  },\n  \"scripts\": {\n    \"start\": \"react-scripts start\",\n    \"build\": \"react-scripts build\",\n    \"test\": \"react-scripts test\",\n    \"eject\": \"react-scripts eject\"\n  },\n  \"eslintConfig\": {\n    \"extends\": [\n      \"react-app\",\n      \"react-app/jest\"\n    ]\n  },\n  \"browserslist\": {\n    \"production\": [\n      \">0.2%\",\n      \"not dead\",\n      \"not op_mini all\"\n    ],\n    \"development\": [\n      \"last 1 chrome version\",\n      \"last 1 firefox version\",\n      \"last 1 safari version\"\n    ]\n  }\n}\n"
  },
  {
    "path": "public/index.html",
    "content": "<!DOCTYPE html>\n<html lang=\"en\">\n\n<head>\n  <meta charset=\"utf-8\" />\n  <link rel=\"icon\" href=\"%PUBLIC_URL%/favicon.ico\" />\n  <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\n  <meta name=\"theme-color\" content=\"#000000\" />\n  <meta name=\"description\" content=\"React Quiz APP\" />\n  <link rel=\"apple-touch-icon\" href=\"%PUBLIC_URL%/logo192.png\" />\n  <!--\n      manifest.json provides metadata used when your web app is installed on a\n      user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/\n    -->\n  <link rel=\"manifest\" href=\"%PUBLIC_URL%/manifest.json\" />\n  <!--\n      Notice the use of %PUBLIC_URL% in the tags above.\n      It will be replaced with the URL of the `public` folder during the build.\n      Only files inside the `public` folder can be referenced from the HTML.\n\n      Unlike \"/favicon.ico\" or \"favicon.ico\", \"%PUBLIC_URL%/favicon.ico\" will\n      work correctly both with client-side routing and a non-root public URL.\n      Learn how to configure a non-root public URL by running `npm run build`.\n    -->\n  <title>React Quiz APP</title>\n</head>\n\n<body>\n  <noscript>You need to enable JavaScript to run this app.</noscript>\n  <div id=\"root\"></div>\n  <!--\n      This HTML file is a template.\n      If you open it directly in the browser, you will see an empty page.\n\n      You can add webfonts, meta tags, or analytics to this file.\n      The build step will place the bundled scripts into the <body> tag.\n\n      To begin the development, run `npm start` or `yarn start`.\n      To create a production bundle, use `npm run build` or `yarn build`.\n    -->\n</body>\n\n</html>"
  },
  {
    "path": "public/manifest.json",
    "content": "{\n  \"short_name\": \"React App\",\n  \"name\": \"Create React App Sample\",\n  \"icons\": [\n    {\n      \"src\": \"favicon.ico\",\n      \"sizes\": \"64x64 32x32 24x24 16x16\",\n      \"type\": \"image/x-icon\"\n    },\n    {\n      \"src\": \"logo192.png\",\n      \"type\": \"image/png\",\n      \"sizes\": \"192x192\"\n    },\n    {\n      \"src\": \"logo512.png\",\n      \"type\": \"image/png\",\n      \"sizes\": \"512x512\"\n    }\n  ],\n  \"start_url\": \".\",\n  \"display\": \"standalone\",\n  \"theme_color\": \"#000000\",\n  \"background_color\": \"#ffffff\"\n}\n"
  },
  {
    "path": "src/App.css",
    "content": ".App {\n  text-align: center;\n}\n\n.App-logo {\n  height: 40vmin;\n  pointer-events: none;\n}\n\n@media (prefers-reduced-motion: no-preference) {\n  .App-logo {\n    animation: App-logo-spin infinite 20s linear;\n  }\n}\n\n.App-header {\n  background-color: #282c34;\n  min-height: 100vh;\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: center;\n  font-size: calc(10px + 2vmin);\n  color: white;\n}\n\n.App-link {\n  color: #61dafb;\n}\n\n@keyframes App-logo-spin {\n  from {\n    transform: rotate(0deg);\n  }\n  to {\n    transform: rotate(360deg);\n  }\n}\n"
  },
  {
    "path": "src/App.js",
    "content": "import \"./App.css\";\nimport { data } from \"./data\";\nimport { reduce } from \"lodash/fp\";\nimport { useEffect, useState } from \"react\";\n\nfunction App() {\n  const { pages } = data;\n  const [pageNumber, setPageNumber] = useState(0);\n  const [pageContent, setPageContent] = useState(pages[pageNumber]);\n  const [selectedOption, setSelectedOption] = useState(\"\");\n  const [selectedPartnerOption, setSelectedPartnerOption] = useState(\"\");\n  const [selectedOptionValue, setSelectedOptionValue] = useState();\n  const [selectedOptionPartnerValue, setSelectedOptionPartnerValue] =\n    useState();\n  const [totalScore, setTotalScore] = useState(0);\n  const [totalPartnerScore, setTotalPartnerScore] = useState(0);\n  const [commonScore, setCommonScore] = useState([]);\n  const [commonPartnerScore, setCommonPartnerScore] = useState([]);\n\n  useEffect(() => {\n    setPageContent(pages[pageNumber]);\n  }, [pageNumber]);\n\n  useEffect(() => {\n    if (pageContent.defaultIndex) {\n      setSelectedOption(pageContent.options[pageContent.defaultIndex]);\n      setSelectedPartnerOption(pageContent.options[pageContent.defaultIndex]);\n      setSelectedOptionValue(pageContent.values[pageContent.defaultIndex]);\n      setSelectedOptionPartnerValue(\n        pageContent.values[pageContent.defaultIndex]\n      );\n    }\n  }, [pageContent]);\n\n  const handleInputChange = (e, option) => {\n    setSelectedOption(option);\n\n    setSelectedOptionValue(e.target.value);\n  };\n  const handleInputPartnerChange = (e, option) => {\n    setSelectedPartnerOption(option);\n    setSelectedOptionPartnerValue(e.target.value);\n  };\n\n  const handleNextClick = () => {\n    if (pageContent.options) {\n      setTotalScore((prevState) => prevState + +selectedOptionValue);\n      setCommonScore((prevState) => [...prevState, selectedOption]);\n      setTotalPartnerScore(\n        (prevState) => prevState + +selectedOptionPartnerValue\n      );\n      setCommonPartnerScore((prevState) => [\n        ...prevState,\n        selectedPartnerOption,\n      ]);\n    }\n    setPageNumber((prevState) => prevState + 1);\n  };\n  //added lodash/fp reduce\n  const getMostFrequent = (arr) => {\n    const hashmap = reduce((acc, val) => {\n      acc[val] = (acc[val] || 0) + 1;\n      return acc;\n    }, {})(arr);\n    return Object.keys(hashmap).reduce((a, b) =>\n      hashmap[a] > hashmap[b] ? a : b\n    );\n  };\n  const renderResults = () => {\n    const common = getMostFrequent(commonScore);\n    return pageContent.bodyBold\n      .replace(\"<total_score>\", totalScore.toString())\n      .replace(\"<common_score>\", `\"${common}\"`);\n  };\n\n  const renderPartnerResults = () => {\n    const commonPartner = getMostFrequent(commonPartnerScore);\n    return pageContent.bodyBold\n      .replace(\"Your\", \"Your Partner's\")\n      .replace(\"your\", \"\")\n      .replace(\"<total_score>\", totalPartnerScore.toString())\n      .replace(\"<common_score>\", `\"${commonPartner}\"`);\n  };\n\n  return (\n    <section className=\"bg-dark text-white\">\n      <div className=\"container\">\n        <div className=\"row vh-100 align-items-center justify-content-center\">\n          <div className=\"col-lg-8\">\n            <div\n              className=\"card p-4\"\n              style={{ background: \"#3d3d3d\", borderColor: \"#646464\" }}\n            >\n              <div className=\"gap-md-3\">\n                {pageContent.body && (\n                  <div className=\"body\">\n                    {pageContent.body.replace(\"<partner name>\", \"Partner\")}\n                  </div>\n                )}\n                {pageContent.bodyBold && (\n                  <div className=\"body-bold\">{renderResults()}</div>\n                )}\n                {pageContent.bodyBold && (\n                  <div className=\"body-bold\">{renderPartnerResults()}</div>\n                )}\n\n                <h3 className=\"label\" style={{ margin: 50 }}>\n                  {pages?.indexOf(pageContent) <= 12\n                    ? pageContent.label\n                    : pageContent.footnotes}\n                </h3>\n\n                <div className=\"d-flex justify-content-between gap-md-3\">\n                  <h5 className=\"mb-2 fs-normal lh-base\">\n                    {selectedOption?.label}\n                  </h5>\n                  <h5\n                    style={{\n                      color: \"#60d600\",\n                      width: \"100px\",\n                      textAlign: \"right\",\n                    }}\n                  >\n                    {pages?.indexOf(pageContent)} / {pages?.length - 1}\n                  </h5>\n                </div>\n\n                {pageContent.options && (\n                  <div\n                    style={{\n                      display: \"flex\",\n                      justifyContent: \"center\",\n                      columnGap: 40,\n                      marginBottom: 50,\n                    }}\n                  >\n                    {\" \"}\n                    {pageContent.options.map((option, index) => (\n                      <label\n                        htmlFor={option}\n                        key={option}\n                        style={{ display: \"flex\", flexDirection: \"column\" }}\n                      >\n                        {option}\n                        <input\n                          id={option}\n                          type=\"checkbox\"\n                          value={pageContent.values[index]}\n                          checked={option === selectedOption}\n                          onChange={(e) => handleInputChange(e, option)}\n                        />\n                      </label>\n                    ))}\n                  </div>\n                )}\n                {pageContent.options && (\n                  <div\n                    style={{\n                      display: \"flex\",\n                      justifyContent: \"center\",\n                      columnGap: 40,\n                      marginBottom: 50,\n                    }}\n                  >\n                    {pageContent.options.map((option, index) => (\n                      <label\n                        htmlFor={option}\n                        key={option}\n                        style={{ display: \"flex\", flexDirection: \"column\" }}\n                      >\n                        {option}\n                        <input\n                          id={option}\n                          type=\"checkbox\"\n                          value={pageContent.values[index]}\n                          checked={option === selectedPartnerOption}\n                          onChange={(e) => handleInputPartnerChange(e, option)}\n                        />\n                      </label>\n                    ))}\n                  </div>\n                )}\n                {pageContent.done && (\n                  <button\n                    className=\"btn py-2 w-100 mt-3 bg-primary text-light fw-bold\"\n                    onClick={handleNextClick}\n                  >\n                    {pageContent.done}\n                  </button>\n                )}\n              </div>\n            </div>\n          </div>\n        </div>\n      </div>\n    </section>\n  );\n}\n\nexport default App;\n"
  },
  {
    "path": "src/App.test.js",
    "content": "import { render, screen } from \"@testing-library/react\";\nimport App from \"./App\";\nimport App1 from \"./App\";\n\ntest(\"renders learn react link\", () => {\n  render(<App1 />);\n  const linkElement = screen.getByText(/learn react/i);\n  expect(linkElement).toBeInTheDocument();\n});\n"
  },
  {
    "path": "src/data.js",
    "content": "export const data = {\n  \"pages\": [\n    {\n      \"body\": \"How secure each of you feel as individuals is important for us to understand to create a lesson plan that's right for you. Try to answer the following section for yourself and for <partner name>. \\n\\np.s. If you decide to invite them to join you on Relish, they will get a chance to answer these questions too and your results will be updated to reflect that.\",\n      \"bodyColor\": \"warmGrey\",\n      \"collect\": \"info_attachment_intro\",\n      \"done\": \"Next\",\n      \"label\": \"How secure are you both?\",\n      \"textAlign\": \"center\",\n      \"type\": \"info\"\n    },\n    {\n      \"caption\": \"How much do you agree or disagree?\",\n      \"collect\": \"turntopartner\",\n      \"collect2\": \"pturntopartner\",\n      \"defaultIndex\": 3,\n      \"done\": \"Next\",\n      \"label\": \"It helps to turn to my partner in times of need.\",\n      \"options\": [\n        \"Strongly disagree\",\n        \"Disagree\",\n        \"Slightly disagree\",\n        \"Neutral\",\n        \"Slightly agree\",\n        \"Agree\",\n        \"Strongly agree\"\n      ],\n      \"scaleTitle\": \"You\",\n      \"scaleTitle2\": \"Your partner\",\n      \"type\": \"rating_scale\",\n      \"values\": [\n        7,\n        6,\n        5,\n        4,\n        3,\n        2,\n        1\n      ]\n    },\n    {\n      \"caption\": \"How much do you agree or disagree?\",\n      \"collect\": \"beloved\",\n      \"collect2\": \"pbeloved\",\n      \"defaultIndex\": 3,\n      \"done\": \"Next\",\n      \"label\": \"I need a lot of reassurance that I am loved by my partner.\",\n      \"options\": [\n        \"Strongly disagree\",\n        \"Disagree\",\n        \"Slightly disagree\",\n        \"Neutral\",\n        \"Slightly agree\",\n        \"Agree\",\n        \"Strongly agree\"\n      ],\n      \"required\": true,\n      \"scaleTitle\": \"You\",\n      \"scaleTitle2\": \"Your partner\",\n      \"type\": \"rating_scale\",\n      \"values\": [\n        1,\n        2,\n        3,\n        4,\n        5,\n        6,\n        7\n      ]\n    },\n    {\n      \"caption\": \"How much do you agree or disagree?\",\n      \"collect\": \"pullback\",\n      \"collect2\": \"ppullback\",\n      \"defaultIndex\": 3,\n      \"done\": \"Next\",\n      \"label\": \"I want to get close to my partner but I keep pulling back.\",\n      \"options\": [\n        \"Strongly disagree\",\n        \"Disagree\",\n        \"Slightly disagree\",\n        \"Neutral\",\n        \"Slightly agree\",\n        \"Agree\",\n        \"Strongly agree\"\n      ],\n      \"partner\": true,\n      \"required\": true,\n      \"scaleTitle\": \"You\",\n      \"scaleTitle2\": \"Your partner\",\n      \"type\": \"rating_scale\",\n      \"values\": [\n        1,\n        2,\n        3,\n        4,\n        5,\n        6,\n        7\n      ]\n    },\n    {\n      \"caption\": \"How much do you agree or disagree?\",\n      \"collect\": \"notwantclose\",\n      \"collect2\": \"pnotwantclose\",\n      \"defaultIndex\": 3,\n      \"done\": \"Next\",\n      \"label\": \"I find that my partner doesn't want to get as close as I would like.\",\n      \"options\": [\n        \"Strongly disagree\",\n        \"Disagree\",\n        \"Slightly disagree\",\n        \"Neutral\",\n        \"Slightly agree\",\n        \"Agree\",\n        \"Strongly agree\"\n      ],\n      \"partner\": true,\n      \"required\": true,\n      \"scaleTitle\": \"You\",\n      \"scaleTitle2\": \"Your partner\",\n      \"type\": \"rating_scale\",\n      \"values\": [\n        1,\n        2,\n        3,\n        4,\n        5,\n        6,\n        7\n      ]\n    },\n    {\n      \"caption\": \"How much do you agree or disagree?\",\n      \"collect\": \"partnercomfort\",\n      \"collect2\": \"ppartnercomfort\",\n      \"defaultIndex\": 3,\n      \"done\": \"Next\",\n      \"label\": \"I turn to my partner for many things including comfort and reassurance.\",\n      \"options\": [\n        \"Strongly disagree\",\n        \"Disagree\",\n        \"Slightly disagree\",\n        \"Neutral\",\n        \"Slightly agree\",\n        \"Agree\",\n        \"Strongly agree\"\n      ],\n      \"partner\": true,\n      \"required\": true,\n      \"scaleTitle\": \"You\",\n      \"scaleTitle2\": \"Your partner\",\n      \"type\": \"rating_scale\",\n      \"values\": [\n        7,\n        6,\n        5,\n        4,\n        3,\n        2,\n        1\n      ]\n    },\n    {\n      \"caption\": \"How much do you agree or disagree?\",\n      \"collect\": \"want_too_closed\",\n      \"collect2\": \"pwant_too_closed\",\n      \"defaultIndex\": 3,\n      \"done\": \"Next\",\n      \"label\": \"My desire to be very close sometimes scares people away.\",\n      \"options\": [\n        \"Strongly disagree\",\n        \"Disagree\",\n        \"Slightly disagree\",\n        \"Neutral\",\n        \"Slightly agree\",\n        \"Agree\",\n        \"Strongly agree\"\n      ],\n      \"partner\": true,\n      \"required\": true,\n      \"scaleTitle\": \"You\",\n      \"scaleTitle2\": \"Your partner\",\n      \"type\": \"rating_scale\",\n      \"values\": [\n        1,\n        2,\n        3,\n        4,\n        5,\n        6,\n        7\n      ]\n    },\n    {\n      \"caption\": \"How much do you agree or disagree?\",\n      \"collect\": \"avoid_too_close\",\n      \"collect2\": \"pavoid_too_close\",\n      \"defaultIndex\": 3,\n      \"done\": \"Next\",\n      \"label\": \"I try to avoid getting too close to my partner.\",\n      \"options\": [\n        \"Strongly disagree\",\n        \"Disagree\",\n        \"Slightly disagree\",\n        \"Neutral\",\n        \"Slightly agree\",\n        \"Agree\",\n        \"Strongly agree\"\n      ],\n      \"partner\": true,\n      \"required\": true,\n      \"scaleTitle\": \"You\",\n      \"scaleTitle2\": \"Your partner\",\n      \"type\": \"rating_scale\",\n      \"values\": [\n        1,\n        2,\n        3,\n        4,\n        5,\n        6,\n        7\n      ]\n    },\n    {\n      \"caption\": \"How much do you agree or disagree?\",\n      \"collect\": \"no_worry_adandoned\",\n      \"collect2\": \"pno_worry_adandoned\",\n      \"defaultIndex\": 3,\n      \"done\": \"Next\",\n      \"label\": \"I do not often worry about being abandoned.\",\n      \"options\": [\n        \"Strongly disagree\",\n        \"Disagree\",\n        \"Slightly disagree\",\n        \"Neutral\",\n        \"Slightly agree\",\n        \"Agree\",\n        \"Strongly agree\"\n      ],\n      \"partner\": true,\n      \"required\": true,\n      \"scaleTitle\": \"You\",\n      \"scaleTitle2\": \"Your partner\",\n      \"type\": \"rating_scale\",\n      \"values\": [\n        7,\n        6,\n        5,\n        4,\n        3,\n        2,\n        1\n      ]\n    },\n    {\n      \"caption\": \"How much do you agree or disagree?\",\n      \"collect\": \"discuss_problem\",\n      \"collect2\": \"pdiscuss_problem\",\n      \"defaultIndex\": 3,\n      \"done\": \"Next\",\n      \"label\": \"I usually discuss my problems and concerns with my partner.\",\n      \"options\": [\n        \"Strongly disagree\",\n        \"Disagree\",\n        \"Slightly disagree\",\n        \"Neutral\",\n        \"Slightly agree\",\n        \"Agree\",\n        \"Strongly agree\"\n      ],\n      \"partner\": true,\n      \"required\": true,\n      \"scaleTitle\": \"You\",\n      \"scaleTitle2\": \"Your partner\",\n      \"type\": \"rating_scale\",\n      \"values\": [\n        7,\n        6,\n        5,\n        4,\n        3,\n        2,\n        1\n      ]\n    },\n    {\n      \"caption\": \"How much do you agree or disagree?\",\n      \"collect\": \"frustrated\",\n      \"collect2\": \"pfrustrated\",\n      \"defaultIndex\": 3,\n      \"done\": \"Next\",\n      \"label\": \"I get frustrated if my partner is not available when I need them.\",\n      \"options\": [\n        \"Strongly disagree\",\n        \"Disagree\",\n        \"Slightly disagree\",\n        \"Neutral\",\n        \"Slightly agree\",\n        \"Agree\",\n        \"Strongly agree\"\n      ],\n      \"partner\": true,\n      \"required\": true,\n      \"scaleTitle\": \"You\",\n      \"scaleTitle2\": \"Your partner\",\n      \"type\": \"rating_scale\",\n      \"values\": [\n        1,\n        2,\n        3,\n        4,\n        5,\n        6,\n        7\n      ]\n    },\n    {\n      \"caption\": \"How much do you agree or disagree?\",\n      \"collect\": \"nervous_too_close\",\n      \"collect2\": \"pnervous_too_close\",\n      \"defaultIndex\": 3,\n      \"done\": \"Next\",\n      \"label\": \"I am nervous when my partner gets too close to me.\",\n      \"options\": [\n        \"Strongly disagree\",\n        \"Disagree\",\n        \"Slightly disagree\",\n        \"Neutral\",\n        \"Slightly agree\",\n        \"Agree\",\n        \"Strongly agree\"\n      ],\n      \"partner\": true,\n      \"required\": true,\n      \"scaleTitle\": \"You\",\n      \"scaleTitle2\": \"Your partner\",\n      \"type\": \"rating_scale\",\n      \"values\": [\n        1,\n        2,\n        3,\n        4,\n        5,\n        6,\n        7\n      ]\n    },\n    {\n      \"caption\": \"How much do you agree or disagree?\",\n      \"collect\": \"worry_no_care\",\n      \"collect2\": \"pworry_no_care\",\n      \"defaultIndex\": 3,\n      \"done\": \"Next\",\n      \"label\": \"I worry that my partner won't care about me as much as I care about them.\",\n      \"options\": [\n        \"Strongly disagree\",\n        \"Disagree\",\n        \"Slightly disagree\",\n        \"Neutral\",\n        \"Slightly agree\",\n        \"Agree\",\n        \"Strongly agree\"\n      ],\n      \"partner\": true,\n      \"required\": true,\n      \"scaleTitle\": \"You\",\n      \"scaleTitle2\": \"Your partner\",\n      \"type\": \"rating_scale\",\n      \"values\": [\n        1,\n        2,\n        3,\n        4,\n        5,\n        6,\n        7\n      ]\n    },\n    {\n      \"body\": \"We measure how secure you are based on your levels of anxiety and emotional avoidance. Based on what you've told us,\",\n      \"bodyBold\": \"Your total score was <total_score> and your most common score was <common_score>.\",\n      \"bodyColor\": \"warmGrey\",\n      \"collect\": \"info_attachment_result\",\n      \"footnotes\": \"You'll learn more about what this means for your relationship as you explore Relish.\",\n      \"headerBackgroundImage\": \"onboard_grey\",\n      \"label\": \"Your Initial Results\",\n      \"textAlign\": \"center\",\n      \"type\": \"attachment_result\"\n    }\n  ]\n}\n"
  },
  {
    "path": "src/index.css",
    "content": "body {\n    margin: 0;\n    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto',\n        'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans',\n        'Helvetica Neue', sans-serif;\n    -webkit-font-smoothing: antialiased;\n    -moz-osx-font-smoothing: grayscale;\n    letter-spacing: 0.5px;\n}\n\ncode {\n    font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',\n        monospace;\n}\n\nh1,\nh2,\nh3 {\n    font-family: 'Helvetica Neue';\n    font-weight: 600;\n    letter-spacing: 0.5px;\n}\n\n.btn,\n.btn-dark,\n.btn-check:focus + .btn-dark,\n.btn-dark:focus,\n.btn-check:focus + .btn,\n.btn:focus {\n    border: none;\n    box-shadow: none;\n}\n\n.btn-dark:hover {\n    background: #212529;\n}\n\n.bg-primary,\n.btn-light {\n    letter-spacing: 0.7px;\n}\n"
  },
  {
    "path": "src/index.js",
    "content": "import React from \"react\";\nimport ReactDOM from \"react-dom/client\";\nimport reportWebVitals from \"./reportWebVitals\";\nimport \"bootstrap/dist/css/bootstrap.min.css\";\nimport \"./index.css\";\nimport App from \"./App\";\nimport App1 from \"./App\";\n\nconst root = ReactDOM.createRoot(document.getElementById(\"root\"));\nroot.render(\n  <React.StrictMode>\n    <App1 />\n  </React.StrictMode>\n);\n\n// If you want to start measuring performance in your app, pass a function\n// to log results (for example: reportWebVitals(console.log))\n// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals\nreportWebVitals();\n"
  },
  {
    "path": "src/reportWebVitals.js",
    "content": "const reportWebVitals = onPerfEntry => {\n  if (onPerfEntry && onPerfEntry instanceof Function) {\n    import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {\n      getCLS(onPerfEntry);\n      getFID(onPerfEntry);\n      getFCP(onPerfEntry);\n      getLCP(onPerfEntry);\n      getTTFB(onPerfEntry);\n    });\n  }\n};\n\nexport default reportWebVitals;\n"
  },
  {
    "path": "src/setupTests.js",
    "content": "// jest-dom adds custom jest matchers for asserting on DOM nodes.\n// allows you to do things like:\n// expect(element).toHaveTextContent(/react/i)\n// learn more: https://github.com/testing-library/jest-dom\nimport '@testing-library/jest-dom';\n"
  }
]