1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[381],{44264:function(e,t,c){(window.__NEXT_P=window.__NEXT_P||[]).push(["/help/feedback",function(){return c(50653)}])},4887:function(e,t,c){"use strict";var o=c(85893),l=c(27939),r=c(72762),n=c.n(r);t.Z=function(e){var t=e.className,c=void 0===t?"":t,r=e.title,i=e.imgUrl,a=void 0===i?"https://assets.dreame.com/dreame/image/1599ddf3d74b5d63ebf112552cffe58c.png":i;return(0,o.jsxs)("div",{className:"".concat(n().header," ").concat(c),children:[(0,o.jsx)(l.Z,{alt:"",src:a}),(0,o.jsx)("div",{className:n().title,children:r})]})}},43886:function(e,t,c){"use strict";c.d(t,{W:function(){return m}});var o=c(14924),l=c(26042),r=c(69396),n=c(99534),i=c(85893),a=c(67294),s=c(71990),d=c(94184),_=c.n(d),u=c(8964),p=c.n(u),m=function(e){var t=e.title,c=e.children,d=e.name,u=e.rules,m=void 0===u?[]:u,f=e.className,h=e.onSubmitCheck,b=e.errorsCheck,v=(0,n.Z)(e,["title","children","name","rules","className","onSubmitCheck","errorsCheck"]),x=(0,a.useState)([]),g=x[0],S=x[1],w=(0,a.useContext)(s.zb),Z=(0,s.qo)(d),j=(0,a.useMemo)((function(){return m.some((function(e){return e.required}))}),[m]);(0,a.useEffect)((function(){h||setTimeout((function(){k()}),0)}),[Z]),(0,a.useEffect)((function(){h&&S([])}),[Z]),(0,a.useEffect)((function(){b&&k()}),[b]);var k=function(){S(w.getFieldError(d)||[])};return(0,i.jsxs)("div",{className:_()(p()["dm-form-field"],f,(0,o.Z)({},p()["field-error"],g.length>0)),children:[(0,i.jsx)("div",{className:p().title,children:t&&j?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("i",{children:"*"})," ",t]}):(0,i.jsx)(i.Fragment,{children:t})}),(0,i.jsx)(s.gN,(0,r.Z)((0,l.Z)({name:d,rules:m},v),{children:c})),g.join(",")&&(0,i.jsx)("div",{className:p()["error-tip"],children:g.join(",")})]})}},94423:function(e,t,c){"use strict";var o=c(14924),l=c(26042),r=c(99534),n=c(85893),i=c(67294),a=c(59775),s=c(94184),d=c.n(s),_=c(37975),u=c(61904),p=c.n(u);t.Z=function(e){var t,c=e.className,s=e.rounded,u=e.error,m=e.allowClear,f=void 0!==m&&m,h=(0,r.Z)(e,["className","rounded","error","allowClear"]),b=(0,i.useState)(!1),v=b[0],x=b[1];return(0,n.jsx)(a.Z,(0,l.Z)({className:d()(c,"dm-input",p()["dm-input"],(t={},(0,o.Z)(t,p()["input-focus"],v),(0,o.Z)(t,p()["input-error"],u),(0,o.Z)(t,p().rounded,s),t)),onFocus:function(){return x(!0)},onBlur:function(){return x(!1)},allowClear:f&&v?{clearIcon:(0,n.jsx)(_.Z,{className:p()["text-clear"],children:"text_clear"})}:{clearIcon:(0,n.jsx)(n.Fragment,{})}},h))}},17976:function(e,t,c){"use strict";var o=c(14924),l=c(85893),r=c(67294),n=c(95546),i=c(28276),a=c(96300),s=c(49865),d=c(37975),_=c(97786),u=c.n(_),p=(c(97074),c(94184)),m=c.n(p);t.Z=function(e){var t=e.optinos,c=e.value,_=void 0===c?void 0:c,p=e.onChange,f=e.placeholder,h=void 0===f?"":f,b=(0,i.$G)("common").t,v=(0,n.Z)(),x=(0,r.useState)(_||""),g=x[0],S=x[1],w=(0,r.useState)(!1),Z=w[0],j=w[1];(0,r.useEffect)((function(){!v.phone&&j(!1)}),[v.phone]),(0,r.useEffect)((function(){S(_)}),[_]);var k,N=[t],C=(0,r.useMemo)((function(){var e,c=t.findIndex((function(e){return e.value===g}));return(null===(e=t[c])||void 0===e?void 0:e.label)||""}),[g]);return(0,l.jsxs)("div",{className:u().contair,children:[v.phone?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(a.Z,{cancelText:"",confirmText:b("done"),columns:N,visible:Z,onConfirm:function(e){S(e[0]),p(e[0]),j(!1)},onCancel:function(){j(!1)}}),(0,l.jsx)("div",{className:m()(u().label,(k={},(0,o.Z)(k,u()["label-focus"],Z),(0,o.Z)(k,u().placeholder,void 0===_),k)),onClick:function(){j(!0)},children:C||h})]}):(0,l.jsx)(s.ZP,{className:u()["dm-select"],dropdownClassName:u()["dm-select-dropdown"],value:g,placeholder:h,onChange:function(e,t){S(t.value),p(t.value)},dropdownStyle:{position:"absolute"},transitionName:"slide-up",showArrow:!0,onDropdownVisibleChange:function(){j(!Z)},children:t.map((function(e){return(0,l.jsx)(s.Wx,{value:e.value,children:e.label},e.value)}))}),(0,l.jsx)(d.Z,{className:m()(u().icon,(0,o.Z)({},u()["icon-show"],Z)),children:"ic_arrow_right"}),v.phone&&Z&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"".concat(u()["gradient-box"]," ").concat(u()["gradient-box-top"])}),(0,l.jsx)("div",{className:"".concat(u()["gradient-box"]," ").concat(u()["gradient-box-bottom"])})]})]})}},50653:function(e,t,c){"use strict";c.r(t),c.d(t,{__N_SSP:function(){return O},default:function(){return R}});var o=c(47568),l=c(14924),r=c(26042),n=c(69396),i=c(828),a=c(70655),s=c(85893),d=c(67294),_=c(65043),u=c(28276),p=c(49585),m=c(11163),f=c(30498),h=c(4887),b=c(43886),v=c(94423),x=c(71990
1),g=c(98133),S=c(17976),w=c(29815),Z=c(94184),j=c.n(Z),k=c(95546),N=c(36356),C=c(69315),F=c(27939),Q=c(37975),I=c(80174),E=c(84586),T=c.n(E),y=function(e){var t=e.onImgChange,c=e.imgList,o=e.head,i=void 0===o?(0,s.jsx)(s.Fragment,{}):o,a=e.limit,_=void 0===a?3:a,p=e.maxSize,m=void 0===p?512e3:p,f=e.multiple,h=void 0!==f&&f,b=(0,u.$G)("common").t,v=(0,d.useState)(c),x=v[0],g=v[1],S=(0,k.Z)();(0,d.useEffect)((function(){t(x)}),[x]);var Z={multiple:h,customRequest:function(e){var t=e.file;if(t.size>m)(0,I.Z)({content:b("imageSizeLimit"),duration:2});else try{if(x.length>=_)return;(0,C.Ti)(t).then((function(e){var t=e.url;g((0,w.Z)(x).concat([t]))}))}catch(c){(0,I.Z)({content:c})}}};return(0,s.jsxs)("div",{className:T().upload,children:[!S.phone&&i,c.map((function(e,t){return(0,s.jsxs)("div",{onClick:function(){!function(e){x.splice(e,1),g((0,w.Z)(x))}(t)},className:T()["img-box"],children:[(0,s.jsx)(F.Z,{src:e,alt:""}),(0,s.jsx)("div",{className:T()["close-box"],children:(0,s.jsx)(Q.Z,{className:T().close,children:"ic_close"})})]},e)})),(0,s.jsxs)(N.Z,(0,n.Z)((0,r.Z)({},Z),{disabled:c.length>=_,children:[c.length<_&&(0,s.jsx)("div",{className:j()(T()["upload-img-box"],(0,l.Z)({},T()["img-more"],c.length>0)),children:(0,s.jsx)(F.Z,{src:"https://files.dreame.com/dreame/image/bd70d9d680d60eb03b8445d327d6f504.png",alt:""})}),S.phone&&c.length<=0&&i]}))]})},V=c(48847),D=c(56316),L=c.n(D),z=2e3,q=function(){var e=(0,u.$G)("user-info").t,t=(0,u.$G)("common").t,c=(0,u.$G)("feedback").t,f=(0,m.useRouter)(),w=(0,k.Z)(),Z=(0,i.Z)(x.ZP.useForm(),1)[0],N=(0,d.useState)([]),F=N[0],Q=N[1],E=(0,p.C)((function(e){return e.user.userInfo})).qid,T=(0,d.useState)(!1),D=T[0],q=T[1],O=(0,d.useState)(!1),R=O[0],U=O[1],G=(0,d.useState)(!1),M=G[0],H=G[1],X={pattern:{mismatch:e("emailAddressError")}},J=[{value:"paymentQ",label:c("paymentQ")},{value:"transactionQ",label:c("transactionQ")},{value:"tasksQ",label:c("tasksQ")},{value:"redeemQ",label:c("redeemQ")},{value:"accountQ",label:c("accountQ")},{value:"unlockQ",label:c("unlockQ")},{value:"settingQ",label:c("settingQ")},{value:"errorsQ",label:c("errorsQ")},{value:"inquiriesQ",label:c("inquiriesQ")},{value:"otherQ",label:c("otherQ")},{value:"suggestQ",label:c("suggestQ")},{value:"reportQ",label:c("reportQ")},{value:"reportCommentQ",label:c("reportCommentQ")}],W=(0,_.Z)(function(){var e=(0,o.Z)((function(e){return(0,a.__generator)(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,(0,C.b7)((0,n.Z)((0,r.Z)({},e),{pic_urls:F}))];case 1:return t.sent(),(0,I.Z)({content:c("feedbackSuccess"),duration:2}),setTimeout((function(){f.query.isBack?(Z.setFieldsValue({device_type:"",contact:"",content:""}),Q([])):f.replace("/")}),2e3),[3,3];case 2:return t.sent(),[3,3];case 3:return[2]}}
1))}));return function(t){return e.apply(this,arguments)}}());return(0,s.jsxs)("div",{className:L().contair,children:[!w.phone&&(0,s.jsx)(h.Z,{imgUrl:"https://files.dreame.com/dreame/image/80295a0a88e9eee7894bdf28653db14a.png",title:""}),(0,s.jsxs)("div",{className:L()["info-box"],children:[!w.phone&&(0,s.jsx)("h2",{className:L().title,children:c("feedback")}),(0,s.jsx)(x.ZP,{form:Z,onFinish:W,onFinishFailed:function(){q(!0),Z.getFieldValue("email")&&!V.CU.test(Z.getFieldValue("email"))&&U(!0),setTimeout((function(){q(!1)}),500)},validateMessages:X,children:function(o,r){var n,i,a,d,_,u;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(b.W,{rules:[{required:!0}],name:"device_type",title:c("typeTip"),children:(0,s.jsx)(S.Z,{placeholder:c("typeTip"),optinos:J,onChange:function(){}})}),(0,s.jsx)(b.W,{onSubmitCheck:!0,rules:[{required:!0},{pattern:V.CU}],errorsCheck:D,name:"contact",title:e("emailAddress"),children:(0,s.jsx)(v.Z,{onChange:function(){U(!1)},error:R,placeholder:e("emailAddressTip"),allowClear:r.getFieldValue("email"),className:L()["input-common"],type:"text"})}),(0,s.jsxs)("div",{className:L()["textarea-box"],children:[(0,s.jsx)(b.W,{rules:[{required:!0}],onSubmitCheck:!0,className:L().desc,name:"content",title:c("contentTip"),children:(0,s.jsx)("textarea",{placeholder:c("contentTip"),onFocus:function(){H(!0)},onBlur:function(){H(!1)},className:j()(L().textarea,(_={},(0,l.Z)(_,L()["text-focus"],M),(0,l.Z)(_,L()["textarea-error"],(null===(n=r.getFieldValue("content"))||void 0===n?void 0:n.length)>z),_))})}),(0,s.jsx)("div",{className:j()(L()["about-number"],(u={},(0,l.Z)(u,L()["textarea-focus"],M),(0,l.Z)(u,L()["about-number-error"],(null===(i=r.getFieldValue("content"))||void 0===i?void 0:i.length)>z),u)),children:"".concat((null===(a=r.getFieldValue("content"))||void 0===a?void 0:a.length)||0,"/").concat(z)})]}),(0,s.jsx)(y,{onImgChange:function(e){return function(e){Q(e)}(e)},imgList:F,head:(0,s.jsx)("div",{className:L()["upload-head"],children:c("reportImgTip")})}),(0,s.jsx)("div",{className:L().btn,children:(0,s.jsx)(g.Z,{disabled:(null===(d=r.getFieldValue("content"))||void 0===d?void 0:d.length)>z||!r.getFieldValue("contact")||!r.getFieldValue("content")||!r.getFieldValue("device_type"),children:t("submit")})}),(0,s.jsxs)("div",{className:L()["user-id"],children:["User ID ",E,(0,s.jsxs)("span",{onClick:function(){navigator.clipboard.writeText(E)},children:[" ",c("copy")]})]})]})}})]})]})};q.needLogin=!0,q.getLayout=function(e){var t=(0,k.Z)(),c=(0,u.$G)("feedback").t;return(0,f.Z)(e,{headerProps:{showMobileNav:!0,title:t.phone&&(0,s.jsx)("div",{className:L().uppercase,children:c("feedback")}),showMobileMenu:!1,mobileNavRightSlot:(0,s.jsx)("div",{}),removeShadow:!0},hideFooter:t.phone,hideFooterDownload:!0,hideMobileNavBar:!0,footBackgroundColor:"#EBE6FF"})};var O=!0,R=q},72762:function(e){e.exports={header:"colorHead_header__Kqrom",title:"colorHead_title__IQQSs"}},8964:function(e){e.exports={"dm-form-field":"Form_dm-form-field__7vbqO","field-error":"Form_field-error__D8ESu",title:"Form_title__V3Riu","error-tip":"Form_error-tip__laTYQ"}},61904:function(e){e.exports={"dm-input":"Input_dm-input__og_xO",rounded:"Input_rounded__5TJI6","text-clear":"Input_text-clear__hHVJQ","input-focus":"Input_input-focus__piMGJ","input-error":"Input_input-error__7etoX"}},97786:function(e){e.exports={contair:"Select_contair__bumJL",icon:"Select_icon__5kJtF","icon-show":"Select_icon-show___Ixyv","rc-select-open":"Select_rc-select-open__gWiWp","label-focus":"Select_label-focus__ll0Og","dm-select":"Select_dm-select__TbF9S","rc-select":"Select_rc-select__VX8AZ","rc-select-disabled":"Select_rc-select-disabled__cJLCv","rc-select-selector":"Select_rc-select-selector__pRXOZ","rc-select-show-arrow":"Select_rc-select-show-arrow__q_GFQ","rc-select-loading":"Select_rc-select-loading___bbOK","rc-select-arrow-icon":"Select_rc-select-arrow-icon__wouB2",rcSelectLoadingIcon:"Select_rcSelectLoadingIcon__sNKCy","rc-select-single":"Select_rc-select-single__nkLhn","rc-select-selection-search":"Select_rc-select-selection-search__RlTEC","rc-select-selection-search-input":"Select_rc-select-selection-search-input__EZlo_","rc-select-selection-item":"Select_rc-select-selection-item__ZpZOI","rc-select-selection-
1placeholder":"Select_rc-select-selection-placeholder__vz5R3","rc-select-customize-input":"Select_rc-select-customize-input__MZM6l","rc-select-multiple":"Select_rc-select-multiple__MMoQ2","rc-select-selection-item-disabled":"Select_rc-select-selection-item-disabled__5Ci2j","rc-select-selection-overflow":"Select_rc-select-selection-overflow__d6Mrd","rc-select-selection-overflow-item":"Select_rc-select-selection-overflow-item__bcu9T","rc-select-selection-search-mirror":"Select_rc-select-selection-search-mirror__9Vl8x","rc-select-allow-clear":"Select_rc-select-allow-clear__fTHqE","rc-select-clear":"Select_rc-select-clear__yAZ41","rc-select-arrow":"Select_rc-select-arrow__kEXEp","rc-select-focused":"Select_rc-select-focused__L9DgR","rc-select-item":"Select_rc-select-item__29rcR","rc-select-item-group":"Select_rc-select-item-group__SK8n_","rc-select-item-option":"Select_rc-select-item-option__oyqd_","rc-select-item-option-grouped":"Select_rc-select-item-option-grouped__J26Il","rc-select-item-option-state":"Select_rc-select-item-option-state__Ywfo_","rc-select-item-option-active":"Select_rc-select-item-option-active__lc_b_","rc-select-item-option-disabled":"Select_rc-select-item-option-disabled__1jjE4","rc-select-item-empty":"Select_rc-select-item-empty__Qf1d7","dm-select-dropdown":"Select_dm-select-dropdown__ru0ls","rc-select-selection__choice-zoom":"Select_rc-select-selection__choice-zoom__WGb2V","rc-select-selection__choice-zoom-appear":"Select_rc-select-selection__choice-zoom-appear__e8nJA","rc-select-selection__choice-zoom-appear-active":"Select_rc-select-selection__choice-zoom-appear-active__mC3Xm","rc-select-selection__choice-zoom-leave":"Select_rc-select-selection__choice-zoom-leave__Awg7H","rc-select-selection__choice-zoom-leave-active":"Select_rc-select-selection__choice-zoom-leave-active__0GxTm","rc-select-dropdown-slide-up-enter":"Select_rc-select-dropdown-slide-up-enter__a35ZO","rc-select-dropdown-slide-up-appear":"Select_rc-select-dropdown-slide-up-appear__2KkSS","rc-select-dropdown-slide-up-leave":"Select_rc-select-dropdown-slide-up-leave__IfHm1","rc-select-dropdown-slide-up-enter-active":"Select_rc-select-dropdown-slide-up-enter-active__3rHdV","rc-select-dropdown-placement-bottomLeft":"Select_rc-select-dropdown-placement-bottomLeft___S9vs","rc-select-dropdown-slide-up-appear-active":"Select_rc-select-dropdown-slide-up-appear-active__Vy5Ey","rc-select-dropdown-placement-bottomRight":"Select_rc-select-dropdown-placement-bottomRight__D39zE",rcSelectDropdownSlideUpIn:"Select_rcSelectDropdownSlideUpIn__tHeLb","rc-select-dropdown-slide-up-leave-active":"Select_rc-select-dropdown-slide-up-leave-active__uXCvn",rcSelectDropdownSlideUpOut:"Select_rcSelectDropdownSlideUpOut__GRebt","rc-select-dropdown-placement-topLeft":"Select_rc-select-dropdown-placement-topLeft__9uuEV","rc-select-dropdown-placement-topRight":"Select_rc-select-dropdown-placement-topRight__eieZ0",rcSelectDropdownSlideDownIn:"Select_rcSelectDropdownSlideDownIn___5yQE",rcSelectDropdownSlideDownOut:"Select_rcSelectDropdownSlideDownOut__CGpH4","gradient-box":"Select_gradient-box__B4pP4","gradient-box-top":"Select_gradient-box-top__LP_kr","gradient-box-bottom":"Select_gradient-box-bottom__UQFrh",label:"Select_label__C5GCo",placeholder:"Select_placeholder__bl8uF"}},84586:function(e){e.exports={upload:"UploadImg_upload__h5Dnh","upload-img-box":"UploadImg_upload-img-box__lXtxQ","img-more":"UploadImg_img-more__6KsaG","img-box":"UploadImg_img-box__5wyJD","close-box":"UploadImg_close-box__Lv_wc",close:"UploadImg_close__OCpTR"}},56316:function(e){e.exports={contair:"feedback_contair__d3zh7","upload-head":"feedback_upload-head___HlGO","user-id":"feedback_user-id__CqJhC",uppercase:"feedback_uppercase__D4mXV","info-box":"feedback_info-box__dTX3A",title:"feedback_title__wr5s_",upload:"feedback_upload__LT7Dh","upload-desc":"feedback_upload-desc__LVjLz","input-common":"feedback_input-common__VaItC",desc:"feedback_desc__Ok2qV","textarea-box":"feedback_textarea-box__6HZCz","about-number":"feedback_about-number__nQ9L_","textarea-focus":"feedback_textarea-focus__tsrqR","about-number-error":"feedback_about-number-error__kvwEn",textarea:"feedback_textarea__KWo8V","textarea-error":"feedback_textarea-error__mHfe_","text-focus":"feedback_text-focus__jTjca",btn:"feedback_btn__W1yTq",camera:"feedback_camera__SX_pb"}}},function(e){e.O(0,[461,627,288,988,498,273,774,888,179],(function(){return t=44264,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
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.