1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2692],{28938:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/profile/Wallet",function(){return s(41886)}])},8946:function(e,t){"use strict";t.Z={src:"/_next/static/media/profile.3f0160b4.jpeg",height:600,width:600,blurDataURL:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAoKCgoKCgsMDAsPEA4QDxYUExMUFiIYGhgaGCIzICUgICUgMy03LCksNy1RQDg4QFFeT0pPXnFlZXGPiI+7u/sBCgoKCgoKCwwMCw8QDhAPFhQTExQWIhgaGBoYIjMgJSAgJSAzLTcsKSw3LVFAODhAUV5PSk9ecWVlcY+Ij7u7+//CABEIAAgACAMBIgACEQEDEQH/xAAoAAEBAAAAAAAAAAAAAAAAAAAABwEBAQAAAAAAAAAAAAAAAAAAAQL/2gAMAwEAAhADEAAAAKUJf//EAB4QAAAEBwAAAAAAAAAAAAAAAAACEhMEERUkMjOx/9oACAEBAAE/AFx1RS1Zs5TLs6P/xAAUEQEAAAAAAAAAAAAAAAAAAAAA/9oACAECAQE/AH//xAAUEQEAAAAAAAAAAAAAAAAAAAAA/9oACAEDAQE/AH//2Q==",blurWidth:8,blurHeight:8}},14762:function(e,t,s){"use strict";var a=s(85893),l=s(67294),i=s(43495),n=s(8193);let o=e=>{let{isOpen:t,type:s,title:o,subText:r,onConfirm:c,onClose:d,autoClose:x,confirmLabel:m="Confirm",cancelLabel:h="Cancel",showConfirmButton:u=!0,showCancelButton:p=!0,showCloseIcon:g=!0}=e,f=(0,l.useRef)(),[y,b]=(0,l.useState)(!0);(0,l.useEffect)(()=>{let e;return t&&x&&(e=setTimeout(d,1e3*x)),()=>clearTimeout(e)},[t,x,d]),(0,l.useEffect)(()=>{let e=e=>{f.current&&!f.current.contains(e.target)&&d()};return t?document.addEventListener("mousedown",e):document.removeEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[t,d]),(0,l.useEffect)(()=>{t&&b(!0)},[t]);let j=async()=>{await c(),b(!1)};return t?(0,a.jsxs)("div",{className:"fixed inset-0 flex items-center justify-center z-[9999] px-4 py-6 sm:px-0 ",children:[(0,a.jsx)("div",{className:"fixed inset-0 bg-black bg-opacity-50 transition-opacity"}),(0,a.jsxs)(i.E.div,{ref:f,className:"bg-white p-6 rounded-xl font-primary shadow-2xl relative z-10 w-full max-w-md ",initial:{opacity:0,y:-50},animate:{opacity:1,y:0},exit:{opacity:0,y:50},transition:{duration:.5,ease:"easeInOut"},children:[(0,a.jsx)(i.E.div,{className:"absolute inset-x-0 -top-8 flex justify-center",initial:{y:-20,opacity:0},animate:{y:0,opacity:1},transition:{duration:.7,ease:"easeInOut"},children:(0,a.jsx)("div",{className:"bg-white w-20 h-20 rounded-full flex items-center justify-center",children:(()=>{switch(s){case"success":return(0,a.jsx)(n.KP3,{className:"text-green-600 h-10 w-10"});case"error":return(0,a.jsx)(n.SV5,{className:"text-red-600 h-10 w-10"});case"warning":return(0,a.jsx)(n.SR5,{className:"text-yellow-600 h-10 w-10"});case"info":return(0,a.jsx)(n.ocf,{className:"text-blue-600 h-10 w-10"});default:return null}})()})}),g&&(0,a.jsx)("button",{onClick:d,className:"absolute top-3 right-3 text-gray-500 hover:text-gray-700",children:(0,a.jsx)(n.SV5,{className:"h-6 w-6"})}),(0,a.jsxs)("div",{className:"text-center mt-10",children:[(0,a.jsx)("h2",{className:"text-xl md:text-2xl font-semibold",children:o}),(0,a.jsx)("p",{className:"text-gray-600 mt-2",children:r})]}),y&&(p||u)&&(0,a.jsxs)("div",{className:"flex justify-center space-x-4 mt-6",children:[p&&(0,a.jsx)("button",{className:"bg-gray-500 hover:bg-gray-600 text-white px-4 py-2 rounded-full transition-all duration-200 ease-in-out",onClick:d,children:h}),u&&(0,a.jsx)("button",{className:"bg-blue-500 hover:bg-blue-600 text-white px-4 py-2 rounded-full transition-all duration-200 ease-in-out",onClick:j,children:m})]}),x&&(0,a.jsx)("div",{className:"mt-6 h-1 w-full bg-gray-100 rounded overflow-hidden relative",children:(0,a.jsx)(i.E.div,{className:"h-full bg-primary absolute left-0 top-0",initial:{width:"0%"},animate:{width:"100%"},transition:{ease:"linear",duration:x}})})]})]}):null};t.Z=o},15268:function(e,t,s){"use strict";var a=s(87066),l=s(43812);let i=l.BUILDER_URL,n=e=>{let{job_id:t,endpoint:s,payload:n,responseData:o,errorMsg:r}=e,c=JSON.stringify(n),d=JSON.stringify(r),x={responseData:JSON.stringify({job_id:t,endpoint:s,payLoad:c,responseData:o,error:d})};(0,l.isDevelopment)()||a.Z.post("".concat(i,"/error-log"),x).then(e=>{200===e.status&&console.log("Success response",e.data)}).catch(e=>{})};t.Z=n},66506:function(e,t,s){"use strict";var a=s(85893),l=s(67294),i=s(8193),n=s(51526),o=s(43495);let r=e=>{let{isOpen:t,onClose:s,onConfirm:r}=e,c=(0,l.useRef)();return(0,l.useEffect)(()=>{let e=e=>{c.current&&!c.current.contains(e.target)&&s()};return t?document.addEventListener("mousedown",e):document.removeEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[t,s]),(0,a.jsx)(n.M,{children:t&&(0,a.jsx)(o.E.div,{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50",initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},transition:{duration:.3},children:(0,a.jsx)(o.E.div,{className:"bg-white rounded-lg shadow-lg p-8 w-full max-w-lg border-t-4 border-primary md:max-w-md",initial:{y:50,opacity:0},animate:{y:0,opacity:1},exit:{y:50,opacity:0},transition:{type:"tween",ease:"easeInOut",duration:.4},ref:c,children:(0,a.jsxs)("div",{className:"flex flex-col items-center",children:[(0,a.jsx)(i.sQg,{className:"text-red-500 text-6xl mb-4"}),(0,a.jsx)("h2",{className:"text-2xl font-semibold mb-4",children:"Are you sure?"}),(0,a.jsx)("p",{className:"text-gray-600 mb-6 text-center",children:"Do you want to logout?"}),(0,a.jsxs)("div",{className:"flex flex-wrap justify-center space-x-4 space-y-2 md:space-y-0",children:[(0,a.jsx)("button",{onClick:r,className:"bg-blue-500 text-white px-6 py-2 rounded-full shadow-md hover:bg-blue-600 transition-all duration-300 transform hover:scale-105",children:"Yes, logout!"}),(0,a.jsx)("button",{onClick:s,className:"bg-red-500 text-white px-6 py-2 rounded-full shadow-md hover:bg-red-600 transition-all duration-300 transform hover:scale-105",children:"Cancel"})]})]})})})})};t.Z=r},4422:function(e,t,s){"use strict";var a=s(67294),l=s(82940),i=s(87066),n=s(37351);let o=()=>{let e="#";for(let t=0;t<6;t++)e+="0123456789ABCDEF"[Math.floor(16*Math.random())];return e},r=()=>{let e=new Date,t="".concat(e.getFullYear()).concat((e.getMonth()+1).toString().padStart(2,"0")).concat(e.getDate().toString().padStart(2,"0")).concat(e.getHours().toString().padStart(2,"0")).concat(e.getMinutes().toString().padStart(2,"0")).concat(e.getSeconds().toString().padStart(2,"0"));return t+o()},c=e=>{let t=(0,l.b)(),s=(0,a.useContext)(n.ThemeContext),o=async()=>{if(1===s.siteStatus){let a={};try{let l=await i.Z.get("https://api.ipify.org?format=json"),n=await i.Z.get("https://ipapi.co/".concat(l.data.ip,"/json/"));a=n.data}catch(d){console.warn("Failed to fetch IP details from ipapi.co. Trying fallback...");try{let o=await i.Z.get("https://ipwhois.app/json/");a=o.data}catch(c){console.warn("Failed to fetch IP details from fallback service. Proceeding without IP data.")}}let x={ipDetails:JSON.stringify(a),reference:window.location.hostname,track:"track",page:window.location.href,method:"open",page_type:e,UID:"",scode:r()};try{await t.post("user/tracking",x)}catch(m){console.error("Error sending tracking data:",m)}}else console.error("Tracking not enabled due to site status.")};return o};t.Z=c},41886:function(e,t,s){"use strict";s.r(t),s.d(t,{__N_SSP:function(){return C}});var a=s(85893),l=s(67294),i=s(25675),n=s.n(i),o=s(11163),r=s(41664),c=s.n(r),d=s(60017),x=s(85574),m=s(43495),h=s(8946),u=s(82940),p=s(91819);s(18159);var g=s(84105),f=s(4422),y=s(68015),b=s(15268),j=s(66506),A=s(89583),v=s(93975),w=s(14762);let N=e=>{let{image:t}=e,s=(0,o.useRouter)(),[i,r]=(0,l.useState)(null),[N,C]=(0,l.useState)(!1),[T,S]=(0,l.useState)(!1),[F,_]=(0,l.useState)(null),[E,I]=(0,l.useState)(!1),[k,D]=(0,l.useState)([]),[R,P]=(0,l.useState)([]),[z,O]=(0,l.useState)(null),[G,B]=(0,l.useState)(!1),[M,W]=(0,l.useState)({}),{formatCurrency:U}=(0,l.useContext)(d.CurrencyContext),{clearUser:L,token:Q,userDetails:Z,goldPlanEnable:Y,buySellEnable:H,websiteStatus:K}=(0,l.useContext)(x.UserContext),J=(0,u.b)(),{jboId:V}=(0,y.useJobId)(),X=(0,f.Z)("Wallet Page"),q=()=>{I(!0)},$=e=>{W(e),B(!0)},ee=()=>{B(!1)},et=()=>{sessionStorage.clear(),L(),I(!1),s.push("/")},es=async()=>{C(!0);try{let e=await J.post("/digi_gold/walletBalance");1===e.data.status?r(e.data):console.error("Failed to fetch wallet balance:",e.data.msg)}catch(t){console.error("Error fetching wallet balance:",t)}finally{C(!1)}},ea=async()=>{try{let e=await J.post("/digi_gold/getUserDetails");1===e.data.status?_(e.data.user_details):s.replace("/DigiGold/View")}catch(t){console.error("Error fetching KYC details:",t)}},el=async()=>{var e,t;try{let s=await J.post("/digi_gold/transactionReport");if(null==s?void 0:null===(e=s.data)||void 0===e?void 0:e.data){let a=s.data.data.map((e,t)=>{var s;return{orderId:e[0]||"N/A",type:e[1]||"N/A",dateTime:e[2]||"N/A",qty:(null===(s=e[3])||void 0===s?void 0:s.toFixed(4))||0,purchaseRate:U(e[4])||0,gst:U(e[5])||0,totalAmount:U(e[6])||0,transactionId:e[7]||"N/A",status:e[8]||"N/A",transactionStatus:e[9]||null,typeId:e[10]||null}}),l=s.data.data.map((e,t)=>{var s;return{orderId:e[0]||"N/A",type:e[1]||"N/A",dateTime:e[2]||"N/A",qty:(null===(s=e[3])||void 0===s?void 0:s.toFixed(4))||0,purchaseRate:e[4]||0,gst:e[5]||0,totalAmount:e[6]||0,transactionId:e[7]||"N/A",status:e[8]||"N/A"}});D(a),P(l),setLoading(!1)}}catch(i){console.error("Error fetching transaction report:",i),(0,b.Z)({job_id:V,endpoint:"/digi_gold/transactionReport",payload:payload,responseData:(null==i?void 0:null===(t=i.response)||void 0===t?void 0:t.data)||"",errorMsg:i}
1),setLoading(!1)}},ei=async(e,s,a)=>{let l;let i=new p.default,n=i.internal.pageSize.getWidth(),[o,r,c]=[(l=parseInt("#003C43".substring(1),16))>>16&255,l>>8&255,255&l];i.addImage("data:image/jpeg;base64,".concat(t),"JPEG",14,10,40,25),i.setDrawColor(225,225,225),i.line(14,37,196,37),i.setFont("times","bold"),i.setFontSize(20),i.setTextColor(o,r,c),i.text("Purchase Invoice",14,50),i.setFontSize(12),i.setTextColor(0,0,0),i.text(s.invoice_name,14,55),i.setFont("times","normal"),i.setTextColor(50,50,50),i.setFontSize(10),i.text("".concat(s.invoice_address+","+s.invoice_landmark+","),14,59,{maxWidth:100}),i.text("".concat(s.invoice_city+","+s.invoice_state+","),14,63,{maxWidth:100}),i.text("".concat(s.invoice_country+"-"+s.invoice_pincode+"."),14,67,{maxWidth:100}),i.setFont("times","normal"),i.setFontSize(10),i.text("PAN No: ".concat(s.pan_no),n-15,59,{align:"right"}),i.text("GSTIN: ".concat(s.invoice_gst_no),n-15,63,{align:"right"}),(null==s?void 0:s.cin)&&i.text("CIN: ".concat(s.cin),n-15,67,{align:"right"});let d=n/2-30,x=n-70,m=80;i.setFillColor(255,255,255),i.rect(14,m-8,182,20,"F"),i.setDrawColor(225,225,225),i.line(14,m-8,196,m-8),i.line(14,m+20-8,196,m+20-8),i.setTextColor(0,0,0),i.setFont("times","bold"),i.setTextColor(o,r,c),i.setFontSize(12),i.text("Date : ",14,m),i.text("Customer ID : ",d+6,m),i.text("Order No : ",x+6+6,m),i.setFont("times","normal"),i.setTextColor(50,50,50),i.text(e.date_and_time,14,m+6),i.text("".concat(a.user_id
1),d+6,m+6),i.text("".concat(e.order_id),x+6+6,m+6),i.line(14,m+20-8,196,m+20-8),m+=20,i.setFont("times","bold"),i.setTextColor(o,r,c),i.text("Seller Details:",14,m),i.setFont("times","normal"),i.setTextColor(50,50,50),i.text("Name: ".concat(a.invoice_name),14,m+6),i.text("Phone Number: ".concat(a.invoice_mobileno),14,m+12),i.text("Email Id: ".concat(a.invoice_emailid||"N/A"),14,m+18),m+=24,i.setFont("times","normal"),i.setFillColor(o,r,c),i.rect(14,m,59.6,10,"F"),i.rect(74,m,29.8,10,"F"),i.rect(104,m,49.6,10,"F"),i.rect(154,m,43,10,"F"),i.setTextColor(255,255,255),i.text("Description",30,m+6),i.text("Grams",85,m+6),i.text("Rate per Gram",115,m+6),i.text("Total Amount",165,m+6),i.line(14,m+10,196,m+10);let h=m+18;i.setFont("times","normal"),i.setTextColor(50,50,50),i.text("24K Gold",30,h),i.text("HSN Code : "+e.hsn_sac,20,h+6,{align:"left"}),i.text(e.weight.toString(),95,h,{align:"right"}),i.text("Rs.".concat(e.purchase_rate.toFixed(2)),133,h,{align:"right"}),i.text("Rs.".concat(e.total_amount.toFixed(2)),190,h,{align:"right"}),h+=8,i.setFont("times","bold"),i.setFillColor(o,r,c),i.rect(104,h,49.6,10,"F"),i.rect(154,h,43,10,"F"),i.setTextColor(255,255,255),i.text("Total Invoice Value",110,h+6),i.text("Rs.".concat(e.total_amount.toFixed(2)),190,h+6,{align:"right"}),i.line(14,h+10,196,h+10),h+=30,i.setFontSize(13),i.setFont("times","bold"),i.setTextColor(0,0,0),i.text("* Disclaimer :",14,h),i.setFontSize(13),i.setFont("times","normal"),i.setTextColor(50,50,50),i.text("The gold grams you own are calculated by dividing the amount paid net of GST by the gold rate and rounded down to 3 decimal places. For example, .0054 grams will be rounded down to .005 grams.",14,h+6,{maxWidth:180}),i.setTextColor(50,50,50);let u=i.splitTextToSize("For ".concat(s.invoice_name),60),g=h+80;u.forEach((e,t)=>{let s=i.getTextWidth(e);i.text(e,160-s/2,g+6*t)}),i.setFont("times","normal");let f="(Authorized Signatory)",y=i.getTextWidth(f);i.text(f,160-y/2,g+6*u.length+3),i.save("Purchase_Invoice.pdf")},en=async(e,s,a)=>{let l;let i=new p.default,n=i.internal.pageSize.getWidth(),[o,r,c]=[(l=parseInt("#003C43".substring(1),16))>>16&255,l>>8&255,255&l];i.addImage("data:image/jpeg;base64,".concat(t),"JPEG",14,10,40,25),i.setDrawColor(225,225,225),i.line(14,37,196,37),i.setFont("times","bold"),i.setFontSize(20),i.setTextColor(o,r,c),i.text("Tax Invoice",14,50),i.setFontSize(12),i.setTextColor(0,0,0),i.text(s.invoice_name,14,55),i.setFont("times","normal"),i.setTextColor(50,50,50),i.setFontSize(10),i.text("".concat(s.invoice_address+","+s.invoice_landmark+","),14,59,{maxWidth:100}),i.text("".concat(s.invoice_city+","+s.invoice_state+","),14,63,{maxWidth:100}),i.text("".concat(s.invoice_country+"-"+s.invoice_pincode+"."),14,67,{maxWidth:100}),i.setFont("times","normal"),i.setFontSize(10),i.text("PAN No: ".concat(s.pan_no),n-15,59,{align:"right"}),i.text("GSTIN: ".concat(s.invoice_gst_no),n-15,63,{align:"right"}),(null==s?void 0:s.cin)&&i.text("CIN: ".concat(s.cin),n-15,67,{align:"right"});let d=n/2-30,x=n-70,m=80;i.setFillColor(255,255,255),i.rect(14,m-8,182,20,"F"),i.setDrawColor(225,225,225),i.line(14,m-8,196,m-8),i.line(14,m+20-8,196,m+20-8),i.setTextColor(0,0,0),i.setFont("times","bold"),i.setTextColor(o,r,c),i.setFontSize(12),i.text("Date : ",14,m),i.text("Customer ID : ",d+6,m),i.text("Order No : ",x+6+6,m),i.setFont("times","normal"),i.setTextColor(50,50,50),i.text(e.date_and_time,14,m+6),i.text("".concat(a.user_id
1),d+6,m+6),i.text("".concat(e.order_id),x+6+6,m+6),i.line(14,m+20-8,196,m+20-8),m+=20,i.setFont("times","bold"),i.setTextColor(o,r,c),i.text("Bill To:",14,m),i.setFont("times","normal"),i.setTextColor(50,50,50),i.text("Name: ".concat(a.invoice_name),14,m+6),i.text("Phone Number: ".concat(a.invoice_mobileno),14,m+12),i.text("Email Id: ".concat(a.invoice_emailid||"N/A"),14,m+18),m+=24,i.setFont("times","normal"),i.setFillColor(o,r,c),i.rect(14,m,59.6,10,"F"),i.rect(74,m,29.8,10,"F"),i.rect(104,m,49.6,10,"F"),i.rect(154,m,43,10,"F"),i.setTextColor(255,255,255),i.text("Description",30,m+6),i.text("Grams",82,m+6),i.text("Rate per Gram",115,m+6),i.text("Total Amount",165,m+6),i.line(14,m+10,196,m+10);let h=m+18;i.setFont("times","normal"),i.setTextColor(50,50,50),i.text("24K Gold",30,h),i.text("HSN Code : "+e.hsn_sac,20,h+6),i.text(e.weight.toString(),95,h,{align:"right"}),i.text("Rs.".concat(e.purchase_rate.toFixed(2)),133,h,{align:"right"}),i.text("Rs.".concat(e.taxable_amount.toFixed(2)),190,h,{align:"right"}),h+=8,i.line(14,h,196,h),i.setFont("times","normal"),i.text("Applied Tax",115,h+6),i.text("Rs.".concat(e.gst.toFixed(2)),190,h+8,{align:"right"}),i.text("(1.5% CGST + 1.5% SGST)",105,h+12),i.setFont("times","bold"),i.setFillColor(o,r,c),i.rect(104,h+20,49.6,10,"F"),i.rect(154,h+20,43,10,"F"),i.setTextColor(255,255,255),i.text("Total Invoice Value",110,h+26),i.text("Rs.".concat(e.total_amount.toFixed(2)),190,h+26,{align:"right"}),i.line(14,h+30,196,h+30),h+=40,i.setFontSize(13),i.setFont("times","bold"),i.setTextColor(0,0,0),i.text("Declaration :",14,h),i.setFontSize(13),i.setFont("times","normal"),i.setTextColor(50,50,50),i.text("We declare that the above quantity of goods are kept by the seller in a safe vault on behalf of the buyer. It can be delivered in minted product as per the Terms & Conditions.",14,h+6,{maxWidth:180}),h+=20,i.setFontSize(13),i.setFont("times","bold"),i.setTextColor(0,0,0),i.text("* Disclaimer :",14,h),i.setFontSize(13),i.setFont("times","normal"),i.setTextColor(50,50,50),i.text("The gold grams you own are calculated by dividing the amount paid net of GST by the gold rate and rounded down to 3 decimal places. For example, .0054 grams will be rounded down to .005 grams.",14,h+6,{maxWidth:180}),i.setTextColor(50,50,50);let u=i.splitTextToSize("For ".concat(s.invoice_name),60),g=h+55;u.forEach((e,t)=>{let s=i.getTextWidth(e);i.text(e,160-s/2,g+6*t)}),i.setFont("times","normal");let f="(Authorized Signatory)",y=i.getTextWidth(f);i.text(f,160-y/2,g+6*u.length+3),i.save("Purchase_Invoice.pdf")},eo=async(e,t)=>{try{var s;let a=await J.post("/digi_gold/digiInvoice",{order_id:t});if((null==a?void 0:null===(s=a.data)||void 0===s?void 0:s.status)==1){let l=null==a?void 0:a.data;1==e?en(l.invoice_data,l.jbo_data,l.customer):ei(l.invoice_data,l.jbo_data,l.customer)}else $({type:"warning",title:"Error",subText:"Fail to get pdf",onConfirm:ee,onClose:ee,autoClose:2,showConfirmButton:!1,showCancelButton:!1})}catch(i){console.error("Error fetching transaction report:",i),setLoading(!1)}};(0,l.useEffect)(()=>{el(),X(),es(),ea()},[]);let er={hidden:{opacity:0,y:20},visible:{opacity:1,y:0,transition:{duration:.8,ease:"easeOut"}}},ec=()=>{let e=new p.default,t=R.map(e=>[e.orderId,e.type,e.dateTime,"".concat(e.qty," g"),e.purchaseRate,e.totalAmount,e.transactionId,e.status]);e.autoTable({head:[["ORDER ID","TYPE","DATE & TIME","QTY","RATE","AMOUNT","TRANSACTION ID","STATUS"]],body:t,startY:20}),e.text("DigiGold Transaction Reports",14,15),e.save("digiGoldtransaction_reports.pdf")},ed=()=>{let e=R.map(e=>({"ORDER ID":e.orderId,TYPE:e.type,"DATE AND TIME":e.dateTime,QTY:"".concat(e.qty," g"),"PURCHASE RATE":e.purchaseRate,GST:e.gst,"TOTAL AMOUNT":e.totalAmount,"TRANSACTION ID":e.transactionId,STATUS:e.status})),t=g.P6.json_to_sheet(e),s=g.P6.book_new();g.P6.book_append_sheet(s,t,"Transaction Reports"),g.NC(s,"buy_sell_transaction_reports.xlsx")};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"xl:container px-4 py-4 flex justify-between ",children:(0,a.jsxs)("div",{className:"flex gap-3 items-center",children:[(0,a.jsx)(c(),{href:"/",className:"text-primary text-base",children:(0,a.jsx)("i",{className:"fas fa-home"})}),(0,a.jsxs)("div",{className:"flex gap-3 items-center mt-1",children:[(0,a.jsx)("span",{className:"text-sm text-gray-500",children:(0,a.jsx)("i",{className:"fas fa-chevron-right "})}),(0,a.jsxs)("p",{className:"text-gray-500 font-medium uppercase ",children:[" ","Wallet "]})]})]})}),(0,a.jsxs)("div",{className:"block xl:container px-4 lg:grid grid-cols-12 items-start gap-6 pt-4 pb-16",children:[(0,a.jsxs)("div",{class:"lg:hidden",children:[(0,a.jsx)("div",{class:"bg-gray-50 p-4 flex items-center justify-center shadow rounded-t-lg",children:(0,a.jsxs)("div",{class:"flex items-center",children:[(0,a.jsx)(n(),{src:h.Z,alt:"User",class:"rounded-full w-14 h-14 border border-gray-300"}),(0,a.jsxs)("div",{class:"ml-3",children:[(0,a.jsx)("p",{class:"text-gray-600",children:"Hello.."}),(0,a.jsxs)("h4",{class:"text-gray-800 font-semibold capitalize",children:[null==Z?void 0:Z.name,".."]})]})]})}),(0,a.jsxs)("div",{class:"flex flex-wrap justify-between p-4 bg-gray-50 shadow rounded-b-lg",children:[(0,a.jsx)("div",{class:"w-1/2 p-2",children:(0,a.jsx)(c(),{href:"/profile/User",class:"flex flex-col items-center bg-white rounded-lg shadow py-3 hover:text-primary",children:(0,a.jsx)("span",{class:"text-xs text-center",children:"Manage Account"})})}),(0,a.jsx)("div",{class:"w-1/2 p-2",children:(0,a.jsx)(c(),{href:"/profile/Address",class:"flex flex-col items-center bg-white rounded-lg shadow py-3 hover:text-primary",children:(0,a.jsx)("span",{class:"text-xs text-center",children:"Manage Address"})})}),(0,a.jsx)("div",{class:"w-1/2 p-2",children:(0,a.jsx)(c(),{href:"/profile/ChangePassword",class:"flex flex-col bg-white items-center rounded-lg shadow py-3 hover:text-primary",children:(0,a.jsx)("span",{class:"text-xs text-center",children:"Change Password"})})}),(0,a.jsx)("div",{class:"w-1/2 p-2",children:(0,a.jsx)(c(),{href:"/profile/orders",class:"flex flex-col items-center bg-white rounded-lg shadow py-3 hover:text-primary",children:(0,a.jsx)("span",{class:"text-xs text-center",children:"My Order History"})})}),Y&&(0,a.jsx)("div",{class:"w-1/2 p-2",children:(0,a.jsx)(c(),{href:"/profile/GoldPlans",class:"flex flex-col items-center bg-white rounded-lg shadow py-3 hover:text-primary",children:(0,a.jsx)("span",{class:"text-xs text-center",children:"Gold Plans"})})}),H&&(0,a.jsx)("div",{class:"w-1/2 p-2",children:(0,a.jsx)(c(),{href:"#",class:"flex flex-col items-center bg-white border-2 border-primary rounded-lg shadow py-3 hover:text-primary",children:(0,a.jsx)("span",{class:"text-xs text-center",children:"Wallet"})})}
1),((null==Z?void 0:Z.user_type)===2||(null==Z?void 0:Z.user_type)===3||3==K)&&(0,a.jsx)("div",{class:"w-1/2 p-2",children:(0,a.jsx)(c(),{href:"/profile/BidAsk",class:"flex flex-col items-center bg-gray-200 rounded-lg shadow py-3 hover:text-primary",children:(0,a.jsx)("span",{class:"text-xs text-center",children:"Bid & Ask"})})}),(0,a.jsx)("div",{class:"w-1/2 p-2",children:(0,a.jsx)(c(),{href:"/profile/Wishlist",class:"flex flex-col items-center bg-white rounded-lg shadow py-3 hover:text-primary",children:(0,a.jsx)("span",{class:"text-xs text-center",children:"My Wishlist"})})}),(0,a.jsx)("div",{class:"w-1/2 p-2",children:(0,a.jsx)("a",{href:"#",onClick:q,class:"flex flex-col items-center rounded-lg shadow py-3 hover:text-primary",children:(0,a.jsx)("span",{class:"text-xs text-center",children:"Logout"})})})]})]}),(0,a.jsxs)("div",{className:"col-span-3 hidden lg:block",children:[(0,a.jsxs)("div",{className:"px-4 py-3 shadow-md rounded-lg flex items-center gap-4",children:[(0,a.jsx)("div",{className:"flex-shrink-0",children:(0,a.jsx)(n(),{src:h.Z,className:"rounded-full w-14 h-14 p-1 object-cover"})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-gray-600",children:"Hello.."}),(0,a.jsxs)("h4",{className:"text-gray-900 capitalize font-semibold",children:[null==Z?void 0:Z.name,".."]})]})]}),(0,a.jsxs)("div",{className:"mt-6 bg-white shadow-md rounded-lg p-4 divide-y divide-gray-200 space-y-4 text-gray-600",children:[(0,a.jsxs)("div",{className:"space-y-1 pl-8",children:[(0,a.jsxs)(c(),{href:"/profile/User",className:"relative text-base font-medium capitalize hover:text-primary transition block",children:["Manage Account",(0,a.jsx)("span",{className:"absolute -left-8 top-0 text-base",children:(0,a.jsx)("i",{className:"far fa-address-card"})})]}),(0,a.jsx)(c(),{href:"/profile/Address",className:"hover:text-primary transition capitalize block",children:"Manage Address"}),(0,a.jsx)(c(),{href:"/profile/ChangePassword",className:"hover:text-primary transition capitalize block",children:"Change Password"})]}),(0,a.jsx)("div",{className:"space-y-1 pl-8 pt-4",children:(0,a.jsxs)(c(),{href:"/profile/orders",className:"relative text-base font-medium capitalize hover:text-primary transition block",children:["My Order History",(0,a.jsx)("span",{className:"absolute -left-8 top-0 text-base",children:(0,a.jsx)("i",{className:"fas fa-gift"})})]})}),Y&&(0,a.jsx)("div",{className:"space-y-1 pl-8 pt-4",children:(0,a.jsxs)(c(),{href:"/profile/GoldPlans",className:"relative text-base font-medium capitalize hover:text-primary transition block",children:["Gold Plans",(0,a.jsx)("span",{className:"absolute -left-8 top-0 text-base",children:(0,a.jsx)("i",{className:"fas fa-crown"})})]})}),H&&(0,a.jsx)("div",{className:"space-y-1 pl-8 pt-4",children:(0,a.jsxs)(c(),{href:"#",className:"relative font-semibold capitalize text-base text-primary hover:text-primary transition block",children:["Wallet ",(0,a.jsx)("span",{className:"absolute -left-8 top-0 text-base",children:(0,a.jsx)("i",{className:"fas fa-wallet"})})]})}),((null==Z?void 0:Z.user_type)===2||(null==Z?void 0:Z.user_type)===3||3==K)&&(0,a.jsx)("div",{className:"space-y-1 pl-8 pt-4",children:(0,a.jsxs)(c(),{href:"/profile/BidAsk",className:"relative text-base font-medium capitalize hover:text-primary transition block",children:["Bid & Ask",(0,a.jsx)("span",{className:"absolute -left-8 top-0 text-base",children:(0,a.jsx)("i",{className:"fas fa-gavel"})})]})}),(0,a.jsx)("div",{className:"space-y-1 pl-8 pt-4",children:(0,a.jsxs)(c(),{href:"/profile/Wishlist",className:"relative text-base font-medium capitalize hover:text-primary transition block",children:["My Wishlist",(0,a.jsx)("span",{className:"absolute -left-8 top-0 text-base",children:(0,a.jsx)("i",{className:"far fa-heart"})})]})}),(0,a.jsx)("div",{className:"space-y-1 pl-8 pt-4",children:(0,a.jsxs)(c(),{href:"#",onClick:q,className:"relative text-base font-medium capitalize hover:text-primary transition block",children:["Logout",(0,a.jsx)("span",{className:"absolute -left-8 top-0 text-base",children:(0,a.jsx)("i",{className:"fas fa-sign-out-alt"})})]})})]})]}),(0,a.jsxs)("div",{className:"col-span-9 mt-6 lg:mt-0 space-y-4 p-4 bg-white rounded-lg shadow-lg",children:[N?(0,a.jsxs)("div",{className:"bg-white shimmer p-6 rounded-lg shadow-lg border border-[#7c1c1c] mx-auto w-full max-w-md",children:[(0,a.jsx)("div",{className:"skeleton h-4 w-48 mx-auto mb-3"}),(0,a.jsx)("div",{className:"text-center py-4",children:(0,a.jsx)("div",{className:"skeleton h-6 w-24 mx-auto"})}),(0,a.jsxs)("div",{className:"bg-white p-4 rounded-lg shadow-md",children:[(0,a.jsx)("div",{className:"flex justify-center",children:(0,a.jsx)("div",{className:"skeleton h-10 w-10 rounded-full"})}),(0,a.jsxs)("div",{className:"flex justify-between items-center mt-4",children:[(0,a.jsxs)("div",{className:"text-center",children:[(0,a.jsx)("div",{className:"skeleton h-4 w-20 mx-auto"}),(0,a.jsx)("div",{className:"skeleton h-6 w-24 mx-auto mt-2"})]}),(0,a.jsxs)("div",{className:"text-center",children:[(0,a.jsx)("div",{className:"skeleton h-4 w-20 mx-auto"}),(0,a.jsx)("div",{className:"skeleton h-6 w-24 mx-auto mt-2"})]})]})]}),(0,a.jsxs)("div",{className:"text-center my-4",children:[(0,a.jsx)("div",{className:"skeleton h-4 w-32 mx-auto mb-2"}),(0,a.jsx)("div",{className:"skeleton h-6 w-20 mx-auto"})]}),(0,a.jsx)("div",{className:"flex justify-center mt-4",children:(0,a.jsx)("div",{className:"skeleton h-10 w-36 rounded-lg"})})]}):(0,a.jsxs)("div",{className:"bg-white p-4 rounded-lg shadow-lg border border-[#7c1c1c] mx-auto w-full max-w-md",children:[(0,a.jsxs)("div",{className:"bg-white p-3 rounded-lg shadow-md text-[#7c1c1c]",children:[(0,a.jsx)("div",{className:"flex justify-center mb-2",children:(0,a.jsx)(A.OZg,{className:"text-xl md:text-2xl lg:text-3xl"})}),(0,a.jsxs)("div",{className:"flex justify-between items-center",children:[(0,a.jsxs)("div",{className:"text-center",children:[(0,a.jsx)("p",{className:"text-xs sm:text-xs md:text-sm lg:text-base font-medium",children:"Amount"}),(0,a.jsx)("p",{className:"text-sm sm:text-sm md:text-base lg:text-lg font-bold",children:U(null==i?void 0:i.wallet_balance)})]}),(0,a.jsxs)("div",{className:"text-center",children:[(0,a.jsx)("p",{className:"text-xs sm:text-xs md:text-sm lg:text-base font-medium",children:"Weight"}),(0,a.jsxs)("p",{className:"text-sm sm:text-sm md:text-base lg:text-lg font-bold",children:[null==i?void 0:i.wallet_weight," gm"]})]})]})]}),(0,a.jsxs)("div",{className:"flex justify-center gap-3 mt-3",children:[(0,a.jsx)("button",{onClick:()=>s.push("/DigiGold/Buy"),className:"py-2 px-4 text-sm sm:text-sm md:text-base lg:text-md bg-[#7c1c1c] text-white rounded-lg shadow-md hover:bg-[#5a1313] transition font-semibold",children:"Buy Now"}),(0,a.jsx)("button",{onClick:()=>s.push("/DigiGold/Sell"),className:"py-2 px-4 text-sm sm:text-sm md:text-base lg:text-md bg-[#7c1c1c] text-white rounded-lg shadow-md hover:bg-[#5a1313] transition font-semibold",children:"Sell Now"})]})]}),k&&k.length>0&&(0,a.jsxs)("div",{className:"p-0 lg:p-4",children:[(0,a.jsx)("h1",{className:"text-xl font-bold text-center text-gray-800 mb
1-8",children:"DigiGold Transaction Reports"}),(0,a.jsxs)("div",{className:"flex flex-col md:flex-row justify-end mb-4 space-y-2 md:space-y-0 md:space-x-2",children:[(0,a.jsx)("button",{onClick:ec,className:"py-2 px-4 bg-red-500 text-white rounded-lg font-semibold shadow-md hover:bg-red-600 focus:outline-none focus:ring-2 focus:ring-red-500 focus:ring-opacity-50 transition duration-300",children:"Export as PDF"}),(0,a.jsx)("button",{onClick:ed,className:"py-2 px-4 bg-blue-500 text-white rounded-lg font-semibold shadow-md hover:bg-blue-600 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-opacity-50 transition duration-300",children:"Export as XLSX"})]}),(0,a.jsx)("div",{style:{overflowX:"auto",whiteSpace:"nowrap"},className:"custom-scrollbar rounded-lg shadow-lg bg-white",children:(0,a.jsxs)("table",{className:"min-w-full bg-white rounded-lg",children:[(0,a.jsx)("thead",{className:"bg-primary text-white uppercase text-sm leading-normal",children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{className:"py-3 px-6 text-center",children:"ORDER ID"}),(0,a.jsx)("th",{className:"py-3 px-6 text-center",children:"TYPE"}),(0,a.jsx)("th",{className:"py-3 px-6 text-center",children:"DATE AND TIME"}),(0,a.jsx)("th",{className:"py-3 px-6 text-center",children:"QTY"}),(0,a.jsx)("th",{className:"py-3 px-6 text-center",children:"PURCHASE RATE"}),(0,a.jsx)("th",{className:"py-3 px-6 text-center",children:"GST"}),(0,a.jsx)("th",{className:"py-3 px-6 text-center",children:"TOTAL AMOUNT"}),(0,a.jsx)("th",{className:"py-3 px-6 text-center",children:"TRANSACTION ID"}),(0,a.jsx)("th",{className:"py-3 px-6 text-center",children:"STATUS"}),(0,a.jsx)("th",{className:"py-3 px-6 text-center",children:"Invoice"}),(0,a.jsx)("th",{className:"py-3 px-6 text-center"})]})}),(0,a.jsx)("tbody",{className:"text-gray-800 text-sm",children:k.length>0?k.map((e,t)=>(0,a.jsxs)(m.E.tr,{className:"border-b border-gray-200 transition duration-300 ".concat(t%2==0?"bg-white":"bg-gray-50"),variants:er,initial:"hidden",animate:"visible",children:[(0,a.jsx)("td",{className:"py-3 px-6 text-center font-medium",children:e.orderId}),(0,a.jsx)("td",{className:"py-3 px-6 text-center",children:e.type}),(0,a.jsx)("td",{className:"py-3 px-6 text-center",children:e.dateTime}),(0,a.jsxs)("td",{className:"py-3 px-6 text-center",children:[e.qty," g"]}),(0,a.jsx)("td",{className:"py-3 px-6 text-center",children:e.purchaseRate}),(0,a.jsx)("td",{className:"py-3 px-6 text-center",children:e.gst}),(0,a.jsx)("td",{className:"py-3 px-6 text-center",children:e.totalAmount}),(0,a.jsx)("td",{className:"py-3 px-6 text-center",children:e.transactionId}),(0,a.jsx)("td",{className:"py-3 px-6 text-center flex items-center gap-2",children:(0,a.jsx)("span",{className:"px-3 py-1 text-sm font-semibold capitalize rounded-full ".concat("Completed"===e.status?"bg-green-100 text-green-800":"Rejected"===e.status?"bg-red-100 text-red-800":"under review"===e.status?"bg-yellow-100 text-yellow-800":"bg-gray-100 text-gray-800"),children:e.status})}),(0,a.jsx)("td",{className:"py-3 px-6 text-center",children:"Completed"==e.status&&(0,a.jsx)("button",{id:"downloadButton",onClick:()=>eo(e.typeId,e.orderId),className:"bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded",children:(0,a.jsx)(A.rcQ,{})})}),(0,a.jsx)("td",{className:"py-3 px-6 text-center flex items-center gap-2",children:4===e.transactionStatus&&(0,a.jsx)("button",{onClick:()=>{O(e.orderId),S(!0)},className:"ml-3 p-2 text-xs font-bold rounded-full bg-primary text-white hover:bg-red-600 transition shadow-lg hover:shadow-xl flex items-center gap-2",children:"Update KYC"})})]},t)):(0,a.jsx)("tr",{children:(0,a.jsx)("td",{colSpan:"9",className:"py-3 px-6 text-center text-gray-500",children:"No transactions available."})})})]})})]})]})]}),(0,a.jsx)(j.Z,{isOpen:E,onClose:()=>I(!1),onConfirm:et}),T&&(0,a.jsx)(v.default,{fetchKycData:ea,buyAndSellId:z,onClose:()=>S(!1),userKycDetails:F,action:"wallet"}),(0,a.jsx)(w.Z,{isOpen:G,type:M.type,title:M.title,subText:M.subText,onConfirm:ee,onClose:ee,autoClose:M.autoClose,confirmLabel:"Ok",cancelLabel:"Close",showConfirmButton:M.showConfirmButton,showCancelButton:M.showCancelButton,showCloseIcon:!0,redirectOnClose:M.redirectOnClose})]})};
1var C=!0;t.default=N},20067:function(){},72061:function(){}},function(e){e.O(0,[4617,5445,7847,2251,7066,3495,5675,1664,9370,6670,17,2940,3975,9774,2888,179],function(){return e(e.s=28938)}),_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.