PageSourceSearch

https://carduka.com/_next/static/chunks/1517-0b2c0756c1f88e04.js

js carduka.com collected 2026-10-09 01:39:06 UTC 10,776 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1517],{4802:(e,t,l)=>{l.d(t,{LightBuyerSessionProvider:()=>o,b:()=>c});var s=l(95155),n=l(12115);let r=(0,n.createContext)(null);function i(e){return String(e||"").trim()}function a(e){return i(e).replace(/\D/g,"")}function o(e){let{children:t}=e,[l,o]=(0,n.useState)(null),[c,d]=(0,n.useState)(null),[u,x]=(0,n.useState)(!0),h=(0,n.useCallback)(async()=>{x(!0);try{let e=await fetch("/api/light-buyer-session",{cache:"no-store"}),t=e.ok?await e.json():{};return o((null==t?void 0:t.buyer)||null),d((null==t?void 0:t.expiresAt)||null),(null==t?void 0:t.buyer)||null}catch(e){return o(null),d(null),null}finally{x(!1)}},[]);(0,n.useEffect)(()=>{h()},[h]),(0,n.useEffect)(()=>{if(!c)return;let e=window.setTimeout(()=>{o(null),d(null)},Math.max(0,c-Date.now()));return()=>window.clearTimeout(e)},[c]);let f=(0,n.useCallback)(async(e,t)=>{let l=await fetch("/api/light-buyer-session",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...e,otp:t})}),s=await l.json().catch(()=>({}));if(!l.ok)throw Error((null==s?void 0:s.message)||"Failed to verify OTP");return o(s.buyer),d(s.expiresAt),s.buyer},[]),m=(0,n.useCallback)(async()=>{await fetch("/api/light-buyer-session",{method:"DELETE"}).catch(()=>{}),o(null),d(null)},[]),p=(0,n.useCallback)(e=>!!l&&i(l.firstName)===i(null==e?void 0:e.firstName)&&i(l.lastName)===i(null==e?void 0:e.lastName)&&a(l.phone)===a(null==e?void 0:e.phone)&&i(l.email).toLowerCase()===i(null==e?void 0:e.email).toLowerCase()&&((null==e?void 0:e.nationalId)===void 0||i(l.nationalId)===i(e.nationalId)),[l]);return(0,s.jsx)(r.Provider,{value:{buyer:l,expiresAt:c,isLoading:u,isVerified:!!l,identityMatches:p,verify:f,clear:m,refresh:h},children:t})}function c(){let e=(0,n.useContext)(r);if(!e)throw Error("useLightBuyerSession must be used within LightBuyerSessionProvider");return e}},22322:(e,t,l)=>{l.d(t,{A:()=>r});var s=l(95155),n=l(33931);function r(e){let{size:t=78,label:l,className:r,spinnerClassName:i,labelClassName:a}=e;return(0,s.jsxs)("div",{className:(0,n.cn)("inline-flex flex-col items-center justify-center gap-4",r),children:[(0,s.jsxs)("svg",{className:(0,n.cn)("animate-spin",i),xmlns:"http://www.w3.org/2000/svg",width:t,height:t,viewBox:"0 0 78 78",fill:"none",role:"status","aria-label":l||"Loading",children:[(0,s.jsx)("circle",{cx:"39",cy:"7",r:"7",fill:"#FECE2D"}),(0,s.jsx)("circle",{cx:"39",cy:"71",r:"7",fill:"white"}),(0,s.jsx)("circle",{cx:"7",cy:"39",r:"7",transform:"rotate(-90 7 39)",fill:"white"}),(0,s.jsx)("circle",{cx:"71",cy:"39",r:"7",transform:"rotate(-90 71 39)",fill:"white"}),(0,s.jsx)("circle",{cx:"16.3726",cy:"16.373",r:"7",transform:"rotate(-45 16.3726 16.373)",fill:"white"}),(0,s.jsx)("circle",{cx:"61.6275",cy:"61.627",r:"7",transform:"rotate(-45 61.6275 61.627)",fill:"white"}),(0,s.jsx)("circle",{cx:"61.6274",cy:"16.3722",r:"7",transform:"rotate(45 61.6274 16.3722)",fill:"white"}),(0,s.jsx)("circle",{cx:"16.3726",cy:"61.6261",r:"7",transform:"rotate(45 16.3726 61.6261)",fill:"white"})]}),l&&(0,s.jsx)("span",{className:(0,n.cn)("text-sm font-medium text-black",a),children:l})]})}},33931:(e,t,l)=>{l.d(t,{cn:()=>r});var s=l(2821),n=l(75889);function r(){for(var e=arguments.length,t=Array(e),l=0;l<e;l++)t[l]=arguments[l];return(0,n.QP)((0,s.$)(t))}},34356:(e,t,l)=>{l.d(t,{p:()=>i});var s=l(95155),n=l(12115),r=l(33931);let i=(0,n.forwardRef)(function(e,t){let{label:l,error:n,helperText:i,prefix:a,suffix:o,wrapperClassName:c,className:d,disabled:u,...x}=e;return(0,s.jsxs)("div",{className:(0,r.cn)("flex flex-col gap-1.5 w-full min-w-0",c),children:[l&&(0,s.jsx)("label",{className:"text-sm text-[#0E0E0B]",children:l}),(0,s.jsxs)("div",{className:(0,r.cn)("flex items-center h-11 border rounded-lg overflow-hidden transition-colors bg-transparent",n?"border-[#FF000D]":"border-[#E5E5E5] focus-within:border-[#0E0E0B]",u&&"bg-gray-50 cursor-not-allowed opacity-90"),children:[a&&(0,s.jsx)("div",{className:"flex items-center gap-1.5 px-3 h-full border-r border-[#E5E5E5] shrink-0 text-sm text-[#888]",children:a}),(0,s.jsx)("input",{ref:t,disabled:u,className:(0,r.cn)("flex-1 min-w-0 h-full px-3 text-sm text-[#0E0E0B] placeholder:text-[#B0B0B0]","focus:outline-none bg-transparent","disabled:cursor-not-allowed",d),...x}),o&&(0,s.jsx)("div",{className:"flex items-center px-3 h-full shrink-0 text-[#888]",children:o})]}),i&&!n&&(0,s.jsx)("p",{className:"text-xs text-[#888]",children:i}),n&&(0,s.jsx)("p",{className:"text-xs text-[#FF000D]",children:n})]})})},46156:(e,t,l)=>{l.d(t,{A:()=>
1o});var s=l(95155),n=l(52619),r=l.n(n),i=l(20063),a=l(47823);function o(e){let{currentStep:t,totalSteps:l=7,hideExit:n=!1,exitHref:o}=e,c=(0,i.useRouter)();return(0,s.jsxs)("header",{className:"valuation-header w-full shrink-0 sticky top-0 z-[60] bg-[#f3f3f3]",children:[(0,s.jsx)("div",{className:"flex h-2 w-full",children:Array.from({length:l}).map((e,l)=>(0,s.jsx)("div",{className:"flex-1 transition-colors duration-300",style:{backgroundColor:l<t?"#FECE2D":"#e8e8e8"}},l))}),(0,s.jsx)("div",{className:"w-full flex justify-center items-center px-4 lg:px-[100px] xl:px-[154px] py-4",children:(0,s.jsxs)("div",{className:"w-full max-w-[1440px] flex justify-between items-center",children:[(0,s.jsx)(r(),{href:"/",children:(0,s.jsx)(a.A,{cardukaWidth:90,priority:!0})}),!n&&(0,s.jsx)("button",{type:"button",onClick:()=>{o?c.push(o):window.history.length>1?c.back():c.push("/")},className:"px-4 py-2 text-sm font-medium rounded-full border border-[#E2E2E2] bg-white hover:bg-gray-50 transition-colors",children:"Exit"})]})})]})}},47823:(e,t,l)=>{l.d(t,{A:()=>r});var s=l(95155),n=l(15239);function r(e){let{cardukaWidth:t=110,className:l="",priority:r=!1}=e;return(0,s.jsxs)("div",{className:"flex items-center gap-2 ".concat(l),children:[(0,s.jsx)(n.default,{src:"/images/logo.svg",alt:"CarDuka",width:t,height:40,className:"h-auto object-contain",style:{width:t},priority:r}),(0,s.jsx)("span",{className:"h-7 w-px shrink-0 bg-[#0E0E0B]/25","aria-hidden":!0}),(0,s.jsxs)("div",{className:"flex shrink-0 flex-col leading-none",children:[(0,s.jsx)("span",{className:"text-[8px] text-[#505050]",children:"Powered by"}),(0,s.jsx)(n.default,{src:"/icons/01d520ed941c6af8d482862ff35a89cf9ec7bd31.png",alt:"NCBA Bank",width:58,height:19,className:"mt-0.5 h-auto w-[58px] object-contain"})]})]})}},62750:(e,t,l)=>{l.d(t,{A:()=>r});var s=l(95155),n=l(44524);function r(e){let{onBack:t,onNext:l,nextLabel:r="Continue",nextDisabled:i=!1,nextLoading:a=!1,backLabel:o="Back",hideBack:c=!1}=e;return(0,s.jsx)("footer",{className:"fixed bottom-0 left-0 right-0 z-[100] bg-[#f3f3f3]",children:(0,s.jsx)("div",{className:"w-full flex justify-center items-center px-4 lg:px-[100px] xl:px-[154px]",children:(0,s.jsxs)("div",{className:"w-full max-w-[1440px] flex items-center justify-between h-18 py-3",children:[c?(0,s.jsx)("span",{}):(0,s.jsx)("button",{type:"button",onClick:t,className:"text-sm sm:text-base font-medium text-[#555] hover:text-black bg-transparent border-none cursor-pointer transition-colors",children:o}),(0,s.jsx)(n.$,{type:"button",size:"md",onClick:l,disabled:i,isLoading:a,loaderVariant:"dots",className:"!px-12 !py-3 !rounded-lg !text-base min-w-[233px]",children:r})]})})})}},82420:(e,t,l)=>{l.d(t,{A:()=>r});var s=l(95155),n=l(12115);function r(e){let{isOpen:t,onClose:l,onAgree:r,agreeLabel:i="Agree & Submit",disagreeLabel:a="Disagree"}=e;return((0,n.useEffect)(()=>{if(!t)return;let e=e=>{"Escape"===e.key&&(null==l||l())};document.addEventListener("keydown",e);let s=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",e),document.body.style.overflow=s}},[t,l]),t)?(0,s.jsxs)("div",{className:"fixed inset-0 z-[100] flex items-center justify-center p-4",children:[(0,s.jsx)("div",{className:"absolute inset-0 bg-black/50 backdrop-blur-sm",onClick:l,"aria-hidden":!0}),(0,s.jsxs)("div",{className:"relative bg-white rounded-3xl w-full max-w-[660px] shadow-xl overflow-hidden flex flex-col",children:[(0,s.jsxs)("div",{className:"flex items-start gap-3 px-6 pt-6 pb-4",children:[(0,s.jsx)("p",{className:"flex-1 text-[20px] md:text-[25px] leading-tight md:leading-[38px] font-medium text-[#0E0E0B]",children:"Consent Required Before Submission"}),(0,s.jsx)("button",{type:"button",onClick:l,"aria-label":"Close",className:"w-9 h-9 flex items-center justify-center border border-black/20 rounded-full shrink-0 cursor-pointer hover:bg-[#F6F6F6] transition-colors",children:(0,s.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 14 14",fill:"none",children:(0,s.jsx)("path",{d:"M1 1L13 13M1 13L13 1",stroke:"#0E0E0B",strokeWidth:"1.5",strokeLinecap:"round"})})})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-6 px-6 pb-6",children:[(0,s.jsx)("p",{className:"text-base md:text-[20px] leading-6 md:leading-[30px] text-[#505050]",children:"Before we can submit your application, we need your consent to share and process your information with NCBA."}),(0,s.jsxs)("div",{className:"flex flex-col gap-6 bg-[#F6F6F6] rounded-xl p-4",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-2 text-[#505050]",children:[(0,s.jsx)("p",{className:"text-base font-semibold leading-6",children:"Terms & Conditions"}),(0,s.jsx)("p",{className:"text-sm font-light leading-5",children:"Last Updated 23rd Jun, 2026"})]}),(0,s.jsxs)("p",{className:"text-sm font-light leading-5 text-[#505050]",children:["By selecting “",i,"”, you consent to CarDuka and NCBA using and sharing your information to assess, process, and follow up on your application, including credit checks where applicable. Your information will be handled in accordance with the Privacy Policy and applicable data protection laws."]})]})]}),(0,s.jsxs)("div",{className:"flex items-center justify-between gap-4 border-t border-[#
1E2E2E2] px-6 py-4",children:[(0,s.jsx)("button",{type:"button",onClick:l,className:"text-base font-light text-[#0E0E0B] hover:underline cursor-pointer",children:a}),(0,s.jsx)("button",{type:"button",onClick:r,className:"bg-primary text-[#0E0E0B] text-base font-normal rounded-lg px-6 md:px-12 py-3 hover:brightness-95 transition cursor-pointer",children:i})]})]})]}):null}},93389:(e,t,l)=>{l.d(t,{A:()=>s});let s={src:"/_next/static/media/congrats.5203923c.png",height:360,width:464,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAGCAMAAADJ2y/JAAAAZlBMVEW3t7eXoNSWnbzw4alGR0/k4uH69vCKdFs1NUjz0lnTrkPDqE7Ovnjo6PX3+P+snaHUzs6UfjducIDhti/Bql7CrGLh3NzY2+hPVn++qn3S08T46rX5yi64wr7qz3yblpXFyK+1qpXIFLV8AAAAG3RSTlMBVEn3iULZCSv8+1WKaPf6KrLr/DZyM8FQ/uH6rSbBAAAACXBIWXMAAAsSAAALEgHS3X78AAAAOUlEQVQImQXBhwGAIAAEsVOBB3tvYNt/SRNA1TJbUFO/1+lWbFuEEF2Ptruc0gCYpzu+UeB9nu1GP0GzAm6Gim23AAAAAElFTkSuQmCC",blurWidth:8,blurHeight:6}}}]);

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.