PageSourceSearch

https://blessa.io/_next/static/chunks/4225.f73ab7385d86ca90.js

js blessa.io collected 2026-09-29 00:15:33 UTC 2,782 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4225],{14225:function(e,t,n){n.r(t),n.d(t,{DeleteUserButton:function(){return m}});var l=n(85893),s=n(45527),r=n(36522),i=n(13498),a=n(89993),o=n(55512),c=n(83589),u=n(64859),d=n(54346),h=n(14253),f=n(38942),x=n(44799),j=n(67294);let m=e=>{let{userId:t}=e,[{fetching:n},m]=(0,x.I1z)(),p=(0,r.p)(),{isOpen:v,onOpen:_,onClose:C}=(0,i.q)(),z=(0,j.useRef)(null),y=async()=>{var e;let n=await m({input:{id:t}});(null===(e=n.data)||void 0===e?void 0:e.deleteUser.isSuccesful)?(p({title:"Success",description:"User account deleted successfully",status:"success",duration:3e3,isClosable:!0}),C()):p({title:"Error",description:"Failed to delete user account",status:"error",duration:3e3,isClosable:!0})};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(a.h,{variant:"outline",colorScheme:"red","aria-label":"Delete user",icon:(0,l.jsx)(s.p,{}),onClick:_,size:"sm"}),(0,l.jsx)(o.a,{isOpen:v,leastDestructiveRef:z,onClose:C,children:(0,l.jsx)(c.Z,{children:(0,l.jsxs)(o._,{children:[(0,l.jsx)(u.x,{fontSize:"lg",fontWeight:"bold",children:"Delete User Account"}),(0,l.jsx)(d.f,{children:"Are you sure you want to delete this user account? This action cannot be undone. An email will be sent to the user notifying them of the deletion."}),(0,l.jsxs)(h.m,{children:[(0,l.jsx)(f.z,{ref:z,onClick:C,children:"Cancel"}),(0,l.jsx)(f.z,{colorScheme:"red",onClick:y,ml:3,isLoading:n,children:"Delete"})]})]})})})]})}},45527:function(e,t,n){n.d(t,{p:function(){return r}});var l=n(24027),s=n(85893),r=(0,l.I)({displayName:"DeleteIcon",path:(0,s.jsx)("g",{fill:"currentColor",children:(0,s.jsx)("path",{d:"M19.452 7.5H4.547a.5.5 0 00-.5.545l1.287 14.136A2 2 0 007.326 24h9.347a2 2 0 001.992-1.819L19.95 8.045a.5.5 0 00-.129-.382.5.5 0 00-.369-.163zm-9.2 13a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zm5 0a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zM22 4h-4.75a.25.25 0 01-.25-.25V2.5A2.5 2.5 0 0014.5 0h-5A2.5 2.5 0 007 2.5v1.25a.25.25 0 01-.25.25H2a1 1 0 000 2h20a1 1 0 000-2zM9 3.75V2.5a.5.5 0 01.5-.5h5a.5.5 0 01.5.5v1.25a.25.25 0 01-.25.25h-5.5A.25.25 0 019 3.75z"})})})},55512:function(e,t,n){n.d(t,{_:function(){return o},a:function(){return a}});var l=n(61213),s=n(30836),r=n(16554),i=n(85893);function a(e){let{leastDestructiveRef:t,...n}=e;return(0,i.jsx)(s.u_,{...n,initialFocusRef:t})}var o=(0,r.G)((e,t)=>(0,i.jsx)(l.h,{ref:t,role:"alertdialog",...e}))},14253:function(e,t,n){n.d(t,{m:function(){return o}});var l=n(30836),s=n(25432),r=n(16554),i=n(48240),a=n(85893),o=(0,r.G)((e,t)=>{let{className:n,...r}=e,o=(0,s.cx)("chakra-modal__footer",n),c=(0,l.I_)(),u={display:"flex",alignItems:"center",justifyContent:"flex-end",...c.footer};return(0,a.jsx)(i.m.footer,{ref:t,...r,__css:u,className:o})});o.displayName="ModalFooter"}}]);

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.