{"version":3,"sources":["webpack://alliance-for-young-artists-and-writers/./src/assets/images/uploads/home-feature-sample-3.jpg","webpack://alliance-for-young-artists-and-writers/./src/pages/scholarships.js"],"names":["Scholarships","data","useState","openSection","setOpenSection","toggleSection","title","description","awardsMenu","menuItems","role","id","aria-label","name","style","display","nodes","map","menuItem","i","key","Link","to","path","tabIndex","aria-haspopup","aria-expanded","label","className","backgroundImage","StaticBG","allDirectScholarship","edges","length","callout","node","slug","src","featuredImage","localFile","childImageSharp","resize","alt","dangerouslySetInnerHTML","__html","excerpt","console","error","allTuitionScholarship","width","height"],"mappings":"8PAAA,EAAe,IAA0B,oECQ1B,SAASA,EAAT,GAAiC,IAATC,EAAQ,EAARA,KAErC,GAAsCC,eAAS,GAAxCC,EAAP,KAAoBC,EAApB,KAIF,OACE,gBAAC,IAAD,CAAQC,cAJc,WACpBD,GAAgBD,KAIN,gBAAC,IAAD,CACNG,MAAM,eACNC,YAAY,6FAEbN,EAAKO,WAAWC,UACf,uBACAC,KAAK,aACHC,GAAG,cACHC,aAAYX,EAAKO,WAAWK,KAC5BC,OAAuB,IAAhBX,EAAuB,CAAEY,QAAS,SAAY,MAErD,0BACGd,EAAKO,WAAWC,UAAUO,MAAMC,KAAI,SAACC,EAAUC,GAC9C,OACE,sBAAIC,IAAKD,EAAGT,KAAK,QACf,gBAAC,EAAAW,KAAD,CACED,IAAKF,EAASP,GACdW,GAAIJ,EAASK,KACbC,SAAS,IACTd,KAAK,WACLe,gBAAc,OACdC,gBAAc,SAEbR,EAASS,aAOpB,KACJ,uBAAKC,UAAU,UACb,2BACEjB,GAAG,eACHG,MAAO,CAAEe,gBAAiB,OAASC,EAAW,MAE9C,uBAAKnB,GAAG,wBAAR,6FAIF,2BAASA,GAAG,cAAciB,UAAU,YAClC,uBAAKA,UAAU,QACX,0CAEE,2BAASjB,GAAG,oBAClB,0DACA,0BAC8C,IAA3CV,EAAK8B,qBAAqBC,MAAMC,OAC/B,oDAEAhC,EAAK8B,qBAAqBC,MAAMf,KAAI,SAAAiB,GAAY,IAAD,UAC7C,OAAKA,GAAYA,EAAQC,KAKvB,sBAAIf,IAAKc,EAAQC,KAAKxB,IACpB,gBAAC,EAAAU,KAAD,CAAMC,GAAIY,EAAQC,KAAKC,MACrB,uBACEC,KACE,UAAAH,EAAQC,KAAKG,qBAAb,mBAA4BH,YAA5B,mBAAkCI,iBAAlC,mBAA6CC,uBAA7C,mBAA8DC,cAA9D,eAAsEJ,MAAO,oBAE/EK,IAAI,KAEN,wBAAMd,UAAU,SAASM,EAAQC,KAAK7B,OACtC,wBACEsB,UAAU,OACVe,wBAAyB,CAAEC,OAAQV,EAAQC,KAAKU,cAftDC,QAAQC,MAAM,qBAAsBb,GAC7B,WA+CT,2BAASvB,GAAG,oBACV,kDACE,0BACGV,EAAK+C,sBAAsBhB,MAAMf,KAAI,SAAAiB,GAAO,OACzC,sBAAId,IAAKc,EAAQC,KAAKxB,IAClB,gBAAC,EAAAU,KAAD,CAAMC,GAAKY,EAAQC,KAAKC,MACtB,uBACEC,IACEH,EAAQC,KAAKG,cAAcH,KAAKI,UAAUC,gBAAgBC,OAAOJ,IAEnEY,MAAM,MACNC,OAAO,MACPR,IAAI,KAEN,wBAAMd,UAAU,SAASM,EAAQC,KAAK7B,OACtC,wBAAMsB,UAAU,OAAOe,wBAAyB,CAACC,OAAQV,EAAQC,KAAKU","file":"component---src-pages-scholarships-js-e8b6fa5a681ca216b952.js","sourcesContent":["export default __webpack_public_path__ + \"static/home-feature-sample-3-450421a3f7a5a8dd4b5cb69defe1efa7.jpg\";","import React, { useState } from \"react\"\n\nimport { Link, graphql } from \"gatsby\"\nimport Layout from \"../components/layout\"\nimport Seo from \"../components/seo\"\n\nimport StaticBG from \"../assets/images/uploads/home-feature-sample-3.jpg\"\n\nexport default function Scholarships({ data }) {\n\n const [openSection, setOpenSection] = useState(false)\n const toggleSection = () => {\n setOpenSection(!openSection)\n }\nreturn(\n \n \n {data.awardsMenu.menuItems ? (\n \n
    \n {data.awardsMenu.menuItems.nodes.map((menuItem, i) => {\n return (\n
  • \n \n {menuItem.label}\n \n
  • \n )\n })}\n
\n \n ) : null}\n
\n \n
\n Receive scholarships, cash awards, or tuition assistance by participating in the Awards!\n
\n \n
\n
\n

Scholarships

\n\n
\n

Scholarships and Cash Awards

\n
    \n {data.allDirectScholarship.edges.length === 0 ? (\n
  • No scholarships found.
  • \n ) : (\n data.allDirectScholarship.edges.map(callout => {\n if (!callout || !callout.node) {\n console.error('Missing node data:', callout);\n return null; // Skip this item if node data is missing\n }\n return (\n
  • \n \n \n {callout.node.title}\n \n \n
  • \n );\n })\n )}\n
\n
\n\n\n {/*
\n

Scholarships and Cash Awards

\n
    \n {data.allDirectScholarship.edges.map(callout => (\n
  • \n \n \n {callout.node.title}\n \n \n
  • \n ))}\n
\n
*/}\n\n\n
\n

Tuition Scholarships

\n
    \n {data.allTuitionScholarship.edges.map(callout => (\n
  • \n \n \n {callout.node.title}\n \n \n
  • \n ))}\n
\n
\n
\n
\n
\n
\n )\n}\n\n\n\nexport const query = graphql`\n{ \n allDirectScholarship: allWpScholarship(filter: {scholarshipTypes: {nodes: {elemMatch: {name: {eq: \"Direct Scholarships\"}}}}}) {\n edges {\n node {\n id\n title\n excerpt\n slug\n featuredImage {\n node {\n id\n localFile {\n childImageSharp {\n id\n resize(width: 400, height: 400, cropFocus: ATTENTION) {\n src\n }\n }\n }\n }\n }\n }\n }\n }\n allTuitionScholarship: allWpScholarship(filter: {scholarshipTypes: {nodes: {elemMatch: {name: {eq: \"Tuition Scholarships\"}}}}}) {\n edges {\n node {\n id\n title\n excerpt\n slug\n featuredImage {\n node {\n id\n localFile {\n childImageSharp {\n id\n resize(width: 400, height: 400, cropFocus: ATTENTION) {\n src\n }\n }\n }\n }\n }\n }\n }\n }\n awardsMenu: wpMenu(slug: { eq: \"awards\" }) {\n name\n menuItems {\n nodes {\n label\n url\n path\n connectedNode {\n node {\n ... on WpContentNode {\n uri\n }\n }\n }\n }\n }\n }\n }\n`"],"sourceRoot":""}