(window.webpackJsonp=window.webpackJsonp||[]).push([[185,67,76,80],{1116:function(e,t,o){"use strict";o.r(t);o(53),o(68);var r={name:"NuxtContent",computed:{deliver_available:function(){return this.$setting("order.order_types").includes("delivery")},pickup_available:function(){return this.$setting("order.order_types").includes("pickup")||this.$setting("order.order_types").includes("drive-thru")}}},n=(o(892),o(38)),component=Object(n.a)(r,(function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("section",{staticClass:"homePage overflow-hidden text-center pb-4 d-flex align-items-center flex-column"},[o("LazyHomeSlider",{attrs:{place:"web"}}),e._v(" "),o("div",{staticClass:"container"},[""!=e.$message("hungry_order_your_favorite_meal_now")?o("h1",{staticClass:"fw-bold mb-2"},[e._v(e._s(e.$message("hungry_order_your_favorite_meal_now")))]):e._e(),e._v(" "),""!=e.$message("the_way_a_food_ordering_should_be")?o("h2",{staticClass:"mb-5"},[e._v(e._s(e.$message("the_way_a_food_ordering_should_be")))]):e._e(),e._v(" "),o("div",{staticClass:"buttonsArea d-flex align-items-center justify-content-center"},[e.deliver_available?o("button",{staticClass:"deliveryModalBtn btnStyle border-0 p-0 d-flex align-items-center justify-content-center fw-bold mx-2 mx-md-3",attrs:{type:"button"},on:{click:function(t){return e.$emit("showDeliverBox")}}},[e._v("\n        "+e._s(e.$message("delivery"))+"\n      ")]):e._e(),e._v(" "),e.pickup_available?o("button",{staticClass:"pickupModalBtn btnStyle border-0 p-0 d-flex align-items-center justify-content-center fw-bold mx-2 mx-md-3",attrs:{type:"button"},on:{click:function(t){return e.$emit("showPickupBox")}}},[e._v("\n        "+e._s(e.$message("pickup_from_branch"))+"\n      ")]):e._e()])])],1)}),[],!1,null,null,null);t.default=component.exports},1175:function(e,t,o){"use strict";o(975)},1176:function(e,t,o){var r=o(75)(!1);r.push([e.i,"main[data-v-3febe20a]{background-image:var(--homeDesktopBG);background-position:50%;background-repeat:no-repeat;background-size:cover}@media(max-width:575.98px){main[data-v-3febe20a]{background-image:var(--homePhoneBG)}}main .topBar[data-v-3febe20a]{top:0}",""]),e.exports=r},1461:function(e,t,o){"use strict";o.r(t);var r=o(12),n=(o(59),o(54),{name:"IndexPage",head:function(){return{title:this.$setting("website.site_name")}},data:function(){return{is_loading:!0,show_deliver_box:!1,show_pickup_box:!1,show_drivethru_box:!1,selected_branch:"",lastOrderDetails:null}},mounted:function(){var e=this;this.$route.params.type?setTimeout((function(){"delivery"==e.$route.params.type?e.show_deliver_box=!0:"pickup"==e.$route.params.type?(e.show_pickup_box=!0,e.selected_branch=e.$route.params.branch):"drivethru"==e.$route.params.type&&(e.show_drivethru_box=!0,e.selected_branch=e.$route.params.branch)}),300):this.checkAutoGoToMenu(),this.getUserLocation(),this.$store.state.localStorage.customer.is_guest||this.getLastNotRatedOrder()},methods:{checkAutoGoToMenu:function(){"emenu"!=this.$store.state.localStorage.order.type&&"dinein"!=this.$store.state.localStorage.order.type||(this.$store.state.localStorage.order.type=null),1==this.$setting("website.auto_go_to_menu")?this.$router.push(this.localePath("/menu")):this.is_loading=!1},getUserLocation:function(){this.$store.commit("getUserLocation")},getLastNotRatedOrder:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var o,r,n,l;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,o=e.$store.state.localStorage.customer.data.id,t.next=4,e.$axios.get("/api/v1/order/orders/getLastNotRatedOrder/".concat(o));case 4:(r=t.sent).data&&r.data.data&&r.data.data.id&&(n=r.data.data.id,l=null,void 0!==localStorage&&(l=localStorage.getItem("lastRatedOrderID")),l!==n&&(e.lastOrderDetails=r.data.data,e.$nextTick((function(){e.$refs.rateModal.dialog=!0})),void 0!==localStorage&&localStorage.setItem("lastRatedOrderID",n))),t.next=11;break;case 8:t.prev=8,t.t0=t.catch(0),console.log(t.t0);case 11:case"end":return t.stop()}}),t,null,[[0,8]])})))()}}}),l=(o(1175),o(38)),component=Object(l.a)(n,(function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("main",{staticClass:"d-flex flex-column justify-content-between min-vh-100"},[!e.is_loading||e.show_deliver_box||e.show_pickup_box||e.show_drivethru_box?[o("LayoutHeaderHome",{attrs:{show_deliver_box:e.show_deliver_box,show_pickup_box:e.show_pickup_box,show_drivethru_box:e.show_drivethru_box,selected_branch:e.selected_branch},on:{orderTypeModalClosed:function(t){e.show_deliver_box=!1,e.show_pickup_box=!1,e.show_drivethru_box=!1}}}),e._v(" "),o("HomeContent",{on:{showDeliverBox:function(t){e.show_deliver_box=!0,e.show_pickup_box=!1},showPickupBox:function(t){e.show_pickup_box=!0,e.show_deliver_box=!1}}}),e._v(" "),e.lastOrderDetails?o("GeneralRateModal",{ref:"rateModal",attrs:{order:e.lastOrderDetails}}):e._e(),e._v(" "),o("LazyLayoutFooter")]:e._e()],2)}),[],!1,null,"3febe20a",null);t.default=component.exports;installComponents(component,{LayoutHeaderHome:o(870).default,HomeContent:o(1116).default,GeneralRateModal:o(871).default})},785:function(e,t,o){var content=o(813);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,o(76).default)("4e802aa4",content,!0,{sourceMap:!1})},786:function(e,t,o){var content=o(819);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,o(76).default)("586abfeb",content,!0,{sourceMap:!1})},787:function(e,t,o){var content=o(821);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,o(76).default)("63f3b061",content,!0,{sourceMap:!1})},812:function(e,t,o){"use strict";o(785)},813:function(e,t,o){var r=o(75)(!1);r.push([e.i,"header[data-v-630f9ee5]{padding-top:calc(65px + 1rem)}header .logo img[data-v-630f9ee5]{max-height:130px}@media(max-width:575.98px){header .logo img[data-v-630f9ee5]{max-height:100px}}",""]),e.exports=r},817:function(e,t,o){var content=o(893);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,o(76).default)("2a7735aa",content,!0,{sourceMap:!1})},818:function(e,t,o){"use strict";o(786)},819:function(e,t,o){var r=o(75)(!1);r.push([e.i,"article[data-v-424e7ced]{min-height:500px}[dir=ltr] article .closeBtn[data-v-424e7ced]{right:1rem}[dir=rtl] article .closeBtn[data-v-424e7ced]{left:1rem}article .closeBtn[data-v-424e7ced]{background-color:transparent;background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg' fill='%23aaa' stroke='%23aaa'%3E%3Cpath d='M6.576 6.576c-5.205 5.205-5.205 13.643 0 18.849s13.643 5.205 18.849 0c5.206-5.206 5.206-13.643 0-18.849s-13.643-5.205-18.849 0zM24.67 24.67c-4.781 4.781-12.56 4.781-17.341 0s-4.781-12.56 0-17.341c4.781-4.781 12.56-4.781 17.341 0s4.78 12.56 0 17.341z'/%3E%3Cpath d='M10.722 9.969l-.754.754 5.278 5.278-5.253 5.253.754.754L16 16.755l5.253 5.253.754-.754-5.253-5.253 5.278-5.278-.754-.754L16 15.247z'/%3E%3C/svg%3E\");width:30px;height:30px;background-position:50%;background-repeat:no-repeat;background-size:contain;top:1rem;border:none}article .imgthumb[data-v-424e7ced]{width:120px;height:120px}article h1[data-v-424e7ced]{font-size:20px}article h2[data-v-424e7ced]{font-size:13px}article .starsRating label input[data-v-424e7ced]{z-index:9;cursor:pointer}article .starsRating label.is-selected .star[data-v-424e7ced]{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='49.34' height='47.186'%3E%3Cpath d='M27.052 1.48l5.565 11.272a2.657 2.657 0 002 1.453l12.444 1.808c1.004.143 1.84.846 2.152 1.8s.05 2.023-.68 2.73l-9 8.777c-.626.6-.912 1.5-.764 2.352l2.12 12.39a2.66 2.66 0 01-3.855 2.8l-11.13-5.85a2.66 2.66 0 00-2.473 0L12.3 46.874a2.657 2.657 0 01-3.855-2.8L10.57 31.68a2.657 2.657 0 00-.764-2.352l-9-8.777a2.655 2.655 0 111.472-4.532l12.444-1.808a2.66 2.66 0 002-1.453L22.287 1.48a2.656 2.656 0 014.766 0z' fill='%23edc419'/%3E%3C/svg%3E\")}article .starsRating .star[data-v-424e7ced]{display:block;width:40px;height:40px;background-position:50%;background-size:contain;background-repeat:no-repeat;background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='49.243' height='47.179'%3E%3Cpath d='M48.174 21.38a3.53 3.53 0 00-1.958-6.028l-11.923-1.728a1.558 1.558 0 01-1.173-.853l-5.33-10.8A3.53 3.53 0 0024.622.005a3.53 3.53 0 00-3.166 1.967l-5.332 10.8a1.56 1.56 0 01-1.174.853L3.026 15.36a3.53 3.53 0 00-2.851 2.403 3.53 3.53 0 00.894 3.62L9.7 29.8a1.56 1.56 0 01.45 1.38L8.11 43.046a3.53 3.53 0 005.123 3.722L23.9 41.16a1.56 1.56 0 011.451 0l10.664 5.607a3.53 3.53 0 005.123-3.722L39.1 31.172a1.56 1.56 0 01.45-1.38zm-11.02 10.124L39.19 43.38a1.56 1.56 0 01-2.262 1.645l-10.664-5.608a3.53 3.53 0 00-3.287 0l-10.662 5.608a1.56 1.56 0 01-2.263-1.645l2.036-11.874a3.53 3.53 0 00-1.016-3.126l-8.628-8.4a1.56 1.56 0 01.864-2.66l11.922-1.732a3.533 3.533 0 002.66-1.932l5.332-10.8a1.56 1.56 0 012.8 0l5.332 10.8a3.524 3.524 0 002.658 1.932l11.923 1.732a1.56 1.56 0 01.864 2.66l-8.63 8.41a3.53 3.53 0 00-1.015 3.127z' fill='%23edc419'/%3E%3C/svg%3E\")}article button[disabled][data-v-424e7ced]{background-color:#ddd!important;color:#777!important;cursor:not-allowed}.star-rating__checkbox[data-v-424e7ced]{position:absolute;overflow:hidden;clip:rect(0 0 0 0);height:1px;width:1px;margin:-1px;padding:0;border:0}.star-rating__star[data-v-424e7ced]{display:inline-block;padding:3px;vertical-align:middle;line-height:1;font-size:1.5em;color:#ababab;transition:color .2s ease-out}.star-rating__star[data-v-424e7ced]:hover{cursor:pointer}.star-rating__star.is-selected[data-v-424e7ced]{color:gold}.star-rating__star.is-disabled[data-v-424e7ced]:hover{cursor:default}",""]),e.exports=r},820:function(e,t,o){"use strict";o(787)},821:function(e,t,o){var r=o(75)(!1);r.push([e.i,".modelStyles .modal-body{padding:0!important}",""]),e.exports=r},870:function(e,t,o){"use strict";o.r(t);var r={name:"NuxtHeaderHome",props:{show_deliver_box:{type:Boolean,required:!1},show_pickup_box:{type:Boolean,required:!1},show_drivethru_box:{type:Boolean,required:!1},selected_branch:{type:String,required:!1}}},n=(o(812),o(38)),component=Object(n.a)(r,(function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("header",[o("client-only",[o("LayoutHead",{attrs:{order_modal_page:1==e.show_pickup_box?"pickup":1==e.show_drivethru_box?"drivethru":"delivery",show_order_modal:1==e.show_deliver_box||1==e.show_pickup_box||1==e.show_drivethru_box,selected_branch:e.selected_branch},on:{orderTypeModalClosed:function(t){return e.$emit("orderTypeModalClosed")}}})],1),e._v(" "),o("div",{staticClass:"container d-flex align-items-center justify-content-center"},[o("div",{staticClass:"logo mb-3"},[o("nuxt-link",{attrs:{to:e.localePath("/"),title:e.$setting("website.site_name")}},[o("img",{staticClass:"mw-100",attrs:{src:e.$setting("website.logo")?e.$setting("website.logo"):"/logo-default.png",alt:e.$setting("website.site_name")}})])],1)])],1)}),[],!1,null,"630f9ee5",null);t.default=component.exports;installComponents(component,{LayoutHead:o(961).default})},871:function(e,t,o){"use strict";o.r(t);var r={props:{order:{type:Object}},data:function(){return{dialog:!1,is_loading:!1,comment:null,rateValue:0,active_el:0,temp_value:null,ratings:[1,2,3,4,5],value:null}},methods:{closeDialog:function(){this.dialog=!1},save:function(){var e=this;this.is_loading=!0,this.$axios.$post("/api/v1/order/orders/setRating",{order_id:this.order.id,rating:this.rateValue,comment:this.comment}).then((function(t){e.$toast.success(e.$t("rate is set successfully")),e.dialog=!1,e.$emit("confirm-rating")})).catch((function(){e.$toast.error(e.$t("can't add rate"))})),this.is_loading=!1},star_over:function(e){if(!this.disabled)return this.temp_value=this.value,this.value=e},star_out:function(){if(!this.disabled)return this.value=this.temp_value},set:function(e){if(!this.disabled)return this.temp_value=e,this.value=e}}},n=(o(818),o(820),o(38)),component=Object(n.a)(r,(function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("b-modal",{attrs:{"hide-header":"","hide-footer":"","modal-class":"modelStyles",centered:""},model:{value:e.dialog,callback:function(t){e.dialog=t},expression:"dialog"}},[o("article",{staticClass:"rounded-3 p-3 bg-white border shadow-sm position-relative d-flex flex-column align-items-center"},[o("button",{staticClass:"closeBtn d-flex position-absolute",on:{click:e.closeDialog}}),e._v(" "),o("div",{staticClass:"imgthumb bg-white border rounded-1 shadow-sm d-flex align-items-center justify-content-center overflow-hidden"},[o("img",{staticClass:"mw-100",attrs:{src:e.$setting("website.logo")?e.$setting("website.logo"):"/logo-default.png",alt:e.$setting("website.site_name")}})]),e._v(" "),o("h1",{staticClass:"d-block text-body mt-3 text-capitalize fw-bold"},[e._v("\n      "+e._s(e.$t("How do you rate your experience ?"))+"\n    ")]),e._v(" "),o("h2",{staticClass:"d-block text-muted mb-4"},[e._v("\n      "+e._s(e.$t("For your order number")+" "+e.order.order_code+" "+e.$t("at date")+" "+e.$localDateTime(e.order.created_at))+"\n    ")]),e._v(" "),o("div",{staticClass:"starsRating d-flex align-items-center justify-content-center gap-1 mb-4"},e._l(e.ratings,(function(t,r){return o("label",{key:r,staticClass:"m-0 position-relative",class:{"is-selected":e.value>=t&&null!=e.value},on:{click:function(o){return e.set(t)},mouseover:function(o){return e.star_over(t)},mouseout:e.star_out}},[o("input",{directives:[{name:"model",rawName:"v-model",value:e.rateValue,expression:"rateValue"}],staticClass:"d-block position-absolute w-100 h-100 start-0 top-0 opacity-0",attrs:{type:"radio",name:"name"},domProps:{value:t,checked:e._q(e.rateValue,t)},on:{change:function(o){e.rateValue=t}}}),e._v(" "),o("div",{staticClass:"star"})])})),0),e._v(" "),o("textarea",{directives:[{name:"model",rawName:"v-model",value:e.comment,expression:"comment"}],staticClass:"p-2 text-body bg-white border shadow-sm rounded-2 w-100 mb-4",attrs:{maxlength:"300",rows:"5",placeholder:e.$t("Your Comment")},domProps:{value:e.comment},on:{input:function(t){t.target.composing||(e.comment=t.target.value)}}}),e._v(" "),o("button",{staticClass:"btnStyle w-100 p-0 fw-bold border-0",attrs:{type:"submit",disabled:e.is_loading||e.rateValue<3&&!e.comment||this.disabled},on:{click:e.save}},[e._v("\n      "+e._s(e.$t("Send"))+"\n    ")])])])}),[],!1,null,"424e7ced",null);t.default=component.exports},892:function(e,t,o){"use strict";o(817)},893:function(e,t,o){var r=o(75)(!1);r.push([e.i,"section.homePage h1{font-size:40px;color:var(--homeTextColor);line-height:inherit}@media(max-width:575.98px){section.homePage h1{font-size:20px}}section.homePage h2{font-size:22px;color:var(--homeTextColor)}@media(max-width:575.98px){section.homePage h2{font-size:16px}}section.homePage .buttonsArea button{font-size:15px;min-width:230px;height:45px}@media(max-width:575.98px){section.homePage .buttonsArea button{min-width:163px;font-size:14px}}",""]),e.exports=r},975:function(e,t,o){var content=o(1176);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,o(76).default)("de3af29a",content,!0,{sourceMap:!1})}}]);