PageSourceSearch

https://www.livestocx.com/_next/static/chunks/app/(routes)/(auth)/signin/page-26efc0ae82a2c62f.js

js livestocx.com collected 2026-10-02 16:03:42 UTC 16,699 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7181],{8422:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>B});var r=s(95155),l=s(12115),a=s(15239),n=s(52619),i=s.n(n),o=s(20063),d=s(36489),u=s(2369),c=s(82726),p=s(70305),m=s(37333),g=s(60688),h=s(28428),x=s(58161),f=s(27701),y=s(3863),P=s(71165),S=s(17998),b=s(74264),j=s(66559),k=s(19688),w=s(2149),z=s(45201),v=s(68595),N=s(35200),I=s(27475),C=s(80549),M=s(49992),E=s(4804),O=s(41923),V=s(89417),F=s(60789),J=s(78916);let B=()=>{(0,V.A)(),(0,O.A)();let e=(0,o.useRouter)(),{isPending:t,mutate:s}=function(){let{setAuthToken:e}=(0,I.Us)();return(0,C.n)({mutationFn:async e=>(M.mB.start(),await E.ZQ.authControllerSignIn({...e})),onError:()=>{M.mB.reset()},onSuccess(t){M.mB.reset(),console.log("USER-LOGIN-SUCCESS :: ",t),e(t.data.token)}})}(),{authToken:n,testimonials:B,productUploadSubscriptionPlan:U}=(0,I.Us)(),_=(0,j.m)({mode:"uncontrolled",initialValues:{email:"",password:""}}),[A,R]=(0,l.useState)(0),[T,L]=(0,l.useState)(null);(0,l.useEffect)(()=>{let e=0===B.length?void L(null):(T||L(B[0]),setInterval(()=>{R(e=>{let t=(e+1)%B.length;return L(B[t]),t})},7e3));return()=>{e&&clearInterval(e)}},[B]),(0,l.useEffect)(()=>{let t=new URLSearchParams(window.location.search);
1if(n&&null===t.get("redirect_to"))e.push("/");else if(n&&null!==t.get("redirect_to")){let s="/".concat(t.get("redirect_to"));return e.push(s.includes("business")?"/business?subscription_now=true":s)}},[n]),(0,l.useEffect)(()=>{let e=new URLSearchParams(window.location.search);null!==e.get("redirect_to")&&localStorage.setItem("LIVESTOCX_AUTH_REDIRECT",e.get("redirect_to"))},[]);let D=()=>{let e=new URLSearchParams(window.location.search),t="/".concat(e.get("redirect_to")||"");(0,d.signIn)("google",{callbackUrl:t.includes("business")?"/business?subscription_now=true":t||"/"})},H=e=>(0,r.jsx)("form",{onSubmit:_.onSubmit(e=>(e=>{let t=(0,J.PG)(e);if(""!==t)return void(0,k.Ds)({message:t,color:"red",title:"Message",autoClose:3e3});s(e)})(e)),style:{width:"100%"},children:(0,r.jsxs)(u.B,{gap:16,children:[U&&(0,r.jsx)(c.t,{p:"sm",radius:"md",withBorder:!0,style:{backgroundColor:"var(--mantine-color-green-0)",borderColor:"var(--mantine-color-green-2)"},children:(0,r.jsxs)(p.E,{size:"xs",c:"green.9",fw:600,ta:"center",children:["Sellers pay ",(0,F.MT)(U.price)," to start posting!"]})}),(0,r.jsxs)(m.Box,{children:[(0,r.jsx)(p.E,{size:"xs",fw:700,tt:"uppercase",style:{letterSpacing:"0.08em",color:"#555",marginBottom:6},children:"Email Address"}),(0,r.jsx)(g.k,{size:"md",radius:"md",placeholder:"[email protected]",leftSection:(0,r.jsx)(w.A,{size:16,color:"#888"}),styles:{input:{backgroundColor:"#F4F4F4",border:"none",fontSize:"14px",paddingLeft:"42px",height:(0,h.D)(50)}},..._.getInputProps("email")})]}),(0,r.jsxs)(m.Box,{children:[(0,r.jsx)(x.s,{justify:"space-between",align:"center",mb:6,children:(0,r.jsx)(p.E,{size:"xs",fw:700,tt:"uppercase",style:{letterSpacing:"0.08em",color:"#555"},children:"Password"})}),(0,r.jsx)(f.y,{size:"md",radius:"md",placeholder:"••••••••",leftSection:(0,r.jsx)(z.A,{size:16,color:"#888"}),styles:{input:{backgroundColor:"#F4F4F4",border:"none",fontSize:"14px",height:(0,h.D)(50)},innerInput:{paddingLeft:"42px"}},..._.getInputProps("password")}),(0,r.jsxs)(x.s,{justify:"space-between",w:"100%",mt:4,children:[(0,r.jsx)(m.Box,{}),(0,r.jsx)(i(),{href:"/forgot-password",style:{textDecoration:"none"},children:(0,r.jsx)(p.E,{size:"xs",fw:700,tt:e?"uppercase":"none",style:{letterSpacing:e?"0.06em":0,color:"#138C48"},children:"Forgot Password?"})})]})]}),(0,r.jsx)(y.$,{type:"submit",loading:t,radius:"md",h:50,mt:4,styles:{root:{background:"linear-gradient(90deg, #006838 0%, #138C48 100%)",fontSize:"15px",fontWeight:600,letterSpacing:"0.01em"}},rightSection:(0,r.jsx)(v.A,{size:18}),children:"Sign In"}),(0,r.jsxs)(x.s,{align:"center",gap:10,children:[(0,r.jsx)(P.c,{style:{flex:1}}),(0,r.jsx)(p.E,{size:"xs",fw:600,tt:"uppercase",style:{color:"#999",letterSpacing:"0.1em"},children:"Or"}),(0,r.jsx)(P.c,{style:{flex:1}})]}),(0,r.jsx)(y.$,{h:50,radius:"xl",variant:"default",onClick:D,styles:{root:{backgroundColor:"#F4F4F4",border:"none",fontWeight:500}},leftSection:(0,r.jsx)(a.default,{src:"/icons/icon_google.svg",alt:"Google",width:20,height:20}),children:"Continue with Google"}),(0,r.jsxs)(x.s,{justify:"center",gap:4,mt:4,children:[(0,r.jsx)(p.E,{size:"sm",c:"dimmed",children:e?"Don't have an account?":"New to the marketplace?"}),(0,r.jsx)(i(),{href:"/signup",style:{textDecoration:"none"},children:(0,r.jsx)(p.E,{size:"sm",fw:600,c:"#138C48",children:"Create an account"})})]}),T&&(0,r.jsx)(m.Box,{mt:"xl",children:(0,r.jsx)(N._,{testimonial:T,width:"100%"})})]})});return(0,r.jsxs)(m.Box,{style:{minHeight:"100vh",backgroundColor:"#ffffff",backgroundImage:"repeating-linear-gradient(-45deg, #f8f9fa, #f8f9fa 1px, transparent 1px, transparent 25px)",backgroundAttachment:"fixed"},children:[(0,r.jsxs)(m.Box,{style:{display:"none"},className:"signin-desktop",children:[(0,r.jsx)("style",{children:"\n          :root { --navbar-h: 0px; }\n          @media (min-width: 768px) {\n            .signin-desktop { display: flex !important; }\n            .signin-mobile  { display: none !important; }\n          }\n          @media (max-width: 767px) {\n            .signin-desktop { display: none !important; }\n            .signin-mobile  { display: flex !important; }\n          }\n        "}),(0,r.jsxs)(m.Box,{style:{flex:"0 0 50%",position:"relative",minHeight:"100vh",overflow:"hidden"},children:[(0,r.jsx)(a.default,{src:"/images/auth/image_auth_bg_11.jpg",alt:"Livestocx background",fill:!0,style:{objectFit:"cover"},priority:!0}),(0,r.jsxs)(m.Box,{style:{position:"absolute",top:80,left:60,right:60},children:[(0,r.jsx)(S.E,{variant:"filled",radius:"xl",mb:16,styles:{root:{backgroundColor:"#138C48",color:"#fff",fontSize:"11px",letterSpacing:"0.06em",textTransform:"uppercase"}},children:"Agri-Commerce Reimagined"}),(0,r.jsxs)(b.Title,{order:1,style:{color:"#fff",fontSize:"clamp(32px, 4vw, 48px)",lineHeight:1.1,fontWeight:900},children:["Direct Access.",(0,r.jsx)("br",{}),(0,r.jsx)(p.E,{component:"span",c:"green.3",inherit:!0,children:"Unmatched Scale."})]}),(0,r.jsx)(p.E,{mt:20,size:"lg",style:{color:"rgba(255,255,255,0.9)",maxWidth:450,lineHeight:1.6},children:"Join the largest network of verified livestock producers and buyers in Nigeria. Modern tools for the modern farmer."}),(0,r.jsxs)(x.s,{gap:"xl",mt:40,children:[(0,r.jsxs)(m.Box,{style:{borderLeft:"3px solid #138C48",paddingLeft:16},children:[(0,r.jsx)(p.E,{fw:900,size:"xl",c:"white",children:"10k+"}),(0,r.jsx)(p.E,{c:"gray.3",size:"xs",tt:"uppercase",fw:700,children:"Active Users"})]}),(0,r.jsxs)(m.Box,{style:{borderLeft:"3px solid #138C48",paddingLeft:16},children:[(0,r.jsx)(p.E,{fw:900,size:"xl",c:"white",children:"4k+"}),(0,r.jsx)(p.E,{c:"gray.3",size:"xs",tt:"uppercase",fw:700,children:"Listings"})]})]})]})]}),(0,r.jsx)(x.s,{flex:1,direction:"column",justify:"center",align:"center",style:{padding:"20px",minHeight:"100vh",backgroundColor:"transparent"},children:(0,r.jsxs)(m.Box,{style:{maxWidth:540,width:"100%"},children:[(0,r.jsx)(b.Title,{order:2,mb:8,style:{fontWeight:800,fontSize:32,color:"#1a1a1a"},children:"Welcome Back"}),(0,r.jsx)(p.E,{size:"sm",c:"dimmed",mb:40,children:"Log in to your business hub or customer account."}),H(!1)]})})]}),(0,r.jsx)(x.s,{className:"signin-mobile",direction:"column",align:"center",justify:"center",style:{minHeight:"100vh",padding:"24px 16px"},children:(0,r.jsxs)(m.Box,{style:{borderRadius:32,padding:"40px 24px",width:"100%",maxWidth:420},children:[(0,r.jsx)(b.Title,{ta:"center",order:2,mb:8,style:{fontWeight:800,fontSize:28,color:"#1a1a1a"},children:"Sign In"}),(0,r.jsx)(p.E,{ta:"center",size:"sm",c:"dimmed",mb:32,children:"Access the livestock marketplace."}),H(!0)]})})]})}},27475:(e,t,s)=>{"use strict";s.d(t,{QG:()=>
1o,Us:()=>d});var r=s(95155),l=s(990),a=s(12115),n=s(58835);let i=(0,a.createContext)({theme:null,blogFeed:[],blogFeedItem:null,authToken:"",listItems:[],vendorProducts:[],storeInfo:null,productInfo:null,productDetails:null,vendorInfo:null,testimonials:[],storeProducts:[],promotionPlans:[],availableStates:[],accountInfo:null,chargeResponse:null,paymentMethods:[],marketplaceProducts:[],currentSubscriptionPlanId:0,premiumSubscriptionPlans:[],storeProductsTotalPages:1,storeProductsCurrentPage:1,storeProductsHasNextPage:!1,marketPlaceProductsCurrentPage:1,marketPlaceProductsHasNextPage:!1,productUploadSubscriptionPlan:null,marketPlaceProductsTotalPages:0,productUploadSubscriptionPlans:[],paymentChargeSession:null,setBlogFeed:()=>{},setBlogFeedItem:()=>{},setPaymentChargeSession:()=>{},setProductUploadSubscriptionPlans:()=>{},setVendorProducts:()=>{},setListItems:()=>{},setStoreInfo:()=>{},setProductInfo:()=>{},setProductDetails:()=>{},setVendorInfo:()=>{},setAuthToken:()=>{},setAccountInfo:()=>{},setTestimonials:()=>{},setPaymentMethods:()=>{},setPromotionPlans:()=>{},setChargeResponse:()=>{},setAvailableStates:()=>{},setStoreProducts:()=>{},setMarketPlaceProducts:()=>{},setPremiumSubscriptionPlans:()=>{},setCurrentSubscriptionPlanId:()=>{},setProductUploadSubscriptionPlan:()=>{},setStoreProductsTotalPages:()=>{},setStoreProductsCurrentPage:()=>{},setStoreProductsHasNextPage:()=>{},setMarketPlaceProductsTotalPages:()=>{},setMarketPlaceProductsCurrentPage:()=>{},setMarketPlaceProductsHasNextPage:()=>{}}),o=e=>{let{children:t}=e,s=(0,n.xd)(),[a,o]=(0,l.M)({key:"authToken"}),[d,u]=(0,l.M)({defaultValue:[],key:"blogFeed",deserialize:e=>JSON.parse(null!=e?e:"")}),[c,p]=(0,l.M)({defaultValue:void 0,key:"blogFeedItem",deserialize:e=>JSON.parse(null!=e?e:"")}),[m,g]=(0,l.M)({key:"testimonials",defaultValue:[],deserialize:e=>JSON.parse(null!=e?e:"")}),[h,x]=(0,l.M)({defaultValue:void 0,key:"accountInfo",deserialize:e=>JSON.parse(null!=e?e:"")}),[f,y]=(0,l.M)({defaultValue:void 0,key:"productUploadSubscriptionPlan",deserialize:e=>JSON.parse(null!=e?e:"")}),[P,S]=(0,l.M)({defaultValue:[],key:"premiumSubscriptionPlans",deserialize:e=>JSON.parse(null!=e?e:"")}),[b,j]=(0,l.M)({defaultValue:void 0,key:"vendorInfo",deserialize:e=>JSON.parse(null!=e?e:"")}),[k,w]=(0,l.M)({defaultValue:[],key:"availableStates",deserialize:e=>JSON.parse(null!=e?e:"")}),[z,v]=(0,l.M)({defaultValue:void 0,key:"chargeResponse",deserialize:e=>JSON.parse(null!=e?e:"")}),[N,I]=(0,l.M)({defaultValue:[],key:"paymentMethods",deserialize:e=>JSON.parse(null!=e?e:"")}),[C,M]=(0,l.M)({defaultValue:0,key:"currentSubscriptionPlanId",deserialize:e=>JSON.parse(null!=e?e:"")}),[E,O]=(0,l.M)({defaultValue:[],key:"marketplaceProducts",deserialize:e=>JSON.parse(null!=e?e:"")}),[V,F]=(0,l.M)({defaultValue:0,key:"marketPlaceProductsTotalPages",deserialize:e=>JSON.parse(null!=e?e:"")}),[J,B]=(0,l.M)({defaultValue:[],key:"promotionPlans",deserialize:e=>JSON.parse(null!=e?e:"")}),[U,_]=(0,l.M)({defaultValue:1,key:"marketPlaceProductsCurrentPage",deserialize:e=>JSON.parse(null!=e?e:"")}),[A,R]=(0,l.M)({defaultValue:[],key:"listItems",deserialize:e=>JSON.parse(null!=e?e:"")}),[T,L]=(0,l.M)({defaultValue:!1,key:"marketPlaceProductsHasNextPage",deserialize:e=>JSON.parse(null!=e?e:"")}),[D,H]=(0,l.M)({defaultValue:null,key:"productInfo",deserialize:e=>JSON.parse(null!=e?e:"")}),[q,W]=(0,l.M)({defaultValue:null,key:"productDetails",deserialize:e=>JSON.parse(null!=e?e:"")}),[G,$]=(0,l.M)({defaultValue:null,key:"storeInfo",deserialize:e=>JSON.parse(null!=e?e:"")}),[Y,K]=(0,l.M)({defaultValue:[],key:"storeProducts",deserialize:e=>JSON.parse(null!=e?e:"")}),[Q,X]=(0,l.M)({defaultValue:1,key:"storeProductsTotalPages",deserialize:e=>JSON.parse(null!=e?e:"")}),[Z,ee]=(0,l.M)({defaultValue:1,key:"storeProductsCurrentPage",deserialize:e=>JSON.parse(null!=e?e:"")}),[et,es]=(0,l.M)({defaultValue:!1,key:"storeProductsHasNextPage",deserialize:e=>JSON.parse(null!=e?e:"")}),[er,el]=(0,l.M)({defaultValue:[],key:"vendorProducts",deserialize:e=>JSON.parse(null!=e?e:"")}),[ea,en]=(0,l.M)({defaultValue:[],key:"productUploadSubscriptionPlans",deserialize:e=>JSON.parse(null!=e?e:"")}
1),[ei,eo]=(0,l.M)({defaultValue:null,key:"paymentChargeSession",deserialize:e=>JSON.parse(null!=e?e:"")});return(0,r.jsx)(i.Provider,{value:{theme:s,blogFeed:d,blogFeedItem:c,storeInfo:G,storeProducts:Y,vendorProducts:er,productInfo:D,productDetails:q,setBlogFeed:u,setBlogFeedItem:p,setProductInfo:H,setVendorProducts:el,setProductDetails:W,storeProductsCurrentPage:Z,storeProductsHasNextPage:et,storeProductsTotalPages:Q,setStoreProductsTotalPages:X,setStoreProductsCurrentPage:ee,setStoreProductsHasNextPage:es,paymentChargeSession:ei,setPaymentChargeSession:eo,listItems:A,authToken:a,vendorInfo:b,accountInfo:h,setListItems:R,testimonials:m,setAuthToken:o,setVendorInfo:j,setStoreInfo:$,setStoreProducts:K,setAccountInfo:x,chargeResponse:z,paymentMethods:N,promotionPlans:J,setTestimonials:g,availableStates:k,setPaymentMethods:I,setChargeResponse:v,setPromotionPlans:B,setAvailableStates:w,marketplaceProducts:E,setMarketPlaceProducts:O,premiumSubscriptionPlans:P,currentSubscriptionPlanId:C,setPremiumSubscriptionPlans:S,setCurrentSubscriptionPlanId:M,productUploadSubscriptionPlan:f,marketPlaceProductsTotalPages:V,marketPlaceProductsCurrentPage:U,marketPlaceProductsHasNextPage:T,productUploadSubscriptionPlans:ea,setProductUploadSubscriptionPlans:en,setMarketPlaceProductsTotalPages:F,setProductUploadSubscriptionPlan:y,setMarketPlaceProductsCurrentPage:_,setMarketPlaceProductsHasNextPage:L},children:t})},d=()=>(0,a.useContext)(i)},35200:(e,t,s)=>{"use strict";s.d(t,{_:()=>u});var r=s(95155),l=s(83256),a=s(37333),n=s(2369),i=s(67661),o=s(88641),d=s(70305);function u(e){let{testimonial:t,width:s,backgroundColor:u="none"}=e;return(0,r.jsx)(a.Box,{p:"md",mx:"auto",h:"160px",style:{borderRadius:"10px",border:"1px solid #ccc"},bg:u,mb:{base:"md",md:0},w:{base:"100%",sm:"100%",md:s||"350px"},children:(0,r.jsxs)(n.B,{gap:"md",children:[(0,r.jsxs)(i.Y,{align:"center",gap:"sm",children:[(0,r.jsx)(o.e,{src:t.avatarUrl,alt:t.author,size:50,radius:"xl",styles:{root:{border:"1px solid var(--mantine-color-gray-4)",boxShadow:"0 1px 3px rgba(0,0,0,0.1)"}}}),(0,r.jsxs)(a.Box,{children:[(0,r.jsx)(d.E,{size:"sm",fw:500,c:"primary",children:t.author}),(0,r.jsx)(i.Y,{gap:2,children:[1,2,3,4,5].map(e=>(0,r.jsx)(l.A,{size:15,style:{color:"var(--mantine-color-orange-5)"}},e))})]})]}),(0,r.jsx)(d.E,{size:"sm",ta:"center",lh:1.5,children:t.testimonial})]})})}},41923:(e,t,s)=>{"use strict";s.d(t,{A:()=>n});var r=s(22454),l=s(4804),a=s(27475);function n(){let{productUploadSubscriptionPlan:e,setProductUploadSubscriptionPlan:t}=(0,a.Us)();return(0,r.I)({queryKey:["get-product-upload-subscription-plan"],queryFn:async()=>{if(e)return e;let s=(await l.Yh.productUploadSubscriptionControllerFetchProductUploadSubscriptionPlan()).data||e;return t(s),s}})}},60789:(e,t,s)=>{"use strict";function r(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new Intl.NumberFormat("en-NG",{style:"currency",currency:"NGN",minimumFractionDigits:2*!!t,maximumFractionDigits:2*!!t}).format(e)}s.d(t,{MT:()=>r})},78916:(e,t,s)=>{"use strict";s.d(t,{$d:()=>i,Ng:()=>l,PG:()=>r,pl:()=>a,uv:()=>n});let r=e=>{let t="";return RegExp(/^\S+@\S+$/).test(e.email)?e.password.length<=0&&(t="Password is required"):t="Invalid email address",t},l=(e,t)=>{let s="";return RegExp(/^\S+@\S+$/).test(e.email)?e.firstName.length<=0?s="First name is required":e.lastName.length<=0?s="Last name is required":e.phone&&e.phone.length<=10?s="Invalid phone number":e.state?e.city?"FARMER"!==e.role||e.businessName?"FARMER"!==e.role||e.businessAddress?e.password.length<=0?s="Password is required":e.password!==t&&(s="Passwords do not match"):s="Business address is required":s="Business name is required":s="City is required":s="State is required":s="Invalid email address",s},a=e=>{let t="";return RegExp(/^\S+@\S+$/).test(e.email)||(t="Invalid email address"),t},n=e=>{let t="";return e.otp.length<3?t="Invalid OTP":RegExp(/^\S+@\S+$/).test(e.email)||(t="Invalid email address, please restart the process again!"),t},i=(e,t)=>{let s="";return e.newPassword.length<8?s="Password must be at least 8 characters.":e.newPassword!==t&&(s="Passwords do not match"),s}},89417:(e,t,s)=>{"use strict";s.d(t,{A:()=>n});var r=s(22454),l=s(4804),a=s(27475);function n(){let{testimonials:e,setTestimonials:t}=(0,a.Us)();return(0,r.I)({queryKey:["get-testimonials"],queryFn:async()=>
1{if(e.length>0)return e;let s=(await l.F7.testimonialControllerFetchTestimonialsFeed()).data||[];return t(s),s}})}},89780:(e,t,s)=>{Promise.resolve().then(s.bind(s,8422))}},e=>{e.O(0,[7333,6835,5278,9869,2619,7539,2444,7211,5239,6559,1737,6645,4804,8441,1255,7358],()=>e(e.s=89780)),_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.