1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2097],{30412:function(e,s,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/fasnet/returns/[invoiceno]/[lotno]",function(){return t(94153)}])},65035:function(e,s,t){"use strict";var i=t(85893);t(67294);var n=t(41664),a=t.n(n);s.Z=e=>(0,i.jsx)("div",{className:"column is-12-tablet is-12-desktop branches-table is-centered",children:(0,i.jsx)(a(),{legacyBehavior:!0,prefetch:!1,href:"/",children:(0,i.jsx)("div",{className:"button is-large is-fullwidth",title:"Sign into FasNet",children:"Authorization required - Click here to Sign In"})})})},9731:function(e,s,t){"use strict";var i=t(82729),n=t(85893);t(67294);var a=t(99603),l=t(14141),r=t(49206);function c(){let e=(0,i._)(["\n box-shadow: ",";\n color: ","!important;\n &:hover {\n color: ","!important;\n background-color: ","!important;\n }\n\n span.busy {\n color: ","!important;\n }\n"]);return c=function(){return e},e}let o=l.ZP.div(c(),r.q.grey,r.O9.blue,r.O9.white,r.O9.blue,r.O9.blue);s.Z=e=>(0,n.jsxs)(o,{className:e.isBusy?"button is-link is-block is-medium is-loading is-rounded":"button is-link is-block is-medium is-light is-outlined is-rounded",title:e.title,onClick:e.disabled?null:e.clickHandler,disabled:e.disabled&&!e.isBusy,style:{backgroundColor:e.backgroundColor?e.backgroundColor:r.O9.blueTransparent},children:[e.icon&&(0,n.jsx)(a.G,{icon:e.icon}),(0,n.jsx)("span",{className:e.isBusy?"busy":"",children:e.title.toUpperCase()})]})},37227:function(e,s,t){"use strict";var i=t(82729),n=t(85893),a=t(14141),l=t(49206);function r(){let e=(0,i._)(["\n .progress.is-info:indeterminate {\n background-image: linear-gradient(to right, "," 30%,#ededed 30%);\n }\n .please-wait-prompt{\n color: ","; \n }\n}\n"]);return r=function(){return e},e}t(67294);let c=a.ZP.div(r(),l.O9.blueTransparent,l.O9.blue);s.Z=e=>(0,n.jsx)(n.Fragment,{children:e.isVisible&&(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(c,{children:(0,n.jsx)("progress",{className:"progress is-small is-info mb-3",max:"100",children:"60%"})})})})},65189:function(e,s,t){"use strict";var i=t(85893);t(67294),s.Z=e=>(0,i.jsxs)(i.Fragment,{children:[e.pageTitleHtml&&(0,i.jsx)("div",{className:"title is-2 has-text-centered has-text-weight-bold is-uppercase",dangerouslySetInnerHTML:{__html:e.pageTitleHtml}}),e.pageSubTitleHtml&&(0,i.jsx)("div",{className:"title subtitle is-4 has-text-centered has-text-weight-medium",dangerouslySetInnerHTML:{__html:e.pageSubTitleHtml}})]})},94153:function(e,s,t){"use strict";t.r(s);var i=t(82729),n=t(85893),a=t(47839),l=t(67294),r=t(96545),c=t(56064),o=t(18554),d=t(65189),u=t(11163),h=t(14141),m=t(49206),x=t(65035),v=t(37227),g=t(9731),p=t(45908),N=t(94948),j=t(92077),f=t.n(j);function b(){let e=(0,i._)(["\n .section {\n border-bottom: 1px solid "," !important;\n }\n"]);return b=function(){return e},e}let y=h.ZP.div(b(),m.O9.grey);s.default=(0,c.$j)(e=>({isLoading:e.user.isLoading,userFirstName:e.user.customerUserData.firstName,userLastName:e.user.customerUserData.lastName}),e=>({setLoading:s=>{e((0,r.Ay)(s))}}))(e=>{var s,t,i,r,c,h,j,b,k,w,R,S,C,I,z;let[L,_]=(0,l.useState)("findReturns"),[O,q]=(0,l.useState)(!1),[T,F]=(0,l.useState)(!1),[P,B]=(0,l.useState)(!1),[E,Z]=(0,l.useState)(!1),[Q,A]=(0,l.useState)(!1),[H,U]=(0,l.useState)(!0),[V,Y]=(0,l.useState)(!1),[G,M]=(0,l.useState)(""),[D,X]=(0,l.useState)({}),[$,J]=(0,l.useState)(0),[K,W]=(0,l.useState)(0),[ee,es]=(0,l.useState)(0),[et,ei]=(0,l.useState)(0),[en,ea]=(0,l.useState)(""),[el,er]=(0,l.useState)(""),[ec,eo]=(0,l.useState)(""),[ed,eu]=(0,l.useState)(""),[eh,em]=(0,l.useState)(""),[ex,ev]=(0,l.useState)(!1),[eg,ep]=(0,l.useState)(""),eN=(0,l.useRef)(!1),ej=(0,u.useRouter)(),ef=null==ej?void 0:null===(s=ej.query)||void 0===s?void 0:s.invoiceno,eb=null==ej?void 0:null===(t=ej.query)||void 0===t?void 0:t.lotno,ey={lineHeight:"2.5rem"},ek=async()=>{var s;A(!0);let t={};t.invoiceNoSo=ef,t.lot=eb,t.note70=ed,t.note70_2=eh,t.returnInd=en,t.replacement=el,t.originalPack=ec,t.returnCtns=$,t.qtyBreak1=null==D?void 0:null===(s=D.returnInfo)||void 0===s?void 0:s.qtyBreak1,t.returnOddCtnQty=ee;let[i]=await Promise.all([(0,p.wt)(N.ZP.V1_API_CUSTOMER_RETURNS_UPDATE,e.token,"post",null,t)]);eN.current&&"Token not found"!==i.error&&("success"===i.status&&""!==i.raNo?(_("returnRequestBeingProcessed"),ep(i.raNo)):"insufficientStockLeftUnreturned"===i.status&&B(!0)),A(!1)},ew=async e=>{ea(e)},eR=async e=>{er(e)},eS=async e=>{eo(e)},eC=async e=>{eu(e)},eI=async e=>{em(e)},ez=async()=>{var e,s,t;F(!1),q(!1);let i=0;if(G.length>0&&(i=parseInt(G)),J(i),i>parseInt(null==D?void 0:null===(e=D.returnInfo)||void 0===e?void 0:e.availReturnFullCtns)){F(!0);return}if(0===i&&!V){q(!0);return}let n=parseFloat((0,p.vd)(i*parseFloat(null==D?void 0:null===(s=D.returnInfo)||void 0===s?void 0:s.qtyBreak1),3));ei(n);let a=0;V&&es(a=parseFloat(null==D?void 0:null===(t=D.returnInfo)||void 0===t?void 0:t.availReturnOddCtnQty)),W(n+a),_("returnsVerified")};return(0,l.useEffect)(()=>{ed.length>0&&""!==ec&&""!==el&&""!==en?ev(!0):ev(!1)},[ed,ec,el,en]),(0,l.useEffect)(()=>(eN.current=!0,(async()=>{let[s]=await Promise.all([(0,p.wt)("".concat(N.ZP.V1_API_CUSTOMER_RETURNS_INFO).concat(ef,"/").concat(eb),e.token)]);eN.current&&"Token not found"!==s.error&&(X(s),Z(!0))})(),()=>{eN.current=!1}
1),[]),(0,n.jsxs)(a.Z,{...e,topBanner:!1,children:[(0,n.jsx)(o.i,{content:"FASNET⢠Return Authorization"}),(0,n.jsxs)(y,{className:"main-page-container container pt-5",children:[(0,n.jsx)(d.Z,{pageTitleHtml:"FASNET⢠Return Authorization",pageSubTitleHtml:"Hello ".concat(e.userFirstName)}),null===e.token&&(0,n.jsx)(x.Z,{}),(0,n.jsx)(v.Z,{isVisible:!E&&e.token}),E&&(0,n.jsxs)("div",{children:[(null==D?void 0:D.status)==="lotNotFound"&&(0,n.jsx)("div",{className:"column is-12-tablet is-12-desktop branches-table",children:(0,n.jsx)("h4",{className:"is-4 is-uppercase has-text-centered has-text-weight-bold is-size-5 has-text-danger",children:"Lot information could not be found for this shipment"})}),O&&(0,n.jsx)("div",{className:"column is-12-tablet is-12-desktop branches-table",children:(0,n.jsx)("h4",{className:"is-4 is-uppercase has-text-centered has-text-weight-bold is-size-5 has-text-danger",children:"*Please enter a full carton quantity or odd carton to return"})}),T&&(0,n.jsx)("div",{className:"column is-12-tablet is-12-desktop branches-table",children:(0,n.jsx)("h4",{className:"is-4 is-uppercase has-text-centered has-text-weight-bold is-size-5 has-text-danger",children:"*Return quantity cannot exceed the number shipped or not returned"})}),(null==D?void 0:D.status)==="success"&&(null==D?void 0:null===(i=D.returnInfo)||void 0===i?void 0:i.qtyNotReturned)===0&&(0,n.jsx)("div",{className:"column is-12-tablet is-12-desktop branches-table",children:(0,n.jsx)("h4",{className:"is-4 is-uppercase has-text-centered has-text-weight-bold is-size-5 has-text-danger",children:"*All material for this lot has previously been returned"})}),"returnsVerified"===L&&!0===P&&(0,n.jsxs)("div",{className:"column is-12-tablet is-12-desktop branches-table",children:[(0,n.jsx)("h4",{className:"is-4 is-uppercase has-text-centered is-size-5 has-text-danger",children:"*There is not enough stock left unreturned to complete this return request"}),(0,n.jsx)("h4",{className:"is-4 is-uppercase has-text-centered is-size-5 has-text-danger",children:"Please go back on your browser to make correction"})]}),"returnRequestBeingProcessed"===L&&(0,n.jsxs)("div",{className:"column is-12-tablet is-12-desktop branches-table",children:[(0,n.jsx)("h4",{className:"is-4 is-uppercase has-text-centered is-size-5",children:"Your request is being processed"}),(0,n.jsx)("h4",{className:"is-4 is-uppercase has-text-centered is-size-5",children:"A Return Authorization and/or Credit Memo will be faxed within 48 hours"}),(0,n.jsxs)("h4",{className:"is-4 is-uppercase has-text-centered has-text-weight-bold is-size-5",children:["Reference #: ",(0,n.jsx)("span",{className:"has-text-weight-bold",children:eg})]})]}),(null==D?void 0:D.status)==="success"&&"findReturns"===L&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"columns is-justify-content-space-between is-align-items-center is-size-5 py-0",children:(0,n.jsx)("div",{className:"column is-full has-text-centered has-text-weight-light pb-0",style:{borderBottom:"1px solid ".concat(m.O9.greyLighter)},children:"Shipped Lot Information"})}),(0,n.jsxs)("div",{className:"columns is-justify-content-space-between is-align-items-center is-size-5 py-0",children:[(0,n.jsxs)("div",{className:"column is-align-items-center has-text-centered",children:["Lot No/Sfx",(0,n.jsx)("div",{className:"has-text-weight-normal",style:ey,children:"".concat(null==eb?void 0:eb.substring(0,3),"-").concat(null==eb?void 0:eb.substring(3,6),"-").concat(null==eb?void 0:eb.substring(6,8)," ").concat(null==eb?void 0:eb.substring(8,10))})]}),(0,n.jsxs)("div",{className:"column is-align-items-center has-text-centered",children:["Item No",(0,n.jsx)("div",{className:"has-text-weight-normal",style:ey,children:null==D?void 0:null===(r=D.returnInfo)||void 0===r?void 0:r.itemNo})]}),(0,n.jsxs)("div",{className:"column is-align-items-center has-text-centered",children:["Original Ship Qty",(0,n.jsx)("div",{className:"has-text-weight-normal",style:ey,children:f()(null==D?void 0:null===(c=D.returnInfo)||void 0===c?void 0:c.shipQty).format("0.000")})]}),(0,n.jsxs)("div",{className:"column is-align-items-center has-text-centered",children:["Original Odd Qty",(0,n.jsx)("div",{className:"has-text-weight-normal",style:ey,children:f()(null==D?void 0:null===(h=D.returnInfo)||void 0===h?void 0:h.shipOddCartonQty).format("0.000")})]}),(0,n.jsxs)("div",{className:"column is-align-items-center has-text-centered",children:["Qty Not Returned",(0,n.jsx)("div",{className:"has-text-weight-bold",style:ey,children:f()(null==D?void 0:null===(j=D.returnInfo)||void 0===j?void 0:j.qtyNotReturned).format("0.000")})]})]}),(null==D?void 0:null===(b=D.returnInfo)||void 0===b?void 0:b.qtyNotReturned)>0&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"columns is-justify-content-space-between is-align-items-center is-size-5 py-0 mt-3",children:(0,n.jsx)("div",{className:"column is-full has-text-centered has-text-weight-light pb-0",style:{borderBottom:"1px solid ".concat(m.O9.greyLighter)},children:"Received Lot Information"})}),(0,n.jsxs)("div",{className:"columns is-justify-content-space-between is-align-items-center is-size-5",children:[(0,n.jsxs)("div",{className:"column is-align-items-center has-text-centered",children:["Lot No/Sfx",(0,n.jsx)("div",{className:"has-text-weight-normal",style:ey,children:"".concat(null==eb?void 0:eb.substring(0,3),"-").concat(null==eb?void 0:eb.substring(3,6),"-").concat(null==eb?void 0:eb.substring(6,8)," ").concat(null==eb?void 0:eb.substring(8,10))})]}),(0,n.jsxs)("div",{className:"column is-align-items-center has-text-centered",children:["Item No",(0,n.jsx)("div",{className:"has-text-weight-normal",style:ey,children:null==D?void 0:null===(k=D.returnInfo)||void 0===k?void 0:k.itemNo})]}),(0,n.jsxs)("div",{className:"column is-align-items-center has-text-centered",children:["Return Full Ctns",(0,n.jsxs)("div",{className:"has-text-weight-normal px-6",style:ey,children:[(null==D?void 0:null===(w=D.returnInfo)||void 0===w?void 0:w.availReturnFullCtns)>0&&(0,n.jsx)("input",{disabled:!!e.isLoading,className:"input",type:"text",size:"10",maxLength:"10",value:G,onChange:e=>{M(e.target.value.toString().trimStart().toUpperCase())}}),(null==D?void 0:null===(R=D.returnInfo)||void 0===R?void 0:R.availReturnFullCtns)===0&&"N/A"]})]}),(0,n.jsxs)("div",{className:"column is-align-items-center has-text-centered",children:["Carton Qty",(0,n.jsx)("div",{className:"has-text-weight-normal",style:ey,children:f()(null==D?void 0:null===(S=D.returnInfo)||void 0===S?void 0:S.qtyBreak1).format("0.000")})]}),(0,n.jsxs)("div",{className:"column is-align-items-center has-text-centered",children:["Return Odd Qty?",(0,n.jsxs)("div",{className:"has-text-weight-normal px-6",style:ey,children:[(null==D?void 0:null===(C=D.returnInfo)||void 0===C?void 0:C.availReturnOddCtnQty)>0&&(0,n.jsx)("input",{disabled:!!e.isLoading,className:"checkbox",type:"checkbox",checked:V,onChange:()=>{V?Y(!1):Y(!0)}}),(null==D?void 0:null===(I=D.returnInfo)||void 0===I?void 0:I.availReturnOddCtnQty)===0&&"No"]})]})]})]}),(0,n.jsx)("div",{className:"column is-full has-text-centered",children:(0,n.jsx)("div",{className:"columns is-multiline is-center is-centered",children:(0,n.jsx)("div",{className:"column is-5",children:(0,n.jsx)(g.Z,{title:"Verify",clickHandler:ez,disabled:!H})})})}),(0,n.jsx)("div",{className:"column is-full has-text-left has-text-weight-normal is-size-6 mt-3",children:"If the lot sent is the same one received and is correctly listed above, enter the number of full cartons to return and whether or not vou are returning the odd carton It applicable.if the lot listed above is not the lot vou received. enter the lot vou actually received and press Verify without entering the cartons"})]}),(null==D?void 0:D.status)==="success"&&"returnsVerified"===L&&!P&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"columns is-justify-content-space-between is-align-items-center is-size-5 py-0",children:(0,n.jsx)("div",{className:"column is-full has-text-centered has-text-weight-light pb-0",style:{borderBottom:"1px solid ".concat(m.O9.greyLighter)},children:"Return Information Entry"})}),(0,n.jsxs)("div",{className:"columns is-multiline has-text-weight-normal is-size-5 pt-3",children:[(0,n.jsx)("div",{className:"column is-half has-text-right",children:"Return Full Cartons:"}),(0,n.jsx)("div",{className:"column is-half has-text-left",children:"".concat($," @ ").concat(f()(null==D?void 0:null===(z=D.returnInfo)||void 0===z?void 0:z.qtyBreak1).format("0.000"))}),(0,n.jsx)("div",{className:"column is-half has-text-right",children:"Return Full Carton Qty:"}),(0,n.jsx)("div",{className:"column is-half has-text-left",children:f()(et).format("0.000")}),(0,n.jsx)("div",{className:"column is-half has-text-right",children:"Return Odd Qty:"}),(0,n.jsx)("div",{className:"column is-half has-text-left",children:f()(ee).format("0.000")}),(0,n.jsx)("div",{className:"column is-half has-text-right has-text-weight-bold",children:"Total Return Qty:"}),(0,n.jsx)("div",{className:"column is-half has-text-left has-text-weight-bold",children:f()(K).format("0.000")}),(0,n.jsx)("div",{className:"column is-8 is-offset-2 pb-0 mb-0",children:(0,n.jsxs)("div",{className:"field",children:[(0,n.jsxs)("label",{className:"label title is-5 has-text-weight-light pt-3",children:["Reason for Return/Credit:\xa0",(0,n.jsx)("span",{className:"has-text-danger",children:"(required)"})]}),(0,n.jsx)("div",{className:"control",children:(0,n.jsx)("input",{disabled:!!e.isLoading,className:"input",size:"70",maxLength:"70",type:"text",value:ed,onChange:e=>{eC(e.target.value.toString().replace(/[^a-z0-9,. ]/gi,""))}})})]})}),(0,n.jsx)("div",{className:"column is-2"}),(0,n.jsx)("div",{className:"column is-8 is-offset-2 pt-3 mt-0",children:(0,n.jsx)("div",{className:"field",children:(0,n.jsx)("div",{className:"control",children:(0,n.jsx)("input",{disabled:!!e.isLoading,className:"input",size:"70",maxLength:"70",type:"text",value:eh,onChange:e=>{eI(e.target.value.toString().replace(/[^a-z0-9,. ]/gi,""))}})})})}),(0,n.jsx)("div",{className:"column is-2"}),(0,n.jsx)("div",{className:"column is-10 is-offset-2",children:(0,n.jsx)("div",{className:"field",children:(0,n.jsxs)("div",{className:"control is-size-5",onChange:e=>{ew(e.target.value).then(e=>{})},children:[(0,n.jsxs)("label",{className:"label title is-5 has-text-weight-light pt-3",children:["Do you need to:\xa0",(0,n.jsx)("span",{className:"has-text-danger",children:"(required)"})]}),(0,n.jsx)("input",{disabled:!!e.isLoading,type:"radio",name:"returnIndRadioGrp",value:"Y",checked:"Y"===en,onChange:e=>{}}),"\xa0",(0,n.jsx)("span",{children:"Return Material(s)"}),(0,n.jsxs)("label",{className:"radio pl-3",children:[(0,n.jsx)("input",{disabled:!!e.isLoading,type:"radio",name:"returnIndRadioGrp",value:"N",checked:"N"===en,onChange:e=>{}}),"\xa0",(0,n.jsx)("span",{children:"Request Credit"})]})]})})}),(0,n.jsx)("div",{className:"column is-10 is-offset-2",children:(0,n.jsx)("div",{className:"field",children:(0,n.jsxs)("div",{className:"control is-size-5",onChange:e=>{eR(e.target.value).then(e=>{})},children:[(0,n.jsxs)("label",{className:"label title is-5 has-text-weight-light pt-3",children:["Do you need a replacement order?\xa0",(0,n.jsx)("span",{className:"has-text-danger",children:"(required)"})]}),(0,n.jsx)("input",{disabled:!!e.isLoading,type:"radio",name:"replacementRadioGrp",value:"Y",checked:"Y"===el,onChange:e=>{}}),"\xa0",(0,n.jsx)("span",{children:"Yes"}),(0,n.jsxs)("label",{className:"radio pl-3",children:[(0,n.jsx)("input",{disabled:!!e.isLoading,type:"radio",name:"replacementRadioGrp",value:"N",checked:"N"===el,onChange:e=>{}}),"\xa0",(0,n.jsx)("span",{children:"No"})]})]})})}),(0,n.jsx)("div",{className:"column is-10 is-offset-2",children:(0,n.jsx)("div",{className:"field",children:(0,n.jsxs)("div",{className:"control is-size-5",onChange:e=>{eS(e.target.value).then(e=>{})},children:[(0,n.jsxs)("label",{className:"label title is-5 has-text-weight-light pt-3",children:["Is the stock still in its original packing?\xa0",(0,n.jsx)("span",{className:"has-text-danger",children:"(required)"})]}),(0,n.jsx)("input",{disabled:!!e.isLoading,type:"radio",name:"originalPackingRadioGrp",value:"Y",checked:"Y"===ec,onChange:e=>{}}),"\xa0",(0,n.jsx)("span",{children:"Yes"}),(0,n.jsxs)("label",{className:"radio pl-3",children:[(0,n.jsx)("input",{disabled:!!e.isLoading,type:"radio",name:"originalPackingRadioGrp",value:"N",checked:"N"===ec,onChange:e=>{}}),"\xa0",(0,n.jsx)("span",{children:"No"})]})]})})})]}),(0,n.jsx)("div",{className:"column is-full has-text-centered",children:(0,n.jsx)("div",{className:"columns is-multiline is-center is-centered",children:(0,n.jsx)("div",{className:"column is-5",children:(0,n.jsx)(g.Z,{title:"Update",isBusy:Q,clickHandler:ek,disabled:!ex})})})})]})]})]})]})})}},function(e){e.O(0,[4976,3662,9603,1664,1162,2077,4644,2888,9774,179],function(){return e(e.s=30412)}),_N_E=e.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.