PageSourceSearch

https://me.paymentoptions.com/static/js/mfa.6fe6a53d.chunk.js

js paymentoptions.com collected 2026-10-07 18:41:11 UTC 10,705 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkdas_dashboard=self.webpackChunkdas_dashboard||[]).push([[7923],{50737(e,s,a){a.r(s),a.d(s,{default:()=>T});var t=a(89379),n=a(65043),c=a(67854),o=a(79456),l=a(87532),r=a(49092),d=a(99442),i=a(71924),p=a(86908),u=a(8192),m=a(6080),h=a(24914),x=a(35534),_=a(93413),S=a(75216),j=a(44348),E=a(19875),v=a(26394),f=a(70579);const C=e=>{var s;let{open:a,setOpen:t,onVerifyOtp:c,onResendOtp:o,otpLength:l=6}=e;const{t:d}=(0,r.B)(),i=()=>{const e={};for(let s=0;s<l;s++)e["otp".concat(s+1)]="";return e},[p,u]=(0,n.useState)(i());(0,n.useEffect)(()=>()=>{u(i())},[a]);const m=Object.values(p).some(e=>""===e||void 0===e),h=Object.values(p).join("");return(0,f.jsxs)(E.A,{open:a,setOpen:t,children:[(0,f.jsx)("h3",{children:d("Please enter OTP to verify your account")}),(0,f.jsx)("div",{className:"description-text",children:d("Please check your email account for the verification code we just sent you and enter that code in the box below")}),(0,f.jsx)("div",{className:"otp-field",children:null===(s=Array.from({length:l},(e,s)=>s+1))||void 0===s?void 0:s.map((e,s)=>(0,f.jsx)("input",{name:"otp-".concat(e),className:"reset-otp-input",type:"number",maxLength:1,inputMode:"numeric",value:p["otp".concat(e)],onChange:e=>(0,v.A)(e,u,p)},s))}),(0,f.jsxs)("div",{className:"flex gap-2 mt-20",children:[(0,f.jsx)("button",{onClick:()=>t(!1),className:"otp-verify-button cancel",children:d("CANCEL")}),(0,f.jsx)("button",{onClick:()=>c(h),className:"otp-verify-button",disabled:m,children:d("VERIFY")})]}),(0,f.jsx)("h5",{className:"didnt-recieved",children:d("Didn\u2019t receive code?")}),(0,f.jsx)("div",{onClick:o,className:"resend-button",children:d("Resend OTP")})]})};var b=a(89861);const A="https://en.wikipedia.org/wiki/Google_Authenticator",N="https://duo.com/product/multi-factor-authentication-mfa/duo-mobile-app",g="https://www.authy.com";function T(){const[e,s]=(0,n.useState)(""),[a,E]=(0,n.useState)(""),[v,T]=(0,n.useState)(""),y=(0,o.wA)(),w=(0,d.W6)(),{t:k}=(0,r.B)(),I=(0,o.d4)(e=>e.auth),O=null===I||void 0===I?void 0:I.username,P=(0,j.jO)(null===I||void 0===I?void 0:I.password),D={username:O,password:P},[R,M]=(0,n.useState)(!0),[F,L]=(0,n.useState)(!1),[U,B]=(0,n.useState)(!1),[q,V]=(0,n.useState)(!0),[G,Y]=(0,n.use
1State)(""),[Q,H]=(0,n.useState)(""),z=(0,d.zy)(),{isMFASetup:K}=z.state||{};(0,n.useEffect)(()=>{(async()=>{let e=localStorage.getItem("QRCode"),s=localStorage.getItem("PrivateKey");localStorage.setItem("QRCode",""),localStorage.setItem("PrivateKey",""),Y(e),H(s),V(!0),K||(M(!1),""!==e&&""!==s||w.push(S.S3))})()},[K]);const J=(0,o.d4)(l.CI);const W=()=>{y((0,l.Sr)()),w.push("/login")},X=()=>{L(!F),B(!U)},[Z,$]=(0,n.useState)(!1),ee=async()=>{await async function(e){const s={Email:e,path:"DASPOS",Password:P};try{const e=(await(0,u.l)().post(p.ti.MFA_GENERATE_URL,s)).data,a=e?e.qrcode:"",t=e?e.secret:"No secret available";return Y(a),H(t),e}catch(a){console.error("API error:",a)}}(O),$(!1),M(!1),V(!1)},se=async function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];try{y((0,l.AJ)("")),$(!0);const s=await(0,u.l)().post(p.ti.RESET_MFA_SEND_OTP,{email:O,password:P});[b.gx.CREATED].includes(s.statusCode)&&null!==s&&void 0!==s&&s.messageCode&&(e?m.A.success(k("API_STATUS_MESSAGE.INFO_AB_0003")):m.A.success(k("API_STATUS_MESSAGE.INFO_AB_0001")))}catch(s){console.error(s)}};return(0,f.jsxs)(c.A,{isLoading:!1,children:[(0,f.jsx)(C,{open:Z,setOpen:$,onVerifyOtp:e=>{y((0,l.AJ)(e)),ee()},onResendOtp:()=>{se(!0)},otpLength:6}),!R&&(0,f.jsx)(f.Fragment,{children:(0,f.jsxs)("div",{className:"mfa-setup mfa-toggled-setup verify-mfa-code",children:[q&&(0,f.jsx)("div",{className:"skip-mfa-note",children:(0,f.jsx)("button",{onClick:()=>{y((0,l.Lt)(D)),y((0,l.Sr)())},className:"copy-secret-key skip-mfa-button",children:k("SKIP_MFA")})}),(0,f.jsx)("h4",{className:"mfa-setup-title",children:k("Multi Factor Authentication Setup")}),(0,f.jsxs)("div",{className:"mfa-options",children:[(0,f.jsxs)("h3",{children:[k("STEP_1"),":"]}),(0,f.jsxs)("p",{children:[k("STEP_1_DESC"),(0,f.jsxs)("span",{tabIndex:1,onClick:()=>{window.open(A)},className:"mfa-apps",children:[" ",k("STEP_1_DESC_GOOGLE")]}),", ",(0,f.jsxs)("span",{tabIndex:2,onClick:()=>{window.open(N)},className:"mfa-apps",children:["  ",k("STEP_1_DESC_DUO")]}),k("STEP_1_DESC_2"),(0,f.jsxs)("span",{tabIndex:3,onClick:()=>{window.open(g)},className:"mfa-apps",children:["  ",k("STEP_1_DESC_AUTTY")]}),k("STEP_1_DESC_3")]}),(0,f.jsxs)("h3",{children:[k("STEP_2"),":"]}),(0,f.jsx)("p",{children:k("STEP_2_DESC")}),(0,f.jsxs)("div",{className:"secret-key-qr-wrap",children:[(0,f.jsxs)("div",{className:"secret-key-wraps",children:[(0,f.jsxs)("p",{className:"t-show-hide-secret-key",children:[k("SHOW_SECRET_KEY")," ",U?(0,f.jsx)(_.A,{onClick:X}):(0,f.jsx)(x.A,{onClick:X})]}),F&&(0,f.jsxs)("span",{className:"secret-key-text",children:[Q,F&&(0,f.jsx)("button",{className:"copy-secret-key",onClick:()=>{navigator.clipboard.writeText(Q).then(()=>{m.A.success(k("COPY_SECRET_KEY"))}).catch(()=>{m.A.error(k("FAIL_COPY_SECRET_KEY"))})},children:(0,f.jsx)(h.A,{})})]})]}),(0,f.jsxs)("p",{className:"mfa-qr-wrapper",children:[(0,f.jsx)("span",{className:"qr-scan-image",children:k("SCAN_QR_CODE")}),(0,f.jsx)(i.A,{base64Image2:"",base64Image1:G,name:"MFA-Setup",encodedData:"",displayDownload:!1})]})]}),(0,f.jsxs)("h3",{children:[k("STEP_3"),":"]}),(0,f.jsx)("p",{children:k("STEP_3_DESC")}),(0,f.jsxs)("div",{className:"mfa-otp-group",children:[(0,f.jsx)("div",{className:"form-group",children:(0,f.jsx)("input",{tabIndex:5,type:"number",placeholder:k("ENTER_OTP_1"),value:a,name:"otp1",onChange:e=>E(e.target.value),required:!0})}),(0,f.jsx)("div",{className:"form-group",children:(0,f.jsx)("input",{tabIndex:6,type:"number",placeholder:k("ENTER_OTP_2"),value:v,name:"otp2",onChange:e=>T(e.target.value),required:!0})})]}),(0,f.jsx)("div",{className:"button-group mfa-flex-btns",children:(0,f.jsxs)("form",{onSubmit:async function(e){e.preventDefault();const s=(0,t.A)((0,t.A)({email:O,password:P,otp1:a,otp2:v},J&&{emailOtp:J}),{},{secret:Q});y((0,l.qu)(s)).then(e=>{e.payload.success||y((0,l.Sr)()),w.push("/login")})},children:[(0,f.jsx)("button",{tabIndex:7,onClick:W,className:"copy-secret-key",children:k("MFA_RESET_BUTTON")}),(0,f.jsx)("button",{tabIndex:8,className:a&&v?"copy-secret-key":"copy-secret-key disabled",disabled:!a||!v,children:k("MFA_SUBMIT_BUTTON")})]})})]})]})}),R&&(0,f.jsxs)("div",{className:R?"mfa-setup mfa-toggled-setup verify-mfa-code mfa-enabled-class":"mfa-setup mfa-toggled-setup verify-mfa-code",children:[(0,f.jsx)("h2",{children:k("VERIFY_CODE")}),(0,f.jsx)("h5",{children:k("ENTER_CODE")}),(0,f.jsx)("div",{className:"form-group",children:(0,f.jsx)("input",{tabIndex:1,type:"number",value:e,name:"otp",onChange:e=>s(e.target.value),required:!0})}),(0,f.jsx)("div",{className:"button-group",children:(0,f.jsxs)("form",{onSubmit:s=>{s.preventDefault();const a={otp:e,username:O,password:P};y((0,l.Lt)(a))},children:[(0,f.jsx)("button",{tabIndex:2,onClick:W,className:"copy-secret-key",children:k("MFA_RESET_BUTTON")}),(0,f.jsx)("button",{tabIndex:3,className:e?"copy-secret-key":"copy-secret-key disabled",disabled:!e,children:k("MFA_SUBMIT_BUTTON")})]})}),(0,f.jsx)("div",{children:(0,f.jsxs)("p",{children:[k("STEP_1_DESC"),(0,f.jsxs)("span",{tabIndex:4,onClick:()=>{window.open(A)},className:"mfa-apps",children:[" ",k("STEP_1_DESC_GOOGLE")]}),", ",(0,f.jsxs)("span",{tabIndex:5,onClick:()=>{window.open(N)},className:"mfa-apps",children:["  ",k("STEP_1_DESC_DUO")]}),k("STEP_1_DESC_2"),(0,f.jsxs)("span",{tabIndex:6,onClick:()=>{window.open(g)},className:"mfa-apps",children:["  ",k("STEP_1_DESC_AUTTY")]}),k("STEP_1_DESC_3")]})}),(0,f.jsx)("div",{children:(0,f.jsxs)("p",{children:[k("MFA_HAVING_TROUBLE"),(0,f.jsx)("button",{tabIndex:7,className:"mfa-reset-button",onClick:()=>se(!1),children:k("RESET_MFA")})]})})]})]})}},71924(e,s,a){a.d(s,{A:()=>l});var t=a(65043),n=a(74568),c=a(49092),o=a(70579);const l=e=>
1{let{base64Image1:s,base64Image2:a,encodedData:l,DASMID:r,MerchantName:d,LocationName:i,name:p,displayDownload:u=!0}=e;const m=(0,t.useRef)(null),{t:h}=(0,c.B)();(0,t.useEffect)(()=>{const e=m.current,t=e.getContext("2d"),n=new Image;n.src=s,n.onload=()=>{e.width=450,e.height=250,t.drawImage(n,100,0,250,250);const s=new Image;s.src=a,s.onload=()=>{t.drawImage(s,185,110,80,35)}}},[s,a]);return(0,o.jsxs)("div",{className:"generatedQr",children:[(0,o.jsx)("a",{href:l,target:"blank",children:(0,o.jsx)("canvas",{ref:m,className:"canvasQr"})}),u&&(0,o.jsx)("center",{children:(0,o.jsxs)("button",{onClick:()=>{const e=m.current,s=document.createElement("a");s.href=e.toDataURL("image/png"),s.download=p||"".concat(r,"-QR-").concat(d,"-").concat(i,".png"),s.click()},className:"qr-generate download-qr",children:[(0,o.jsx)(n.A,{})," ",h("PoMidSchema.QR.button.Download_QR")]})})]})}},24914(e,s,a){var t=a(24994);s.A=void 0;var n=t(a(40039)),c=a(70579);s.A=(0,n.default)((0,c.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}),"ContentCopy")},35534(e,s,a){var t=a(24994);s.A=void 0;var n=t(a(40039)),c=a(70579);s.A=(0,n.default)((0,c.jsx)("path",{d:"M12 6.5c3.79 0 7.17 2.13 8.82 5.5-1.65 3.37-5.02 5.5-8.82 5.5S4.83 15.37 3.18 12C4.83 8.63 8.21 6.5 12 6.5m0-2C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5m0 5c1.38 0 2.5 1.12 2.5 2.5s-1.12 2.5-2.5 2.5-2.5-1.12-2.5-2.5 1.12-2.5 2.5-2.5m0-2c-2.48 0-4.5 2.02-4.5 4.5s2.02 4.5 4.5 4.5 4.5-2.02 4.5-4.5-2.02-4.5-4.5-4.5"}),"RemoveRedEyeOutlined")},93413(e,s,a){var t=a(24994);s.A=void 0;var n=t(a(40039)),c=a(70579);s.A=(0,n.default)((0,c.jsx)("path",{d:"M12 6c3.79 0 7.17 2.13 8.82 5.5-.59 1.22-1.42 2.27-2.41 3.12l1.41 1.41c1.39-1.23 2.49-2.77 3.18-4.53C21.27 7.11 17 4 12 4c-1.27 0-2.49.2-3.64.57l1.65 1.65C10.66 6.09 11.32 6 12 6m-1.07 1.14L13 9.21c.57.25 1.03.71 1.28 1.28l2.07 2.07c.08-.34.14-.7.14-1.07C16.5 9.01 14.48 7 12 7c-.37 0-.72.05-1.07.14M2.01 3.87l2.68 2.68C3.06 7.83 1.77 9.53 1 11.5 2.73 15.89 7 19 12 19c1.52 0 2.98-.29 4.32-.82l3.42 3.42 1.41-1.41L3.42 2.45zm7.5 7.5 2.61 2.61c-.04.01-.08.02-.12.02-1.38 0-2.5-1.12-2.5-2.5 0-.05.01-.08.01-.13m-3.4-3.4 1.75 1.75c-.23.55-.36 1.15-.36 1.78 0 2.48 2.02 4.5 4.5 4.5.63 0 1.23-.13 1.77-.36l.98.98c-.88.24-1.8.38-2.75.38-3.79 0-7.17-2.13-8.82-5.5.7-1.43 1.72-2.61 2.93-3.53"}),"VisibilityOffOutlined")},74568(e,s,a){a.d(s,{A:()=>c});var t=a(66734),n=a(70579);const c=(0,t.A)((0,n.jsx)("path",{d:"M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3zm-1-4-1.41-1.41L13 12.17V4h-2v8.17L8.41 9.59 7 11l5 5z"}),"FileDownloadOutlined")}}]);
2//# sourceMappingURL=mfa.6fe6a53d.chunk.js.map

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.