![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/vreg/dist/_nuxt/ |
(window.webpackJsonp=window.webpackJsonp||[]).push([[6,8],{519:function(t,e,o){"use strict";o.r(e);o(35),o(40);var n={name:"PromoCode",data:function(){return{promoCode:"",validating:!1,msg:""}},mounted:function(){this.discountObject&&(this.promoCode=this.discountObject.code)},methods:{validatePromoCode:function(){var t=this;this.validating=!0,this.$axios.post("orders/validate-and-store-promo-code/".concat(this.$store.state.orderId,"?code=").concat(this.promoCode)).then((function(e){var o=e.data.data,n=o.valid?"text-success":"text-danger";t.$store.commit("SET_DISCOUNT_OBJECT",o.object),t.msg='<span class="'.concat(n,'"><b>').concat(o.message,"</b></span>")})).catch((function(t){})).finally((function(){t.validating=!1}))}}},r=o(53),component=Object(r.a)(n,(function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",[o("div",{staticClass:"promo-code-wrapper",staticStyle:{"margin-bottom":"10px"}},[o("div",{staticClass:"form-group"},[o("input",{directives:[{name:"model",rawName:"v-model",value:t.promoCode,expression:"promoCode"}],staticClass:"form-control promo-input",attrs:{type:"text",placeholder:"Promo code"},domProps:{value:t.promoCode},on:{input:function(e){e.target.composing||(t.promoCode=e.target.value)}}})]),t._v(" "),o("button",{staticClass:"btn btn-form-green",attrs:{type:"submit",disabled:!t.promoCode||t.validating},on:{click:function(e){return e.preventDefault(),t.validatePromoCode.apply(null,arguments)}}},[t.validating?o("b-spinner",{staticClass:"mr-1",attrs:{small:""}}):t._e(),t._v("\n Apply\n ")],1)]),t._v(" "),o("div",[t.msg?o("p",{staticClass:"text-danger",domProps:{innerHTML:t._s(t.msg)}}):t._e()])])}),[],!1,null,"1f7fe7c8",null);e.default=component.exports},520:function(t,e,o){"use strict";o.r(e);var n={name:"OrderSummaryCalculations",components:{PromoCode:o(519).default},props:{mobile:{required:!1}}},r=o(53),component=Object(r.a)(n,(function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"order-summary-box",class:t.mobile?"":"d-none d-md-block"},[t._l(t.offlineFormPlates,(function(e,n){return o("div",{staticClass:"order-summary-header"},[o("div",{staticClass:"left"},[o(t.splittedPlateNumberComponent,{tag:"component",attrs:{small:!0,plate:e}}),t._v(" "),o("h5",[t._v(t._s(e.license_plate)+" "),o("span",{staticClass:"car-model"},[t._v(" "+t._s(e.license_make))]),t._v(" "),o("br"),t._v(" "),o("span",{staticClass:"renewal-time"},[t._v(t._s(e.description))])])],1),t._v(" "),o("div",{staticClass:"right"},[o("h5",[t._v(t._s(e.formatted_price)+" ")])])])})),t._v(" "),o("promo-code"),t._v(" "),o("div",{staticClass:"order-summary-price-wrapper"},[t._l(t.getLineItems,(function(e,n){return o("p",{key:"line_item_"+n},[o("span",{staticClass:"price-title"},[t._v(t._s(e.title))]),t._v(" "),o("span",{staticClass:"price",class:{"text-danger":e.pure_amount<0}},[t._v(t._s(e.amount))])])})),t._v(" "),o("p",{staticClass:"total"},[t._m(0),t._v(" "),o("span",{staticClass:"price",staticStyle:{width:"unset"}},[t._v("USD "),o("b",[t._v(t._s(t.orderTotal))])])])],2)],2)}),[function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("span",{staticClass:"price-title"},[o("b",[t._v("Estimated Total")])])}],!1,null,"3f443847",null);e.default=component.exports}}]);