text: (function(e){function t(t){for(var i,n,r=t[0],l=t[1],o=t[2],u=0,p=[];u<r.length;u++)n=r[u],Object.prototype.hasOwnProperty.call(s,n)&&s[n]&&p.push(s[n][0]),s[n]=0;for(i in l)Object.prototype.hasOwnProperty.call(l,i)&&(e[i]=l[i]);g&&g(t);while(p.length)p.shift()();return c.push.apply(c,o||[]),a()}function a(){for(var e,t=0;t<c.length;t++){for(var a=c[t],i=!0,n=1;n<a.length;n++){var l=a[n];0!==s[l]&&(i=!1)}i&&(c.splice(t--,1),e=r(r.s=a[0]))}return e}var i={},s={app:0},c=[];function n(e){return r.p+"js/"+({about:"about",admin:"admin"}[e]||e)+"."+{about:"c3aeffc0",admin:"af485eba"}[e]+".js"}function r(t){if(i[t])return i[t].exports;var a=i[t]={i:t,l:!1,exports:{}};return e[t].call(a.exports,a,a.exports,r),a.l=!0,a.exports}r.e=function(e){var t=[],a=s[e];if(0!==a)if(a)t.push(a[2]);else{var i=new Promise((function(t,i){a=s[e]=[t,i]}));t.push(a[2]=i);var c,l=document.createElement("script");l.charset="utf-8",l.timeout=120,r.nc&&l.setAttribute("nonce",r.nc),l.src=n(e);var o=new Error;c=function(t){l.onerror=l.onload=null,clearTimeout(u);var a=s[e];if(0!==a){if(a){var i=t&&("load"===t.type?"missing":t.type),c=t&&t.target&&t.target.src;o.message="Loading chunk "+e+" failed.\n("+i+": "+c+")",o.name="ChunkLoadError",o.type=i,o.request=c,a[1](o)}s[e]=void 0}};var u=setTimeout((function(){c({type:"timeout",target:l})}),12e4);l.onerror=l.onload=c,document.head.appendChild(l)}return Promise.all(t)},r.m=e,r.c=i,r.d=function(e,t,a){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},r.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(r.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(a,i,function(t){return e[t]}.bind(null,i));return a},r.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r.oe=function(e){throw console.error(e),e};var l=window["webpackJsonp"]=window["webpackJsonp"]||[],o=l.push.bind(l);l.push=t,l=l.slice();for(var u=0;u<l.length;u++)t(l[u]);var g=o;c.push([0,"chunk-vendors"]),a()})({0:function(e,t,a){e.exports=a("56d7")},"0155":function(e,t,a){},"0e38":function(e,t,a){},"27b2":function(e,t,a){},"3b42":function(e,t,a){"use strict";var i=a("1da1"),s=(a("96cf"),a("a18c")),c=a("5b34"),n=a("8918"),r={user:null,messages:[],toRoute:"/friends",Login:function(e,t){var a=this;return Object(i["a"])(regeneratorRuntime.mark((function i(){var n;return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,Object(c["d"])(e,t);case 3:n=i.sent,a.user=n.user,s["a"].push(a.toRoute),i.next=11;break;case 8:i.prev=8,i.t0=i["catch"](0),a.Error(i.t0);case 11:case"end":return i.stop()}}),i,null,[[0,8]])})))()},Error:function(e){var t;console.error(e);var a=null!==(t=e.msg)&&void 0!==t?t:e;this.messages.push({text:a,type:"warning"}),n["a"].open({duration:5e3,message:a,variant:"danger",type:"danger",closable:!0})}};t["a"]=r},4748:function(e,t,a){"use strict";a("f3dc")},"4b4c":function(e,t,a){e.exports=a.p+"img/exercise.a7a64971.gif"},"4d05":function(e,t,a){"use strict";a("27b2")},"56d7":function(e,t,a){"use strict";a.r(t);a("e260"),a("e6cf"),a("cca6"),a("a79d");var i=a("7a23"),s=(a("6597"),a("15f5"),a("8918")),c=a("c43d"),n=(a("4624"),{class:"container"}),r=Object(i["h"])("div",{class:"columns"},null,-1);function l(e,t,a,s,c,l){var o=Object(i["C"])("Nav"),u=Object(i["C"])("router-view");return Object(i["v"])(),Object(i["g"])("div",n,[r,Object(i["k"])(o),Object(i["k"])(u)])}var o=a("4b4c"),u=a.n(o),g={class:"navbar is-transparent",role:"navigation","aria-label":"main navigation"},p={class:"navbar-brand"},b=Object(i["h"])("a",{class:"navbar-item",href:"https://bulma.io"},[Object(i["h"])("img",{src:u.a,height:"100"})],-1),h=Object(i["h"])("span",{"aria-hidden":"true"},null,-1),m=Object(i["h"])("span",{"aria-hidden":"true"},null,-1),f=Object(i["h"])("span",{"aria-hidden":"true"},null,-1),d=[h,m,f],j={class:"navbar-start"},O=Object(i["j"])(" Home "),v=Object(i["j"])(" Workouts "),k=Object(i["j"])(" Meals "),x=Object(i["j"])(" Profile "),w=Object(i["j"])(" Friends "),P={class:"navbar-end"},y={class:"navbar-item"};function S(e,t,a,s,c,n){var r=Object(i["C"])("router-link"),l=Object(i["C"])("signup-badge"),o=Object(i["C"])("login-badge");return Object(i["v"])(),Object(i["g"])("nav",g,[Object(i["h"])("div",p,[b,Object(i["h"])("a",{role:"button",class:Object(i["r"])(["navbar-burger",{"is-active":c.isActive}]),"aria-label":"menu","aria-expanded":"false",onClick:t[0]||(t[0]=function(e){return c.isActive=!c.isActive})},d,2)]),Object(i["h"])("div",{class:Object(i["r"])(["navbar-menu",{"is-active":c.isActive}])},[Object(i["h"])("div",j,[Object(i["k"])(r,{class:"navbar-item is-tab",to:"/","active-class":"is-active"},{default:Object(i["M"])((function(){return[O]})),_:1}),Object(i["k"])(r,{class:"navbar-item is-tab",to:"/workouts","active-class":"is-active"},{default:Object(i["M"])((function(){return[v]})),_:1}),Object(i["k"])(r,{class:"navbar-item is-tab",to:"/meals","active-class":"is-active"},{default:Object(i["M"])((function(){return[k]})),_:1}),Object(i["k"])(r,{class:"navbar-item is-tab",to:"/profile","active-class":"is-active"},{default:Object(i["M"])((function(){return[x]})),_:1}),Object(i["k"])(r,{class:"navbar-item is-tab",to:"/friends","active-class":"is-active"},{default:Object(i["M"])((function(){return[w]})),_:1})]),Object(i["h"])("div",P,[Object(i["h"])("div",y,[Object(i["k"])(l),Object(i["k"])(o)])])],2)])}a("b0c0");var C={key:0,class:"buttons"},R=Object(i["h"])("strong",null,"Sign up",-1),N=[R],U={key:1};function A(e,t,a,s,c,n){return c.Session.user?(Object(i["v"])(),Object(i["g"])("div",U," Welcome Back "+Object(i["F"])(n.name)+" ! ",1)):(Object(i["v"])(),Object(i["g"])("div",C,[Object(i["h"])("a",{class:"button is-link",onClick:t[0]||(t[0]=function(){return n.signup&&n.signup.apply(n,arguments)})},N),Object(i["h"])("a",{class:"button is-link",onClick:t[1]||(t[1]=function(){return n.login&&n.login.apply(n,arguments)})}," Log in ")]))}var B=a("3b42"),E={data:function(){return{Session:B["a"]}},methods:{login:function(){this.$router.push("/login")},signup:function(){this.$router.push("/signup")}},computed:{name:function(){return this.Session.user.firstName+" "+this.Session.user.lastName}}},L=a("6b0d"),_=a.n(L);const T=_()(E,[["render",A]]);var V=T,F={data:function(){return{isActive:!1}},components:{LoginBadge:V}};a("4748");const M=_()(F,[["render",S]]);var D=M,J={components:{Nav:D}};const q=_()(J,[["render",l]]);var I=q,W=a("a18c");Object(i["d"])(I).use(s["b"]).use(c["a"],{iconPack:"fas"}).use(W["a"]).mount("#app")},"5b34":function(e,t,a){"use strict";a.d(t,"b",(function(){return s})),a.d(t,"c",(function(){return c})),a.d(t,"a",(function(){return n})),a.d(t,"e",(function(){return r})),a.d(t,"d",(function(){return l}));var i=a("e62d");function s(){return Object(i["a"])("users")}function c(e){return Object(i["a"])("users/byhandle/"+e)}function n(e){return Object(i["a"])("users/register",e)}function r(e,t){return Object(i["a"])("users/"+e,t,"PATCH")}function l(e,t){return Object(i["a"])("users/login",{handle:e,password:t})}},"6ca7":function(e,t,a){"use strict";a("de97")},"770f":function(e,t,a){},7961:function(e,t,a){e.exports=a.p+"img/steps.fdc40152.png"},"8bd9":function(e,t,a){"use strict";a("0e38")},a18c:function(e,t,a){"use strict";a("d3b7"),a("3ca3"),a("ddb0");var i=a("6c02"),s=a("3b42"),c=a("7a23"),n={class:"content"},r={class:"notification is-link is-light"},l={key:0,class:"delete"},o={key:1},u=Object(c["h"])("h4",null," Your Daily Progress ",-1),g=Object(c["h"])("progress",{class:"progress is-link",value:"30",max:"100"},"30%",-1),p=Object(c["h"])("br",null,null,-1),b=Object(c["j"])(" Add Workout "),h=Object(c["h"])("br",null,null,-1),m=Object(c["h"])("br",null,null,-1),f=Object(c["h"])("br",null,null,-1),d=Object(c["h"])("h4",null," Check out what your friends are up to today! ",-1),j=Object(c["j"])(" Friends Feed ");function O(e,t,a,i,s,O){var v=Object(c["C"])("router-link");return Object(c["v"])(),Object(c["g"])("div",n,[Object(c["h"])("div",r,[s.Session.user?(Object(c["v"])(),Object(c["g"])("div",o," Welcome Back "+Object(c["F"])(this.Session.user.firstName)+"! ",1)):(Object(c["v"])(),Object(c["g"])("button",l))]),u,g,p,Object(c["k"])(v,{class:"button is-link",to:"/workouts","active-class":"is-active"},{default:Object(c["M"])((function(){return[b]})),_:1}),h,m,f,d,Object(c["k"])(v,{class:"button is-link",to:"/friends","active-class":"is-active"},{default:Object(c["M"])((function(){return[j]})),_:1})])}var v={data:function(){return{Session:s["a"]}},computed:{name:function(){return this.Session.user.firstName+" "+this.Session.user.lastName}}},k=(a("4d05"),a("6b0d")),x=a.n(k);const w=x()(v,[["render",O]]);var P=w,y=a("7961"),S=a.n(y),C={class:"content"},R=Object(c["h"])("br",null,null,-1),N=Object(c["h"])("div",{class:"search"},[Object(c["h"])("h3",{class:"heading"}," Workouts ")],-1),U=Object(c["h"])("br",null,null,-1),A=Object(c["h"])("div",null,[Object(c["j"])(" Your Weekly Progress: "),Object(c["h"])("progress",{class:"progress is-link",value:"30",max:"100"},"30%"),Object(c["h"])("br"),Object(c["h"])("div",{class:"steps"},[Object(c["h"])("article",{class:"message"},[Object(c["h"])("div",{class:"message-header"},[Object(c["h"])("p",null,"Total Steps"),Object(c["h"])("button",{class:"delete","aria-label":"delete"})]),Object(c["h"])("div",{class:"message-body"},[Object(c["h"])("img",{src:S.a,width:"50",height:"50"}),Object(c["h"])("h6",{class:"title"}," Steps ")])])])],-1),B=Object(c["h"])("br",null,null,-1),E=Object(c["h"])("br",null,null,-1),L=Object(c["h"])("div",{class:"arms"},[Object(c["h"])("h3",{class:"title"},"Arms "),Object(c["h"])("figure",{class:"workout-image"},[Object(c["h"])("img",{src:"https://bulma.io/images/placeholders/128x128.png"}),Object(c["h"])("figcaption",null,"Bicep Curl")]),Object(c["h"])("figure",{class:"workout-image"},[Object(c["h"])("img",{src:"https://bulma.io/images/placeholders/128x128.png"}),Object(c["h"])("figcaption",null,"Bench Press")]),Object(c["h"])("figure",{class:"workout-image"},[Object(c["h"])("img",{src:"https://bulma.io/images/placeholders/128x128.png"}),Object(c["h"])("figcaption",null,"Tricep Extension")]),Object(c["h"])("figure",{class:"workout-image"},[Object(c["h"])("img",{src:"https://bulma.io/images/placeholders/128x128.png"}),Object(c["h"])("figcaption",null,"Reverse Fly")]),Object(c["h"])("figure",{class:"workout-image"},[Object(c["h"])("img",{src:"https://bulma.io/images/placeholders/128x128.png"}),Object(c["h"])("figcaption",null,"Pull Ups")]),Object(c["h"])("figure",{class:"workout-image"},[Object(c["h"])("img",{src:"https://bulma.io/images/placeholders/128x128.png"}),Object(c["h"])("figcaption",null,"Push Ups")]),Object(c["h"])("figure",{class:"workout-image"},[Object(c["h"])("img",{src:"https://bulma.io/images/placeholders/128x128.png"}),Object(c["h"])("figcaption",null,"Tricep Dips")])],-1),_=Object(c["h"])("br",null,null,-1),T=Object(c["h"])("div",{class:"back-and-shoulders"},[Object(c["h"])("h3",{class:"title"},"Back & Shoulders "),Object(c["h"])("figure",{class:"workout-image"},[Object(c["h"])("img",{src:"https://bulma.io/images/placeholders/128x128.png"}),Object(c["h"])("figcaption",null,"Lat PullDown")]),Object(c["h"])("figure",{class:"workout-image"},[Object(c["h"])("img",{src:"https://bulma.io/images/placeholders/128x128.png"}),Object(c["h"])("figcaption",null,"Shoulder Press")]),Object(c["h"])("figure",{class:"workout-image"},[Object(c["h"])("img",{src:"https://bulma.io/images/placeholders/128x128.png"}),Object(c["h"])("figcaption",null,"Shoulder Shrugs")]),Object(c["h"])("figure",{class:"workout-image"},[Object(c["h"])("img",{src:"https://bulma.io/images/placeholders/128x128.png"}),Object(c["h"])("figcaption",null,"Back Fly")]),Object(c["h"])("figure",{class:"workout-image"},[Object(c["h"])("img",{src:"https://bulma.io/images/placeholders/128x128.png"}),Object(c["h"])("figcaption",null,"Rows")]),Object(c["h"])("figure",{class:"workout-image"},[Object(c["h"])("img",{src:"https://bulma.io/images/placeholders/128x128.png"}),Object(c["h"])("figcaption",null,"Front Raise")]),Object(c["h"])("figure",{class:"workout-image"},[Object(c["h"])("img",{src:"https://bulma.io/images/placeholders/128x128.png"}),Object(c["h"])("figcaption",null,"Lateral Raise")])],-1),V=Object(c["h"])("br",null,null,-1),F=Object(c["h"])("div",{class:"abs"},[Object(c["h"])("h3",{class:"title"}," Abs "),Object(c["h"])("figure",{class:"workout-image"},[Object(c["h"])("img",{src:"https://bulma.io/images/placeholders/128x128.png"}),Object(c["h"])("figcaption",null,"Crunches")]),Object(c["h"])("figure",{class:"workout-image"},[Object(c["h"])("img",{src:"https://bulma.io/images/placeholders/128x128.png"}),Object(c["h"])("figcaption",null,"Sit Ups")]),Object(c["h"])("figure",{class:"workout-image"},[Object(c["h"])("img",{src:"https://bulma.io/images/placeholders/128x128.png"}),Object(c["h"])("figcaption",null,"Bicycle Crunches")]),Object(c["h"])("figure",{class:"workout-image"},[Object(c["h"])("img",{src:"https://bulma.io/images/placeholders/128x128.png"}),Object(c["h"])("figcaption",null,"Russian Twists")]),Object(c["h"])("figure",{class:"workout-image"},[Object(c["h"])("img",{src:"https://bulma.io/images/placeholders/128x128.png"}),Object(c["h"])("figcaption",null,"Plank")]),Object(c["h"])("figure",{class:"workout-image"},[Object(c["h"])("img",{src:"https://bulma.io/images/placeholders/128x128.png"}),Object(c["h"])("figcaption",null,"Plank Leg Raises")]),Object(c["h"])("figure",{class:"workout-image"},[Object(c["h"])("img",{src:"https://bulma.io/images/placeholders/128x128.png"}),Object(c["h"])("figcaption",null,"Scissors")]),Object(c["h"])("figure",{class:"workout-image"},[Object(c["h"])("img",{src:"https://bulma.io/images/placeholders/128x128.png"}),Object(c["h"])("figcaption",null,"Reverse Crunch")])],-1),M=Object(c["h"])("br",null,null,-1),D=Object(c["h"])("div",{class:"butt"},[Object(c["h"])("h3",{class:"title"}," Legs & Butt "),Object(c["h"])("figure",{class:"workout-image"},[Object(c["h"])("img",{src:"https://bulma.io/images/placeholders/128x128.png"}),Object(c["h"])("figcaption",null,"Donkey Kicks")]),Object(c["h"])("figure",{class:"workout-image"},[Object(c["h"])("img",{src:"https://bulma.io/images/placeholders/128x128.png"}),Object(c["h"])("figcaption",null,"Squats")]),Object(c["h"])("figure",{class:"workout-image"},[Object(c["h"])("img",{src:"https://bulma.io/images/placeholders/128x128.png"}),Object(c["h"])("figcaption",null,"Sumo Squats")]),Object(c["h"])("figure",{class:"workout-image"},[Object(c["h"])("img",{src:"https://bulma.io/images/placeholders/128x128.png"}),Object(c["h"])("figcaption",null,"Lunges")]),Object(c["h"])("figure",{class:"workout-image"},[Object(c["h"])("img",{src:"https://bulma.io/images/placeholders/128x128.png"}),Object(c["h"])("figcaption",null,"Side Legs Raises")]),Object(c["h"])("figure",{class:"workout-image"},[Object(c["h"])("img",{src:"https://bulma.io/images/placeholders/128x128.png"}),Object(c["h"])("figcaption",null,"Calf Raise")]),Object(c["h"])("figure",{class:"workout-image"},[Object(c["h"])("img",{src:"https://bulma.io/images/placeholders/128x128.png"}),Object(c["h"])("figcaption",null,"Glute Bridge")])],-1),J=[R,N,U,A,B,E,L,_,T,V,F,M,D];function q(e,t){return Object(c["v"])(),Object(c["g"])("div",C,J)}a("fdb9");const I={},W=x()(I,[["render",q]]);var H=W,Z=Object(c["i"])('<div class="content"><br><div class="search"><button type="submit">Submit</button><input type="text" placeholder="Search"></div><br><h2 class="title"> Daily Calorie Intake: </h2><progress class="progress is-link" value="50" max="100">50%</progress><br><button class="button is-link">Add Meal</button></div><div class="meal-ideas"><h3 class="title"> Recipe Ideas </h3><div class="breakfast"><h3 class="title"> Breakfast </h3><figure class="meal-image"><img src="https://bulma.io/images/placeholders/128x128.png"><figcaption>Avocado Toast</figcaption></figure><figure class="meal-image"><img src="https://bulma.io/images/placeholders/128x128.png"><figcaption>Fruit Smoothie</figcaption></figure><figure class="meal-image"><img src="https://bulma.io/images/placeholders/128x128.png"><figcaption>Chia Seed Oatmeal</figcaption></figure><figure class="meal-image"><img src="https://bulma.io/images/placeholders/128x128.png"><figcaption>Acai Bowl</figcaption></figure><figure class="meal-image"><img src="https://bulma.io/images/placeholders/128x128.png"><figcaption>Honey Apple Toast</figcaption></figure><figure class="meal-image"><img src="https://bulma.io/images/placeholders/128x128.png"><figcaption>Breakfast Wrap</figcaption></figure><figure class="meal-image"><img src="https://bulma.io/images/placeholders/128x128.png"><figcaption>Cinnamon Pankcakes</figcaption></figure><figure class="meal-image"><img src="https://bulma.io/images/placeholders/128x128.png"><figcaption>Oatmeal Pumpmkin Muffins</figcaption></figure><figure class="meal-image"><img src="https://bulma.io/images/placeholders/128x128.png"><figcaption>Berry Yogurt Parfait</figcaption></figure><figure class="meal-image"><img src="https://bulma.io/images/placeholders/128x128.png"><figcaption>Sweet Potato Hashbrowns</figcaption></figure><figure class="meal-image"><img src="https://bulma.io/images/placeholders/128x128.png"><figcaption>English Muffin Breakfast Pizzas</figcaption></figure><figure class="meal-image"><img src="https://bulma.io/images/placeholders/128x128.png"><figcaption>Breakfast Banana Split</figcaption></figure></div><br><br><div class="lunch"><h3 class="title">Lunch</h3><figure class="meal-image"><img src="https://bulma.io/images/placeholders/128x128.png"><figcaption>Mediterranean Grilled Chicken Salad</figcaption></figure><figure class="meal-image"><img src="https://bulma.io/images/placeholders/128x128.png"><figcaption>Slow Cooker Split Pea Soup</figcaption></figure><figure class="meal-image"><img src="https://bulma.io/images/placeholders/128x128.png"><figcaption>Asian Chicken Lettuce Wraps</figcaption></figure><figure class="meal-image"><img src="https://bulma.io/images/placeholders/128x128.png"><figcaption>Avocado Chicken Salad</figcaption></figure><figure class="meal-image"><img src="https://bulma.io/images/placeholders/128x128.png"><figcaption>Spicy Salmon Bowl</figcaption></figure><figure class="meal-image"><img src="https://bulma.io/images/placeholders/128x128.png"><figcaption>Tuna Melt Sandwich</figcaption></figure><figure class="meal-image"><img src="https://bulma.io/images/placeholders/128x128.png"><figcaption>Egg Salad Sandwich</figcaption></figure><figure class="meal-image"><img src="https://bulma.io/images/placeholders/128x128.png"><figcaption>Zucchini Sushi</figcaption></figure><figure class="meal-image"><img src="https://bulma.io/images/placeholders/128x128.png"><figcaption>Chicken Burger</figcaption></figure><figure class="meal-image"><img src="https://bulma.io/images/placeholders/128x128.png"><figcaption>Strawberry Spinach Salad</figcaption></figure><figure class="meal-image"><img src="https://bulma.io/images/placeholders/128x128.png"><figcaption>Shrimp Salad Stuffed Avocado</figcaption></figure><figure class="meal-image"><img src="https://bulma.io/images/placeholders/128x128.png"><figcaption>Reuben Wraps</figcaption></figure></div><br><br><div class="dinner"><h3 class="title"> Dinner </h3><figure class="meal-image"><img src="https://bulma.io/images/placeholders/128x128.png"><figcaption>Black Bean Burger</figcaption></figure><figure class="meal-image"><img src="https://bulma.io/images/placeholders/128x128.png"><figcaption>Lemon Chicken</figcaption></figure><figure class="meal-image"><img src="https://bulma.io/images/placeholders/128x128.png"><figcaption>Pan-Fried Tilapia</figcaption></figure><figure class="meal-image"><img src="https://bulma.io/images/placeholders/128x128.png"><figcaption>Italian Sausage Stuffed Zucchini</figcaption></figure><figure class="meal-image"><img src="https://bulma.io/images/placeholders/128x128.png"><figcaption>Chicken Parm Stuffed Peppers</figcaption></figure><figure class="meal-image"><img src="https://bulma.io/images/placeholders/128x128.png"><figcaption>Tuscan Butter Roast Chicken</figcaption></figure><figure class="meal-image"><img src="https://bulma.io/images/placeholders/128x128.png"><figcaption>Honey Walnut Shrimp</figcaption></figure><figure class="meal-image"><img src="https://bulma.io/images/placeholders/128x128.png"><figcaption>Zucchini Lattice Lasagna</figcaption></figure><figure class="meal-image"><img src="https://bulma.io/images/placeholders/128x128.png"><figcaption>Chicken Casserole</figcaption></figure><figure class="meal-image"><img src="https://bulma.io/images/placeholders/128x128.png"><figcaption>Cilantro Lime Salmon Bowls</figcaption></figure><figure class="meal-image"><img src="https://bulma.io/images/placeholders/128x128.png"><figcaption>Caprese Zoodles</figcaption></figure><figure class="meal-image"><img src="https://bulma.io/images/placeholders/128x128.png"><figcaption>Cauliflower Grilled Cheese</figcaption></figure></div><br><br><div class="dessert"><h3 class="title"> Dessert </h3><figure class="meal-image"><img src="https://bulma.io/images/placeholders/128x128.png"><figcaption>Peanut Butter Oatmeal Bars</figcaption></figure><figure class="meal-image"><img src="https://bulma.io/images/placeholders/128x128.png"><figcaption>Dark Chocolate Pudding</figcaption></figure><figure class="meal-image"><img src="https://bulma.io/images/placeholders/128x128.png"><figcaption>Chocolate Covered Bananas</figcaption></figure><figure class="meal-image"><img src="https://bulma.io/images/placeholders/128x128.png"><figcaption>Oatmeal Cookies</figcaption></figure><figure class="meal-image"><img src="https://bulma.io/images/placeholders/128x128.png"><figcaption>Chocolate Zucchini Cake</figcaption></figure><figure class="meal-image"><img src="https://bulma.io/images/placeholders/128x128.png"><figcaption>Chickpea Cookie Dough</figcaption></figure><figure class="meal-image"><img src="https://bulma.io/images/placeholders/128x128.png"><figcaption>Roasted Peaches</figcaption></figure><figure class="meal-image"><img src="https://bulma.io/images/placeholders/128x128.png"><figcaption>Pumpkin Monster Cookies</figcaption></figure><figure class="meal-image"><img src="https://bulma.io/images/placeholders/128x128.png"><figcaption>Chocolate Hummus</figcaption></figure><figure class="meal-image"><img src="https://bulma.io/images/placeholders/128x128.png"><figcaption>Greek Yogurt Cheesecake</figcaption></figure><figure class="meal-image"><img src="https://bulma.io/images/placeholders/128x128.png"><figcaption>Apple Cake with Cream Cheese Frosting</figcaption></figure><figure class="meal-image"><img src="https://bulma.io/images/placeholders/128x128.png"><figcaption>Plum Crisp</figcaption></figure></div></div>',2),G=[Z];function Y(e,t,a,i,s,n){return Object(c["v"])(),Object(c["g"])("div",null,G)}var $={};a("ebc2");const z=x()($,[["render",Y]]);var K=z,Q={class:"section"},X=Object(c["h"])("h1",{class:"title"}," Friends Feed ",-1),ee={class:"columns"},te={class:"column is-half is-offset-one-quarter"},ae={class:"column"};function ie(e,t,a,i,s,n){var r=Object(c["C"])("post-edit"),l=Object(c["C"])("post");return Object(c["v"])(),Object(c["g"])("div",Q,[X,Object(c["h"])("div",ee,[Object(c["h"])("div",te,[Object(c["k"])(r,{"new-post":e.newPost,onAdd:t[0]||(t[0]=function(e){return n.add()})},null,8,["new-post"]),(Object(c["v"])(!0),Object(c["g"])(c["a"],null,Object(c["A"])(e.posts,(function(e,t){return Object(c["v"])(),Object(c["g"])("div",{class:"post",key:e.src},[Object(c["k"])(l,{post:e,onRemove:function(a){return n.remove(e,t)}},null,8,["post","onRemove"])])})),128))]),Object(c["h"])("div",ae,[Object(c["k"])(l,{post:e.newPost},null,8,["post"])])])])}var se=a("1da1"),ce=(a("a434"),a("96cf"),{class:"card"}),ne={class:"card-image"},re={class:"image is-4by3"},le=["src","alt"],oe={class:"card-content"},ue={class:"media"},ge={class:"media-left"},pe={class:"image is-48x48"},be=["src"],he={class:"media-content"},me={class:"title is-4"},fe={class:"subtitle is-6"},de=["datetime"],je={class:"content"},Oe=Object(c["h"])("footer",{class:"card-footer"},[Object(c["h"])("a",{href:"#",class:"card-footer-item"},"Like"),Object(c["h"])("a",{href:"#",class:"card-footer-item"},"Comment")],-1);function ve(e,t,a,i,s,n){return Object(c["v"])(),Object(c["g"])("div",ce,[Object(c["h"])("div",ne,[Object(c["h"])("figure",re,[Object(c["h"])("img",{src:a.post.src,alt:a.post.alt},null,8,le),Object(c["h"])("button",{class:"delete",onClick:t[0]||(t[0]=function(t){return e.$emit("remove")})})])]),Object(c["h"])("div",oe,[Object(c["h"])("div",ue,[Object(c["h"])("div",ge,[Object(c["h"])("figure",pe,[Object(c["h"])("img",{src:a.post.user.pic,alt:"Placeholder image"},null,8,be)])]),Object(c["h"])("div",he,[Object(c["h"])("p",me,Object(c["F"])(a.post.user.firstName)+" "+Object(c["F"])(a.post.user.lastName),1),Object(c["h"])("p",fe,[Object(c["j"])(Object(c["F"])(a.post.user.handle)+" ",1),Object(c["h"])("time",{datetime:a.post.time},Object(c["F"])(n.prettyDate),9,de)])])]),Object(c["h"])("div",je,Object(c["F"])(a.post.caption),1)]),Oe])}var ke={props:{post:Object},computed:{prettyDate:function(){return this.post.time&&this.post.time.toDateString?this.post.time.toDateString():"Never"}}};a("af1a");const xe=x()(ke,[["render",ve]]);var we=xe,Pe=a("5530"),ye=a("e62d");function Se(e){return Object(ye["a"])("posts/feed/"+e)}function Ce(e){return Object(Pe["a"])({},e)}function Re(e){return Object(ye["a"])("posts/"+e,{},"DELETE")}var Ne={class:"card-content"},Ue={class:"content"},Ae={class:"field"},Be=Object(c["h"])("label",{class:"label"},"Picture",-1),Ee={class:"control"},Le={class:"field"},_e=Object(c["h"])("label",{class:"label"},"Alt",-1),Te={class:"control"},Ve={class:"field"},Fe=Object(c["h"])("label",{class:"label"},"Caption",-1),Me={class:"control"},De={class:"field"},Je={class:"control"},qe={class:"radio"},Ie=Object(c["j"])(" Public "),We={class:"radio"},He=Object(c["j"])(" Private "),Ze=Object(c["h"])("footer",{class:"card-footer"},[Object(c["h"])("button",{class:"button is-link card-footer-item",type:"submit"},"Submit"),Object(c["h"])("button",{class:"button is-link is-light card-footer-item",type:"reset"},"Cancel")],-1);function Ge(e,t,a,i,s,n){return Object(c["v"])(),Object(c["g"])("form",{class:"card",onSubmit:t[5]||(t[5]=Object(c["O"])((function(t){return e.$emit("add")}),["prevent"]))},[Object(c["h"])("div",Ne,[Object(c["h"])("div",Ue,[Object(c["h"])("div",Ae,[Be,Object(c["h"])("div",Ee,[Object(c["N"])(Object(c["h"])("input",{class:"input",type:"url",placeholder:"Input a URL to a picture","onUpdate:modelValue":t[0]||(t[0]=function(e){return s.post.src=e})},null,512),[[c["J"],s.post.src]])])]),Object(c["h"])("div",Le,[_e,Object(c["h"])("div",Te,[Object(c["N"])(Object(c["h"])("input",{class:"input",type:"text",placeholder:"Some alternate text for this picture","onUpdate:modelValue":t[1]||(t[1]=function(e){return s.post.alt=e})},null,512),[[c["J"],s.post.alt]])])]),Object(c["h"])("div",Ve,[Fe,Object(c["h"])("div",Me,[Object(c["N"])(Object(c["h"])("textarea",{class:"textarea",placeholder:"Some text to explain this picture","onUpdate:modelValue":t[2]||(t[2]=function(e){return s.post.caption=e})},null,512),[[c["J"],s.post.caption]])])]),Object(c["h"])("div",De,[Object(c["h"])("div",Je,[Object(c["h"])("label",qe,[Object(c["N"])(Object(c["h"])("input",{type:"radio",name:"question","onUpdate:modelValue":t[3]||(t[3]=function(e){return s.post.isPublic=e}),value:!0},null,512),[[c["I"],s.post.isPublic]]),Ie]),Object(c["h"])("label",We,[Object(c["N"])(Object(c["h"])("input",{type:"radio",name:"question","onUpdate:modelValue":t[4]||(t[4]=function(e){return s.post.isPublic=e}),value:!1},null,512),[[c["I"],s.post.isPublic]]),He])])])])]),Ze],32)}var Ye={props:{newPost:Object},data:function(){return{post:this.newPost}},watch:{newPost:function(){this.post=this.newPost}}};const $e=x()(Ye,[["render",Ge]]);var ze=$e,Ke=function(){return{user:s["a"].user,user_handle:s["a"].user.handle}},Qe={components:{Post:we,PostEdit:ze},data:function(){return{posts:[],newPost:Ke()}},mounted:function(){var e=this;return Object(se["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Se(s["a"].user.handle);case 2:e.posts=t.sent;case 3:case"end":return t.stop()}}),t)})))()},methods:{remove:function(e,t){var a=this;return Object(se["a"])(regeneratorRuntime.mark((function i(){var s;return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return console.log({post:e}),i.next=3,Re(e._id);case 3:s=i.sent,s.deleted&&a.posts.splice(t,1);case 5:case"end":return i.stop()}}),i)})))()},add:function(){var e=this;return Object(se["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return console.log("Adding new post at "+new Date),t.next=3,Ce(e.newPost);case 3:a=t.sent,console.log({response:a}),a&&(e.posts.unshift(a),e.newPost=Ke());case 6:case"end":return t.stop()}}),t)})))()}}};a("6ca7");const Xe=x()(Qe,[["render",ie]]);var et=Xe,tt={class:"container"},at=Object(c["h"])("h1",{class:"title is-8"}," Profile ",-1),it={class:"columns"},st={class:"column is-two-thirds"},ct={class:"cards"},nt={class:"card-content"},rt={class:"field"},lt=Object(c["h"])("label",{class:"label"},"Profile Picture",-1),ot={class:"control"},ut={class:"field"},gt=Object(c["h"])("label",{class:"label"},"Username: ",-1),pt={class:"control"},bt={class:"field"},ht=Object(c["h"])("label",{class:"label"},"Bio: ",-1),mt={class:"control"},ft={class:"field"},dt={class:"control"},jt={class:"radio"},Ot=Object(c["j"])(" Public Account "),vt={class:"radio"},kt=Object(c["j"])(" Private Account "),xt=Object(c["h"])("div",{class:"field is-grouped"},[Object(c["h"])("div",{class:"control"},[Object(c["h"])("button",{class:"button is-link"},"Enter New Information")])],-1);function wt(e,t,a,i,s,n){return Object(c["v"])(),Object(c["g"])("div",tt,[at,Object(c["h"])("div",it,[Object(c["h"])("div",st,[Object(c["h"])("div",ct,[Object(c["h"])("div",nt,[Object(c["h"])("form",{onSubmit:t[5]||(t[5]=Object(c["O"])((function(t){return e.update()}),["prevent"]))},[Object(c["h"])("div",rt,[lt,Object(c["h"])("div",ot,[Object(c["N"])(Object(c["h"])("input",{class:"input",placeholder:"Enter your username","onUpdate:modelValue":t[0]||(t[0]=function(t){return e.users.pic=t})},null,512),[[c["J"],e.users.pic]])])]),Object(c["h"])("div",ut,[gt,Object(c["h"])("div",pt,[Object(c["N"])(Object(c["h"])("input",{class:"input",placeholder:"Enter your username","onUpdate:modelValue":t[1]||(t[1]=function(t){return e.users.handle=t})},null,512),[[c["J"],e.users.handle]])])]),Object(c["h"])("div",bt,[ht,Object(c["h"])("div",mt,[Object(c["N"])(Object(c["h"])("textarea",{class:"textarea",placeholder:"Tell us about yourself!","onUpdate:modelValue":t[2]||(t[2]=function(t){return e.users.bio=t})},null,512),[[c["J"],e.users.bio]])])]),Object(c["h"])("div",ft,[Object(c["h"])("div",dt,[Object(c["h"])("label",jt,[Object(c["N"])(Object(c["h"])("input",{type:"radio",name:"question","onUpdate:modelValue":t[3]||(t[3]=function(t){return e.users.isPublic=t}),value:!0},null,512),[[c["I"],e.users.isPublic]]),Ot]),Object(c["h"])("label",vt,[Object(c["N"])(Object(c["h"])("input",{type:"radio",name:"question","onUpdate:modelValue":t[4]||(t[4]=function(t){return e.users.isPublic=t}),value:!1},null,512),[[c["I"],e.users.isPublic]]),kt])])]),xt],32)])])])])])}var Pt=a("5b34"),yt={data:function(){return{user:[],users:[],toRoute:"/profile"}},mounted:function(){var e=this;return Object(se["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(Pt["c"])(s["a"].user.handle);case 2:e.users=t.sent;case 3:case"end":return t.stop()}}),t)})))()},methods:{Update:function(){var e=this;return Object(se["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(Pt["e"])(s["a"].user.user_id,e.user);case 2:a=t.sent,console.log({response:a}),a&&ma.push(e.toRoute);case 5:case"end":return t.stop()}}),t)})))()}},computed:{name:function(){return this.Session.user.handle}}};a("8bd9");const St=x()(yt,[["render",wt]]);var Ct=St,Rt={class:"signup"},Nt={class:"columns"},Ut={class:"column is-two-thirds"},At={class:"cards"},Bt={class:"card-content"},Et=Object(c["h"])("p",{class:"title"},"Sign up",-1),Lt={class:"field"},_t=Object(c["h"])("label",{class:"label"},"Profile Picture",-1),Tt={class:"control"},Vt={class:"content"},Ft={class:"field"},Mt=Object(c["h"])("label",{class:"label"},"First Name: ",-1),Dt={class:"control"},Jt={class:"field"},qt=Object(c["h"])("label",{class:"label"},"Last Name: ",-1),It={class:"control"},Wt={class:"field"},Ht=Object(c["h"])("label",{class:"label"},"Username: ",-1),Zt={class:"control"},Gt={class:"field"},Yt=Object(c["h"])("label",{class:"label"},"Password: ",-1),$t={class:"control"},zt={class:"field"},Kt=Object(c["h"])("label",{class:"label"},"Email Address: ",-1),Qt={class:"control"},Xt={class:"field"},ea=Object(c["h"])("label",{class:"label"},"Bio:",-1),ta={class:"control"},aa={class:"field"},ia={class:"control"},sa={class:"radio"},ca=Object(c["j"])(" Public Account "),na={class:"radio"},ra=Object(c["j"])(" Private Account "),la=Object(c["h"])("footer",{class:"card-footer"},[Object(c["h"])("button",{class:"button is-link card-footer-item",type:"submit"},"Sign Up!")],-1);function oa(e,t,a,i,s,n){return Object(c["v"])(),Object(c["g"])("div",Rt,[Object(c["h"])("div",Nt,[Object(c["h"])("div",Ut,[Object(c["h"])("div",At,[Object(c["h"])("div",Bt,[Et,Object(c["h"])("div",Lt,[_t,Object(c["h"])("div",Tt,[Object(c["N"])(Object(c["h"])("input",{class:"input",placeholder:"Upload a profile picture","onUpdate:modelValue":t[0]||(t[0]=function(t){return e.user.pic=t})},null,512),[[c["J"],e.user.pic]])])]),Object(c["h"])("div",Vt,[Object(c["h"])("form",{onSubmit:t[9]||(t[9]=Object(c["O"])((function(e){return n.signup()}),["prevent"]))},[Object(c["h"])("div",Ft,[Mt,Object(c["h"])("div",Dt,[Object(c["N"])(Object(c["h"])("input",{class:"input",placeholder:"Enter your first name","onUpdate:modelValue":t[1]||(t[1]=function(t){return e.user.firstName=t})},null,512),[[c["J"],e.user.firstName]])])]),Object(c["h"])("div",Jt,[qt,Object(c["h"])("div",It,[Object(c["N"])(Object(c["h"])("input",{class:"input",placeholder:"Enter your last name","onUpdate:modelValue":t[2]||(t[2]=function(t){return e.user.lastName=t})},null,512),[[c["J"],e.user.lastName]])])]),Object(c["h"])("div",Wt,[Ht,Object(c["h"])("div",Zt,[Object(c["N"])(Object(c["h"])("input",{class:"input",placeholder:"Enter a username","onUpdate:modelValue":t[3]||(t[3]=function(t){return e.user.handle=t})},null,512),[[c["J"],e.user.handle]])])]),Object(c["h"])("div",Gt,[Yt,Object(c["h"])("div",$t,[Object(c["N"])(Object(c["h"])("input",{class:"input",placeholder:"Enter a password","onUpdate:modelValue":t[4]||(t[4]=function(t){return e.user.password=t})},null,512),[[c["J"],e.user.password]])])]),Object(c["h"])("div",zt,[Kt,Object(c["h"])("div",Qt,[Object(c["N"])(Object(c["h"])("input",{class:"input",placeholder:"Enter your email","onUpdate:modelValue":t[5]||(t[5]=function(t){return e.user.email=t})},null,512),[[c["J"],e.user.email]])])]),Object(c["h"])("div",Xt,[ea,Object(c["h"])("div",ta,[Object(c["N"])(Object(c["h"])("textarea",{class:"textarea",placeholder:"Tell us about yourself!","onUpdate:modelValue":t[6]||(t[6]=function(t){return e.user.bio=t})},null,512),[[c["J"],e.user.bio]])])]),Object(c["h"])("div",aa,[Object(c["h"])("div",ia,[Object(c["h"])("label",sa,[Object(c["N"])(Object(c["h"])("input",{type:"radio",name:"question","onUpdate:modelValue":t[7]||(t[7]=function(t){return e.user.isPublic=t}),value:!0},null,512),[[c["I"],e.user.isPublic]]),ca]),Object(c["h"])("label",na,[Object(c["N"])(Object(c["h"])("input",{type:"radio",name:"question","onUpdate:modelValue":t[8]||(t[8]=function(t){return e.user.isPublic=t}),value:!1},null,512),[[c["I"],e.user.isPublic]]),ra])])]),la],32)])])])])])])}var ua={data:function(){return{user:[],toRoute:"/login",Session:s["a"]}},methods:{signup:function(){var e=this;return Object(se["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(Pt["a"])(e.user);case 2:a=t.sent,console.log({response:a}),a&&(e.user.unshift(e.user),ma.push(e.toRoute));case 5:case"end":return t.stop()}}),t)})))()}}};const ga=x()(ua,[["render",oa]]);var pa=ga,ba=[{path:"/",name:"Home",component:P},{path:"/workouts",name:"Workouts",component:H,meta:{requiresLogin:!0}},{path:"/meals",name:"Meals",component:K,meta:{requiresLogin:!0}},{path:"/friends",name:"Friends",component:et,meta:{requiresLogin:!0}},{path:"/profile",name:"Profile",component:Ct,meta:{requiresLogin:!0}},{path:"/signup",name:"Sign Up",component:pa},{path:"/users",name:"Users",component:function(){return a.e("admin").then(a.bind(null,"ed81"))}},{path:"/login",name:"Login",component:function(){return a.e("about").then(a.bind(null,"a55b"))}}],ha=Object(i["a"])({history:Object(i["b"])(""),routes:ba});ha.beforeEach((function(e,t,a){e.meta.requiresLogin&&!s["a"].user?a("/login"):a()}));var ma=t["a"]=ha},af1a:function(e,t,a){"use strict";a("0155")},de97:function(e,t,a){},e02c:function(e,t,a){},e62d:function(e,t,a){"use strict";a.d(t,"a",(function(){return r}));var i,s=a("1da1"),c=(a("96cf"),a("d3b7"),a("3b42")),n=null!==(i=Object({VUE_APP_APT_ROOT:"/",NODE_ENV:"production",BASE_URL:""}).VUE_APP_API_ROOT)&&void 0!==i?i:"http://localhost:3000/";function r(e){return l.apply(this,arguments)}function l(){return l=Object(s["a"])(regeneratorRuntime.mark((function e(t){var a,i,s,r=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=r.length>1&&void 0!==r[1]?r[1]:null,i=r.length>2&&void 0!==r[2]?r[2]:null,e.prev=2,!a){e.next=9;break}return e.next=6,fetch(n+t,{method:null!==i&&void 0!==i?i:"POST",cache:"no-cache",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)});case 6:s=e.sent,e.next=12;break;case 9:return e.next=11,fetch(n+t);case 11:s=e.sent;case 12:if(s.ok){e.next=16;break}return e.next=15,s.json();case 15:throw e.sent;case 16:return e.next=18,s.json();case 18:return e.abrupt("return",e.sent);case 21:e.prev=21,e.t0=e["catch"](2),c["a"].Error(e.t0);case 24:case"end":return e.stop()}}),e,null,[[2,21]])}))),l.apply(this,arguments)}},ebc2:function(e,t,a){"use strict";a("770f")},f3dc:function(e,t,a){},fdb9:function(e,t,a){"use strict";a("e02c")}});
  //# sourceMappingURL=app.488d54a1.js.map