PageSourceSearch

https://ripplemind.com/_next/static/chunks/pages/customers/my-consignor-invoices-5cfaa77660538384.js

js ripplemind.com collected 2026-10-06 13:15:43 UTC 8,317 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1204],{38056:function(e,r,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/customers/my-consignor-invoices",function(){return s(97265)}])},97265:function(e,r,s){"use strict";s.r(r),s.d(r,{default:function(){return _}});var n=s(85893),o=s(28646),t=s(29552),c=s(88446),i=s(41664),a=s.n(i),l=s(67294),d=s(99603),u=s(59417),h=s(11163),x=s(9008),m=s.n(x),g=s(88754),v=()=>{let e=(0,h.useRouter)(),[r,s]=(0,l.useState)([]),[o,i]=(0,l.useState)([]),[x,v]=(0,l.useState)(-1),[j,N]=(0,l.useState)({loading:!1,success:"",error:""}),[_,b]=(0,l.useState)({id:-1,refer_person_1:"",refer_person_2:"",refer_person_3:"",email_v:-1,mobile_v:-1}),f=async()=>{try{N({loading:!0,success:"",error:""});let n=await c.Z.get("/user/viewuser");if(200===n.status){var r,s;v(null==n?void 0:null===(r=n.data)||void 0===r?void 0:r.id),b(null==n?void 0:n.data),(null==n?void 0:null===(s=n.data)||void 0===s?void 0:s.consignor_user)===128||e.push("/customers")}N({loading:!1,success:"success",error:""})}catch(e){console.error(e),N({loading:!1,success:"",error:"something went wrong"})}},p=async()=>{try{var e,r;N({loading:!0,success:"",error:""});let n=await c.Z.post("/consignorinvoices/getpi_consignor_invoices",{id:x});Array.isArray(null==n?void 0:null===(e=n.data)||void 0===e?void 0:e.data)&&(s(null==n?void 0:null===(r=n.data)||void 0===r?void 0:r.data),N({loading:!1,success:"success",error:""}))}catch(e){console.error(e),N({loading:!1,success:"",error:"something went wrong"})}},y=async()=>{try{var e,r;N({loading:!0,success:"",error:""});let s=await c.Z.post("/consignorinvoices/getconsignor_final_invoices",{id:x});Array.isArray(null==s?void 0:null===(e=s.data)||void 0===e?void 0:e.data)&&(i(null==s?void 0:null===(r=s.data)||void 0===r?void 0:r.data),N({loading:!1,success:"success",error:""}))}catch(e){console.error(e),N({loading:!1,success:"",error:"something went wrong"})}};function w(e){let r=new Date(e),s=r.getDate(),o=r.getMonth(),t=r.getFullYear();return(0,n.jsx)(n.Fragment,{children:" ".concat(s,"-").concat(o,"-").concat(t)})}return(0,l.useEffect)(()=>{f()},[]),(0,l.useEffect)(()=>{p(),y()},[x]),(0,n.jsxs)("div",{className:"lg:mx-28",children:[(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(m(),{children:(0,n.jsx)("title",{children:"Consignor Invoices"})})}),(null==_?void 0:_.email_v)===1&&(null==_?void 0:_.mobile_v)===2?(0,n.jsxs)("div",{className:"container mx-auto",children:[(0,n.jsxs)("div",{className:"container mx-auto bg-gray-200 h-10 lg:my-3 rounded-md p-2 text-gray-500",children:[(0,n.jsx)(a(),{className:"hover:text-red-700",href:"/",children:"Home"}),"\xa0/\xa0",(0,n.jsx)(a(),{className:"hover:text-red-700",href:"/customers",children:"Dashboard"}),"\xa0/\xa0",(0,n.jsx)(a(),{className:"hover:text-red-700",href:"/customers/my-consignor-invoices",children:"My Consignor Invoices"})]}),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("h1",{className:"text-2xl mt-3",children:"My Consignor Note Invoices"}),(0,n.jsx)("div",{className:"overflow-x-auto",children:(0,n.jsxs)("table",{className:"w-full table-auto overflow-scroll border mb-5",children:[(0,n.jsx)("thead",{className:"h-14",children:(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{className:"border",children:"Auction For"}),(0,n.jsx)("th",{className:"border",children:"Invoice Date"}),(0,n.jsx)("th",{className:"border",children:"Pay To"}),(0,n.jsx)("th",{className:"border",children:"Invoice Total "}),(0,n.jsx)("th",{className:"border",children:"Invoice"})]})}),(0,n.jsx)("tbody",{className:" text-center ",children:0!==o.length?o.map((e,r)=>(0,n.jsxs)("tr",{className:"h-10",children:[(0,n.jsx)("td",{className:"border ",children:(null==e?void 0:e.auction_id)&&(null==e?void 0:e.auction_id.toString().slice(0,1))==="2"?"P-Auct# ".concat(null==e?void 0:e.auction_id.toString().slice(2)):(null==e?void 0:e.auction_id.toString().slice(0,1))==="1"?"e-Auct# ".concat(null==e?void 0:e.auction_id.toString().slice(2)):""}),(0,n.jsx)("td",{className:"border",children:w(null==e?void 0:e.receipt_note_date)}),(0,n.jsx)("td",{className:"border",children:null==e?void 0:e.productconsignorDetails[0].user_name}),(0,n.jsxs)("td",{className:"border ",children:[(0,n.jsx)(d.G,{icon:u.H0g})," ",(0,g.b)(null==e?void 0:e.grand_total),"/-"]}),(0,n.jsxs)("td",{className:"border ",children:[" ",(0,n.jsx)("a",{className:"text-cyan-600",target:"_blank",rel:"noreferrer",href:"".concat(t.Z.CDN_URL_PUBLIC,"/users/ConsignorReceiptNote/").concat(null==e?void 0:e.auction_id,"/").concat(null==e?void 0:e.consignor,"/").concat(e.receipt_note),
1children:e.receipt_note})]})]},r)):(0,n.jsx)("tr",{children:(0,n.jsx)("th",{colSpan:5,className:" bg-gray-200 p-3",children:j.loading?(0,n.jsx)("h1",{children:"Please Wait Data is Loading.!"}):(0,n.jsxs)("h1",{className:"font-thin ",children:["Sorry, you have no previous order. click here to"," ",(0,n.jsxs)(a(),{className:"hover:text-blue-500",href:"/",children:[" ","shopping now"]})]})})})})]})})]}),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("h1",{className:"text-2xl mt-3",children:"My Consignor Note Proforma Invoices"}),(0,n.jsx)("div",{className:"overflow-x-auto",children:(0,n.jsxs)("table",{className:"w-full table-auto overflow-scroll border mb-5",children:[(0,n.jsx)("thead",{className:"h-14",children:(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{className:"border",children:"Auction For"}),(0,n.jsx)("th",{className:"border",children:"Invoice Date"}),(0,n.jsx)("th",{className:"border",children:"Pay To"}),(0,n.jsx)("th",{className:"border",children:"Invoice Total "}),(0,n.jsx)("th",{className:"border",children:"Invoice"})]})}),(0,n.jsx)("tbody",{className:" text-center ",children:0!==r.length?r.map((e,r)=>(0,n.jsxs)("tr",{className:"h-10",children:[(0,n.jsx)("td",{className:"border ",children:(null==e?void 0:e.auction_id.toString().slice(0,1))==="2"?"P-Auct# ".concat(null==e?void 0:e.auction_id.toString().slice(2)):"e-Auct# ".concat(null==e?void 0:e.auction_id.toString().slice(2))}),(0,n.jsx)("td",{className:"border",children:w(null==e?void 0:e.receipt_note_date)}),(0,n.jsx)("td",{className:"border",children:null==e?void 0:e.piconsignorDetails[0].user_name}),(0,n.jsxs)("td",{className:"border ",children:[(0,n.jsx)(d.G,{icon:u.H0g})," ",(0,g.b)(null==e?void 0:e.grand_total),"/-"]}),(0,n.jsxs)("td",{className:"border ",children:[" ",(0,n.jsx)("a",{className:"text-cyan-600",target:"_blank",rel:"noreferrer",href:"".concat(t.Z.CDN_URL_PUBLIC,"/users/ConsignorPI/").concat(null==e?void 0:e.auction_id,"/").concat(null==e?void 0:e.consignor,"/").concat(e.receipt_note),children:e.receipt_note})]})]},r)):(0,n.jsx)("tr",{children:(0,n.jsx)("th",{colSpan:5,className:" bg-gray-200 p-3",children:j.loading?(0,n.jsx)("h1",{children:"Please Wait Data is Loading.!"}):(0,n.jsxs)("h1",{className:"font-thin ",children:["Sorry, you have no previous order. click here to"," ",(0,n.jsxs)(a(),{className:"hover:text-blue-500",href:"/",children:[" ","shopping now"]})]})})})})]})})]})]}):(0,n.jsx)("h1",{className:"text-center text-xl",children:"You need to Verify your email and mobile"})]})},j=s(94543),N=s(48583),_=()=>{let e=(0,N.Dv)(j.ZP);return e.loading?(0,n.jsx)("p",{className:"md:mx-28 text-center p-5",children:"Loading..."}):e.isLoggedIn?(0,n.jsx)(v,{}):(0,n.jsx)(o.Z,{})}},28646:function(e,r,s){"use strict";var n=s(85893),o=s(41664),t=s.n(o),c=s(11163);s(67294),r.Z=()=>{let e=(0,c.useRouter)(),r=e.asPath;return(0,n.jsxs)("div",{className:"md:mx-28 text-center text-red-500 p-10 bg-gray-100 text-xl",children:["Your are not Logged in to use this functionality .......! ",(0,n.jsx)("br",{}),(0,n.jsx)(t(),{className:"text-blue-500",href:"/login?re_url=".concat(r),children:"Click here to Login"})]})}},88754:function(e,r,s){"use strict";s.d(r,{b:function(){return n}});let n=e=>{try{let r="";if("number"==typeof e?r=e.toString():"string"==typeof e&&(r=e),r.includes("-")){let[e,s]=r.split("-");return o(e)+"-"+o(s)}return o(r)}catch(e){return console.error("Error formatting number:",e),"-"}},o=e=>{try{let r="",s=0,[n,o]=e.split(".");for(let e=n.length-1;e>=0;e--)r=n[e]+r,s++,3===s&&e>0?r=","+r:s>3&&(s-3)%2==0&&e>0&&(r=","+r);return o&&(r+="."+o),r}catch(e){return console.error("Error formatting part of the number:",e),"-"}}},9008:function(e,r,s){e.exports=s(42636)}},function(e){e.O(0,[9774,2888,179],function(){return e(e.s=38056)}),_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.