(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3ce3a028"],{"0b4f":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("header-view",{attrs:{settings:t.settings},on:{"update:settings":function(e){t.settings=e}}}),a("div",{staticClass:"cart_main_area checkout_address_main"},[a("div",{staticClass:"container"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col-md-8"},[a("div",{staticClass:"cart_main_left"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col-md-5"},[a("h3",{staticClass:"mb-0"},[t._v("Payment")]),a("div",{staticClass:"left_listing float-none"},[a("ul",[a("li",[a("router-link",{attrs:{to:{name:"onlinepayment",params:{address_id:t.address_id,bill_address_id:t.bill_address_id}}}},[t._v("Pay Online")])],1),"COD"==t.postcode_type?a("li",[a("router-link",{staticStyle:{color:"#009bc8 !important"},attrs:{to:{name:"cashondelivery",params:{address_id:t.address_id,bill_address_id:t.bill_address_id}}}},[t._v("Pay On Delivery (Cash)")])],1):t._e()])])]),a("div",{staticClass:"col-md-7"},[a("div",{staticClass:"mt-0 pt-5"},[a("h4",[t._v("Pay on Delivery")]),a("p",{staticClass:"small"},[t._v(" Confirm You are Human by Sliding below Button ")]),a("div",{staticClass:"my-3"},[a("b-form-checkbox",{attrs:{switch:"",size:"lg"},model:{value:t.is_human,callback:function(e){t.is_human=e},expression:"is_human"}},[t._v("Yes, I am Human")])],1),a("p",[t.placingOrder?a("a",{staticClass:"checkoutbtn",staticStyle:{width:"325px"},attrs:{href:"javascript:void(0)"}},[t._v("Please wait...")]):a("a",{staticClass:"checkoutbtn",staticStyle:{width:"325px"},attrs:{href:"javascript:void(0)"},on:{click:t.placeOrder}},[t._v("Place Order")])])])])])])]),a("div",{staticClass:"col-md-4"},[a("CartPriceDetails")],1)])])])],1)},r=[],s=a("1da1"),c=a("5530"),n=(a("7db0"),a("d3b7"),a("96cf"),a("2f62")),o=a("1940"),d=a.n(o),u=a("0315"),l=a("faab"),p={data:function(){return{settings:[],useraddress:[],freeshipping:[],paidshipping:[],coupons:[],firstcoupon:[],bankalloffers:[],offers:[],paymentId:"",is_human:!1,shipping_charge:0,address_id:0,bill_address_id:0,postcode_type:"",placingOrder:!1,items:[1,2,3]}},components:{HeaderView:u["a"],CartPriceDetails:l["a"]},computed:Object(c["a"])(Object(c["a"])(Object(c["a"])(Object(c["a"])(Object(c["a"])({},Object(n["d"])("cart",{cart:function(t){return t.cart},cartitems:function(t){return t.cartitems},granola_cartitems:function(t){return t.granola_cartitems}})),Object(n["d"])("products",{products:function(t){return t.products}})),Object(n["d"])("orderaddress",{orderaddress:function(t){return t.orderaddress}})),Object(n["d"])("auth",{})),Object(n["c"])({authenticated:"auth/authenticated",user:"auth/user"})),mounted:function(){var t=this,e=JSON.parse(localStorage.getItem("orderaddress"));this.address_id=e.billing_address,this.bill_address_id=e.shipping_address,this.postcode_type=e.postcode.postcode_type,this.cartitems.length<1&&this.granola_cartitems.length<1&&this.$router.push({name:"cart"}),axios.get(apiURL+"/getpaidshipping").then((function(e){t.paidshipping=e.data.result})).catch((function(t){}))},methods:Object(c["a"])(Object(c["a"])({placeOrder:function(){var t=this;if(!this.placingOrder)if(0==this.is_human)Vue.$toast.error("kindly click on button that you are Human!!",{});else{this.placingOrder=!0,this.shipping_charge=0,this.cart.total_price<(this.paidshipping.cart_price||1e3)?this.shipping_charge=this.paidshipping.price:this.shipping_charge=0,console.log(this.cartitems);var e="";localStorage.getItem("applied_coupon")&&(e=localStorage.getItem("applied_coupon"));var a={cart_uuid:this.cart.cart_uuid,user_id:this.user.user_id,shipping_charge:this.shipping_charge,payment_type:"COD",address_id:this.address_id,bill_address_id:this.bill_address_id,coupon_code:e,coupon_discount:this.cart.coupon_discount};axios.post(apiURL+"/placeOrder",a).then(function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(a){var i,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t.placingOrder=!1,!a.data.status){e.next=13;break}for(Vue.$toast.success("Your order was placed successfully!!",{}),i=0;i1?arguments[1]:void 0)}}),s(c)},df17:function(t,e,a){"use strict";a("37d4")},faab:function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"cart_main_right_boxmain float-none"},[a("ul",[a("li",[t._v(" Cart Total "),a("span",[t._v("Rs. "+t._s(t.cartTotal))])]),t.cart.coupon_code?[a("li",[t._v(" Coupon Code "),a("span",{staticClass:"amount_less"},[t._v(" "+t._s(t.cart.coupon_code))])]),a("li",[t._v(" Coupon Discount "+t._s(null!=t.cart.coupon_code?"("+t.cart.coupon_code+")":"")),a("span",{staticClass:"amount_less"},[t._v(" -Rs. "+t._s(parseInt(t.cart.coupon_discount)))])])]:t._e(),a("li",[t._v(" Order Total "),a("span",{staticClass:"amount_color"},[t._v("Rs. "+t._s(t.orderTotal))])]),a("li",[t._v(" Delivery Charges "),t.cart.total_price>=1e3?a("span",{staticClass:"amount_color"},[t._v("Rs. "),a("del",[t._v(" "+t._s(t.paidshipping.price)+" ")]),a("span",{staticClass:"color_green"},[t._v("FREE")])]):a("span",{staticClass:"amount_color"},[t._v("Rs. "+t._s(t.paidshipping.price))])])],2),a("hr"),t.cart.total_price<1e3?a("h5",[t._v(" Total "),a("span",[t._v("Rs. "+t._s(Number(t.orderTotal)+Number(t.paidshipping.price)||0)+" ")])]):a("h5",[t._v(" Total "),a("span",[t._v("Rs. "+t._s(t.orderTotal))])]),t.cartPage?[t.cart.total_price<1e3?a("a",{staticClass:"checkoutbtn",attrs:{href:"/checkout"}},[t._v("Proceed to Checkout")]):a("a",{staticClass:"checkoutbtn",attrs:{href:"/checkout"}},[t._v("Secured Checkout ")])]:t._e()],2)},r=[],s=a("5530"),c=a("2f62"),n=a("825e"),o={props:{offers:{},cartPage:{type:Boolean,default:!1}},computed:Object(s["a"])(Object(s["a"])(Object(s["a"])({},Object(c["d"])("cart",{cart:function(t){return t.cart},cartitems:function(t){return t.cartitems},granola_cartitems:function(t){return t.granola_cartitems}})),Object(c["c"])("cart",{orderTotal:"orderTotal"})),{},{freeShippingThreshold:function(){return this.freeshipping.cart_price||500},cartTotal:function(){return this.cart?this.cart.total_price:0}}),components:{},data:function(){return{paidshipping:{},freeshipping:{},uploadURL:n["c"]}},mounted:function(){this.getPaidShipping(),this.getFreeShipping()},methods:{getPaidShipping:function(){var t=this;axios.get(n["a"]+"/getpaidshipping").then((function(e){t.paidshipping=e.data.result})).catch((function(t){}))},getFreeShipping:function(){var t=this;axios.get(n["a"]+"/getfreeshipping").then((function(e){t.freeshipping=e.data.result})).catch((function(t){}))}}},d=o,u=a("2877"),l=Object(u["a"])(d,i,r,!1,null,null,null);e["a"]=l.exports}}]); //# sourceMappingURL=chunk-3ce3a028.5c21314a.js.map