PageSourceSearch

https://cdn.watchmaxx.com/site2/_next/static/chunks/pages/account/returns-67fd00cd718c7b7c.js

js watchmaxx.com collected 2026-09-25 18:17:43 UTC 17,361 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5278],{73891:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/account/returns",function(){return r(96452)}])},96452:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return H}});var a=r(85893),n=r(67294),s=r(11163),i=r(41664),o=r.n(i),l=r(16777),c=r(36354),d=r(57649),u=r(88847),h=r(596),m=r(20567),p=r(14932),_=r(36872),x=r(91050),w=r(96254),f=r(27292),y=r(5136),g=r(93967),b=r.n(g),j=r(69368),v=r(5714),S=r(94955),k=r(34398),R=r.n(k);let I=[65,130],N=["65px"];var T=e=>{let{isEligible:t,displayCheckbox:r,selectedItems:n,currentItem:s,returnStatuses:i,showRefundMsg:o,handleSelectItem:l,handleSelectQty:c,submitStarted:d}=e,u=s.returnValidUntil?(0,y.Tx)(s.returnValidUntil):"",h=s.warrantyValidUntil?(0,y.Tx)(s.warrantyValidUntil):"",m=s.isReturnValid?"Return until ".concat(u):"Return window closed ".concat(u);s.isFinalSale&&(m="No Returns - Final Sale");let p=s.isWarrantyValid?"Warranty ends ".concat(h):"Warranty expired ".concat(h);return(0,a.jsxs)("article",{className:b()(R().item,{[R().unavailable]:!t}),children:[r?(0,a.jsx)(j.Z,{checked:n.some(e=>e.rowId===s.rowId),disabled:d,className:R().checkbox,disableRipple:!0,onChange:()=>l(s.rowId)}):(0,a.jsx)("div",{className:R().checkbox}),(0,a.jsx)(f.t,{srcWidths:I,displayWidths:N,src:s.image_file?(0,v.CN)(s.image_file).slice(1):v.A8,alt:s.code,errorFallback:!0}),(0,a.jsxs)("span",{className:R().item_name,children:[s.name,s.qty>1&&" (".concat(s.qty," items)"),s.warranty&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("br",{}),(0,a.jsxs)("span",{className:R().extend,children:["⁃ With ",(0,S.$G)(s.warranty.code)," year extended protection plan from"," ",(0,a.jsx)(f.N0,{to:"https://customers.extend.com/plan_details/".concat(s.warranty.code),theme:"inherit",children:"Extend"})]})]})]}),(0,a.jsxs)("div",{className:R().qty_etc,children:[s.qty>1&&t&&(0,a.jsxs)("label",{htmlFor:"item_qty",children:["Select Qty:",(0,a.jsx)("select",{id:"item_qty",value:s.selectedQty,onChange:e=>c(s.rowId,e.target.value),disabled:d,children:Array(s.qty).fill().map((e,t)=>(0,a.jsx)("option",{value:t+1,children:t+1},t))})]}),i.length>0?(0,a.jsxs)("ul",{children:[s.deliveredDate&&(0,a.jsx)("li",{children:"".concat((0,y.Tx)(s.deliveredDate)," - Delivered")}),i.map(e=>(0,a.jsx)("li",{className:R().red,children:e},e)),o&&(0,a.jsx)("li",{className:R().refund,children:"If a refund is due, please allow up to 5 business days for the funds to clear."})]}):4===s.customerStatusProgress?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:b()({[R().red]:!s.isReturnValid||s.isFinalSale}),children:m}),(0,a.jsx)("div",{className:b()({[R().red]:!s.isWarrantyValid}),children:p})]}):(0,a.jsxs)("div",{children:["Status: ",s.customerStatusName]})]})]})},C=r(98456),q=r(47702),z=r(88942),A=r(27856);let E=async e=>(null==e?void 0:e.length)>2?await (0,l.Kf)({route:"/code-autocomplete/".concat(encodeURIComponent(e))}).catch(e=>((0,l.H)("fetchCodes",e),[])):[],F=e=>(0,A.D)(400,t=>{let{inputValue:r}=t;return E(r).then(e)});var P=e=>{var{value:t,onChange:r}=e,s=(0,q._)(e,["value","onChange"]);let[i,o]=(0,n.useState)([]),l=(0,n.useMemo)(()=>F(o),[]),c=i.find(e=>e.label===t),{isOpen:d,getMenuProps:u,getInputProps:h,getComboboxProps:_,highlightedIndex:x,getItemProps:w,inputValue:y,setInputValue:g,closeMenu:b}=(0,z.Kb)({onInputValueChange:l,onSelectedItemChange:e=>{var t;return r((null===(t=e.selectedItem)||void 0===t?void 0:t.label)||"")},items:i,itemToString:e=>(null==e?void 0:e.label)||""}),j=e=>{let t=i.find(t=>t.label===e);t?(r(t.label),b()):(g(""),r(""))};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",(0,p._)((0,m._)({},_()),{children:(0,a.jsx)(f.gN,(0,m._)({},s,h({onKeyDown:e=>{"Enter"===e.key&&j(y)},onBlur:()=>j(y)})))})),(0,a.jsx)("ul",(0,p._)((0,m._)({className:R().autocompleteOptions,style:{display:d&&i.length?"block":"none"}},u()),{children:d&&(null==i?void 0:i.length)>0&&i.map((e,t)=>(0,a.jsx)("li",(0,p._)((0,m._)({style:{background:x===t?"rgba(0, 0, 0, 0.05)":"none",fontWeight:c===e?600:300}},w({item:e,index:t})),{children:e.label}),e.label))}))]})},O=r(92115),V=r(74174),M=e=>{let{reasonsList:t,category:r,selectedItems:s,orderId:i,email:o,actions:c,submitting:d}=e,u=(0,n.useMemo)(()=>s.reduce((e,t)=>
1t.isReturnValid&&!t.isFinalSale&&e,!0),[s]),{isWarrantyValid:h}=s[0],m=(0,y.Tx)(s[0].warrantyValidUntil),p=t?t.filter(e=>e.name===r):null,[_,x]=(0,n.useState)(),[w,g]=(0,n.useState)(""),[v,S]=(0,n.useState)(""),[k,I]=(0,n.useState)(!1),[N,T]=(0,n.useState)(),[q,z]=(0,n.useState)(),A=!_||"Repair"!==r&&!k||"Exchange"===r&&!w||"Repair"===r&&!v,E=()=>(T(!0),!A),F=(0,n.useMemo)(()=>"Repair"===r&&s.length>1&&(0,a.jsx)("article",{children:"Sorry, repair requests can only be made for one item at a time. Please adjust your selection."})||"Repair"===r&&h&&(0,a.jsx)("article",{children:"This item is under warranty until ".concat(m,". For repair service, please complete the information below.")})||"Repair"===r&&!h&&(0,a.jsx)("article",{children:"The warranty period for this item expired on ".concat(m,". To request a quote for repair service, please complete the information below.")})||u&&(0,a.jsx)("article",{children:"To begin ".concat("Exchange"===r?"an exchange":"a return",", please complete the information below.")})||(0,a.jsxs)("p",{children:["Sorry,",s.length>1?" your selection does not qualify ":" this item is no longer eligible ","for return or exchange. Please"," ",(0,a.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"mailto:[email protected]?subject=Return%20Inquiry%20(Order #".concat(i,")"),children:"contact us"})," ","for further assistance."]}),[r,u,h,i,m,s.length]);return(0,a.jsxs)("form",{onSubmit:y.PF,children:[F,("Repair"===r&&1===s.length||"Repair"!==r&&u)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("article",{children:[(0,a.jsx)("span",{className:b()({[R().error]:N&&!_}),children:"Repair"!==r?"Reason for ".concat(r.toLowerCase(),"*"):"What issue are you having?*"}),(0,a.jsxs)(f.lU,{className:b()(R().select,R().narrow),labelText:"",value:_,id:"return_reason",onChange:e=>x(parseInt(e.target.value,10)),children:[!_&&(0,a.jsx)(f.Ql,{value:"",text:"-- please select --"},"select"),p.map(e=>(0,a.jsx)(f.Ql,{value:e.id,text:e.reason},e.reason))]}),12===_&&(0,a.jsx)("div",{className:R().troubleshootLink,onClick:()=>z(!0),children:"â­¢ Troubleshoot “watch not working”"})]}),"Exchange"===r&&(0,a.jsx)(P,{labelClass:b()({[R().error]:N&&!w}),inputClass:R().narrow,name:"exchange_for",id:"exchange_for",labelText:"Product code of the item you want to exchange it for*",value:w,onChange:g}),(0,a.jsx)(f.Kx,{name:"return_msg",labelText:"Additional details".concat("Repair"===r?"*":""),labelClass:b()({[R().error]:N&&"Repair"===r&&!v}),id:"return_msg",value:v,type:"text",onChange:e=>S((0,V.Fv)(e.target.value))}),"Repair"!==r&&(0,a.jsxs)("article",{className:b()(R().condition,{[R().error]:N&&!k}),children:[(0,a.jsx)(j.Z,{checked:k,disableRipple:!0,className:R().condition_checkbox,onChange:()=>I(e=>!e)}),"I confirm that the item is still in the exact condition as when it\n              was received — i.e. stickers, tags or labels have not been\n              removed, and the item has not been worn, sized or tampered with. I\n              understand that an additional charge may be incurred if these\n              terms are not met".concat("Return"===r?", and that a restocking fee may apply as per the return policy":"",".")]}),(0,a.jsx)(f.zx,{onClick:()=>{var e;if(!E())return;c.setSubmitStarted(!0);let a=!!(null===(e=t.find(e=>e.id===_))||void 0===e?void 0:e.auto_submit)&&!("Repair"===r&&!s[0].isWarrantyValid);(0,O.zz)({email:o,orderId:i,category:r,codes:s.map(e=>e.code),quantities:s.map(e=>e.selectedQty),reasonId:_,message:v,exchangeFor:w}).then(e=>{if(!(null==e?void 0:e.rmaId))throw Error((null==e?void 0:e.error)||"No RMA ID");c.setSubmissionResponse({category:r,rmaId:e.rmaId,auto:a})}).catch(e=>{(0,l.H)("submitRMA",e),c.setSubmissionResponse({category:r})})},theme:"black",disabled:d,children:d?"SUBMITTING...":"SUBMIT"}),d&&(0,a.jsx)("span",{className:R().spinner,children:(0,a.jsx)(C.Z,{size:30})})]}),(0,a.jsx)(f.u_,{isOpen:q,onRequestClose:()=>z(!1),ariaHideApp:!1,className:R().modal,closeModal:()=>z(!1),children:(0,a.jsxs)("div",{children:[(0,a.jsx)(f.H,{type:"h3",appearance:"h2",children:"Troubleshooting"}),(0,a.jsxs)("p",{children:[(0,a.jsx)("span",{className:"boldStyle",children:"Automatic (self-winding) watches:"})," ","An automatic watch is powered by the natural movements of the wearer. However, in order for an automatic watch to function properly, it must be wound manually when it is first received, and also whenever the power runs out due to lack of movement."]}),(0,a.jsx)("p",{children:"To manually wind an automatic watch, turn the winding crown (typically located at the 3 o’clock position) in an upward, clockwise direction for 20-40 revolutions, or until you feel that the spring is fully loaded. Note that a screw-down crown will need to be unscrewed before winding the watch. After this initiation process is completed, the watch will automatically maintain its power reserve as it moves about."}),(0,a.jsx)("p",{children:"An automatic watch should be worn at least eight hours a day to maximize the power reserve. If the watch has been sitting still for more than a day or so, the manual winding process will need to be repeated."}),(0,a.jsxs)("p",{children:[(0,a.jsx)("span",{className:"boldStyle",children:"Quartz (battery powered) watches:"})," ","A quartz watch that has stopped working is most likely in need of a new battery. If this is a newly-purchased wat
1ch, you can take it to any trusted repair center to have the battery changed, and we will refund you up to $20. Alternatively, you can send it back to us for service. Keep in mind that the hands of a quartz watch will not move unless the crown is pushed in."]}),(0,a.jsx)("button",{className:R().ok,onClick:()=>z(!1),children:"OK"})]})})]})},W=e=>{let{rmaInfo:t,orderId:r}=e;return(0,a.jsx)("div",{className:b()(R().submitted,{[R().fadeIn]:t}),children:t&&(t.rmaId?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{children:"Your ".concat(t.category.toLowerCase()," request was succesfully submitted. ").concat(t.auto?"You will shortly receive an email with further instructions.":"We usually respond within one business day.")}),(0,a.jsxs)("div",{children:["The reference number for this request is"," ",(0,a.jsx)("strong",{className:"boldStyle",children:t.rmaId}),"."]}),(0,a.jsxs)("div",{className:"hidePrint",children:[(0,a.jsx)(f.zx,{onClick:()=>window.print(),theme:"black_small",children:"Print page"}),(0,a.jsx)(f.zx,{onClick:()=>window.location.reload(),theme:"black_small",children:"Refresh"})]})]}):(0,a.jsxs)("div",{children:["We’re sorry, but your request could not be processed. Please"," ",(0,a.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"mailto:[email protected]?subject=".concat(t.category,"%20Inquiry%20(Order #").concat(r,")"),children:"contact us"})," ","for further assistance."]}))})},D=e=>{let{orderStatusRows:t,orderId:r,email:s}=e,[i,o]=(0,n.useState)([]);(0,n.useEffect)(()=>{(0,l.Kf)({route:"/order/returns_reasons"}).then(o).catch(e=>(0,l.H)("getReturnsReasons",e))},[]);let[c,d]=(0,n.useState)(()=>t.filter(e=>!!e.sale_price&&!e.warranty_for_code).map((e,r)=>(0,p._)((0,m._)({},e),{rowId:r,selectedQty:1,warranty:t.find(t=>t.warranty_for_code===e.code)}))),u=(0,n.useMemo)(()=>c.filter(e=>(e.isReturnValid&&!e.isFinalSale||e.isWarrantyValid)&&"Delivered"===e.customerStatusName),[c]),[h,g]=(0,n.useState)(()=>1===c.length?[c[0]]:[]),b=e=>{h.some(t=>e===t.rowId)?g(h.filter(t=>e!==t.rowId)):g([...h,c.find(t=>e===t.rowId)])},j=(e,t)=>{d(c.map(r=>e===r.rowId?(0,p._)((0,m._)({},r),{selectedQty:parseInt(t,10)}):r)),g(h.map(r=>e===r.rowId?(0,p._)((0,m._)({},r),{selectedQty:parseInt(t,10)}):r))},[v,S]=(0,n.useState)(()=>c.some(e=>e.isReturnValid)?"Return":"Repair"),[k,I]=(0,n.useState)(),[N,C]=(0,n.useState)();return(0,a.jsx)("div",{className:R().returns,id:"returns_repairs",children:(0,a.jsx)("div",{className:R().details,children:i&&0!==c.length?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:R().intro,children:[(0,a.jsx)("p",{children:"At WatchMaxx.com, the satisfaction of our customers is paramount."}),(0,a.jsx)("p",{children:u.length>0?"Here you can easily initiate a return, exchange or repair, or check the status of an existing service request.":"On this page you can verify whether the items in your order are currently eligible for return or repair. You can also check the status of existing service requests here."}),(0,a.jsxs)("p",{children:["Full terms and conditions can be found in our"," ",(0,a.jsx)(f.N0,{to:"/returns",children:"return policy"})," and"," ",(0,a.jsx)(f.N0,{to:"/warranty",children:"warranty policy"}),"."]})]}),c.length>1&&u.length>0&&(0,a.jsx)("p",{style:{color:k?"transparent":"red"},children:"Select the item(s) you would like to return, exchange or repair."}),c.map(e=>{let t=e.returnStatusStrings.reduce((e,t)=>[...e,...t===e.slice(-1)[0]?[]:[t]],[]).map((t,r)=>"".concat((0,y.Tx)(e.returnStatusDates[r])," - ").concat(t)),r=u.includes(e),n=[12,33].includes(e.returnStatusIds.slice(-1)[0])&&new Date().getTime()-new Date(e.returnStatusDates.slice(-1)[0]).getTime()<(0,y.yB)(7);return(0,a.jsx)(T,{isEligible:r,displayCheckbox:c.length>1&&r,currentItem:e,returnStatuses:t,showRefundMsg:n,selectedItems:h,handleSelectItem:b,handleSelectQty:j,submitStarted:k},e.rowId)}),u.length>0&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(x.Z,{"aria-label":"return_category",name:"return_category",value:v,onChange:e=>S(e.target.value),className:R().radio_buttons,children:["Return","Exchange","Repair"].map(e=>(0,a.jsx)(w.Z,{value:e,color:"default",control:(0,a.jsx)(_.Z,{size:"small",color:"default",disableRipple:!0}),label:e,disabled:h.length<1||k},e))}),(0,a.jsx)("div",{className:R().panel_wrapper,children:h.length>0&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(M,{category:v,reasonsList:i,actions:{setSubmitStarted:I,setSubmissionResponse:C},selectedItems:h,orderId:r,email:s,submitting:k},v+h.length),(0,a.jsx)(W,{rmaInfo:N&&(0,m._)({},N),orderId:r})]})})]})]}):(0,a.jsxs)("p",{className:R().intro,children:["Please"," ",(0,a.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"mailto:[email protected]?subject=Return/Repair%20Inquiry%20(Order #".concat(r,")"),children:"contact us"})," ","for assistance concerning returns, exchanges or repairs for this order."]})})})},Q=r(50819);let U=e=>{let{orderId:t}=e,{username:r,authToken:i,actions:m}
1=(0,n.useContext)(d._y),p=(0,s.useRouter)(),[_,x]=(0,n.useState)();(0,Q.I)(),(0,n.useEffect)(()=>{if(!t||!i){p.replace("/account/orders");return}(0,O.RV)({orderId:t,token:i}).then(e=>{let{orderStatusRows:t}=e;if((null==t?void 0:t.length)>0)x(t);else throw Error("No orderStatusRows")}).catch(e=>{(0,l.H)("returns_getOrderStatusDetails",e),m.showAlert(c.R.GET_ORDER_STATUS_ITEMS),setTimeout(()=>p.back(),2500)})},[t,x,p,m]);let w=(null==_?void 0:_.length)>0;return(0,a.jsx)(h._,{loaded:!!i,showPrintIcon:!0,isLargeForm:!0,headerText:"Returns, Exchanges and Repairs",subheaderText:"Order #".concat(t),subheaderComponent:(0,a.jsxs)("span",{className:"hidePrint",children:[(0,a.jsx)("span",{children:" • "}),(0,a.jsx)(o(),{href:"/account/orders",style:{color:"white"},children:"Back to all orders"})]}),children:w?(0,a.jsx)(D,{orderId:t,email:r,orderStatusRows:_}):(0,a.jsx)(u.Z,{})})};U.getInitialProps=e=>{let{query:{order:t}}=e;return{orderId:parseInt(t,10)}};var H=U},50819:function(e,t,r){"use strict";r.d(t,{I:function(){return l},i:function(){return c}});var a=r(67294),n=r(11163),s=r(31955),i=r(57649),o=r(16777);let l=()=>{let e=(0,a.useContext)(i._y),t=(0,n.useRouter)();(0,a.useEffect)(()=>{e.authToken?s.Z.get("wm_tok")||(0,o.Kf)({route:"/account/authenticate",token:e.authToken}).then(t=>e.actions.setAuth(t.token,t.email)).catch(()=>e.actions.logout()):t.replace("/account/login?returnUrl=".concat(encodeURIComponent(t.asPath)),"/account/login")},[!!e.authToken,t,e.actions])},c=e=>(0,o.Kf)({route:"/account/profile",token:e}).then(e=>e&&{title:e.titleHonorific||"",first_name:e.first_name||"",last_name:e.last_name||"",address1:e.address1||"",address2:e.address2||"",city:e.city||"",state:e.state||"",zip:e.zip||"",country:e.country||"",phone_number:e.phone||"",company_name:e.organization||""})},34398:function(e){e.exports={returns:"returns___1zdjh",intro:"intro___Ne68Q",details:"details___1Ad3g",condition:"condition___PcS9y",condition_checkbox:"condition_checkbox___1yp69",error:"error___1Apmp",spinner:"spinner___VdzkO",troubleshootLink:"troubleshootLink___Tpj4Q",modal:"modal___SdmcR",ok:"ok___Mozhy",select:"select___OoztB",narrow:"narrow___PoC8T",autocompleteOptions:"autocompleteOptions___MczAT",item:"item___1Adz0",checkbox:"checkbox___Np3AV",item_name:"item_name___1zc3s",extend:"extend___SdS4M",qty_etc:"qty_etc___Pc3pz",red:"red___1zejg",refund:"refund___Rpjtz",unavailable:"unavailable___1Acjl",radio_buttons:"radio_buttons___OdP8Q",panel_wrapper:"panel_wrapper___TdS8M",required:"required___1zcSd",submitted:"submitted___1xdjc",fadeIn:"fadeIn___1ydml"}}},function(e){var t=function(t){return e(e.s=t)};e.O(0,[4703,9774,2888,179],function(){return t(25436),t(73891)}),_N_E=e.O()}]);
2//# sourceMappingURL=returns-67fd00cd718c7b7c.js.map

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.