PageSourceSearch

https://wazoplus.com/_next/static/chunks/pages/login-addf8198962ab34b.js

js wazoplus.com collected 2026-10-04 01:42:51 UTC 45,876 bytes, 245 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8295],{7984:(e,s,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/login",function(){return t(74422)}])},74422:(e,s,t)=>{"use strict";t.r(s),t.d(s,{AuthLinks:()=>ep,default:()=>ev});var r=t(37876),a=t(14232),i=t(17074),l=t(69472),n=t(15039),o=t.n(n),c=t(48230),d=t.n(c),m=t(82395),x=t(8785);t(59844);var u=t(79350),h=t(89099),g=t(33968),f=t(60553),j=t(65533),p=t(29523),v=t(64625),N=t(57507),w=t(9285),b=t(27250),y=t(32147),k=t(17794),C=t(77328),A=t.n(C),B=t(23947),S=t(53663),P=t(80836),T=t(54587),L=t.n(T),M=t(12029),z=t(96325),_=t(10841),q=t.n(_),E=t(88992),R=t(87569),W=t(84403),G=t(34950),H=t(30173);let I=e=>(0,r.jsx)(L(),{height:"20",width:"20",alt:"Social icon",...e}),F=({icon:e="/static/social/google.svg",href:s,title:t})=>{(0,h.useRouter)();let[i,l]=(0,a.useState)(!1),[n,o]=(0,a.useState)(null),[c,m]=(0,a.useState)("idle"),x=async e=>{if(e.preventDefault(),i)return;l(!0),o(null),m("signing-in");let t=(()=>{if(s?.includes("goto=")){let e=s.match(/goto=([^&]*)/);return e?decodeURIComponent(e[1]):"/feed"}return"/feed"})();try{console.log("Starting Google login...");let e=await (0,G.loginWithGoogleNative)(t);if(console.log("Login result received:",{success:e.success,hasError:!!e.error}),e.success){console.log("Login successful, redirecting..."),m("redirecting");let e=t.startsWith("http")?t:`${window.location.origin}${t.startsWith("/")?"":"/"}${t}`;console.log("Redirecting to:",e),console.log("Current cookies:",document.cookie),setTimeout(()=>{window.location.href=e},300)}else console.error("Login failed:",e.error),o(e.error||"Login failed"),l(!1),m("idle")}catch(e){console.error("Native Google login error:",e),o(e.message||"An unexpected error occurred"),l(!1),m("idle")}},u=s?.includes("/auth/google");return(0,W.JK)()&&u?(0,r.jsxs)(r.Fragment,{children:["redirecting"===c&&(0,r.jsx)(H.p,{message:"Redirecting...",subMessage:"Setting up your account"}),(0,r.jsxs)("div",{children:[(0,r.jsx)("button",{onClick:x,disabled:i,title:t,className:"p-2 flex items-center rounded-md border border-[#7BB92C] text-white w-[300px] h-[2.313rem] disabled:opacity-50 disabled:cursor-not-allowed",children:(0,r.jsxs)("div",{className:"flex items-center gap-2 w-fit mx-auto",children:[i?(0,r.jsx)("div",{className:"animate-spin rounded-full h-4 w-4 border-b-2 border-white"}):(0,r.jsx)(I,{src:e}),(0,r.jsx)("span",{className:"dark:text-white text-black",children:i?"redirecting"===c?"Redirecting...":"Signing in...":t})]})}),n&&(0,r.jsx)("div",{className:"mt-2 text-sm text-red-500 text-center",children:n})]})]}):(0,r.jsx)(d(),{href:s,title:t,className:"p-2 flex items-center rounded-md border border-[#7BB92C] text-white w-[300px] h-[2.313rem]",children:(0,r.jsxs)("div",{className:"flex items-center gap-2 w-fit mx-auto",children:[(0,r.jsx)(I,{src:e}),(0,r.jsx)("span",{className:"dark:text-white text-black",children:t})]})})},U=(0,a.forwardRef)(({onClick:e,text:s,href:t,className:a="",type:i="button",disabled:l=!1},n)=>(0,r.jsx)(R.PrimaryButton,{ref:n,text:s,className:`px-14 py-2 font-semibold text-[13px] border-[#D6D8D7] mb-3 block w-[250px] ${a}`,href:t,type:i,disabled:l}));U.displayName="CustomButton";let D=({error:e})=>(0,r.jsx)("span",{className:"text-red-500 first-letter:capitalize text-sm",children:e});var O=t(71090),$=t(83916),J=t(8145),K=t.n(J),V=t(53413),X=t(87238),Z=t(51178),Q=t(90890),Y=t(21863);let ee=()=>{let{formErrors:e,setFormErrors:s}=(0,X.A)(),[t,i]=(0,a.useState)(!1),l=(0,h.useRouter)(),{handleSubmit:n,register:o,formState:{errors:c,touchedFields:m,isSubmitting:x}}=(0,E.mN)({resolver:(0,O.t)($.X)});return(0,r.jsx)("form",{onSubmit:n(e=>{let{username:t,password:r}=e;s({}),K().post("/login",{username:t,password:r,goto:(0,Y.N)(l.query.goto)}).then(e=>{window.location.href=e.data.redirectTo||(0,Y.N)(l.query.goto)}).catch(e=>{s({login:e.response?.data?.message??"Login failed"})})}),children:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"mt-3 text-center",children:(0,r.jsx)(D,{error:e.login})}),(0,r.jsxs)("div",{className:"mt-5",children:[(0,r.jsxs)(Z.cl,{error:c.username,touched:m.username,className:"w-[300px]",children:[(0,r.jsx)("label",{className:"text-[14px] font-semibold dark:bg-[#0d0f14] mb-0",children:"Email"}),(0,r.jsx)(Z.ks,{type:"email",placeholder:"[email protected]",className:"rounded-md mb-3 text-[14px]",...o("username")})]}),(0,r.jsxs)(Z.cl,{error:c.password,touched:m.password,className:"w-[300px]",children:[(0,r.jsx)("label",{className:"text-[14px] font-semibold dark:bg-[#0d0f14]",children:"Password"}),(0,r.jsx)(Z.ks,{type:"password",placeholder:"xxxxxxxx",className:"rounded-md text-[14px]",...o("password")})]}),(0,r.jsx)("div",{className:"text-[#66A932] text-[12.5px] mt-1 font-[500]",children:(0,r.jsx)(d(),{href:"/account/request-password-reset",children:"Forgot password?"})}),(0,r.jsx)(U,{type:"submit",text:"Login",href:"",className:"rounded-md border-none bg-gradient-to-r from-[#096B38] to-[#92CC26] text-white font-[500] w-[300px] mt-4"})]})]})})};j.A.use([p.A,v.A,N.A,w.A]);let es=(0,u.Ay)`
2  query {
3    getLandingPageItems {
4      id
5      article {
6        title
7        summary
8        images {
9          id
10          url
11        }
12        source {
13          name
14          logo
15        }
16        author {
17          firstName
18          about
19          avatar
20        }
21        creationTime
22      }
23      post {
24        description
25        images {
26          id
27          url
28        }
29        author {
30          firstName
31          about
32          avatar
33        }
34        creationTime
35        organization {
36          name
37          avatar
38          description
39        }
40      }
41      externus {
42        author {
43          firstName
44          about
45          avatar
46        }
47        title
48        summary
49        images {
50          id
51          url
52        }
53        creationTime
54        organization {
55          name
56          avatar
57          description
58        }
59      }
60    }
61  }
62`,et=()=>{let e=(0,h.useRouter)(),s=(0,l.A)(),{data:t,loading:i,error:n}=(0,b.IT)(es),c=e?.query.goto||"/feed",[m,x]=(0,a.useState)(e?.query?.action==="signup"),[u,g]=(0,a.useState)(!1);return o()("flex-grow flex flex-col min-h-[70%] items-center",{"mt-8":m}),(0,r.jsxs)("div",{children:[(0,r.jsx)(y.A,{title:"WazoPlus | Africa's Tailor-made Professional Social Platform",description:"Login or Signup"}),(0,r.jsxs)(A(),{children:[(0,r.jsx)("meta",{name:"referrer",content:"origin"}),(0,r.jsx)("meta",{name:"viewport",content:"initial-scale=1.0, width=device-width"}),(0,r.jsx)("link",{rel:"shortcut icon",href:"/static/browser.png"})]}),u?(0,r.jsx)(ef,{}):(0,r.jsxs)("div",{className:"flex flex-col md:flex-row bg-white dark:bg-[#0d0f14] min-h-screen",children:[(0,r.jsx)("div",{className:"flex md:hidden flex-col w-full md:w-1/2 md:py-[5rem]",children:(0,r.jsxs)("div",{className:"flex flex-col justify-between h-screen",children:[(0,r.jsxs)("div",{className:"flex items-center justify-center mt-[3rem]",children:[(0,r.jsx)("div",{onClick:()=>g(!0),className:"absolute top-16 left-4",children:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{fill:"currentColor",d:"M11.707 5.293a1 1 0 0 1 0 1.414L7.414 11H19a1 1 0 1 1 0 2H7.414l4.293 4.293a1 1 0 0 1-1.414 1.414l-6-6a1 1 0 0 1 0-1.414l6-6a1 1 0 0 1 1.414 0"})})}),(0,r.jsx)(d(),{href:"/feed",children:(0,r.jsx)(B.k,{src:s.value?"/static/login-page-logo-dark.svg":"/static/login-page-logo.svg"})})]}),(0,r.jsxs)("div",{className:"self-center mt-12",children:[(0,r.jsx)("h1",{className:"text-center",children:"Login to Wazoplus"}),(0,r.jsx)("div",{className:"mt-8",children:(0,r.jsx)(F,{title:"Login with Google",href:`/auth/google?goto=${c}`})}),(0,r.jsxs)("div",{className:"flex items-center justify-center text-sm my-5 w-full md:hidden",children:[(0,r.jsx)("div",{className:"w-[8rem] h-px bg-gray-300"}),(0,r.jsx)("span",{className:"mx-4 text-gray-500",children:"Or"}),(0,r.jsx)("div",{className:"w-[8rem] h-px bg-gray-300"})]}),(0,r.jsx)(ee,{})]}),(0,r.jsx)("div",{className:"mt-auto mb-[5rem] w-fit mx-auto text-center",children:(0,r.jsxs)("div",{className:"flex space-x-2 text-xs",children:[(0,r.jsx)("div",{children:"By Signing up you agree to our"}),(0,r.jsx)("div",{className:"text-[#66A932] font-bold cursor-pointer",children:(0,r.jsx)(d(),{href:"/ground-rules",children:"Terms"})}),(0,r.jsx)("div",{children:"|"}),(0,r.jsx)("div",{className:"text-[#66A932] font-bold cursor-pointer",children:(0,r.jsx)(d(),{href:"/feedback",children:"Give us feedback"})})]})})]})}),(0,r.jsx)("div",{children:(0,r.jsx)(S.BottomNav,{})})]})]})},er=({onBack:e})=>{let s=(0,h.useRouter)(),t=(0,l.A)(),i=s?.query.goto||"/feed",[n,o]=(0,a.useState)(!1);return(0,r.jsx)("div",{className:"hidden sm:flex flex-col md:flex-row bg-white dark:bg-[#0d0f14] min-h-screen",children:(0,r.jsx)("div",{className:"flex flex-col w-full",children:(0,r.jsxs)("div",{className:"flex flex-col justify-between h-screen",children:[(0,r.jsxs)("div",{className:"flex items-center justify-center mt-[2rem]",children:[(0,r.jsx)("div",{onClick:e,className:"cursor-pointer absolute top-12 left-4",children:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{fill:"currentColor",d:"M11.707 5.293a1 1 0 0 1 0 1.414L7.414 11H19a1 1 0 1 1 0 2H7.414l4.293 4.293a1 1 0 0 1-1.414 1.414l-6-6a1 1 0 0 1 0-1.414l6-6a1 1 0 0 1 1.414 0"})})}),(0,r.jsx)(d(),{href:"/feed",children:(0,r.jsx)(B.k,{src:t.value?"/static/login-page-logo-dark.svg":"/static/login-page-logo.svg"})})]}),(0,r.jsxs)("div",{className:"self-center",children:[(0,r.jsx)("h1",{className:"text-center",children:"Login to Wazoplus"}),(0,r.jsx)("div",{className:"mt-8 w-fit mx-auto",children:(0,r.jsx)(F,{title:"Login with Google",href:`/auth/google?goto=${i}`})}),(0,r.jsxs)("div",{className:"flex items-center justify-center text-sm w-full md:hidden",children:[(0,r.jsx)("div",{className:"w-[8rem] h-px bg-gray-300"}),(0,r.jsx)("span",{className:"mx-4 text-gray-500",children:"Or"}),(0,r.jsx)("div",{className:"w-[8rem] h-px bg-gray-300"})]}),(0,r.jsx)(ee,{})]}),(0,r.jsx)("div",{className:"w-fit mx-auto text-center mb-4",children:(0,r.jsxs)("div",{className:"flex space-x-2 text-xs",children:[(0,r.jsx)("div",{children:"By Signing up you agree to our"}),(0,r.jsx)("div",{className:"text-[#66A932] font-bold cursor-pointer",children:(0,r.jsx)(d(),{href:"/groun
62d-rules",children:"Terms"})}),(0,r.jsx)("div",{children:"|"}),(0,r.jsx)("div",{className:"text-[#66A932] font-bold cursor-pointer",children:(0,r.jsx)(d(),{href:"/feedback",children:"Give us feedback"})})]})})]})})})};j.A.use([p.A,v.A,N.A,w.A]);let ea=(0,u.Ay)`
63  query {
64    getLandingPageItems {
65      id
66      article {
67        title
68        summary
69        images {
70          id
71          url
72        }
73        source {
74          name
75          logo
76        }
77        author {
78          firstName
79          about
80          avatar
81        }
82        creationTime
83      }
84      post {
85        description
86        images {
87          id
88          url
89        }
90        author {
91          firstName
92          about
93          avatar
94        }
95        creationTime
96        organization {
97          name
98          avatar
99          description
100        }
101      }
102      externus {
103        author {
104          firstName
105          about
106          avatar
107        }
108        title
109        summary
110        images {
111          id
112          url
113        }
114        creationTime
115        organization {
116          name
117          avatar
118          description
119        }
120      }
121    }
122  }
123`,ei=()=>{let e=(0,h.useRouter)(),s=(0,l.A)(),{data:t,loading:i,error:n}=(0,b.IT)(ea),c=e?.query.goto||"/feed",[m,u]=(0,a.useState)(e?.query?.action==="signup"),[g,f]=(0,a.useState)(!1),[j,p]=(0,a.useState)(!1),{urlWithParams:v}=(0,x.A)();return o()("flex-grow flex flex-col min-h-[70%] items-center",{"mt-8":m}),(0,r.jsxs)("div",{children:[(0,r.jsx)(y.A,{title:"WazoPlus | Africa's Tailor-made Professional Social Platform",description:"Login or Signup"}),(0,r.jsxs)(A(),{children:[(0,r.jsx)("meta",{name:"referrer",content:"origin"}),(0,r.jsx)("meta",{name:"viewport",content:"initial-scale=1.0, width=device-width"}),(0,r.jsx)("link",{rel:"shortcut icon",href:"/static/browser.png"})]}),g?(0,r.jsx)(eo,{intendedRoute:c}):j?(0,r.jsx)(et,{}):(0,r.jsx)("div",{className:"flex flex-col md:flex-row bg-white dark:bg-[#0d0f14] min-h-screen",children:(0,r.jsxs)("div",{className:"flex md:hidden flex-col w-full md:w-1/2 md:py-[5rem] mt-[3rem]",children:[(0,r.jsxs)("div",{className:"",children:[(0,r.jsxs)("div",{className:"flex items-center justify-center",children:[(0,r.jsx)("div",{onClick:()=>f(!0),className:"absolute top-16 left-4",children:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{fill:"currentColor",d:"M11.707 5.293a1 1 0 0 1 0 1.414L7.414 11H19a1 1 0 1 1 0 2H7.414l4.293 4.293a1 1 0 0 1-1.414 1.414l-6-6a1 1 0 0 1 0-1.414l6-6a1 1 0 0 1 1.414 0"})})}),(0,r.jsx)(d(),{href:"/feed",children:(0,r.jsx)(B.k,{src:s.value?"/static/login-page-logo-dark.svg":"/static/login-page-logo.svg"})})]}),(0,r.jsxs)("div",{className:"self-center",children:[(0,r.jsx)("p",{className:"text-center mt-12 mb-4 text-xl font-bold",children:"We found an existing account"}),(0,r.jsx)("p",{className:"text-gray-500 text-center",children:"Would you like to continue with"}),(0,r.jsxs)("div",{className:"flex flex-col w-fit mx-auto mt-4 mb-8",children:[(0,r.jsx)(R.PrimaryButton,{text:"Log in to existing account",onClick:()=>{p(!0)},width:"300px",height:"2.313rem",className:"border-none mb-4 bg-gradient-to-r from-[#096B38] to-[#92CC26] text-white"}),(0,r.jsx)(R.PrimaryButton,{text:"Create new account",onClick:()=>{f(!0)},width:"300px",height:"2.313rem",className:"bg-transparent border border-transparent border-[#7BB92C]  dark:border-[#7BB92C]  hover:text-black dark:hover:text-white w-[300px] h-[2.313rem] mr-2 transition-all"})]}),(0,r.jsx)("div",{className:"w-fit mx-auto",children:(0,r.jsx)(L(),{src:"/static/icon.png",alt:"Business Logo",width:192,height:192})})]})]}),(0,r.jsx)("div",{children:(0,r.jsx)(S.BottomNav,{})})]})})]})},el=({onBack:e,onLogin:s,onCreate:t})=>{(0,h.useRouter)();let a=(0,l.A)();return(0,r.jsx)("div",{className:"hidden sm:flex flex-col md:flex-row bg-white dark:bg-[#0d0f14] min-h-screen",children:(0,r.jsx)("div",{className:"flex flex-col w-full mt-[3rem]",children:(0,r.jsxs)("div",{className:"",children:[(0,r.jsxs)("div",{className:"flex items-center justify-center",children:[(0,r.jsx)("div",{onClick:e,className:"absolute top-16 left-4",children:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{fill:"currentColor",d:"M11.707 5.293a1 1 0 0 1 0 1.414L7.414 11H19a1 1 0 1 1 0 2H7.414l4.293 4.293a1 1 0 0 1-1.414 1.414l-6-6a1 1 0 0 1 0-1.414l6-6a1 1 0 0 1 1.414 0"})})}),(0,r.jsx)(d(),{href:"/feed",children:(0,r.jsx)(B.k,{src:a.value?"/static/login-page-logo-dark.svg":"/static/login-page-logo.svg"})})]}),(0,r.jsxs)("div",{className:"self-center",children:[(0,r.jsx)("p",{className:"text-center mt-12 mb-4 text-xl font-bold",children:"We found an existing account"}),(0,r.jsx)("p",{className:"text-gray-500 text-center",children:"Would you like to continue with"}),(0,r.jsxs)("div",{className:"flex flex-col w-fit mx-auto mt-4 mb-8",children:[(0,r.jsx)(R.PrimaryButton,{text:"Log in to existing account",onClick:s,width:"300px",height:"2.313rem",className:"border-none mb-4 bg-gradient-to-r from-[#096B38] to-[#92CC26] text-white"}),(0,r.jsx)(R.PrimaryButton,{text:"Create new account",onClick:t,width:"300px",height:"2.313rem",className:"bg-transparent border border-transparent border-[#7BB92C]  dark:border-[#7BB92C]  hover:text-black dark:hover:text-white w-[300px] h-[2.313rem] mr-2 transition-all"})]}),(0,r.jsx)("div",{className:"w-fit mx-auto",children:(0,r.jsx)(L(),{src:"/static/icon.png",alt:"Business Logo",width:192,height:192})})]})]})})})};j.A.use([p.A,v.A,N.A,w.A]);let en=(0,u.Ay)`
124  query {
125    getLandingPageItems {
126      id
127      article {
128        title
129        summary
130        images {
131          id
132          url
133        }
134        source {
135          name
136          logo
137        }
138        author {
139          firstName
140          about
141          avatar
142        }
143        creationTime
144      }
145      post {
146        description
147        images {
148          id
149          url
150        }
151        author {
152          firstName
153          about
154          avatar
155        }
156        creationTime
157        organization {
158          name
159          avatar
160          description
161        }
162      }
163      externus {
164        author {
165          firstName
166          about
167          avatar
168        }
169        title
170        summary
171        images {
172          id
173          url
174        }
175        creationTime
176        organization {
177          name
178          avatar
179          description
180        }
181      }
182    }
183  }
184`,eo=({intendedRoute:e})=>{let s=(0,l.A)(),[t,i]=(0,a.useState)(!1),[n,o]=(0,a.useState)(!1),{data:c,loading:m,error:u}=(0,b.IT)(en),[g,f]=(0,a.useState)(""),[j,p]=(0,a.useState)(""),v=(0,h.useRouter)(),{formErrors:N,setFormErrors:w}=(0,X.A)(),[k,C]=(0,a.useState)(1),{register:P,handleSubmit:T,setError:L,clearErrors:M,formState:{errors:z,touchedFields:_,isSubmitting:q},getValues:R,watch:W,trigger:G}=(0,E.mN)({resolver:(0,O.t)($.v),shouldUnregister:!1}),{urlWithParams:H}=(0,x.A)(),{data:I,loading:J,error:Y}=(0,b.IT)(Q.J_,{variables:{username:v?.query?.username},skip:!v?.query?.username}),ee=W("email");(0,a.useEffect)(()=>{z.email?.type==="manual"&&M("email")},[ee,M,z.email]);let es=async()=>{if(!await G("email"))return;let e=R("email");try{let{data:s}=await K().get("/check-email",{params:{email:e}});s.exists?(L("email",{type:"manual",message:"This email is already registered. Please login instead."}),i(!0)):(M("email"),w({}),C(2))}catch(e){L("email",{type:"manual",message:"Unable to verify email. Please try again."}),w({emailError:"Unable to verify email. Please try again."})}},et=async e=>{w({});try{let s=await K().post("/register",{...e,goto:v.query.goto});s.data.success?window.location.href=V.z0:(w({signupError:s.data.message}),"The provided email is already taken"===s.data.message&&(L("email",{type:"manual",message:s.data.message}),C(1)))}catch(s){let e=K().isAxiosError(s)&&s.response?.data?.message?s.response.data.message:"An unexpected error occurred.";w({signupError:e}),"The provided email is already taken"===e&&(L("email",{type:"manual",message:e}),C(1))}};return(0,r.jsxs)("div",{children:[(0,r.jsx)(y.A,{title:"WazoPlus | Africa's Tailor-made Professional Social Platform",description:"Login or Signup"}),(0,r.jsxs)(A(),{children:[(0,r.jsx)("meta",{name:"referrer",content:"origin"}),(0,r.jsx)("meta",{name:"viewport",content:"initial-scale=1.0, width=device-width"}),(0,r.jsx)("link",{rel:"shortcut icon",href:"/static/browser.png"})]}),(0,r.jsxs)("div",{className:"flex flex-col md:flex-row bg-white dark:bg-[#0d0f14] min-h-screen pb-[7rem]",children:[t?(0,r.jsx)(ei,{}):n?(0,r.jsx)(ef,{}):(0,r.jsx)("div",{className:"flex md:hidden flex-col w-full md:w-1/2 md:py-[5rem]",children:(0,r.jsxs)("div",{className:"flex flex-col justify-between h-screen",children:[(0,r.jsxs)("div",{className:"flex items-center justify-center mt-[3rem]",children:[(0,r.jsx)("div",{onClick:()=>o(!0),className:"absolute top-16 left-4 cursor-pointer",children:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{fill:"currentColor",d:"M11.707 5.293a1 1 0 0 1 0 1.414L7.414 11H19a1 1 0 1 1 0 2H7.414l4.293 4.293a1 1 0 0 1-1.414 1.414l-6-6a1 1 0 0 1 0-1.414l6-6a1 1 0 0 1 1.414 0"})})}),(0,r.jsx)(d(),{href:"/feed",children:(0,r.jsx)(B.k,{src:s.value?"/static/login-page-logo-dark.svg":"/static/login-page-logo.svg"})})]}),(0,r.jsxs)("div",{className:"self-center mt-12",children:[(0,r.jsxs)("div",{className:"self-center",children:[(0,r.jsx)("h1",{className:"text-center",children:"Create new account"}),(0,r.jsxs)("div",{className:"flex flex-col items-center mt-8",children:[(0,r.jsx)(F,{title:"Sign up with Google",href:`/auth/google?goto=${e}`}),(0,r.jsxs)("div",{className:"flex items-center justify-center text-sm my-5 w-full md:hidden",children:[(0,r.jsx)("div",{className:"w-[8rem] h-px bg-gray-500"}),(0,r.jsx)("span",{className:"mx-4 text-gray-500",children:"Or"}),(0,r.jsx)("div",{className:"w-[8rem] h-px bg-gray-500"})]})]})]}),(0,r.jsxs)("form",{onSubmit:T(et),children:[(0,r.jsx)("div",{className:"text-center mb-2",children:(0,r.jsx)(D,{error:N.signupError})}),1===k&&(0,r.jsxs)("div",{className:"mt-5 space-y-4 w-fit mx-auto",children:[(0,r.jsxs)(Z.cl,{touched:_.email,error:z.email,className:"w-[300px]",children:[(0,r.jsx)("label",{className:"block text-sm font-semibold",children:"Email"}),(0,r.jsx)(Z.ks,{type:"email",placeholder:"[email protected]",...P("email"),className:"rounded-md text-[14px]"})]}),N.emailError&&(0,r.jsx)("div",{className:"text-red-500 text-sm",children:N.emailError}),(0,r.jsx)("button",{type:"button",onClick:es,disabled:!ee||""===ee.trim(),className:"rounded-md border-none bg-gradient-to-r from-[#096B38] to-[#92CC26] text-white font-[500] w-[300px] px-14 py-2 mt-4","aria-label":"Next Step",children:"Next"})]}),2===k&&(0,r.jsxs)("div",{className:"w-fit mx-auto",children:[(0,r.jsxs)("div",{className:"mt-5 space-y-4",children:[(0,r.jsxs)(Z.cl,{touched:_.first_name,error:z.first_name,className:"w-[300px]",children:[(0,r.jsx)("label",{className:"block text-sm font-semibold",children:"First name"}),(0,r.jsx)(Z.ks,{type:"text",placeholder:"John",...P("first_name"),className:"rounded-md text-[14px]"})]}),(0,r.jsxs)(Z.cl,{touched:_.last_name,error:z.last_name,className:"w-[300px]",children:[(0,r.jsx)("label",{className:"block text-sm font-semibold",children:"Last name"}),(0,r.jsx)(Z.ks,{type:"text",placeholder:"Doe",...P("last_name"),className:"rounded-md text-[14px]"})]})]}),(0,r.jsxs)("div",{className:"mt-5 space-y-4",children:[(0,r.jsxs)(Z.cl,{touched:_.location,error:z.location,className:"w-[300px]",children:[(0,r.jsx)("label",{className:"block text-sm font-semibold",children:"Location"}),(0,r.jsx)(Z.ks,{type:"text",placeholder:"Kigali, Rwanda",...P("location"),className:"rounded-md text-[14px]"})]}),(0,r.jsxs)(Z.cl,{touched:_.password,error:z.password,className:"w-[300px]",children:[(0,r.jsx)("label",{className:"block text-sm font-semibold",children:"Password"}),(0,r.jsx)(Z.ks,{type:"password",placeholder:"••••••••",...P("password"),className:"rounded-md text-[14px]"})]}),(0,r.jsxs)(Z.cl,{touched:_.password_confirm,error:z.password_confirm,className:"w-[300px]",children:[(0,r.jsx)("label",{className:"block text-sm font-semibold",children:"Confirm Password"}),(0,r.jsx)(Z.ks,{type:"password",placeholder:"••••••••",...P("password_confirm"),className:"rounded-md text-[14px]"})]}),(0,r.jsx)("div",{className:"flex justify-between items-center",children:(0,r.jsx)(U,{text:"Create Account",type:"submit",disabled:q,className:"p-2 flex items-center justify-center text-white rounded-md hover:shadow-md bg-gradient-to-r from-[#096B38] to-[#92CC26] w-[300px] h-[2.313rem] cursor-pointer transition-all"})})]})]})]})]}),(0,r.jsx)("div",{className:"mt-auto mb-[5rem] w-fit mx-auto text-center",children:(0,r.jsxs)("div",{className:"flex space-x-2 text-xs",children:[(0,r.jsx)("div",{children:"By Signing up you agree to our"}),(0,r.jsx)("div",{className:"text-[#66A932] font-bold cursor-pointer",children:(0,r.jsx)(d(),{href:"/groun
184d-rules",children:"Terms"})}),(0,r.jsx)("div",{children:"|"}),(0,r.jsx)("div",{className:"text-[#66A932] font-bold cursor-pointer",children:(0,r.jsx)(d(),{href:"/privacy-policy",children:"Privacy Policy"})}),(0,r.jsx)("div",{children:"|"}),(0,r.jsx)("div",{className:"text-[#66A932] font-bold cursor-pointer",children:(0,r.jsx)(d(),{href:"/feedback",children:"Give us feedback"})})]})})]})}),(0,r.jsx)("div",{children:(0,r.jsx)(S.BottomNav,{})})]})]})},ec=({intendedRoute:e,onBack:s,onEmailExists:t})=>{let i=(0,l.A)(),[n,o]=(0,a.useState)(!1),{data:c,loading:m,error:u}=(0,b.IT)(en),[g,f]=(0,a.useState)(""),[j,p]=(0,a.useState)(""),v=(0,h.useRouter)(),{formErrors:N,setFormErrors:w}=(0,X.A)(),[y,k]=(0,a.useState)(1),{register:C,handleSubmit:A,setError:S,clearErrors:P,formState:{errors:T,touchedFields:L,isSubmitting:M},getValues:z,watch:_,trigger:q}=(0,E.mN)({resolver:(0,O.t)($.v),shouldUnregister:!1}),{urlWithParams:R}=(0,x.A)(),{data:W,loading:G,error:H}=(0,b.IT)(Q.J_,{variables:{username:v?.query?.username},skip:!v?.query?.username}),I=_("email");(0,a.useEffect)(()=>{T.email?.type==="manual"&&P("email")},[I,P,T.email]);let J=async()=>{if(!await q("email"))return;let e=z("email");try{let{data:s}=await K().get("/check-email",{params:{email:e}});s.exists?(S("email",{type:"manual",message:"This email is already registered. Please login instead."}),t()):(P("email"),w({}),k(2))}catch(e){S("email",{type:"manual",message:"Unable to verify email. Please try again."}),w({emailError:"Unable to verify email. Please try again."})}},Y=async e=>{w({});try{let s=await K().post("/register",{...e,goto:v.query.goto});s.data.success?window.location.href=V.z0:(w({signupError:s.data.message}),"The provided email is already taken"===s.data.message&&(S("email",{type:"manual",message:s.data.message}),k(1)))}catch(s){let e=K().isAxiosError(s)&&s.response?.data?.message?s.response.data.message:"An unexpected error occurred.";w({signupError:e}),"The provided email is already taken"===e&&(S("email",{type:"manual",message:e}),k(1))}};return(0,r.jsx)("div",{className:"hidden sm:flex flex-col md:flex-row bg-white dark:bg-[#0d0f14] min-h-screen",children:(0,r.jsx)("div",{className:"flex flex-col w-full",children:(0,r.jsxs)("div",{className:"flex flex-col justify-between h-screen",children:[(0,r.jsxs)("div",{className:"flex items-center justify-center mt-[2rem]",children:[(0,r.jsx)("div",{onClick:s,className:"absolute top-12 left-4 cursor-pointer",children:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{fill:"currentColor",d:"M11.707 5.293a1 1 0 0 1 0 1.414L7.414 11H19a1 1 0 1 1 0 2H7.414l4.293 4.293a1 1 0 0 1-1.414 1.414l-6-6a1 1 0 0 1 0-1.414l6-6a1 1 0 0 1 1.414 0"})})}),(0,r.jsx)(d(),{href:"/feed",children:(0,r.jsx)(B.k,{src:i.value?"/static/login-page-logo-dark.svg":"/static/login-page-logo.svg"})})]}),(0,r.jsxs)("div",{className:"self-center mt-12",children:[(0,r.jsxs)("div",{className:"self-center",children:[(0,r.jsx)("h1",{className:"text-center",children:"Create new account"}),(0,r.jsxs)("div",{className:"flex flex-col items-center mt-8",children:[(0,r.jsx)(F,{title:"Sign up with Google",href:`/auth/google?goto=${e}`}),(0,r.jsxs)("div",{className:"flex items-center justify-center text-sm my-5 w-full",children:[(0,r.jsx)("div",{className:"w-[8rem] h-px bg-gray-500"}),(0,r.jsx)("span",{className:"mx-4 text-gray-500",children:"Or"}),(0,r.jsx)("div",{className:"w-[8rem] h-px bg-gray-500"})]})]})]}),(0,r.jsxs)("form",{onSubmit:A(Y),children:[(0,r.jsx)("div",{className:"text-center mb-2",children:(0,r.jsx)(D,{error:N.signupError})}),1===y&&(0,r.jsxs)("div",{className:"mt-5 space-y-4 w-fit mx-auto",children:[(0,r.jsxs)(Z.cl,{touched:L.email,error:T.email,className:"w-[300px]",children:[(0,r.jsx)("label",{className:"block text-sm font-semibold",children:"Email"}),(0,r.jsx)(Z.ks,{type:"email",placeholder:"[email protected]",...C("email"),className:"rounded-md text-[14px]"})]}),N.emailError&&(0,r.jsx)("div",{className:"text-red-500 text-sm",children:N.emailError}),(0,r.jsx)("button",{type:"button",onClick:J,"aria-label":"Next Step",disabled:!I||""===I.trim(),className:"rounded-md border-none bg-gradient-to-r from-[#096B38] to-[#92CC26] text-white font-[500] w-[300px] px-14 py-2 mt-4",children:"Next"})]}),2===y&&(0,r.jsxs)("div",{className:"w-fit mx-auto",children:[(0,r.jsxs)("div",{className:"mt-5 space-y-4",children:[(0,r.jsxs)(Z.cl,{touched:L.first_name,error:T.first_name,className:"w-[300px]",children:[(0,r.jsx)("label",{className:"block text-sm font-semibold",children:"First name"}),(0,r.jsx)(Z.ks,{type:"text",placeholder:"John",...C("first_name"),className:"rounded-md text-[14px]"})]}),(0,r.jsxs)(Z.cl,{touched:L.last_name,error:T.last_name,className:"w-[300px]",children:[(0,r.jsx)("label",{className:"block text-sm font-semibold",children:"Last name"}),(0,r.jsx)(Z.ks,{type:"text",placeholder:"Doe",...C("last_name"),className:"rounded-md text-[14px]"})]})]}),(0,r.jsxs)("div",{className:"mt-5 space-y-4",children:[(0,r.jsxs)(Z.cl,{touched:L.location,error:T.location,className:"w-[300px]",children:[(0,r.jsx)("label",{className:"block text-sm font-semibold",children:"Location"}),(0,r.jsx)(Z.ks,{type:"text",placeholder:"Kigali, Rwanda",...C("location"),className:"rounded-md text-[14px]"})]}),(0,r.jsxs)(Z.cl,{touched:L.password,error:T.password,className:"w-[300px]",children:[(0,r.jsx)("label",{className:"block text-sm font-semibold",children:"Password"}),(0,r.jsx)(Z.ks,{type:"password",placeholder:"••••••••",...C("password"),className:"rounded-md text-[14px]"})]}),(0,r.jsxs)(Z.cl,{touched:L.password_confirm,error:T.password_confirm,className:"w-[300px]",children:[(0,r.jsx)("label",{className:"block text-sm font-semibold",children:"Confirm Password"}),(0,r.jsx)(Z.ks,{type:"password",placeholder:"••••••••",...C("password_confirm"),className:"rounded-md text-[14px]"})]}),(0,r.jsx)("div",{className:"flex justify-between items-center",children:(0,r.jsx)(U,{text:"Create Account",type:"submit",disabled:M,className:"border-none p-2 flex items-center justify-center text-white rounded-md hover:shadow-md bg-gradient-to-r from-[#096B38] to-[#92CC26] w-[300px] h-[2.313rem] cursor-pointer transition-all"})})]})]})]})]}),(0,r.jsx)("div",{className:"w-fit mx-auto text-center mb-2",children:(0,r.jsxs)("div",{className:"flex space-x-2 text-xs",children:[(0,r.jsx)("div",{children:"By Signing up you agree to our"}),(0,r.jsx)("div",{className:"text-[#66A932] font-bold cursor-pointer",children:(0,r.jsx)(d(),{href:"/groun
184d-rules",children:"Terms"})}),(0,r.jsx)("div",{children:"|"}),(0,r.jsx)("div",{className:"text-[#66A932] font-bold cursor-pointer",children:(0,r.jsx)(d(),{href:"/privacy-policy",children:"Privacy Policy"})}),(0,r.jsx)("div",{children:"|"}),(0,r.jsx)("div",{className:"text-[#66A932] font-bold cursor-pointer",children:(0,r.jsx)(d(),{href:"/feedback",children:"Give us feedback"})})]})})]})})})};var ed=t(76923),em=t(44203);j.A.use([p.A,v.A,N.A,w.A]);let ex=(0,u.Ay)`
185  query {
186    getLandingPageItems {
187      id
188      article {
189        title
190        summary
191        images {
192          id
193          url
194        }
195        source {
196          name
197          logo
198        }
199        author {
200          firstName
201          about
202          avatar
203        }
204        creationTime
205      }
206      post {
207        description
208        images {
209          id
210          url
211        }
212        author {
213          firstName
214          about
215          avatar
216        }
217        creationTime
218        organization {
219          name
220          avatar
221          description
222        }
223      }
224      externus {
225        author {
226          firstName
227          about
228          avatar
229        }
230        title
231        summary
232        images {
233          id
234          url
235        }
236        creationTime
237        organization {
238          name
239          avatar
240          description
241        }
242      }
243    }
244  }
245`,eu=[{commentCount:9,likesCount:10,fireMentionCount:22},{commentCount:15,likesCount:25,fireMentionCount:30},{commentCount:5,likesCount:8,fireMentionCount:12},{commentCount:12,likesCount:18,fireMentionCount:20},{commentCount:8,likesCount:14,fireMentionCount:16},{commentCount:11,likesCount:20,fireMentionCount:25},{commentCount:6,likesCount:10,fireMentionCount:15},{commentCount:14,likesCount:22,fireMentionCount:28},{commentCount:3,likesCount:6,fireMentionCount:9},{commentCount:20,likesCount:30,fireMentionCount:40},{commentCount:18,likesCount:28,fireMentionCount:35},{commentCount:7,likesCount:12,fireMentionCount:14},{commentCount:16,likesCount:24,fireMentionCount:30},{commentCount:4,likesCount:9,fireMentionCount:11},{commentCount:13,likesCount:19,fireMentionCount:24},{commentCount:10,likesCount:15,fireMentionCount:20},{commentCount:2,likesCount:4,fireMentionCount:6},{commentCount:19,likesCount:27,fireMentionCount:33},{commentCount:1,likesCount:2,fireMentionCount:3},{commentCount:17,likesCount:23,fireMentionCount:29}],eh=()=>(0,r.jsx)("div",{className:"mt-8",children:(0,r.jsx)(d(),{href:"/feed",className:"p-2 pl-[4.5rem] flex items-center rounded-md bg-transparent border border-[#7BB92C] dark:border-[#7BB92C] hover:text-black dark:hover:text-white w-[270px] h-[2.313rem] cursor-pointer transition-all",children:"Continue As Guest"})}),eg=({onClick:e})=>(0,r.jsx)("div",{className:"",children:(0,r.jsx)(d(),{href:"#",scroll:!1,onClick:s=>{s.preventDefault(),e?.()},className:"p-2 pl-[5rem] flex items-center rounded-md bg-transparent border border-[#7BB92C]  dark:border-[#7BB92C]  hover:text-black dark:hover:text-white w-[270px] h-[2.313rem] cursor-pointer transition-all",children:"Create Account"})});function ef(){let e=(0,h.useRouter)(),s=(0,l.A)(),{data:t,loading:i,error:n}=(0,b.IT)(ex),c=e?.query.goto||"/feed",[m,u]=(0,a.useState)(e?.query?.action==="signup"),{urlWithParams:j}=(0,x.A)();o()("flex-grow flex flex-col min-h-[70%] items-center",{"mt-8":m}),(0,a.useMemo)(()=>({linkText:m?"Go to login":"Sign Up",buttonText:m?"Sign up":"Sign in"}),[m]),(0,a.useMemo)(()=>e?.query.goto!=="/business/create",[e?.query]),(0,a.useEffect)(()=>{"signup"!==e.query.action&&m&&u(!1),"signup"!==e.query.action||m||u(!0)},[e?.query?.action]);let[p,v]=(0,a.useState)(0),[N,w]=(0,a.useState)(!1),[C,T]=(0,a.useState)(!1),[_,E]=(0,a.useState)(!1);return(0,r.jsxs)("div",{className:"mait",children:[(0,r.jsx)(y.A,{title:"WazoPlus | Africa's Tailor-made Professional Social Platform",description:"Login or Signup"}),(0,r.jsx)(k.A,{pageType:"home"}),(0,r.jsxs)(A(),{children:[(0,r.jsx)("meta",{name:"referrer",content:"origin"}),(0,r.jsx)("meta",{name:"viewport",content:"initial-scale=1.0, width=device-width"}),(0,r.jsx)("link",{rel:"shortcut icon",href:"/static/browser.png"})]}),(0,r.jsxs)("div",{className:"flex flex-col md:flex-row bg-white dark:bg-[#0d0f14] min-h-screen",children:[(0,r.jsx)("div",{className:"hidden sm:block w-1/2",children:_?(0,r.jsx)(el,{onBack:()=>{E(!1),w(!0)},onLogin:()=>{E(!1),T(!0)},onCreate:()=>{E(!1),w(!0)}}):N?(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"block sm:hidden",children:(0,r.jsx)(eo,{intendedRoute:c})}),(0,r.jsx)("div",{className:"hidden sm:block",children:(0,r.jsx)(ec,{intendedRoute:c,onBack:()=>{w(!1)},onEmailExists:()=>{console.log("Email already exists"),w(!1),E(!0)}})})]}):C?(0,r.jsx)(er,{onBack:()=>{T(!1)}}):(0,r.jsxs)("div",{className:"flex flex-col h-screen",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"flex items-center justify-center mt-[3rem]",children:(0,r.jsx)(d(),{href:"/feed",children:(0,r.jsx)(B.k,{src:s.value?"/static/login-page-logo-dark.svg":"/static/login-page-logo.svg"})})}),(0,r.jsxs)("div",{className:"mt-8",children:[(0,r.jsx)("h1",{className:"text-center",children:"Welcome to WazoPlus"}),(0,r.jsx)("p",{className:"text-center mt-2 font-medium mb-2",children:"The professional social platform for Africa."}),(0,r.jsx)("p",{className:"mx-auto w-3/4 text-center",children:"Build your brand, connect with your audience, showcase your products & services, and get discovered on WazoPlus Business Hub!"}),(0,r.jsx)(ed.default,{variant:"inline",className:"mt-4"})]})]}),(0,r.jsxs)("div",{className:"flex flex-col items-center mt-8",children:[(0,r.jsx)(d(),{href:"#",scroll:!1,onClick:e=>{e.preventDefault(),T(!0)},className:"p-2 pl-[7rem] rounded-md flex items-center border-none bg-gradient-to-r from-[#096B38] to-[#92CC26] text-white w-[270px] h-[2.313rem] cursor-pointer",children:"Login"}),(0,r.jsx)(eh,{}),(0,r.jsxs)("div",{className:"flex items-center justify-center text-sm my-5 w-full",children:[(0,r.jsx)("div",{className:"w-[7rem] h-px bg-gray-300"}),(0,r.jsx)("span",{className:"mx-4 text-gray-500",children:"Or"}),(0,r.jsx)("div",{className:"w-[7rem] h-px bg-gray-300"})]}),(0,r.jsx)(eg,{onClick:()=>w(!0)})]}),(0,r.jsx)("div",{className:"mt-auto w-fit mx-auto text-center mb-2",children:(0,r.jsxs)("div",{className:"flex space-x-3 text-sm",children:[(0,r.jsx)("div",{children:"By Signing up you agree to our"}
245),(0,r.jsx)("div",{children:(0,r.jsx)(d(),{href:"/ground-rules",children:"Terms"})}),(0,r.jsx)("div",{children:"|"}),(0,r.jsx)("div",{children:(0,r.jsx)(d(),{href:"/feedback",children:"Give us feedback"})})]})})]})}),(0,r.jsxs)("div",{className:"md:hidden w-full md:w-1/2 md:py-[5rem] min-h-auto",children:[!N&&!C&&(0,r.jsxs)("div",{className:"flex flex-col justify-between h-screen",children:[(0,r.jsx)("div",{className:"flex items-center justify-center mt-[3rem]",children:(0,r.jsx)(d(),{href:"/feed",children:(0,r.jsx)(B.k,{src:s.value?"/static/login-page-logo-dark.svg":"/static/login-page-logo.svg"})})}),(0,r.jsxs)("div",{className:"self-center mt-8",children:[(0,r.jsx)("h1",{className:"text-center",children:"Welcome to WazoPlus"}),(0,r.jsx)("p",{className:"text-center mt-2 font-medium mb-2",children:"The professional social platform for Africa."}),(0,r.jsx)("p",{className:"mx-auto w-3/4 text-center",children:"Build your brand, connect with your audience, showcase your products & services, and get discovered on WazoPlus Business Hub!"}),(0,r.jsx)(ed.default,{variant:"inline",className:"mt-4"}),(0,r.jsxs)("div",{className:"mt-8 flex flex-col items-center",children:[(0,r.jsx)(d(),{href:"#",scroll:!1,onClick:e=>{e.preventDefault(),T(!0)},className:"p-2 pl-[7rem] rounded-md flex items-center border-none mt-3 bg-gradient-to-r from-[#096B38] to-[#92CC26] text-white w-[270px] h-[2.313rem] cursor-pointer",children:"Login"}),(0,r.jsx)(eh,{}),(0,r.jsxs)("div",{className:"flex items-center justify-center text-sm my-5 w-full",children:[(0,r.jsx)("div",{className:"w-[7rem] h-px bg-gray-300"}),(0,r.jsx)("span",{className:"mx-4 text-gray-500",children:"Or"}),(0,r.jsx)("div",{className:"w-[7rem] h-px bg-gray-300"})]}),(0,r.jsx)(eg,{onClick:()=>w(!0)})]})]}),(0,r.jsx)("div",{className:"mt-auto mb-[5rem] w-fit mx-auto text-center",children:(0,r.jsxs)("div",{className:"flex space-x-2 text-xs",children:[(0,r.jsx)("div",{children:"By Signing up you agree to our"}),(0,r.jsx)("div",{className:"text-[#66A932] font-bold cursor-pointer",children:(0,r.jsx)(d(),{href:"/ground-rules",children:"Terms"})}),(0,r.jsx)("div",{children:"|"}),(0,r.jsx)("div",{className:"text-[#66A932] font-bold cursor-pointer",children:(0,r.jsx)(d(),{href:"/privacy-policy",children:"Privacy Policy"})}),(0,r.jsx)("div",{children:"|"}),(0,r.jsx)("div",{className:"text-[#66A932] font-bold cursor-pointer",children:(0,r.jsx)(d(),{href:"/feedback",children:"Give us feedback"})})]})})]}),N&&(0,r.jsx)(eo,{intendedRoute:c}),C&&(0,r.jsx)(et,{})]}),(0,r.jsx)("div",{children:(0,r.jsx)(S.BottomNav,{})}),(0,r.jsx)("div",{className:"w-1/2 bg-[#F2F2F2] dark:bg-[#131318] min-h-screen hidden md:block items-center justify-center",children:(0,r.jsx)(g.R,{spaceBetween:0,autoplay:{delay:5e3,disableOnInteraction:!1},effect:"fade",speed:2e3,loop:!0,pagination:{dynamicBullets:!0,clickable:!0},slidesPerView:1,className:"dynamic-width-swiper-slide",children:t&&t?.getLandingPageItems?.map((e,s)=>{var t;let a=(t=e.id,eu[Math.abs("number"==typeof t?t:s)%eu.length]),i=e.externus?.organization?.avatar?.trim()||e.post?.organization?.avatar?.trim()||e.article?.source?.logo?.trim()||e.externus?.author?.avatar?.trim()||e.post?.author?.avatar?.trim()||e.article?.author?.avatar?.trim(),l=e.externus?.images?.[0]?.url||e.post?.images?.[0]?.url||e.article?.images?.[0]?.url;return(0,r.jsx)(f.q,{children:(0,r.jsx)("div",{className:"flex items-center justify-center min-h-screen",children:(0,r.jsxs)(P.a,{className:"p-[10px] bg-white dark:bg-[#0d0f14] rounded unset-cursor-pointer w-[25.625rem] mx-auto",children:[(0,r.jsx)("div",{className:"flex justify-between items-center",children:(0,r.jsxs)("div",{className:"flex items-center w-full",children:[(0,r.jsx)("div",{className:"",children:(0,r.jsx)(L(),{...(0,em.Ho)(i),height:40,width:40,className:"rounded-full",alt:e.externus?.organization?e.externus?.organization?.name:e.post?.organization?e.post?.organization?.name:e.article?.source?e.article?.source?.name:e.externus?.author?.firstName||e.post?.author?.firstName||e.article?.author?.firstName})}),(0,r.jsxs)("div",{className:"leading-[18px] ml-2 flex-1",children:[(0,r.jsx)("div",{className:"flex",children:(0,r.jsx)("h1",{className:"font-[400] mr-2 text-[0.875rem] flex",children:(0,r.jsx)("span",{children:e.externus?.organization?e.externus?.organization?.name:e.post?.organization?e.post?.organization?.name:e.article?.source?e.article?.source?.name:e.externus?.author?.firstName||e.post?.author?.firstName||e.article?.author?.firstName})})}),(0,r.jsx)("span",{className:"text-date-time-block-solid text-[0.75rem] text-ellipsis line-clamp-1",children:e.externus?.organization?e.externus?.organization?.description:e.post?.organization?e.post?.organization?.description:e.externus?.author?.about||e.post?.author?.about||e.article?.author?.about}),(0,r.jsx)("span",{className:"text-date-time-block-solid mt-1 font-poppins text-[0.7rem] font-medium",suppressHydrationWarning:!0,children:q().utc(e.externus?.creationTime||e.post?.creationTime||e.article?.creationTime).locale("en").format("ll")})]}),(0,r.jsx)("div",{className:"w-[30px] self-start flex justify-end",children:(0,r.jsx)(B.k,{src:"/static/dots-menu.svg",className:"dark:fill-[#e1e1e1] rotate-90"})})]})}),(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{children:[(0,r.jsx)(d(),{href:"",className:"truncate-content max-h-[6em] font-[500] text-[0.9rem]",children:(0,r.jsx)("span",{className:"",children:e.externus?.title||e.article?.title})}),(0,r.jsx)("div",{className:"text-[14px] relative",children:(0,r.jsx)("div",{className:"text-ellipsis line-clamp-3",children:(0,r.jsx)(M.A,{content:e.externus?.summary||e.post?.description||e.article?.summary,isReadingPage:!1})})}),(0,r.jsx)("div",{children:(0,r.jsx)("div",{className:"h-fit full-image w-full relative",children:(0,r.jsx)(L(),{...(0,em.UA)(l),layout:"fill",objectFit:"cover",className:"rounded-xl full-image__img",alt:e.externus?.title||e.article?.title})})})]}),(0,r.jsxs)("div",{className:"mt-4 flex items-end justify-between",children:[(0,r.jsx)(z.A,{postId:1,commentCount:a.commentCount,likesCount:a.likesCount,fireMentionCount:a.fireMentionCount,variant:"dark"}),(0,r.jsx)("button",{"aria-label":"Share Post",children:(0,r.jsx)("svg",{className:"dark:stroke-white stroke-[1.5px]",width:"19",height:"19",viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"#333333",children:(0,r.jsx)("g",{clipPath:"url(#a)",children:(0,r.jsx)("path",{d:"M12.95 14.9a.23.23 0 0 1-.39-.17V10.4l-.76.01a21 21 0 0 0-4.23.41c-1.2.27-2.21.7-2.97 1.4-1.57 1.45-1.7 3.7-.78 6.69C2.2 17.7.75 15.43.75 13.2c0-1.45.3-2.56.82-3.43a5.41 5.41 0 0 1 2.22-2.03c1.96-1.03 4.75-1.38 8.03-1.42l.74-.01V2.3c0-.2.24-.31.39-.18l7.2 6.19c.15.14.11.32.02.4l-7.22 6.2Z"})})})})]})]})]})})},e.id??s)})})})]})]})}var ej=t(41020);let ep=({intendedRoute:e,containerClass:s,useBlackIcon:t=!1})=>{let{urlWithParams:a}=(0,x.A)();return(0,r.jsxs)("div",{className:`text-[.84em] ${s} items-center font-semibold`,children:[(0,r.jsx)(d(),{href:a("/login",{action:"login"}),className:"cursor-pointer mr-3 text-primary hidden sm:block",children:"Login"}),(0,r.jsx)(d(),{href:a("/login",{action:"signup"}),className:"cursor-pointer text-primary mr-3 hidden sm:block",children:"Signup"}),(0,r.jsx)("div",{className:"block sm:hidden mr-2",children:(0,r.jsx)(d(),{href:a("/login",{action:"login"}),children:(0,r.jsxs)("svg",{className:"cursor-pointer",width:"30",height:"30",viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{className:"stroke-[#333333] dark:stroke-white",d:"M15 28.25C22.3
245178 28.25 28.25 22.3178 28.25 15C28.25 7.68223 22.3178 1.75 15 1.75C7.68223 1.75 1.75 7.68223 1.75 15C1.75 22.3178 7.68223 28.25 15 28.25Z",stroke:"#333333"}),(0,r.jsx)("path",{className:"stroke-[#333333] dark:stroke-white",d:"M15 17.25C18.1756 17.25 20.75 14.6756 20.75 11.5C20.75 8.32436 18.1756 5.75 15 5.75C11.8244 5.75 9.25 8.32436 9.25 11.5C9.25 14.6756 11.8244 17.25 15 17.25Z",stroke:"#333333"}),(0,r.jsx)("path",{className:"stroke-[#333333] dark:stroke-white",d:"M5.34082 24.07C6.04932 22.0748 7.35827 20.348 9.08782 19.1268C10.8174 17.9056 12.8827 17.25 14.9999 17.25C17.1171 17.25 19.1824 17.9056 20.912 19.1268C22.6415 20.348 23.9505 22.0748 24.659 24.07",stroke:"#333333"})]})})}),(0,r.jsx)(m.u,{useBlackIcon:t})]})},ev=(0,i.J)(function(e){(0,l.A)();let{router:s}=e;s?.query.goto;let[t,i]=(0,a.useState)(s?.query?.action==="signup"),{urlWithParams:n}=(0,x.A)();return o()("flex flex-col min-h-[70%] justify-center items-center",{"mt-8":t}),(0,a.useMemo)(()=>({linkText:t?"Go to login":"Sign Up",buttonText:t?"Sign up":"Sign in"}),[t]),(0,a.useMemo)(()=>"/business/create"!==s.query.goto,[s?.query]),(0,a.useEffect)(()=>{"signup"!==s.query.action&&t&&i(!1),"signup"!==s.query.action||t||i(!0)},[s?.query?.action]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(ef,{}),(0,r.jsx)(ej.EnhancedFooter,{})]})})}},e=>{e.O(0,[8319,3081,9338,4029,8070,7615,1274,508,6132,3630,1799,7673,8121,8263,6979,8779,563,6203,8405,1680,8313,6335,3238,4908,9290,5019,5367,3269,4269,6321,7366,5030,465,3719,9173,8612,5092,6960,4083,6682,2769,7438,3699,9219,7300,5917,6231,6611,6933,2964,9656,1813,3043,9976,8189,1687,428,369,443,6835,8422,2308,9184,9006,7244,7585,8066,8374,8209,8311,3735,8792],()=>e(e.s=7984)),_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.