!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="88778132-b3c9-4257-becc-e00a7d68f3f8",e._sentryDebugIdIdentifier="sentry-dbid-88778132-b3c9-4257-becc-e00a7d68f3f8")}catch(e){}}();var _global="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};_global.SENTRY_RELEASE={id:"2b2354c41f21fdc720e088172a22a7ca883e542d"},(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-388d36af","ticket-comment"],{"25ac":function(e,t,i){},"3f23":function(e,t,i){"use strict";var n=i("9dc1");i.n(n).a},"5ba4":function(e,t,i){},"5e833":function(e,t,i){"use strict";var n=i("25ac");i.n(n).a},"7a1d":function(e,t,i){"use strict";var n=i("cb52"),r=i.n(n);t.default=r.a},"9dc1":function(e,t,i){},b2e4:function(e,t,i){"use strict";var n=i("dcda"),r=i.n(n);t.default=r.a},b356:function(e,t,i){"use strict";var n=i("5ba4");i.n(n).a},cb52:function(e,t){e.exports=function(e){e.options.__i18n=e.options.__i18n||[],e.options.__i18n.push('{"en":{"order_help":{"title":"Help","issue_report":"Report an issue","select_title":"Type of issue","comment_placeholder_default":"Please enter details of your issue","input_correct_address":"Please enter the correct address","feedback":"What is your issue?","order":"Order","driver_issue":{"title":"Report driver","des":"What did driver do?","options":{"DRIVER_ASKED_FOR_TIP":"Driver asked for tip","DRIVER_WAS_LATE":"Driver was late","CANNOT_CONTACT_DRIVER":"Cannot contact driver","DRIVER_WAS_UNPROFESSIONAL":"Driver was unprofessional","DIFFERENT_DRIVER_ARRIVED_AT_MY_LOCATION":"Different driver arrived at my location","DRIVER_DENIED_MY_PACKAGES":"Driver denied my packages","DRIVER_SUBMITTED_INCORRECT_ORDER_STATUS":"Driver submitted incorrect order status"}},"incidence":{"title":"Incident","des":"What is the incident?","options":{"DAMAGED_PACKAGES":"Damaged packages","LOST_PACKAGES":"Lost packages","RECIPIENT_HAS_NOT_RECEIVED_PACKAGES":"Recipient has not received packages","I_DID_NOT_REQUEST_THIS_ORDER":"I did not request this order"}},"account":{"title":"Account","des":"What is your issue?","options":{"MY_ACCOUNT_HAS_BEEN_USED_BY_OTHERS":"My account has been used by others","MY_BALANCE_IS_INCORRECT":"My balance is incorrect"}},"price_review":{"title":"Price review","des":"Where is the incorrect location?"},"others":{"title":"Others"},"messages":{"invalid_form":"Please select informations","success":"Your request has been submitted","submit_error":"Cannot create ticket. Please try again!","invalid_input":"Please enter at least 12 characters"},"nationwide":{"driver_issue":{"nationwide_extra_cash":"Driver collected extra cash from recipient","nationwide_driver_unprofessional":"Driver was unprofessional","nationwide_driver_submit_incorrect_order_status":"Driver submitted incorrect order\'s status","nationwide_driver_denied_pickup":"Driver denied to pick up package"},"request":{"title":"Request","des":"What do you want?","nationwide_return_package":"Return my package(s) to the origin","nationwide_cancel_order":"Cancel my order"},"report_trouble":{"nationwide_damaged_package":"Damaged package(s)","nationwide_lost_package":"Lost package(s)","nationwide_package_not_received":"Package(s) not received"}}}},"vi":{"order_help":{"title":"Trợ giúp","issue_report":"Báo cáo sự cố","select_title":"Chọn loại thông tin bạn muốn phản hồi","comment_placeholder_default":"Vui lòng nhập vào chi tiết của vấn đề bạn gặp phải","input_correct_address":"Hãy nhập vào địa chỉ chính xác","feedback":"Phản hồi","order":"Đơn hàng","driver_issue":{"title":"Phản hồi về tài xế","des":"Tài xế đã làm gì?","options":{"DRIVER_ASKED_FOR_TIP":"Tài xế yêu cầu đưa thêm tiền","DRIVER_WAS_LATE":"Tài xế đến nơi nhận hàng trễ","CANNOT_CONTACT_DRIVER":"Không thể liên hệ với tài xế","DRIVER_WAS_UNPROFESSIONAL":"Tài xế có thái độ không chuyên nghiệp","DIFFERENT_DRIVER_ARRIVED_AT_MY_LOCATION":"Tài xế khác với trên ứng dụng đến nhận hàng","DRIVER_DENIED_MY_PACKAGES":"Tài xế từ chối hàng hoá của tôi","DRIVER_SUBMITTED_INCORRECT_ORDER_STATUS":"Tài xế báo cáo sai trạng thái đơn hàng"}},"incidence":{"title":"Sự cố","des":"Sự cố của bạn là gì?","options":{"DAMAGED_PACKAGES":"Hàng hoá bị hỏng","LOST_PACKAGES":"Mất hàng hoá","RECIPIENT_HAS_NOT_RECEIVED_PACKAGES":"Người nhận chưa nhận được hàng","I_DID_NOT_REQUEST_THIS_ORDER":"Tôi không yêu cầu đơn hàng này"}},"account":{"title":"Tài khoản","des":"Vấn đề của bạn là gì?","options":{"MY_ACCOUNT_HAS_BEEN_USED_BY_OTHERS":"Tài khoản của tôi đã bị người khác sử dụng","MY_BALANCE_IS_INCORRECT":"Tiền trong tài khoản không chính xác"}},"price_review":{"title":"Xét lại cước phí","des":"Sai địa chỉ"},"others":{"title":"Khác"},"messages":{"invalid_form":"Vui lòng nhập và chọn đầy đủ thông tin","success":"Yêu cầu của bạn đã được gửi thành công","submit_error":"Gửi yêu cầu không thành công. Bạn hãy thử lại nhé!","invalid_input":"Bạn phải nhập vào ít nhất 12 kí tự"},"nationwide":{"driver_issue":{"nationwide_extra_cash":"Tài xế yêu cầu thu thêm tiền từ người nhận","nationwide_driver_unprofessional":"Thái độ tài xế không chuyên nghiệp","nationwide_driver_submit_incorrect_order_status":"Tài xế không liên lạc và tự ý cập nhật sai trạng thái đơn hàng","nationwide_driver_denied_pickup":"Tài xế từ chối nhận hàng"},"request":{"title":"Yêu cầu","des":"Bạn muốn gửi yêu cầu cho chúng tôi","nationwide_return_package":"Yêu cầu trả hàng","nationwide_cancel_order":"Hủy đơn hàng"},"report_trouble":{"nationwide_damaged_package":"Hàng hóa bị hư hỏng.","nationwide_lost_package":"Mất hàng hóa.","nationwide_package_not_received":"Người nhận chưa nhận được hàng."}}}}}'),delete e.options._Ctor}},d7ba:function(e,t,i){"use strict";var n=(i("6762"),i("2fdb"),i("ac6a"),i("f3e2"),i("7514"),i("aa2a")),r={name:"ASelect",props:{objectValue:{type:Boolean,default:!1},value:{required:!0},items:{type:Array,required:!0,default:function(){return[]}},itemIcon:{type:String},itemValue:{type:String,required:!0},itemText:{type:String,required:!0},itemDesc:{type:String},placeholder:{type:String,default:""},onChange:{type:Function},onCloseMenu:{type:Function},requireSelectValue:{default:!1},searchable:{type:Boolean,default:!1},noDataText:{type:String,default:""},maxHeight:{type:String,default:""},maxWidth:{type:String,default:""},disabled:{type:Boolean,default:!1},enableIcon:{type:Boolean,default:!1},iconPlaceholder:{type:String}},data:function(){return{menuActive:!1,unSelectedValue:!1,searchText:""}},computed:{activeValue:function(){return this.itemValue&&this.value?this.objectValue?this.value[this.itemValue]:this.value:""},activeLabel:function(){var e=this;if(this.itemText&&this.value){if(this.objectValue)return this.value[this.itemText];if(this.itemValue){var t=this.items.find((function(t){return t[e.itemValue]===e.value}));if(t)return t[this.itemText]}}return""},activeIcon:function(){var e=this;if(this.itemValue){var t=this.items.find((function(t){return t[e.itemValue]===e.value}));if(t)return t[this.itemIcon]}return""},filteredItems:function(){var e=this;if(this.searchText&&this.items.length>0&&this.itemText){var t=[],i=Object(n.L)(this.searchText);return this.items.forEach((function(r){var a=Object(n.L)(r[e.itemText]);a&&a.includes(i)&&t.push(r)})),t}return this.items},noData:function(){return 0===this.filteredItems.length}},methods:{handleSelect:function(e){var t;t=this.objectValue?e:e[this.itemValue],this.$emit("input",t),this.$emit("onChange",t),this.menuActive=!1},checkRequireSelectValue:function(){this.requireSelectValue&&(""===this.value?this.unSelectedValue=!0:this.unSelectedValue=!1)}},watch:{menuActive:function(e,t){var i=this;e||e===t||(this.searchText="",this.$emit("onCloseMenu")),e&&this.$nextTick((function(){i.$refs.selectInputRef&&i.$refs.selectInputRef.focus()}))},value:function(e,t){e!==t&&this.checkRequireSelectValue()}}},a=(i("b356"),i("2877")),s=Object(a.a)(r,(function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"a-select__wrapper"},[i("v-menu",{attrs:{disabled:e.disabled,"offset-y":"","nudge-bottom":"10","max-height":e.maxHeight,"max-width":e.maxWidth,"close-on-content-click":!1,"content-class":"a-select__select-menu"},model:{value:e.menuActive,callback:function(t){e.menuActive=t},expression:"menuActive"}},[i("div",{staticClass:"a-select__activator",class:{"disable-a-select":e.disabled},attrs:{slot:"activator","data-test-id":"selectBtn"},slot:"activator"},[e.activeLabel?i("div",{staticClass:"a-select__selected-label"},[e.enableIcon?i("img",{staticClass:"mr-2",attrs:{src:e.activeIcon,width:"30",height:"30",alt:""}}):e._e(),e._v("\n        "+e._s(e.activeLabel)+"\n      ")]):e.placeholder?i("div",{staticClass:"a-select__selected-placeholder",class:{"error--text":e.unSelectedValue}},[e.iconPlaceholder?i("SvgIcon",{staticClass:"mr-2",attrs:{width:"30",height:"30",icon:e.iconPlaceholder}}):e._e(),e._v("\n        "+e._s(e.placeholder)+"\n      ")],1):e._e(),i("div",{staticClass:"a-select__activator__icon",class:{"menu-active":e.menuActive}},[i("SvgIcon",{attrs:{width:"14",height:"22",icon:"ArrowDown"}})],1)]),i("v-card",{attrs:{flat:""}},[e.searchable?i("div",{staticClass:"a-select__input-wrapper"},[i("input",{directives:[{name:"model",rawName:"v-model",value:e.searchText,expression:"searchText"}],ref:"selectInputRef",staticClass:"a-select__input",domProps:{value:e.searchText},on:{input:function(t){t.target.composing||(e.searchText=t.target.value)}}}),i("SvgIcon",{staticClass:"a-select__input__icon",attrs:{width:"24",height:"24",icon:"Search"}})],1):e._e(),e.noData?i("div",{staticClass:"a-select__select-menu__no-data"},[e._v("\n        "+e._s(e.noDataText)+"\n      ")]):i("div",{staticClass:"a-select__select-menu__items"},e._l(e.filteredItems,(function(t){return i("div",{key:t.value,staticClass:"a-select__select-menu__item",class:{active:t.value===e.activeValue},attrs:{disabled:!0,"data-test-id":t.value},on:{click:function(i){return e.handleSelect(t)}}},[e._t("item",[e._v("\n            "+e._s(t[e.itemText])+"\n          ")],{disabled:!0,data:t,itemText:e.itemText,itemValue:e.itemValue,itemIcon:e.itemIcon,itemDesc:e.itemDesc})],2)})),0)])],1),e.requireSelectValue&&e.unSelectedValue?i("div",{staticClass:"a-select__message error--text"},[e._v("\n    "+e._s(e.requireSelectValue)+"\n  ")]):e._e()],1)}),[],!1,null,"64a0f7be",null);t.a=s.exports},dcda:function(e,t){e.exports=function(e){e.options.__i18n=e.options.__i18n||[],e.options.__i18n.push('{"en":{"help_center":{"description_image_message":"Please tell us more information","report_order":{"title":"Report order issue","sub_title_1":"Choose an issue","sub_title_2":"What is your issue?","sub_title_3":"Describe your issue","sub_title_4":"Attachment","placeholder":"Please describe your issue in detail to help us solve it quickly","text_button":"Report this order","report_other_order":"Report another order","report_incident":"Report incident","sub_title_5":"Incorrect location","placeholder_location":"Select an address","driver":{"title":"Report driver","asked_tip":"Driver asked for tips","arrived_late":"Driver arrived late","uncontactable":"Driver was uncontactable","unprofessional":"Driver was unprofessional","showed_up":"Different driver showed up","refused_my_packages":"Driver refused my packages","submitted_incorrect_order_status":"Driver submitted incorrect order status"},"packages":{"missing_packages":"Lost / missing packages","damaged_packages":"Damaged packages"},"not_received_packages":"Recipient has not received packages","not_request_order":"I did not request this order","other":"Other","price_review":"Price review","select_an_address":"incorrect_location"},"modal":{"title":"Help Center","submit":"Submit","attach_image":"Attach an image","error_upload_image":"Can not upload image, please delete or try again!","is_submitting":"Sending your request","title_success":"Thanks for sharing your thoughts","description_success":"Your response help us serve you much more better next time.","title_fail":"Oops! Your request has been not sen","description_fail":"Something went wrong, please check your internet connection and try again","done":"Close","or":"Or","call_number":"call us","completed":"Done"},"other_issues":{"title":"Other issues","description":"Get help for issues with your account, rewards,  app error...","send_request":"Create an issue request","payment_account":"Payment account","COD_account":"COD account","promotions":"Rewards / Promotions","deactivated_account":"Deactivated account / Cannot place order","app_issues":"App issues","other":"Other"},"report_incident":{"title":"Report Incident","cancel_order":"Cancel order","other":"Other","incorrect_location":"Incorrect location"},"general_rules":{"title":"General rules","tax":"Tax","rewards_promotions":"Rewards / Promotions","referral_program":"Referral Program"},"account_information":{"title":"Account information","deactivated":"Deactivated account / Cannot place order","payment_account":"Payment account","cod_account":"COD account","edit_profile":"Edit profile"},"app_issues":{"title":"App issues","cant_sign_in":"Can\'t sign in to the app","unable_create":"Unable to create an order"},"other":{"title":"Other","service_fullfilment_complaint":"Service_fullfilment_complaint"},"status":{"solved":"SOLVED","new":"SENT","open":"IN WORK","closed":"CLOSED","pending":"IN WORK","note_close":"Your request is closed. Please contact us via other channels if you need any additional assistance"},"ticket":{"error":{"do_not_send_comment":"Can not send message, please try again!","do_not_load_comment":"Can not load comment","no_ticket_list":"No support tickets yet","no_ticket_selected":"No ticket selected","no_select_reason":"Select a reason before submit"}},"placeholder":"Type a message...","reason_rating":{"5":"The issue took too long to resolve","6":"The issue was not resolved","7":"The agent\'s knowledge is unsatisfactory","8":"The agent\'s attitude is unsatisfactory","100":"Some other reason"},"rating":{"title_1":"Was this conversation helpful?","title_2":"Rate us","title_3":"Thanks for ratting our services","title_4":"Choose an issue"},"report_order_ride_hailing":{"title":"Report order issue","report_incident":"Report incident","driver":{"title":"Report driver","unsafe_driving":"Unsafe driving","routes_unsafely_or_stopped_suddenly":"My driver changed routes unsafely or stopped suddenly on the street","charged_extra_money":"My driver charged extra money","didn’t_complete_trip":"My driver didn’t complete my trip","vehicle_or_driver_was_different":"Vehicle or driver was different","attitude_and_behavior":"Crucial safety problem (i.e: thief, crash…etc)"},"select_an_address":"incorrect_location"},"other_issues_ride_hailing":{"app_issues":"App crash","helmet_quality":"Helmet quality","accident":"I got into an accident during my trip","crucial_safety_problem":"Crucial safety problem (i.e: thief, crash…etc)"},"freshchat_support":"Support","freshchat_support_des":"Answer questions quickly","freshchat_support_btn":"Chat now"}},"vi":{"help_center":{"description_image_message":"Vui lòng gõ mô tả cho hình ảnh","report_order":{"title":"Báo cáo đơn hàng","sub_title_1":"Chọn vấn đề cần báo cáo","sub_title_2":"Bạn gặp phải vấn đề gì?","sub_title_3":"Mô tả thêm vấn đề của bạn ","sub_title_4":"Ảnh đính kèm","sub_title_5":"Sai địa chỉ","placeholder_location":"Chọn một địa chỉ...","placeholder":"Hãy mô tả chi tiết vấn đề của bạn để chúng tôi có thể hỗ trợ nhanh hơn. ","text_button":"Báo cáo đơn hàng này","report_other_order":"Chọn đơn hàng khác cần báo cáo","report_incident":"Báo cáo sự cố","driver":{"title":"Báo cáo tài xế","asked_tip":"Tài xế yêu cầu thu thêm tiền","arrived_late":"Tài xế đến nơi nhận hàng trễ","uncontactable":"Không thể liên hệ được tài xế","unprofessional":"Tài xế có thái độ không chuyên nghiệp","showed_up":"Tài xế đến nhận hàng khác trên ứng dụng","refused_my_packages":"Tài xế từ chối nhận hàng hoá","submitted_incorrect_order_status":"Tài xế cập nhật sai trạng thái đơn hàng"},"packages":{"missing_packages":"Hàng hoá bị mất / thiếu","damaged_packages":"Hàng hoá bị hỏng"},"not_received_packages":"Người nhận chưa nhận được hàng","not_request_order":"Tôi không tạo đơn hàng này","other":"Vấn đề khác","price_review":"Xét lại cước phí","select_an_address":"incorrect_location"},"modal":{"title":"Trợ giúp","submit":"Gửi yêu cầu","attach_image":"Đính kèm ảnh","error_upload_image":"Không thể upload ảnh, vui lòng thử lại sau!","is_submitting":"Đang gửi yêu cầu","title_success":"Cảm ơn chia sẻ của bạn","description_success":" Đánh giá của bạn giúp Ahamove phục vụ bạn tốt hơn ở những lần sau.","title_fail":"Yêu cầu của bạn chưa được gửi đi","description_fail":"Không có kết nối, vui lòng kiểm tra cài đặt mạng của bạn và thử lại ","done":"Đóng","or":"Hoặc","call_number":"gọi điện thoại","completed":"Hoàn tất"},"other_issues":{"title":"Các vấn đề khác","description":"Các vấn đề về tài khoản, chương trình ưu đãi, lỗi ứng dụng,... có thể được báo cáo tại đây","send_request":"Gửi yêu cầu trợ giúp","payment_account":"Tài khoản thanh toán","COD_account":"Tài khoản COD","promotions":"Chương trình khuyến mãi / ưu đãi","deactivated_account":"Tài khoản bị khoá / Không tạo được đơn hàng","app_issues":"Lỗi ứng dụng","other":"Khác"},"report_incident":{"title":"Báo cáo sự cố","cancel_order":"Hủy đơn hàng","other":"Vấn đề khác","incorrect_location":"Sai định vị"},"general_rules":{"title":"Quy định chung","tax":"Xuất hóa đơn","rewards_promotions":"Chương trình khuyến mãi / ưu đãi","referral_program":"Chính sách giới thiệu KH mới"},"account_information":{"title":"Thông tin tài khoản","deactivated":"Tài khoản bị khóa / không tạo được đơn hàng","payment_account":"Tài khoản thanh toán","cod_account":"Tài khoản COD","edit_profile":"Chỉnh sửa thông tin cá nhân"},"app_issues":{"title":"Sự cố app","cant_sign_in":"Không đăng nhập được app","unable_create":"Không đặt được đơn hàng"},"other":{"title":"Vấn đề khác","service_fullfilment_complaint":"Góp ý dịch vụ"},"status":{"solved":"ĐÃ XỬ LÝ","new":"ĐÃ GỬI","open":"ĐANG XỬ LÝ","closed":"ĐÓNG","pending":"ĐANG XỬ LÝ","note_close":"Yêu cầu của bạn đã được đóng. Vui lòng liên hệ với chúng tôi qua kênh khác nếu cần được hỗ trợ"},"ticket":{"error":{"do_not_send_comment":"Không thể gửi tin nhắn, vui lòng thử lại sau!","do_not_load_comment":"Không thể tải đoạn hội thoại","no_ticket_list":"Chưa có hỗ trợ được tạo","no_ticket_selected":"Không có hỗ trợ được chọn","no_select_reason":"Vui lòng chọn 1 lý do trước khi gửi yêu cầu"}},"placeholder":"Nhập tin nhắn...","reason_rating":{"5":"Sự cố này mất quá nhiều thời gian để giải quyết","6":"Sự cố này chưa được giải quyết","7":"Kiến thức của nhân viên hỗ trợ chưa đạt yêu cầu","8":"Thái độ của nhân viên hỗ trợ chưa đạt yêu cầu","100":"Một số lý do khác"},"rating":{"title_1":"Cuộc hội thoại này có ích với bạn không?","title_2":"Đánh giá","title_3":"Cảm ơn đã đánh giá dịch vụ của chúng tôi","title_4":"Chọn vấn đề cần đánh giá"},"report_order_ride_hailing":{"title":"Báo cáo đơn hàng","sub_title_1":"Chọn vấn đề cần báo cáo","sub_title_2":"Bạn gặp phải vấn đề gì?","sub_title_3":"Mô tả thêm vấn đề của bạn ","sub_title_4":"Ảnh đính kèm","sub_title_5":"Sai địa chỉ","placeholder_location":"Chọn một địa chỉ...","placeholder":"Hãy mô tả chi tiết vấn đề của bạn để chúng tôi có thể hỗ trợ nhanh hơn. ","text_button":"Báo cáo đơn hàng này","report_other_order":"Chọn đơn hàng khác cần báo cáo","report_incident":"Báo cáo sự cố","driver":{"title":"Báo cáo tài xế","unsafe_driving":"Tài xế lái xe không an toàn","routes_unsafely_or_stopped_suddenly":"Tài xế đổi lộ trình không an toàn hoặc dừng xe đột ngột trên đường","charged_extra_money":"Tài xế tự ý thu thêm tiền","didn’t_complete_trip":"Tài xế không hoàn thành chuyến đi","vehicle_or_driver_was_different":"Tài xế hoặc phương tiện không giống mô tả","attitude_and_behavior":"Thái độ và hành vi của tài xế"},"packages":{"missing_packages":"Hàng hoá bị mất / thiếu","damaged_packages":"Hàng hoá bị hỏng"},"not_received_packages":"Người nhận chưa nhận được hàng","not_request_order":"Tôi không tạo đơn hàng này","other":"Vấn đề khác","price_review":"Xét lại cước phí","select_an_address":"incorrect_location"},"other_issues_ride_hailing":{"title":"Các vấn đề khác","description":"Các vấn đề về tài khoản, chương trình ưu đãi, lỗi ứng dụng,... có thể được báo cáo tại đây","send_request":"Gửi yêu cầu trợ giúp","payment_account":"Tài khoản thanh toán","COD_account":"Tài khoản COD","promotions":"Chương trình khuyến mãi / ưu đãi","deactivated_account":"Tài khoản bị khoá / Không tạo được đơn hàng","app_issues":"Lỗi ứng dụng","other":"Khác","helmet_quality":"Chất lượng mũ bảo hiểm","accident":"Tôi gặp tai nạn trong chuyến đi","crucial_safety_problem":"Sự cố nghiêm trọng ảnh hưởng đến an toàn (VD: hành hung, cướp giật..vv)"},"freshchat_support":"Hỗ trợ nhanh","freshchat_support_des":"Giải đáp thắc mắc nhanh chóng","freshchat_support_btn":"Trò chuyện ngay"}}}'),delete e.options._Ctor}},de79:function(e,t,i){"use strict";var n=(i("1c01"),i("58b2"),i("8e6e"),i("f3e2"),i("456d"),i("a8db")),r=(i("ac6a"),i("8615"),i("b54a"),i("0cd8"),i("4f37"),i("a481"),i("d25f"),i("bd86")),a=(i("6762"),i("2fdb"),i("57e7"),i("6d67"),i("7514"),i("c5f6"),i("2f62")),s=i("d7ba"),o=i("caf7"),c=i("1de9"),l=i("7eac");function h(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function u(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?h(Object(i),!0).forEach((function(t){Object(r.a)(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):h(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var d={mixins:[l.a],components:{ASelect:s.a,ATextArea:o.a,ViewImageModal:c.default},props:{dataReportOrder:{type:Array},activeTab:{type:Number},order:{type:Object},isSubmitting:{type:Boolean},isNationwideOrder:{type:Boolean},isReportPerform:{type:Boolean}},data:function(){return{typeIssue:null,titleIssue:null,detailIssue:null,description:null,isPriceReview:!1,orderPath:[],imgSrc:null,dataImgSrc:null,ticketTypeNationwide:null,zendesk_tag:{},report_driver_performance:[]}},computed:u(u({},Object(a.b)(["userProfile","localeSuffix"])),{},{filterDataIssue:function(){var e=this,t=[];return t=this.dataReportOrder&&this.dataReportOrder.length>0&&this.dataReportOrder.find((function(t){return t.id===e.activeTab})).reason,this.isReportPerform?t&&t.length>0&&t.filter((function(t){return t.group_of_reasons===e.$constants.REPORT_DRIVER_PERFORMANCE}))||[]:t||[]},listReportIssue:function(){var e,t,i=this;return(e=this.filterDataIssue&&this.filterDataIssue.find((function(e){return e.value===i.titleIssue})))&&e.sub_reason&&(t=e.sub_reason,e.group_of_reasons===this.$constants.REPORT_DRIVER_PERFORMANCE&&t.map((function(e){return e.isCheckBox=!0}))),t||[]},isNationwideService:function(){return this.order&&this.order.service&&this.order.service.delivery_type===this.$constants.DELIVERY_TYPE.NATIONWIDE||this.isNationwideOrder}}),methods:{viewImage:function(){this.$refs.viewImageModal.showModal=!0},resetSelectedData:function(){this.detailIssue=null,this.selectedPath=null,this.description="",this.isPriceReview=!1,this.imgSrc=null,this.dataImgSrc=null},selectReportOrderIssue:function(e){var t=this;this.titleIssue=e,this.resetSelectedData();var i=this.filterDataIssue.find((function(t){return t.value===e}));this.zendesk_tag.contact_reason=i.group_of_reasons,this.filterDataIssue.find((function(i){return i.group_of_reasons===t.$constants.REPORT_PRICE_REVIEW&&i.value===e}))&&1===this.activeTab&&!this.isNationwideService&&(this.isPriceReview=!0,this.orderPath=this.order.path.map((function(e,t){return{value:"".concat(e.address,"-").concat(t," | lat: ").concat(e.lat,", lng: ").concat(e.lng),text:e.address}}))),this.$analyticTracking.logEvent(this.$trackingEvents.ACTIONS.CLICK,this.$trackingEvents.EVENTS.HELP_REPORT_ORDER_CONTACT_REASON,{order_id:this.order._id,user_id:this.$route.query.user_id||this.userProfile._id||null,contact_reason:this.zendesk_tag.contact_reason})},handleChangeIssue:function(e){this.zendesk_tag.sub_contact_reason=e.code},selectPath:function(e,t){this.detailIssue=e,this.handleChangeIssue(t)},setImageCrop:function(e){var t,i=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(t=n?e:e.target.files[0])&&(this.dataImgSrc=t,this.$_uploadImage_readImage(t).then((function(e){i.imgSrc=e,i.$refs.cropper&&i.$refs.cropper.replace(e)})),n||(e.target.value=""),this.$analyticTracking.logEvent(this.$trackingEvents.ACTIONS.CLICK,this.$trackingEvents.EVENTS.UPLOAD_IMAGE_UPLOAD_TAB,{}))},handleUploadFile:function(){this.$refs.uploadImageInput.click(),this.$analyticTracking.logEvent(this.$trackingEvents.ACTIONS.CLICK,this.$trackingEvents.EVENTS.HELP_REPORT_ORDER_ATTACH_IMAGE,{})},handleDelete:function(){this.imgSrc&&(this.imgSrc=null)},handleChangeCheckbox:function(e,t,i){var n=this,r=this.listReportIssue[e].code;if(t)this.report_driver_performance.push(r);else{var a=this.report_driver_performance.indexOf(r);this.report_driver_performance.splice(a,1)}var s=this.listReportIssue.reduce((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return n.report_driver_performance.includes(t.code)?e.concat(n.localeValue(t)):e}),[]);this.detailIssue=s.join(", "),this.handleChangeIssue(i)},localeValue:function(e){return"_vi_vn"===this.localeSuffix?e.title_vi:e.title_en}},mounted:function(){this.isReportPerform?(this.titleIssue=this.filterDataIssue&&this.filterDataIssue.value,this.zendesk_tag.contact_reason=this.filterDataIssue&&this.filterDataIssue.zendesk_tag):(this.titleIssue=this.filterDataIssue[0]&&this.filterDataIssue[0].value,this.zendesk_tag.contact_reason=this.filterDataIssue[0]&&this.filterDataIssue[0].zendesk_tag)},watch:{filterDataIssue:function(e,t){e&&t&&e!==t&&(this.titleIssue=e.length>0&&e[0].value,this.zendesk_tag.contact_reason=e.length>0&&e[0].zendesk_tag)},detailIssue:function(e,t){e!==t&&this.isNationwideOrder&&(this.ticketTypeNationwide=this.listReportIssue.find((function(t){return t.value===e})),this.ticketTypeNationwide&&(this.ticketTypeNationwide=this.ticketTypeNationwide.zendesk_tag))}}},_=(i("3f23"),i("2877")),p=Object(_.a)(d,(function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"tab-content"},[i("div",{staticClass:"report-order__title"},[i("p",{staticClass:"my-1"},[e._v(e._s(e.$t("help_center.report_order.sub_title_1")))]),i("ASelect",{attrs:{itemValue:"value",itemText:"text",itemIcon:"icon",value:e.titleIssue,items:e.filterDataIssue},on:{onChange:e.selectReportOrderIssue},scopedSlots:e._u([{key:"item",fn:function(t){return[i("div",{staticClass:"report-order__title-issues"},[i("img",{attrs:{src:t.data[t.itemIcon]||"/assets/images/icons/BankDefaultIcon.svg",alt:"",width:"24",height:"24"}}),i("span",[e._v(e._s(t.data[t.itemText]))])])]}}])})],1),i("div",{staticClass:"report-order__body"},[i("p",{staticClass:"mt-2 mb-1"},[e._v("\n      "+e._s(e.isPriceReview?e.$t("help_center.report_order.sub_title_5"):e.$t("help_center.report_order.sub_title_2"))+"\n    ")]),e._l(e.listReportIssue,(function(t,n){return i("div",{key:n,staticClass:"cursor-pointer"},[e.isPriceReview||t.isCheckBox?e._e():i("v-radio-group",{attrs:{column:""},model:{value:e.detailIssue,callback:function(t){e.detailIssue=t},expression:"detailIssue"}},[i("v-radio",{key:n,attrs:{color:"accent",label:e.localeValue(t),value:t.title_vi},on:{change:function(i){return e.handleChangeIssue(t)}}})],1),t.isCheckBox?i("v-checkbox",{attrs:{value:t.code,label:e.localeValue(t)},on:{change:function(i){return e.handleChangeCheckbox(n,i,t)}},scopedSlots:e._u([{key:"label",fn:function(){return[e._v("\n          "+e._s(e.localeValue(t))+"\n        ")]},proxy:!0}],null,!0)}):e._e(),e.isPriceReview&&!e.isReportPerform?i("ASelect",{attrs:{itemValue:"value",itemText:"text",value:e.detailIssue,items:e.orderPath,placeholder:e.$t("help_center.report_order.placeholder_location")},on:{onChange:function(i){return e.selectPath(i,t)}},scopedSlots:e._u([{key:"item",fn:function(t){return[i("div",{staticClass:"report-order__title-issues"},[i("span",[e._v(e._s(t.data[t.itemText]))])])]}}],null,!0)}):e._e()],1)})),i("p",{staticClass:"mt-1"},[e._v(e._s(e.$t("help_center.report_order.sub_title_3")))]),i("ATextArea",{attrs:{dark:"",noResize:"",rows:"4",placeholder:e.$t("help_center.report_order.placeholder")},model:{value:e.description,callback:function(t){e.description=t},expression:"description"}}),i("p",{staticClass:"my-1"},[e._v(e._s(e.$t("help_center.report_order.sub_title_4")))]),e.imgSrc?e._e():i("div",{staticClass:"report-order__attach-image",on:{click:e.handleUploadFile}},[i("SvgIcon",{staticClass:"mr-2",attrs:{width:"20",height:"20",icon:"UploadIcon"}}),i("span",[e._v(e._s(e.$t("help_center.modal.attach_image")))])],1),i("div",{staticClass:"report-order__img-uploaded"},[i("input",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],ref:"uploadImageInput",attrs:{type:"file"},on:{change:e.setImageCrop}}),e.imgSrc?i("img",{attrs:{width:"60",height:"60",src:e.imgSrc,alt:""},on:{click:e.viewImage}}):e._e(),e.imgSrc&&e.isSubmitting||e.imgSrc?i("SvgIcon",{staticClass:"delete-img",attrs:{width:"20",height:"20",icon:"CloseOutlineCircle"},nativeOn:{click:function(t){return e.handleDelete(t)}}}):e._e()],1),i("ViewImageModal",{ref:"viewImageModal",attrs:{"img-src":e.imgSrc}})],2)])}),[],!1,null,"53636042",null).exports,g=i("4526"),v=["group_of_reasons"];function m(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function f(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?m(Object(i),!0).forEach((function(t){Object(r.a)(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):m(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var b="ahamove_price_review",y="ahamove_report_driver",k="ahamove_order_incident",R="ahamove_others",T={mixins:[l.a],props:{order:{type:Object}},components:{TabContent:p},computed:f(f({},Object(a.b)(["userProfile","token","orderListHelpCenter","localeSuffix"])),{},{filterData:function(){var e=this,t=this.order&&this.order.service&&this.order.service.delivery_type===this.$constants.DELIVERY_TYPE.RIDE||this.order&&"ride-hailing"===this.order.order_type?this.dataReportRideHailing:this.dataReportOrder;return 1===this.activeTab?t&&t.filter((function(t){return t.id===e.activeTab})):this.dataOtherReport&&this.dataOtherReport.filter((function(t){return t.id===e.activeTab}))},filterDataForNationwide:function(){var e=this;return 1===this.activeTab?this.dataReportOrderNationwide.filter((function(t){return t.id===e.activeTab})):this.dataOtherReport.filter((function(t){return t.id===e.activeTab}))},isNationwideService:function(){return this.order&&this.order.service&&this.order.service.delivery_type===this.$constants.DELIVERY_TYPE.NATIONWIDE||this.isNationwideOrder},hasTokenInURL:function(){return this.$route.query.token},hasOrderIdInURL:function(){return this.$route.query.order_id},languageInURL:function(){return this.$route.query.language}}),data:function(){return{showDialog:!1,showResultDialog:!1,activeTab:1,dataReportOrder:[],dataOtherReport:[],dataReportRideHailing:[],dataReportOrderNationwide:[],isSubmiting:!1,isSuccessSubmit:!0,isNationwideOrder:!1,reports:[],isReportPerform:!1}},methods:{closeModal:function(){this.isMobile||(this.showResultDialog=!1,this.isSuccessSubmit=!0,this.activeTab=1),(this.hasTokenInURL&&this.hasOrderIdInURL||this.isMobile)&&(this.$router.replace({name:"help_center",query:f(f({},this.$route.query),{},{completed_report:!0})}),this.showResultDialog=!1,this.close())},close:function(){this.showDialog=!1,this.$refs.tabContent.resetSelectedData(),this.activeTab=1},visibleModalReport:function(e){this.showDialog=e},handleActiveTab:function(e){this.activeTab=e,this.$refs.tabContent.resetSelectedData()},validateData:function(){var e=this.$refs.tabContent,t=e.detailIssue,i=e.description;return t?!(!i||i.trim().length<12)||this.showMessage(this.$t("order_help.messages.invalid_input"),1500):this.showMessage(this.$t("order_help.messages.invalid_form"),1500)},createTicket:function(e){var t=this;return this.isSubmiting=!0,new Promise((function(i,n){Object(g.i)(e).then((function(e){e&&(t.isSubmiting=!1,(!t.isMobile||t.isMobile&&!t.hasTokenInURL)&&t.close(),t.showResultDialog=!0,i(e))})).catch((function(){t.isSubmiting=!1,(!t.isMobile||t.isMobile&&!t.hasTokenInURL)&&t.close(),t.isSuccessSubmit=!1,t.showResultDialog=!0,n()}))}))},trackingEventCallHotline:function(){this.$analyticTracking.logEvent(this.$trackingEvents.ACTIONS.CLICK,this.$trackingEvents.EVENTS.HELP_CALL_HOTLINE,{})},handleSubmit:function(){var e=this;if(!this.validateData())return!1;var t,i=this.$refs.tabContent,n=i.titleIssue,r=i.detailIssue,a=i.description,s=i.dataImgSrc,o=i.ticketTypeNationwide,c=i.zendesk_tag,l=i.report_driver_performance,h=this.order&&this.order._id||this.$route.query.order_id;switch(n){case this.$t("help_center.report_order.driver.title"):t=y;break;case this.$t("help_center.report_order.report_incident"):t=k;break;case this.$t("help_center.report_order.price_review"):t=b;break;default:t=R}var u=c.sub_contact_reason,d={token:this.token||this.$route.query.token,type:this.isNationwideService&&o?o:t,order_id:h,subject:"".concat(n," - ").concat(r," ").concat(this.isNationwideService||t!==R?"- "+h:""),description:"".concat(n," \n ").concat(r," \n ").concat(a),contact_reason:c.contact_reason,sub_contact_reason:u,service_channel:"Help Center"};l&&l.length>0&&(d.report_driver_performance=l,d.report_type=this.$constants.REPORT_DRIVER_PERFORMANCE);var _,p=this.order&&this.order.path&&this.order.path.filter((function(e){return e.tracking_number||e.nationwide_tracking_number}));if(p){var g=p.reduce((function(e,t){return e?e+","+t.tracking_number||t.nationwide_tracking_number:t.tracking_number||t.nationwide_tracking_number}),"");d.order_code=g}if(this.order&&this.order.path&&n===this.$t("help_center.other_issues.title")&&delete d.order_id,s)return new Promise((function(t,i){e.$_uploadImage_resizeImage(s).then((function(n){n&&(e.isSubmiting=!0,e.$_uploadImage_uploadImageToImgul(n).then((function(n){(_=n.data&&n.data.link)?(e.isSubmiting=!1,d.description+="\n IMG: ".concat(_),e.createTicket(d),t(_)):i()})).catch((function(t){t&&(e.isSubmiting=!1,e.close(),e.showMessage(e.$t("help_center.modal.error_upload_image"),1500))})))})).catch((function(t){e.isSubmiting=!1,e.close(),e.showMessage(e.$t("help_center.modal.error_upload_image"),1500),i(t)}))}));this.createTicket(d),this.$analyticTracking.logEvent(this.$trackingEvents.ACTIONS.CLICK,this.$trackingEvents.EVENTS.HELP_REPORT_ORDER_SUBMIT_BTN,{order_id:this.order._id,user_id:this.$route.query.user_id||this.userProfile._id||null})},getReports:function(){var e=this,t={reason_type:"por",user_type:"user",delivery_type:2===this.activeTab?"OTHER":this.order.service&&this.order.service.delivery_type};2!==this.activeTab&&(t.service_id=this.order.service_id&&this.order.service_id,t.delivery_type=this.order.service&&this.order.service.delivery_type),this.isLoading=!0,this.$store.dispatch("setReports",t).then((function(t){if(e.isLoading=!1,t&&200===t.status){var i=1,r=Object.values(t.data.reduce((function(t,r){var a=r.group_of_reasons,s=Object(n.a)(r,v);return t[a]||(t[a]={group_of_reasons:a,sub_reason:[],value:null,text:null,id:i,zendesk_tag:null}),t[a].value=e.localeValue(s),t[a].text=e.localeValue(s),t[a].zendesk_tag=a,t[a].sub_reason.push(s),i++,t}),{}));e.order.allowed_vehicles||(r=r.filter((function(t){return t.group_of_reasons!==e.$constants.REPORT_DRIVER_PERFORMANCE}))),e.dataReportOrder=[{id:1,value:e.$t("help_center.report_order.title"),text:e.$t("help_center.report_order.title"),reason:r}],e.dataOtherReport=[{id:2,text:e.$t("help_center.other_issues.title"),value:e.$t("help_center.other_issues.title"),reason:r}],e.dataReportOrderNationwide=[{id:1,value:e.$t("help_center.report_order.title"),text:e.$t("help_center.report_order.title"),reason:r}],e.dataReportRideHailing=[{id:1,value:e.$t("help_center.report_order_ride_hailing.title"),text:e.$t("help_center.report_order_ride_hailing.title"),reason:r}]}})).catch((function(e){console.log(e)}))},localeValue:function(e){return"_vi_vn"===this.localeSuffix?e.group_vi:e.group_en}},beforeMount:function(){this.languageInURL&&this.$i18n.i18next.changeLanguage(this.languageInURL)},watch:{showDialog:function(e){e&&this.getReports()}}},I=(i("5e833"),i("b2e4")),C=i("7a1d"),S=Object(_.a)(T,(function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"help-center"},[i("v-dialog",{attrs:{persistent:"",scrollable:"","max-width":"500px","content-class":"help-center__modal",transition:e.isMobile?"dialog-bottom-transition":"dialog-transition"},model:{value:e.showDialog,callback:function(t){e.showDialog=t},expression:"showDialog"}},[i("v-card",[e.hasTokenInURL?e._e():i("v-card-title",{staticClass:"d-flex justify-space-between"},[i("span",{staticClass:"help-center__modal-title"},[e._v(e._s(e.$t("help_center.modal.title")))]),e.isSubmiting&&e.isMobile?e._e():i("v-icon",{staticClass:"help-center__close",attrs:{size:"20",color:"grey"},on:{click:e.close}},[e._v("close")])],1),i("v-card-text",[i("div",{staticClass:"help-center__tab-content"},[i("TabContent",{ref:"tabContent",attrs:{dataReportOrder:e.isNationwideService?e.filterDataForNationwide:e.filterData,order:e.order,activeTab:e.activeTab,isSubmitting:e.isSubmiting,isNationwideOrder:e.isNationwideService,isReportPerform:e.isReportPerform}})],1)]),i("v-card-actions",{staticClass:"py-3 help-center__box-action",attrs:{"text-xs-right":""}},[i("v-spacer"),i("v-btn",{staticClass:"mr-2 help-center__submit",attrs:{depressed:"",color:"accent",disabled:e.isSubmiting},on:{click:e.handleSubmit}},[e._v(e._s(e.isSubmiting?e.$t("help_center.modal.is_submitting"):e.$t("help_center.modal.submit")))]),i("br")],1),e.isMobile?i("p",{staticClass:"call-me-maybe"},[e._v("\n        "+e._s(e.$t("help_center.modal.or"))+"\n        "),i("a",{attrs:{href:"tel:1900545411"},on:{click:e.trackingEventCallHotline}},[e._v(e._s(e.$t("help_center.modal.call_number")))])]):e._e()],1)],1),i("v-dialog",{attrs:{"max-width":"444px","content-class":"help-center__notify-modal",transition:e.isMobile?"dialog-bottom-transition":"dialog-transition"},model:{value:e.showResultDialog,callback:function(t){e.showResultDialog=t},expression:"showResultDialog"}},[i("v-card",[i("v-card-title",{staticClass:"justify-center"},[i("img",{attrs:{width:e.isSuccessSubmit?166:170,height:e.isSuccessSubmit?141:100,src:"/assets/images/"+(e.isSuccessSubmit?"ReportSuccess":"HelpCenterFailure")+".png",alt:""}})]),i("v-card-text",{staticClass:"px-5"},[i("p",[e._v("\n          "+e._s(e.isSuccessSubmit?e.$t("help_center.modal.title_success"):e.$t("help_center.modal.title_fail"))+"\n        ")]),i("span",[e._v(e._s(e.isSuccessSubmit?e.$t("help_center.modal.description_success"):e.$t("help_center.modal.description_fail")))])]),i("v-card-actions",[i("button",{staticClass:"help-center__submit",on:{click:e.closeModal}},[e._v("\n          "+e._s(e.$t("help_center.modal.completed"))+"\n        ")])])],1)],1)],1)}),[],!1,null,null,null);"function"==typeof I.default&&Object(I.default)(S),"function"==typeof C.default&&Object(C.default)(S),t.a=S.exports}}]);