(window.webpackJsonp=window.webpackJsonp||[]).push([[45],{1267:function(t,a,e){var d=e(1845);"string"==typeof d&&(d=[[t.i,d,""]]),d.locals&&(t.exports=d.locals);(0,e(567).default)("e2309f44",d,!0,{})},1844:function(t,a,e){"use strict";e(1267)},1845:function(t,a,e){(t.exports=e(566)(!1)).push([t.i,'.modal[data-v-60f6694a]{font-size:18px}table[data-v-60f6694a]{border-collapse:collapse;width:100%}@media (max-width: 767px){table[data-v-60f6694a]{border-top:none}}table th[data-v-60f6694a],table td[data-v-60f6694a]{text-align:left;padding:20px}table th.align-right[data-v-60f6694a],table td.align-right[data-v-60f6694a]{text-align:right}@media (max-width: 767px){table th.align-right[data-v-60f6694a],table td.align-right[data-v-60f6694a]{text-align:left}}@media (max-width: 1199px){table th[data-v-60f6694a],table td[data-v-60f6694a]{padding:10px}}@media (max-width: 767px){table thead[data-v-60f6694a]{display:none}}@media (max-width: 767px){table tbody tr[data-v-60f6694a]{display:block}}table tbody tr:nth-child(even) td[data-v-60f6694a]{background-color:#f2f2f2}table tbody td[data-v-60f6694a]{vertical-align:top}@media (max-width: 767px){table tbody td[data-v-60f6694a]{display:block;text-align:left;padding:10px 20px}table tbody td[data-v-60f6694a]:before{content:attr(data-th) ": ";font-weight:700}}@media (max-width: 767px){table tbody td[data-v-60f6694a]:first-child{padding:20px 20px 10px 20px}}@media (max-width: 767px){table tbody td[data-v-60f6694a]:last-child{padding:10px 20px 20px 20px}}@media (max-width: 767px){table tfoot tr[data-v-60f6694a]{display:block}}table tfoot tr:last-child td[data-v-60f6694a]:last-child{padding-bottom:20px}@media (max-width: 767px){table tfoot td[data-v-60f6694a]{display:block}}@media (max-width: 767px){table tfoot td[data-v-60f6694a]:first-child{font-weight:700;padding:20px 20px 5px 20px}}@media (max-width: 767px){table tfoot td[data-v-60f6694a]:last-child{padding:5px 20px 0 20px}}table i[data-v-60f6694a]{vertical-align:middle}.cancel-order[data-v-60f6694a]{text-align:center;margin-bottom:30px}@media only screen and (min-width: 576px){.cancel-order[data-v-60f6694a]{text-align:left;margin-bottom:0}}\n',""])},2029:function(t,a,e){"use strict";e.r(a);var d=e(1),i={methods:{confirmOrders:function(){this.$bus.$emit("order/PROCESS_QUEUE",{config:d}),this.$bus.$emit("sync/PROCESS_QUEUE",{config:d}),this.$store.dispatch("cart/load")}}},n=e(2),r=e(6),l={methods:{cancelOrders:function(){var t=r.a.get("orders");t.iterate((function(a,e,d){a.transmited||t.removeItem(e)})).catch((function(t){n.a.error(t,"offline-order")(),n.a.log("Not transmitted orders have been deleted","offline-order")()}))}}},s=e(609),o=e(571),c={props:{ordersData:{required:!1,type:Array,default:function(){return[]}}},mounted:function(){var t=this;this.$nextTick((function(){t.$bus.$emit("modal-show","modal-order-confirmation")}))},methods:{confirmOrders:function(){i.methods.confirmOrders.call(this),this.$bus.$emit("modal-hide","modal-order-confirmation")},cancelOrders:function(){l.methods.cancelOrders.call(this),this.$bus.$emit("modal-hide","modal-order-confirmation")}},components:{Modal:s.a,ButtonFull:o.a},mixins:[i,l]},f=(e(1844),e(123)),m=Object(f.a)(c,(function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("modal",{attrs:{name:"modal-order-confirmation",width:640}},[e("p",{attrs:{slot:"header"},slot:"header"},[t._v("\n    "+t._s(t.$t("Confirm your order"))+"\n  ")]),t._v(" "),e("div",{attrs:{slot:"content"},slot:"content"},[e("p",[t._v(t._s(t.$t("Please confirm order you placed when you was offline")))]),t._v(" "),t._l(t.ordersData,(function(a,d){return e("div",{key:d,staticClass:"mb40"},[e("h3",[t._v(t._s(t.$t("Order #{id}",{id:d+1})))]),t._v(" "),e("h4",[t._v(t._s(t.$t("Items ordered")))]),t._v(" "),e("table",{staticClass:"brdr-1 brdr-cl-bg-secondary"},[e("thead",[e("tr",[e("th",{staticClass:"serif lh20"},[t._v("\n              "+t._s(t.$t("Product Name"))+"\n            ")]),t._v(" "),e("th",{staticClass:"serif lh20"},[t._v("\n              "+t._s(t.$t("Price"))+"\n            ")]),t._v(" "),e("th",{staticClass:"serif lh20"},[t._v("\n              "+t._s(t.$t("Qty"))+"\n            ")]),t._v(" "),e("th",{staticClass:"serif lh20"},[t._v("\n              "+t._s(t.$t("Subtotal"))+"\n            ")])])]),t._v(" "),e("tbody",t._l(a.products,(function(a,d){return e("tr",{key:d,staticClass:"brdr-top-1 brdr-cl-bg-secondary"},[e("td",{staticClass:"fs-medium lh25",attrs:{"data-th":t.$t("Product Name")}},[t._v("\n              "+t._s(a.name)+"\n              "),t._l(a.options,(function(a,d){return e("span",{key:d,staticClass:"block mt5 lh16 fs-medium-small"},[e("strong",[t._v(t._s(a.label)+": ")]),t._v(" "+t._s(a.value)+"\n              ")])}))],2),t._v(" "),e("td",{staticClass:"fs-medium lh25",attrs:{"data-th":t.$t("Price")}},[t._v("\n              "+t._s(t._f("price")(a.price_incl_tax))+"\n            ")]),t._v(" "),e("td",{staticClass:"fs-medium lh25 align-right",attrs:{"data-th":t.$t("Qty")}},[t._v("\n              "+t._s(a.qty)+"\n            ")]),t._v(" "),e("td",{staticClass:"fs-medium lh25",attrs:{"data-th":t.$t("Subtotal")}},[t._v("\n              "+t._s(t._f("price")(a.price_incl_tax*a.qty))+"\n            ")])])})),0)])])})),t._v(" "),e("div",{staticClass:"row between-xs middle-xs mt40"},[e("div",{staticClass:"col-xs-12 col-sm-6 cancel-order"},[e("a",{attrs:{href:"#"},on:{click:function(a){return a.preventDefault(),t.cancelOrders()}}},[t._v(t._s(t.$t("Cancel")))])]),t._v(" "),e("div",{staticClass:"col-xs-12 col-sm-6"},[e("button-full",{nativeOn:{click:function(a){return t.confirmOrders()}}},[t._v("\n          "+t._s(t.$t("Confirm your order"))+"\n        ")])],1)])],2)])}),[],!1,null,"60f6694a",null);a.default=m.exports}}]);
//# sourceMappingURL=vsf-order-confirmation.56c1b3df03a7533fb193.js.map