1"use strict";(self.webpackChunkgorgia_website=self.webpackChunkgorgia_website||[]).push([[5031],{3260:(e,t,c)=>{c.d(t,{A:()=>o});const s="imageAuth_imageAuthDelete__9MXpD";var a=c(9634),l=c(579);const o=function(e){let{logo:t}=e;return(0,l.jsx)("div",{className:"".concat(s," col-sm-12 col-md-6 col-lg-5 "),children:(0,l.jsx)(a.LazyLoadImage,{src:t,alt:"Login Logo"})})}},5031:(e,t,c)=>{c.r(t),c.d(t,{default:()=>v});var s=c(3260);const a="auth_registerPage__JKedU",l="auth_rightAuth__S-w-x",o="auth_registerFormDiv__s5f68",n="auth_changePasswordDiv__AaB-M",r="auth_passwordInput__g+m1z",i="auth_loginBtnsDiv__8DAql",u="auth_deleteAccountBtn__nqxkK",d="auth_ConfirmDeleteAccountBtn__kEcEd",h="auth_CancelDeleteAccountBtn__Zd2Xi",_="auth_deleteAc__c+WEa";var g=c(5043),m=c(3216),x=c(7702),j=c(4117),f=c(9456),A=c(5240),p=c(579);const w=function(e){let{baseUrl:t}=e;const c=(0,f.wA)(),[s]=(0,j.Bd)(),[a,w]=(0,g.useState)(4),[v,b]=(0,g.useState)(!1),N=(0,m.Zp)(),k=localStorage.getItem("arab_user_token");return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("div",{className:"".concat(l," col-sm-12 col-md-6 col-lg-7"),children:(0,p.jsxs)("div",{className:"".concat(o),children:[(0,p.jsx)("form",{children:(0,p.jsx)("div",{className:"w-100 ".concat(n),children:(0,p.jsx)("div",{className:"w-100 ".concat(r),children:(0,p.jsx)("h3",{className:_,children:s("delete page")})})})}),(0,p.jsxs)("div",{className:i,children:[(0,p.jsx)("button",{className:"w-50 ".concat(u," ").concat(d),onClick:()=>{try{fetch("".concat(t,"/profile/delete-user"),{headers:{Authorization:"Bearer ".concat(k),Accept:"application/json"},method:"DELETE"}).then((()=>{w(4),b(!0)}))}catch(e){console.log(e)}finally{setTimeout((()=>{c((0,A.P)("Guest")),localStorage.clear(),N("/")}),3e3)}},children:s("Yes")}),(0,p.jsx)("button",{className:"w-50 ".concat(u," ").concat(h),onClick:()=>{N("/profile")},children:s("No")})]})]})}),v&&(0,p.jsx)(x.default,{type:"success",message:s("Your account has been deleted successfully."),showAlert:v,setShowAlert:b,count:a,setCount:w})]})};const v=function(e){let{baseUrl:t,logo:c}=e;return(0,p.jsx)(p.Fragment,{children:(0,p.jsxs)("div",{className:"d-flex ".concat(a),children:[(0,p.jsx)(s.A,{logo:c}),(0,p.jsx)(w,{baseUrl:t})]})})}}}]); 2//# sourceMappingURL=5031.77de7d9c.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.