text: (function(e){function t(t){for(var i,a,n=t[0],c=t[1],u=t[2],d=0,h=[];d<n.length;d++)a=n[d],r[a]&&h.push(r[a][0]),r[a]=0;for(i in c)Object.prototype.hasOwnProperty.call(c,i)&&(e[i]=c[i]);l&&l(t);while(h.length)h.shift()();return s.push.apply(s,u||[]),o()}function o(){for(var e,t=0;t<s.length;t++){for(var o=s[t],i=!0,n=1;n<o.length;n++){var c=o[n];0!==r[c]&&(i=!1)}i&&(s.splice(t--,1),e=a(a.s=o[0]))}return e}var i={},r={app:0},s=[];function a(t){if(i[t])return i[t].exports;var o=i[t]={i:t,l:!1,exports:{}};return e[t].call(o.exports,o,o.exports,a),o.l=!0,o.exports}a.m=e,a.c=i,a.d=function(e,t,o){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},a.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(a.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)a.d(o,i,function(t){return e[t]}.bind(null,i));return o},a.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="/";var n=window["webpackJsonp"]=window["webpackJsonp"]||[],c=n.push.bind(n);n.push=t,n=n.slice();for(var u=0;u<n.length;u++)t(n[u]);var l=c;s.push([0,"chunk-vendors"]),o()})({0:function(e,t,o){e.exports=o("1d50")},"10a0":function(e,t,o){},"1d50":function(e,t,o){"use strict";o.r(t);o("1e97"),o("a6de"),o("b8cb"),o("252f");var i=o("a4b5"),r=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{attrs:{id:"app"}},[i("div",{staticClass:"app-content"},[i("div",{attrs:{id:"nav"}},[i("img",{attrs:{width:"150",src:o("996b")},on:{click:function(t){return e.goToHome()}}})]),i("div",{staticClass:"the-app-content"},[i("router-view",{staticClass:"router-view"})],1),e._m(0)])])},s=[function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("footer",[o("a",{attrs:{href:"/termsofservice/"}},[e._v("Terms of service")]),o("a",{attrs:{href:"/privacypolicy/"}},[e._v("Privacy Policy")])])}],a=o("3ac8"),n=o.n(a),c={name:"App",beforeMount:function(){var e=this;document.title="SE3ME | About Me";var t={apiKey:"AIzaSyAWr372l0gzRQ_PH6e7GHUpnv5Z6c8bCHg",authDomain:"about-me-582c5.firebaseapp.com",databaseURL:"https://about-me-582c5.firebaseio.com",projectId:"about-me-582c5",storageBucket:"about-me-582c5.appspot.com",messagingSenderId:"920884952929"};n.a.initializeApp(t),n.a.auth().onAuthStateChanged(function(t){t&&n.a.firestore().collection("users").where("uid","==",t.uid).get().then(function(t){e.$store.commit("setUser",t.docs[0].data())})})},methods:{goToHome:function(){this.$router.push("/")}}},u=c,l=(o("e5cd"),o("a6c2")),d=Object(l["a"])(u,r,s,!1,null,null,null),h=d.exports,p=o("4af9"),m=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"home"},[o("div",{staticClass:"content"},[o("h1",[e._v("About Me!")]),o("p",[e._v("Cria o teu quiz e vê qual dos teus amigos sabe mais sobre ti!")]),o("h2",[e._v("Seleciona um Quiz:")]),o("div",{staticClass:"theme-list"},[o("div",{staticClass:"theme-item quemsabemais",on:{click:function(t){return e.open()}}},[o("h3",[e._v("Quem sabe mais sobre mim?")])])])])])},f=[],v={name:"home",methods:{open:function(){this.$router.push("/createquiz/")}}},y=v,g=(o("b8e4"),Object(l["a"])(y,m,f,!1,null,"5842353c",null)),b=g.exports,_=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"home"},[o("div",{staticClass:"content"},[o("h1",[e._v("Antes de tudo!")]),o("p",[e._v("Digita o teu nome para continuares")]),o("input",{directives:[{name:"model",rawName:"v-model",value:e.name,expression:"name"}],staticClass:"input",attrs:{placeholder:"Ex: Cristina"},domProps:{value:e.name},on:{input:function(t){t.target.composing||(e.name=t.target.value)}}}),o("button",{on:{click:function(t){return e.login()}}},[e._v("Continuar")])])])},w=[],S=(o("8e67"),{name:"login",data:function(){return{name:name}},methods:{login:function(){var e=this;n.a.auth().signInAnonymously().then(function(t){if(t){var o={name:e.name,uid:t.user.uid,quizes:[],hasQuiz:!1};e.$store.commit("setUser",o),n.a.firestore().collection("users").add(o).then(function(){e.$router.go(-1)})}})}}}),P=S,z=(o("8b52"),Object(l["a"])(P,_,w,!1,null,"348fd550",null)),k=z.exports,C=function(){var e=this,t=e.$createElement,o=e._self._c||t;return e.carregado?o("div",{staticClass:"home"},[this.leaderboard?o("div",[o("h1",[e._v("Quiz do(a) "+e._s(e.criadorQuiz))]),-1===e.percentagem?o("div",[o("p",[e._v("Partilha o link com os teus amigos:")]),o("div",{staticClass:"social-share"},[o("p",{staticClass:"url"},[e._v(e._s(e.urlCopy))]),o("button",{on:{click:function(t){return e.copiar()}}},[e._v("Copiar")])])]):o("div",[o("h2",[e._v("Resultado: "+e._s(e.percentagem)+"%")]),o("p",[e._v("Acertaste "+e._s(e.percentagem/10)+" / "+e._s(e.perguntas.length)+" questões")]),o("button",{staticStyle:{width:"150px"},on:{click:function(t){return e.createQuiz()}}},[e._v("Criar Quiz")])]),o("h1",[e._v("Leaderboard")]),o("table",{staticStyle:{width:"100%"}},[e._m(0),e._l(e.leaderboardJogadores,function(t,i){return o("tr",{key:i},[o("td",[e._v(e._s(t["name"]))]),o("td",[e._v(e._s(t["percentage"])+"%")])])})],2)]):o("div",[o("h1",[e._v("Quiz do(a) "+e._s(e.criadorQuiz))]),o("div",{staticClass:"space"}),o("span",{staticClass:"counter"},[e._v(e._s(e.respostas.length+1)+" / "+e._s(e.perguntas.length))]),o("h1",[e._v(e._s(e.perguntas[e.respostas.length]))]),o("div",{staticClass:"question-list"},[o("ul",e._l(e.respostasBase[e.respostas.length],function(t,i){return o("li",{key:i},[e.respondido?o("div",[i===e.respostasCorretas[e.respostas.length]?o("div",{staticStyle:{color:"green"}},[e._v(e._s(t))]):o("div",{staticStyle:{color:"red"}},[e._v(e._s(t))])]):o("div",{on:{click:function(t){return e.responderPergunta(i)}}},[e._v(e._s(t))])])}),0)]),o("button",{staticStyle:{width:"200px"},on:{click:function(t){return e.mostrarLeaderboard(!1,null)}}},[e._v("Leaderboard")])])]):e._e()},T=[function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("tr",[o("th",[e._v("Nome")]),o("th",[e._v("Pontuação")])])}],M=(o("ee38"),o("86b3")),A=null,$=null,q={name:"QuizSnc",data:function(){return{perguntas:[],respostasCorretas:[],respostasBase:[],respostas:[],leaderboardJogadores:[],criadorQuiz:null,jogadorQuiz:null,percentagem:-1,urlCopy:"https://aboutme.se3me.com/quiz/"+this.$route.params.quizUrl,criadorDoc:"",respondido:!1,leaderboard:!1,carregado:!1}},beforeMount:function(){A=n.a.firestore().collection("users"),$=n.a.firestore().collection("quemSabeMais")},mounted:function(){var e=this;this.carregado=!1,this.$route.params.quizUrl?n.a.auth().onAuthStateChanged(function(t){t?A.where("uid","==",t.uid).get().then(function(o){e.jogadorQuiz=o.docs[0].data(),$.where("doc","==",e.$route.params.quizUrl).get().then(function(i){A.doc(e.$route.params.quizUrl).get().then(function(t){e.criadorQuiz=t.data().name});var r=i.docs[0].data().leaderboardPontuation;if(e.leaderboardJogadores=r,e.criadorDoc=i.docs[0].id,e.respostasCorretas=i.docs[0].data().correctAnswers,e.$route.params.quizUrl===o.docs[0].id)e.mostrarLeaderboard(!0,null);else for(var s=0;s<r.length;s++)if(i.docs[0].data().otherAnswers[s]["user"]===t.uid)return void e.mostrarLeaderboard(!1,s)})}):e.$router.push("/login/"),e.receberPerguntasERespostas(),e.carregado=!0}):this.$router.push("/")},methods:{createQuiz:function(){this.$router.push("/createquiz/")},mostrarLeaderboard:function(e,t){!e&&t&&(this.percentagem=this.leaderboardJogadores[t]["percentage"]),this.leaderboard=!0,this.carregado=!0},responderPergunta:function(e){var t=this;this.respondido=!0,Object(M["setTimeout"])(function(){t.respostas.push(e),t.respondido=!1},1500),this.respostas.length+1===this.respostasCorretas.length&&this.terminarQuiz()},terminarQuiz:function(){var e=this;this.calcularPercentagem(),$.doc(this.criadorDoc).update({otherAnswers:n.a.firestore.FieldValue.arrayUnion({user:this.jogadorQuiz.uid,percentage:this.percentagem}),leaderboardPontuation:n.a.firestore.FieldValue.arrayUnion({name:this.jogadorQuiz.name,percentage:this.percentagem})}).then(function(){e.mostrarLeaderboard(!1,null)})},calcularPercentagem:function(){for(var e=0,t=0;t<=this.respostasCorretas.length;t++)this.respostas[t]===this.respostasCorretas[t]&&(e+=10);this.percentagem=e},receberPerguntasERespostas:function(){var e=this;n.a.firestore().collection("questions").get().then(function(t){t.docs.forEach(function(t){e.respostasBase.push(t.data().answers),e.perguntas.push(t.data().question)})})},copiar:function(){var e=this;this.$copyText(this.urlCopy).then(function(){e.urlCopy="URL Copiada!"},function(){this.urlCopy="Erro"})}}},Q=q,U=(o("6945"),Object(l["a"])(Q,C,T,!1,null,"c56de7fe",null)),W=U.exports,j=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"home"},[o("div",[o("div",{staticClass:"space"}),o("span",{staticClass:"counter"},[e._v(e._s(e.respostas.length+1)+" / "+e._s(e.perguntas.length))]),o("h1",[e._v(e._s(e.perguntas[e.respostas.length]))]),o("div",{staticClass:"question-list"},[o("ul",e._l(e.respostasBase[e.respostas.length],function(t,i){return o("li",{key:i},[o("div",{on:{click:function(t){return e.responderPergunta(i)}}},[e._v(e._s(t))])])}),0)])])])},x=[],E={name:"CreateQuiz",data:function(){return{respostas:[],respostasBase:[],perguntas:[],utilizador:null,documento:""}},mounted:function(){var e=this;n.a.auth().onAuthStateChanged(function(t){t?n.a.firestore().collection("users").where("uid","==",t.uid).get().then(function(t){e.$store.commit("setUser",t.docs[0].data()),e.utilizador=t.docs[0].data(),e.utilizador=e.$store.getters.getUser,n.a.firestore().collection("users").where("uid","==",e.utilizador.uid).get().then(function(t){e.documento=t.docs[0].id,e.utilizador.hasQuiz&&e.$router.push("/quiz/"+e.documento)}),e.receberPerguntasERespostas()}):e.$router.push("/login/")})},methods:{receberPerguntasERespostas:function(){var e=this;n.a.firestore().collection("questions").get().then(function(t){t.docs.forEach(function(t){e.respostasBase.push(t.data().answers),e.perguntas.push(t.data().question)})})},responderPergunta:function(e){this.respostas.push(e),10===this.respostas.length&&this.terminarQuiz()},terminarQuiz:function(){var e=this;n.a.firestore().collection("quemSabeMais").add({userId:this.utilizador.uid,doc:this.documento,correctAnswers:this.respostas,otherAnswers:[],leaderboardPontuation:[]}).then(function(){n.a.firestore().collection("users").doc(e.documento).update({hasQuiz:!0}),e.$store.commit("setQuiz",!0),e.$router.push("/quiz/"+e.documento)})}}},O=E,I=(o("c96a"),Object(l["a"])(O,j,x,!1,null,"2d009de5",null)),L=I.exports,R=function(){var e=this,t=e.$createElement;e._self._c;return e._m(0)},B=[function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",[o("h1",[e._v("Website Terms and Conditions of Use")]),o("h2",[e._v("1. Terms")]),o("p",[e._v("By accessing this Website, accessible from www.aboutme.se3me.com, you are agreeing to be bound by these Website Terms and Conditions of Use and agree that you are responsible for the agreement with any applicable local laws. If you disagree with any of these terms, you are prohibited from accessing this site. The materials contained in this Website are protected by copyright and trade mark law. These Terms of Service has been created with the help of the "),o("a",{attrs:{href:"https://termsofservicegenerator.net"}},[e._v("Terms of Service Generator")]),e._v(" and the "),o("a",{attrs:{href:"https://privacy-policy-template.com"}},[e._v("Privacy Policy Template")]),e._v(".")]),o("h2",[e._v("2. Use License")]),o("p",[e._v("Permission is granted to temporarily download one copy of the materials on Se3Me Solutions's Website for personal, non-commercial transitory viewing only. This is the grant of a license, not a transfer of title, and under this license you may not:")]),o("ul",[o("li",[e._v("modify or copy the materials;")]),o("li",[e._v("use the materials for any commercial purpose or for any public display;")]),o("li",[e._v("attempt to reverse engineer any software contained on Se3Me Solutions's Website;")]),o("li",[e._v("remove any copyright or other proprietary notations from the materials; or")]),o("li",[e._v('transferring the materials to another person or "mirror" the materials on any other server.')])]),o("p",[e._v("This will let Se3Me Solutions to terminate upon violations of any of these restrictions. Upon termination, your viewing right will also be terminated and you should destroy any downloaded materials in your possession whether it is printed or electronic format.")]),o("h2",[e._v("3. Disclaimer")]),o("p",[e._v('All the materials on Se3Me Solutionsís Website are provided "as is". Se3Me Solutions makes no warranties, may it be expressed or implied, therefore negates all other warranties. Furthermore, Se3Me Solutions does not make any representations concerning the accuracy or reliability of the use of the materials on its Website or otherwise relating to such materials or any sites linked to this Website.')]),o("h2",[e._v("4. Limitations")]),o("p",[e._v("Se3Me Solutions or its suppliers will not be hold accountable for any damages that will arise with the use or inability to use the materials on Se3Me Solutionsís Website, even if Se3Me Solutions or an authorize representative of this Website has been notified, orally or written, of the possibility of such damage. Some jurisdiction does not allow limitations on implied warranties or limitations of liability for incidental damages, these limitations may not apply to you.")]),o("h2",[e._v("5. Revisions and Errata")]),o("p",[e._v("The materials appearing on Se3Me Solutionsís Website may include technical, typographical, or photographic errors. Se3Me Solutions will not promise that any of the materials in this Website are accurate, complete, or current. Se3Me Solutions may change the materials contained on its Website at any time without notice. Se3Me Solutions does not make any commitment to update the materials.")]),o("h2",[e._v("6. Links")]),o("p",[e._v("Se3Me Solutions has not reviewed all of the sites linked to its Website and is not responsible for the contents of any such linked site. The presence of any link does not imply endorsement by Se3Me Solutions of the site. The use of any linked website is at the userís own risk.")]),o("h2",[e._v("7. Site Terms of Use Modifications")]),o("p",[e._v("Se3Me Solutions may revise these Terms of Use for its Website at any time without prior notice. By using this Website, you are agreeing to be bound by the current version of these Terms and Conditions of Use.")]),o("h2",[e._v("8. Your Privacy")]),o("p",[e._v("Please read "),o("a",{attrs:{href:"https://privacypolicygenerator.info/"}},[e._v("our Privacy Policy")]),e._v(".")]),o("h2",[e._v("9. Governing Law")]),o("p",[e._v("Any claim related to Se3Me Solutions's Website shall be governed by the laws of pt without regards to its conflict of law provisions.")])])}],D={name:"termsofservice"},G=D,J=(o("3324"),Object(l["a"])(G,R,B,!1,null,"e058f6f2",null)),H=J.exports,F=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",[o("h1",[e._v("Privacy Policy for Se3me Solutions")]),o("p",[e._v("At Se3me About Me, accessible from aboutme.se3me.com, one of our main priorities is the privacy of our visitors. This Privacy Policy document contains types of information that is collected and recorded by Se3me About Me and how we use it.")]),o("p",[e._v("If you have additional questions or require more information about our Privacy Policy, do not hesitate to contact us through email at geral@se3me.com")]),o("h2",[e._v("Log Files")]),o("p",[e._v("Se3me About Me follows a standard procedure of using log files. These files log visitors when they visit websites. All hosting companies do this and a part of hosting services' analytics. The information collected by log files include internet protocol (IP) addresses, browser type, Internet Service Provider (ISP), date and time stamp, referring/exit pages, and possibly the number of clicks. These are not linked to any information that is personally identifiable. The purpose of the information is for analyzing trends, administering the site, tracking users' movement on the website, and gathering demographic information.")]),o("h2",[e._v("Cookies and Web Beacons")]),o("p",[e._v("Like any other website, Se3me About Me uses 'cookies'. These cookies are used to store information including visitors' preferences, and the pages on the website that the visitor accessed or visited. The information is used to optimize the users' experience by customizing our web page content based on visitors' browser type and/or other information.")]),o("h2",[e._v("Google DoubleClick DART Cookie")]),e._m(0),o("h2",[e._v("Privacy Policies")]),o("P",[e._v("You may consult this list to find the Privacy Policy for each of the advertising partners of Se3me About Me. Our Privacy Policy was created with the help of the "),o("a",{attrs:{href:"https://privacypolicygenerator.info"}},[e._v("GDPR Privacy Policy Generator")]),e._v(" and the "),o("a",{attrs:{href:"https://termsfeed.com/privacy-policy/generator/"}},[e._v("Privacy Policy Generator from TermsFeed")]),e._v(" plus the "),o("a",{attrs:{href:"https://termsandconditionstemplate.net"}},[e._v("Terms and Conditions Template")]),e._v(".")]),o("p",[e._v("Third-party ad servers or ad networks uses technologies like cookies, JavaScript, or Web Beacons that are used in their respective advertisements and links that appear on Se3me About Me, which are sent directly to users' browser. They automatically receive your IP address when this occurs. These technologies are used to measure the effectiveness of their advertising campaigns and/or to personalize the advertising content that you see on websites that you visit.")]),o("p",[e._v("Note that Se3me About Me has no access to or control over these cookies that are used by third-party advertisers.")]),o("h2",[e._v("Third Pary Privacy Policies")]),o("p",[e._v("Se3me About Me's Privacy Policy does not apply to other advertisers or websites. Thus, we are advising you to consult the respective Privacy Policies of these third-party ad servers for more detailed information. It may include their practices and instructions about how to opt-out of certain options. You may find a complete list of these Privacy Policies and their links here: Privacy Policy Links.")]),o("p",[e._v("You can choose to disable cookies through your individual browser options. To know more detailed information about cookie management with specific web browsers, it can be found at the browsers' respective websites. What Are Cookies?")]),o("h2",[e._v("Children's Information")]),o("p",[e._v("Another part of our priority is adding protection for children while using the internet. We encourage parents and guardians to observe, participate in, and/or monitor and guide their online activity.")]),o("p",[e._v("Se3me About Me does not knowingly collect any Personal Identifiable Information from children under the age of 13. If you think that your child provided this kind of information on our website, we strongly encourage you to contact us immediately and we will do our best efforts to promptly remove such information from our records.")]),o("h2",[e._v("Online Privacy Policy Only")]),o("p",[e._v("This Privacy Policy applies only to our online activities and is valid for visitors to our website with regards to the information that they shared and/or collect in Se3me About Me. This policy is not applicable to any information collected offline or via channels other than this website.")]),o("h2",[e._v("Consent")]),o("p",[e._v("By using our website, you hereby consent to our Privacy Policy and agree to its Terms and Conditions.")])],1)},Y=[function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("p",[e._v("Google is one of a third-party vendor on our site. It also uses cookies, known as DART cookies, to serve ads to our site visitors based upon their visit to www.website.com and other sites on the internet. However, visitors may choose to decline the use of DART cookies by visiting the Google ad and content network Privacy Policy at the following URL – "),o("a",{attrs:{href:"https://policies.google.com/technologies/ads"}},[e._v("https://policies.google.com/technologies/ads")])])}],N={name:"privacypolicy"},V=N,K=(o("eea1"),Object(l["a"])(V,F,Y,!1,null,"44e4c10e",null)),Z=K.exports;i["a"].use(p["a"]);var X=new p["a"]({mode:"history",base:"/",routes:[{path:"/",name:"home",component:b},{path:"/quiz/:quizUrl",name:"quiz",component:W},{path:"/createquiz/",name:"createquiz",component:L},{path:"/termsofservice",name:"termsofservice",component:H},{path:"/privacypolicy",name:"privacypolicy",component:Z},{path:"/login",name:"login",component:k}]}),ee=o("94ea");i["a"].use(ee["a"]);var te=new ee["a"].Store({state:{user:null},mutations:{setUser:function(e,t){e.user=t},setQuiz:function(e,t){e.user.hasQuiz=t}},getters:{getUser:function(e){return e.user}},actions:{}}),oe=o("9dee"),ie=o.n(oe);ie.a.config.autoSetContainer=!0,i["a"].use(ie.a),i["a"].config.productionTip=!1,new i["a"]({el:"#app",store:te,router:X,components:{App:h},template:"<App/>"})},3324:function(e,t,o){"use strict";var i=o("82e6"),r=o.n(i);r.a},"425f":function(e,t,o){},6945:function(e,t,o){"use strict";var i=o("425f"),r=o.n(i);r.a},"82e6":function(e,t,o){},"8b52":function(e,t,o){"use strict";var i=o("10a0"),r=o.n(i);r.a},"940b":function(e,t,o){},"996b":function(e,t,o){e.exports=o.p+"img/logo-nobackground.155fe5e4.png"},b8e4:function(e,t,o){"use strict";var i=o("dc92"),r=o.n(i);r.a},c96a:function(e,t,o){"use strict";var i=o("940b"),r=o.n(i);r.a},d672:function(e,t,o){},dc92:function(e,t,o){},e5cd:function(e,t,o){"use strict";var i=o("d672"),r=o.n(i);r.a},eea1:function(e,t,o){"use strict";var i=o("f756"),r=o.n(i);r.a},f756:function(e,t,o){}});
  //# sourceMappingURL=app.c2142b6d.js.map