PageSourceSearch

https://app.bayuti.com/_next/static/chunks/pages/KYC/step-3-9077158f52f4473c.js

js bayuti.com collected 2026-10-09 22:39:31 UTC 16,420 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5500],{3433:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>j});var r=s(14232),l=s(32597),a=s(58771),n=s(69420),i=s(1958),o=s(55110),c=s(12102),d=s(60689),u=s(31777),x=s(55333),m=s(45779),h=s(10909),f=s(37876);let g=({routeChange:e,setStorage:t,isFocused:g})=>{let y=(0,u.wA)(),w=(0,u.d4)(e=>e.user.user),[j,A]=(0,r.useState)(0),[p,v]=(0,r.useState)({}),[b,N]=(0,r.useState)(0),[S,_]=(0,r.useState)(""),[I,k]=(0,r.useState)(0),[E,P]=(0,r.useState)(!1),[C,L]=(0,r.useState)([]),{isWeb:T,screenWidth:Y,screenSize:B}=(0,h.Y)(),F=T?"/assets/images/icons/KYC3.png":s(82779),O=T?"/assets/images/icons/kyc-success.png":s(79462),D=T?"/assets/images/icons/KYCfail.png":s(69548),[K,R]=(0,r.useState)(!1),q=async()=>{try{L([]),console.log("Read Qustionns ...");let e=await (0,m.Yw)({section:S,user_id:w?._id});console.log(e),L(e)}catch(e){console.error("Error fetching questions:",e)}};(0,r.useEffect)(()=>{w.test_section?_(w.test_section):_("Section 1")},[w.test_section]),(0,r.useEffect)(()=>{g&&(N(0),A(0),v({}),k(0),P(!1))},[g]),(0,r.useEffect)(()=>{S&&(q(),v({}))},[S]);let U=async e=>{let t={user:w,questions:C.map((e,t)=>{let s=p[t],r=e.answers.find(e=>e.correct);return{_id:e._id,question:e.question,selectedOption:s,isCorrect:s===r?.answer}}),score:b,passed:e};await (0,m.z_)(t,w);let s=!1;"Section 1"===S?s="Section 2":"Section 2"===S?s="Section 3":"Section 3"===S&&(s="Section 1"),await y((0,x.bu)({_id:w._id,update:{appropriateness_test:e?"completed":"pending",test_section:s},trigger:e?"test_passed":"-"}))},z=async()=>{P(!0)},Q=C[j],X=C.length;return(0,f.jsx)(l.A,{style:(0,d.Ay)`flex-1 h-[100%] bg-white`,children:(0,f.jsx)(i.A,{contentContainerStyle:(0,d.Ay)`flex-grow justify-center items-center`,children:(0,f.jsx)(l.A,{style:(0,d.Ay)`justify-center relative max-w-xl mx-auto flex w-full rounded-md px-8 h-[89%]`,children:(0,f.jsx)(l.A,{style:(0,d.Ay)`justify-center mb-10 border-gray-200 mt-8`,children:E?I?(0,f.jsxs)(l.A,{children:[1===I&&(0,f.jsxs)(l.A,{style:(0,d.Ay)`flex flex-col`,children:[(0,f.jsx)(l.A,{style:(0,d.Ay)`flex flex-row justify-center items-center w-full mb-2 relative z-80 mt-8`,children:(0,f.jsx)(c.A,{filename:D,style:(0,d.Ay)`w-20 h-20`,alt:"Bayuti"})}),(0,f.jsx)(a.A,{style:(0,d.Ay)`text-red-700 text-2xl font-extrabold  text-center`,children:"Appropriateness Test Failed"}),(0,f.jsx)(a.A,{style:(0,d.Ay)`text-sm text-gray-800 leading-7 font-bold my-4 text-center mb-8`,children:"Unfortunately, you have not passed the test. Please try again."}),(0,f.jsx)(n.A,{onPress:()=>void("Section 1"===S?_("Section 2"):"Section 2"===S?_("Section 3"):"Section 3"===S&&_("Section 1"),N(0),A(0),v({}),setTimeout(()=>{k(0)},1e3)),style:(0,d.Ay)`flex justify-center items-center bg-[#040836] p-4 px-8 rounded-full`,children:(0,f.jsx)(a.A,{style:(0,d.Ay)`text-white font-bold`,children:"Try Again"})}),(0,f.jsx)(n.A,{onPress:()=>e("/property-listing"),style:(0,d.Ay)`flex my-4 justify-center items-center border border-gray-400 p-4 px-8 rounded-full`,children:(0,f.jsx)(a.A,{style:(0,d.Ay)`text-black font-bold`,children:"Back To Home"})})]}),10===I&&(0,f.jsxs)(l.A,{style:(0,d.Ay)`flex flex-col`,children:[(0,f.jsx)(l.A,{style:(0,d.Ay)`flex flex-row justify-center items-center w-full mb-2 relative z-80 mt-8`,children:(0,f.jsx)(c.A,{filename:O,style:(0,d.Ay)`w-20 h-20`,alt:"Bayuti"})}),(0,f.jsx)(a.A,{style:(0,d.Ay)`text-lg font-bold my-4 text-center text-green-700`,children:"Congratulations! You have successfully completed the Appropriateness Test."}),(0,f.jsx)(n.A,{onPress:()=>e("/property-listing"),style:(0,d.Ay)`flex justify-center items-center bg-[#040836] p-4 px-8 rounded-full`,children:(0,f.jsx)(a.A,{style:(0,d.Ay)`text-white font-bold`,children:"Back to Home"})})]})]}):(0,f.jsxs)(l.A,{children:[(0,f.jsx)(l.A,{style:(0,d.Ay)`flex flex-row justify-start items-left w-full mb-2 relative z-80 mt-8`,children:(0,f.jsx)(c.A,{filename:F,style:(0,d.Ay)`w-20 h-20`,alt:"Bayuti"})}),(0,f.jsxs)(a.A,{style:(0,d.Ay)`text-2xl font-bold my-4`,children:["Question ",j+1," / ",X]}),(0,f.jsx)(a.A,{style:(0,d.Ay)`mb-6 text-lg text-[#040836] font-semibold`,children:Q?.question}),Q?.answers.map((e,t)=>(0,f.jsxs)(n.A,{style:(0,d.Ay)`flex flex-row items-center mb-4 rounded-xl border p-6 border-gray-200`,onPress:()=>{var t;return t=e.answer,void v(e=>Object.assign({},e,{[j]:t}))},children:[(0,f.jsx)(l.A,{style:(0,d.Ay)`w-6 h-6 rounded-full border border-[#040836] justify-center items-center`,children:p[j]===e.answer&&(0,f.jsx)(l.A,{style:(0,d.Ay)`w-3 h-3 rounded-full bg-blue-900`})}),(0,f.jsx)(a.A,{style:(0,d.Ay)`ml-4 text-sm`,children:e.answer})]},t)),K&&(0,f.jsx)(a.A,{style:(0,d.Ay)`text-red-700 text-center`,children:"Please select answer option"}),(0,f.jsx)(n.A,{onPress:()=>
1{if(!p[j])return void R(!0);R(!1);let e=C[j]?.answers.find(e=>e.correct)?.answer,t=p[j]===e?b+1:b;j<C.length-1?(N(t),A(j+1)):t>=7?(N(t),U(!0),k(10)):(N(t),U(!1),k(1))},style:(0,d.Ay)`px-4 my-4 py-4 w-full mx-auto bg-[#040836] rounded-full`,children:(0,f.jsx)(a.A,{style:(0,d.Ay)`text-white text-center`,children:"Next"})})]}):(0,f.jsxs)(l.A,{children:[(0,f.jsx)(l.A,{style:(0,d.Ay)`flex flex-row justify-start items-left w-full mb-2 relative z-80 mt-8`,children:(0,f.jsx)(c.A,{filename:F,style:(0,d.Ay)`w-20 h-20`,alt:"Bayuti"})}),(0,f.jsx)(a.A,{style:(0,d.Ay)`text-2xl text-left p-4 py-0 font-extrabold my-2 mb-0`,children:"Appropriateness Test Disclaimer"}),(0,f.jsxs)(l.A,{style:(0,d.Ay)`text-gray-800 text-start gap-2 p-4 my-2 leading-7 text-xs`,children:[(0,f.jsx)(a.A,{style:(0,d.Ay)`text-xs text-wrap mt-2`,children:"Before taking the test, we encourage you to review our FAQs or watch this Short Summary Video to fully understand the risks and rewards of investing with Bayuti. Being informed is the first step to making confident, Shariah-compliant investments!"}),(0,f.jsxs)(l.A,{style:(0,d.Ay)`flex flex-row gap-2  mx-auto`,children:[(0,f.jsx)(n.A,{onPress:()=>e("/faqs-test"),style:(0,d.Ay)`w-auto bg-gray-300 px-8 flex justify-center items-center py-2 my-2 border border-gray-300 rounded-xl`,children:(0,f.jsx)(a.A,{style:(0,d.Ay)`text-center font-bold text-xs`,children:"FAQs"})}),(0,f.jsx)(n.A,{onPress:()=>o.A.openURL("https://youtu.be/XXc_qhLC_HM"),style:(0,d.Ay)`w-auto bg-gray-300 px-8 flex justify-center items-center py-2 my-2 border border-gray-300 rounded-xl`,children:(0,f.jsx)(a.A,{style:(0,d.Ay)`text-center font-bold text-xs`,children:"Summary Video"})})]}),(0,f.jsx)(a.A,{style:(0,d.Ay)`text-wrap text-xs`,children:"We are committed to ensuring that, as an investor, you have a clear understanding of the risks associated with your investment. To meet the regulatory guidelines set forth by the Financial Conduct Authority (FCA), we have implemented an 'appropriateness test.'"}),(0,f.jsx)(a.A,{style:(0,d.Ay)`text-wrap text-xs`,children:"This test is designed to assess your knowledge and comprehension of these risks. It helps us determine whether the investment options we offer are suitable for your financial situation and risk tolerance. Passing this test demonstrates that you have the necessary understanding to make informed investment decisions."}),(0,f.jsxs)(a.A,{style:(0,d.Ay)`text-wrap text-xs`,children:[" ","If you have any questions or need further clarification about this test or the investment process, please don't hesitate to reach out to our team."]}),(0,f.jsxs)(l.A,{style:(0,d.Ay)`text-wrap flex flex-row flex-wrap text-xs `,children:[(0,f.jsxs)(a.A,{style:(0,d.Ay)`text-wrap text-xs`,children:["If you are interested in learning more about how to protect yourself, visit the",(0,f.jsx)(a.A,{onPress:()=>o.A.openURL("https://www.fca.org.uk/investsmart"),style:(0,d.Ay)`text-xs text-blue-700 px-2 py-2`,children:" FCA's website here"})]}),(0,f.jsxs)(a.A,{style:(0,d.Ay)`text-wrap text-xs`,children:["For further information about investment-based crowdfunding, visit the",(0,f.jsx)(a.A,{onPress:()=>o.A.openURL("https://www.fca.org.uk/consumers/crowdfunding"),style:(0,d.Ay)`text-wrap text-xs text-blue-700 px-2`,children:" FCA's website here"})]})]})]}),(0,f.jsx)(n.A,{onPress:()=>z(),style:(0,d.Ay)`bg-[#040836] flex justify-center items-center p-4 rounded-full my-4 mt-0`,children:(0,f.jsx)(a.A,{style:(0,d.Ay)`text-white`,children:"Start Test"})}),(0,f.jsx)(n.A,{onPress:()=>e("/property-listing"),style:(0,d.Ay)` flex justify-center items-center p-4 rounded-full my-4 mt-0 border border-gray-400`,children:(0,f.jsx)(a.A,{style:(0,d.Ay)`text-center font-bold`,children:"Back to Home"})})]})})})})})};var y=s(89099),w=s(21141);function j(){let e=(0,y.useRouter)();return(0,f.jsxs)("div",{className:"flex flex-col  lg:flex-row h-screen",children:[(0,f.jsx)("div",{className:"flex-1 lg:w-1/2",children:(0,f.jsx)(g,{routeChange:t=>{e.push(t)},setStorage:e=>{(0,w.D9)(e.value)},getStorage:e=>(0,w.c7)()})}),(0,f.jsx)("div",{className:"hidden lg:flex flex-1 bg-[#000080] p-4 lg:p-8 lg:w-1/2",children:(0,f.jsxs)("div",{className:"flex flex-col items-center justify-center w-full h-full",children:[(0,f.jsxs)("div",{className:"flex hidden justify-center mb-6",children:[(0,f.jsxs)("div",{className:"relative w-16 h-16 bg-[#01A777] rounded-full overflow-hidden",children:[(0,f.jsx)("img",{src:"/assets/images/person1.svg",alt:"Large Image 1",className:"w-full h-full object-cover"}),(0,f.jsx)("div",{className:"absolute bottom-1 left-1 w-6 h-6 bg-white rounded-full overflow-hidden",children:(0,f.jsx)("img",{src:"/assets/images/country1.svg",alt:"Small Image 1",className:"w-full h-full object-cover"})})]}),(0,f.jsxs)("div",{className:"relative w-16 h-16 bg-[#01A777] rounded-full overflow-hidden",children:[(0,f.jsx)("img",{src:"/assets/images/person1.svg",alt:"Large Image 2",className:"w-full h-full object-cover"}),(0,f.jsx)("div",{className:"absolute bottom-1 left-1 w-6 h-6 bg-white rounded-full overflow-hidden",children:(0,f.jsx)("img",{src:"/assets/images/country1.svg",alt:"Small Image 1",className:"w-full h-full object-cover"})})]}),(0,f.jsxs)("div",{className:"relative w-16 h-16 bg-[#01A777] rounded-full overflow-hidden",children:[(0,f.jsx)("img",{src:"/assets/images/person1.svg",alt:"Large Image 3",className:"w-full h-full object-cover"}),(0,f.jsx)("div",{className:"absolute bottom-1 left-1 w-6 h-6 bg-white rounded-full overflow-hidden",children:(0,f.jsx)("img",{src:"/assets/images/country1.svg",alt:"Small Image 1",className:"w-full h-full object-cover"})})]}),(0,f.jsxs)("div",{className:"relative w-16 h-16 bg-[#01A777] rounded-full overflow-hidden",children:[(0,f.jsx)("img",{src:"/assets/images/person1.svg",alt:"Large Image 4",className:"w-full h-full object-cover"}),(0,f.jsx)("div",{className:"absolute bottom-1 left-1 w-6 h-6 bg-white rounded-full overflow-hidden",children:(0,f.jsx)("img",{src:"/assets/images/country1.svg",alt:"Small Image 1",className:"w-full h-full object-cover"})})]}),(0,f.jsxs)("div",{className:"relative w-16 h-16 bg-[#01A777] rounded-full overflow-hidden",children:[(0,f.jsx)("img",{src:"/assets/images/person1.svg",alt:"Large Image 5",className:"w-full h-full object-cover"}),(0,f.jsx)("div",{className:"absolute bottom-1 left-1 w-6 h-6 bg-white rounded-full overflow-hidden",children:(0,f.jsx)("img",{src:"/assets/images/country1.svg",alt:"Small Image 1",className:"w-full h-full object-cover"})})]}),(0,f.jsxs)("div",{className:"relative w-16 h-16 bg-[#01A777] rounded-full overflow-hidden",children:[(0,f.jsx)("img",{src:"/assets/images/person1.svg",alt:"Large Image 6",className:"w-full h-full object-cover"}),(0,f.jsx)("div",{className:"absolute bottom-1 left-1 w-6 h-6 bg-white rounded-full overflow-hidden",children:(0,f.jsx)("img",{src:"/assets/images/country1.svg",alt:"Small Image 1",className:"w-full h-full object-cover"})})]}),(0,f.jsxs)("div",{className:"relative w-16 h-16 bg-[#01A777] rounded-full overflow-hidden",children:[(0,f.jsx)("img",{src:"/assets/images/person1.svg",alt:"Large Image 7",className:"w-full h-full object-cover"}),(0,f.jsx)("div",{className:"absolute bottom-1 left-1 w-6 h-6 bg-white rounded-full overflow-hidden",children:(0,f.jsx)("img",{src:"/assets/images/country1.svg",alt:"Small Image 1",className:"w-full h-full object-cover"})})]})]}),(0,f.jsxs)("div",{className:"flex hidden flex-row justify-center items-center space-x-2",children:[(0,f.jsx)("span",{className:"text-white text-xl font-semibold pr-4",children:"Excellent"}),(0,f.jsx)("img",{src:"/assets/images/star.svg",alt:"Star 1",className:"w-8 h-8"}),(0,f.jsx)("img",{src:"/assets/images/star.svg",alt:"Star 2",className:"w-8 h-8"}),(0,f.jsx)("img",{src:"/assets/images/star.svg",alt:"Star 3",className:"w-8 h-8"}),(0,f.jsx)("img",{src:"/assets/images/star.svg",alt:"Star 4",className:"w-8 h-8"}),(0,f.jsx)("img",{src:"/assets/images/star.svg",alt:"Star 4",className:"w-8 h-8"}),(0,f.jsx)("img",{src:"/assets/images/trustpilot.svg",alt:"Trustpilot",className:"w-8 h-8"}),(0,f.jsx)("span",{className:"text-white text-xl font-normal pr-4",children:"Trustpilot"})]}),(0,f.jsx)("div",{className:"flex items-center justify-center w-full h-full",children:(0,f.jsxs)("div",{className:"bg-white bg-opacity-90 p-8 rounded-lg shadow-lg max-w-md mx-auto",children:[(0,f.jsx)("div",{className:"text-center hidden mb-4",children:(0,f.jsx)("h2",{className:"text-lg text-[#000000] font-semibold",children:"Scan the QR code"})}),(0,f.jsx)("div",{className:"flex justify-center",children:(0,f.jsx)("div",{className:" p-8 rounded-lg  ",children:(0,f.jsx)("img",{src:"/assets/images/logo.png",alt:"QR Code",className:"w-80 mx-auto"})})})]})})]})})]})}},10909:(e,t,s)=>{"use strict";s.d(t,{Y:()=>a});var r=s(14232),l=s(63797);let a=()=>{let[e,t]=(0,r.useState)(!1),[s,a]=(0,r.useState)(null),[n,i]=(0,r.useState)("small");return(0,r.useEffect)(()=>{t(!0);let e=({window:e})=>{let t=e.width;a(t),t<640?i("small"):t<1024?i("medium"):t<1280?i("large"):i("extra-large")},s=l.A.addEventListener("change",e);return e({window:l.A.get("window")}),()=>{s.remove()}},[]),{isWeb:e,screenWidth:s,screenSize:n}}},12102:(e,t,s)=>{"use strict";s.d(t,{A:()=>a}),s(14232);var r=s(17279),l=s(37876);let a=({filename:e,style:t,alt:s="Image"})=>(0,l.jsx)(r.A,{source:e,style:t,resizeMode:"contain",alt:s})},21141:(e,t,s)=>{"use strict";s.d(t,{D9:()=>n,c7:()=>o,o2:()=>i});var r=s(30896),l=s.n(r);
1let a=s(65364).env.NEXT_PUBLIC_ENCRYPTION_KEY||"aaskjdnoI!@EIOIDPOL@WJDP@!",n=e=>{let t=l().AES.encrypt(e,a).toString();localStorage.setItem("userInfo",t)},i=e=>{let t=l().AES.encrypt(e,a).toString();localStorage.setItem("cart",t)},o=()=>{let e=localStorage.getItem("userInfo");return e?JSON.parse(l().AES.decrypt(e,a).toString(l().enc.Utf8)):null}},33508:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/KYC/step-3",function(){return s(3433)}])},50477:()=>{},55333:(e,t,s)=>{"use strict";s.d(t,{BD:()=>d,E_:()=>n,F6:()=>i,Lx:()=>a,Y:()=>c,bu:()=>o});var r=s(24226),l=s(45779);let a=e=>async t=>{try{let s=await (0,l.s)(e.email,e.password);if(s?._id){let e=Object.assign({},s);if(!e.test_status||e?.test_status!=="blocked")return t((0,r.iD)(e)),e;return -1}if(s?.blocked)return -1;if(s?.isError)return console.log(s,"response?.error?.message..."),s;else return 0}catch(e){return console.error("Login error:",e),0}},n=e=>async t=>{try{let s=await (0,l.CY)(e);if(console.log("Signup Response:",s),s?.insertedId)return t((0,r.iD)({full_name:e.full_name,email:e.email,_id:s?.insertedId,api_token:s?.token})),1}catch(e){return console.error("Signup error:",e),0}},i=e=>async(t,s)=>{try{let a=s().user.user.api_token,n=await (0,l.NS)({_id:e});if(!n._id)return 0;{let e=Object.assign({},n,{api_token:a});return t((0,r.iD)(e)),1}}catch(e){return console.error("Login error:",e),0}},o=e=>async t=>{try{let{_id:s,update:a,trigger:n,tempID:i}=e,o=await (0,l.KM)({_id:s,update:a,trigger:n,tempID:i});if(o?.message||o?.acknowledged)return t((0,r.TK)({user:a})),!0}catch(e){return console.error("Update error:",e),!1}},c=e=>async t=>{try{return t((0,r.TK)({user:e})),!0}catch(e){return console.error("Update error:",e),!1}},d=e=>async t=>{try{if((await (0,l.NA)({email:e})).message)return 1;return console.warn("Email does not exist"),0}catch(e){return console.error("Forgot Password error:",e),0}}},69548:(e,t,s)=>{"use strict";e.exports=s.p+"static/images/KYCfail.png"},79462:(e,t,s)=>{"use strict";e.exports=s.p+"static/images/kyc-success.png"},82779:(e,t,s)=>{"use strict";e.exports=s.p+"static/images/KYC3.png"}},e=>{e.O(0,[8861,5068,896,8823,5779,636,6593,8792],()=>e(e.s=33508)),_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.