text: webpackJsonp([1],{Jmt5:function(t,e){},NHnr:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("7+uW"),r=a("yviF"),i=a.n(r),n=(a("dih4"),{name:"navbar",data:function(){return{isLogedIn:!1,isVerefied:!1,isLogedInNotVerefied:!1,currentUser:!1}},created:function(){var t=this;i.a.auth().currentUser&&(this.isLogedIn=!0,this.isLogedInNotVerefied=!0,this.currentUser=i.a.auth().currentUser.email,i.a.auth().onAuthStateChanged(function(e){e.emailVerified?(t.isVerefied=!0,t.isLogedInNotVerefied=!1):t.isVerefied=!1}))},methods:{logout:function(){var t=this;i.a.auth().signOut().then(function(){alert("Signout Successful"),t.$router.go({path:t.$router.path})}).catch(function(t){alert(t.message)})}}}),o={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("nav",{staticClass:"navbar navbar-default navbar-expand-lg navbar-light bg-light"},[a("div",{staticClass:"container-fluid"},[a("router-link",{staticClass:"navbar-brand text-primary",attrs:{to:"/"}},[a("b",[a("h2",[t._v("Photo Share")])])]),t._v(" "),t._m(0),t._v(" "),a("div",{staticClass:"collapse navbar-collapse",attrs:{id:"navbarSupportedContent"}},[a("ul",{staticClass:"navbar-nav mr-auto"}),t._v(" "),a("ul",{staticClass:"nav navbar-nav navbar-left padding"},[t.isVerefied?a("li",{staticClass:"nav-item"},[a("router-link",{staticClass:"nav-link p-2",attrs:{to:"/","aria-label":"Home","data-toggle":"tooltip","data-placement":"bottom",title:"Home"}},[a("i",{staticClass:"fa fa-home fa-lg text-info"})])],1):t._e(),t._v(" "),t.isVerefied?a("li",{staticClass:"nav-item "},[a("router-link",{staticClass:"nav-link p-2",attrs:{to:"/Notification","aria-label":"Notification","data-toggle":"tooltip","data-placement":"bottom",title:"Notification"}},[a("i",{staticClass:"fa fa-bell fa-lg text-info"})])],1):t._e(),t._v(" "),t.isVerefied?a("li",{attrs:{lass:"nav-item "}},[a("router-link",{staticClass:"nav-link p-2",attrs:{to:"/Trends","aria-label":"Trends","data-toggle":"tooltip","data-placement":"bottom",title:"Trends"}},[a("i",{staticClass:"fa fa-fire fa-lg text-info"})])],1):t._e(),t._v(" "),t.isVerefied?a("li",{staticClass:"nav-item "},[a("router-link",{staticClass:"nav-link p-2",attrs:{to:"/Friends","aria-label":"Friends","data-toggle":"tooltip","data-placement":"bottom",title:"Friends"}},[a("i",{staticClass:"fa fa-user-friends fa-lg text-info"})])],1):t._e(),t._v(" "),t.isVerefied?a("li",{staticClass:"nav-item "},[a("router-link",{staticClass:"nav-link p-2",attrs:{to:"/Messages","aria-label":"Messages","data-toggle":"tooltip","data-placement":"bottom",title:"Messages"}},[a("i",{staticClass:"fa fa-comments fa-lg text-info"})])],1):t._e(),t._v(" "),t.isVerefied?a("li",{staticClass:"nav-item "},[a("router-link",{staticClass:"nav-link p-2",attrs:{to:"/Account","aria-label":"Account","data-toggle":"tooltip","data-placement":"bottom",title:"Account"}},[a("i",{staticClass:"fa fa-user-alt fa-lg text-info"})])],1):t._e(),t._v(" "),t.isVerefied?a("div",{staticClass:"nav-item dropdown"},[a("div",{staticClass:"container"},[a("a",{staticClass:"nav-link dropdown-toggle",attrs:{id:"navbarDropdown",role:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}},[t._v(t._s(t.isLogedIn)),a("span",{staticClass:"caret"})]),t._v(" "),a("div",{staticClass:"dropdown-menu",attrs:{"aria-labelledby":"dropdownMenuButton"}},[a("router-link",{staticClass:"dropdown-item",attrs:{to:"/Setting"}},[a("i",{staticClass:"fa fa-cog"}),t._v(" Setting")]),t._v(" "),a("router-link",{staticClass:"dropdown-item",attrs:{to:"/Stories"}},[a("i",{staticClass:"fa fa-plus"}),t._v(" Stories")]),t._v(" "),a("div",{staticClass:"dropdown-divider"}),t._v(" "),a("a",{staticClass:"dropdown-item",on:{click:t.logout}},[t._v("Logout")])],1)])]):t._e(),t._v(" "),t.isLogedIn?t._e():a("li",{staticClass:"nav-item "},[a("router-link",{staticClass:"nav-link p-2",attrs:{to:"/Signin","aria-label":"SIGNIN","data-toggle":"tooltip","data-placement":"bottom",title:"SIGNIN"}},[t._v("SIGNIN")])],1),t._v(" "),t.isLogedIn?t._e():a("li",{staticClass:"nav-item "},[a("router-link",{staticClass:"nav-link p-2",attrs:{to:"/Signup","aria-label":"SIGNUP","data-toggle":"tooltip","data-placement":"bottom",title:"SIGNUP"}},[t._v("SIGNUP")])],1),t._v(" "),t.isLogedInNotVerefied?a("li",{staticClass:"nav-item "},[a("button",{staticClass:"nav-link p-2",attrs:{"aria-label":"LOGOUT","data-toggle":"tooltip","data-placement":"bottom",title:"LOGOUT"},on:{click:t.logout}},[t._v("LOGOUT")])]):t._e()])])],1)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"navbar-toggler",attrs:{type:"button","data-toggle":"collapse","data-target":"#navbarSupportedContent","aria-controls":"navbarSupportedContent","aria-expanded":"false","aria-label":"Toggle navigation"}},[e("span",{staticClass:"navbar-toggler-icon"})])}]},l={name:"App",components:{Navbar:a("VU/8")(n,o,!1,null,null,null).exports}},c={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{attrs:{id:"app"}},[e("Navbar"),this._v(" "),e("div",{staticClass:"container"},[e("router-view")],1)],1)},staticRenderFns:[]},u=a("VU/8")(l,c,!1,null,null,null).exports,d=a("/ocq"),m={render:function(){var t=this.$createElement;return(this._self._c||t)("h3",[this._v("This Is Dashboard")])},staticRenderFns:[]},p=a("VU/8")(null,m,!1,null,null,null).exports,v={render:function(){var t=this.$createElement;return(this._self._c||t)("h3",[this._v("Account")])},staticRenderFns:[]},f=a("VU/8")(null,v,!1,null,null,null).exports,h={render:function(){var t=this.$createElement;return(this._self._c||t)("h3",[this._v("Friends")])},staticRenderFns:[]},g=a("VU/8")(null,h,!1,null,null,null).exports,_={render:function(){var t=this.$createElement;return(this._self._c||t)("h3",[this._v("Messages")])},staticRenderFns:[]},C=a("VU/8")(null,_,!1,null,null,null).exports,b={render:function(){var t=this.$createElement;return(this._self._c||t)("h3",[this._v("Notification")])},staticRenderFns:[]},w=a("VU/8")(null,b,!1,null,null,null).exports,V={render:function(){var t=this.$createElement;return(this._self._c||t)("h3",[this._v("Setings")])},staticRenderFns:[]},S=a("VU/8")(null,V,!1,null,null,null).exports,x={name:"signin",data:function(){return{email:"",password:""}},methods:{Signin:function(t){var e=this;i.a.auth().signInWithEmailAndPassword(this.email,this.password).then(function(t){alert("You Are logged in"),e.$router.go({path:e.$router.path})},function(t){alert(t.message)}),t.preventDefault()}}},q={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"container"},[a("br"),t._v(" "),a("div",{staticClass:"container-login"},[a("div",{staticClass:"row justify-content-center"},[a("div",{staticClass:"col-md-8"},[a("div",{staticClass:"card"},[a("div",{staticClass:"card-header"},[t._v("Login")]),t._v(" "),a("div",{staticClass:"card-body"},[a("form",[a("div",{staticClass:"form-group row"},[a("label",{staticClass:"col-sm-4 col-form-label text-md-right",attrs:{for:"email"}},[t._v("E-Mail Address")]),t._v(" "),a("div",{staticClass:"col-md-6"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.email,expression:"email"}],staticClass:"form-control",attrs:{id:"email",type:"email",name:"email",value:"",required:"",autofocus:""},domProps:{value:t.email},on:{input:function(e){e.target.composing||(t.email=e.target.value)}}})])]),t._v(" "),a("div",{staticClass:"form-group row"},[a("label",{staticClass:"col-md-4 col-form-label text-md-right",attrs:{for:"password"}},[t._v("Password")]),t._v(" "),a("div",{staticClass:"col-md-6"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.password,expression:"password"}],staticClass:"form-control",attrs:{id:"password",type:"password",name:"password",required:""},domProps:{value:t.password},on:{input:function(e){e.target.composing||(t.password=e.target.value)}}})])]),t._v(" "),t._m(0),t._v(" "),a("div",{staticClass:"form-group row mb-0"},[a("div",{staticClass:"col-md-8 offset-md-4"},[a("button",{staticClass:"btn btn-primary",attrs:{type:"submit"},on:{click:t.Signin}},[t._v("Login")]),t._v(" "),a("router-link",{staticClass:"btn btn-link",attrs:{to:"/ForgotPassword"}},[t._v("Forgot Your Password?")])],1)])])])])])])])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"form-group row"},[e("div",{staticClass:"col-md-6 offset-md-4"})])}]},A=a("VU/8")(x,q,!1,null,null,null).exports,y={name:"signup",data:function(){return{email:"",password:"",confirmPassword:""}},methods:{Signup:function(t){var e=this;this.password!=this.confirmPassword?alert("Password And Confirm Password Are Not Same"):i.a.auth().createUserWithEmailAndPassword(this.email,this.password).then(function(t){alert("Your Account Has Been Created"),e.$router.go({path:e.$router.path})},function(t){alert(t.message)}),t.preventDefault()}}},k={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"container-login"},[a("div",{staticClass:"row justify-content-center"},[a("div",{staticClass:"col-md-8"},[a("div",{staticClass:"card"},[a("div",{staticClass:"card-header"},[t._v("Login")]),t._v(" "),a("div",{staticClass:"card-body"},[a("form",[a("div",{staticClass:"form-group row"},[a("label",{staticClass:"col-sm-4 col-form-label text-md-right",attrs:{for:"email"}},[t._v("E-Mail Address")]),t._v(" "),a("div",{staticClass:"col-md-6"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.email,expression:"email"}],staticClass:"form-control",attrs:{id:"email",type:"email",name:"email",value:"",required:"",autofocus:""},domProps:{value:t.email},on:{input:function(e){e.target.composing||(t.email=e.target.value)}}})])]),t._v(" "),a("div",{staticClass:"form-group row"},[a("label",{staticClass:"col-md-4 col-form-label text-md-right",attrs:{for:"password"}},[t._v("Password")]),t._v(" "),a("div",{staticClass:"col-md-6"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.password,expression:"password"}],staticClass:"form-control",attrs:{id:"password",type:"password",name:"password",required:""},domProps:{value:t.password},on:{input:function(e){e.target.composing||(t.password=e.target.value)}}})])]),t._v(" "),a("div",{staticClass:"form-group row"},[a("label",{staticClass:"col-md-4 col-form-label text-md-right",attrs:{for:"password"}},[t._v("Confirm Password")]),t._v(" "),a("div",{staticClass:"col-md-6"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.confirmPassword,expression:"confirmPassword"}],staticClass:"form-control",attrs:{id:"confirm-password",type:"password",name:"comfirm-password",required:""},domProps:{value:t.confirmPassword},on:{input:function(e){e.target.composing||(t.confirmPassword=e.target.value)}}})])]),t._v(" "),t._m(0),t._v(" "),a("div",{staticClass:"form-group row mb-0"},[a("div",{staticClass:"col-md-8 offset-md-4"},[a("button",{staticClass:"btn btn-primary",attrs:{type:"submit"},on:{click:t.Signup}},[t._v("Signup")])])])])])])])])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"form-group row"},[e("div",{staticClass:"col-md-6 offset-md-4"})])}]},N=a("VU/8")(y,k,!1,null,null,null).exports,U={render:function(){var t=this.$createElement;return(this._self._c||t)("h3",[this._v("Stories")])},staticRenderFns:[]},P=a("VU/8")(null,U,!1,null,null,null).exports,F={render:function(){var t=this.$createElement;return(this._self._c||t)("h3",[this._v("Trends")])},staticRenderFns:[]},E=a("VU/8")(null,F,!1,null,null,null).exports,I={render:function(){var t=this.$createElement;return(this._self._c||t)("h3",[this._v("Forgot Password")])},staticRenderFns:[]},$=a("VU/8")(null,I,!1,null,null,null).exports,L={render:function(){var t=this.$createElement;return(this._self._c||t)("h3",[this._v("Verefy")])},staticRenderFns:[]},R=a("VU/8")(null,L,!1,null,null,null).exports;s.a.use(d.a);var G=new d.a({routes:[{path:"/",name:"dashboard",component:p,meta:{requiresAuth:!0,requiresConfirm:!0}},{path:"/Account",name:"account",component:f,meta:{requiresAuth:!0,requiresConfirm:!0}},{path:"/Friends",name:"friends",component:g,meta:{requiresAuth:!0,requiresConfirm:!0}},{path:"/Messages",name:"messages",component:C,meta:{requiresAuth:!0,requiresConfirm:!0}},{path:"/Notification",name:"notification",component:w,meta:{requiresAuth:!0,requiresConfirm:!0}},{path:"/Settings",name:"settings",component:S,meta:{requiresAuth:!0,requiresConfirm:!0}},{path:"/Signin",name:"signin",component:A,meta:{requiresGuest:!0}},{path:"/Signup",name:"signup",component:N,meta:{requiresGuest:!0}},{path:"/Stories",name:"stories",component:P,meta:{requiresAuth:!0,requiresConfirm:!0}},{path:"/Trends",name:"trends",component:E,meta:{requiresAuth:!0,requiresConfirm:!0}},{path:"/ForgotPassword",name:"forgot-password",component:$,meta:{requiresGuest:!0}},{path:"/Verefy",name:"verefy",component:R,meta:{requiresAuth:!0,realtimeVerefication:!0}}]});G.beforeEach(function(t,e,a){t.matched.some(function(t){return t.meta.requiresAuth})&&(i.a.auth().currentUser?a():a({path:"/Signin",query:{redirect:t.path}})),t.matched.some(function(t){return t.meta.requiresGuest})&&(i.a.auth().currentUser?a({path:"/",query:{redirect:t.path}}):a()),t.matched.some(function(t){return t.meta.requiresConfirm})&&i.a.auth().currentUser&&i.a.auth().onAuthStateChanged(function(e){e.emailVerified?a():(i.a.auth().currentUser.sendEmailVerification(),a({path:"/Verefy",query:{redirect:t.path}}))}),t.matched.some(function(t){return t.meta.realtimeVerefication})?i.a.auth().onAuthStateChanged(function(e){e.emailVerified?a({path:"/",query:{redirect:t.fullPath}}):a({path:"/Verefy",query:{redirect:t.path}})}):a()});var T=G;a("7t+N"),a("ao2D"),a("881v"),i.a.initializeApp({apiKey:"AIzaSyD7BXevgvFwzQFo9GMQZt0j85XVEmDXNxQ",authDomain:"com-abdevp-photoshare.firebaseapp.com",databaseURL:"https://com-abdevp-photoshare.firebaseio.com",projectId:"com-abdevp-photoshare",storageBucket:"com-abdevp-photoshare.appspot.com",messagingSenderId:"160369050933"}).firestore(),a("Jmt5"),a("K3J8"),a("rk6y");s.a.config.productionTip=!1;var M=void 0;i.a.auth().onAuthStateChanged(function(t){M||(M=new s.a({el:"#app",router:T,components:{App:u},template:"<App/>"}))})},ao2D:function(t,e){}},["NHnr"]);
  //# sourceMappingURL=app.46d206e1b51c013c9bf8.js.map