{"version":3,"sources":["webpack:///./src/service/instagram.js","webpack:///./src/views/user/instagramAuth.vue","webpack:///src/views/user/instagramAuth.vue","webpack:///./src/views/user/instagramAuth.vue?ad5c","webpack:///./src/views/user/instagramAuth.vue?64c9"],"names":["axios","create","baseURL","requestAccess","code","payload","redirect_uri","post","getFotoForId","id","token","get","getPaginationPhotos","render","_vm","this","_self","_c","_m","staticRenderFns","staticClass","_v","data","methods","localStorage","setItem","serviceInstagram","then","resp","recebido","console","log","access_token","user_id","$router","push","catch","err","beforeMount","tempCode","$route","query","queryCode","replace","requestAPI","error","component"],"mappings":"gHAAA,yBAE4BA,IAAMC,OAAO,CACvCC,QAAS,8BAEI,QACbC,cAAcC,GACZ,MAAMC,EAAU,CACdC,aAAc,sDACdF,QAEF,OAAOJ,IAAMO,KACX,kDACAF,IAGJG,aAAaC,EAAIC,GACf,OAAOV,IAAMW,IACX,8BAA8BF,sDAAuDC,MAGzFE,oBAAoBF,GAClB,OAAOV,IAAMW,IACX,sEAAsED,M,yCCvB5E,IAAIG,EAAS,WAAkB,IAAIC,EAAIC,KAAQD,EAAIE,MAAMC,GAAG,OAAOH,EAAII,GAAG,IAEtEC,EAAkB,CAAC,WAAY,IAAIL,EAAIC,KAAKE,EAAGH,EAAIE,MAAMC,GAAG,OAAOA,EAAG,MAAM,CAACA,EAAG,MAAM,CAACG,YAAY,uBAAuB,CAACH,EAAG,MAAM,CAACG,YAAY,yBAAyB,CAACN,EAAIO,GAAG,gBAAgBJ,EAAG,MAAM,CAACG,YAAY,0BAA0B,CAACN,EAAIO,GAAG,gC,wBCW/O,GACfC,OACA,OACAlB,KAAA,OAGAmB,QAAA,CACA,iBAAAnB,GAMAoB,aAAAC,QAAA,UAAArB,SACAsB,OACAvB,cAAAC,GACAuB,KAAAC,IACA,IAAAC,EAAAD,EACAE,QAAAC,IAAA,CAAAH,SACAJ,aAAAC,QAAA,WAAAI,EAAAG,cACAR,aAAAC,QAAA,YAAAI,EAAAI,SACA,KAAAC,QAAAC,KAAA,2BAEAC,MAAAC,IACAP,QAAAC,IAAA,qBAAAM,GACA,KAAAH,QAAAC,KAAA,8BAIAG,cACA,MAAAC,EAAA,KAAAC,OAAAC,MAAArC,KACA,GAAAmC,EAAA,CACA,IAAAG,EAAAH,EAAAI,QAAA,MACA,KAAAC,WAAAF,QAEAZ,QAAAe,MAAA,gCACA,KAAAX,QAAAC,KAAA,4BCjDkP,I,YCO9OW,EAAY,eACd,EACAjC,EACAM,GACA,EACA,KACA,KACA,MAIa,aAAA2B,E","file":"js/chunk-56209f7a.16944223.js","sourcesContent":["import axios from \"axios\";\n\nexport const instagramApi = axios.create({\n baseURL: \"https://api.instagram.com\",\n});\nexport default {\n requestAccess(code) {\n const payload = {\n redirect_uri: \"https://mobile.photonow.com.br/user/auth-instagram/\",\n code,\n };\n return axios.post(\n `https://photo-now-api.onrender.com/access_token`,\n payload\n );\n },\n getFotoForId(id, token) {\n return axios.get(\n `https://graph.facebook.com/${id}?fields=media_url,media_type,caption&access_token=${token}`\n );\n },\n getPaginationPhotos(token) {\n return axios.get(\n `https://graph.facebook.com/me/media?fields=id,caption&access_token=${token}`\n );\n },\n};\n","var render = function render(){var _vm=this,_c=_vm._self._c;return _vm._m(0)\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',[_c('div',{staticClass:\"text-center mx-auto\"},[_c('div',{staticClass:\"text-gray-300 text-sm\"},[_vm._v(\"Carregando\")]),_c('div',{staticClass:\"text-gray-700 text-2xl\"},[_vm._v(\"Revele seus momentos\")])])])\n}]\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./instagramAuth.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./instagramAuth.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./instagramAuth.vue?vue&type=template&id=68ec332e\"\nimport script from \"./instagramAuth.vue?vue&type=script&lang=js\"\nexport * from \"./instagramAuth.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}