PageSourceSearch

https://cashkaro.com/_next/static/chunks/2274.b21119cbdd390fc3.js

js cashkaro.com collected 2026-09-24 09:21:48 UTC 11,469 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2274,5553],{10566:(e,t,l)=>{"use strict";l.r(t),l.d(t,{default:()=>A});var s=l(37876),a=l(63614),n=l(21354),r=l(45362),i=l(14232),o=l(30896),c=l.n(o),d=l(86649),u=l(85775),m=l(79096),x=l(388),p=l(69826),g=l(98433),b=l(27048),h=l(65553),f=l(10967),E=l(40737),_=l(83596),T=l(98374),C=l(91e3),k=l(13984);let y=e=>{let{handleClose:t,handleSuccess:l,isMobileUpdated:a}=e,[o,u]=(0,i.useState)(""),[m,y]=(0,i.useState)(""),[v,N]=(0,i.useState)(!1),[A,S]=(0,i.useState)(""),[j,w]=(0,i.useState)(!1),[O,D]=(0,i.useState)(!0),P=()=>(0,f.Im)(A)||v||6!==A.length||!(0,f.Im)(o)&&!O,R=async()=>{(0,p.n)(T.L.DA_ACCOUNT_DELETE_OTP,{action:"resend"});let e="".concat("/pps").concat(n.R.I_PAYMENT_REQUEST_OTP),t=await (0,r.H7)(e,{data:{type:"user_otp",attributes:{notification_name:"DELETE_REQUEST_OTP"}}},"POST"),l=JSON.parse(c().AES.decrypt(null==t?void 0:t.data,E.C.ENCRYPT_DECRYPT_NAME).toString(c().enc.Utf8));(null==l?void 0:l.status)=="success"&&(S(""),u(""),y(_.B.NEW_OTP_CODE_GENERATED),(0,p.n)(T.L.DA_ACCOUNT_DELETE_OTP,{action:"resend_success"}))},I=async()=>{if(u(""),y(""),N(()=>!0),!A||A.length<6){u(_.B.PLEASE_ENTER_THE_VALID_OTP_CODE),N(()=>!1);return}let e="".concat("/pps").concat(n.R.I_DELETE_ACCOUNT),t=await (0,r.H7)(e,{data:{type:"user",attributes:{otp_guid:"",otp:A}}},"POST"),s=JSON.parse(c().AES.decrypt(null==t?void 0:t.data,E.C.ENCRYPT_DECRYPT_NAME).toString(c().enc.Utf8));if((null==s?void 0:s.status)==g.R.SUCCESS_TEXT)l(),N(()=>!1);else{var a,i,o,d,m,x,b;(0,p.n)(T.L.DA_ACCOUNT_DELETE_OTP,{action:"failed"}),N(()=>!1),u((0,f.hj)(null==s||null==(i=s.errors)||null==(a=i[0])?void 0:a.title,null==s||null==(d=s.errors)||null==(o=d[0])?void 0:o.title,null!=(b=null==s||null==(x=s.errors)||null==(m
1=x[0])?void 0:m.detail)?b:_.B.SOMETHING_WENT_WRONG))}};return(0,s.jsxs)("div",{className:"popupOverlay deskPopOnly",children:[(0,s.jsxs)("form",{className:"popupContent md:w-[480px] md:rounded-lg w-full pt-4 px-4 pb-20 md:p-10",children:[(0,s.jsx)("span",{className:"hidden md:flex items-center justify-center absolute top-[-50px] right-2 bg-white rounded-full w-10 h-10 cursor-pointer",children:(0,s.jsx)("i",{className:"material-symbols-outlined mdi-close transition-all duration-300 md:hover:rotate-90","aria-hidden":"true",onClick:()=>t()})}),(0,s.jsxs)("div",{className:"flex items-center text-ck-text-black text-sm font-semibold cursor-pointer md:hidden",children:[(0,s.jsx)("i",{className:"material-symbols-outlined mdi-arrow-back !cursor-pointer !mr-3","aria-hidden":"true",onClick:()=>t()}),"Delete Account"]}),(0,s.jsx)("h3",{className:"text-ck-text-black text-base md:text-[40px] font-extrabold mt-7 md:mt-0",children:"Enter OTP"}),(0,s.jsxs)("p",{className:"text-ck-text-black text-sm md:text-base font-medium my-4 md:my-6",children:["Enter OTP sent to your existing email ","yes"===a?"and mobile number":""]}),(0,s.jsx)(h.default,{callbackFunction:e=>{S(()=>e),D(()=>6===e.length)},isReset:j,submitFunction:()=>{setTimeout(()=>{w(()=>!1),D(()=>!1),I()},500)},isError:!(0,f.Im)(o)}),o&&(0,s.jsx)("em",{className:"text-ck-red not-italic text-xs md:text-sm font-medium w-full mb-1 !leading-[16px] inline-block mt-2 passErrorMsg",id:"otpErrorMessage",children:(0,d.Ay)(null!=o?o:"")}),m&&r.Ie===g.R.DESKTOP_TEXT&&(0,s.jsx)("em",{className:"text-ck-green not-italic text-xs md:text-sm font-medium w-full mb-1 !leading-[16px] inline-block mt-2 passErrorMsg",id:"resendOtpSuccessMessage",children:(0,d.Ay)(null!=m?m:"")}),(0,s.jsx)(C.A,{setIsReset:w,isDisabled:v,handleResend:()=>R(),successMessage:m,hasWhatsApp:!1}),(0,s.jsx)(x.default,{enableShine:!P(),customType:"primary",customSize:"large",backgroundStyle:{color:"".concat(P()?"ck-card-inactive cursor-not-allowed":"ck-blue"),hoverColor:""},disabled:v||P(),customClass:"!text-base lg:!text-lg !rounded-lg !w-11/12 md:!w-full md:!mx-auto !h-12 lg:!h-[60px] f
1ixed left-1/2 -translate-x-1/2 -translate-y-1/3 bottom-0 md:relative md:transform-none md:left-auto md:mt-10 ".concat(P()?"text-ck-text-inactive":"text-white"),onClick:e=>{e.preventDefault(),I()},type:"submit",id:"updateMobileVerifyOtpContinue",children:v?(0,s.jsx)(b.default,{CustomClass:"spinner_icon_white"}):g.R.VERIFY_OTP})]}),m&&r.Ie===g.R.MOBILE_TEXT&&(0,s.jsx)(k.default,{toastIcon:"verified",toastIconColor:"ck-green",toastBgColor:"F2FFF6",toastMessage:m,handleClose:()=>y(()=>"")})]})};var v=l(18847);let N=l.n(v)()(Promise.resolve().then(l.bind(l,27048)),{loadableGenerated:{webpack:()=>[27048]}}),A=e=>{let{handleBack:t,handleSuccess:l,isMobileUpdated:o}=e,[g,b]=(0,i.useState)(!1),[h,f]=(0,i.useState)(""),[_,C]=(0,i.useState)(!1),[k,v]=(0,i.useState)(!1),[A,S]=(0,i.useState)(!1),j=async()=>{let e="".concat("/pps").concat(n.R.I_GET_DELETE_TERMS),t=await (0,r.tz)(e),l=JSON.parse(c().AES.decrypt(t.data,"cashkaro").toString(c().enc.Utf8));f(()=>{var e,t,s,a;return null!=(a=null==l||null==(s=l.data)||null==(t=s[0])||null==(e=t.attributes)?void 0:e.content)?a:""})};(0,i.useEffect)(()=>{j()},[]);let w=async()=>{if(!_)return void v(!0);S(!0),(0,p.n)(T.L.DA_ACCOUNT_DELETE_CTA);let e="".concat("/pps").concat(n.R.I_PAYMENT_REQUEST_OTP),t=await (0,r.H7)(e,{data:{type:"user_otp",attributes:{notification_name:"DELETE_REQUEST_OTP"}}},"POST"),l=JSON.parse(c().AES.decrypt(null==t?void 0:t.data,E.C.ENCRYPT_DECRYPT_NAME).toString(c().enc.Utf8));(null==l?void 0:l.status)=="success"?(b(!0),(0,p.n)(T.L.DA_ACCOUNT_DELETE_OTP,{action:"initiated"})):(0,p.n)(T.L.DA_ACCOUNT_DELETE_OTP,{action:"failed"}),S(!1)};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"w-full flex flex-col lg:border lg:border-ck-stroke-gray lg:rounded-t-lg lg:rounded-b-2xl mt-2 md:mt-0 md:px-10 lg:px-0",children:[(0,s.jsxs)("h5",{className:"flex items-center text-ck-text-black text-sm font-semibold cursor-pointer px-4 md:hidden",children:[(0,s.jsx)("i",{onClick:()=>t(),className:"material-symbols-outlined mdi-arrow-back cursor-pointer mr-3","aria-hidden":"true"}),"Delete Account"]}),(0,s.jsxs)("div",{className:"relative mt-8 md:mt-0",children:[(0,s.jsxs)("div",{className:"lg:absolute left-5 lg:left-10 top-0 px-4 md:px-0 mb-4 lg:mb-0 lg:py-14",children:[(0,s.jsx)("h5",{className:"text-ck-text-black lg:text-white text-base md:text-xl lg:text-[40px] font-bold leading-5 lg:mb-6 lg:tracking-tight",children:"We hate to see you leave,"}),(0,s.jsxs)("p",{className:"text-ck-text-black lg:text-white text-sm md:text-base lg:text-[32px] font-semibold leading-[18px] lg:leading-10",children:["You will lose your ",(0,s.jsx)("br",{className:"hidden lg:inline-block"}),"Cashback and Rewards"]})]}),(0,s.jsx)("div",{className:"w-full bg-ck-section-light-blue lg:bg-transparent lg:bg-ck-delete-account lg:bg-contain 2xl:bg-cover lg:bg-no-repeat 2xl:rounded-b-2xl lg:mb-0 2xl:mb-8 py-2 lg:py-0 ",children:(0,s.jsx)(u.A,{desktopWidthHeight:{width:280,height:266},mobileWidthHeight:{width:164,height:164},src:m.C.DELETE_ACCOUNT_IMG,alt:"Delete Account",className:"m-auto lg:ml-[62%] 2xl:!w-[250px] relative lg:top-[13px] 2xl:top-[50px]"})})]}),(0,s.jsxs)("div",{className:"pt-10 pl-4 pr-2 lg:pt-8 lg:pl-6 lg:pr-0 lg:mx-8 lg-mb-4 lg:rounded-2xl",children:[(0,s.jsx)("h4",{className:"text-ck-text-black text-sm md:text-lg font-semibold lg:font-extrabold mb-6 lg:mb-5",children:"Terms & conditions"}),(0,s.jsx)("div",{className:"max-h-[calc(100vh-376px)] lg:max-h-64 overflow-auto pr-2 lg:pr-6 scrollbar scrollDAColor del_terms_custom",children:h?(0,d.Ay)(h):(0,s.jsx)(N,{id:"page_loading",CustomClass:"spinner_icon_blue before:w-10 before:h-10 before:lg:w-[40px] before:lg:h-[40px] lg:mb-10"})})]}),(0,s.jsxs)("div",{className:"sticky lg:relative bottom-0 left-0 w-full z-10 bg-white shadow-[0_-4px_12px_0px_rgba(0,0,0,0.29)] lg:shadow-[0_-2px_12px_0px_rgba(0,0,0,0.19)] lg:rounded-b-2xl p-4 md:px-8 lg:pb-12 lg:mt-3",children:[k&&(0,s.jsx)("span",{className:"text-ck-red text-xs md:text-sm font-medium w-full leading-3 mb-1 inline-block",id:"deleteAccountTermsError",children:"Kindly checkmark the box first"}),(0,s.jsx)(a.A,{label:"I agree to terms and conditions.",id:"deleteAccountTerms",customClassLabel:"font-semibold lg:text-xs",customClass:"mt-0 w-max",onChange:()=>void(!_&&v(!1),C(!_)),isChecked:_}),(0,s.jsxs)("div",{className:"flex justify-between lg:justify-start items-center gap-4 lg:gap-6 mt-4",children:[(0,s.jsx)(x.default,{customType:"primary",customSize:"large",backgroundStyle:{color:"",hoverColor:""},customClass:"!w-1/2 lg:!w-[229px] !h-12 md:!h-[60px] !rounded-lg border border-ck-stroke-gray text-ck-orange lg:border-ck-orange !bg-[#FCFCFD]",onClick:e=>{e.preventDefault(),w()},type:"submit",id:"deleteAccountCTA",children:A?(0,s.jsx)(N,{CustomClass:"login_spinner_icon"}
1):"Delete My Account"}),(0,s.jsx)(x.default,{enableShine:!0,customType:"primary",customSize:"large",backgroundStyle:{color:"ck-orange",hoverColor:""},customClass:"!w-1/2 lg:!w-[229px] !h-12 md:!h-[60px] !rounded-lg text-ck-section-blue",onClick:e=>{e.preventDefault(),(0,p.n)(T.L.DA_KEEP_MY_ACCOUNT_CTA),t()},type:"submit",id:"keepMyAccountCTA",children:"Keep My Account"})]})]})]}),g&&(0,s.jsx)(y,{handleClose:()=>b(!1),handleSuccess:()=>l(),isMobileUpdated:null!=o?o:""})]})}},50477:()=>{},65553:(e,t,l)=>{"use strict";l.r(t),l.d(t,{default:()=>i});var s=l(37876),a=l(17551),n=l(75664),r=l(14232);let i=e=>{let{callbackFunction:t,submitFunction:l,isReset:i,isError:o}=e,[c,d]=(0,r.useState)(Array(6).fill("")),u=(0,r.useRef)(null),[m,x]=(0,r.useState)(-1);return(0,r.useEffect)(()=>{t(c.filter(e=>!(0,n.Im)(e)).join(""))},[m]),(0,r.useEffect)(()=>{var e,t;null==u||null==(t=u.current)||null==(e=t[0])||e.focus()},[]),(0,r.useEffect)(()=>{i&&d(()=>Array(6).fill(""))},[i]),(0,s.jsx)("div",{className:"text-center flex flex-col justify-center items-baseline md:items-start",children:(0,s.jsx)("form",{ref:u,children:(0,s.jsx)("div",{className:"flex space-x-1",children:c.map((e,t)=>(0,s.jsx)("div",{className:"w-12 h-12 md:w-[60px] md:h-[60px] rounded-lg relative bg-white overflow-hidden ".concat(m==t?"border border-ck-blue":o?"!border !border-ck-red":"!border !border-ck-stroke-gray"),children:(0,s.jsx)(a.A,{onFocus:()=>x(t),onBlur:()=>x(-1),onKeyDown:e=>((e,t)=>{if("Enter"===e.key&&setTimeout(()=>{l&&l()},600),"Backspace"==e.key){var s,a,r;let e=[...c].filter((e,l)=>l===t),l=(0,n.Im)(null==e?void 0:e[0])?t-1<=0?0:t-1:t,i=c.map((e,t)=>t===l?"":e).filter(e=>!(0,n.Im)(e));d(()=>[...i,...Array(6-i.length).fill("")]),null==u||null==(r=u.current)||null==(a=r[l])||null==(s=a.focus)||s.call(a),x(l)}else if("Delete"===e.key){let e=c.map((e,l)=>l===t?"":e).filter(e=>!(0,n.Im)(e));d(()=>[...e,...Array(6-e.length).fill("")]),x(t)}})(e,t),onChange:e=>((e,t)=>{var l,s,a,r;if("insertFromPaste"===e.nativeEvent.inputType){let a=e.target.value.split("");if(!a.every(e=>!isNaN(+e)))return;let r=[...c];r[t]="";let i=r.filter(e=>!(0,n.Im)(e)),o=0===t?a:[...i,...a],m=o.length>=6?o.slice(0,6):[...o,...Array(6-o.length).fill("")];d(()=>m);let p=[...m].filter(e=>!(0,n.Im)(e)),g=p.length<=6?p.length-1:-1;x(()=>g);let b=null==u||null==(l=u.current)?void 0:l[g];null==b||null==(s=b.focus)||s.call(b)}else{let l=parseInt(e.nativeEvent.data);if(!isNaN(l)){c[t]=null==l?void 0:l.toString(),d(()=>c),x(t+1);let e=null==u||null==(a=u.current)?void 0:a[t+1];null==e||null==(r=e.focus)||r.call(e)}}})(e,t),inputStyle:"!w-12 h-12 md:w-[60px] md:h-[60px] text-center border-none outline-none",id:"pin_".concat(t),type:"tel",value:e,parentStyle:"justify-center",autoComplete:"off"})},"pin_".concat(t+0)))})})})}}}]);

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.