PageSourceSearch

https://ripplemind.com/_next/static/chunks/pages/customers/my-printed-auction-wishlist-b178a8f59d7ed5d7.js

js ripplemind.com collected 2026-10-06 13:15:49 UTC 13,254 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9506],{46303:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/customers/my-printed-auction-wishlist",function(){return r(3720)}])},3720:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return j}});var l=r(85893),i=r(28646),o=r(88446),n=r(67294),s=r(29552),a=r(41664),c=r.n(a),d=r(99603),u=r(59417),h=r(22632),v=r(61839),g=r(48583),x=r(94543),m=r(9008),p=r.n(m),y=r(11163),b=r(88754),f=function(){var e;let t=(0,g.Dv)(x.ZP),r=null==t?void 0:null===(e=t.userDetails)||void 0===e?void 0:e.status,i=(0,y.useRouter)(),a=(0,n.useRef)(null),[m,f]=(0,n.useState)({loading:!1,success:"",error:""}),[j,N]=(0,n.useState)([]),[w,A]=(0,n.useState)(1),[_,S]=(0,n.useState)(1),[k,C]=(0,n.useState)(0),[D,Z]=(0,n.useState)("");(0,n.useEffect)(()=>{Z(window.location.href)},[i]);let E=async()=>{try{var e,t,r;f({loading:!0,success:"",error:""});let l=await o.Z.post("pauction-live-wishlist/get-product-2-live-wish-list",{page_enabled:"y",page:w,limit:10,sortDetails:{sortKey:"id",sortType:-1},searchDetails:[]});Array.isArray(null==l?void 0:null===(e=l.data)||void 0===e?void 0:e.data)&&(N(null==l?void 0:null===(t=l.data)||void 0===t?void 0:t.data),C(null==l?void 0:null===(r=l.data)||void 0===r?void 0:r.count)),f({loading:!1,success:"success",error:""})}catch(e){console.error(e),f({loading:!1,success:"error",error:""})}};(0,n.useEffect)(()=>{E()},[w]);let P=async e=>{try{let t=await o.Z.post("pauction-live-wishlist/delete-by-id-product-2-live-wish-list",{id:e},{headers:{frontendurl:D||""}});200===t.status&&E()}catch(e){console.error(e)}};return(0,l.jsxs)("div",{className:"lg:mx-28",children:[(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(p(),{children:(0,l.jsx)("title",{children:"Printed-Auction Wishlist"})})}),r.split(",").includes("1")&&r.split(",").includes("2")?(0,l.jsxs)("div",{className:"container mx-auto",children:[(0,l.jsxs)("div",{className:"container mx-auto bg-gray-200 h-10 lg:my-3 rounded-md p-2 text-gray-500",children:[(0,l.jsx)(c(),{className:"hover:text-red-700",href:"/",children:"Home"}),"\xa0/\xa0",(0,l.jsx)(c(),{className:"hover:text-red-700",href:"/customers",children:"Dashboard"}),"\xa0/\xa0",(0,l.jsx)(c(),{className:"hover:text-red-700",href:"/customers/my-printed-auction-wishlist",children:"Printed Auction Wishlist"})]}),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"py-3 flex flex-row justify-between",children:[(0,l.jsx)("h1",{className:"text-2xl ",children:"My Printed Auction Wishlist"}),(0,l.jsxs)("div",{className:"flex space-x-5",children:[(0,l.jsx)("button",{onClick:()=>{try{for(let e=0;e<j.length;e++)j[e].id&&P(j[e].id)}catch(e){console.error(e)}},className:"bg-red-500 p-1 outline-none rounded-md text-white",children:"Empty Wishlist"}),(0,l.jsx)("div",{ref:a,className:"flex md:space-x-3",children:(0,l.jsx)(e=>{let t=e.total_count,r=e.per_page,i=e.page,o=Math.ceil(t/r),n=[],s=i-2<1?1:i-2,c=i+2<=o?i+2:o;n.push({pageNo:1});for(let e=s;e<=c;e++)e>1&&e<o&&n.push({pageNo:e});let h=e=>{e>0&&(S(e),A(e))};return(0,l.jsx)(l.Fragment,{children:o>1&&(0,l.jsx)("div",{className:"flex xxxs:pb-5",children:(0,l.jsx)("nav",{children:(0,l.jsxs)("ul",{className:"flex -space-x-px h-4 text-sm lining-nums",children:[i>1&&(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("li",{onClick:()=>{h(i-1)},className:"flex items-center justify-center px-3 h-7 ml-0 leading-tight text-gray-500 bg-white border cursor-pointer border-gray-300 rounded-l-lg hover:bg-gray-100 hover:text-gray-700",children:(0,l.jsx)(d.G,{icon:u.EyR,className:"w-2.5 h-2.5"})})}),n.map((e,t)=>(0,l.jsx)(l.Fragment,{children:e.pageNo<=o&&(0,l.jsx)("li",{onClick:()=>{var t;h(e.pageNo),null===(t=a.current)||void 0===t||t.scrollIntoView()},value:e.pageNo,className:"flex items-center justify-center px-3 h-7 leading-tight cursor-pointer border-gray-300 border ".concat(e.pageNo===i?"bg-gray-100 hover:text-gray-700 ":" text-gray-500 bg-white hover:bg-gray-100 hover:text-gray-700 "),children:e.pageNo},t)})),(0,l.jsx)("li",{onClick:e=>{h(e.target.value)},value:o,className:"flex items-center justify-center px-3 h-7 leading-tight cursor-pointer border-gray-300 border ".concat(i==o?"bg-gray-100 hover:text-gray-700 ":" text-gray-500 bg-white hover:bg-gray-100 hover:text-gray-700 "),children:o}),i<o&&(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("li",{onClick:()=>{h(i+1)},className:"flex    items-center justify-center px-3 h-7 leading-tight text-gray-500 bg-white border border-gray-300 rounded-r-lg cursor-pointer hover:bg-gray-100 hover:text-gray-700 ",children:(0,l.jsx)(d.G,{icon:u.yOZ,className:"w-2.5 h-2.5"})})})]})})})})},{total_count:k,per_page:10,page:w})})]})]}),(0,l.jsx)("div",{className:"overflow-x-auto",children:(0,l.jsxs)("table",{className:"w-full border overflow-scroll table-auto my-5",children:[(0,l.jsx)("thead",{className:"h-14",children:(0,l.jsxs)("tr",{children:[(0,l.jsx)("th",{className:"border",children:"S.No"}),(0,l.jsx)("th",{className:"border",children:"Images"}),(0,l.jsx)("th",{className:"border",children:"Title"}),(0,l.jsx)("th",{className:"border",children:"Start Price"}),(0,l.jsx)("th",{className:"border",children:"Estimated Price"}),(0,l.jsx)("th",{className:"border",children:"Current Bid"}),(0,l.jsx)("th",{className:"border",children:" Pre Bidding End Time"}),(0,l.jsx)("th",{className:"border",children:"No of Bids"}),(0,l.jsx)("th",{className:"border",children:"Action"})]})}),(0,l.jsx)("tbody",{className:" text-center ",children:"success"===m.success&&j.length>0?j.map((e,r)=>{var i,o,a,g,x,m,p,y,f,j,N,A,_,S,k,C,D,Z,E;let I=null==e?void 0:e.code.toString().slice(-4),T=I.toString();parseInt(T,10),null==e||e.code.toString().slice(0,4);let F=parseInt(e.code.toString().substring(2,4)),L=(0,h.Z)({category:[null===(i=null==e?void 0:e.productArr[0])||void 0===i?void 0:i.category1Details,null===(o=null==e?void 0:e.productArr[0])||void 0===o?void 0:o.category2Details,null===(a=null==e?void 0:e.productArr[0])||void 0===a?void 0:a.category3Details,null===(g=null==e?void 0:e.productArr[0])||void 0===g?void 0:g.category4Details,null===(x=null==e?void 0:e.productArr[0])||void 0===x?void 0:x.category5Details],title:null===(m=null==e?void 0:e.productArr[0])||void 0===m?void 0:m.title,auction:F,code:e.code,auctiontype:"live-p-auction",type:1,isLive:0});return(0,l.jsxs)("tr",{className:"h-10",children:[(0,l.jsxs)("td",{className:"border ",children:[" ",r+(w-1)*10+1]}),(0,l.jsx)("td",{className:"border md:w-[10%] p-2 ",children:Array.isArray(null===(p=null==e?void 0:e.productArr[0])||void 0===p?void 0:p.imagesArr)&&(0,l.jsx)(n.Fragment,{children:(null===(y=null==e?void 0:e.productArr[0])||void 0===y?void 0:y.imagesArr).slice(0,1).map((e,t)=>{let r=[...e],i=r.slice(0,4).join("").toString(),o=r.splice(9,1).toString(),n="";return"0"===o&&(n="t"),"1"===o&&(n="s"),"2"===o&&(n="m"),"3"===o&&(n="l"),"9"===o&&(n="o"),(0,l.jsx)("img",{className:"lg:h-32  roun
1ded-md",src:"".concat(s.Z.CDN_URL_PUBLIC,"/uploads/").concat(n,"/").concat(i,"/").concat(e)},t)})})}),(0,l.jsxs)("td",{className:"border overflow-auto text-start px-3 w-[25%]",children:[(0,l.jsx)(c(),{className:"hover:text-blue-500  text-lg ",href:L,children:(0,l.jsxs)("strong",{children:["SKU #",null==e?void 0:e.code]})}),(0,l.jsx)("br",{}),(0,l.jsx)(c(),{className:"hover:text-blue-500 ",href:L,children:(null===(f=null==e?void 0:e.productArr[0])||void 0===f?void 0:f.title.length)>60?(null===(j=null==e?void 0:e.productArr[0])||void 0===j?void 0:j.title.slice(0,60))+"...":null===(N=null==e?void 0:e.productArr[0])||void 0===N?void 0:N.title})]}),(0,l.jsxs)("td",{className:"border ",children:["₹",(0,b.b)(null===(A=null==e?void 0:e.productArr[0])||void 0===A?void 0:A.minimum_price)]}),(0,l.jsxs)("td",{className:"border ",children:["₹",(0,b.b)(null===(_=null==e?void 0:e.productArr[0])||void 0===_?void 0:_.estimated_price)]}),(0,l.jsx)("td",{className:"border text-center align-middle",children:(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center",children:[(0,l.jsx)("span",{children:(null===(S=null==e?void 0:e.productArr[0])||void 0===S?void 0:S.bid)>0?"₹".concat((0,b.b)(null===(k=null==e?void 0:e.productArr[0])||void 0===k?void 0:k.bid)):""}),(null===(C=null==e?void 0:e.productArr[0])||void 0===C?void 0:C.bidder)===(null==t?void 0:null===(D=t.userDetails)||void 0===D?void 0:D.user_id)?(0,l.jsx)("span",{className:"text-green-700",children:"You're the highest Bidder"}):(0,l.jsx)(c(),{href:L,children:(0,l.jsx)("button",{className:"px-3 py-1 bg-gray-200 hover:bg-gray-300 mt-2 rounded-md",children:"Bid Now"})})]})}),(0,l.jsxs)("td",{className:"border w-32 break-words ",children:[(0,v.Z)(null===(Z=null==e?void 0:e.productArr[0])||void 0===Z?void 0:Z.pre_bidding_endtime_1,"MMMM dd, yyyy , hh:mm a")," "]}),(0,l.jsx)("td",{className:"border ",children:null===(E=null==e?void 0:e.productArr[0])||void 0===E?void 0:E.no_of_bids}),(0,l.jsx)("td",{className:"border md:w-[7%] xxxs:space-x-2 md:space-x-3 text-lg",children:(0,l.jsx)(d.G,{onClick:()=>{P(e.id)},className:"text-red-500 cursor-pointer hover:translate-y-[.05rem] hover:text-red-700 ",icon:u.Vui})})]},r)}):(0,l.jsx)("tr",{children:(0,l.jsx)("th",{colSpan:8,className:" bg-gray-200 p-3",children:"Wishlist is empty"})})})]})})]})]}):(0,l.jsx)("h1",{className:"text-center text-xl",children:"You need to Verify your email and mobile"})]})},j=()=>{let e=(0,g.Dv)(x.ZP);return e.loading?(0,l.jsx)("p",{className:"md:mx-28 text-center p-5",children:"Loading..."}):e.isLoggedIn?(0,l.jsx)(f,{}):(0,l.jsx)(i.Z,{})}},28646:function(e,t,r){"use strict";var l=r(85893),i=r(41664),o=r.n(i),n=r(11163);r(67294),t.Z=()=>{let e=(0,n.useRouter)(),t=e.asPath;return(0,l.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,l.jsx)("br",{}),(0,l.jsx)(o(),{className:"text-blue-500",href:"/login?re_url=".concat(t),children:"Click here to Login"})]})}},22632:function(e,t){"use strict";let r=e=>{var t,r,l;let i=null==e?void 0:e.replace(/[^\w\s]/g," "),o=null===(t=null==i?void 0:i.toLowerCase())||void 0===t?void 0:t.replace(/\s+/g,"-");return null===(r=null===(l=null==o?void 0:o.replace(/[^a-zA-Z0-9-]/g,""))||void 0===l?void 0:l.replace(/-{2,}/g,"-"))||void 0===r?void 0:r.replace(/^-+|-+$/g,"")};t.Z=e=>{try{var t,l,i;let o="",n="",s=e.code,a=e.isLive,c=null==s?void 0:s.toString().slice(-4),d=null==c?void 0:c.toString(),u=parseInt(null===(t=parseInt(d,10))||void 0===t?void 0:t.toString()),h=parseInt(null==s?void 0:s.toString().substring(0,2)),v=e.auctiontype;if("all"===v)switch(h){case 10:v=1==a?"live-e-auction":"e-auction-archive";break;case 20:v=1==a?"live-p-auction":"p-auction-archive";break;case 30:v="e-shop"}if(1===e.type){for(let t of e.category)if(Array.isArray(t)&&(null==t?void 0:t.length)>0){let e=t[0];if("number"==typeof(null==e?void 0:e.id)&&"string"==typeof(null==e?void 0:e.category)&&(null===(l=e.cat_url)||void 0===l?void 0:l.length)>0){let t=r(null==e?void 0:e.cat_url);n+="".concat(t,"/")}}}else if(2===e.type){for(let t of e.category)if(Array.isArray(t)&&(null==t?void 0:t.length)>0){let e=t[0];if("number"==typeof(null==e?void 0:e.id)&&"string"==typeof(null==e?void 0:e.category)&&(null===(i=e.cat_url)||void 0===i?void 0:i.length)>0){let t=r(null==e?void 0:e.cat_url);n+="".concat(t,"/")}}}let g=r(e.title),x=n.substring(0,(null==n?void 0:n.length)-1);switch(v){case"p-auction-archive":o="/printed-auction/auction-no-".concat(e.auction,"/lot-no-").concat(u,"/").concat(x,"/").concat(g);break;case"e-auction-archive":o="/e-auction/auction-no-".concat(e.auction,"/lot-no-").concat(u,"/").concat(x,"/").concat(g);break;
1case"live-p-auction":o="/live-printed-auction/auction-no-".concat(e.auction,"/lot-no-").concat(u,"/").concat(x,"/").concat(g);break;case"live-e-auction":o="/live-e-auction/auction-no-".concat(e.auction,"/lot-no-").concat(u,"/").concat(x,"/").concat(g);break;case"e-shop":o="/e-shop/pid-no-".concat(u,"/").concat(x,"/").concat(g)}return o}catch(e){console.error(e)}return""}},88754:function(e,t,r){"use strict";r.d(t,{b:function(){return l}});let l=e=>{try{let t="";if("number"==typeof e?t=e.toString():"string"==typeof e&&(t=e),t.includes("-")){let[e,r]=t.split("-");return i(e)+"-"+i(r)}return i(t)}catch(e){return console.error("Error formatting number:",e),"-"}},i=e=>{try{let t="",r=0,[l,i]=e.split(".");for(let e=l.length-1;e>=0;e--)t=l[e]+t,r++,3===r&&e>0?t=","+t:r>3&&(r-3)%2==0&&e>0&&(t=","+t);return i&&(t+="."+i),t}catch(e){return console.error("Error formatting part of the number:",e),"-"}}},61839:function(e,t,r){"use strict";var l=r(30120);t.Z=(e,t)=>{try{if(!e)return"Date does not exist";let r=new Date(e),i=r.valueOf();if("number"!=typeof i||isNaN(i))return"Invalid Date";let o={year:r.getUTCFullYear(),month:r.getUTCMonth(),date:r.getUTCDate(),hours:r.getUTCHours(),minutes:r.getUTCMinutes(),seconds:r.getUTCSeconds()},n=l.ou.fromObject({year:o.year,month:o.month+1,day:o.date,hour:o.hours,minute:o.minutes,second:o.seconds});if(t.length>0)return n.setZone("Asia/Kolkata").toFormat(t).toString();return n.setZone("Asia/Kolkata").toString()}catch(e){return console.error(e),"Invalid Date"}}},9008:function(e,t,r){e.exports=r(42636)}},function(e){e.O(0,[120,9774,2888,179],function(){return e(e.s=46303)}),_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.