1!function(){try{var n="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};n._sentryModuleMetadata=n._sentryModuleMetadata||{},n._sentryModuleMetadata[(new n.Error).stack]=function(n){for(var t=1;t<arguments.length;t++){var e=arguments[t];if(null!=e)for(var i in e)e.hasOwnProperty(i)&&(n[i]=e[i])}return n}({},n._sentryModuleMetadata[(new n.Error).stack],{"_sentryBundlerPluginAppKey:cpp-front":!0});var t=(new n.Error).stack;t&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[t]="119612e9-b090-4d75-83b8-5936d0a2fa1f",n._sentryDebugIdIdentifier="sentry-dbid-119612e9-b090-4d75-83b8-5936d0a2fa1f")}catch(n){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7235],{57139:function(n,t,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/profile/my-orders/[orderId]",function(){return e(7486)}])},59496:function(n,t,e){"use strict";e.d(t,{P:function(){return c}});var i=e(68602),l=e(41749),a=e(41120),o=e(22318),r=e(94184),d=e.n(r);let s=(0,a.Z)(n=>({container:{background:"#FFFFFF",borderRadius:"4px",padding:n.spacing(2),flexFlow:"column",[n.breakpoints.down(600)]:{padding:15}},block:{paddingTop:n.spacing(2),flexGrow:1,[n.breakpoints.down(600)]:{paddingTop:5}},title:{fontSize:"18px",color:"#000",fontWeight:500,paddingLeft:n.spacing(.7)}})),c=n=>{let{children:t,title:e,className:a}=n,r=s();return(0,i.BX)(l.Z,{container:!0,className:d()(r.container,a),direction:"column",children:[(0,i.tZ)(o.Z,{noWrap:!0,className:r.title,children:e}),(0,i.tZ)(l.Z,{container:!0,className:d()(r.block),direction:"column",children:t})]})}},63283:function(n,t,e){"use strict";e.d(t,{X:function(){return m}});var i=e(68602),l=e(41749),a=e(17812),o=e(41120),r=e(22318),d=e(28428),s=e(59067),c=e(94184),u=e.n(c);let p=(0,o.Z)(n=>({container:{minHeight:40,fontFamily:"Roboto",fontStyle:"normal",fontWeight:"normal",fontSize:16,color:"#000000",letterSpacing:.15,position:"relative","&:hover .row-controls":{display:"block"}},title:{color:"#000",paddingTop:n.spacing(.7),paddingBottom:n.spacing(.7),paddingLeft:n.spacing(.7),paddingRight:n.spacing(1),wordBreak:"break-all",[n.breakpoints.down(600)]:{fontWeight:700,paddingTop:n.spacing(1.6),paddingBottom:n.spacing(.2),paddingLeft:n.spacing(.7)}},value:{color:"#000",paddingTop:n.spacing(.7),paddingBottom:n.spacing(.7),paddingLeft:n.spacing(.7),paddingRight:n.spacing(1),wordBreak:"break-all",[n.breakpoints.down(600)]:{paddingTop:n.spacing(.2),paddingBottom:n.spacing(1.2),paddingLeft:n.spacing(.8)}},controls:{display:"none",position:"absolute",top:0,right:0,paddingTop:.5*n.spacing(1)},colorIcon:{color:"#B3B3B3"}})),m=n=>{let{className:t,title:e,value:o,onEdit:c,onRemove:m}=n,g=p();return(0,i.BX)(l.Z,{container:!0,className:u()(t,g.container),children:[(!!c||!!m)&&(0,i.BX)(l.Z,{item:!0,className:u()(g.controls,"row-controls"),children:[c&&(0,i.tZ)(a.Z,{onClick:c,"aria-label":"Edit",size:"small",children:(0,i.tZ)(s.Z,{className:g.colorIcon})}),m&&(0,i.tZ)(a.Z,{onClick:m,"aria-label":"Remove",size:"small",children:(0,i.tZ)(d.Z,{className:g.colorIcon})})]}),(0,i.tZ)(l.Z,{item:!0,sm:5,container:!0,alignItems:"center",children:(0,i.tZ)(r.Z,{className:u()(g.title),children:e})}),(0,i.tZ)(l.Z,{item:!0,sm:7,container:!0,alignItems:"center",children:"object"==typeof o?o:(0,i.tZ)(r.Z,{className:u()(g.value),children:o})})]})}},85448:function(n,t,e){"use strict";e.d(t,{j:function(){return i}});let i=n=>{var t;return n&&"string"==typeof n?"".concat(null===(t=n[0])||void 0===t?void 0:t.toUpperCase()).concat(n.slice(1)):""}},7486:function(n,t,e){"use strict";e.r(t),e.d(t,{default:function(){return nE}});var i=e(68602),l=e(50319),a=e(37887),o=e(95477),r=e(39636),d=e(41749),s=e(41120),c=e(78513),u=e(94184),p=e.n(u),m=e(47292),g=e(15616),v=e.n(g),h=e(11163),Z=e(79613),b=e(67294),f=e(15651),y=e(59496),x=e(63283),N=e(85448);let k=(0,s.Z)(n=>({block:{display:"grid",gridTemplateColumns:"1fr 20px 0.8fr",gap:"".concat(n.spacing(2),"px"),[n.breakpoints.down(768)]:{display:"block",gap:0,gridTemplateColumns:"repeat(auto-fill, minmax(100%, 1fr))"}},verticalDivider:{width:"1px",height:"100%",background:"#F5F5F5",marginLeft:n.spacing(1),marginRight:n.spacing(1),[n.breakpoints.down(768)]:{display:"none"}},borderBottom:{borderBottom:"1px solid #E5E5E5"},text:{"& *":{fontSize:"16px"}}})),B=n=>
1{let{data:t,title:e}=n,l=k(),a=t?"".concat((null==t?void 0:t.address1)?"".concat(null==t?void 0:t.address1,", "):"").concat((null==t?void 0:t.address2)?"".concat(null==t?void 0:t.address2):""):"",o=(null==t?void 0:t.city)?(0,N.j)(null==t?void 0:t.city):"",r=(null==t?void 0:t.region)?null==t?void 0:t.region:"",s=(null==t?void 0:t.postal)||"";return(0,i.tZ)(y.P,{title:e,children:(0,i.BX)("div",{className:l.block,children:[(0,i.BX)(d.Z,{container:!0,direction:"column",children:[(0,i.tZ)(x.X,{className:p()(l.borderBottom,l.text),title:"Name",value:null==t?void 0:t.fullName}),(0,i.tZ)(x.X,{className:p()(l.borderBottom,l.text),title:"Company",value:null==t?void 0:t.company}),(0,i.tZ)(x.X,{className:p()(l.borderBottom,l.text),title:"Street",value:a}),(0,i.tZ)(x.X,{className:p()(l.borderBottom,l.text),title:"City/State/ZIP",value:o&&r&&s?"".concat(o,", ").concat(r,", ").concat(s):""})]}),(0,i.tZ)("div",{className:l.verticalDivider}),(0,i.tZ)(d.Z,{container:!0,direction:"column",children:(0,i.tZ)(x.X,{className:p()(l.borderBottom,l.text),title:"Phone",value:null==t?void 0:t.phone})})]})})};var C=e(91083),w=e(57558),F=e(78991),S=e(39225),_=e(85715),T=e(282),R=e(17812),X=e(38396),P=e(85639),D=e(87083);let I=(0,s.Z)(n=>({container:{},button:{borderRadius:0},text:{textTransform:"none",fontSize:"16px",fontWeight:"normal"},icon:{color:"#B3B3B3"},menuItem:{fontSize:"16px",color:"#000",paddingTop:n.spacing(1),paddingBottom:n.spacing(1),paddingLeft:n.spacing(2),paddingRight:n.spacing(2)}})),A=n=>{let{items:t=[],label:e,icon:l,anchorOrigin:a,transformOrigin:o,className:r}=n,d=I(),[s,c]=b.useState(null),u=n=>{let t=n.currentTarget;c(t)},m=()=>{c(null)},g=(n,t)=>{t(),c(null)},v=null==t?void 0:t.map(n=>(0,i.tZ)(P.Z,{className:d.menuItem,onClick:t=>g(t,n.cb),disabled:!!n.disabled,children:n.tooltip?(0,i.tZ)(D.ZP,{title:n.tooltip,children:(0,i.tZ)("span",{children:n.label})}):n.label},n.label));return(0,i.BX)(i.HY,{children:[e?(0,i.tZ)(T.Z,{onClick:u,className:p()(r),children:e}):(0,i.tZ)(R.Z,{onClick:u,className:p()(r),children:(0,i.tZ)(l,{})}),!!(null==t?void 0:t.length)&&(0,i.tZ)(X.Z,{id:"simple-menu",getContentAnchorEl:null,anchorEl:s,keepMounted:!0,open:!!s,onClose:m,anchorOrigin:{...a},transformOrigin:{...o},children:v})]})},L=(0,s.Z)(n=>({container:{background:"#FFFFFF",borderRadius:"4px",padding:n.spacing(2)},bottomLine:{borderBottom:"1px solid #E5E5E5"},text:{"& *":{color:"#000",fontSize:"16px"}}})),W=n=>{let{orderPlaced:t,price:e,orderId:l}=n,a=L();return(0,i.tZ)(y.P,{title:"Order Details",children:(0,i.BX)(d.Z,{item:!0,children:[(0,i.tZ)(x.X,{className:p()(a.bottomLine,a.text),title:"Order Placed",value:t}),(0,i.tZ)(x.X,{className:p()(a.bottomLine,a.text),title:"Price",value:e}),(0,i.tZ)(x.X,{className:p()(a.bottomLine,a.text),title:"Order ID",value:l})]})})};var E=e(91594),M=e(2876),O=e(25357),z=e(63457);let U=(0,s.Z)(n=>({container:{},stepper:{background:"transparent",paddingTop:0,paddingBottom:0,flexGrow:1,maxWidth:"1200px",[n.breakpoints.down(768)]:{display:"flex",flexDirection:"column",alignItems:"center"}},step:{[n.breakpoints.down(768)]:{marginBottom:n.spacing(1),padding:0},"& svg path, & svg circle":{color:"#BDBDBD"}},warningLabel:{color:"#FF9800 !important"},completed:{"& svg path":{color:"#4CAF50"}},warning:{"& svg path":{color:"#FF9800"}},error:{"& svg path":{color:"#f44336"}}})),$=n=>{let{activeStep:t,steps:e,warning:l,error:a}=n,o=(0,z.Z)(n=>n.breakpoints.down(768)),r=U(),[s,c]=b.useState("horizontal");b.useEffect(()=>{c(o?"vertical":"horizontal")},[o]);let u=n=>n===t-1;return(0,i.tZ)(d.Z,{container:!0,justifyContent:"center",className:r.container,children:(0,i.tZ)(O.Z,{activeStep:t,className:r.stepper,orientation:s,children:e.map((n,e)=>{let o={};(l||a)&&u(e)&&(o.error=!0);let d=l?r.warning:r.completed;return(0,i.tZ)(E.Z,{active:e===t,classes:{root:r.step,completed:a?r.error:d},children:(0,i.tZ)(M.Z,{...o,className:p()(r.step),classes:{error:p()({[r.warningLabel]:l&&u(e)})},children:n})},n)})})})};var G=e(89659),H=e(82302),q=e(99613),Y=e(88222),j=e(83750),V=e(57394),Q=e(22318),K=e(11752),J=e.n(K),nn=e(28035),nt=e(62280);let{publicRuntimeConfig:ne}=J()(),ni=(0,s.Z)(n=>({container:{background:"#FFFFFF",borderRadius:"4px",padding:n.spacing(2),flexGrow:1,[n.breakpoints.down("sm")]:{display:"none"}},text:{color:"#000",fontSize:"16px"},textUnderlined:{textDecoration:"underline"},headCell:{fontWeight:"bold"},productCell:{display:"grid",gridTemplateColumns:"1fr 1fr"},link:{fontSize:"16px",textDecorationColor:"#000",textDecoration:"underline",cursor:"pointer","&:hover":{textDecorationColor:"#000"}},responsiveContainer:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center"},responsiveRow:{width:"100%",padding:15,paddingBottom:5,"&:nth-child(2n+1)":{backgroundColor:"#eeeeee"},"& > div":{"& > p":{"&:first-child":{paddingBottom:5,fontWeight:700},"&:last-child":{paddingBottom:15}},"& > a":{"& > p":{paddingBottom:20}}}},mobile:{[n.breakpoints.up("sm")]:{display:"none"}}})),nl=n=>{let{items:t=[]}=n,e=ni(),l=t.map(n=>{var t,e,i,l,a,o,r,d,s,c;let u=(null==n?void 0:n.quantity)||1,p=(null==n?void 0:n.laborPrice)||0,m=null==n?void 0:null===(t=n.price)||void 0===t?void 0:t.amount,g=null==n?void 0:null===(e=n.subtotal)||void 0===e?void 0:e.amount;return{id:n._id,link:{label:"".concat((null==n?void 0:n.condition)||""," ").concat(null==n?void 0:n.title),href:"".concat(ne.canonicalUrl,"/transmissions/").concat(null==n?void 0:null===(i=n.originalProduct)||void 0===i?void 0:null===(l=i.make)||void 0===l?void 0:l.slug,"/").concat(null==n?void 0:null===(a=n.originalProduct)||void 0===a?void 0:null===(o=a.model)||void 0===o?void 0:o.slug,"/").concat(null==n?void 0:null===(r=n.originalProduct)||void 0===r?void 0:r.year,"/").concat(null==n?void 0:null===(d=n.originalProduct)||void 0===d?void 0:d.optionsSlug)},options:null==n?void 0:n.options,quantity:null==n?void 0:n.quantity,price:p&&"number"==typeof m?(0,nt.g)(m-p):null==n?void 0:null===(s=n.price)||void 0===s?void 0:s.displayAmount,subtotal:p&&"number"==typeof g?(0,nt.g)(g-p*u):null==n?void 0:null===(c=n.subtotal)||void 0===c?void 0:c.displayAmount,labor:p?{label:(null==n?void 0:n.laborText)||nn.l9,quantity:u,price:(0,nt.g)(p),subtotal:(0,nt.g)(p*u)}:null}});return(0,i.BX)(i.HY,{children:[(0,i.tZ)(d.Z,{container:!0,className:e.container,direction:"column",children:(0,i.BX)(H.Z,{"aria-label":"simple table",children:[(0,i.tZ)(j.Z,{children:(0,i.BX)(V.Z,{children:[(0,i.tZ)(Y.Z,{children:(0,i.tZ)(Q.Z,{className:p()(e.headCell,e.text),children:"Product"})}),(0,i.tZ)(Y.Z,{align:"right",children:(0,i.tZ)(Q.Z,{className:p()(e.headCell,e.text),children:"Qty"})}),(0,i.tZ)(Y.Z,{align:"right",children:(0,i.tZ)(Q.Z,{className:p()(e.headCell,e.text),children:"Unit Price"})}),(0,i.tZ)(Y.Z,{align:"right",children:(0,i.tZ)(Q.Z,{className:p()(e.headCell,e.text),children:"Total"})})]})}),(0,i.tZ)(q.Z,{children:l.map(n=>(0,i.BX)(b.Fragment,{children:[(0,i.BX)(V.Z,{children:[(0,i.tZ)(Y.Z,{children:(0,i.BX)(d.Z,{container:!0,direction:"column",children:[(0,i.tZ)(G.Z,{href:n.link.href,target:"_blank",rel:"noopener",className:e.link,children:(0,i.tZ)(Q.Z,{className:e.text,children:n.link.label})}
1),(0,i.BX)("div",{className:p()(e.productCell),children:[(0,i.tZ)(Q.Z,{className:p()(e.headCell,e.text),children:"Options"}),(0,i.tZ)(Q.Z,{className:p()(e.text),children:null==n?void 0:n.options})]})]})}),(0,i.tZ)(Y.Z,{align:"right",children:(0,i.tZ)(Q.Z,{className:p()(e.text),children:null==n?void 0:n.quantity})}),(0,i.tZ)(Y.Z,{align:"right",children:(0,i.tZ)(Q.Z,{className:p()(e.text),children:null==n?void 0:n.price})}),(0,i.tZ)(Y.Z,{align:"right",children:(0,i.tZ)(Q.Z,{className:p()(e.text),children:null==n?void 0:n.subtotal})})]}),n.labor&&(0,i.BX)(V.Z,{children:[(0,i.tZ)(Y.Z,{children:(0,i.tZ)(Q.Z,{className:e.text,children:n.labor.label})}),(0,i.tZ)(Y.Z,{align:"right",children:(0,i.tZ)(Q.Z,{className:p()(e.text),children:n.labor.quantity})}),(0,i.tZ)(Y.Z,{align:"right",children:(0,i.tZ)(Q.Z,{className:p()(e.text),children:n.labor.price})}),(0,i.tZ)(Y.Z,{align:"right",children:(0,i.tZ)(Q.Z,{className:p()(e.text),children:n.labor.subtotal})})]})]},n.id))})]})}),(0,i.tZ)(y.P,{title:"Products",className:e.mobile,children:(0,i.tZ)(d.Z,{container:!0,className:e.responsiveContainer,children:l.map(n=>(0,i.BX)(b.Fragment,{children:[(0,i.BX)("div",{className:e.responsiveRow,children:[(0,i.BX)("div",{className:"",children:[(0,i.tZ)(Q.Z,{className:p()(e.text),children:"Product"}),(0,i.tZ)(G.Z,{href:n.link.href,target:"_blank",rel:"noopener",className:e.link,children:(0,i.tZ)(Q.Z,{className:e.text,children:n.link.label})})]}),(0,i.BX)("div",{className:"",children:[(0,i.tZ)(Q.Z,{className:p()(e.text),children:"Options"}),(0,i.tZ)(Q.Z,{className:p()(e.text),children:null==n?void 0:n.options})]}),(0,i.BX)("div",{className:"",children:[(0,i.tZ)(Q.Z,{className:p()(e.text),children:"Qty"}),(0,i.tZ)(Q.Z,{className:p()(e.text),children:null==n?void 0:n.quantity})]}),(0,i.BX)("div",{className:"",children:[(0,i.tZ)(Q.Z,{className:p()(e.text),children:"Unit Price"}),(0,i.tZ)(Q.Z,{className:p()(e.text),children:null==n?void 0:n.price})]}),(0,i.BX)("div",{className:"",children:[(0,i.tZ)(Q.Z,{className:p()(e.text),children:"Total"}),(0,i.tZ)(Q.Z,{className:p()(e.text),children:null==n?void 0:n.subtotal})]})]}),n.labor&&(0,i.BX)("div",{className:e.responsiveRow,children:[(0,i.BX)("div",{className:"",children:[(0,i.tZ)(Q.Z,{className:p()(e.text),children:"Product"}),(0,i.tZ)(Q.Z,{className:p()(e.text),children:n.labor.label})]}),(0,i.BX)("div",{className:"",children:[(0,i.tZ)(Q.Z,{className:p()(e.text),children:"Qty"}),(0,i.tZ)(Q.Z,{className:p()(e.text),children:n.labor.quantity})]}),(0,i.BX)("div",{className:"",children:[(0,i.tZ)(Q.Z,{className:p()(e.text),children:"Unit Price"}),(0,i.tZ)(Q.Z,{className:p()(e.text),children:n.labor.price})]}),(0,i.BX)("div",{className:"",children:[(0,i.tZ)(Q.Z,{className:p()(e.text),children:"Total"}),(0,i.tZ)(Q.Z,{className:p()(e.text),children:n.labor.subtotal})]})]})]},n.id))})})]})};var na=e(29018);let no=(0,s.Z)(n=>({container:{background:"#FFFFFF",borderRadius:"4px",padding:n.spacing(2)},rows:{paddingTop:n.spacing(2),[n.breakpoints.down(768)]:{paddingTop:n.spacing(1)}},bottomLine:{borderBottom:"1px solid #E5E5E5"},text:{"& *":{fontSize:"16px"}}})),nr=n=>{let{isResidential:t,cost:e}=n,l=no();return(0,i.tZ)(y.P,{title:"Shipping & Handling",children:(0,i.tZ)(d.Z,{container:!0,direction:"column",className:l.rows,children:(0,i.tZ)(x.X,{className:p()(l.bottomLine,l.text),title:t?"Residential/Liftgate Delivery":"Flat Rate Shipping (Commercial address)",value:e})})})},nd=(0,s.Z)(n=>({container:{background:"#FFFFFF",borderRadius:"4px",padding:n.spacing(2)},bottomLine:{borderBottom:"1px solid #E5E5E5"},rows:{paddingTop:n.spacing(2)},text:{"& *":{fontSize:"16px"}}})),ns=n=>{let{items:t=[]}=n,e=nd(),l=null==t?void 0:t.map(n=>(0,i.tZ)(x.X,{className:p()(e.bottomLine,e.text),title:null==n?void 0:n.carrierTitle,value:null==n?void 0:n.track},n._id));return(0,i.tZ)(y.P,{title:"Tracking Information",children:(0,i.tZ)(d.Z,{container:!0,direction:"column",className:e.rows,children:l})})};var nc=e(38896),nu=e(73506),np=e(4668),nm=e(7207),ng=e(88654),nv=e(65008),nh=e(82729),nZ=e(17283);function nb(){let n=(0,nh._)(['\n query orderByReferenceId($id: ID!, $language: String! = "EN", $shopId: ID!, $token: String) {\n order: orderByReferenceId(id: $id, shopId: $shopId, token: $token) {\n _id\n account {\n _id\n name\n }\n cartId\n createdAt\n displayStatus(language: $language)\n email\n dateStatusCompleted\n customFields\n fulfillmentGroups {\n _id\n data {\n ... on ShippingOrderFulfillmentGroupData {\n shippingAddress {\n _id\n address1\n address2\n city\n company\n country\n fullName\n firstName\n lastName\n isCommercial\n isShippingDefault\n phone\n postal\n region\n vin\n miles\n }\n }\n }\n items {\n nodes {\n isCoreReturnNeeded\n payCoreCharge\n _id\n addedAt\n createdAt\n imageURLs {\n large\n medium\n original\n small\n thumbnail\n }\n isTaxable\n optionTitle\n parcel {\n containers\n distanceUnit\
1n height\n length\n massUnit\n weight\n width\n }\n price {\n amount\n currency {\n code\n }\n displayAmount\n }\n productConfiguration {\n productId\n productVariantId\n }\n productSlug\n productType\n typeProduct\n productVendor\n quantity\n shop {\n _id\n }\n subtotal {\n amount\n currency {\n code\n }\n displayAmount\n }\n taxCode\n title\n updatedAt\n variantTitle\n sku\n options\n condition\n laborPrice\n laborText\n originalProduct {\n make {\n _id\n name\n slug\n }\n model {\n _id\n name\n slug\n }\n year\n makeId\n modelId\n vendor\n optionsSlug\n typeProduct\n make {\n _id\n name\n slug\n }\n model {\n _id\n name\n slug\n }\n }\n }\n }\n selectedFulfillmentOption {\n fulfillmentMethod {\n _id\n carrier\n displayName\n fulfillmentTypes\n group\n name\n }\n handlingPrice {\n amount\n currency {\n code\n }\n displayAmount\n }\n price {\n amount\n currency {\n code\n }\n displayAmount\n }\n }\n shop {\n _id\n }\n summary {\n fulfillmentTotal {\n amount\n displayAmount\n }\n itemTotal {\n amount\n displayAmount\n }\n surchargeTotal {\n amount\n displayAmount\n }\n taxTotal {\n amount\n displayAmount\n }\n total {\n amount\n displayAmount\n }\n }\n tracking\n type\n }\n payments {\n _id\n amount {\n displayAmount\n }\n billingAddress {\n address1\n address2\n city\n company\n country\n fullName\n firstName\n lastName\n isCommercial\n phone\n postal\n region\n vin\n miles\n }\n displayName\n method {\n name\n }\n }\n referenceId\n shop {\n _id\n currency {\n code\n }\n }\n status\n summary {\n fulfillmentTotal {\n amount\n displayAmount\n }\n itemTotal {\n amount\n displayAmount\n }\n surchargeTotal {\n amount\n displayAmount\n }\n taxTotal {\n amount\n displayAmount\n }\n total {\n amount\n displayAmount\n }\n }\n totalItemQuantity\n updatedAt\n tracks {\n _id\n track\n carrierTitle\n carrierURL\n }\n warranty {\n _id\n status\n }\n activateWarranty {\n _id\n status\n }\n coreReturn {\n _id\n status\n }\n signature {\n path\n isSignature\n }\n }\n }\n']);return nb=function(){return n},n}let nf=(0,nZ.ZP)(nb());var ny=e(56497),nx=e(72669),nN=e(65308),nk=e(60230),nB=e(15013),nC=e(96234);let nw=n=>{let t=["In Progress","Pending inspection","Pending tracking","Order shipped"];switch(n){case"hold":t.splice(0,1,"Hold");break;case"canceled":t.splice(0,1,"Canceled");break;case"defectiveDamaged":t.splice(3,0,"Defective/Damaged");break;case"warrantyUnit":t.splice(3,0,"Warranty Unit")}return t};var nF=e(48996),nS=e(20334),n_=e(63898),nT=e(65299),nR=e(71762),nX=e(5010),nP=e(17746),nD=e(31328),nI=e(97551),nA=e(80803);let nL=(0,s.Z)(n=>({topBar:{background:"#FFFFFF",borderRadius:"4px",paddingLeft:n.spacing(2),paddingRight:n.spacing(2),marginBottom:n.spacing(3),position:"relative",[n.breakpoints.down(768)]:{marginBottom:n.spacing(3),padding:10},[n.breakpoints.down(700)]:{paddingTop:5,paddingLeft:n.spacing(1),display:"flex",flexDirection:"column",alignItems:"flex-start"}},dropDownButton:{[n.breakpoints.down(700)]:{position:"absolute",top:0,right:0}},topBarLeft:{paddingTop:n.spacing(1.5),paddingBottom:n.spacing(1.5),paddingRight:n.spacing(2),paddingLeft:n.spacing(1)},block:{width:"100%",maxWidth:"816px",paddingRight:n.spacing(2),paddingBottom:n.spacing(2)},table:{width:"100%"},grid:{display:"grid",gridGap:"".concat(n.spacing(2),"px"),gridTemplateColumns:"repeat(auto-fill, minmax(600px, 1fr))",paddingBottom:n.spacing(2),[n.breakpoints.down(870)]:{gridTemplateColumns:"repeat(auto-fill, minmax(100%, 1fr))"}},chip:{background:"#FFFFFF",paddingLeft:n.spacing(.5),paddingRight:n.spacing(.5)},chipWrap:{display:"flex",alignItems:"center",paddingRight:n.spacing(.5),borderRight:"1px solid #F5F5F5",marginRight:n.spacing(.5)},orderSteps:{marginBottom:n.spacing(4),[n.breakpoints.down(768)]:{display:"flex",flexDirection:"row",justifyContent:"center",marginBottom:n.spacing(2)}},dropDownMenu:{borderLeft:"1px solid #F5F5F5"},link:{cursor:"pointer"},breadcrumbs:{backgroundColor:"transparent",borderBottom:"none"}})),nW=(0,nC.a)();function nE(){var n,t,e,s,u,g,y,x,N,k,T,R,X,P,D,I,L,E;let M=nL(),{query:{orderId:O}}=(0,h.useRouter)(),{enqueueSnackbar:z,closeSnackbar:U}=(0,Z.Ds)(),[G,H]=b.useState(!1),[q,Y]=b.useState(!1),[j,V]=b.useState(!1),[Q,{loading:K}]=(0,l.D)(ng.L),[J,{loading:nn}]=(0,l.D)(nv.f),[nt,{loading:ne}]=(0,l.D)(nm.e),{data:ni,loading:no,refetch:nd}=(0,a.a)(nf,{variables:{id:O,shopId:nW},skip:!O}),nh=null==ni?void 0:ni.order,nZ=null==nh?void 0:null===(n=nh.fulfillmentGroups)||void 0===n?void 0:null===(t=n[0])||void 0===t?void 0:null===(e=t.data)||void 0===e?void 0:e.shippingAddress,nb=null==nh?void 0:null===(s=nh.payments)||void 0===s?void 0:null===(u=s[0])||void 0===u?void 0:u.billingAddress,nC=null==nh?void 0:null===(g=nh.fulfillmentGroups)||void 0===g?void 0:null===(y=g[0])||void 0===y?void 0:null===(x=y.items)||void 0===x?void 0:x.nodes,nE=null==nh?void 0:null===(N=nh.fulfillmentGroups)||void 0===N?void 0:null===(k=N[0])||void 0===k?void 0:k.selectedFulfillmentOption,nM=null==nh?void 0:nh.tracks,[nO,nz]=b.useState(""),[nU,n$]=b.useState((0,nx.$)((0,nD.M)(nZ))),nG=(0,nB.o)(nP._,null==nh?void 0:nh.status,{step:1}).step,nH=nw(null==nh?void 0:nh.status),nq=b.useMemo(()=>{var n,t;return{orderPlaced:v()(null==nh?void 0:nh.createdAt,"MMM D, YYYY HH:mm a "),price:null==nh?void 0:null===(n=nh.summary)||void 0===n?void 0:null===(t=n.total)||void 0===t?void 0:t.displayAmount,orderId:null==nh?void 0:nh.referenceId}},[nh]),nY=b.useCallback(n=>{((null==n?void 0:n.type)!=="keydown"||(null==n?void 0:n.key)!=="Tab"&&(null==n?void 0:n.key)!=="Shift")&&nz("")},[nz]),nj=b.useCallback(()=>{nz("")},[nz]),nV=b.useMemo(()=>(null==nh?void 0:nh.fulfillmentGroups)||[],[null==nh?void 0:nh.fulfillmentGroups]),nQ=null==nh?void 0:nh.dateStatusCompleted,nK=(0,m.differenceInDays)(Date.now(),nQ),nJ=nK>=30,n0=!(0,nS.M)(nh),n1=b.useMemo(()=>{var n,t,e,i;return!(0,nT.V)(nh)||(null==nh?void 0:nh.coreReturn)&&(null==nh?void 0:null===(n=nh.coreReturn)||void 0===n?void 0:n.status)!=="needed"||!(null==nh?void 0:nh.coreReturn)&&!(null===(t=null==nV?void 0:null===(e=nV[0])||void 0===e?void 0:null===(i=e.items)||void 0===i?void 0:i.nodes)||void 0===t?void 0:t.some(n=>{var t;return(null===(t=n.condition)||void 0===t?void 0:t.toLowerCase())==="remanufactured"||n.isCoreReturnNeeded}))||n0},[nh,n0,nV]),n2=(0,nT.V)(nh)&&nJ&&(0,nX.V)(null==nh?void 0:nh.coreReturn),n5=(0,nT.V)(nh)&&nJ&&!(0,nR.N)(null==nh?void 0:nh.coreReturn),n8=(null==nh?void 0:null===(T=nh.activateWarranty)||void 0===T?void 0:T.status)==="activated"||(null==nh?void 0:null===(R=nh.activateWarranty)||void 0===R?void 0:R.status)==="limitedActivation"||(null==nh?void 0:null===(X=nh.activateWarranty)||void 0===X?void 0:X.status)==="delayedActivation",n6=n0||n8||n2,n7=!!(null==nh?void 0:nh.warranty)&&(null==nh?void 0:null===(P=nh.warranty)||void 0===P?void 0:P.status)!=="closed",n3=n7||n0||n5,n9=n7||n0||n8,n4=(0,nF.Y)(nV),tn=b.useCallback(()=>{H(!0),nz("coreReturn")},[]),tt=b.useMemo(()=>[{label:"Activate Warranty",cb:()=>{nz("activateWarranty")},disabled:n6},{label:"Warranty Claim",cb:()=>nz("warrantyClaim"),disabled:n3,tooltip:(0,i.tZ)(nc.Pu,{inTooltip:!0})},{label:"Core Return",cb:tn,disabled:n1},{label:nc.Sc,cb:()=>nz("defectiveDamagedClaim"),disabled:n9,tooltip:(0,i.tZ)(nc.iN,{inTooltip:!0})}],[n6,n3,n1,n9,tn]),te=b.useMemo(()=>{let n=[{label:"Order: ",value:(0,nB.o)(nP._,null==nh?void 0:nh.status,{title:"Unknown"}).title,state:(0,nB.o)(nP._,null==nh?void 0:nh.status,{state:"success"}).state,cb:()=>{},disabled:!0}];if((null==nh?void 0:nh.status)==="orderCompleted"||(null==nh?void 0:nh.status)==="noWarranty"){var t,e,l,a,o;(null==nh?void 0:nh.coreReturn)&&n.push({label:"Core return: ",value:(0,nB.o)(nk.k,null==nh?void 0:null===(e=nh.coreReturn)||void 0===e?void 0:e.status,{title:"Unknown"}).title,state:(0,nB.o)(nk.k,null==nh?void 0:null===(l=nh.coreReturn)||void 0===l?void 0:l.status,{state:"success"}).state,cb:()=>{n1||nz("coreReturn")},disabled:n1}),(null==nh?void 0:nh.status)!=="orderCompleted"||(null==nh?void 0:nh.activateWarranty)&&(null==nh?void 0:null===(t=nh.activateWarranty)||void 0===t?void 0:t.status)!=="noActivate"||n.push({label:"Warranty ",value:"Activation needed",state:"error",cb:()=>{n6||nz("activateWarranty")},disabled:n6}),(null==nh?void 0:nh.warranty)&&n.push({label:"Warranty: ",value:(0,nB.o)(nA.D,null==nh?void 0:null===(a=nh.warranty)||void 0===a?void 0:a.status,{title:"Unknown"}).title,state:(0,nB.o)(nA.D,null==nh?void 0:null===(o=nh.warranty)||void 0===o?void 0:o.status,{state:"success"}).state,cb:()=>{},disabled:!0})}return n.map(n=>
1(0,i.tZ)("div",{"aria-hidden":!0,className:p()(M.chipWrap,{[M.link]:!n.disabled}),onClick:n.cb,children:(0,i.tZ)(S.A,{className:M.chip,label:n.label,value:n.value,state:n.state})},n.label))},[nh,M,n1,n6]),ti=b.useCallback(async n=>{let t=(0,nN.o)(n,nh._id,nh.account._id);(0,n_.E)(n)||Y(!0);try{await Q({variables:t}),(0,np.$)(z,U,{message:"Core return submitted"}),nz(""),n$({contactsCity:"",contactsState:"",contactsZip:"",contactsStreet:"",coreCity:"",coreState:"",coreZip:"",coreStreet:""}),nd()}catch(n){(0,np.$)(z,U,{message:null==n?void 0:n.message,variant:"error"})}},[nh,Q,U,nd,z]),tl=b.useCallback(async function(n){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],e=(0,nI.h)(n,nh._id,nh.account._id,t);try{await J({variables:e}),V(!0),(0,np.$)(z,U,{message:t?"Shipping damage claim submitted":"Warranty claim submitted"}),nz(""),nd()}catch(n){(0,np.$)(z,U,{message:null==n?void 0:n.message,variant:"error"})}},[nh,J,U,nd,z]),ta=b.useCallback(n=>tl(n,!0),[tl]),to=b.useCallback(async n=>{let t=(0,ny.u)(n,nh._id,nh.account._id);try{await nt({variables:t}),(0,np.$)(z,U,{message:"Warranty activation submitted"}),nz(""),nd()}catch(n){(0,np.$)(z,U,{message:null==n?void 0:n.message,variant:"error"})}},[nh,nt,U,nd,z]);return(0,i.tZ)(na.U,{children:null===nh?(0,i.tZ)(d.Z,{container:!0,justifyContent:"center",alignItems:"center",children:"Order not found"}):(0,i.BX)(i.HY,{children:[(0,i.tZ)(r.ZP,{anchor:"right",open:"warrantyClaim"===nO,onClose:nY,children:(0,i.tZ)(nc.bH,{order:nh,onCancel:nj,onSubmit:tl,loading:nn,typeProductOrder:n4})}),(0,i.tZ)(r.ZP,{anchor:"right",open:"defectiveDamagedClaim"===nO,onClose:nY,children:(0,i.tZ)(nc.bH,{title:nc.Sc,order:nh,isDamage:!0,onCancel:nj,onSubmit:ta,loading:nn,typeProductOrder:n4})}),(0,i.tZ)(r.ZP,{anchor:"right",open:"coreReturn"===nO,onClose:nY,children:(0,i.tZ)(_.p,{orderId:null==nh?void 0:nh.referenceId,state:nU,setState:n$,onCancel:nj,onSubmit:ti,loading:K})}),(0,i.tZ)(r.ZP,{anchor:"right",open:"activateWarranty"===nO,onClose:nY,children:(0,i.tZ)(f.K,{order:nh,onCancel:nj,onSubmit:to,loading:ne})}),(0,i.BX)(d.Z,{item:!0,container:!0,justifyContent:"space-between",className:M.topBar,alignItems:"center",children:[(0,i.tZ)(d.Z,{item:!0,className:M.topBarLeft,children:(0,i.tZ)(F.O,{className:M.breadcrumbs})}),(0,i.tZ)(d.Z,{item:!0,children:(0,i.BX)(d.Z,{container:!0,children:[te,(null==nh?void 0:null===(D=nh.signature)||void 0===D?void 0:D.isSignature)&&(0,i.tZ)(A,{items:tt,icon:c.Z,className:M.dropDownButton,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}})]})})]}),(0,i.tZ)(d.Z,{item:!0,className:M.orderSteps,children:(0,i.tZ)($,{activeStep:nG,steps:nH,warning:["hold"].includes(null==nh?void 0:nh.status),error:["canceled"].includes(null==nh?void 0:nh.status)})}),no?(0,i.tZ)(d.Z,{container:!0,justifyContent:"center",children:(0,i.tZ)(o.Z,{})}):(0,i.BX)(i.HY,{children:[(0,i.BX)("div",{className:M.grid,children:[(0,i.tZ)(W,{...nq}),(0,i.tZ)(ns,{items:nM}),(0,i.tZ)(B,{data:nZ,title:"Shipping Address"}),(0,i.tZ)(B,{data:nb,title:"Billing Address"}),nE&&(0,i.tZ)(nr,{isResidential:nh.customFields.isResidential,cost:null==nV?void 0:null===(I=nV[0])||void 0===I?void 0:null===(L=I.summary)||void 0===L?void 0:null===(E=L.fulfillmentTotal)||void 0===E?void 0:E.displayAmount})," "]}),!!(null==nC?void 0:nC.length)&&(0,i.tZ)(nl,{items:nC})]}),G&&(0,i.tZ)(C.V,{onClose:()=>H(!1)}),q&&(0,i.tZ)(w.n,{onClose:()=>Y(!1)}),j&&(0,i.tZ)(nu.Q,{onClose:()=>V(!1)})]})})}}},function(n){n.O(0,[9803,2580,4231,7333,3069,3654,9052,8311,2743,1989,9774,2888,179],function(){return n(n.s=57139)}),_N_E=n.O()}]);
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.