PageSourceSearch

https://app.spoofcard.com/static/js/786.0fe6592d.chunk.js

js spoofcard.com collected 2026-09-24 10:23:05 UTC 51,491 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkspoofcard_web_app=self.webpackChunkspoofcard_web_app||[]).push([[786],{531:function(e,t,n){n(2791);var r=n(9658),a=n(7317),i=n(184);t.Z=function(e){var t=e.message;return(0,i.jsxs)(r.Z,{severity:"success",children:[(0,i.jsx)(a.Z,{children:"Success!"}),t]})}},6786:function(e,t,n){n.r(t),n.d(t,{default:function(){return ut}});var r=n(9439),a=n(2791),i=n(7689),s=n(1889),o=n(5527),c=n(4554),l=n(5228),u=n(3896),d=n(4165),h=n(5861),p=n(7391),f=n(4518),v=n(9836),x=n(3382),m=n(5855),g=n(3994),Z=n(7462),j=n(3366),b=n(3733),y=n(4419),w=n(829),C=n(1402),S=n(6934),k=n(5878),_=n(1217);function N(e){return(0,_.Z)("MuiTableHead",e)}(0,k.Z)("MuiTableHead",["root"]);var P=n(184),M=["className","component"],D=(0,S.ZP)("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:function(e,t){return t.root}})({display:"table-header-group"}),z={variant:"head"},O="thead",A=a.forwardRef((function(e,t){var n=(0,C.Z)({props:e,name:"MuiTableHead"}),r=n.className,a=n.component,i=void 0===a?O:a,s=(0,j.Z)(n,M),o=(0,Z.Z)({},n,{component:i}),c=function(e){var t=e.classes;return(0,y.Z)({root:["root"]},N,t)}(o);return(0,P.jsx)(w.Z.Provider,{value:z,children:(0,P.jsx)(D,(0,Z.Z)({as:i,className:(0,b.Z)(c.root,r),ref:t,role:i===O?null:"rowgroup",ownerState:o},s))})})),R=n(1286),T=n(5126),F=n(4281),I=n(8365),V=n(3091),H=n(4328),E=n(5289),L=n(3400),W=n(5661),U=n(9157),B=n(1582),q=n(7123),Y=n(9823),$=n(8180),X=n(531),G=n(2533),J=n(769),K=n(7115),Q=function(e){var t=e.open,n=e.closeDialog,i=(e.credential,(0,G.aC)()),s=(i.userData,i.refreshUserData,(0,a.useState)(null)),o=(0,r.Z)(s,2),c=(o[0],o[1],(0,a.useState)(null)),l=(0,r.Z)(c,2),u=l[0],v=l[1],x=(0,a.useState)(null),m=(0,r.Z)(x,2),g=m[0],Z=m[1],j=(0,a.useState)(null),b=(0,r.Z)(j,2),y=b[0],w=b[1],C=(0,a.useState)(null),S=(0,r.Z)(C,2),k=S[0],_=S[1],N=(0,a.useState)(null),M=(0,r.Z)(N,2),D=M[0],z=M[1],O=function(){var e=(0,h.Z)((0,d.Z)().mark((function e(t){var r,a,i;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.preventDefault(),!(u.length<6)){e.next=3;break}return e.abrupt("return",_("Your Security password must be at least 6 characters in length."));case 3:if(g==u){e.next=5;break}return e.abrupt("return",_("New security password confirmation does not match."));case 5:return e.next=7,J.O.auth.updateUser({password:u});case 7:r=e.sent,(a=r.error)?((0,K.Tb)(a,{feature:"settings",action:"change_password",category:"auth_error"}),_(a.message),z(null!==(i=a.code)&&void 0!==i?i:null)):(w("Password successfully updated."),_(null),z(null),setTimeout((function(){n(),z(null),_(null),w(null)}),2e3));case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return(0,P.jsxs)(E.Z,{open:t,onClose:n,id:"ChangePinDialog",children:[(0,P.jsx)(L.Z,{edge:"start",color:"inherit",onClick:n,className:"close-button",children:(0,P.jsx)(Y.Z,{})}),(0,P.jsx)(W.Z,{children:"Change your Password"}),(0,P.jsxs)("form",{id:"change_pin",onSubmit:O,children:[(0,P.jsx)(U.Z,{children:(0,P.jsxs)(B.Z,{direction:"column",spacing:2,children:[(0,P.jsx)(p.Z,{placeholder:"New 6+ digit password",name:"new_pin",type:"password",onChange:function(e){return v(e.target.value)},required:!0,inputProps:{minLength:6},fullWidth:!0}),(0,P.jsx)(p.Z,{placeholder:"Confirm Password",name:"verify_pin",type:"password",onChange:function(e){return Z(e.target.value)},required:!0,inputProps:{minLength:6},fullWidth:!0}),y&&(0,P.jsx)(X.Z,{message:y}),k&&(0,P.jsx)($.Z,{message:k,code:D})]})}),(0,P.jsxs)(q.Z,{children:[(0,P.jsx)(f.Z,{onClick:n,variant:"text",children:"Cancel"}),(0,P.jsx)(f.Z,{type:"submit",variant:"contained",children:"Change Password"})]})]})]})},ee=n(2092),te=n(6026),ne=n.n(te),re=n(3412),ae=n(3585),ie=1,se=2,oe=function(e){var t=e.open,n=e.closeDialog,i=(0,G.aC)().userData,s=(0,a.useState)(ie),o=(0,r.Z)(s,2),c=o[0],l=o[1],u=(0,a.useState)(""),p=(0,r.Z)(u,2),v=p[0],x=p[1],m=(0,a.useState)(""),g=(0,r.Z)(m,2),Z=g[0],j=g[1],b=(0,a.useState)(null),y=(0,r.Z)(b,2),w=(y[0],y[1],(0,a.useState)(null)),C=(0,r.Z)(w,2),S=(C[0],C[1],(0,a.useState)(null)),k=(0,r.Z)(S,2),_=k[0],N=k[1],M=(0,a.useState)(null),D=(0,r.Z)(M,2),z=D[0],O=D[1],A=(0,a.useState)(null),R=(0,r.Z)(A,2),T=(R[0],R[1],(0,a.useState)(0)),F=(0,r.Z)(T,2),I=F[0],V=F[1],H=(0,re.U)(i).isFraud,q=function(){var e=(0,h.Z)((0,d.Z)().mark((function e(t){var n,r;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.preventDefault(),!H){e.next=5;break}return N(ae.l),O(403),e.abrupt("return");case 5:return N(null),e.next=8,J.O.auth.updateUser({phone:v});case 8:if(n=e.sent,!(r=n.error)){e.next=13;break}return N(r.message||"Failed to send code. Please try again."),e.abrupt("return");case 13:l(se),V(30);case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),X=function(){var e=(0,h.Z)((0,d.Z)().mark((function e(t){var r,a;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.preventDefault(),!H){e.next=5;break}return N(ae.l),O(403),e.abrupt("return");case 5:return N(null),e.next=8,J.O.auth.verifyOtp({phone:v,token:Z,type:"phone_change"});case 8:if(r=e.sent,!(a=r.error)){e.next=13;break}return N(a.message||"Invalid verification code."),e.abrupt("return");case 13:n();case 14:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return(0,a.useEffect)((function(){if(!(I<=0)){var e=setInterval((function(){V((function(e){return e-1}))}),1e3);return function(){return clearInterval(e)}}}),[I]),(0,P.jsxs)(E.Z,{open:t,onClose:n,id:"VerifyNumberDialog",children:[(0,P.jsx)(L.Z,{edge:"start",color:"inherit",onClick:n,className:"close-button",children:(0,P.jsx)(Y.Z,{})}),c&&1===c&&(0,P.jsx)(W.Z,{children:"Change your number"}),(0,P.jsxs)(U.Z,{children:[1===c&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)("p",{children:"This number will be the primary number on your account and will be the number you use to log in moving forward."}),(0,P.jsx)("form",{action:"",id:"loginForm",onSubmit:q,children:(0,P.jsxs)(B.Z,{direction:"column",spacing:2,children:[(0,P.jsx)(ee.ZP,{placeholder:"Enter your phone number",value:v,onCh
1ange:x,defaultCountry:"US",withCountryCallingCode:!0,countries:["US","CA","MX"],addInternationalOption:!1,autoComplete:"phone",name:"phone"}),_&&(0,P.jsx)($.Z,{message:_}),(0,P.jsx)(f.Z,{variant:"contained",size:"large",type:"submit",className:"login-submit",children:"Next"})]})})]}),2===c&&(0,P.jsxs)("section",{className:"verify-step step-section",children:[(0,P.jsx)("h2",{children:"Enter the code"}),(0,P.jsxs)("p",{children:["A verification code has been sent to:",(0,P.jsxs)("strong",{children:[" ",v]}),"."]}),(0,P.jsx)("form",{onSubmit:X,children:(0,P.jsxs)(B.Z,{spacing:2,children:[(0,P.jsxs)("div",{style:{textAlign:"center"},children:[(0,P.jsx)(ne(),{onChange:j,validChars:"0-9",classNames:{container:"verification-container",character:"verification-character",characterInactive:"verification-character--inactive",characterSelected:"verification-character--selected",characterFilled:"verification-character--filled"}}),(0,P.jsx)("div",{className:"resend-buttons",children:(0,P.jsx)(f.Z,{onClick:q,disabled:I>0,variant:"text",children:I>0?"Resend code in ".concat(I):"Resend code"})})]}),_&&(0,P.jsx)($.Z,{message:_,code:z}),(0,P.jsx)(f.Z,{variant:"contained",size:"large",type:"submit",className:"login-submit",children:"Verify"})]})})]})]})]})},ce=n(9089),le=n(7793),ue=n(9012),de=n(2071),he=n(4556);var pe=a.createContext(void 0),fe=n(7384),ve=["actions","children","defaultValue","name","onChange","value"],xe=a.forwardRef((function(e,t){var n=e.actions,i=e.children,s=e.defaultValue,o=e.name,c=e.onChange,l=e.value,u=(0,j.Z)(e,ve),d=a.useRef(null),h=(0,he.Z)({controlled:l,default:s,name:"RadioGroup"}),p=(0,r.Z)(h,2),f=p[0],v=p[1];a.useImperativeHandle(n,(function(){return{focus:function(){var e=d.current.querySelector("input:not(:disabled):checked");e||(e=d.current.querySelector("input:not(:disabled)")),e&&e.focus()}}}),[]);var x=(0,de.Z)(t,d),m=(0,fe.Z)(o),g=a.useMemo((function(){return{name:m,onChange:function(e){v(e.target.value),c&&c(e,e.target.value)},value:f}}),[m,c,v,f]);return(0,P.jsx)(pe.Provider,{value:g,children:(0,P.jsx)(ue.Z,(0,Z.Z)({role:"radiogroup",ref:x},u,{children:i}))})})),me=n(5523),ge=n(4942),Ze=n(2065),je=n(7278),be=n(9201),ye=(0,be.Z)((0,P.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),we=(0,be.Z)((0,P.jsx)("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),Ce=(0,S.ZP)("span",{shouldForwardProp:S.FO})({position:"relative",display:"flex"}),Se=(0,S.ZP)(ye)({transform:"scale(1)"}),ke=(0,S.ZP)(we)((function(e){var t=e.theme,n=e.ownerState;return(0,Z.Z)({left:0,position:"absolute",transform:"scale(0)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeIn,duration:t.transitions.duration.shortest})},n.checked&&{transform:"scale(1)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeOut,duration:t.transitions.duration.shortest})})}));var _e=function(e){var t=e.checked,n=void 0!==t&&t,r=e.classes,a=void 0===r?{}:r,i=e.fontSize,s=(0,Z.Z)({},e,{checked:n});return(0,P.jsxs)(Ce,{className:a.root,ownerState:s,children:[(0,P.jsx)(Se,{fontSize:i,className:a.background,ownerState:s}),(0,P.jsx)(ke,{fontSize:i,className:a.dot,ownerState:s})]})},Ne=n(4036),Pe=n(1260);function Me(e){return(0,_.Z)("MuiRadio",e)}var De=(0,k.Z)("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),ze=["checked","checkedIcon","color","icon","name","onChange","size","className"],Oe=(0,S.ZP)(je.Z,{shouldForwardProp:function(e){return(0,S.FO)(e)||"classes"===e},name:"MuiRadio",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,"medium"!==n.size&&t["size".concat((0,Ne.Z)(n.size))],t["color".concat((0,Ne.Z)(n.color))]]}})((function(e){var t=e.theme,n=e.ownerState;return(0,Z.Z)({color:(t.vars||t).palette.text.secondary},!n.disableRipple&&{"&:hover":{backgroundColor:t.vars?"rgba(".concat("default"===n.color?t.vars.palette.action.activeChannel:t.vars.palette[n.color].mainCh
1annel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,Ze.Fq)("default"===n.color?t.palette.action.active:t.palette[n.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==n.color&&(0,ge.Z)({},"&.".concat(De.checked),{color:(t.vars||t).palette[n.color].main}),(0,ge.Z)({},"&.".concat(De.disabled),{color:(t.vars||t).palette.action.disabled}))}));var Ae=(0,P.jsx)(_e,{checked:!0}),Re=(0,P.jsx)(_e,{}),Te=a.forwardRef((function(e,t){var n,r,i,s,o=(0,C.Z)({props:e,name:"MuiRadio"}),c=o.checked,l=o.checkedIcon,u=void 0===l?Ae:l,d=o.color,h=void 0===d?"primary":d,p=o.icon,f=void 0===p?Re:p,v=o.name,x=o.onChange,m=o.size,g=void 0===m?"medium":m,w=o.className,S=(0,j.Z)(o,ze),k=(0,Z.Z)({},o,{color:h,size:g}),_=function(e){var t=e.classes,n=e.color,r=e.size,a={root:["root","color".concat((0,Ne.Z)(n)),"medium"!==r&&"size".concat((0,Ne.Z)(r))]};return(0,Z.Z)({},t,(0,y.Z)(a,Me,t))}(k),N=a.useContext(pe),M=c,D=(0,Pe.Z)(x,N&&N.onChange),z=v;return N&&("undefined"===typeof M&&(i=N.value,M="object"===typeof(s=o.value)&&null!==s?i===s:String(i)===String(s)),"undefined"===typeof z&&(z=N.name)),(0,P.jsx)(Oe,(0,Z.Z)({type:"radio",icon:a.cloneElement(f,{fontSize:null!=(n=Re.props.fontSize)?n:g}),checkedIcon:a.cloneElement(u,{fontSize:null!=(r=Ae.props.fontSize)?r:g}),ownerState:k,classes:_,name:z,checked:M,onChange:D,ref:t,className:(0,b.Z)(_.root,w)},S))})),Fe=n(8723),Ie=function(e){var t,n,i=e.open,s=e.closeDialog,o=(0,G.aC)(),c=(o.userData,o.logout),l=(0,Fe.pw)(),u=l.globalVars,p=l.deactivationReasons,v=null!==(t=null===(n=u.find((function(e){return"chatwoot_url"===e.key})))||void 0===n?void 0:n.value_text)&&void 0!==t?t:"",x=(0,a.useState)(null),m=(0,r.Z)(x,2),g=m[0],Z=m[1],j=(0,a.useState)(1),b=(0,r.Z)(j,2),y=b[0],w=b[1],C=(0,a.useState)(null),S=(0,r.Z)(C,2),k=S[0],_=S[1],N=(0,a.useState)(null),M=(0,r.Z)(N,2),D=M[0],z=M[1],O=(0,a.useState)(null),A=(0,r.Z)(O,2),R=A[0],T=A[1],F=(0,a.useState)(!1),I=(0,r.Z)(F,2),V=I[0],H=I[1],B=function(){var e=(0,h.Z)((0,d.Z)().mark((function e(){return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return H(!0),z(null),T(null),e.prev=3,e.next=6,(0,J.$)("users/deactivate",{deactivation_reason:g},"Failed to deactivate account");case 6:return _("This account has been successfully deactivated."),e.next=9,c();case 9:e.next=16;break;case 11:e.prev=11,e.t0=e.catch(3),e.t0._sentryReported||(0,K.Tb)(e.t0,{feature:"settings",action:"deactivate_account",category:"api_error"}),z(e.t0.message),T(e.t0.status);case 16:return e.prev=16,H(!1),e.finish(16);case 19:case"end":return e.stop()}}),e,null,[[3,11,16,19]])})));return function(){return e.apply(this,arguments)}}();return(0,P.jsxs)(E.Z,{open:i,onClose:s,id:"DeactivateAccountDialog",children:[(0,P.jsx)(L.Z,{edge:"start",color:"inherit",onClick:s,className:"close-button",children:(0,P.jsx)(Y.Z,{})}),1===y&&(0,P.jsxs)("section",{id:"deactivation-reasons",children:[(0,P.jsx)(W.Z,{children:"We're sorry to see you go!"}),(0,P.jsxs)(U.Z,{children:[(0,P.jsx)("p",{children:"Would you share with us why you're leaving? Please select the reason below to continue with deactivating your account."}),(0,P.jsx)(xe,{defaultValue:"No longer need this service",name:"radio-buttons-group",onChange:function(e){return Z(e.target.value)},children:p&&p.map((function(e,t){return(0,P.jsx)(me.Z,{value:e.param,control:(0,P.jsx)(Te,{}),label:e.title_en},t)}))})]}),(0,P.jsxs)(q.Z,{children:[(0,P.jsx)(f.Z,{onClick:s,variant:"text",children:"Cancel"}),(0,P.jsx)(f.Z,{onClick:function(){return w(2)},type:"submit",variant:"contained",children:"Next"})]})]}),2===y&&(0,P.jsxs)("section",{id:"deactivation-submit",children:[(0,P.jsx)(W.Z,{children:"Permanently deactivate account?"}),(0,P.jsxs)(U.Z,{children:[(0,P.jsx)("p",{style:{fontSize:"16px",lineHeight:"24px",marginBottom:"25px"},children:"Once you deactivate your account, you will no longer have access to any recordings, call logs, or any other account details. Any remaining credits will be forfeited upon account deactivation. Do you wish to continue?"}),(0,P.jsx)(f.Z,{href:v,target:"_blank",rel:"noreferrer",variant:"contained",style:{backgroundColor:"#3DCB55",marginBottom:"20px",fontWeight:"700"},size:"large",fullWidth:!0,children:"Contact Support"}),(0,P.jsx)(f.Z,{onClick:B,variant:"contained",color:"error",size:"large",fullWidth:!0,disabled:V,children:V?(0,P.jsx)(ce.l_,{}):"Deactivate Account"}),(0,P.jsxs)("div",{style:{marginTop:"10px"},children:[k&&(0,P.jsx)(X.Z,{message:k}),D&&(0,P.jsx)($.Z,{message:D,code:R})]})]}),(0,P.jsx)(q.Z,{children:(0,P.jsx)(f.Z,{onClick:s,variant:"text",children:"Cancel"})})]})]})},Ve=function(e){var t=e.open,n=e.closeDialog,i=e.userData,s=e.ListVerifiedCallerIds,o=(0,a.useState)(null),c=(0,r.Z)(o,2),l=c[0],u=c[1],p=(0,a.useState)(null),v=(0,r.Z)(p,2),x=v[0],m=v[1],g=(0,a.useState)(null),Z=(0,r.Z)(g,2),j=Z[0],b=Z[1],y=(0,a.useState)(null),w=(0,r.Z)(y,2),C=w[0],S=w[1],k=(0,a.useState)(""),_=(0,r.Z)(k,2),N=_[0],M=_[1],D=(0,a.useState)(""),z=(0,r.Z)(D,2),O=z[0],A=z[1],R=(0,a.useState)(null),T=(0,r.Z)(R,2),F=T[0],I=T[1],V=(0,a.useState)(!1),H=(0,r.Z)(V,2),q=H[0],G=H[1],Q=(0,a.useState)(!1),te=(0,r.Z)(Q,2),ie=te[0],se=te[1],oe=(0,a.useState)(30),ce=(0,r.Z)(oe,2),le=ce[0],ue=ce[1],de=(0,a.useState)("text"),he=(0,r.Z)(de,2),pe=he[0],fe=he[1],ve=(0,re.U)(i).isFraud,ge="text",Ze="call",je=function(e){return e===Ze?ge:Ze},be=je(pe),ye="Text me with the verification code.",we="Call me with the verification code.",Ce=function(){var e=(0,h.Z)((0,d.Z)().mark((function e(t){var n,r,a;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!ve){e.next=4;break}return b(ae.l),S(403),e.abrupt("return");case 4:return r={phone_number:N,method:n=null!==t&&void 0!==t?t:pe}
1,e.prev=6,e.next=9,(0,J.$)("telecom/send-code",r,"Failed to send code.");case 9:a=e.sent,I(a.verification_id),u(2),se((function(e){return!e})),Se(),e.next=21;break;case 16:e.prev=16,e.t0=e.catch(6),e.t0._sentryReported||(0,K.Tb)(e.t0,{feature:"settings",action:"send_verification_code",category:"api_error",extra:{method:n}}),b(e.t0.message),S(e.t0.status);case 21:case"end":return e.stop()}}),e,null,[[6,16]])})));return function(t){return e.apply(this,arguments)}}();(0,a.useEffect)((function(){2===l?(ue(30),G(!0)):G(!1)}),[l,ie]),(0,a.useEffect)((function(){if(q){var e=setInterval((function(){ue((function(t){return t<=1?(G(!1),clearInterval(e),0):t-1}))}),1e3);return function(){return clearInterval(e)}}}),[q]);var Se=function(){b(null),S(null)},ke=function(){var e=(0,h.Z)((0,d.Z)().mark((function e(t){var r;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.preventDefault(),!ve){e.next=5;break}return b(ae.l),S(403),e.abrupt("return");case 5:return r={verification_id:F,code:O},e.prev=6,e.next=9,(0,J.$)("telecom/verify-code",r,"Failed to verify code.");case 9:m("This number has been successfully verified!"),b(null),S(null),s(),setTimeout((function(){n(),S(null),b(null),m(null)}),2e3),e.next=21;break;case 16:e.prev=16,e.t0=e.catch(6),e.t0._sentryReported||(0,K.Tb)(e.t0,{feature:"settings",action:"verify_caller_id_code",category:"api_error"}),b(e.t0.message),S(e.t0.status);case 21:case"end":return e.stop()}}),e,null,[[6,16]])})));return function(t){return e.apply(this,arguments)}}();return(0,a.useEffect)((function(){t&&(u(1),m(null),b(null),S(null),M(""),A(""),I(null),G(!1),se(!1),ue(30),fe(ge))}),[t]),(0,P.jsxs)(E.Z,{open:t,onClose:n,id:"VerifyNumberDialog",children:[(0,P.jsx)(L.Z,{edge:"start",color:"inherit",onClick:n,className:"close-button",children:(0,P.jsx)(Y.Z,{})}),(0,P.jsx)(W.Z,{children:"Add a Verified Caller ID"}),(0,P.jsxs)(U.Z,{children:[l&&1===l&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)("p",{children:"If you have multiple numbers you want to call from, add them here! Once you confirm you own these numbers, you can use them as your Caller ID whenever you need."}),(0,P.jsx)("section",{className:"request-step step-section",children:(0,P.jsx)("form",{action:"",id:"loginForm",onSubmit:function(e){e.preventDefault(),Ce()},children:(0,P.jsxs)(B.Z,{direction:"column",spacing:2,children:[(0,P.jsx)(ee.ZP,{placeholder:"Enter your phone number",value:N,onChange:M,defaultCountry:"US",withCountryCallingCode:!0,countries:["US","CA","MX"],addInternationalOption:!1,autoComplete:"phone",name:"phone"}),(0,P.jsxs)(xe,{className:"verification-method-radio-group",name:"radio-buttons-group",value:pe,onChange:function(e){return fe(e.target.value)},children:[(0,P.jsx)(me.Z,{value:"text",control:(0,P.jsx)(Te,{}),label:ye}),(0,P.jsx)(me.Z,{value:"call",control:(0,P.jsx)(Te,{}),label:we})]}),j&&(0,P.jsx)($.Z,{message:j,code:C}),(0,P.jsx)("div",{className:"verification-button-group",children:(0,P.jsx)(f.Z,{variant:"contained",type:"submit",children:"Next"})})]})})})]}),l&&2===l&&(0,P.jsxs)("section",{className:"verify-step step-section",children:[(0,P.jsx)("h2",{children:"Enter the code"}),(0,P.jsxs)("p",{children:["A verification code has been sent to:",(0,P.jsxs)("strong",{children:[" ",N]}),"."]}),(0,P.jsx)("form",{action:"",id:"loginForm",onSubmit:ke,children:(0,P.jsxs)(B.Z,{direction:"column",spacing:2,children:[(0,P.jsxs)("div",{style:{textAlign:"center"},children:[(0,P.jsx)(ne(),{onChange:A,validChars:"0-9",classNames:{container:"verification-container",character:"verification-character",characterInactive:"verification-character--inactive",characterSelected:"verification-character--selected",characterFilled:"verification-character--filled"}}),(0,P.jsxs)("div",{className:"resend-buttons",children:[(0,P.jsx)(f.Z,{onClick:function(){var e=je(pe);fe(e),Ce(e)},disabled:q,variant:"text",children:{text:"Text me instead",call:"Call me instead"}[be]}),(0,P.jsx)(f.Z,{onClick:function(){Ce()},disabled:q,variant:"text",children:"Resend code"})]}),le?(0,P.jsxs)("div",{className:"resend-timer",children:[le," seconds"]}):(0,P.jsx)(P.Fragment,{})]}),x&&(0,P.jsx)(X.Z,{message:x}
1),j&&C&&(0,P.jsx)($.Z,{message:j,code:C}),(0,P.jsx)("div",{className:"verification-button-group",children:(0,P.jsx)(f.Z,{variant:"contained",type:"submit",children:"Verify"})})]})})]})]})]})},He=n(1743),Ee=n(7600),Le=n(6308),We=(n(2845),function(e){var t=e.open,n=e.closeDialog,r=function(){var e=(0,h.Z)((0,d.Z)().mark((function e(t){var n,r;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return He.n({category:"auth",message:"Linking SSO provider: ".concat(t),level:"info"}),e.next=3,J.O.auth.linkIdentity({provider:t,options:{redirectTo:"https://app.spoofcard.com/settings/account"}});case 3:n=e.sent,n.data,(r=n.error)&&(0,K.Tb)(r,{feature:"auth",action:"link_sso",category:"auth_error",extra:{provider:t}});case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return(0,P.jsxs)(E.Z,{open:t,onClose:n,id:"ChangePinDialog",children:[(0,P.jsx)(L.Z,{edge:"start",color:"inherit",onClick:n,className:"close-button",children:(0,P.jsx)(Y.Z,{})}),(0,P.jsx)(W.Z,{children:"Add Login Method"}),(0,P.jsx)(U.Z,{children:(0,P.jsxs)("div",{className:"social-buttons",children:[(0,P.jsx)(f.Z,{variant:"outlined",startIcon:(0,P.jsx)("img",{src:Ee,alt:"Apple"}),onClick:function(){return r("apple")},children:"Continue with Apple"}),(0,P.jsx)(f.Z,{variant:"outlined",startIcon:(0,P.jsx)("img",{src:Le,alt:"Google"}),onClick:function(){return r("google")},children:"Continue with Google"})]})})]})}),Ue=function(e){var t=e.active,n=(0,G.aC)().userData,i=(0,re.U)(n).isSubAccount,o=(0,a.useState)(!1),l=(0,r.Z)(o,2),u=l[0],Z=l[1],j=(0,a.useState)(!1),b=(0,r.Z)(j,2),y=b[0],w=b[1],C=(0,a.useState)(!1),S=(0,r.Z)(C,2),k=S[0],_=S[1],N=(0,a.useState)(!1),M=(0,r.Z)(N,2),D=M[0],z=M[1],O=(0,a.useState)(!1),E=(0,r.Z)(O,2),L=E[0],W=E[1],U=(0,a.useState)(n.first_name),B=(0,r.Z)(U,2),q=B[0],Y=B[1],ee=(0,a.useState)(n.last_name),te=(0,r.Z)(ee,2),ne=te[0],ae=te[1],ie=(0,a.useState)(n.marketing_email),se=(0,r.Z)(ie,2),ue=se[0],de=se[1],he=(0,a.useState)(!0),pe=(0,r.Z)(he,2),fe=(pe[0],pe[1]),ve=(0,a.useState)("None"),xe=(0,r.Z)(ve,2),me=(xe[0],xe[1],(0,a.useState)(null)),ge=(0,r.Z)(me,2),Ze=ge[0],je=ge[1],be=(0,a.useState)(null),ye=(0,r.Z)(be,2),we=ye[0],Ce=ye[1],Se=(0,a.useState)([]),ke=(0,r.Z)(Se,2),_e=ke[0],Ne=ke[1],Pe=(0,a.useState)(null),Me=(0,r.Z)(Pe,2),De=Me[0],ze=Me[1],Oe=(0,a.useState)(null),Ae=(0,r.Z)(Oe,2),Re=Ae[0],Te=Ae[1],Fe=(0,a.useState)(null),He=(0,r.Z)(Fe,2),Ee=He[0],Le=He[1],Ue=(0,a.useState)(null),Be=(0,r.Z)(Ue,2),qe=Be[0],Ye=Be[1],$e=(0,a.useState)(null),Xe=(0,r.Z)($e,2),Ge=Xe[0],Je=Xe[1],Ke=function(){Z(!1),w(!1),z(!1),W(!1),_(!1)},Qe=function(){var e=(0,h.Z)((0,d.Z)().mark((function e(t){var n;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.preventDefault(),n={first_name:q,last_name:ne,marketing_email:ue},/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(ue)){e.next=6;break}return Le("This is not a valid email address. Please try again."),e.abrupt("return");case 6:return e.prev=6,e.next=9,(0,J.$)("users/update/profile",n,"Failed to update profile.");case 9:Le(null),Ye(null),Te("Your details have been updated!"),e.next=19;break;case 14:e.prev=14,e.t0=e.catch(6),e.t0._sentryReported||(0,K.Tb)(e.t0,{feature:"settings",action:"update_profile",category:"api_error"}),Le(e.t0.message),Ye(e.t0.status);case 19:case"end":return e.stop()}}),e,null,[[6,14]])})));return function(t){return e.apply(this,arguments)}}(),et=function(){var e=(0,h.Z)((0,d.Z)().mark((function e(){var t,n,r,a,i;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,J.O.rpc("get_current_user_with_identities");case 2:if(t=e.sent,n=t.data,!(r=t.error)){e.next=8;break}return(0,K.Tb)(r,{feature:"settings",action:"list_credentials",category:"api_error"}),e.abrupt("return");case 8:if(Array.isArray(n)&&0!==n.length){e.next=10;break}return e.abrupt("return");case 10:a=n[0],i=[],a.phone&&a.phone_verified&&(fe(a.phone_verified),i.push({type:"phone",value:a.phone,verified:a.phone_verified}
1)),Array.isArray(a.identities)&&a.identities.forEach((function(e){var t,n;"phone"!==e.provider&&"email"!==e.provider&&i.push({type:e.provider,value:null!==(t=null===(n=e.identity_data)||void 0===n?void 0:n.email)&&void 0!==t?t:null,verified:!0})})),je(i);case 15:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),tt=function(){var e=(0,h.Z)((0,d.Z)().mark((function e(t){var n,r,a,i,s,o;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,J.O.auth.getUserIdentities();case 3:if(n=e.sent,r=n.data,!(a=n.error)){e.next=8;break}throw a;case 8:return i=r.identities.find((function(e){return e.provider===t})),e.next=11,J.O.auth.unlinkIdentity(i);case 11:if(s=e.sent,!(o=s.error)){e.next=15;break}throw o;case 15:et(),e.next=21;break;case 18:e.prev=18,e.t0=e.catch(0),(0,K.Tb)(e.t0,{feature:"settings",action:"unlink_provider",category:"auth_error",extra:{provider:t}});case 21:case"end":return e.stop()}}),e,null,[[0,18]])})));return function(t){return e.apply(this,arguments)}}(),nt=function(){var e=(0,h.Z)((0,d.Z)().mark((function e(){var t,r,a;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,J.O.from("telecom_verified_caller_ids").select("*").eq("user_id",n.id).is("deleted_at",null);case 3:if(t=e.sent,r=t.data,!(a=t.error)){e.next=8;break}throw a;case 8:Ne(r||[]),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(0),(0,K.Tb)(e.t0,{feature:"settings",action:"list_verified_caller_ids",category:"api_error"});case 14:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(){return e.apply(this,arguments)}}(),rt=function(){var e=(0,h.Z)((0,d.Z)().mark((function e(t){var n;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(window.confirm("Are you sure you would like to delete this Verified Caller ID?")){e.next=2;break}return e.abrupt("return",!1);case 2:return n=_e,Ne((function(e){return e.filter((function(e){return e.uid!==t}))})),e.prev=4,e.next=7,(0,J.$)("telecom/delete-caller-id",{uid:t},"Failed to delete caller ID.");case 7:alert("This number has been successfully deleted."),ze(!0),e.next=16;break;case 11:return e.prev=11,e.t0=e.catch(4),e.t0._sentryReported||(0,K.Tb)(e.t0,{feature:"settings",action:"delete_caller_id",category:"api_error",extra:{uid:t}}),Ne(n),e.abrupt("return",alert(e.t0.message));case 16:case"end":return e.stop()}}),e,null,[[4,11]])})));return function(t){return e.apply(this,arguments)}}();return(0,a.useEffect)((function(){et(),nt()}),[n,De]),(0,a.useEffect)((function(){var e=window.location.search,t=window.location.hash,n=new URLSearchParams(e),r=n.get("error_code"),a=n.get("error_description");if(!r&&t){var i=new URLSearchParams(t.slice(1));r=i.get("error_code"),a=i.get("error_description")}if(r)switch(r){case"identity_already_exists":Je("This login method is already linked to another account.");break;case"server_error":Je("Something went wrong. Please try again.");break;default:Je(a||"An unknown error occurred.")}}),[]),(0,P.jsxs)(s.ZP,{id:"account",container:!0,direction:"row",className:t?"active-tab":"not-active-tab",children:[(0,P.jsxs)(s.ZP,{item:!0,sm:12,md:6,style:{position:"relative"},children:[!i&&(0,P.jsx)(P.Fragment,{children:(0,P.jsxs)(c.Z,{className:"box-padding",children:[(0,P.jsxs)("form",{id:"update_account",onSubmit:Qe,children:[(0,P.jsx)("h2",{children:"My Details"}),(0,P.jsx)(p.Z,{placeholder:"First Name",className:"settings-name",name:"first_name",onChange:function(e){return Y(e.target.value)},value:null!==q&&void 0!==q?q:""}),(0,P.jsx)(p.Z,{placeholder:"Last Name",className:"settings-name",name:"last_name",onChange:function(e){return ae(e.target.value)},value:null!==ne&&void 0!==ne?ne:""}),(0,P.jsx)(p.Z,{placeholder:"Email Address",id:"settings-email",type:"email",name:"email_address",fullWidth:!0,onChange:function(e){return de(e.target.value)},value:null!==ue&&void 0!==ue?ue:"",style:{marginBottom:"10px"}}),Ee&&(0,P.jsx)($.Z,{message:Ee,code:qe}),Re&&(0,P.jsx)(X.Z,{message:Re}),(0,P.jsx)(f.Z,{variant:"contained",size:"large",type:"submit",className:"login-submit",fullWidth:!0,children:"Save Changes"})]}),(0,P.jsx)(f.Z,{onClick:function(){z(!0)},className:"deactivate-account-button",variant:"outlined",color:"error",size:"large",children:"Deactivate Account"}),(0,P.jsx)(Ie,{open:D,closeDialog:Ke,credential:we})]})}),i&&(0,P.jsxs)(c.Z,{className:"box-padding",children:[(0,P.jsx)("h2",{children:"My Details"}
1),(0,P.jsxs)("p",{children:["Name: ",[q,ne].filter(Boolean).join(" ")||"Not Provided"]}),(0,P.jsxs)("p",{children:["Email: ",n.email||"Not Provided"]})]})]}),(0,P.jsx)(s.ZP,{item:!0,xs:12,sm:12,md:6,id:"login-methods-caller-ids",sx:{borderLeft:1,borderColor:"divider"},children:(0,P.jsxs)(c.Z,{style:{padding:"0"},children:[(0,P.jsxs)(c.Z,{className:"box-padding",sx:{borderBottom:1,borderColor:"divider"},children:[(0,P.jsx)("h2",{children:"Login Methods"}),(0,P.jsx)(v.Z,{children:(0,P.jsx)(x.Z,{children:Ze&&Ze.map((function(e,t){var n={phone:T.Z,google:I.Z,apple:V.Z,azure:H.Z,email:F.Z}[e.type];return"phone"===e.type?(0,P.jsxs)(m.Z,{className:"primary-number-row",children:[(0,P.jsx)(g.Z,{className:"caller-id-cell",children:(0,P.jsxs)("p",{children:[(0,P.jsx)(n,{}),(0,le.N)(e.value),(0,P.jsx)(R.Z,{id:"edit-number-icon",onClick:function(){return w(!0)}})]})}),(0,P.jsx)(g.Z,{align:"right",colSpan:2,children:(0,P.jsx)(f.Z,{variant:"text",onClick:function(){return t=e,Z(!0),void Ce(t);var t},children:"Change Password"})})]},t):(0,P.jsxs)(m.Z,{className:"primary-number-row",children:[(0,P.jsx)(g.Z,{className:"caller-id-cell",children:(0,P.jsxs)("p",{children:[(0,P.jsx)(n,{}),e.value]})}),(0,P.jsx)(g.Z,{align:"right",colSpan:2,children:Ze.length>1&&(0,P.jsx)(f.Z,{variant:"text",onClick:function(){return tt(e.type)},children:"Unlink"})})]},t)}))})}),Ge&&(0,P.jsx)($.Z,{message:Ge,code:qe}),(0,P.jsx)(f.Z,{variant:"outlined",sx:{width:"200px",mt:"15px"},onClick:function(){_(!0)},children:"Add Login Method"}),(0,P.jsx)(Q,{open:u,closeDialog:Ke,credential:we}),(0,P.jsx)(We,{open:k,closeDialog:Ke}),(0,P.jsx)(oe,{open:y,closeDialog:Ke})]}),(0,P.jsxs)(c.Z,{className:"box-padding",children:[(0,P.jsxs)(v.Z,{children:[(0,P.jsx)(A,{children:(0,P.jsxs)(m.Z,{children:[(0,P.jsx)(g.Z,{sx:{padding:"0"},children:(0,P.jsx)("h2",{style:{marginBottom:"0"},children:"Verified Caller IDs"})}),(0,P.jsx)(g.Z,{align:"right",className:"add-more-cell",children:(0,P.jsx)(f.Z,{onClick:function(){return W(!0)},variant:"outlined",children:"Add"})})]})}),(0,P.jsxs)(x.Z,{children:[_e&&_e.length>0&&_e.map((function(e,t){return(0,P.jsxs)(m.Z,{children:[(0,P.jsx)(g.Z,{className:"caller-id-cell",children:(0,P.jsxs)("p",{children:[(0,P.jsx)(T.Z,{}),(0,le.N)(e.phone_number)]})}),(0,P.jsx)(g.Z,{align:"right",children:(0,P.jsx)(f.Z,{onClick:function(){return rt(e.uid)},variant:"text",children:"Remove"})})]},t)})),!_e.length>0&&(0,P.jsx)(m.Z,{children:(0,P.jsx)(g.Z,{className:"caller-id-cell",style:{textAlign:"center"},colSpan:2,children:(0,P.jsx)("p",{children:"No Verified Caller IDs"})})}),!_e&&(0,P.jsx)(m.Z,{children:(0,P.jsx)(g.Z,{className:"caller-id-cell",style:{textAlign:"center"},colSpan:2,children:(0,P.jsx)(ce.aN,{})})})]})]}),(0,P.jsx)(Ve,{open:L,closeDialog:Ke,userData:n,ListVerifiedCallerIds:nt})]})]})})]})},Be=n(911),qe=n(7865),Ye=n(3153),$e=n(7246),Xe=n(4897),Ge=function(e){var t=e.active,n=(0,G.aC)().userData,i=(0,a.useState)(null),o=(0,r.Z)(i,2),l=o[0],u=o[1],p=(0,a.useState)(null),Z=(0,r.Z)(p,2),j=Z[0],b=Z[1],y=(0,a.useState)(null),w=(0,r.Z)(y,2),C=w[0],S=w[1],k=(0,a.useState)(null),_=(0,r.Z)(k,2),N=_[0],M=_[1],D=(0,a.useState)({column:"date",ascending:!1}),z=(0,r.Z)(D,2),O=z[0],R=z[1],T=Boolean(N),F=function(){var e=(0,h.Z)((0,d.Z)().mark((function e(t,r,a,i){var s,o,c,l,h,p,f;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,o=(s=(t-1)*r)+r-1,c=J.O.from("billing_all_transactions").select("*",{count:"exact"}).eq("user_id",n.id).range(s,o).order(i.column,{ascending:i.ascending}),a&&(c=c.eq("payment_method",a)),e.next=7,c;case 7:if(l=e.sent,h=l.data,p=l.error,f=l.count,!p){e.next=13;break}throw p;case 13:u(h||[]),S(Math.ceil((f||0)/r)),e.next=20;break;case 17:e.prev=17,e.t0=e.catch(0),(0,K.Tb)(e.t0,{feature:"settings",action:"list_transactions",category:"api_error",extra:{page:t,sort:O}});case 20:case"end":return e.stop()}}),e,null,[[0,17]])})));return function(t,n,r,a){return e.apply(this,arguments)}}();(0,a.useEffect)((function(){b(1),F(1,10,null,O)}),[n,O]);var I=O.column,V=[{name:"Date",sort:"date"},{name:"Method",sort:"payment_method"}
1,{name:"Amount",sort:"price"},{name:"Product",sort:"product_name"}];return(0,P.jsx)(s.ZP,{container:!0,direction:"row",className:t?"active-tab":"not-active-tab",children:(0,P.jsx)(s.ZP,{item:!0,xs:12,children:(0,P.jsx)(c.Z,{children:(0,P.jsxs)("form",{id:"transactions",children:[(0,P.jsxs)(c.Z,{className:"box-padding",sx:{borderBottom:1,borderColor:"divider",display:"flex"},children:[(0,P.jsx)("h2",{children:"Payment Transactions"}),(0,P.jsxs)("div",{id:"transaction-sort",children:[(0,P.jsx)(f.Z,{onClick:function(e){M(e.currentTarget)},type:"button",variant:"text",endIcon:(0,P.jsx)(Xe.Z,{}),children:"Sort"}),(0,P.jsxs)(Be.Z,{id:"sort-menu",anchorEl:N,open:T,onClose:function(){M(null)},MenuListProps:{"aria-labelledby":"sort-button"},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:[(0,P.jsx)("p",{style:{pointerEvents:"none",fontSize:"12px",padding:"0 0 8px 16px",borderBottom:"1px solid rgba(224, 224, 224, 1)"},children:"Sort By"}),V&&V.map((function(e,t){var n="";return e.sort===I&&(n="activeSort"),(0,P.jsx)(qe.Z,{className:n,onClick:function(){return t=e.sort,void R((function(e){return{column:t,ascending:e.column===t&&!e.ascending}}));var t},children:e.name},t)}))]})]})]}),(0,P.jsxs)(c.Z,{className:"box-padding",children:[(0,P.jsxs)(v.Z,{id:"payment-table",children:[(0,P.jsx)(A,{children:(0,P.jsxs)(m.Z,{children:[(0,P.jsx)(g.Z,{sx:{padding:"0"},children:"Date"}),(0,P.jsx)(g.Z,{sx:{padding:"0"},children:"Method"}),(0,P.jsx)(g.Z,{sx:{padding:"0"},children:"Amount"}),(0,P.jsx)(g.Z,{sx:{padding:"0"},children:"Product"})]})}),(0,P.jsx)(x.Z,{children:l&&l.length?l.map((function(e,t){return(0,P.jsxs)(m.Z,{children:[(0,P.jsxs)(g.Z,{sx:{w:"30%"},children:[(0,P.jsx)("p",{className:"desktop",children:(0,Ye.Ng)(new Date(e.date))}),(0,P.jsx)("p",{className:"mobile",children:(0,Ye.Mq)(new Date(e.date))})]}),(0,P.jsx)(g.Z,{children:(0,P.jsx)("p",{children:e.payment_method})}),(0,P.jsx)(g.Z,{children:(0,P.jsxs)("p",{children:["$",e.price]})}),(0,P.jsx)(g.Z,{children:(0,P.jsx)("p",{children:e.product_name})})]},t)})):l&&!l.length&&(0,P.jsx)(m.Z,{children:(0,P.jsx)(g.Z,{colSpan:4,style:{borderBottom:"none",textAlign:"center"},children:(0,P.jsx)("p",{children:"You don't have any transactions on file yet!"})})})})]}),l&&l.length?(0,P.jsx)($e.Z,{className:"pagination",count:C,onChange:function(e,t){b(t),F(t,10,null,O)},page:j}):(0,P.jsx)(P.Fragment,{})]})]})})})})},Je=n(7047),Ke=n(9955),Qe=n(9658),et=n(8096),tt=n(4925),nt=n(9321),rt=n(4349),at=n(9824),it=function(e){var t=e.active,n=(0,rt.cE)(),i=n.autoReplenisher,o=n.enableAutoReplenish,l=n.disableAutoReplenish,u=n.autoReplenishPackages,p=(0,at.l8)().setOpenPurchase,v=(0,a.useState)(null),x=(0,r.Z)(v,2),m=x[0],g=x[1],Z=(0,a.useState)(!1),j=(0,r.Z)(Z,2),b=j[0],y=j[1],w=(0,a.useState)(!1),C=(0,r.Z)(w,2),S=C[0],k=C[1],_=(0,a.useState)(!1),N=(0,r.Z)(_,2),M=N[0],D=N[1],z=(0,a.useState)(null),O=(0,r.Z)(z,2),A=O[0],R=O[1],T=(0,a.useState)(null),F=(0,r.Z)(T,2),I=F[0],V=F[1],H=(0,a.useState)(null),E=(0,r.Z)(H,2),L=E[0],W=E[1],U=(0,a.useState)(!1),B=(0,r.Z)(U,2),q=B[0],Y=B[1],X=null!=(null===i||void 0===i?void 0:i.disabled_at);(0,a.useEffect)((function(){var e=function(){var e=(0,h.Z)((0,d.Z)().mark((function e(){var t;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,Y(!0),e.next=4,(0,J.$)("billing/stripe/create-billing-portal-session",{});case 4:t=e.sent,W(t.url),Y(!1),e.next=13;break;case 9:e.prev=9,e.t0=e.catch(0),e.t0._sentryReported||(0,K.Tb)(e.t0,{feature:"settings",action:"create_billing_portal_session",category:"payment_error"}),Y(!1);case 13:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(){return e.apply(this,arguments)}}();e()}),[]),(0,a.useEffect)((function(){if(i&&null!==u&&void 0!==u&&u.length){var e=u.find((function(e){return e.credits===i.reload_credits}));e&&g(e.uid),D(!X)}else(null===u||void 0===u?void 0:u.length)>0&&(g(u[0].uid),D(!1))}),[i,u,X]);var G=function(){var e=(0,h.Z)((0,d.Z)().mark((function e(t){return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.preventDefault(),b){e.next=3;break}return e.abrupt("return");case 3:if(R(null),V(null),e.prev=5,!M){e.next=11;break}return e.next=9,o(m);case 9:e.next=13;break;case 11:return e.next=13,l();case 13:k(!0),y(!1),setTimeout((function(){return k(!1)}),5e3),e.next=23;break;case 18:e.prev=18,e.t0=e.catch(5),e.t0._sentryReported||(0,K.Tb)(e.t0,{feature:"settings",action:"update_auto_replenish",category:"payment_error",extra:{enabled:M,package_uid:m}}),R(e.t0.message||"Failed to update auto replenish settings."),V(e.t0.status||500);case 23:case"end":return e.stop()}}),e,null,[[5,18]])})));return function(t){return e.apply(this,arguments)}}();return(0,P.jsx)(P.Fragment,{children:(0,P.jsxs)(s.ZP,{container:!0,direction:"row",className:t?"active-tab":"not-active-tab",children:[(0,P.jsx)(s.ZP,{item:!0,xs:12,sm:12,md:6,children:(0,P.jsx)(c.Z,{className:"box-padding",children:(0,P.jsxs)("form",{id:"manage_payment_method",children:[(0,P.jsx)(s.ZP,{container:!0,direction:"row",sx:{marginBottom:"10px"},children:(0,P.jsx)(s.ZP,{item:!0,xs:12,sm:8,md:8,children:(0,P.jsx)("h2",{children:"Manage Payment Method"})})}),q&&(0,P.jsx)(Je.Z,{variant:"text",width:360,height:40,sx:{bgcolor:"#eee"}}),!q&&L&&L.length&&(0,P.jsxs)("p",{children:["You can manage your payment methods"," ",(0,P.jsx)("a",{href:L,target:"_blank",rel:"noreferrer",className:"text-button",children:"here"}),"."]}),!q&&(!L||!L.length)&&(0,P.jsxs)("p",{children:["In order to manage payment methods"," ",(0,P.jsx)("span",{onClick:function(){return p(!0)},style:{color:"#125CC6",cursor:"pointer"},children:"make a purchase"}),"."]})]})})}),(0,P.jsx)(s.ZP,{item:!0,xs:12,sm:12,md:6,sx:{borderLeft:1,borderColor:"divider"},children:(0,P.jsx)(c.Z,{children:(0,P.jsx)(c.Z,{id:"auto-replenish",className:"box-padding",sx:{borderBottom:1,borderColor:"divider"},children:(0,P.jsxs)("form",{onSubmit:G,children:[(0,P.jsxs)("div",{style:{display:"flex"},children:[(0,P.jsx)("h2",{children:"Auto Replenish"}),(0,P.jsx)(Ke.Z,{className:"auto-replenish-switch",checked:M,onChange:function(){!m&&null!==u&&void 0!==u&&u.length&&g(u[0].uid),D((function(e){return!e})),y(!0),k(!1)},inputProps:{"aria-label":"controlled"},color:"success"})]}),(0,P.jsx)("p",{children:"Automatically add credits when I have fewer than 15 credits left."}),X&&(0,P.jsx)(Qe.Z,{severity:"warning",sx:{mb:2},children:"Auto-replenish was disabled due to a payment failure. Update your payment method and re-enable below."}),(0,P.jsxs)("div",{children:[(0,P.jsx)("p",{style:{fontSize:"14px",fontWeight:"700",lineHeight:"12px"},children:"Automatically add:"}),(0,P.jsxs)(et.Z,{fullWidth:!0,children:[(0,P.jsx)(tt.Z,{id:"auto-replenish-label",children:"Package"}),(0,P.jsx)(nt.Z,{labelId:"auto-replenish-label",label:"Package",value:m||"",onChange:function(e){g(e.target.value),y(!0),k(!1)},disabled:!M||!(null!==u&&void 0!==u&&u.length),className:"auto-replenish-select",children:u&&u.map((function(e,t){return(0,P.jsxs)(qe.Z,{value:e.uid,children:[e.credits," Credits for $",e.price_usd]},t)}))})]}),(0,P.jsxs)("div",{className:"update-auto-replenish-controls",children:[(0,P.jsx)(f.Z,{type:"submit",variant:"outlined",disabled:!b,className:"update-auto-replenish-button",children:"Update Settings"}),b&&(0,P.jsx)("span",{className:"update-auto-replenish-text",children:'Click "Update Settings" to save changes.'}),S&&(0,P.jsx)("span",{className:"update-auto-replenish-saved",children:"Saved!"})]}),A&&(0,P.jsx)("div",{style:{marginTop:"10px"},children:(0,P.jsx)($.Z,{message:A,code:I})})]})]})})})})]})})},st=(n(8045),n(7122)),ot=n(9952),ct=n(1992),lt=n(4297),ut=function(){var e=(0,G.aC)().userData,t=(0,i.TH)(),n=(0,i.s0)(),d=(0,re.U)(e).isSubAccount,h=(0,a.useState)("account"),p=(0,r.Z)(h,2),f=p[0],v=p[1],x=(0,a.useState)(null),m=(0,r.Z)(x,2),g=m[0],Z=m[1],j=!1;return e&&0!==Object.keys(e).length&&(j=!0),(0,a.useEffect)((function(){if(t&&"/settings"!==t.pathname){var e=t.pathname.slice(t.pathname.lastIndexOf("/"),t.pathname.length).replace("/","");Z(e)}}),[t]),(0,a.useEffect)((function(){g&&v(g)}),[g]),(0,P.jsx)("div",{id:"settings",children:(0,P.jsx)(s.ZP,{container:!0,spacing:4,direction:"row",children:(0,P.jsx)(s.ZP,{item:!0,xs:12,className:"dashboard",children:(0,P.jsxs)(o.Z,{elevation:12,children:[(0,P.jsxs)("h1",{children:[(0,P.jsx)(st.Z,{}),"Settings"]}),(0,P.jsx)(c.Z,{sx:{borderBottom:1,borderColor:"divider"},children:!d&&(0,P.jsxs)(l.Z,{value:f,onChange:function(e,t){n("../settings/"+t,{replace:!0})},"aria-label":"Settings Tabs",children:[(0,P.jsx)(u.Z,{value:"account",icon:(0,P.jsx)(ot.Z,{}),iconPosition:"start",label:"Account"}),(0,P.jsx)(u.Z,{value:"transactions",icon:(0,P.jsx)(ct.Z,{}),iconPosition:"start",label:"Transactions"}),(0,P.jsx)(u.Z,{value:"payment",icon:(0,P.jsx)(lt.Z,{}),iconPosition:"start",label:"Payment"})]})}),j&&(0,P.jsxs)("div",{children:[(0,P.jsx)(Ue,{active:"account"===f}),(0,P.jsx)(Ge,{active:"transactions"===f}),(0,P.jsx)(it,{active:"payment"===f})]}),!j&&(0,P.jsx)(ce.aN,{})]})})})})}},3153:function(e,t,n){n.d(t,{CN:function(){return r},Mq:function(){return a},Ng:function(){return i},Tx:function(){return o},Yp:function(){return s}});var r=function(e){var t=e.getHours(),n=e.getMinutes(),r=t>
1=12?"pm":"am",a=(t=(t%=12)||12)+":"+(n=n<10?"0"+n:n)+" "+r;return e.getMonth()+1+"/"+e.getDate()+"/"+e.getFullYear()+" at "+a},a=function(e){return e.getMonth()+1+"/"+e.getDate()+"/"+e.getFullYear()},i=function(e){return e.toLocaleString("default",{month:"long"})+" "+e.getDate()+", "+e.getFullYear()},s=function(e){var t=e.getHours(),n=e.getMinutes(),r=t>=12?"pm":"am",a=(t=(t%=12)||12)+":"+(n=n<10?"0"+n:n)+" "+r;return e.toLocaleString("default",{month:"long"})+" "+e.getDate()+", "+e.getFullYear()+" at "+a},o=function(e){var t=e.getHours(),n=e.getMinutes(),r=t>=12?"pm":"am";return(t=(t%=12)||12)+":"+(n=n<10?"0"+n:n)+" "+r}},7793:function(e,t,n){n.d(t,{N:function(){return a}});var r=n(7471),a=function(e){if(!e)return"";var t=e.startsWith("+")?e:"+".concat(e),n=(0,r.S)(t);return n&&n.isValid()?["US","CA","PR"].includes(n.country)?n.formatNational():n.formatInternational():""}},9952:function(e,t,n){var r=n(4836);t.Z=void 0;var a=r(n(5649)),i=n(184),s=(0,a.default)((0,i.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 4c1.93 0 3.5 1.57 3.5 3.5S13.93 13 12 13s-3.5-1.57-3.5-3.5S10.07 6 12 6zm0 14c-2.03 0-4.43-.82-6.14-2.88C7.55 15.8 9.68 15 12 15s4.45.8 6.14 2.12C16.43 19.18 14.03 20 12 20z"}),"AccountCircle");t.Z=s},3091:function(e,t,n){var r=n(4836);t.Z=void 0;!function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var o=a?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}r.default=e,n&&n.set(e,r)}(n(2791));var a=r(n(5649)),i=n(184);function s(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}var o=(0,a.default)((0,i.jsx)("path",{d:"M18.71 19.5c-.83 1.24-1.71 2.45-3.05 2.47-1.34.03-1.77-.79-3.29-.79-1.53 0-2 .77-3.27.82-1.31.05-2.3-1.32-3.14-2.53C4.25 17 2.94 12.45 4.7 9.39c.87-1.52 2.43-2.48 4.12-2.51 1.28-.02 2.5.87 3.29.87.78 0 2.26-1.07 3.81-.91.65.03 2.47.26 3.64 1.98-.09.06-2.17 1.28-2.15 3.81.03 3.02 2.65 4.03 2.68 4.04-.03.07-.42 1.44-1.38 2.83M13 3.5c.73-.83 1.94-1.46 2.94-1.5.13 1.17-.34 2.35-1.04 3.19-.69.85-1.83 1.51-2.95 1.42-.15-1.15.41-2.35 1.05-3.11z"}),"Apple");t.Z=o},4297:function(e,t,n){var r=n(4836);t.Z=void 0;var a=r(n(5649)),i=n(184),s=(0,a.default)((0,i.jsx)("path",{d:"M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4v-6h16v6zm0-10H4V6h16v2z"}),"CreditCard");t.Z=s},1286:function(e,t,n){var r=n(4836);t.Z=void 0;var a=r(n(5649)),i=n(184),s=(0,a.default)((0,i.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"Edit");t.Z=s},4281:function(e,t,n){var r=n(4836);t.Z=void 0;var a=r(n(5649)),i=n(184),s=(0,a.default)((0,i.jsx)("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4-8 5-8-5V6l8 5 8-5v2z"}),"Email");t.Z=s},8365:function(e,t,n){var r=n(4836);t.Z=void 0;!function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var o=a?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}r.default=e,n&&n.set(e,r)}(n(2791));var a=r(n(5649)),i=n(184);function s(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}var o=(0,a.default)((0,i.jsx)("path",{d:"M12.545,10.239v3.821h5.445c-0.712,2.315-2.647,3.972-5.445,3.972c-3.332,0-6.033-2.701-6.033-6.032s2.701-6.032,6.033-6.032c1.498,0,2.866,0.549,3.921,1.453l2.814-2.814C17.503,2.988,15.139,2,12.545,2C7.021,2,2.543,6.477,2.543,12s4.478,10,10.002,10c8.396,0,10.249-7.85,9.426-11.748L12.545,10.239z"}),"Google");t.Z=o},1992:function(e,t,n){var r=n(4836);t.Z=void 0;var a=r(n(5649)),i=n(184),s=(0,a.default)((0,i.jsx)("path",{d:"M19 5v14H5V5h14m1.1-2H3.9c-.5 0-.9.4-.9.9v16.2c0 .4.4.9.9.9h16.2c.4 0 .9-.5.9-.9V3.9c0-.5-.5-.9-.9-.9zM11 7h6v2h-6V7zm0 4h6v2h-6v-2zm0 4h6v2h-6zM7 7h2v2H7zm0 4h2v2H7zm0 4h2v2H7z"}),"ListAlt");t.Z=s},4328:function(e,t,n){var r=n(4836);t.Z=void 0;
1!function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var o=a?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}r.default=e,n&&n.set(e,r)}(n(2791));var a=r(n(5649)),i=n(184);function s(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}var o=(0,a.default)((0,i.jsx)("path",{d:"M2 3h9v9H2V3m9 19H2v-9h9v9M21 3v9h-9V3h9m0 19h-9v-9h9v9Z"}),"Microsoft");t.Z=o},5126:function(e,t,n){var r=n(4836);t.Z=void 0;var a=r(n(5649)),i=n(184),s=(0,a.default)((0,i.jsx)("path",{d:"M16 1H8C6.34 1 5 2.34 5 4v16c0 1.66 1.34 3 3 3h8c1.66 0 3-1.34 3-3V4c0-1.66-1.34-3-3-3zm-2 20h-4v-1h4v1zm3.25-3H6.75V4h10.5v14z"}),"PhoneAndroid");t.Z=s},4897:function(e,t,n){var r=n(4836);t.Z=void 0;var a=r(n(5649)),i=n(184),s=(0,a.default)((0,i.jsx)("path",{d:"M3 18h6v-2H3v2zM3 6v2h18V6H3zm0 7h12v-2H3v2z"}),"Sort");t.Z=s},7047:function(e,t,n){n.d(t,{Z:function(){return D}});var r=n(168),a=n(3366),i=n(7462),s=n(2791),o=n(3733),c=n(2554),l=n(4419);function u(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function d(e){return parseFloat(e)}var h=n(2065),p=n(6934),f=n(1402),v=n(5878),x=n(1217);function m(e){return(0,x.Z)("MuiSkeleton",e)}(0,v.Z)("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);var g,Z,j,b,y,w,C,S,k=n(184),_=["animation","className","component","height","style","variant","width"],N=(0,c.F4)(y||(y=g||(g=(0,r.Z)(["\n  0% {\n    opacity: 1;\n  }\n\n  50% {\n    opacity: 0.4;\n  }\n\n  100% {\n    opacity: 1;\n  }\n"])))),P=(0,c.F4)(w||(w=Z||(Z=(0,r.Z)(["\n  0% {\n    transform: translateX(-100%);\n  }\n\n  50% {\n    /* +0.5s of delay between each loop */\n    transform: translateX(100%);\n  }\n\n  100% {\n    transform: translateX(100%);\n  }\n"])))),M=(0,p.ZP)("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t[n.variant],!1!==n.animation&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})((function(e){var t=e.theme,n=e.ownerState,r=u(t.shape.borderRadius)||"px",a=d(t.shape.borderRadius);return(0,i.Z)({display:"block",backgroundColor:t.vars?t.vars.palette.Skeleton.bg:(0,h.Fq)(t.palette.text.primary,"light"===t.palette.mode?.11:.13),height:"1.2em"},"text"===n.variant&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:"".concat(a).concat(r,"/").concat(Math.round(a/.6*10)/10).concat(r),"&:empty:before":{content:'"\\00a0"'}},"circular"===n.variant&&{borderRadius:"50%"},"rounded"===n.variant&&{borderRadius:(t.vars||t).shape.borderRadius},n.hasChildren&&{"& > *":{visibility:"hidden"}},n.hasChildren&&!n.width&&{maxWidth:"fit-content"},n.hasChildren&&!n.height&&{height:"auto"})}),(function(e){return"pulse"===e.ownerState.animation&&(0,c.iv)(C||(C=j||(j=(0,r.Z)(["\n      animation: "," 2s ease-in-out 0.5s infinite;\n    "]))),N)}),(function(e){var t=e.ownerState,n=e.theme;return"wave"===t.animation&&(0,c.iv)(S||(S=b||(b=(0,r.Z)(["\n      position: relative;\n      overflow: hidden;\n\n      /* Fix bug in Safari https://bugs.webkit.org/show_bug.cgi?id=68196 */\n      -webkit-mask-image: -webkit-radial-gradient(white, black);\n\n      &::after {\n        animation: "," 2s linear 0.5s infinite;\n        background: linear-gradient(\n          90deg,\n          transparent,\n          ",",\n          transparent\n        );\n        content: '';\n        position: absolute;\n        transform: translateX(-100%); /* Avoid flash during server-side hydration */\n        bottom: 0;\n        left: 0;\n        right: 0;\n        top: 0;\n      }\n    "]))),P,(n.vars||n).palette.action.hover)})),D=s.forwardRef((function(e,t){var n=(0,f.Z)({props:e,name:"MuiSkeleton"}),r=n.animation,s=void 0===r?"pulse":r,c=n.className,u=n.component,d=void 0===u?"span":u,h=n.height,p=n.style,v=n.variant,x=void 0===v?"text":v,g=n.width,Z=(0,a.Z)(n,_),j=(0,i.Z)({},n,{animation:s,component:d,variant:x,hasChildren:Boolean(Z.children)}),b=function(e){var t=e.classes,n=e.variant,r=e.animation,a=e.hasChildren,i=e.width,s=e.he
1ight,o={root:["root",n,r,a&&"withChildren",a&&!i&&"fitContent",a&&!s&&"heightAuto"]};return(0,l.Z)(o,m,t)}(j);return(0,k.jsx)(M,(0,i.Z)({as:d,ref:t,className:(0,o.Z)(b.root,c),ownerState:j},Z,{style:(0,i.Z)({width:g,height:h},p)}))}))},8045:function(){}}]);
2//# sourceMappingURL=786.0fe6592d.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.