(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["restaurant"],{"30cd":function(t,a,e){},3793:function(t,a,e){"use strict";e("763d")},4435:function(t,a,e){"use strict";e("30cd")},"763d":function(t,a,e){},ad68: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",{staticClass:"page page--restaurant animated_content"},[e("SeqEntrance",{attrs:{animation:"animate__fadeInUp",tag:"div"}},[e("StickyHeader",{staticClass:"animate__animated",attrs:{title:t.restaurant.name,"background-image":t.restaurant.image_background?t.restaurant.image_background.path:null,"with-menu":""}}),e("RestaurantInfo",{staticClass:"animate__animated",attrs:{restaurant:t.restaurant}}),e("div",{staticClass:"col-2 no_animation"},[e("div",{staticClass:"col menu_container"},[e("LoadingIndicator",{directives:[{name:"show",rawName:"v-show",value:t.fetching.restaurantMenu,expression:"fetching.restaurantMenu"}]}),t.restaurantMenu.length>0?e("SeqEntrance",{attrs:{animation:"animate__fadeInUp",tag:"div"}},t._l(t.restaurantMenu,(function(a){return e("MenuHeader",{key:a.label,staticClass:"animate__animated",attrs:{label:a.label}},[e("SeqEntrance",{attrs:{animation:"animate__fadeInUp",tag:"div"}},t._l(a.data,(function(a){return e("MenuItem",{key:a.id,staticClass:"animate__animated",attrs:{item:a,"restaurant-id":t.id}})})),1)],1)})),1):t._e()],1),e("div",{staticClass:"col info_container"},[e("h4",{staticStyle:{"padding-bottom":"4px"}}),e("SeqEntrance",{attrs:{animation:"animate__fadeInUp",tag:"div"}},[t.restaurant.description?e("InfoBox",{staticClass:"animate__animated",attrs:{space:""}},[e("p",{staticClass:"info_line"},[t._v(t._s(t.restaurant.description))])]):t._e(),e("InfoBox",{staticClass:"animate__animated",attrs:{space:""}},[e("h4",{staticClass:"info_title"},[t._v("Adres")]),e("p",{staticClass:"info_line"},[t._v(t._s(t.restaurant.street)+" "+t._s(t.restaurant.house_nr)+t._s(t.restaurant.apartment_nr?"/"+t.restaurant.apartment_nr:""))]),e("p",{staticClass:"info_line"},[t._v(t._s(t.restaurant.postcode)+" "+t._s(t.restaurant.city?t.restaurant.city.name:""))])]),e("InfoBox",{staticClass:"animate__animated",attrs:{space:""}},[e("h4",{staticClass:"info_title"},[t._v("Godziny dostawy")]),e("div",{staticClass:"info_line"},[e("p",[t._v("Poniedziałek:")]),e("p",{staticClass:"number-text"},[t._v(t._s(t.restaurant.monday))])]),e("div",{staticClass:"info_line"},[e("p",[t._v("Wtorek:")]),e("p",{staticClass:"number-text"},[t._v(t._s(t.restaurant.tuesday))])]),e("div",{staticClass:"info_line"},[e("p",[t._v("Środa:")]),e("p",{staticClass:"number-text"},[t._v(t._s(t.restaurant.wednesday))])]),e("div",{staticClass:"info_line"},[e("p",[t._v("Czwartek:")]),e("p",{staticClass:"number-text"},[t._v(t._s(t.restaurant.thursday))])]),e("div",{staticClass:"info_line"},[e("p",[t._v("Piątek:")]),e("p",{staticClass:"number-text"},[t._v(t._s(t.restaurant.friday))])]),e("div",{staticClass:"info_line"},[e("p",[t._v("Sobota:")]),e("p",{staticClass:"number-text"},[t._v(t._s(t.restaurant.saturday))])]),e("div",{staticClass:"info_line"},[e("p",[t._v("Niedziela:")]),e("p",{staticClass:"number-text"},[t._v(t._s(t.restaurant.sunday))])])]),e("InfoBox",{staticClass:"animate__animated",attrs:{space:""}},[e("h4",{staticClass:"info_title"},[t._v("Dostawa")]),t.restaurant.min_price_order?e("div",{staticClass:"info_line"},[e("p",[t._v("Minimalna kwota zamówienia:")]),e("p",[t._v(t._s(t.restaurant.min_price_order.toFixed(2).toString().replace(".",","))+" zł")])]):t._e(),t.restaurant.min_cost_delivery&&t.restaurant.max_cost_delivery?e("div",{staticClass:"info_line"},[e("p",[t._v("Koszt dostawy:")]),t.restaurant.min_cost_delivery.toFixed(2)===t.restaurant.max_cost_delivery.toFixed(2)?e("p",[t._v(t._s(t.restaurant.max_cost_delivery.toFixed(2).toString().replace(".",","))+" zł")]):"0.00"===t.restaurant.max_cost_delivery.toFixed(2)?e("p",[t._v("Darmowa")]):e("p",[t._v(" "+t._s(t.restaurant.min_cost_delivery.toFixed(2).toString().replace(".",","))+" - "+t._s(t.restaurant.max_cost_delivery.toFixed(2).toString().replace(".",","))+" zł ")])]):t._e()]),t.restaurant.email||t.restaurant.phone?e("InfoBox",{staticClass:"animate__animated",attrs:{space:""}},[e("h4",{staticClass:"info_title"},[t._v("Dane kontaktowe")]),t.restaurant.email?e("div",{staticClass:"info_line"},[e("p",[t._v("E-mail:")]),e("p",[e("a",{attrs:{href:"mailto:"+t.restaurant.email}},[t._v(t._s(t.restaurant.email))])])]):t._e(),t.restaurant.phone?e("div",{staticClass:"info_line"},[e("p",[t._v("Telefon:")]),e("p",[t._v(t._s(t.restaurant.phone))])]):t._e()]):t._e(),t.restaurant.payment_methods?e("InfoBox",{staticClass:"animate__animated",attrs:{space:""}},[e("h4",{staticClass:"info_title"},[t._v("Metody płatności")]),e("div",{staticClass:"payment_method_line"},t._l(t.restaurant.payment_methods,(function(a){return e("div",{key:a.id,staticClass:"payment_method"},[a.image?e("img",{staticClass:"payment_method_image",attrs:{src:t.$asset(a.image.path),alt:a.image.original_name}}):t._e()])})),0)]):t._e(),t.restaurant.company_name||t.restaurant.company_address||t.restaurant.nip?e("InfoBox",{staticClass:"animate__animated",attrs:{space:""}},[e("h4",{staticClass:"info_title"},[t._v("Informacje prawne")]),t.restaurant.company_name?e("div",{staticClass:"info_line"},[e("p",[t._v(t._s(t.restaurant.company_name))])]):t._e(),t.restaurant.company_address?e("div",{staticClass:"info_line"},[e("p",[t._v(t._s(t.restaurant.company_address))])]):t._e(),t.restaurant.nip?e("div",{staticClass:"info_line"},[e("p",[t._v("NIP: "+t._s(t.restaurant.nip))])]):t._e()]):t._e()],1)],1)]),e("div",{staticClass:"flex-fill animate__animated"}),e("PlainFooter",{staticClass:"animate__animated"})],1),e("Drawer"),e("SearchAddress"),e("Cart")],1)},n=[],i=e("2909"),r=e("5530"),_=e("2f62"),o=e("042a"),c=e("6826"),d=e("28ca"),l=e("f5dd"),u=e("af98"),m=e("bb90"),p=e("5bbf"),v=e("73de"),f=e("b93f"),C=function(){var t=this,a=t.$createElement;t._self._c;return t._m(0)},h=[function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"loading-indicator"},[e("div",{staticClass:"lds-ring"},[e("div"),e("div"),e("div"),e("div")])])}],y={name:"LoadingIndicator"},g=y,x=(e("4435"),e("2877")),b=Object(x["a"])(g,C,h,!1,null,"3df2f386",null),w=b.exports,I=e("85f3"),k={name:"Restaurant",components:{LoadingIndicator:w,Cart:f["a"],MenuItem:v["a"],MenuHeader:p["a"],InfoBox:m["a"],RestaurantInfo:u["a"],PlainFooter:c["a"],Drawer:d["a"],SearchAddress:l["a"],StickyHeader:o["a"],SeqEntrance:I["a"]},props:{id:{type:String}},data:function(){return{restaurantMenu:[]}},computed:Object(r["a"])(Object(r["a"])({},Object(_["b"])(["restaurantsMenu","fetching"])),{},{restaurant:function(){return this.$store.getters.restaurant(this.id)}}),watch:{restaurantsMenu:{handler:function(t){t[this.id]&&(this.restaurantMenu=Object(i["a"])(t[this.id]))},deep:!0,immediate:!0}},created:function(){var t=this;this.$store.dispatch("fetchRestaurantMenu",{restaurantId:this.id}).then((function(){t.restaurantMenu=Object(i["a"])(t.restaurantsMenu[t.id])}))}},M=k,S=(e("3793"),Object(x["a"])(M,s,n,!1,null,"3da9375e",null));a["default"]=S.exports}}]); //# sourceMappingURL=restaurant.8c529082.js.map