{"version":3,"sources":["webpack://alliance-for-young-artists-and-writers/./src/components/gallery-widget.js","webpack://alliance-for-young-artists-and-writers/./src/assets/images/gallery-placeholders/videoGameDesign1.jpg","webpack://alliance-for-young-artists-and-writers/./src/components/gallery/gallery-card.js","webpack://alliance-for-young-artists-and-writers/./src/components/gallery/gallery-data.js","webpack://alliance-for-young-artists-and-writers/./src/components/home-callout.js","webpack://alliance-for-young-artists-and-writers/./src/assets/images/uploads/home-feature-sample-1.jpg","webpack://alliance-for-young-artists-and-writers/./src/assets/images/uploads/home-feature-sample-2.jpg","webpack://alliance-for-young-artists-and-writers/./src/assets/images/uploads/home-feature-sample-3.png","webpack://alliance-for-young-artists-and-writers/./src/assets/images/uploads/home-feature-sample-4.jpg","webpack://alliance-for-young-artists-and-writers/./src/pages/index.js"],"names":["GalleryEndpoints","state","work","students","getStudents","winners","personName","concat","collaborators","setState","componentDidMount","this","props","id","console","log","categoryName","workId","String","isOldApi","length","fetch","process","headers","Accept","then","response","json","responseJson","catch","error","render","Location","location","assetType","className","Link","oldLocation","JSON","parse","stringify","title","to","src","thumbUrl","alt","VgLogo","isArt","isFutureNew","isWriting","style","backgroundColor","writingColor","position","top","left","excerpt","width","height","zIndex","background","Component","galleryWidgetRandom","galleryRandom","galleryRandomNoPage","byLines","MenuHero","StaticQuery","query","data","aria-label","allWpMenu","nodes","menuItems","map","menuItem","i","key","role","path","label","backgroundImage","useState","openSection","setOpenSection","toggleSection","isHomePage","description","site","siteMetadata","href","imgFeature1","imgFeature2","imgFeature3","imgFeature4"],"mappings":"mMAKqBA,uB,yFCLrB,EAAe,IAA0B,+D,UC4OzC,EAxOA,oJACEC,MAAQ,CACNC,KAAM,GACNC,SAAU,IAHd,EAMEC,YAAc,SAAAF,GACZ,IAAIG,EAAU,CAACH,EAAKI,YAAYC,OAAOL,EAAKM,eAC5C,EAAKC,SAAS,CAAEN,SAAUE,KAR9B,0CAYEK,kBAAA,WAAqB,IAAD,OAClB,GAAKC,KAAKC,MAAMV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J,gBAAC,EAAD,MAIA,2BAASA,GAAG,iBACf,0BACC,0BACC,gBAAC,IAAD,CAAc6E,KAAK,sCAClB,uBAAK/C,IAAKgD,EAAalC,MAAM,MAAMC,OAAO,MAAMb,IAAI,0BACpD,wBAAMV,UAAU,WAAU,yDAG5B,0BACC,gBAAC,EAAAC,KAAD,CAAMM,GAAG,YACR,uBAAKC,IAAKiD,EAAanC,MAAM,MAAMC,OAAO,MAAMb,IAAI,0BACpD,wBAAMV,UAAU,WAAU,sDAG5B,0BACC,gBAAC,EAAAC,KAAD,CAAMM,GAAG,iBACR,uBAAKC,IAAKkD,EAAapC,MAAM,MAAMC,OAAO,MAAMb,IAAI,0BACpD,wBAAMV,UAAU,WAAU,2DAG5B,0BACM,gBAAC,IAAD,CAAcuD,KAAK,qCACvB,uBAAK/C,IAAKmD,EAAarC,MAAM,MAAMC,OAAO,MAAMb,IAAI,0BACpD,wBAAMV,UAAU,WAAU","file":"component---src-pages-index-js-73fef99b00265f564fa8.js","sourcesContent":["import React, { Component } from \"react\"\nimport { Link } from \"gatsby\"\nimport GalleryCard from \"./gallery/gallery-card\"\nimport GalleryEndpoints from \"./gallery/gallery-data\"\n\nconst galleryQuery = GalleryEndpoints.galleryWidgetRandom\n\nconst writingColorArray = [\n \"rgba(69, 148, 61, 1)\",\n \"rgba(243, 120, 54, .8)\",\n \"rgba(229, 81, 45, 1)\",\n \"rgba(46, 146, 153, 1)\",\n \"rgba(46, 147, 154, 1)\",\n \"rgba(44, 132, 201, 1)\"\n]\n\nexport class GalleryWidget extends Component {\n state = {\n works: [],\n endpoints: GalleryEndpoints\n }\n\n componentDidMount() {\n const worksArray = [];\n\n let randomPage = Math.floor(Math.random() * Math.floor(20));\n const galleryQuery = GalleryEndpoints.galleryRandomNoPage + String(0) \n fetch(process.env.GATSBY_ORS_GALLERY + galleryQuery)\n .then(response => response.json())\n .then(responseJson => {\n let i = 0\n for(i = 0; i < 3; i++) {\n worksArray.push(responseJson.arts.works[i])\n }\n let randomNum = Math.floor(Math.random() * Math.floor(4));\n\n worksArray.splice(randomNum, 0, responseJson.writings.works[0]);\n\n this.setState({ works: worksArray })\n })\n .catch(error => {\n console.log(\"error\", error)\n })\n }\n\n render() {\n return (\n \n