PageSourceSearch

https://ripplemind.com/_next/static/chunks/5821-ce478a56370cfbec.js

js ripplemind.com collected 2026-10-06 13:17:58 UTC 14,345 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5821],{7103:function(e,r,s){"use strict";var t=s(85893);s(67294);var n=s(88446),a=s(29552);let l=async e=>{try{let r=e.type,s=e.payment_details,t=e.payment_type,l=async e=>{try{let r=await n.Z.post("/payment/initiate_membership",{orderId:e});return null==r?void 0:r.data.payload}catch(e){return console.error(e),""}},o=async(e,r)=>{try{let s=0,t=0;e>0&&r>0&&(s=e,t=r);let a={planType:s,amount:t},l=await n.Z.post("/order/create_membership",a);if(200===l.status){let e=null==l?void 0:l.data.orderId;return{orderID:e,status:"success"}}}catch(e){return console.error(e),{}}};if("number"==typeof r&&4===r&&"object"==typeof s&&Object.keys(s).length>0){let e=s.plan,r=s.membershipAmt,n=0,i="";if("string"==typeof t&&"original"===t){let s=await o(e,r);"object"==typeof s&&Object.keys(s).length>0&&"string"==typeof s.status&&"success"===s.status&&(n=s.orderID)}"string"==typeof t&&"try-again"===t&&(n=s.order_id);let c=await l(n);if(c.length>0){i=c;let e=document.createElement("form");e.method="POST",e.action="".concat(a.Z.PAYMENT_GATEWAY_URL);let r=document.createElement("input");r.type="hidden",r.name="encRequest",r.value=i,e.appendChild(r);let s=document.createElement("input");s.type="hidden",s.name="access_code",s.value="".concat(a.Z.PAYMENT_GATEWAY_ACCESS_CODE),e.appendChild(s),document.body.appendChild(e),e.submit()}}}catch(e){console.error(e)}return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("div",{className:"text-center",children:(0,t.jsx)("h4",{children:"please do not refresh the page........"})})})};r.Z=l},28646:function(e,r,s){"use strict";var t=s(85893),n=s(41664),a=s.n(n),l=s(11163);s(67294),r.Z=()=>{let e=(0,l.useRouter)(),r=e.asPath;return(0,t.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,t.jsx)("br",{}),(0,t.jsx)(a(),{className:"text-blue-500",href:"/login?re_url=".concat(r),children:"Click here to Login"})]})}},26656:function(e,r,s){"use strict";var t=s(85893),n=s(59417),a=s(99603),l=s(88446),o=s(41664),i=s.n(o),c=s(67294),d=s(86501),u=s(11163),h=s(7103),m=s(48583),x=s(94543),p=s(9008),f=s.n(p),b=s(88754);r.Z=function(){var e;let r=(0,u.useRouter)(),s=(0,m.Dv)(x.ZP),o=null==s?void 0:null===(e=s.userDetails)||void 0===e?void 0:e.status,[p,g]=(0,c.useState)({loading:!1,success:"",error:""}),[_,j]=(0,c.useState)({loading:!1,success:"",error:""}),[y,v]=(0,c.useState)({loading:!1,success:"",error:""}),[N,w]=(0,c.useState)(-1),[E,P]=(0,c.useState)({id:-1,refer_person_1:"",refer_person_2:"",refer_person_3:"",email_v:-1,mobile_v:-1}),[R,C]=(0,c.useState)({refer_person_1:"",refer_person_2:"",refer_person_3:""}),[S,A]=(0,c.useState)([]),[D,Z]=(0,c.useState)({plan:0,membershipAmt:0,order_id:0}),[k,F]=(0,c.useState)(-1),[O,G]=(0,c.useState)(""),[I,M]=(0,c.useState)("");(0,c.useEffect)(()=>{M(window.location.href)},[r]),(0,c.useEffect)(()=>{T(),L()},[]),(0,c.useEffect)(()=>{var e;o.split(",").includes("1")||(d.ZP.error("You need to verify your email",{duration:3e3,icon:(0,t.jsx)(a.G,{icon:n.FU$})}),r.push("/customers/profile")),(null==s?void 0:null===(e=s.userDetails)||void 0===e?void 0:e.user_id)!==-1&&o.split(",").includes("1")&&Y()},[s]);let T=async()=>{try{let r=await l.Z.get("/user/viewuser");if(200===r.status){var e;P(null==r?void 0:r.data),w(null==r?void 0:null===(e=r.data)||void 0===e?void 0:e.id)}}catch(e){console.error(e)}},Y=async()=>{try{j({loading:!0,success:"",error:""});let e=await l.Z.post("/shipping_address/getshipping_address_user",{sortDetails:{sortKey:"id",sortType:1},searchDetails:[]}),s=null==e?void 0:e.data.data,o=s.filter(e=>2===e.status);o.length?F(o[0].id):(d.ZP.success("You need to have billing address",{duration:3e3,icon:(0,t.jsx)(a.G,{icon:n.hVn})}),r.push("/customers/buyer-address")),j({loading:!1,success:"success",error:""})}catch(e){console.error(e),j({loading:!1,success:"error",error:""})}},L=async()=>{try{var e;let r=await l.Z.get("/become_bidder/getMember_plans_client");A(null==r?void 0:null===(e=r.data)||void 0===e?void 0:e.data),g({loading:!1,success:"success",error:""})}catch(e){console.error(e),g({loading:!1,success:"error",error:""})}},B=async()=>{try{let e=!1,r={refer_person_1:"",refer_person_2:"",refer_person_3:""};if(r.refer_person_1="",0===E.refer_person_1.length?(r.refer_person_1="required",e=!0):E.refer_person_1.length>100&&(r.refer_person_1="Only 100 character allowed",e=!0),r.refer_person_2="",0===E.refer_person_2.length?(r.refer_person_2="required",e=!0):E.refer_person_2.length>100&&(r.refer_person_2="Only 100 character allowed",e=!0),r.refer_person_3="",0===E.refer_person_3.length?(r.refer_person_3="required",e=!0):E.refer_person_3.length>100&&(r.refer_person_3="Only 100 character allowed",e=!0),C({...R,...r}),e)return!0;return!1}catch(e){console.error(e)}},q=async()=>{try{let e=await B();if(e){v({loading:!1,success:"",error:"Enter all the required fields"});return}v({loading:!0,success:"",error:""});let r={id:N,refer_person_1:E.refer_person_1,refer_person_2:E.refer_person_2,refer_person_3:E.refer_person_3};await l.Z.post("/become_bidder/addReference",{...r},{headers:{frontendurl:I||""}}),d.ZP.success("Profile Update successfully"),v({loading:!1,success:"profile updated successfully",error:""})}catch(e){console.error(e),d.ZP.error("something went wrong"),v({loading:!1,success:"",error:"Unexpected error occured"})}};return(0,t.jsxs)("div",{className:"md:mx-28 ",children:[(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(f(),{children:(0,t.jsx)("title",{children:"Become a Bidder"})})}),s.loading?(0,t.jsx)("h1",{className:"text-center",children:"Loading..."}):(null==p?void 0:p.loading)?(0,t.jsx)("h1",{className:"text-center",children:"Loading..."}):(null==_?void 0:_.loading)?(0,t.jsx)("h1",{className:"text-center",children:"Loading..."}):(null==o?void 0:o.split(",").includes("1"))?-1!==k?(null==o?void 0:o.split(",").includes("8"))?(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center",children:[(0,t.jsx)("h1",{className:"text-2xl text-center p-5 text-green-500",children:"congratulations you are a bidder"}),(0,t.jsx)(i(),{className:"hover:text-blue-400",href:"/customers",children:"Click here to Dashboard"})]}):(0,t.jsxs)("div",{className:"container mx-auto px-5 ",children:[(0,t.jsxs)("div",{className:"container mx-auto bg-gray-200 h-10 lg:my-3 rounded-md p-2 text-gray-500",children:[(0,t.jsx)(i(),{className:"hover:text-red-700",href:"/",children:"Home"}),"\xa0/\xa0",(0,t.jsx)(i(),{className:"hover:text-red-700",href:"/customers",children:"Dashboard"}),"\xa0/\xa0",(0,t.jsx)(i(),{className:"hover:text-red-700",href:"/customers/become-a-bidder",children:"Become A Bidder"})]}),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("h1",{className:"text-red-500 text-xl ",children:"To become a bidder choose any of the following options"}),(0,t.jsx)("h1",{className:"text-2xl text-center mt-3",children:"Option 1"}),(0,t.jsx)("h1",{className:"text-red-500 mt-5",children:"Please provide at least 3 Mutual References from this trade in the following columns to Obtain Bid Limit without Paid Membership."}),(0,t.jsxs)("div",{className:" border",children:[(0,t.jsx)("div",{className:"border bg-gray-100 p-3",children:(0,t.jsx)("h1",{children:"Reference Person Details"})}),(0,t.jsxs)("div",{className:"p-3 grid grid-cols-1 md:grid-cols-3",children:[(0,t.jsxs)("div",{className:"px-3",children:[(0,t.jsxs)("div",{className:"flex justify-between",children:[(0,t.jsxs)("label",{htmlFor:"email",children:["(1). Reference person name ",(0,t.jsx)("br",{}),"with contact detail",(0,t.jsx)("strong",{className:"text-red-500",children:"*"})]}),(null==R?void 0:R.refer_person_1.length)!==0&&(0,t.jsxs)("div",{className:"text-red-500 text-xs text-end",children:[(0,t.jsx)(a.G,{icon:n.RLE}),(0,t.jsx)("span",{className:"px-1",children:null==R?void 0:R.refer_person_1})]})]}),(0,t.jsx)("textarea",{className:"border outline-none w-full p-3 rounded-md focus:border-blue-500 focus:outline-none focus:ring-1",name:"refPerson1",value:E.refer_person_1,rows:4,onChange:e=>{let r=e.target.value;P({...E,refer_person_1:r})},placeholder:"Enter Reference Person 1 Detail"})]}),(0,t.jsxs)("div",{className:"px-3 ",children:[(0,t.jsxs)("div",{className:"flex justify-between",children:[(0,t.jsxs)("label",{htmlFor:"email",children:["(2). Reference person name ",(0,t.jsx)("br",{}),"with contact detail",(0,t.jsx)("strong",{className:"text-red-500",children:"*"})]}),(null==R?void 0:R.refer_person_2.length)!==0&&(0,t.jsxs)("div",{className:"text-red-500 text-xs text-end",children:[(0,t.jsx)(a.G,{icon:n.RLE}),(0,t.jsx)("span",{className:"px-1",children:null==R?void 0:R.refer_person_2})]})]}),(0,t.jsx)("textarea",{className:"border outline-none w-full p-3 rounded-md focus:border-blue-500 focus:outline-none focus:ring-1",name:"refPerson2",value:E.refer_person_2,rows:4,onChange:e=>{let r=e.target.value;P({...E,refer_person_2:r})},placeholder:"Enter Reference Person 2 Detail"})]}),(0,t.jsxs)("div",{className:"px-3",children:[(0,t.jsxs)("div",{className:"flex justify-between",children:[(0,t.jsxs)("label",{htmlFor:"email",children:["(3). Reference person name ",(0,t.jsx)("br",{}),"with contact detail",(0,t.jsx)("strong",{className:"text-red-500",children:"*"})]}),(null==R?void 0:R.refer_person_3.length)!==0&&(0,t.jsxs)("div",{className:"text-red-500 text-xs text-end",children:[(0,t.jsx)(a.G,{icon:n.RLE}),(0,t.jsx)("span",{className:"px-1",children:null==R?void 0:R.refer_person_3})]})]}),(0,t.jsx)("textarea",{className:"border outline-none w-full p-3 rounded-md focus:border-blue-500 focus:outline-none focus:ring-1",name:"refPerson3",value:E.refer_person_3,rows:4,onChange:e=>{let r=e.target.value;P({...E,refer_person_3:r})},placeholder:"Enter Reference Person 3 Detail"})]}),(0,t.jsxs)("button",{onClick:e=>{q()},className:"mx-3 mt-3 rounded-md bg-green-600 text-white border p-2 max-w-fit",children:[(0,t.jsx)(a.G,{icon:n.cf$})," Save Details"]}
1)]})]})]}),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h1",{className:"text-2xl text-center",children:"Option 2"}),(0,t.jsxs)("h1",{className:"text-red-500 text-lg",children:["If you are a new bidder and doesn't have ANY REFERENCE, Please buy Membership Plans."," "]}),(0,t.jsxs)("h1",{children:["Prime Membership Plans ",(0,t.jsx)("br",{}),"Go through the following table and obtain a membership plan suitable to your needs."]})]}),(0,t.jsx)("div",{className:"overflow-x-auto",children:(0,t.jsxs)("table",{className:"w-full mt-5 table-auto overflow-scroll row:even:bg-white odd:bg-slate-500",children:[(0,t.jsx)("thead",{className:"",children:(0,t.jsxs)("tr",{children:[(0,t.jsx)("th",{className:"border text-left p-4",children:"Membership Type"}),(0,t.jsx)("th",{className:"border text-left p-4",children:"Membership Security(INR)"}),(0,t.jsx)("th",{className:"border text-left p-4",children:"Bidding Limit(INR)"})]})}),(0,t.jsx)("tbody",{children:S.map(e=>(0,t.jsxs)("tr",{className:"even:bg-gray-200 odd:bg-gray-50 ",children:[(0,t.jsx)("td",{className:"text-left border p-3",children:null==e?void 0:e.plan}),(0,t.jsxs)("td",{className:"text-left border p-3 font-sans",children:[(0,t.jsx)(a.G,{icon:n.H0g})," ",(0,b.b)(null==e?void 0:e.plan_amount)]}),(0,t.jsxs)("td",{className:"text-left border p-3 font-sans",children:["lot(s) up to ",(0,t.jsx)(a.G,{icon:n.H0g})," ",(0,b.b)(null==e?void 0:e.bid_limit)," INR"]})]}))})]})}),(0,t.jsx)("div",{className:"grid grid-cols-1  md:grid-cols-4 border-t border-b space-y-5 md:space-y-0 mt-4 px-2 py-2",children:S.map((e,r)=>(0,t.jsxs)("div",{className:"space-x-1",children:[(0,t.jsx)("input",{type:"radio",name:"membership",id:"".concat(r+1),value:r+1,onChange:r=>{Z({plan:parseInt(r.target.value),membershipAmt:e.plan_amount,order_id:0})}}),(0,t.jsxs)("label",{htmlFor:"".concat(r+1),children:[e.plan,"\xa0",(0,t.jsx)(a.G,{icon:n.H0g})," ",(0,b.b)(e.plan_amount)]})]},r+1))}),(0,t.jsx)("h1",{className:"mt-3 text-red-500",children:"** 'Click to pay' means you accept our terms and conditions."}),(0,t.jsx)("h1",{className:"text-center text-red-500",children:O.length>0&&(0,t.jsxs)(t.Fragment,{children:["** ",O]})}),(0,t.jsx)("div",{className:" text-center",children:(0,t.jsx)("button",{onClick:()=>{if(!("object"==typeof D&&Object.keys(D).every(e=>0===D[e])))return G(""),(0,h.Z)({type:4,payment_details:D,payment_type:"original"});G("Please select any membership")},className:" px-2 py-2 gap-2 bg-green-500 hover:bg-green-600 border-2 focus:border-green-200 border-green-100 rounded text-white",children:"Click to pay"})}),(0,t.jsxs)("h1",{className:"mt-5",children:["Dear Bidders,",(0,t.jsx)("br",{}),(0,t.jsx)("br",{}),"All are requested to obtain a membership & generate the bidding limits if you want to bid in our Floor or e-Auctions. ",(0,t.jsx)("br",{}),"You can furnish any mutual reference of TRADE dealer OR AUCTION houses of our known to bid in our web site. ",(0,t.jsx)("br",{}),"In case if you don’t know to anyone then please obtain the following."]}),(0,t.jsxs)("h1",{className:"mt-5 ",children:[(0,t.jsxs)("strong",{className:"text-blue-950",children:[" ","Member Ship Fee is 100% Refundable any time after auction close or adjustable in your winning lot(S). ",(0,t.jsx)("br",{}),"And this membership is only required only 1st time."]}),(0,t.jsx)("br",{}),"You can Buy the Membership online ",(0,t.jsx)("br",{}),"Or also can obtain Via Wire / to any of Banks account ",(0,t.jsx)("br",{}),"For any further more details you can reach us via ",(0,t.jsx)("br",{}),"[email protected] or Call +91-88-670-29800 (10 AM to 6.30 IST)"]})]})]}):(0,t.jsx)("div",{className:"text-center",children:"Your need to have a billing address"}):(0,t.jsx)("div",{className:"p-5 bg-gray-100 text-center",children:"Your need to verify your email"})]})}},88754:function(e,r,s){"use strict";s.d(r,{b:function(){return t}});let t=e=>{try{let r="";if("number"==typeof e?r=e.toString():"string"==typeof e&&(r=e),r.includes("-")){let[e,s]=r.split("-");return n(e)+"-"+n(s)}return n(r)}catch(e){return console.error("Error formatting number:",e),"-"}},n=e=>{try{let r="",s=0,[t,n]=e.split(".");for(let e=t.length-1;e>=0;e--)r=t[e]+r,s++,3===s&&e>0?r=","+r:s>3&&(s-3)%2==0&&e>0&&(r=","+r);return n&&(r+="."+n),r}catch(e){return console.error("Error formatting part of the number:",e),"-"}}},9008:function(e,r,s){e.exports=s(42636)}}]);

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.