PageSourceSearch

https://metromart-next.vercel.app/_next/static/chunks/2925-5b336c0c825cca0d.js

js metromart-next.vercel.app collected 2026-10-03 07:18:52 UTC 7,533 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2925],{88289:function(e,t,r){var n=r(85893);r(67294);function s(e,t){if(null==e)return{};var r,n,s=function(e,t){if(null==e)return{};var r,n,s={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(s[r]=e[r]);return s}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(s[r]=e[r])}return s}t.Z=function(e){var t=e.icon,r=e.btnClass,a=e.wrapperClass,l=e.label,o=e.loading,i=void 0!==o&&o;e.btnclass,s(e,["icon","btnClass","wrapperClass","label","loading","btnclass"]);return(0,n.jsx)("div",{className:"".concat(a),children:(0,n.jsxs)("button",{className:"".concat(r||"btn bg-blue-500 text-white rounded px-4 py-2 mb-2 text-sm"),children:[t,l,i?(0,n.jsx)("span",{className:"spinner-border spinner-border-sm ",role:"status","aria-hidden":"true"}):null]})})}},62925:function(e,t,r){var n=r(34051),s=r.n(n),a=r(85893),l=r(67294),o=r(41664),i=r.n(o),c=(r(36808),r(11163)),d=r(36456),u=r(88289),m=r(31374),p=r(33774),h=(r(44185),r(5633)),x=r(68761),g=r(7962),f=r(39621),b=r(93572),v=r(25675),y=r.n(v),j=r(77877);r(98650),r(26021);function w(e,t,r,n,s,a,l){try{var o=e[a](l),i=o.value}catch(c){return void r(c)}o.done?t(i):Promise.resolve(i).then(n,s)}function N(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function S(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"===typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){N(e,t,r[t])}))}return e}t.Z=function(e){var t=e.isModal,r=(0,c.useRouter)(),n=(0,d.I0)(),o=(0,l.useState)(768),v=(o[0],o[1]),N=(0,l.useState)(),O=N[0],P=N[1],C=(0,l.useState)(),M=C[0],k=C[1],E=(0,l.useState)(!1),L=(E[0],E[1],(0,l.useState)(!1)),F=(L[0],L[1]),I=(0,l.useState)(!1),Z=I[0],D=I[1],R=(0,d.v9)((function(e){var t;return null===(t=e.common)||void 0===t?void 0:t.toJS()})),T=R.isLoggedIn,W=R.isLoggedInFailed,_=R.isLoggedInFailedMsg,H=((0,d.v9)((function(e){return e.common.get("theme")})),(0,b.l)()),V=(0,l.useState)(!1),Y=V[0],J=V[1],A=(0,d.v9)((function(e){var t;return null===(t=e.user)||void 0===t?void 0:t.toJS()})).cart;(0,l.useEffect)((function(){v(window.innerWidth)}),[]);var B=function(){var e,t=(e=s().mark((function e(t){var r,a,l,o;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.preventDefault(),k(!0),r=(0,p.Z)(t),a=r.isValid,l=r.data,o=r.errors,a?(F(null===l||void 0===l?void 0:l.Cellphone),A.length?n((0,x.pH)(S({},l,{cart:A}))):n((0,x.pH)(S({},l))),setTimeout((function(e){return k(!1)}),3e3)):(k(!1),P(o));case 4:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,s){var a=e.apply(t,r);function l(e){w(a,n,s,l,o,"next",e)}function o(e){w(a,n,s,l,o,"throw",e)}l(void 0)}))});return function(e){return t.apply(this,arguments)}}();(0,l.useEffect)((function(){var e=document.getElementById("fb-root");return t&&e&&(e.style.display="none"),function(){t&&e&&(e.style.display="block")}}),[]),(0,l.useEffect)((function(){var e;return T&&t&&n((0,h.QV)("modal")),W&&(D(!0),_&&!t&&H("danger","".concat(_)),e=setTimeout((function(){D(!1),n((0,h.rF)("isLoggedInFailedMsg"))}),4e3)),function(){T&&n((0,g.pO)()),e&&clearTimeout(e)}}),[T,W,_]);var Q=(0,a.jsxs)("div",{className:"col-md-12",children:[(0,a.jsxs)("span",{className:"float-left mt-2 text-gray-600",children:["Cellphone *"," "]}),(0,a.jsx)(m.ZP,{name:"Cellphone","aria-describedby":"emailHelp",placeholder:"Please enter your Phone Number or Email",className:"w-full px-4 py-2 mt-2 bg-white border border-gray-400 rounded-lg lg:py-3 focus:outline-none focus:ring focus:ring-primary",groupStyle:{width:"100%"},error:null===O||void 0===O?void 0:O.Cellphone}),(0,a.jsxs)("div",{className:"relative w-full check-eye",children:[(0,a.jsx)(m.ey,{onClick:function(){return J(!Y)},showPassword:Y}),(0,a.jsx)("span",{className:"float-left mt-2 text-gray-600",children:"Password * "}),(0,a.jsx)(m.ZP,{type:Y?"text":"password",name:"Password",placeholder:"Please enter your password",className:"w-full px-4 py-3 mt-2 bg-white border border-gray-400 rounded-lg lg:py-5 focu
1s:outline-none focus:ring focus:ring-primary",groupStyle:{width:"100%"},error:null===O||void 0===O?void 0:O.Password})]}),(0,a.jsx)(u.Z,{wrapperClass:"login",label:"Login",type:"submit",disabled:M,loading:M,btnClass:"mt-6 mb-2 w-full rounded-lg bg-primaryhigh py-5 uppercase text-white font-bold"}),(0,a.jsx)("button",{className:"block float-left w-full text-left text-blue-700 cursor-pointer hover:text-blue-900",onClick:function(e){e.preventDefault(),t?n((0,h.ij)("modal","forgotPassword")):r.push("/auth/forgot-password")},children:"Forgot password?"})]});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(j.Z,{title:"Secure Login - Enter Your Credentials | MetroMart",seoTitle:"Secure Login - Enter Your Credentials | MetroMart",seoDescription:"Secure Login - Enter Your Credentials | MetroMart",type:"page",siteName:"Metro Mart",url:"".concat("https://metromart-next.vercel.app","/auth/login")}),(0,a.jsx)("section",{className:"login-form flex bg-gray-100 ".concat(t?"h-auto mt-10":"h-screen "," justify-center font-poppins"),children:(0,a.jsx)("div",{className:"flex-1",children:(0,a.jsx)("div",{className:"relative",children:(0,a.jsx)("div",{className:"relative px-4 py-4 bg-gray-100 sm:px-8 md:py-11",children:(0,a.jsxs)("div",{className:"max-w-lg mx-auto text-center",children:[(0,a.jsxs)("div",{className:"px-4 py-8 mx-auto bg-white max-w-7xl lg:px-8 lg:py-8 lg:rounded-lg lg:shadow",children:[(0,a.jsx)("div",{className:"mb-10",children:(0,a.jsxs)("div",{className:"w-full",children:[(0,a.jsx)(i(),{href:"/",children:(0,a.jsx)("a",{className:"text-3xl font-bold leading-none block",children:(0,a.jsx)(y(),{src:"/images/metromart-png.png",alt:"MetroMart",width:350,className:"mr-4",height:60,loading:"eager",objectFit:"contain"})})}),(0,a.jsx)("div",{className:"rounded-lg"})]})}),(0,a.jsx)("h2",{className:"mb-4 text-2xl font-bold text-center text-primary text-gray-700 md:text-2xl lg:mb-7",children:"Welcome To MetroMart"}),(0,a.jsx)("div",{className:"mt-4 lg:mt-7",children:(0,a.jsxs)("div",{className:"".concat(t?"":"form"),children:[W?(0,a.jsx)("p",{className:"text-red-500",children:Z&&!!_&&_}):null,(0,a.jsx)("form",{noValidate:!0,onSubmit:B,children:(0,a.jsx)("div",{className:"row",children:Q})}),(0,a.jsxs)("div",{className:"mt-10",children:[(0,a.jsx)("p",{className:"my-4 text-sm text-center text-gray-500",children:"Or, login with"}),(0,a.jsx)(f.A,{})]}),(0,a.jsxs)("p",{className:"mt-4 text-sm text-center text-gray-500",children:["Dont have an account?",(0,a.jsx)(i(),{href:"/auth/register",children:(0,a.jsx)("a",{className:"text-primaryhigh underline",children:" Register here."})})]})]})})]}),(0,a.jsxs)("p",{className:"mt-4 text-sm text-center text-gray-500",children:["Want to be a Seller at metromart?",(0,a.jsx)(i(),{href:"/auth/register-vendor",children:(0,a.jsx)("a",{className:"text-primaryhigh underline",children:" Register as a vendor."})})]}),(0,a.jsxs)("p",{className:"mt-4 text-sm text-center text-gray-500",children:["Want to be a Rider at metromart?",(0,a.jsx)(i(),{href:"/auth/register-rider",children:(0,a.jsx)("a",{className:"text-primaryhigh underline",children:" Register as a rider."})})]})]})})})})})]})}}}]);

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.