(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[3],{0:function(e,t){},1:function(e,t,i){e.exports=i("2f39")},"12cb":function(e,t,i){"use strict";i.r(t);var n=i("923f"),a=i("9a86");t["default"]={"en-us":n["default"],it:a["default"]}},"2f39":function(e,t,i){"use strict";i.r(t);var n={};i.r(n),i.d(n,"someGetter",(function(){return k}));var a={};i.r(a),i.d(a,"setUser",(function(){return L})),i.d(a,"setStatus",(function(){return q})),i.d(a,"setAuth",(function(){return T})),i.d(a,"setAvatar",(function(){return G})),i.d(a,"currentProfile",(function(){return U})),i.d(a,"updateCurrentAvatar",(function(){return M})),i.d(a,"openLogin",(function(){return F}));var o={};i.r(o),i.d(o,"signIn",(function(){return $})),i.d(o,"fetchUser",(function(){return Y})),i.d(o,"Authenticated",(function(){return J})),i.d(o,"signOut",(function(){return Z}));var r={};i.r(r),i.d(r,"someGetter",(function(){return te}));var s={};i.r(s),i.d(s,"setCurrentActivity",(function(){return ie})),i.d(s,"setCurrentActivityId",(function(){return ne})),i.d(s,"setDefaultActivity",(function(){return ae})),i.d(s,"setCodes",(function(){return oe}));var c={};i.r(c),i.d(c,"getDefault",(function(){return re})),i.d(c,"getCodes",(function(){return ce}));var u={};i.r(u),i.d(u,"someGetter",(function(){return pe}));var l={};i.r(l),i.d(l,"setLeft",(function(){return me})),i.d(l,"setCurrentId",(function(){return fe})),i.d(l,"setCurrentPage",(function(){return ve})),i.d(l,"setPublished",(function(){return he})),i.d(l,"setEditor",(function(){return ge}));var d={};i.r(d),i.d(d,"open",(function(){return be}));var p={};i.r(p),i.d(p,"someGetter",(function(){return Ie}));var m={};i.r(m),i.d(m,"setError",(function(){return Pe})),i.d(m,"setSuccess",(function(){return Ae})),i.d(m,"emptyNotification",(function(){return ze}));var f={};i.r(f),i.d(f,"open",(function(){return Ce}));var v=i("a34a"),h=i.n(v),g=(i("a481"),i("96cf"),i("c973")),b=i.n(g),y=(i("5c7d"),i("1194"),i("573e"),i("e54f"),i("985d"),i("4e2f"),i("31cd"),i("1d88"),i("2b0e")),_=i("b05d"),w=i("515f"),I=i("2a19"),P=i("436b"),A=i("1b3f");y["default"].use(_["a"],{config:{},plugins:{Cookies:w["a"],Notify:I["a"],Dialog:P["a"],LoadingBar:A["a"]}});var z=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{attrs:{id:"q-app"}},[i("router-view")],1)},C=[],R={name:"App"},x=R,E=i("2877"),S=Object(E["a"])(x,z,C,!1,null,null,null),N=S.exports,O=i("2f62"),D={isAuthenticated:!1,user:{},status:"",currentProfile:{},loginForm:!1,loginTitle:null,loginSubtitle:null,loginComponent:null,loginClose:!0,avatar:null};function k(){}function L(e,t){e.user=t}function q(e,t){e.status=t}function T(e,t){e.isAuthenticated=t}function G(e,t){e.avatar=t}function U(e,t){e.currentProfile=t}function M(e,t){e.currentProfile.avatar=t}function F(e,t){e.loginForm=t.open,e.loginTitle=t.title,e.loginSubtitle=t.subtitle,e.loginComponent=t.component,e.loginClose=t.close}var V=i("00bd");function $(e,t){return j.apply(this,arguments)}function j(){return j=b()(h.a.mark((function e(t,i){var n;return h.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,V["Auth"].signIn(i.username,i.password);case 3:return n=e.sent,e.next=6,B(t,n);case 6:e.next=11;break;case 8:e.prev=8,e.t0=e["catch"](0),t.commit("setStatus",e.t0);case 11:case"end":return e.stop()}}),e,null,[[0,8]])}))),j.apply(this,arguments)}function B(e,t){return K.apply(this,arguments)}function K(){return K=b()(h.a.mark((function e(t,i){var n,a,o,r;return h.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n='query user($email: AWSEmail!){\n getUser(filter: {email: $email}){\n _id\n email\n name\n preferred_username\n family_name\n image\n avatar\n createdAt\n totalDone\n rateDone\n activities {\n _id\n }\n editors {\n _id\n }\n admins {\n _id\n }\n reviewsDone {\n activity{\n _id\n }\n }\n notifications(limit: 15, sort: [{field: "createdAt", direction: -1}]){\n _id\n text\n url\n read\n createdAt\n activity {\n name\n }\n }\n }\n }',e.next=3,V["API"].graphql({query:n,variables:{email:i.attributes.email},authMode:"AMAZON_COGNITO_USER_POOLS"});case 3:if(a=e.sent,!a.data.getUser.avatar){e.next=11;break}return r="users/".concat(a.data.getUser._id,"/avatar/").concat(a.data.getUser.avatar),e.next=8,V["Storage"].get(r);case 8:o=e.sent,e.next=12;break;case 11:o="https://cdn.quasar.dev/img/avatar.png";case 12:return t.commit("setAvatar",o),t.commit("setUser",a.data.getUser),t.commit("setStatus","success"),t.commit("setAuth",!0),e.abrupt("return",a);case 17:case"end":return e.stop()}}),e)}))),K.apply(this,arguments)}function Y(e,t){return H.apply(this,arguments)}function H(){return H=b()(h.a.mark((function e(t,i){var n,a;return h.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n="query user($id: ID){\n getUser(filter: {_id: $id}){\n _id\n email\n name\n preferred_username\n family_name\n country\n city\n description\n image\n avatar\n createdAt\n totalDone\n rateDone\n activities {\n _id\n }\n editors {\n _id\n }\n admins {\n _id\n }\n }\n }",e.next=3,V["API"].graphql({query:n,variables:{id:i},authMode:"AWS_IAM"});case 3:a=e.sent,t.commit("currentProfile",a.data.getUser);case 5:case"end":return e.stop()}}),e)}))),H.apply(this,arguments)}function J(e){return X.apply(this,arguments)}function X(){return X=b()(h.a.mark((function e(t){var i;return h.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,V["Auth"].currentAuthenticatedUser();case 3:return i=e.sent,e.next=6,B(t,i);case 6:e.next=11;break;case 8:e.prev=8,e.t0=e["catch"](0),t.commit("setStatus",e.t0);case 11:case"end":return e.stop()}}),e,null,[[0,8]])}))),X.apply(this,arguments)}function Z(e){return W.apply(this,arguments)}function W(){return W=b()(h.a.mark((function e(t){return h.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:V["Auth"].signOut().then((function(){t.commit("setUser",{}),t.commit("setStatus",""),t.commit("setAuth",!1)})).catch((function(e){t.commit("setStatus",e)}));case 1:case"end":return e.stop()}}),e)}))),W.apply(this,arguments)}var Q={namespaced:!0,getters:n,mutations:a,actions:o,state:D},ee={currentActivity:{},currentActivityId:null,defaultActivity:{},codes:[]};function te(){}function ie(e,t){e.currentActivity=t}function ne(e,t){e.currentActivityId=t}function ae(e,t){e.defaultActivity=t}function oe(e,t){e.codes=t}function re(e,t){return se.apply(this,arguments)}function se(){return se=b()(h.a.mark((function e(t,i){var n,a;return h.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n="query getActivity($owner: ID){\n getActivity(filter: {owner: $owner, default: true}){\n _id\n name\n publish\n createdAt\n }\n }",e.prev=1,e.next=4,V["API"].graphql({query:n,variables:{owner:i}});case 4:a=e.sent,t.commit("setDefaultActivity",a.data.getActivity),e.next=11;break;case 8:e.prev=8,e.t0=e["catch"](1),t.commit("setDefaultActivity",null);case 11:case"end":return e.stop()}}),e,null,[[1,8]])}))),se.apply(this,arguments)}function ce(e,t){return ue.apply(this,arguments)}function ue(){return ue=b()(h.a.mark((function e(t,i){var n,a;return h.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n='query listCodes($id: ID!) {\n listCodes(filter: {owner: $id}, sort: [{field: "used", direction: 1}, {field: "createdAt", direction: -1}]) {\n _id\n status\n used\n email\n createdAt\n }\n }',e.prev=1,e.next=4,V["API"].graphql({query:n,variables:{id:i}});case 4:a=e.sent,t.commit("setCodes",a.data.listCodes),e.next=11;break;case 8:e.prev=8,e.t0=e["catch"](1),t.commit("setCodes",[]);case 11:case"end":return e.stop()}}),e,null,[[1,8]])}))),ue.apply(this,arguments)}var le={namespaced:!0,getters:r,mutations:s,actions:c,state:ee},de={left:!1,currentId:null,currentPage:null,published:!1,editor:!1};function pe(){}function me(e,t){e.left=t}function fe(e,t){e.currentId=t}function ve(e,t){e.currentPage=t}function he(e,t){e.published=t}function ge(e,t){e.editor=t}function be(e,t){return ye.apply(this,arguments)}function ye(){return ye=b()(h.a.mark((function e(t,i){return h.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.commit("setLeft",i.left),t.commit("setCurrentId",i.currentId),t.commit("setCurrentPage",i.currentPage),t.commit("setPublished",i.published);case 4:case"end":return e.stop()}}),e)}))),ye.apply(this,arguments)}var _e={namespaced:!0,getters:u,mutations:l,actions:d,state:de},we={type:"error",msg:"",active:!1};function Ie(){}function Pe(e,t){e.msg=t,e.type="error",e.active=!0}function Ae(e,t){e.msg=t,e.type="done",e.active=!0}function ze(e){e.msg="",e.type="done",e.active=!1}function Ce(e,t){return Re.apply(this,arguments)}function Re(){return Re=b()(h.a.mark((function e(t,i){return h.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.commit("setLeft",i.left),t.commit("setCurrentId",i.currentId),t.commit("setCurrentPage",i.currentPage),t.commit("setPublished",i.published);case 4:case"end":return e.stop()}}),e)}))),Re.apply(this,arguments)}var xe={namespaced:!0,getters:p,mutations:m,actions:f,state:we};y["default"].use(O["a"]);var Ee=function(){var e=new O["a"].Store({modules:{users:Q,activities:le,drawer:_e,notification:xe},strict:!1});return e},Se=i("8c4f"),Ne=[{path:"/",component:function(){return Promise.all([i.e(0),i.e(1),i.e(2)]).then(i.bind(null,"ea2a"))},children:[{path:"",component:function(){return Promise.all([i.e(0),i.e(1),i.e(14)]).then(i.bind(null,"8b24"))}},{path:"state",component:function(){return Promise.all([i.e(0),i.e(30)]).then(i.bind(null,"750a"))}},{path:"about",component:function(){return Promise.all([i.e(0),i.e(9)]).then(i.bind(null,"a1d1"))}},{path:"contact",component:function(){return Promise.all([i.e(0),i.e(10)]).then(i.bind(null,"9bdf"))}},{path:"terms-conditions",component:function(){return i.e(19).then(i.bind(null,"c821"))}},{path:"privacy",component:function(){return i.e(27).then(i.bind(null,"070f"))}},{path:"promotions",component:function(){return Promise.all([i.e(0),i.e(1),i.e(16)]).then(i.bind(null,"92b5"))}},{path:"rankings",component:function(){return Promise.all([i.e(0),i.e(1),i.e(17)]).then(i.bind(null,"d59d"))}},{path:"search",component:function(){return Promise.all([i.e(0),i.e(1),i.e(29)]).then(i.bind(null,"5c65"))}},{path:"auth",component:function(){return i.e(26).then(i.bind(null,"21f3"))}},{path:"register",component:function(){return Promise.all([i.e(0),i.e(28)]).then(i.bind(null,"56b4"))}},{path:"create/activity",name:"createActivity",meta:{requiresAuth:!0},component:function(){return Promise.all([i.e(0),i.e(1),i.e(5)]).then(i.bind(null,"e13f"))}},{path:"activities/:id",name:"activity",component:function(){return Promise.all([i.e(0),i.e(1),i.e(6)]).then(i.bind(null,"77ef"))}},{path:"reviews/:id",name:"review",component:function(){return Promise.all([i.e(0),i.e(1),i.e(18)]).then(i.bind(null,"1f3e"))}},{path:"users/:id",name:"profile",component:function(){return Promise.all([i.e(0),i.e(1),i.e(15)]).then(i.bind(null,"2ff9"))},meta:{requiresAuth:!0,owner:!0}},{path:"users/:id/edit",name:"editProfile",component:function(){return Promise.all([i.e(0),i.e(1),i.e(12)]).then(i.bind(null,"d4a8"))},meta:{requiresAuth:!0,owner:!0}},{path:"users/:id/activities",name:"userActivities",component:function(){return Promise.all([i.e(0),i.e(1),i.e(31)]).then(i.bind(null,"6b16"))},meta:{requiresAuth:!0,owner:!0}},{path:"create/review/:id?",name:"createReview",component:function(){return Promise.all([i.e(0),i.e(1),i.e(7)]).then(i.bind(null,"c3b5"))},meta:{requiresAuth:!0}},{path:"create/activity/success",name:"successOnCreateActivity",component:function(){return Promise.all([i.e(0),i.e(11)]).then(i.bind(null,"bf4a"))},meta:{requiresAuth:!0,fromRequest:"createActivity"}}]},{path:"/activities/:id/",component:function(){return Promise.all([i.e(0),i.e(1),i.e(8)]).then(i.bind(null,"fdef1"))},children:[{path:"edit",name:"editActivity",component:function(){return Promise.all([i.e(0),i.e(1),i.e(22)]).then(i.bind(null,"d9c7"))},meta:{requiresAuth:!0,admin:!0}},{path:"codes",name:"manageCodes",component:function(){return Promise.all([i.e(0),i.e(1),i.e(23)]).then(i.bind(null,"69a3"))},meta:{requiresAuth:!0,editor:!0}},{path:"reviews",name:"manageReviews",component:function(){return Promise.all([i.e(0),i.e(1),i.e(25)]).then(i.bind(null,"bc18"))},meta:{requiresAuth:!0,editor:!0}},{path:"promotions",name:"managePromotions",component:function(){return Promise.all([i.e(0),i.e(1),i.e(24)]).then(i.bind(null,"c163"))},meta:{requiresAuth:!0,admin:!0}},{path:"promotions/create/:promotionId?",name:"createPromotion",component:function(){return Promise.all([i.e(0),i.e(1),i.e(21)]).then(i.bind(null,"a7bf"))},meta:{requiresAuth:!0,admin:!0}},{path:"images",name:"manageImages",component:function(){return Promise.all([i.e(0),i.e(1),i.e(32)]).then(i.bind(null,"3949"))},meta:{requiresAuth:!0,editor:!0}},{path:"roles",name:"roles",component:function(){return Promise.all([i.e(0),i.e(1),i.e(33)]).then(i.bind(null,"a866"))},meta:{requiresAuth:!0,admin:!0}},{path:"roles/add",name:"addRoles",component:function(){return Promise.all([i.e(0),i.e(1),i.e(20)]).then(i.bind(null,"3abe"))},meta:{requiresAuth:!0,admin:!0}}]}];Ne.push({path:"*",component:function(){return Promise.all([i.e(0),i.e(1),i.e(2)]).then(i.bind(null,"ea2a"))},children:[{path:"",component:function(){return Promise.all([i.e(0),i.e(13)]).then(i.bind(null,"e51e"))}}]});var Oe=Ne;y["default"].use(Se["a"]);var De=function(){var e=new Se["a"]({scrollBehavior:function(){return{x:0,y:0}},routes:Oe,mode:"history",base:"/"});return e},ke=function(){return Le.apply(this,arguments)};function Le(){return Le=b()(h.a.mark((function e(){var t,i,n;return h.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("function"!==typeof Ee){e.next=6;break}return e.next=3,Ee({Vue:y["default"]});case 3:e.t0=e.sent,e.next=7;break;case 6:e.t0=Ee;case 7:if(t=e.t0,"function"!==typeof De){e.next=14;break}return e.next=11,De({Vue:y["default"],store:t});case 11:e.t1=e.sent,e.next=15;break;case 14:e.t1=De;case 15:return i=e.t1,t.$router=i,n={router:i,store:t,render:function(e){return e(N)}},n.el="#q-app",e.abrupt("return",{app:n,store:t,router:i});case 20:case"end":return e.stop()}}),e)}))),Le.apply(this,arguments)}var qe={DOMAIN:"revidoo-graphql-dev.auth.eu-west-1.amazoncognito.com",s3:{REGION:"eu-west-1",BUCKET:"revidoo-graphql-dev-attachmentsbucket-k3qw16pvpcxh"},appSync:{REGION:"eu-west-1",ENDPOINT:"https://f4a32npoajfv7g7dmasw6e2asy.appsync-api.eu-west-1.amazonaws.com/graphql"},cognito:{REGION:"eu-west-1",USER_POOL_ID:"eu-west-1_0PJSg0dxK",APP_CLIENT_ID:"2m5317hk30nh6p4u439nnab2i3",IDENTITY_POOL_ID:"eu-west-1:fe131234-460c-4865-ba1b-2b51d327d506",DOMAIN:".revidoo.com",COOKIE_SECURE:!1,COOKIE_EXPIRES:365}},Te={DOMAIN:"revidoo-prod.auth.eu-west-1.amazoncognito.com",s3:{REGION:"eu-west-1",BUCKET:"revidoo-graphql-prod-attachmentsbucket-g7j0dnbhneke"},appSync:{REGION:"eu-west-1",ENDPOINT:"https://psg2otj2ezbj3fmc5zreopcttu.appsync-api.eu-west-1.amazonaws.com/graphql"},cognito:{REGION:"eu-west-1",USER_POOL_ID:"eu-west-1_JZ34yhZ3Y",APP_CLIENT_ID:"19sqqjctspacaosjjmu5clf0rb",IDENTITY_POOL_ID:"eu-west-1:01d24f98-6835-496a-b145-993ac1766c6a",DOMAIN:".revidoo.com",COOKIE_SECURE:!1,COOKIE_EXPIRES:365}};Te.cognito.APP_REDIRECT="https://revidoo.com/";var Ge={DOMAIN:"revidoo-graphql-dev.auth.eu-west-1.amazoncognito.com",s3:{REGION:"eu-west-1",BUCKET:"revidoo-graphql-prototype-attachmentsbucket-1p9dj93o8phyj"},appSync:{REGION:"eu-west-1",ENDPOINT:"https://crapdpkaonb2xll2m2pkcwqvua.appsync-api.eu-west-1.amazonaws.com/graphql"},cognito:{REGION:"eu-west-1",USER_POOL_ID:"eu-west-1_XbJ5wwgLN",APP_CLIENT_ID:"6e5cm7q60s5os33ovej0rmh3sk",IDENTITY_POOL_ID:"eu-west-1:9ddf35b2-80c5-41d3-b917-c44986ee3918",DOMAIN:".revidoo.com",COOKIE_SECURE:!1,COOKIE_EXPIRES:365}};Ge.cognito.APP_REDIRECT="https://prototype.revidoo.com/",qe.cognito.APP_REDIRECT="https://stage.revidoo.com/";var Ue=Te,Me={aws_appsync_graphqlEndpoint:Ue.appSync.ENDPOINT,aws_appsync_region:Ue.appSync.REGION,aws_appsync_authenticationType:"AMAZON_COGNITO_USER_POOLS",aws_project_region:Ue.cognito.REGION,aws_cognito_identity_pool_id:Ue.cognito.IDENTITY_POOL_ID,aws_cognito_region:Ue.cognito.REGION,aws_user_pools_id:Ue.cognito.USER_POOL_ID,aws_user_pools_web_client_id:Ue.cognito.APP_CLIENT_ID,oauth:{domain:Ue.DOMAIN,scope:["phone","email","openid","profile","aws.cognito.signin.user.admin"],redirectSignIn:Ue.cognito.APP_REDIRECT,redirectSignOut:Ue.cognito.APP_REDIRECT,responseType:"code"},federationTarget:"COGNITO_USER_POOLS",Storage:{region:Ue.s3.REGION,bucket:Ue.s3.BUCKET,identityPoolId:Ue.cognito.IDENTITY_POOL_ID}};V["default"].configure(Me);var Fe=function(){var e=b()(h.a.mark((function e(t){var i;return h.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:i=t.Vue,i.use(V);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();i("7f7f");function Ve(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o={open:!0,title:t,subtitle:n,component:i,close:a};e.commit("users/openLogin",o)}function $e(e,t){e({path:"/",params:{nextUrl:t.fullPath}})}var je=function(){var e=b()(h.a.mark((function e(t){var i,n;return h.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:i=t.router,n=t.store,i.beforeEach(function(){var e=b()(h.a.mark((function e(t,i,a){var o,r,s,c,u;return h.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return A["a"].start(),V["Hub"].listen("auth",(function(e){switch(e.payload.event){case"signIn":n.dispatch("users/Authenticated"),n.dispatch("activities/getDefault",n.state.users.user._id);break;case"signIn_failure":break;default:break}})),e.next=4,n.dispatch("users/Authenticated");case 4:return e.next=6,n.dispatch("activities/getDefault",n.state.users.user._id);case 6:t.query&&(s=null,t.query["forgot-password"]?(o="Modifica Password",r="ForgotPassword",o&&r&&Ve(n,o,r,s,!0)):t.query["confirm-user"]&&V["Auth"].confirmSignUp(t.query["confirm-user"],t.query.code,{forceAliasCreation:!0}).then((function(){o="Bentornat@",s='