(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0ca69a0b"],{1178:function(t,a,e){},4183:function(t,a,e){"use strict";e.r(a);var s=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",[e("v-card",[e("v-card-text",[e("v-row",[e("v-col",[e("restaurants-filters",{model:{value:t.filters,callback:function(a){t.filters=a},expression:"filters"}})],1),e("v-col",{staticClass:"text-right",attrs:{cols:"2"}},[e("v-btn",{staticClass:"toolbar-display-switch",attrs:{to:{name:"map"},outlined:"",fab:"",small:"",color:"grey lighten-1"}},[e("v-icon",{attrs:{color:"grey"}},[t._v("mdi-map")])],1)],1)],1)],1)],1),e("restaurants-list",{staticClass:"px-2 mt-4",attrs:{loading:t.retrievingRestaurants,restaurants:t.filteredRestaurants},on:{"restaurant-click":t.showCurrentRestaurantDetails}}),e("v-dialog",{attrs:{fullscreen:t.$vuetify.breakpoint.xs,persistent:"",scrollable:"","max-height":"90vh","max-width":"600px",transition:"slide-x-transition"},model:{value:t.showRestaurantDetailsDialog,callback:function(a){t.showRestaurantDetailsDialog=a},expression:"showRestaurantDetailsDialog"}},[e("restaurant-details",{attrs:{restaurant:t.currentRestaurant},on:{close:t.hideCurrentRestaurantDetails}})],1)],1)},r=[],n=e("5530"),i=(e("4de4"),e("2660")),l=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",t._l(t.restaurants,(function(a,s){return e("restaurant-preview",{key:s,staticClass:"mb-2",attrs:{restaurant:a},on:{"restaurant-click":function(e){return t.selectRestaurant(a)}}})})),1)},u=[],c=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("v-card",{staticClass:"preview-restaurant-card",on:{click:t.restaurantClicked}},[e("v-card-text",{staticClass:"pa-2 d-flex"},[e("v-avatar",{attrs:{size:"120",tile:""}},[e("v-img",{attrs:{"max-width":"120","max-height":"120","lazy-src":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP88B8AAuUB8e2ujYwAAAAASUVORK5CYII=",src:t.restaurant.avatar_url}})],1),e("div",{staticClass:"preview-restaurant-card-text pl-2"},[e("h3",{staticClass:"mb-1"},[t._v(" "+t._s(t.restaurant.name)+" ")]),e("p",{staticClass:"mb-0"},[t._v(" "+t._s(t.restaurant.address)),e("br"),t._v(" "+t._s(t.restaurant.zipcode)+" "+t._s(t.restaurant.city)+" ")])])],1)],1)},o=[],d={name:"RestaurantPreview",props:{restaurant:{type:Object,default:Object.new}},methods:{restaurantClicked:function(){this.$emit("restaurant-click",this.restaurant)}}},f=d,h=(e("6b6e"),e("2877")),v=e("6544"),p=e.n(v),m=e("8212"),R=e("b0af"),b=e("99d9"),A=e("adda"),w=Object(h["a"])(f,c,o,!1,null,null,null),g=w.exports;p()(w,{VAvatar:m["a"],VCard:R["a"],VCardText:b["c"],VImg:A["a"]});var C={name:"RestaurantsList",components:{RestaurantPreview:g},props:{loading:{type:Boolean,default:!0},restaurants:{type:Array,default:function(){return[]}}},methods:{selectRestaurant:function(t){this.$store.dispatch("restaurants/setCurrent",t.id),this.$emit("restaurant-click")}}},x=C,D=Object(h["a"])(x,l,u,!1,null,null,null),_=D.exports,k=e("2f62"),O=e("77df"),V=e("006d"),j={data:function(){return{filters:{},showRestaurantDetailsDialog:!1}},components:{RestaurantsFilters:O["a"],RestaurantDetails:i["a"],RestaurantsList:_},mounted:function(){this.fetchList()},computed:Object(n["a"])(Object(n["a"])({},Object(k["c"])({retrievingRestaurants:"loading/retrievingRestaurants",allRestaurants:"restaurants/all",currentRestaurant:"restaurants/currentRestaurant"})),{},{filteredRestaurants:function(){var t=this;return this.allRestaurants.filter((function(a){return Object(V["a"])(a,t.filters)}))}}),methods:Object(n["a"])(Object(n["a"])({},Object(k["b"])({fetchList:"restaurants/fetchList"})),{},{showCurrentRestaurantDetails:function(){this.showRestaurantDetailsDialog=!0},hideCurrentRestaurantDetails:function(){this.showRestaurantDetailsDialog=!1}})},y=j,$=e("8336"),B=e("62ad"),E=e("169a"),L=e("132d"),I=e("0fd9"),U=Object(h["a"])(y,s,r,!1,null,null,null);a["default"]=U.exports;p()(U,{VBtn:$["a"],VCard:R["a"],VCardText:b["c"],VCol:B["a"],VDialog:E["a"],VIcon:L["a"],VRow:I["a"]})},"6b6e":function(t,a,e){"use strict";e("1178")}}]);
//# sourceMappingURL=chunk-0ca69a0b.b244754c.js.map