1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[3925],{63925:(e,t,r)=>{r.r(t),r.d(t,{default:()=>y});var s=r(67294),n=r(14416),i=r(87851),a=r(49652),o=r(78937),l=r(81525),c=r(82738),d=r(48521);function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,s)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){m(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function m(e,t,r){return(t=j(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f(e,t){for(var r=0;r<t.length;r++){var s=t[r];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,j(s.key),s)}}function j(e){var t=function(e,t){if("object"!==h(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var s=r.call(e,t||"default");if("object"!==h(s))return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===h(t)?t:String(t)}function b(e,t){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},b(e,t)}function x(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,s=v(e);if(t){var n=v(this).constructor;r=Reflect.construct(s,arguments,n)}else r=s.apply(this,arguments);return g(this,r)}}function g(e,t){if(t&&("object"===h(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}var _=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&b(e,t)}(i,e);var t,r,s,n=x(i);function i(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=n.call(this,e)).handleChange=function(e){var r=""+e.target.name,s=e.target.value,n=t.validator.errors;t.setState({data:p(p({},t.state.data),{},m({},r,s))}),n.remove(r),t.validator.validate(r,s).then((function(){t.setState({errors:n})}))},t.handleSubmit=function(e){e.preventDefault();var r=t.state.data,s=t.validator.errors;t.validator.validateAll(r).then((function(e){e?t.submit(r):t.setState({errors:s})}))},t.orderProductsListPermission=l.W.checkThisAccess(t.props.user,"Orders","orderProductsList");return t.validator=new c.ZP.Validator({order_detail_status:"required",shipping_company:"required",tracking_number:"required",shipment_status:"required"}),t.state={order:null,data:{order_detail_status:"",shipping_company:"",tracking_number:"",shipment_status:"",return_status:""},errors:t.validator.errors,isProcessing:!0},t}return t=i,(r=[{key:"componentDidMount",value:function(){var e=this;this.props.showLoader(!0);var t="admin/orders/"+this.props.match.params.id;o.Z.get(t).then((function(t){var r={bc:[{title:"Orders",to:l.W.adminUrl("orders")},{title:"Orders Detail",to:"#"}],title:"Order # "+t.data.order_id+" Product Detail"};e.orderProductsListPermission&&(r.rightBtns=[{title:"Manage Orders",icon:"fa fa-list",to:l.W.adminUrl("orders/order-products-list")}]),e.props.updateTitleBreadcumbs(r),e.setState({order:t.data,data:{order_detail_id:t.data.id,order_detail_status:t.data.status,shipping_company:t.data.shipping_company?t.data.shipping_company:"",tracking_number:t.data.tracking_number?t.data.tracking_number:"",shipment_status:t.data.shipment_status,return_status:t.data.return_status},isProcessing:!1}),e.props.showLoader(!1)})).catch((function(t){console.log("err",error),e.props.showLoader(!1)}))}},{key:"showVariationInfo",value:function(e){if(e&&e.variantInfo)return e.variantInfo.map((function(e,t){return(0,d.jsxs)("tr",{children:[(0,d.jsx)("td",{width:"400",children:e.variant_title}),(0,d.jsx)("td",{children:e.customized_variant_name})]},"vInfo"+t)}))}},{key:"showProductVariationInfo",value:function(e){if(e&&e.pVarInfo){var t=e.pVarInfo,r=[];return t.item_condition&&r.push((0,d.jsxs)("tr",{children:[(0,d.jsx)("td",{width:"400",children:"Item Condition"}),(0,d.jsx)("td",{children:t.item_condition})]},"vInfo-item_condition")),t.seller_product_id&&r.push((0,d.jsxs)("tr",{children:[(0,d.jsx)("td",{width:"400",children:"Seller Product ID"}),(0,d.jsx)("td",{children:t.seller_product_id})]},"vInfo-seller_product_id")),t.seller_product_id_type&&r.push((0,d.jsxs)("tr",{children:[(0,d.jsx)("td",{width:"400",children:"Seller Product ID Type"}),(0,d.jsx)("td",{children:t.seller_product_id_type})]},"vInfo-seller_product_id_type")),t.seller_sku&&r.push((0,d.jsxs)("tr",{children:[(0,d.jsx)("td",{width:"400",children:"Seller SKU"}),(0,d.jsx)("td",{children:t.seller_sku})]},"vInfo-seller_sku")),r}}},{key:"showJsonAttrValue",value:function(e){return Object.keys(e).map((function(t,r){if("unit"!=t)return(0,d.jsxs)("span",{className:"dimension"+r,children:[t,": ",e[t]," ",e.unit,", "]},"dimension"+r)}))}},{key:"showProductMetaInfo",value:function(e){var t=this;if(e&&e.productMetas)return e.productMetas.map((function(e,r){var s="";if("weight"==e.field_type||"volume"==e.field_type||"size"==e.field_type){var n=JSON.parse(e.value);s=""!=n.value?n.value+" "+n.unit:""}else if("dimensions"==e.field_type){var i=JSON.parse(e.value);i&&(s=t.showJsonAttrValue(i))}else s=e.value;if(""!=s)return(0,d.jsxs)("tr",{children:[(0,d.jsx)("td",{width:"400",children:e.title}),(0,d.jsx)("td",{children:s})]},"mInfo"+r)}))}},{key:"showPaymentStatus",value:function(e){switch(e){case 1:return(0,d.jsx)("button",{className:"btn btn-success btn-xs",children:"Paid"});case 3:return(0,d.jsx)("button",{className:"btn btn-danger btn-xs",children:"Cancelled"});case 4:return(0,d.jsx)("button",{className:"btn btn-warning btn-xs",children:"Partial Paid"});case 5:return(0,d.jsx)("button",{className:"btn btn-danger btn-xs",children:"Refunded"});default:return(0,d.jsx)("button",{className:"btn btn-warning btn-xs",children:"Pending"})}}},{key:"showOrderStatus",value:function(e){switch(e){case 1:return(0,d.jsx)("button",{className:"btn btn-success btn-xs",children:"Completed"});case 3:return(0,d.jsx)("button",{className:"btn btn-primary btn-xs",children:"Processing"});case 4:return(0,d.jsx)("button",{className:"btn btn-danger btn-xs",children:"Cancel"});default:return(0,d.jsx)("button",{className:"btn btn-warning btn-xs",children:"Pending"})}}},{key:"render",value:function(){if(this.state.order){var e="string"==typeof this.state.order.extra?JSON.parse(this.state.order.extra):this.state.order.extra;return(0,d.jsxs)("div",{className:"row",children:[(0,d.jsx)("div",{className:"col-md-8",children:(0,d.jsxs)("div",{className:"card-box product-detail-box",children:[(0,d.jsxs)("div",{className:"row",children:[(0,d.jsx)("div",{className:"col-sm-4",children:(0,d.jsx)("div",{className:"thumbnail",children:(0,d.jsx)("img",{src:l.W.generateImageSrc(e.image,600,600),alt:""})})}),(0,d.jsx)("div",{className:"col-sm-8",children:(0,d.jsxs)("div",{className:"product-right-info",children:[(0,d.jsx)("h3",{children:(0,d.jsx)("b",{children:e.title})}),(0,d.jsxs)("h4",{children:[(0,d.jsx)("b",{children:"Total Amount:"})," ",l.W.showPriceWithCurrency(this.state.order.currency,this.state.order.item_amount)]}),(0,d.jsxs)("h4",{children:[(0,d.jsx)("b",{children:"Yakoun Amount:"})," ",l.W.showPriceWithCurrency(this.state.order.currency,this.state.order.yakoun_amount)]}),(0,d.jsxs)("h4",{children:[(0,d.jsx)("b",{children:"Your Amount:"})," ",l.W.showPriceWithCurrency(this.state.order.currency,this.state.order.seller_amount)]}),(0,d.jsxs)("h4",{children:[(0,d.jsx)("b",{children:"Yakoun Paid:"}),l.W.showPriceWithCurrency(this.state.order.currency,this.state.order.seller_got_amount)]}),(0,d.jsxs)("h4",{children:[(0,d.jsx)("b",{children:"Discount:"})," ",l.W.showPriceWithCurrency(this.state.order.currency,this.state.order.item_discount)]}),(0,d.jsx)("hr",{}),(0,d.jsxs)("h4",{children:[(0,d.jsx)("b",{children:"Sub Total:"})," ",l.W.showPriceWithCurrency(this.state.order.currency,this.state.order.item_amount-this.state.order.item_discount)]}),(0,d.jsxs)("h4",{children:[(0,d.jsx)("b",{children:"HST:"})," ",l.W.showPriceWithCurrency(this.state.order.currency,this.state.order.vat)]}),(0,d.jsxs)("h4",{children:[(0,d.jsx)("b",{children:"Total:"})," ",l.W.showPriceWithCurrency(this.state.order.currency,this.state.order.item_amount-this.state.order.item_discount+this.state.order.vat)]}),(0,d.jsx)("hr",{}),(0,d.jsxs)("h4",{children:[(0,d.jsx)("b",{children:"Refunded:"})," ",l.W.showPriceWithCurrency(this.state.order.currency,this.state.order.return_amount)]}),(0,d.jsxs)("h4",{children:[(0,d.jsx)("b",{children:"Max Refund Amount:"})," ",l.W.showPriceWithCurrency(this.state.order.currency,this.state.order.max_refund_amount)]}),(0,d.jsx)("hr",{}),this.state.order.due>0&&(0,d.jsxs)("div",{children:[(0,d.jsxs)("h4",{children:[(0,d.jsx)("b",{children:"Due:"})," ",l.W.showPriceWithCurrency(this.state.order.currency,this.state.order.due)]}),(0,d.jsx)("hr",{})]}),(0,d.jsx)("h4",{children:(0,d.jsxs)("b",{children:["Quantity: ",this.state.order.quantity]})}),(0,d.jsxs)("h5",{className:"m-t-20",children:[(0,d.jsx)("b",{children:"Stock: "})," ",this.state.order.product_variation.stock,". ",(0,d.jsxs)("span",{className:this.state.order.product_variation.stock>0?"label label-default m-l-5":"label label-danger m-l-5",children:[this.state.order.product_variation.stock>0?"In":"Out of "," Stock"]})]}),(0,d.jsx)("hr",{}),(0,d.jsx)("h5",{className:"font-600",children:"Product Description"}),(0,d.jsx)("p",{className:"text-muted",children:this.state.order.product.excerpt})]})})]}),(0,d.jsx)("div",{className:"row m-t-30",children:(0,d.jsxs)("div",{className:"col-xs-12",children:[(0,d.jsx)("h4",{children:(0,d.jsx)("b",{children:"Order Detail:"})}),(0,d.jsx)("div",{className:"table-responsive m-t-20",children:(0,d.jsx)("table",{className:"table",children:(0,d.jsxs)("tbody",{children:[(0,d.jsxs)("tr",{children:[(0,d.jsx)("td",{width:"400",children:"Order Status"}),(0,d.jsx)("td",{children:this.showOrderStatus(this.state.order.order_status)})]}),(0,d.jsxs)("tr",{children:[(0,d.jsx)("td",{width:"400",children:"Order Detail Status"}),(0,d.jsx)("td",{children:this.showOrderStatus(this.state.order.status)})]}),(0,d.jsxs)("tr",{children:[(0,d.jsx)("td",{width:"400",children:"Order Payment Status"}),(0,d.jsx)("td",{children:this.showPaymentStatus(this.state.order.payment?this.state.order.payment.status:2)})]}),(0,d.jsxs)("tr",{children:[(0,d.jsx)("td",{width:"400",children:"Date Added"}),(0,d.jsx)("td",{children:l.W.dateFormatForFrontEnd2(this.state.order.order_created_at)})]}),(0,d.jsxs)("tr",{children:[(0,d.jsx)("td",{width:"400",children:"Shipping Method"}),(0,d.jsx)("td",{children:this.state.order.shipping_method.title})]}),(0,d.jsxs)("tr",{children:[(0,d.jsx)("td",{width:"400",children:"Shipping Charge"}),(0,d.jsx)("td",{children:l.W.showPriceWithCurrency(this.state.order.currency,this.state.order.shipping_charge)})]}),this.state.order.shipping_company&&(0,d.jsxs)("tr",{children:[(0,d.jsx)("td",{width:"400",children:"Shipping Company"}),(0,d.jsx)("td",{children:this.state.order.shipping_company})]})||"",this.state.order.tracking_number&&(0,d.jsxs)("tr",{children:[(0,d.jsx)("td",{width:"400",children:"Shipping Tracking No"}),(0,d.jsx)("td",{children:this.state.order.tracking_number})]})||"",(0,d.jsxs)("tr",{children:[(0,d.jsx)("td",{width:"400",children:"Shipping Date"}),(0,d.jsx)("td",{children:l.W.dateFormatForFrontEnd2(this.state.order.ship_within_date)})]}),this.showVariationInfo(e),this.showProductVariationInfo(e),this.showProductMetaInfo(e)]})})})]})})]})}),(0,d.jsxs)("div",{className:"col-md-4",children:[this.profile(),this.statusFields(),0==this.state.order.due&&this.refundFields()]})]})}return(0,d.jsxs)("div",{className:"alert alert-warning",children:[(0,d.jsx)("i",{className:"fa fa-warning"})," No Order Found! "]})}},{key:"profile",value:function(){var e=l.W.getImageSrc("/images/users/avatar-3.jpg");if(this.state.order)return e=this.state.order.user_image?this.state.order.user_image:e,(0,d.jsx)("div",{className:"card-box p-0",children:(0,d.jsxs)("div",{className:"profile-widget text-center",children:[(0,d.jsx)("div",{className:"bg-custom bg-profile"}),(0,d.jsx)("img",{src:e,className:"thumb-lg img-circle img-thumbnail",alt:"img"}),(0,d.jsx)("h4",{children:this.state.order.username}),this.shippingAddress()]})})}},{key:"submit",value:function(e){var t=this;this.setState({isProcessing:!0}),this.props.showLoader(!0),o.Z.post("admin/orders/status-update",e).then((function(e){t.props.history.push({pathname:l.W.adminUrl("orders/order-products-list"),state:{success:"Order status has been updated successfully"}}),t.props.showLoader(!1)})).catch((function(e){t.setState({isProcessing:!1}),l.W.processError(t,e,"title"),t.props.showLoader(!1)}))}},{key:"statusFields",value:function(){return(0,d.jsxs)("div",{className:"panel panel-border panel-custom",children:[(0,d.jsx)("div",{className:"panel-heading",children:(0,d.jsx)("h3",{className:"panel-title",children:"Edit Status Info"})}),(0,d.jsx)("div",{className:"panel-body",children:(0,d.jsx)("form",{className:"form-horizontal",onSubmit:this.handleSubmit,children:(0,d.jsxs)("div",{className:"row",children:[(0,d.jsx)("div",{className:"col-lg-12",children:(0,d.jsxs)("div",{className:"form-group ".concat(this.state.errors.has("order_detail_status")&&"has-error"),children:[(0,d.jsx)("label",{htmlFor:"order_detail_status",className:"control-label",children:"Order Detail Status"}),(0,d.jsxs)("select",{className:"form-control",id:"order_detail_status",placeholder:"Order Detail Status",name:"order_detail_status",onChange:this.handleChange,value:this.state.data.order_detail_status,children:[(0,d.jsx)("option",{value:"",children:"Select Order Detail Status"}),(0,d.jsx)("option",{value:"1",children:"Completed"}),(0,d.jsx)("option",{value:"6",children:"Refunded"}),(0,d.jsx)("option",{value:"5",children:"Returned"}),(0,d.jsx)("option",{value:"3",children:"Processing"}),(0,d.jsx)("option",{value:"2",children:"Pending"}),(0,d.jsx)("option",{value:"4",children:"Cancel"})]}),this.state.errors.has("order_detail_status")&&(0,d.jsx)("span",{className:"help-block",children:this.state.errors.first("order_detail_status")})]})}),(0,d.jsx)("div",{className:"col-lg-12",children:(0,d.jsxs)("div",{className:"form-group ".concat(this.state.errors.has("shipping_company")&&"has-error"),children:[(0,d.jsx)("label",{htmlFor:"shipping_company",className:"control-label",children:"Shipping Company Status"}),(0,d.jsx)("input",{className:"form-control",type:"text",id:"shipping_company",placeholder:"Shipping Company",name:"shipping_company",onChange:this.handleChange,value:this.state.data.shipping_company}),this.state.errors.has("shipping_company")&&(0,d.jsx)("span",{className:"help-block",children:this.state.errors.first("shipping_company")})]})}),(0,d.jsx)("div",{className:"col-lg-12",children:(0,d.jsxs)("div",{className:"form-group ".concat(this.state.errors.has("tracking_number")&&"has-error"),children:[(0,d.jsx)("label",{htmlFor:"tracking_number",className:"control-label",children:"Tracking Number"}),(0,d.jsx)("input",{className:"form-control",type:"text",id:"tracking_number",placeholder:"Tracking Number"
1,name:"tracking_number",onChange:this.handleChange,value:this.state.data.tracking_number}),this.state.errors.has("tracking_number")&&(0,d.jsx)("span",{className:"help-block",children:this.state.errors.first("tracking_number")})]})}),(0,d.jsx)("div",{className:"col-lg-12",children:(0,d.jsxs)("div",{className:"form-group ".concat(this.state.errors.has("shipment_status")&&"has-error"),children:[(0,d.jsx)("label",{htmlFor:"shipment_status",className:"control-label",children:"Shipment Status"}),(0,d.jsxs)("select",{className:"form-control",id:"shipment_status",placeholder:"Shipment Status",name:"shipment_status",onChange:this.handleChange,value:this.state.data.shipment_status,children:[(0,d.jsx)("option",{value:"",children:"Select Shipment Status"}),(0,d.jsx)("option",{value:"0",children:"Not Yet Started"}),(0,d.jsx)("option",{value:"1",children:"Shipment ready for dispatch"}),(0,d.jsx)("option",{value:"2",children:"Shipment Departed"}),(0,d.jsx)("option",{value:"3",children:"Shipment arrived at destination"}),(0,d.jsx)("option",{value:"4",children:"Shipment delivery successful"})]}),this.state.errors.has("shipment_status")&&(0,d.jsx)("span",{className:"help-block",children:this.state.errors.first("shipment_status")})]})}),this.submitButton(),(0,d.jsx)("div",{className:"clearfix"})]})})})]})}},{key:"returnReasonArray",value:function(){return["Bought by mistake","Better price Available","Performance or quality","Incomplete or not useful","Product damaged, but shipping box OK","Item arrived too late","Missing Parts or accessories","Product and shipping box both damaged","wrong item was send","Item defective or does not work","Received extra item i did not buy (no refund needed)","No longer needed","Did not approve purchase","Inaccurate website description"]}},{key:"refundFields",value:function(){return this.state.order.return_shipping_method&&this.state.order.return_shipping_method.title&&this.state.order.return_shipping_method.title,(0,d.jsxs)("div",{className:"panel panel-border panel-custom",children:[(0,d.jsx)("div",{className:"panel-heading",children:(0,d.jsx)("h3",{className:"panel-title",children:"Refund Info"})}),(0,d.jsx)("div",{className:"panel-body",children:(0,d.jsx)("form",{className:"form-horizontal",onSubmit:this.handleSubmit,children:(0,d.jsxs)("div",{className:"row",children:[(0,d.jsx)("div",{className:"col-lg-12",children:(0,d.jsxs)("div",{className:"form-group ".concat(this.state.errors.has("return_reason")&&"has-error"),children:[(0,d.jsx)("label",{htmlFor:"order_detail_status",className:"control-label",children:"Return Reason"}),(0,d.jsxs)("select",{className:"form-control",id:"order_detail_status",placeholder:"Order Detail Status",name:"return_reason",onChange:this.handleChange,disabled:!0,value:this.state.order.return_reason,children:[(0,d.jsx)("option",{value:"",children:"No Return Process started!"}),this.returnReasonArray().map((function(e,t){return(0,d.jsx)("option",{value:e,children:e},t)}))]}),this.state.errors.has("return_reason")&&(0,d.jsx)("span",{className:"help-block",children:this.state.errors.first("return_reason")})]})}),(0,d.jsx)("div",{className:"col-lg-12",children:(0,d.jsxs)("div",{className:"form-group ".concat(this.state.errors.has("return_comments")&&"has-error"),children:[(0,d.jsx)("label",{htmlFor:"return_comments",className:"control-label",children:"Return Comment"}),(0,d.jsx)("textarea",{className:"form-control",disabled:!0,id:"return_comments",placeholder:"Return Comment",name:"return_comments",rows:4,onChange:this.handleChange,value:this.state.order.return_comments}),this.state.errors.has("return_comments")&&(0,d.jsx)("span",{className:"help-block",children:this.state.errors.first("return_comments")})]})}),(0,d.jsx)("div",{className:"col-lg-12",children:(0,d.jsxs)("div",{className:"form-group ".concat(this.state.errors.has("return_shipping_method")&&"has-error"),children:[(0,d.jsx)("label",{htmlFor:"return_shipping_method",className:"control-label",children:"Return Shipping Method"}),(0,d.jsxs)("select",{className:"form-control",id:"return_shipping_method",placeholder:"Return Return Shipping Method",name:"return_shipping_method",onChange:this.handleChange,disabled:!0,value:this.state.order.return_shipping_method?this.state.order.return_shipping_method.id:"",children:[(0,d.jsx)("option",{value:"",children:"Select Return Shipping Method"}),(0,d.jsx)("option",{value:this.state.order.shipping_method.id,children:this.state.order.shipping_method.title})]}),this.state.errors.has("return_shipping_method")&&(0,d.jsx)("span",{className:"help-block",children:this.state.errors.first("return_shipping_method")})]})}),(0,d.jsx)("div",{className:"col-lg-12",children:(0,d.jsxs)("div",{className:"form-group ".concat(this.state.errors.has("return_shipping_charge")&&"has-error"),children:[(0,d.jsx)("label",{htmlFor:"return_shipping_charge",className:"control-label",children:"Return Shipping Charge"}),(0,d.jsx)("input",{type:"number",className:"form-control",disabled:!0,id:"return_shipping_charge",placeholder:"Return Shipping Charge",name:"return_shipping_charge",onChange:this.handleChange,value:this.state.order.return_shipping_charge}),this.state.errors.has("return_shipping_charge")&&(0,d.jsx)("span",{className:"help-block",children:this.state.errors.first("return_shipping_charge")}
1)]})}),(0,d.jsx)("div",{className:"col-lg-12",children:(0,d.jsxs)("div",{className:"form-group ".concat(this.state.errors.has("return_status")&&"has-error"),children:[(0,d.jsx)("label",{htmlFor:"return_status",className:"control-label",children:"Shipment Status"}),(0,d.jsxs)("select",{className:"form-control",id:"return_status",placeholder:"Return Status",name:"return_status",onChange:this.handleChange,value:this.state.data.return_status,children:[(0,d.jsx)("option",{value:"",children:"Select Shipment Status"}),(0,d.jsx)("option",{value:"0",children:"Not Yet Started"}),(0,d.jsx)("option",{value:"1",children:"Return Started"}),(0,d.jsx)("option",{value:"2",children:"Drop off the item"}),(0,d.jsx)("option",{value:"3",children:"Refund set once we get the item"}),(0,d.jsx)("option",{value:"4",children:"Refund on your payment method"})]}),this.state.errors.has("return_status")&&(0,d.jsx)("span",{className:"help-block",children:this.state.errors.first("return_status")})]})}),this.submitButton(),(0,d.jsx)("div",{className:"clearfix"})]})})})]})}},{key:"submitButton",value:function(){return this.state.isProcessing?(0,d.jsxs)("button",{type:"submit",className:"btn btn-lg btn-success waves-effect waves-light btn-block",disabled:!0,children:[(0,d.jsx)("i",{className:"fa fa-refresh fa-spin"})," Updating Status..."]}):(0,d.jsxs)("button",{type:"submit",className:"btn btn-lg btn-success waves-effect waves-light btn-block",disabled:this.state.errors.any(),children:[(0,d.jsx)("i",{className:"fa fa-save"})," Update Status"]})}},{key:"shippingAddress",value:function(){var e=this.state.order.shipping_address;if(e)return(0,d.jsxs)("p",{className:"text-muted",children:[(0,d.jsx)("i",{className:"fa fa-truck",children:" Shipping Address:"}),(0,d.jsx)("br",{}),e.address1,(0,d.jsx)("br",{}),e.address2&&(0,d.jsxs)("span",{children:[e.address2,(0,d.jsx)("br",{})]})||"",e.street,(0,d.jsx)("br",{}),e.city,"-",e.zip,(0,d.jsx)("br",{}),e.state,(0,d.jsx)("br",{}),e.country]})}}])&&f(t.prototype,r),s&&f(t,s),Object.defineProperty(t,"prototype",{writable:!1}),i}(s.Component);const y=(0,n.$j)((function(e){return{isAuthenticated:e.auth.isAuthenticated,user:new i.Z(e.auth.user,["name"]),settings:e.web.settings}}),(function(e){return{updateTitleBreadcumbs:function(t){return e((0,a.XU)(t))},showLoader:function(t){return e((0,a.VO)(t))}}}))(_)},49652:(e,t,r)=>{r.d(t,{Bk:()=>o,C4:()=>i,VO:()=>l,XU:()=>n,q_:()=>a});var s=r(5742),n=function(e){return{type:s.h0,payload:e}},i=function(e){return{type:s.y_,payload:e}},a=function(e){return{type:s.Lz,payload:e}},o=function(e){return{type:s.fn,payload:e}},l=function(e){return{type:s.Yy,payload:e}}},87851:(e,t,r)=>{r.d(t,{Z:()=>d});var s=r(30381),n=r.n(s),i=r(96486),a=r.n(i);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var r=0;r<t.length;r++){var s=t[r];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,(n=s.key,i=void 0,i=function(e,t){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var s=r.call(e,t||"default");if("object"!==o(s))return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(n,"string"),"symbol"===o(i)?i:String(i)),s)}var n,i}const d=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];l(this,e),this.initialize(t,r)}var t,r,s;return t=e,(r=[{key:"initialize",value:function(e,t){var r=this;e?(a().forOwn(e,(function(e,t){r[t]=e})),this.id=e.id&&Number(e.id),this.createdAt=e.createdAt&&n()(e.createdAt),this.updatedAt=e.updatedAt&&n()(e.updatedAt),this.deletedAt=e.deletedAt&&n()(e.deletedAt)):a().forOwn(t,(function(e){r[e]=""}))}},{key:"toJson",value:function(){var e=Object.assign({},this);return a().forOwn(e,(function(t,r){t instanceof n()&&(e[r]=t.format("YYYY-MM-dd HH:mm:ss"))})),e}}
1])&&c(t.prototype,r),s&&c(t,s),Object.defineProperty(t,"prototype",{writable:!1}),e}()}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.