PageSourceSearch

https://ripplemind.com/_next/static/chunks/pages/test/socket-test/…/[auctionNo]-0cc7fa14fc1fff1a.js

js ripplemind.com collected 2026-10-06 13:17:13 UTC 6,209 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6828],{73916:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/test/socket-test/socket-eauction-test-time/[auctionNo]",function(){return r(94557)}])},94557:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return _}});var i=r(85893),n=r(29552),o=r(6154),u=r(67294),d=r(53920),s=r(11163),l=r(30120),a=r(88446);let c=e=>{let{auctionNo:t}=e,[r,s]=(0,u.useState)({serverTimeValueOf:0,serverTimeDiff:0}),[c,_]=(0,u.useState)({id:-1,code:-1,title:-1,imagesArr:[],bid:-1,bidder:-1,s_bid:-1,s_bidder:-1,next_slab:-1,minimum_price:-1,status:-1,product_current_lot_start_time:null,product_current_lot_duration:0}),[m,v]=(0,u.useState)(""),f=(0,u.useRef)(!1);(0,u.useEffect)(()=>(!1===f.current&&(y(),g()),()=>{f.current=!0}),[]),(0,u.useEffect)(()=>{setInterval(()=>{let e=l.ou.now().setZone("Asia/Kolkata").toFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'").toString();v(e)},1e3)},[]),(0,u.useEffect)(()=>{b()},[]),(0,u.useEffect)(()=>{setInterval(()=>{b()},5e3)},[]);let[h,p]=(0,u.useState)({pageSize:"lg",width:-1,height:-1});(0,u.useEffect)(()=>{function e(){let{innerWidth:e,innerHeight:t}=window;e>=992?p({pageSize:"lg",width:e,height:t}):p({pageSize:"sm",width:e,height:t})}return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);let b=async()=>{try{let e=await a.Z.get("".concat(n.Z.BACKEND_URL,"/api/main/auction_no_archive/get-server-current-time"));console.log(e.data.timeValueOf),s({serverTimeValueOf:e.data.timeValueOf,serverTimeDiff:new Date().valueOf()+198e5-e.data.timeValueOf})}catch(e){console.error(e),s({serverTimeValueOf:new Date().valueOf(),serverTimeDiff:0})}},x=e=>{let t={id:-1,code:-1,title:-1,imagesArr:[],bid:-1,bidder:-1,s_bid:-1,s_bidder:-1,next_slab:-1,minimum_price:-1,status:-1,product_current_lot_start_time:null,product_current_lot_duration:0};return"number"==typeof(null==e?void 0:e.id)&&(t.id=null==e?void 0:e.id),"number"==typeof(null==e?void 0:e.code)&&(t.code=null==e?void 0:e.code),"string"==typeof(null==e?void 0:e.title)&&(t.title=null==e?void 0:e.title),"number"==typeof(null==e?void 0:e.bid)&&(t.bid=null==e?void 0:e.bid),"number"==typeof(null==e?void 0:e.bidder)&&(t.bidder=null==e?void 0:e.bidder),"number"==typeof(null==e?void 0:e.s_bid)&&(t.s_bid=null==e?void 0:e.s_bid),"number"==typeof(null==e?void 0:e.s_bidder)&&(t.s_bidder=null==e?void 0:e.s_bidder),"number"==typeof(null==e?void 0:e.next_slab)&&(t.next_slab=null==e?void 0:e.next_slab),"number"==typeof(null==e?void 0:e.minimum_price)&&(t.minimum_price=null==e?void 0:e.minimum_price),"number"==typeof(null==e?void 0:e.status)&&(t.status=null==e?void 0:e.status),"string"==typeof(null==e?void 0:e.product_current_lot_start_time)&&(t.product_current_lot_start_time=new Date(null==e?void 0:e.product_current_lot_start_time)),"number"==typeof(null==e?void 0:e.product_current_lot_duration)&&(t.product_current_lot_duration=null==e?void 0:e.product_current_lot_duration),t},y=async()=>{try{let e=await j();e.on("auction-1-".concat(t),e=>{try{w(e)}catch(e){console.error(e)}})}catch(e){console.error(e)}},j=async()=>(0,d.io)(n.Z.BACKEND_URL_SOCKET),g=async()=>{try{var e;let r=await o.default.get("".concat(n.Z.BACKEND_URL,"/api/main/page-realtime-bidding-eauction/get-product-list-by-auction-no-cache?auction_no=").concat(t)),i=null===(e=r.data)||void 0===e?void 0:e.data;i&&w(i)}catch(e){console.error(e)}},w=async e=>{try{if(!e)return;let t=[];for(let r=0;r<e.productArrCurrent.length;r++){let i=e.productArrCurrent[r];if(2===i.status){let e=x(i);t.push(e)}}t.length>=1?_(t[0]):_({id:-1,code:-1,title:-1,imagesArr:[],bid:-1,bidder:-1,s_bid:-1,s_bidder:-1,next_slab:-1,minimum_price:-1,status:-1,product_current_lot_start_time:null,product_current_lot_duration:0})}catch(e){console.error(e)}};return(0,i.jsx)("div",{className:"container m-auto py-10 px-3",children:(0,i.jsx)("div",{children:(0,i.jsxs)("div",{style:{maxWidth:"500px",margin:"0 auto"},children:[(0,i.jsx)("h1",{children:"Socket Eauction Test"}),(0,i.jsxs)("div",{children:["auctionNo: ",t]}),(0,i.jsx)("hr",{}),(0,i.jsxs)("div",{children:["Server time: ",r.serverTimeValueOf]}),(0,i.jsxs)("div",{children:["Server time: ",r.serverTimeDiff]}),(0,i.jsx)("hr",{}),(0,i.jsx)("div",{children:(0,i.jsx)("div",{children:(0,i.jsx)("div",{children:(0,i.jsxs)("div",{children:[(0,i.jsx)("h2",{children:"Current"}),(0,i.jsx)("div",{}),(0,i.jsxs)("div",{className:"max-w-screen-sm",children:[(0,i.jsx)("hr",{}),(0,i.jsx)("h1",{children:c.title}),(0,i.jsxs)("div",{children:["code: ",c.code]}),(0,i.jsxs)("div",{children:["Bid: ",c.bid]}),(0,i.jsx)("hr",{}),(0,i.jsxs)("div",{children:["Current Date Time: ",m]}),c.product_current_lot_start_time&&(0,i.jsxs)("div",{children:["Start Date Time: ",new Date(c.product_current_lot_start_time).toString()]}),(0,i.jsxs)("div",{children:["Duration: ",c.product_current_lot_duration]}),(0,i.jsx)("hr",{}),(0,i.jsxs)("div",{children:["Time remaining default: ",((e,t)=>
1{try{if(!e)return"-";let r=new Date(e),i=l.ou.fromJSDate(r).minus({hours:5,minutes:30}).plus({second:t}).setZone("Asia/Kolkata").toRelative();if("string"==typeof i)return"".concat(i,"-").concat(1e4*Math.random());return""}catch(e){return"expired"}})(c.product_current_lot_start_time,c.product_current_lot_duration)]}),(0,i.jsx)("hr",{}),(0,i.jsxs)("div",{children:["Time remaining adjusted: ",((e,t)=>{try{if(!e)return"-";let i=new Date(e),n=l.ou.fromJSDate(i).minus({hours:5,minutes:30}).plus({second:t}).plus({milliseconds:r.serverTimeDiff}).setZone("Asia/Kolkata").toRelative();if("string"==typeof n)return"".concat(n,"-").concat(1e4*Math.random());return""}catch(e){return"expired"}})(c.product_current_lot_start_time,c.product_current_lot_duration)]}),(0,i.jsx)("hr",{})]})]})})})})]})})})};var _=()=>{let e=(0,s.useRouter)(),[t,r]=(0,u.useState)(-1);return(0,u.useEffect)(()=>{if(e.isReady){var t,i;if("string"==typeof(null===(t=e.query)||void 0===t?void 0:t.auctionNo)){let t=parseInt(null===(i=e.query)||void 0===i?void 0:i.auctionNo);t>=1&&r(t)}else console.error("not valid")}},[e.isReady]),(0,i.jsx)("div",{children:t>=1&&(0,i.jsx)(c,{auctionNo:t})})}}},function(e){e.O(0,[120,9774,2888,179],function(){return e(e.s=73916)}),_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.