1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[513],{10513:function(e,a,s){"use strict";s.r(a),s.d(a,{default:function(){return w}});var r=s(85893),t=s(67294),d=s(41664),n=s.n(d),o=s(11163),l=s(97375),i=s(19101),c=s(68070),u=s(70525),m=s(56236),p=s(52974),h=s(76720),g=s(4285),f=s(87536),x=s(37442),S=s(52272),j=s(40999),v=s.n(j),_=s(69879),b=s(96170),N=s(81821),y=s(1979),Z=s.n(y),M=s(38553),k=()=>{var e;let a=(0,o.useRouter)(),[s,d]=(0,t.useState)(""),{getOrderGuest:j}=(0,_.jD)(),{validateEmail:y}=(0,N.Z)(),{formatMessage:k}=(0,b.v)({name:"account"}),{formatMessage:w}=(0,b.v)({name:"orders"}),[I,O]=(0,t.useState)(void 0),C=null===(e=a.locale)||void 0===e?void 0:e.replace("-","_"),{loggedIn:E,account:A,accountLoading:L}=(0,_.mA)();(0,t.useEffect)(()=>{L||(0,x.b)({event:"page_view",pageName:S.Z0.ORDER_STATUS.NAME,pageCategory:S.Z0.ORDER_STATUS.CATEGORY,pageType:S.Z0.ORDER_STATUS.TYPE,userId:null==A?void 0:A.accountId,userCategory:(null==A?void 0:A.accountId)?S.xk.LOGGED_IN:S.xk.GUEST})},[L]);let{register:T,handleSubmit:U,setValue:R,formState:{errors:P},reset:D}=(0,f.cI)({mode:"onSubmit"});(0,t.useEffect)(()=>{let e=a.asPath.split("/"),s=e[e.length-1];e.length>2&&!Number.isNaN(parseInt(s,10))&&R("order",s)},[a.asPath,R]);let G=(0,t.useCallback)(e=>{R(e.target.name,e.target.value)},[R]),z=async e=>{let a=String(e.order),s=String(e.email).toLowerCase(),r=await j(a,s);(null==r?void 0:r.cartId)?(D(),O(r)):d(w({id:"orderStatus.orderNotFound",defaultMessage:"<b>We can't find an order with that information.</b> Please ensure you entered the correct order number and email address and that the order was placed at least 24 hours ago."}))};if(!I)return(0,r.jsxs)(l.Z,{className:v()["order-status"],children:[(0,r.jsx)(i.Z,{children:(0,r.jsxs)(c.Z,{children:[(0,r.jsx)("h1",{className:"uppercase",children:w({id:"orderStatus.title",defaultMessage:"Order Lookup"})}),(0,r.jsx)("p",{children:w({id:"orderStatus.description",defaultMessage:"Check your order status, return items and view your order details."})})]})}),(0,r.jsxs)(i.Z,{className:v().content,children:[(0,r.jsxs)(c.Z,{sm:6,md:6,children:[s&&(0,r.jsx)(c.Z,{children:(0,r.jsxs)(u.Z,{variant:"danger",className:"alert-dismissible",children:[(0,r.jsx)("button",{type:"button",className:"btn-close","aria-label":"Close alert",onClick:()=>d("")}),(0,r.jsx)("div",{dangerouslySetInnerHTML:{__html:s}})]})}),(0,r.jsxs)(m.Z,{noValidate:!0,onSubmit:U(z),children:[(0,r.jsxs)(m.Z.Group,{className:v()["form-group"],children:[(0,r.jsxs)(m.Z.Label,{children:[w({id:"orderStatus.orderNumber.title",defaultMessage:"Order Number"})," ","*",(0,r.jsx)(g.Z,{trigger:["hover","focus"],placement:"top",overlay:(0,r.jsx)(p.Z,{id:"popover-positioned-top",children:(0,r.jsx)(p.Z.Body,{children:w({id:"orderStatus.orderNumber.popover",defaultMessage:"Your order number appears in your order confirmation email and is 9 to 11 digits. If you cannot find your order number, please call Customer Service."})})}),delay:150,children:(0,r.jsx)("span",{className:"questionIcon",children:"?"})})]}),(0,r.jsx)(m.Z.Control,{type:"number",placeholder:w({id:"orderStatus.orderNumber.placeholder",defaultMessage:"9 to 11 digit order number"}),...T("order",{required:!0,minLength:9,maxLength:11}),isInvalid:null!=P.order,onChange:G}),null!=P.order&&(0,r.jsx)(m.Z.Control.Feedback,{type:"invalid",children:w({id:"orderStatus.orderNumber.invalid",defaultMessage:"Please enter a valid order number"})})]}),(0,r.jsxs)(m.Z.Group,{className:v()["form-group"],children:[(0,r.jsxs)(m.Z.Label,{children:[w({id:"orderStatus.email.title",defaultMessage:"Email Address"})," ","*"]}),(0,r.jsx)(m.Z.Control,{type:"email",placeholder:w({id:"orderStatus.email.placeholder",defaultMessage:"Email Address"}),...T("email",{required:!0,pattern:y}),isInvalid:null!=P.email,onChange:G}),null!=P.email&&(0,r.jsx)(m.Z.Control.Feedback,{type:"invalid",children:w({id:"orderStatus.email.invalid",defaultMessage:"Please enter a valid email"})})]}),(0,r.jsxs)("p",{className:v().info,children:[(0,r.jsx)("span",{className:"questionIcon info",children:"i"})," ",w({id:"orderStatus.info",defaultMessage:"Please allow 24 hours for an order status to become available."})]}),(0,r.jsx)(h.Z,{type:"submit",className:"btn-black-yellow",children:w({id:"orderStatus.submit",defaultMessage:"Lookup Order"})})]})]}),(0,r.jsxs)(c.Z,{sm:6,md:6,className:v()["additional-copy"],children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:v().h2,children:w({id:"orderStatus.account.title",defaultMessage:"Have a Nikon account?"})}
1),(0,r.jsx)("p",{children:w({id:"orderStatus.account.description",defaultMessage:"You can access your complete order history by signing into your account."})}),(0,r.jsx)(n(),{href:"/login-authentication?redirect=order-status",children:w({id:"orderStatus.account.link",defaultMessage:"Sign into your Nikon account"})})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:v().h3,children:w({id:"orderStatus.assistance.title",defaultMessage:"Need assistance?"})}),(0,r.jsx)("a",{href:"https://www.nikonimgsupport.com/ni/NI_ask_support?ctry=US&lang=en_US",children:w({id:"orderStatus.assistance.link",defaultMessage:"Support"})})]})]})]})]});{let e=k({id:"order.details",defaultMessage:"Order Details"}),a=k({id:"support.link",defaultMessage:'Need Assistance? <a href="https://www.nikonproductsupport.com/s/?language={locale}">Support</a>',values:{locale:C||"en_US"}}),s=k({id:"support.phone",defaultMessage:'<a href="tel:18006456687">1-800-NIKON US (1-800-645-6687)</a>'}),t=k({id:"back.to.account",defaultMessage:'<a href="https://www.nikonproductsupport.com/s/my-account?language={locale}">Back to My Account</a>',values:{locale:C||"en_US"}});return(0,r.jsxs)(l.Z,{className:Z()["account-container"],children:[(0,r.jsxs)(i.Z,{className:Z()["account-title"],children:[(0,r.jsxs)(c.Z,{md:6,children:[(0,r.jsx)("h1",{children:e}),E&&(0,r.jsxs)("div",{className:Z()["header-link"],children:[(0,r.jsx)("span",{className:"".concat(Z().icon," ss-navigateleft")}),(0,r.jsx)("div",{dangerouslySetInnerHTML:{__html:t}})]})]}),(0,r.jsxs)(c.Z,{md:6,children:[(0,r.jsxs)("div",{className:Z()["header-link"],children:[(0,r.jsx)("span",{className:"".concat(Z().icon," ss-phone")}),(0,r.jsx)("div",{dangerouslySetInnerHTML:{__html:s}})]}),(0,r.jsx)("div",{className:"".concat(Z()["header-link"]," ").concat(Z()["support-link"]),dangerouslySetInnerHTML:{__html:a}})]})]}),(0,r.jsx)(M.Z,{order:I,resetOrder:()=>{O(void 0)}})]})}},w=()=>(0,r.jsx)(k,{})},81821:function(e,a,s){"use strict";var r=s(2120);a.Z=()=>{let e=new RegExp(/^\d{5}(-\d{4})?$/);return{validatePhoneNumber:r.S,validateZip:e,validateAddress:new RegExp(/\b(?:p\.?\s*o\.?|post\s+office)(\s+)?(?:box|[0-9]*)?\b/gim),validateEmail:/\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}\b/}}},40999:function(e){e.exports={"order-status":"OrderStatus_order-status__0Q57e",h2:"OrderStatus_h2__rpx_R",h3:"OrderStatus_h3__Z1wlt",content:"OrderStatus_content__vi02L",info:"OrderStatus_info__UzxIl","form-group":"OrderStatus_form-group__UMwpo","additional-copy":"OrderStatus_additional-copy__zBUtL"}}}]);
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.