PageSourceSearch

https://www.jaypore.com/_next/static/chunks/9332.b1041930710de703.js

js jaypore.com collected 2026-09-26 00:39:02 UTC 24,101 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9332],{89332:(e,r,s)=>{"use strict";s.r(r),s.d(r,{Orders:()=>T,default:()=>E});var l=s(95155),t=s(12115),n=s(90073),a=s(64647),i=s(3683),d=s(70999),o=s(13664),c=s(50355),u=s(34782),h=s(5826),m=s(19102),p=s(66088),_=s(36117),v=s.n(_),x=s(62649),j=s(78673),g=s(86921),N=s(13912),I=s(49647),b=s(93810),C=s(49469),D=s(24545),f=s(6857),S=s(85340),A=s(62049),O=s(91460),k=s.n(O),w=s(3551),y=s(75632);let M=(e,r)=>(0,x.bv)(e,null==r?void 0:r.ID,"small",null==r?void 0:r.Extension,"?w=90&auto=format"),R=e=>{var r,s,t,n,a,i,d,o;let{item:c,multipleItems:u=!1}=e;return(0,l.jsxs)("div",{className:k().priceDetails,children:[u&&(0,l.jsxs)("div",{className:k().priceItem,children:[(0,l.jsx)("h5",{children:"Bag Total"}),(0,l.jsxs)("p",{children:["₹",(0,g.R1)(null==c?void 0:c.totalBagValue)]})]}),(0,l.jsxs)("div",{className:k().priceItem,children:[(0,l.jsx)("h5",{children:"Item Price"}),(0,l.jsxs)("p",{children:["₹",(0,g.R1)(null==c?void 0:c.originalPrice)]})]}),(null==c||null==(r=c.gstDetails)?void 0:r.gstApplicable)?(0,l.jsxs)("div",{className:k().priceItem,children:[(0,l.jsx)("h5",{children:"GST Rate Reduction"}),(0,l.jsxs)("p",{children:["₹",(0,g.R1)(null!=(d=null==c||null==(t=c.gstDetails)||null==(s=t.gstPercentValue)?void 0:s.gstValue)?d:0)]})]}):null,(0,l.jsxs)("div",{className:k().priceItem,children:[(0,l.jsx)("h5",{children:"Product Discounts"}),(0,l.jsxs)("p",{children:["₹",(0,g.R1)((null==c||null==(n=c.gstDetails)?void 0:n.gstApplicable)?null!=(o=null==c||null==(i=c.gstDetails)||null==(a=i.gstPercentValue)?void 0:a.productlevelValueDiscount)?o:0:null==c?void 0:c.totalProductDiscount)]})]}),(0,l.jsxs)("div",{className:k().priceItem,children:[(0,l.jsx)("h5",{children:"Promotions"}),(0,l.jsxs)("p",{children:["₹",(0,g.R1)(null==c?void 0:c.couponDiscountPerPiece)]})]}),(0,l.jsxs)("div",{className:k().priceItem,children:[(0,l.jsx)("h5",{children:"Jaypore Credits"}),(0,l.jsxs)("p",{children:[" ₹",(0,g.R1)(null==c?void 0:c.creditDiscountPerPiece)]})]}),(0,l.jsxs)("div",{className:k().priceItem,children:[(0,l.jsx)("h5",{children:"Shipping Charges"}),(0,l.jsxs)("p",{children:["₹",c.shippingPrice?(0,g.R1)(null==c?void 0:c.shippingPrice):"0.00"]})]}),(0,l.jsx)("hr",{}),(0,l.jsxs)("div",{className:"".concat(k().priceItem," ").concat(k().netAmt),children:[(0,l.jsx)("h5",{children:"Net Payable"}),(0,l.jsxs)("p",{children:[" ₹",(0,g.R1)(null==c?void 0:c.nettotalPaid)]})]}),(0,l.jsxs)("div",{className:k().priceItem,children:[(0,l.jsx)("h5",{children:"Total Savings"}),(0,l.jsxs)("p",{children:["₹",(0,g.R1)(null==c?void 0:c.totalSavings)]})]})]})},P=e=>{let{setCurrentTab:r,setCurrentOrder:s,openOrderModal:n,showToastMsg:h,filterValues:m,setFilterValues:p,loading:_,setLoading:I,orderList:b,setOrderList:C,currentOrder:A}=e,O=(0,y.A)(),R=(0,j.UM)("CUSTOMER_ID"),[P,B]=(0,t.useState)({orderStatus:["All status"],timeStatus:["Past 6 months"]}),T=(0,t.useRef)(!0),E=(0,t.useRef)(""),Y=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:m.orderStatus,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m.timeStatus,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:E.current.value;if(!R)return;C([]);let t={orderStatus:e,timeStatus:r,searchWord:E.current.value||l};I(!0);let n=await (0,N.IJ)(t,"Archived Orders"==r?"migratedOrder":""),{results:a,filter:i}=null!=n?n:{};(null==a?void 0:a.length)&&C(a),i&&B(i);let d=A.orderUniqueId;d&&setTimeout(()=>{let e=document.getElementById(d);e&&(e.getBoundingClientRect().top>=window.innerHeight&&e.scrollIntoView({behavior:"smooth",block:"center"}),s({orderId:null,orderUniqueId:null}))},0),I(!1)};(0,t.useEffect)(()=>{T.current&&(T.current=!1,(async()=>{E.current.value=m.search,await Y()})())},[]);let F=e=>{let{type:r}=e,[s,n]=(0,t.useState)(null),c=!!s,u=(0,t.useCallback)(e=>{n(e.currentTarget)},[]),h=(0,t.useCallback)(()=>{n(null)},[]);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(a.A,{id:"".concat(r,"-button"),onClick:u,className:k().filterBtn,disableRipple:!0,children:[null==m?void 0:m[r],(0,l.jsx)("span",{className:"".concat(k().sortIconBox," ").concat(c&&k().rotateTheIcon),children:(0,l.jsx)("span",{className:"sprite ".concat(k().spriteIcon)})})]}
1),(0,l.jsx)(i.A,{id:"".concat(r,"-menu"),anchorEl:s,open:c,onClose:h,className:k().filterMenu,children:P[r].map((e,s)=>{let t="orderStatus"==r&&"Archived Orders"==m.timeStatus&&"All status"!=e||(null==m?void 0:m[r])==e;return(0,l.jsxs)(d.A,{className:"".concat(k().filterItem," ").concat(t&&k().disabled),disableRipple:!0,onClick:()=>{p(s=>({...s,[r]:e})),Y("orderStatus"==r?e:m.orderStatus,"timeStatus"==r?e:m.timeStatus),h()},disabled:(null==m?void 0:m[r])==e,children:[(0,l.jsx)(o.A,{className:k().filterOptionIcon,id:"checkbox-".concat(e),checked:(null==m?void 0:m[r])==e,disabled:(null==m?void 0:m[r])==e,disableRipple:!0}),(0,l.jsx)("span",{children:e})]},"filter".concat(s))})})]})},U=e=>{var t,i,d,o,c,u,m,p,_,j,I,b,C,S,A,w,y,R,P,B,T,E,Y,F,U,z;let{data:H}=e,L=M(H.productId,null==H?void 0:H.media),q=(0,x.OZ)(H.linkrewrite,H.productId),Q=(null==H||null==(t=H.shipmentData)?void 0:t.deliveredDate)?v()(null==H||null==(i=H.shipmentData)?void 0:i.deliveredDate).format("D MMM YYYY"):null,V=(null==H||null==(d=H.shipmentData)?void 0:d.returnAvailableTillDate)?v()(H.shipmentData.returnAvailableTillDate).format("D MMM YYYY"):null,J=null!=(F=null!=(Y=null==H||null==(o=H.returnData)?void 0:o.groupbysterlingorderstatus)?Y:null==H||null==(c=H.shipmentData)?void 0:c.groupbysterlingorderstatus)?F:null==H?void 0:H.groupbysterlingorderstatus,G=null==J||null==(u=J.replace(/ /g,"_"))?void 0:u.toLowerCase(),W=null!=(z=null!=(U=null==H||null==(m
1=H.returnData)?void 0:m.status)?U:null==H||null==(p=H.shipmentData)?void 0:p.status)?z:null==H?void 0:H.groupByOrderStatus,X=null==H||null==(_=H.gstDetails)?void 0:_.gstApplicable;return(0,l.jsxs)("div",{className:k().orderItemContainer,id:null==H?void 0:H.uniqueId,children:[(0,l.jsxs)("div",{className:k().orderHeader,children:[(0,l.jsx)("div",{title:"My account",className:"orderStatusIcons ".concat(G)}),(0,l.jsxs)("div",{className:k().orderStatus,children:[(0,l.jsx)("p",{children:W}),Q&&(0,l.jsxs)("span",{children:["Delivered on ",Q]})]}),(0,l.jsxs)(a.A,{type:"button",className:k().orderNumber,onClick:()=>{s({orderId:null==H?void 0:H.orderNo,orderUniqueId:null==H?void 0:H.uniqueId}),r(2),window.scrollTo({top:0,behavior:"smooth"})},children:["Order No - ",null==H?void 0:H.orderNo]})]}),(0,l.jsxs)("div",{className:k().orderDetails,children:[(0,l.jsx)("div",{className:k().itemImageAscpectRatio,children:(0,l.jsx)(D.A,{href:q,title:null==H?void 0:H.ProductName,target:"_blank",children:(0,l.jsx)(f.default,{alt:null==H?void 0:H.ProductName,title:null==H?void 0:H.ProductName,src:L,width:45})})}),(0,l.jsxs)("div",{className:k().orderInfo,children:[(0,l.jsx)("p",{children:null==H?void 0:H.ProductName}),(0,l.jsxs)("p",{children:["Color : ",null==H?void 0:H.ColorName,", Size : ",null==H?void 0:H.size,", Qty :"," ",null==H?void 0:H.productQuantity]}),(0,l.jsxs)("p",{className:k().price,children:[" ","₹ ",(0,g.R1)(null==H?void 0:H.sellingprice)||"-"]}),X?(0,l.jsx)("div",{className:k().gstDeclaration,children:(0,l.jsx)("p",{children:"Inclusive of GST benefit"})}):null]}),(0,l.jsxs)("div",{className:k().orderCta,children:[(null==H?void 0:H.cancelEnabled)?(0,l.jsx)(a.A,{type:"button",onClick:()=>{n(H,"cancel")},children:"Cancel"}):null,(null==H?void 0:H.shipmentData)&&Object.keys(null==H?void 0:H.shipmentData).length&&(null==H||null==(j=H.shipmentData)?void 0:j.trackingEnabled)&&(null==H||null==(b=H.shipmentData)||null==(I=b.status)?void 0:I.toLowerCase())!=="delivered"?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(D.A,{title:"TRACK SHIPMENT",href:H.shipmentData.trackingUrl+H.shipmentData.trackingNumber,passHref:!0,target:"_blank",children:(0,l.jsx)(a.A,{type:"button",children:"Track Shipment"})}),(0,l.jsxs)("p",{className:k().awbNo,children:["AWB No - ",H.shipmentData.trackingNumber]})]}):null,(null==H||null==(C=H.shipmentData)?void 0:C.returnEnabled)==1&&(null==(A=H.shipmentData)||null==(S=A.status)?void 0:S.toLowerCase())=="delivered"?(0,l.jsx)(a.A,{type:"button",onClick:()=>{(0,g.IJ)(H),(0,g.vg)("Return",H,O),n(H,"return")},children:"Return"}):null,(null==H||null==(w=H.shipmentData)?void 0:w.exchangeEnabled)==1&&(null==(R=H.shipmentData)||null==(y=R.status)?void 0:y.toLowerCase())=="delivered"?(0,l.jsx)(a.A,{type:"button",onClick:()=>{(0,g.MR)("exchange_button_click",H),n(H,"exchange")},children:"Exchange"}):null,(null==H?void 0:H.reOrderEnabled)?(0,l.jsx)(a.A,{type:"button",onClick:()=>{(0,N.eM)(H,h),(0,g.vg)("Reorder",H,O)},children:"Reorder"}):null]})]}),(null==H||null==(P=H.shipmentData)?void 0:P.returnEnabled)==1&&(null==(T=H.shipmentData)||null==(B=T.status)?void 0:B.toLowerCase())=="delivered"?(0,l.jsx)("div",{className:k().orderFooter,children:(0,l.jsx)("p",{children:V?"Return ".concat((null==H||null==(E=H.shipmentData)?void 0:E.exchangeEnabled)==1?"/ Exchange":""," window closes on ").concat(V):""})}):null]})},z=e=>{var r,s;let{data:t}=e,n=null==t||null==(s=t.order_status)||null==(r=s.replace(/ /g,"_"))?void 0:r.toLowerCase();return(0,l.jsxs)("div",{className:k().orderItemContainer,id:null==t?void 0:t.id,children:[(0,l.jsxs)("div",{className:k().orderHeader,children:[(0,l.jsx)("div",{title:"My account",className:"orderStatusIcons delivered ".concat(n)}),(0,l.jsx)("div",{className:k().orderStatus,children:(0,l.jsx)("p",{children:null==t?void 0:t.item_status})}),(0,l.jsxs)("div",{className:"".concat(k().orderNumber," ").concat(k().migratedOrder),children:["Order No - ",null==t?void 0:t.order_id]})]}),(0,l.jsx)("div",{className:"".concat(k().orderDetails," ").concat(k().migratedOrder),children:(0,l.jsxs)("div",{className:k().orderInfo,children:[(0,l.jsx)("p",{children:null==t?void 0:t.p_name}),(0,l.jsxs)("p",{children:["Size : ",null==t?void 0:t.size,", Qty : ",null==t?void 0:t.item_qt
1y]}),(0,l.jsxs)("p",{className:k().price,children:["₹ ",(0,g.R1)(null==t?void 0:t.price)||"-"]})]})})]})};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:k().filterContainer,children:[(0,l.jsxs)("div",{className:k().statusFilter,children:[(0,l.jsx)("p",{className:k().label,children:"Status:"}),(0,l.jsx)(F,{type:"orderStatus"})]}),(0,l.jsxs)("div",{className:k().statusFilter,children:[(0,l.jsx)("p",{className:k().label,children:"Time:"}),(0,l.jsx)(F,{type:"timeStatus"})]}),(0,l.jsx)("div",{className:"".concat(k().searchFilter," ").concat("Archived Orders"==m.timeStatus&&k().disabled," "),children:(0,l.jsx)(c.A,{placeholder:"Search Order",inputRef:E,onChange:e=>{var r;let s=null==(r=e.target.value)?void 0:r.trim();E.current.value=s,s||(p(e=>({...e,search:""})),Y())},variant:"outlined",slotProps:{input:{endAdornment:(0,l.jsx)(u.A,{position:"end",children:(0,l.jsx)("button",{type:"button",title:"Search",className:"sprite search ".concat(k().searchBtn),onClick:()=>{p(e=>({...e,search:E.current.value})),Y()}})})}},className:k().searchInput,onKeyDown:e=>{"Enter"===e.key&&(p(e=>({...e,search:E.current.value})),Y())}})})]}),_?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(S.A,{}),(0,l.jsx)(w.Loader,{})]}):b.length?b.map(e=>(null==m?void 0:m.timeStatus)=="Archived Orders"?(0,l.jsx)(z,{data:e},e.orderId):(0,l.jsx)(U,{data:e},e.orderId)):(0,l.jsx)("p",{className:k().noOrdersMsg,children:"No Orders Found"})]})},B=e=>{var r,s,n,i,d,o,c,u,p,_,j;let{currentOrder:I,setCurrentTab:b,openOrderModal:C,loading:S,setLoading:O,orderDetails:P,setOrderDetails:B}=e,T=(0,y.A)(),[E,Y]=(0,t.useState)({open:!1,data:{}}),F=(0,t.useRef)(!0),U=async()=>{let{orderId:e,orderUniqueId:r}=I;O(!0);let s=await (0,N.IJ)({searchWord:e});B({mainOrder:null==s?void 0:s.results.find(e=>e.uniqueId===r),otherOrders:null==s?void 0:s.results.filter(e=>e.uniqueId!==r)}),O(!1)};(0,t.useEffect)(()=>{(null==I?void 0:I.orderId)&&F.current&&(F.current=!1,U())},[]);let{mainOrder:z,otherOrders:H}=P,{productId:L,media:q,ProductName:Q,ColorName:V,returnData:J,size:G,productQuantity:W,orderNo:X,orderPlacedDate:Z,groupByOrderStatus:K,shipmentData:$,sellingprice:ee,addressData:er}=null!=z?z:{},es=(0,g.Bl)(null!=er?er:""),el=M(L,q),et=(0,x.OZ)(null==(r=P.mainOrder)?void 0:r.linkrewrite,null==(s=P.mainOrder)?void 0:s.productId),en=null==(n=v()(Z))?void 0:n.format("DD-MM-YYYY"),ea=(null==$?void 0:$.deliveredDate)?v()($.deliveredDate).format("D MMM YYYY"):null,ei=(null==$?void 0:$.returnAvailableTillDate)?v()($.returnAvailableTillDate).format("D MMM YYYY"):null,ed=null!=(j=null!=(_=null==J?void 0:J.status)?_:null==$?void 0:$.status)?j:K,eo=null==z||null==(i=z.gstDetails)?void 0:i.gstApplicable;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(h.A,{className:k().priceBreakdownModal,disableAutoFocus:"true",open:E.open,slots:{backdrop:m.A},children:(0,l.jsxs)("div",{className:" ".concat(k().modelContainer),children:[(0,l.jsx)("div",{className:k().modal_header,children:(0,l.jsx)("span",{onClick:()=>Y(e=>({...e,open:!1,data:{}})),className:"sprite close modal",role:"button",tabIndex:"0"})}),(0,l.jsxs)("div",{className:k().priceContainer,children:[(0,l.jsx)("h4",{children:"Price Details"}),(0,l.jsx)(R,{item:E.data,multipleItems:!!(null==H?void 0:H.length)})]})]})}),(0,l.jsxs)("div",{className:k().orderDetailsContainer,children:[(0,l.jsxs)("div",{className:k().header,role:"button",tabIndex:"0",onClick:()=>b(1),children:[(0,l.jsx)("span",{className:"".concat(k().sortIconBox," ").concat(k().backIcon),children:(0,l.jsx)("span",{className:"sprite ".concat(k().spriteBackIcon)})}),(0,l.jsx)("h3",{children:"Order Details"})]}),S?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(A.A,{}),(0,l.jsx)(w.Loader,{})]}):z&&Object.keys(z).length?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:k().mainOrderContainer,children:[(0,l.jsxs)("div",{className:k().orderDetailHeader,children:[(0,l.jsxs)("div",{className:k().details,children:[(0,l.jsx)("h6",{children:"Order No: "}),(0,l.jsx)("p",{children:X})]}),(0,l.jsxs)("div",{className:k().details,children:[(0,l.jsx)("h6",{children:"Order Date: "}),(0,l.jsx)("p",{children:en})]}),(0,l.jsx)("div",{className:k().statusTag,children:ed})]}),(0,l.jsxs)("div",{className:k().orderDetails,children:[(0,l.jsx)("div",{className:k().itemImageAscpectRatio,children:(0,l.jsx)(D.A,{href:et,title:Q,target:"_blank",children:(0,l.jsx)(f.default,{alt:Q,src:el,width:45})})}),(0,l.jsxs)("div",{className:k().orderInfo,children:[(0,l.jsx)("p",{children:Q}),(0,l.jsxs)("p",{children:["Color: ",V,", Size: ",G,", Qty: ",W]}),(0,l.jsxs)("p",{className:k().price,children:["₹ ",(0,g.R1)(ee)]}),eo?(0,l.jsx)("div",{className:k().gstDeclaration,children:(0,l.jsx)("p",{children:"Inclusive of GST benefit"})}):null]}),(0,l.jsxs)("div",{className:k().orderCta,children:[$&&Object.keys($).length&&(null==$?void 0:$.trackingEnabled)&&(null==$||null==(d=$.status)?void 0:d.toLowerCase())!=="delivered"?(0,l.jsx)(D.A,{title:"TRACK SHIPMENT",href:$.trackingUrl+$.trackingNumber,passHref:!0,target:"_blank",className:k().trackShipment,children:"Track Shipment"}):null,ea&&(0,l.jsxs)("p",{className:k().deliveredDate,children:["Delivered on ",ea]})]})]}),(null==$?void 0:$.returnEnabled)==1&&(null==$||null==(o=$.status)?void 0:o.toLowerCase())=="delivered"?(0,l.jsxs)("div",{className:k().returnContainer,children:[(0,l.jsx)("p",{children:ei?"Return ".concat((null==$?void 0:$.exchangeEnabled)==1?"/ Exchange":""," window closes on ").concat(ei):""}),(0,l.jsxs)("div",{children:[(0,l.jsx)(a.A,{type:"button",onClick:()=>{(0,g.IJ)(z),(0,g.vg)("Return",z,T),C(z,"return")},children:"Return"}),(null==$?void 0:$.exchangeEnabled)==1&&(0,l.jsx)(a.A,{type:"button",onClick:()=>{(0,g.MR)("exchange_button_click",z),C(z,"exchange")},children:"Exchange"})]})]}):null,(0,l.jsxs)("div",{className:k().detailsGrid,children:[(0,l.jsxs)("div",{className:k().leftContainer,children:[(0,l.jsxs)("div",{className:k().topContainer,children:[(0,l.jsxs)("div",{className:k().address,children:[(0,l.jsx)("h4",{children:"Deliver To"}),(0,l.jsxs)("p",{children:[null==es?void 0:es.firstname," ",null==es?void 0:es.lastname]}),(0,l.jsx)("p",{children:null==es?void 0:es.address1}),(0,l.jsx)("p",{children:null==es?void 0:es.address2}),(0,l.jsx)("p",{children:null==es?void 0:es.city}),(0,l.jsx)("p",{children:null==es?void 0:es.stateName}),(0,l.jsxs)("p",{children:[null==es?void 0:es.countryName," - ",null==es?void 0:es.postcode]})]}),(0,l.jsxs)("div",{className:k().paymentmode,children:[(0,l.jsx)("h4",{children:"Payment Method"}),(0,l.jsx)("p",{children:z.paymentMode})]})]}),(null==z?void 0:z.shipmentData)&&(null==z||null==(c=z.shipmentData)?void 0:c.trackingEnabled)&&Object.keys(null==z?void 0:z.shipmentData).length?(0,l.jsxs)("div",{className:k().shipment,children:[(0,l.jsx)("h4",{children:"Shipment Details"}),(0,l.jsxs)("p",{children:["Shipment Number -"," ",null==z||null==(u=z.shipmentData)?void 0:u.flamingoShipmentId]}),(0,l.jsxs)("p",{children:["AWB Number - ",null==z||null==(p=z.shipmentData)?void 0:p.trackingNumber]})]}):null]}),(0,l.jsxs)("div",{className:k().priceContainer,children:[(0,l.jsx)("h4",{children:"Price Details"}),(0,l.jsx)(R,{item:z,multipleItems:!!(null==H?void 0:H.length)})]})]})]}),H.length?(0,l.jsxs)("div",{className:k().otherOrdersContainer,children:[(0,l.jsx)("h5",{children:"Other item(s) in this order"}),H.map(e=>{var r,s;let{ProductName:t,ColorName:n,size:a,sellingprice:i,productId:d,media:o,linkrewrite:c,netPrice:u,groupByOrderStatus:h,shipmentData:m,returnData:p}=e,_=M(d,o),v=(0,x.OZ)(c,d),j=null!=(s=null!=(r=null==p?void 0:p.status)?r:null==m?void 0:m.status)?s:h;return(0,l.jsxs)("div",{className:k().otherItem,children:[(0,l.jsxs)("div",{className:k().details,children:[(0,l.jsx)("div",{className:k().itemImageAscpectRatio,children:(0,l.jsx)(D.A,{href:v,title:t,target:"_blank",children:(0,l.jsx)(f.default,{alt:t,src:_,width:45})})}),(0,l.jsxs)("div",{className:k().orderInfo,children:[(0,l.jsx)("p",{children:t}),(0,l.jsxs)("p",{children:["Color: ",n,", Size: ",a,", Qty:"," ",W]}),(0,l.jsxs)("p",{className:k().price,children:["₹ ",(0,g.R1)(i)||"-"]})]})]}),(0,l.jsxs)("div",{className:k().priceDetails,children:[(0,l.jsxs)("div",{className:k().priceItem,children:[(0,l.jsx)("h5",{children:"Item Price"}),(0,l.jsxs)("p",{children:["₹",(0,g.R1)(u)]})]}),(0,l.jsx)("div",{className:k().priceItem,children:(0,l.jsx)("button",{className:k().priceBreakdown,onClick:()=>{Y(r=>({...r,open:!0,data:e}))},type:"button",children:"View Breakdown"})}),(0,l.jsxs)("div",{className:k().priceItem,children:[(0,l.jsx)("h5",{children:"Status"}),(0,l.jsx)("p",{children:j})]})]})]},d)})]}):null]}):null]})]})},T=e=>{let{fetchCancelReason:r,fetchReturnReasons:s,showToastMsg:a,returnReasons:i,cancelReasons:d}=e,o=(0,j.UM)("CUSTOMER_ID"),c={open:!1,type:null,item:{}},[u,h]=(0,t.useState)(c),[m,_]=(0,t.useState)(1),[v,x]=(0,t.useState)({orderId:null,orderUniqueId:null}),[g,D]=(0,t.useState)(!1),[f,S]=(0,t.useState)([]),[A,O]=(0,t.useState)({mainOrder:{},otherOrders:[]}),[y,M]=(0,t.useState)({orderStatus:"All status",timeStatus:"Past 6 months",search:""}),[R,T]=(0,t.useState)(!1);(0,t.useEffect)(()=>{window.scrollTo({top:0,behavior:"smooth"})},[]);let E=async(e,l)=>{T(!0),"cancel"==l&&0===d.length&&await r(),"return"===l&&0===i.return.length&&await s(),"exchange"===l&&0===i.exchange.length&&await s(),h(r=>({...r,open:!0,type:l,item:{...e}})),T(!1)},Y=()=>{h(e=>({...e,...c}))},F=async()=>{let e;if(o){if(S([]),window.scrollTo({top:0,behavior:"smooth"}),D(!0),1===m){e={orderStatus:y.orderStatus,timeStatus:y.timeStatus,searchWord:y.search};let r="Archived Orders"===y.timeStatus?"migratedOrder":"",{results:s=[]}=await (0,N.IJ)(e,r);if(s.length){S(s);let e=u.item.uniqueId;e&&setTimeout(()=>{let r=document.getElementById(e);r&&r.getBoundingClientRect().top>=window.innerHeight&&r.scrollIntoView({behavior:"smooth",block:"center"})},0)}}else{let{orderId:r,orderUniqueId:s}=v;e={searchWord:r};let{results:l=[]}=await (0,N.IJ)(e);O({mainOrder:l.find(e=>e.uniqueId===s),otherOrders:l.filter(e=>e.uniqueId!==s)})}D(!1)}};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:k().myAccountContainer,children:(0,l.jsxs)(p.A,{container:!0,children:[(0,l.jsx)(p.A,{size:{sm:4,md:3},className:k().myAccountSideBar,children:(0,l.jsx)(I.A,{})}),(0,l.jsx)(p.A,{size:{sm:8,md:9},className:k().myOrdersContainer,children:(0,l.jsxs)(n.A,{className:k().ordersWrapper,children:[(0,l.jsx)("h1",{className:k().title,children:"My Orders"}),(0,l.jsx)(n.A,{children:1==m?(0,l.jsx)(P,{setCurrentTab:_,setCurrentOrder:x,openOrderModal:E,showToastMsg:a,filterValues:y,setFilterValues:M,loading:g,setLoading:D,orderList:f,setOrderList:S,currentOrder:v}):(0,l.jsx)(B,{currentOrder:v,setCurrentTab:_,openOrderModal:E,loading:g,setLoading:D,orderDetails:A,setOrderDetails:O})})]})})]})}),R?(0,l.jsx)(w.Loader,{}
1):null,(0,l.jsx)(C.A,{isModalOpen:"exchange"===u.type&&u.open,reloadOrderPage:F,productDetails:u.item,exchangeOptions:i.exchange,showToastMsg:a,closeModal:Y,openReturnModal:()=>E(u.item,"return")}),(0,l.jsx)(b.A,{isModalOpen:("return"===u.type||"cancel"===u.type)&&u.open,isCancel:"cancel"===u.type,cancelItems:u.item,reloadOrderPage:F,cancelReasons:d,returnProductDetails:u.item,returnReasons:i.return,showToastMsg:a,closeModal:Y,openExchangeModal:()=>E(u.item,"exchange")})]})},E=T},91460:e=>{e.exports={"fs-49":"orders_fs-49__A_QOu","fs-42":"orders_fs-42____BIT","fs-35":"orders_fs-35__Uu1hw","fs-28":"orders_fs-28__7FzKP","fs-21":"orders_fs-21__S2CwB","fs-18":"orders_fs-18__M_UCV","fs-16":"orders_fs-16__5z24B","fs-14":"orders_fs-14__s5uc4","fs-12":"orders_fs-12__GQ_UN",myAccountContainer:"orders_myAccountContainer__5uIYX",myAccountSideBar:"orders_myAccountSideBar__HN_nX",myOrdersContainer:"orders_myOrdersContainer__PD_yz",ordersWrapper:"orders_ordersWrapper__MCT08",title:"orders_title__in6Oz",noOrdersMsg:"orders_noOrdersMsg__sJmE9",sortIconBox:"orders_sortIconBox__CuUSh",rotateTheIcon:"orders_rotateTheIcon__lYQx_",backIcon:"orders_backIcon__kaPhs",spriteBackIcon:"orders_spriteBackIcon__u2BBA",spriteIcon:"orders_spriteIcon__dbf20",filterContainer:"orders_filterContainer__25ZUE",label:"orders_label__t0tpy",filterBtn:"orders_filterBtn__k1cY0",statusFilter:"orders_statusFilter__vzU8O",searchFilter:"orders_searchFilter__pQMjD",disabled:"orders_disabled__8P2ac",searchInput:"orders_searchInput__Rq3Pn",searchBtn:"orders_searchBtn__QeP3b",filterMenu:"orders_filterMenu__EOMwK",filterItem:"orders_filterItem__j_ROG",filterOptionIcon:"orders_filterOptionIcon__wrY9h",orderItemContainer:"orders_orderItemContainer__csB4S",orderHeader:"orders_orderHeader__hAkJx",orderStatus:"orders_orderStatus__qAaT7",orderNumber:"orders_orderNumber__fn7Wl",migratedOrder:"orders_migratedOrder__PbzwA",orderFooter:"orders_orderFooter__37V_a",orderDetailsContainer:"orders_orderDetailsContainer__paSHJ",header:"orders_header__3RU8t",mainOrderContainer:"orders_mainOrderContainer__SoXrG",orderDetailHeader:"orders_orderDetailHeader__cQXlE",details:"orders_details__9o7N5",statusTag:"orders_statusTag__SZaB2",returnContainer:"orders_returnContainer__d9Gk4",detailsGrid:"orders_detailsGrid__I4qOR",leftContainer:"orders_leftContainer__zq1V7",topContainer:"orders_topContainer__mHQP0",address:"orders_address__FCXdh",paymentmode:"orders_paymentmode__zTcRV",shipment:"orders_shipment__YzUuP",otherOrdersContainer:"orders_otherOrdersContainer__c6bU4",otherItem:"orders_otherItem__2b3yE",orderInfo:"orders_orderInfo__Pxa1B",price:"orders_price___T2r4",priceDetails:"orders_priceDetails__l0_ps",priceItem:"orders_priceItem__fgt7H",priceBreakdown:"orders_priceBreakdown__80_kH",priceContainer:"orders_priceContainer__iQl37",netAmt:"orders_netAmt__Pww5U",priceBreakdownModal:"orders_priceBreakdownModal__CBR_P",modelContainer:"orders_modelContainer__Uz6uA",modal_header:"orders_modal_header__wtCEV",gstDeclaration:"orders_gstDeclaration__duLM6",orderDetails:"orders_orderDetails__1SQUw",orderCta:"orders_orderCta__zp1Zt",awbNo:"orders_awbNo__QuzXq",deliveredDate:"orders_deliveredDate__S2VjH",trackShipment:"orders_trackShipment__JLYRN",itemImageAscpectRatio:"orders_itemImageAscpectRatio__ETz1p",pulse:"orders_pulse__QMUL3"}}}]);

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.