PageSourceSearch

https://ripplemind.com/_next/static/chunks/pages/customers-e53e3d8f888b54f2.js

js ripplemind.com collected 2026-10-06 13:15:32 UTC 18,408 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6525],{2350:function(){},46889:function(e,s,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/customers",function(){return t(81367)}])},69578:function(e,s,t){var r=t(83454);t(2350);var i=t(67294),n=i&&"object"==typeof i&&"default"in i?i:{default:i};function o(e,s){for(var t=0;t<s.length;t++){var r=s[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var l=void 0!==r&&r.env&&!0,a=function(e){return"[object String]"===Object.prototype.toString.call(e)},c=function(){function e(e){var s=void 0===e?{}:e,t=s.name,r=void 0===t?"stylesheet":t,i=s.optimizeForSpeed,n=void 0===i?l:i;d(a(r),"`name` must be a string"),this._name=r,this._deletedRulePlaceholder="#"+r+"-deleted-rule____{}",d("boolean"==typeof n,"`optimizeForSpeed` must be a boolean"),this._optimizeForSpeed=n,this._serverSheet=void 0,this._tags=[],this._injected=!1,this._rulesCount=0;var o=document.querySelector('meta[property="csp-nonce"]');this._nonce=o?o.getAttribute("content"):null}var s,t=e.prototype;return t.setOptimizeForSpeed=function(e){d("boolean"==typeof e,"`setOptimizeForSpeed` accepts a boolean"),d(0===this._rulesCount,"optimizeForSpeed cannot be when rules have already been inserted"),this.flush(),this._optimizeForSpeed=e,this.inject()},t.isOptimizeForSpeed=function(){return this._optimizeForSpeed},t.inject=function(){var e=this;if(d(!this._injected,"sheet already injected"),this._injected=!0,this._optimizeForSpeed){this._tags[0]=this.makeStyleTag(this._name),this._optimizeForSpeed="insertRule"in this.getSheet(),this._optimizeForSpeed||(l||console.warn("StyleSheet: optimizeForSpeed mode not supported falling back to standard mode."),this.flush(),this._injected=!0);return}this._serverSheet={cssRules:[],insertRule:function(s,t){return"number"==typeof t?e._serverSheet.cssRules[t]={cssText:s}:e._serverSheet.cssRules.push({cssText:s}),t},deleteRule:function(s){e._serverSheet.cssRules[s]=null}}},t.getSheetForTag=function(e){if(e.sheet)return e.sheet;for(var s=0;s<document.styleSheets.length;s++)if(document.styleSheets[s].ownerNode===e)return document.styleSheets[s]},t.getSheet=function(){return this.getSheetForTag(this._tags[this._tags.length-1])},t.insertRule=function(e,s){if(d(a(e),"`insertRule` accepts only strings"),this._optimizeForSpeed){var t=this.getSheet();"number"!=typeof s&&(s=t.cssRules.length);try{t.insertRule(e,s)}catch(s){return l||console.warn("StyleSheet: illegal rule: \n\n"+e+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),-1}}else{var r=this._tags[s];this._tags.push(this.makeStyleTag(this._name,e,r))}return this._rulesCount++},t.replaceRule=function(e,s){if(this._optimizeForSpeed){var t=this.getSheet();if(s.trim()||(s=this._deletedRulePlaceholder),!t.cssRules[e])return e;t.deleteRule(e);try{t.insertRule(s,e)}catch(r){l||console.warn("StyleSheet: illegal rule: \n\n"+s+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),t.insertRule(this._deletedRulePlaceholder,e)}}else{var r=this._tags[e];d(r,"old rule at index `"+e+"` not found"),r.textContent=s}return e},t.deleteRule=function(e){if(this._optimizeForSpeed)this.replaceRule(e,"");else{var s=this._tags[e];d(s,"rule at index `"+e+"` not found"),s.parentNode.removeChild(s),this._tags[e]=null}},t.flush=function(){this._injected=!1,this._rulesCount=0,this._tags.forEac
1h(function(e){return e&&e.parentNode.removeChild(e)}),this._tags=[]},t.cssRules=function(){var e=this;return this._tags.reduce(function(s,t){return t?s=s.concat(Array.prototype.map.call(e.getSheetForTag(t).cssRules,function(s){return s.cssText===e._deletedRulePlaceholder?null:s})):s.push(null),s},[])},t.makeStyleTag=function(e,s,t){s&&d(a(s),"makeStyleTag accepts only strings as second parameter");var r=document.createElement("style");this._nonce&&r.setAttribute("nonce",this._nonce),r.type="text/css",r.setAttribute("data-"+e,""),s&&r.appendChild(document.createTextNode(s));var i=document.head||document.getElementsByTagName("head")[0];return t?i.insertBefore(r,t):i.appendChild(r),r},o(e.prototype,[{key:"length",get:function(){return this._rulesCount}}]),s&&o(e,s),e}();function d(e,s){if(!e)throw Error("StyleSheet: "+s+".")}var u=function(e){for(var s=5381,t=e.length;t;)s=33*s^e.charCodeAt(--t);return s>>>0},h={};function m(e,s){if(!s)return"jsx-"+e;var t=String(s),r=e+t;return h[r]||(h[r]="jsx-"+u(e+"-"+t)),h[r]}function p(e,s){var t=e+s;return h[t]||(h[t]=s.replace(/__jsx-style-dynamic-selector/g,e)),h[t]}var g=function(){function e(e){var s=void 0===e?{}:e,t=s.styleSheet,r=void 0===t?null:t,i=s.optimizeForSpeed,n=void 0!==i&&i;this._sheet=r||new c({name:"styled-jsx",optimizeForSpeed:n}),this._sheet.inject(),r&&"boolean"==typeof n&&(this._sheet.setOptimizeForSpeed(n),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var s=e.prototype;return s.add=function(e){var s=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(e.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer||(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(e,s){return e[s]=0,e},{}));var t=this.getIdAndRules(e),r=t.styleId,i=t.rules;if(r in this._instancesCounts){this._instancesCounts[r]+=1;return}var n=i.map(function(e){return s._sheet.insertRule(e)}).filter(function(e){return -1!==e});this._indices[r]=n,this._instancesCounts[r]=1},s.remove=function(e){var s=this,t=this.getIdAndRules(e).styleId;if(function(e,s){if(!e)throw Error("StyleSheetRegistry: "+s+".")}(t in this._instancesCounts,"styleId: `"+t+"` not found"),this._instancesCounts[t]-=1,this._instancesCounts[t]<1){var r=this._fromServer&&this._fromServer[t];r?(r.parentNode.removeChild(r),delete this._fromServer[t]):(this._indices[t].forEach(function(e){return s._sheet.deleteRule(e)}),delete this._indices[t]),delete this._instancesCounts[t]}},s.update=function(e,s){this.add(s),this.remove(e)},s.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},s.cssRules=function(){var e=this,s=this._fromServer?Object.keys(this._fromServer).map(function(s){return[s,e._fromServer[s]]}):[],t=this._sheet.cssRules();return s.concat(Object.keys(this._indices).map(function(s){return[s,e._indices[s].map(function(e){return t[e].cssText}).join(e._optimizeForSpeed?"":"\n")]}).filter(function(e){return!!e[1]}))},s.styles=function(e){var s,t;return s=this.cssRules(),void 0===(t=e)&&(t={}),s.map(function(e){var s=e[0],r=e[1];return n.default.createElement("style",{id:"__"+s,key:"__"+s,nonce:t.nonce?t.nonce:void 0,dangerouslySetInnerHTML:{__html:r}})})},s.getIdAndRules=function(e){var s=e.children,t=e.dynamic,r=e.id;if(t){var i=m(r,t);return{styleId:i,rules:Array.isArray(s)?s.map(function(e){return p(i,e)}):[p(i,s)]}}return{styleId:m(r),rules:Array.isArray(s)?s:[s]}},s.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(e,s){return e[s.id.slice(2)]=s,e},{})},e}(),f=i.createContext(null);f.displayName="StyleSheetContext";var x=n.default.useInsertionEffect||n.default.useLayoutEffect,v=new g;function y(e){var s=v||i.useContext(f);return s&&x(function(){return s.add(e),function(){s.remove(e)}},[e.id,String(e.dynamic)]),null}y.dynamic=function(e){return e.map(function(e){return m(e[0],e[1])}).join(" ")},s.style=y},36465:function(e,s,t){"use strict";e.exports=t(69578).style},81367:function(e,s,t){"use strict";t.r(s),t.d(s,{default:function(){return b}});var r=t(85893),i=t(41664),n=t.n(i),o=t(67294),l=t(99603),a=t(59417),c=t(86501),d=t(11163),u=t(48583),h=t(94543),m=t(88446),p=t(9008),g=t.n(p),f=t(36465),x=t.n(f),v=e=>{let{value:s,max:t=100,className:i=""}=e;return(0,r.jsxs)("div",{className:"jsx-2f8c912e5830ece1 "+"progress-bar-container ".concat(i),children:[(0,r.jsx)("div",{style:{width:"".concat(Math.min(100,Math.max(0,s/t*100)),"%")}
1,role:"progressbar","aria-valuenow":s,"aria-valuemin":0,"aria-valuemax":t,className:"jsx-2f8c912e5830ece1 progress-bar-fill"}),(0,r.jsx)(x(),{id:"2f8c912e5830ece1",children:".progress-bar-container.jsx-2f8c912e5830ece1{width:100%;height:8px;background-color:#e0e0e0;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;overflow:hidden}.progress-bar-fill.jsx-2f8c912e5830ece1{height:100%;background-color:#4a90e2;-webkit-transition:width.3s ease-in-out;-moz-transition:width.3s ease-in-out;-o-transition:width.3s ease-in-out;transition:width.3s ease-in-out}"})]})},y=e=>{let{updatePercentage:s,userProfileCompleted:t,userProfileErrorMessage:i,primaryAddressCompleted:o,primaryAddressErrorMessage:c,shippingAddressCompleted:d,shippingAddressErrorMessage:u}=e;return(0,r.jsxs)("div",{className:"border rounded-md p-3 m-2",children:[(0,r.jsxs)("div",{className:"mb-4",children:[(0,r.jsxs)("h2",{className:"font-semibold text-lg mb-1",children:["Profile Completion: ",s,"%"]}),(0,r.jsx)(v,{value:s})]}),(0,r.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[{name:"User Profile",isCompleted:t,errorMessage:i,url:"/customers/profile"},{name:"Permanent Address",isCompleted:o,errorMessage:c,url:"/customers/buyer-address"},{name:"Shipping Address",isCompleted:d,errorMessage:u,url:"/customers/shipping-address"}].map((e,s)=>(0,r.jsxs)("div",{className:"flex items-center justify-between space-x-2 border rounded-lg py-2 px-3 shadow-sm relative",children:[e.isCompleted?(0,r.jsx)(l.G,{icon:a.f8k,className:"text-green-500 text-xl"}):(0,r.jsx)(l.G,{icon:a.nYk,className:"text-red-500 text-xl"}),(0,r.jsx)(n(),{href:null==e?void 0:e.url,children:(0,r.jsx)("p",{className:"text-gray-700 font-medium hover:text-blue-400",children:e.name})}),!e.isCompleted&&e.errorMessage&&(0,r.jsxs)("div",{className:"group relative",children:[(0,r.jsx)("span",{className:"inline-flex items-center justify-center border border-gray-400 rounded-full p-1.5",children:(0,r.jsx)(l.G,{icon:a.sqG,className:"text-blue-500 cursor-pointer"})}),(0,r.jsx)("div",{className:"absolute z-10 hidden group-hover:block bg-gray-700 text-white text-sm rounded-md px-2 py-1 w-48 right-0 top-full mt-1 shadow-lg",children:e.errorMessage})]})]},s))})]})},_=function(){var e;let s=(0,u.b9)(h.ZP),t=(0,u.Dv)(h.ZP),i=null==t?void 0:null===(e=t.userDetails)||void 0===e?void 0:e.status,[p,f]=(0,o.useState)(),x=(0,d.useRouter)(),v=async()=>{try{await m.Z.post("/user/logout"),s(h.JT),c.ZP.success("You have Logged out!",{position:"top-right"}),x.push("/login")}catch(e){console.error(e)}},_=async()=>{try{let e=await m.Z.post("/user/verifyPofileCompletion");200===e.status&&f(null==e?void 0:e.data)}catch(e){}};return(0,o.useEffect)(()=>{_()},[]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(g(),{children:(0,r.jsx)("title",{children:"Dashboard"})})}),(0,r.jsx)("div",{className:" lg:mx-28",children:(0,r.jsxs)("div",{className:"container mx-auto",children:[(0,r.jsxs)("div",{className:"w-full bg-gray-200 h-10 lg:my-3 rounded-md p-2 text-gray-500",children:[(0,r.jsx)(n(),{className:"hover:text-red-700",href:"/",children:"Home"}),"\xa0/\xa0",(0,r.jsx)(n(),{className:"hover:text-red-700",href:"/customers",children:"Dashboard"})]}),(0,r.jsxs)("div",{className:" flex flex-col lg:flex-row ",children:[i.split(",").includes("1")&&i.split(",").includes("2")?(0,r.jsxs)("div",{className:"flex flex-col w-[90%] lg:w-1/5 gap-y-2 mx-5 mt-5",children:[(0,r.jsxs)(n(),{className:"border bg-gray-200 hover:translate-y-0.5  hover:bg-gray-300  p-2 text-base rounded-t-lg  ",href:"/customers",children:[(0,r.jsx)(l.G,{icon:a.WNI})," Dashboard"]}),(0,r.jsxs)(n(),{className:"border bg-gray-200 hover:translate-y-0.5 hover:bg-gray-300 p-2 text-base",href:"/customers/change-password",children:[(0,r.jsx)(l.G,{icon:a.DD4})," Change Password"]}),(0,r.jsxs)(n(),{className:"border bg-gray-200 hover:translate-y-0.5 hover:bg-gray-300 p-2 text-base",href:"/cart",children:[(0,r.jsx)(l.G,{icon:a.bMA})," My Cart"]}),(0,r.jsxs)(n(),{className:"border bg-gray-200 hover:translate-y-0.5 hover:bg-gray-300 p-2 text-base",href:"/customers/track-query",children:[(0,r.jsx)(l.G,{icon:a.wn1})," Track Your Query"]}),(0,r.jsxs)("button",{onClick:e=>{e.preventDefault(),v()},className:"border hover:translate-y-0.5 hover:bg-gray-300 bg-gray-200 rounded-b-lg  p-2 text-base text-start",children:[(0,r.jsx)(l.G,{icon:a.HEx})," Logout"]})]}):null,(0,r.jsxs)("div",{className:"w-full ",children:[(0,r.jsx)("div",{className:"w-full",children:p&&(0,r.jsx)(y,{updatePercentage:p.updatePercentage,userProfileCompleted:p.userProfileCompleted,userProfileErrorMessage:p.userProfileErrorMessage,primaryAddressCompleted:p.primaryAddressCompleted,primaryAddressErrorMessage:p.primaryAddressErrorMessage,shippingAddressCompleted:p.shippingAddressCompleted,shippingAddressErrorMessage:p.shippingAddressErrorMessage})}),(0,r.jsxs)("div",{className:"mx-5 grid grid-cols-1 md:grid-cols-3 auto-row-min gap-5 ",children:[(0,r.jsxs)("div",{className:"border mt-5 ",children:[(0,r.jsx)("div",{className:"border px-5 py-3 bg-gray-100",children:(0,r.jsx)("h1",{children:"My Profile"})}),(0,r.jsxs)("div",{className:"grid p-5  gap-3",children:[(0,r.jsxs)(n(),{className:"hover:bg-gray-100 hover:translate-x-0.5",href:"/customers/profile",children:[(0,r.jsx)(l.G,{icon:a._tD})," Update Profile"]}),i.split(",").includes("1")&&i.split(",").includes("2")&&(0,r.jsxs)(n(),{className:"hover:bg-gray-100  hover:translate-x-0.5",href:"/customers/buyer-address",children:[(0,r.jsx)(l.G,{icon:a._tD})," Permanent Address"]}),i.split(",").includes("1")&&i.split(",").includes("2")&&(0,r.jsxs)(n(),{className:"hover:bg-gray-100  hover:translate-x-0.5",href:"/customers/shipping-address",children:[(0,r.jsx)(l.G,{icon:a._tD})," Shipping Address"]}),i.split(",").includes("1")&&i.split(",").includes("2")&&i.split(",").includes("8")?null:i.split(",").includes("1")&&i.split(",").includes("2")?(0,r.jsxs)(n(),{className:"hover:bg-gray-100  hover:translate-x-0.5",href:"/customers/become-a-bidder",children:[(0,r.jsx)(l.G,{icon:a._tD})," Become a bidder"]}):null,i.split(",").includes("1")&&i.split(",").includes("2")&&(i.split(",").includes("4")||i.split(",").includes("8"))&&(0,r.jsxs)(n(),{className:"hover:bg-gray-100  hover:translate-x-0.5",href:"/customers/my-bid-limit",children:[(0,r.jsx)(l.G,{icon:a._tD})," My Bid Limit"]}),i.split(",").includes("1")&&i.split(",").includes("2")&&(0,r.jsxs)(n(),{className:"hover:bg-gray-100  hover:translate-x-0.5",href:"/customers/upload-document",children:[(0,r.jsx)(l.G,{icon:a._tD})," Upload Documents"]})]})]}),(0,r.jsxs)("div",{className:"border mt-5 ",children:[(0,r.jsx)("div",{className:"border px-5 py-3 bg-gray-100",children:(0,r.jsx)("h1",{children:"My Wishlist"})}),(0,r.jsxs)("div",{className:"grid p-5  gap-3",children:[i.split(",").includes("1")&&i.split(",").includes("2")&&(0,r.jsxs)(n(),{className:"hover:bg-gray-100 hover:translate-x-0.5 ",href:"/customers/my-estore-wishlist",children:[(0,r.jsx)(l.G,{icon:a._tD})," e Store Wishlist"]}),i.split(",").includes("1")&&i.split(",").includes("2")&&i.split(",").includes("8")&&(0,r.jsxs)(n(),{className:"hover:bg-gray-100 hover:translate-x-0.5 ",href:"/customers/my-eauction-wishlist",children:[(0,r.jsx)(l.G,{icon:a._tD})," e Auction Wishlist"]}),i.split(",").includes("1")&&i.split(",").includes("2")&&i.split(",").includes("8")&&(0,r.jsxs)(n(),{className:"hover:bg-gray-100 hover:translate-x-0.5 ",href:"/customers/my-printed-auction-wishlist",children:[(0,r.jsx)(l.G,{icon:a._tD})," Printed Auction Wishlist"]})]})]}),(0,r.jsxs)("div",{className:"border mt-5 ",children:[(0,r.jsx)("div",{className:"border px-5 py-3 bg-gray-100",children:(0,r.jsx)("h1",{children:"My Invoices"})}),(0,r.jsxs)("div",{className:"grid p-5  gap-3 ",children:[i.split(",").includes("1")&&i.split(",").includes("2")&&i.split(",").includes("8")&&(0,r.jsxs)(n(),{className:"hover:bg-gray-100  hover:translate-x-0.5",href:"/customers/my-auction-invoices",children:[(0,r.jsx)(l.G,{icon:a._tD})," My Auction Invoices"]}),i.split(",").includes("1")&&i.split(",").includes("2")&&(0,r.jsxs)(n(),{className:"hover:bg-gray-100  hover:translate-x-0.5",href:"/customers/my-e-store-invoices",children:[(0,r.jsx)(l.G,{icon:a._tD})," e Store Invoices"]}),i.split(",").includes("128")&&(0,r.jsxs)(n(),{className:"hover:bg-gray-100  hover:translate-x-0.5",href:"/customers/my-consignor-invoices",children:[(0,r.jsx)(l.G,{icon:a._tD})," Consignor Invoices"]})]})]}),i.split(",").includes("128")?(0,r.jsxs)("div",{className:"border mt-5 ",children:[(0,r.jsx)("div",{className:"border-b px-5 py-3 bg-gray-100",children:(0,r.jsx)("h1",{children:"My Product"})}),(0,r.jsx)("div",{className:"grid p-5 ",children:(0,r.jsxs)(n(),{className:"hover:bg-gray-100 hover:translate-x-0.5",href:"/customers/my-lotlist",children:[(0,r.jsx)(l.G,{icon:a._tD})," Listed Lots"]})})]}):null,i.split(",").includes("1")&&i.split(",").includes("2")&&i.split(",").includes("8")?(0,r.jsxs)("div",{className:"border mt-5 ",children:[(0,r.jsx)("div",{className:"border px-5 py-3 bg-gray-100",children:(0,r.jsx)("h1",{children:"Bid History"})}),(0,r.jsxs)("div",{className:"grid p-5  gap-3",children:[(0,r.jsxs)(n(),{className:"hover:bg-gray-100  hover:translate-x-0.5",href:"/customers/live-printed-auction/bidHistory",children:[(0,r.jsx)(l.G,{icon:a._tD})," Printed Auction"]}),(0,r.jsxs)(n(),{className:"hover:bg-gray-100  hover:translate-x-0.5",href:"/customers/live-e-auction/bidHistory",children:[(0,r.jsx)(l.G,{icon:a._tD})," e Auction"]})]})]}):null]})]}),(0,r.jsx)("div",{className:"mx-5"})]})]})})]})},j=t(28646),b=()=>{let e=(0,u.Dv)(h.ZP);return e.loading?(0,r.jsx)("p",{className:"md:mx-28 text-center p-5",children:"Loading..."}):e.isLoggedIn?(0,r.jsx)(_,{}):(0,r.jsx)(j.Z,{})}},28646:function(e,s,t){"use strict";var r=t(85893),i=t(41664),n=t.n(i),o=t(11163);t(67294),s.Z=()=>{let e=(0,o.useRouter)(),s=e.asPath;return(0,r.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,r.jsx)("br",{}),(0,r.jsx)(n(),{className:"text-blue-500",href:"/login?re_url=".concat(s),children:"Click here to Login"})]})}},9008:function(e,s,t){e.exports=t(42636)}},function(e){e.O(0,[9774,2888,179],function(){return e(e.s=46889)}),_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.