PageSourceSearch

https://adria-art.pl/build/assets/DeleteUserForm-DMW-kwW2.js

js adria-art.pl collected 2026-09-25 19:06:15 UTC 2,106 bytes, 1 lines download raw bytes

1import{r as n,i as w,j as e}from"./react-vendor-CZJcMeOp.js";import{b4 as c,aj as g,aV as N,T as D,h as b,a as v}from"./common-components-BbWk_Ayz.js";import"./inertia-vendor-Bl1LuK12.js";import"./vendor-C07kESPO.js";import"./swiper-vendor-DGRWMYna.js";import"./utils-315QXOB-.js";function A({className:d=""}){const[i,r]=n.useState(!1),o=n.useRef(null),{data:u,setData:m,delete:p,processing:x,reset:a,errors:y,clearErrors:f}=w({password:""}),h=()=>{r(!0)},j=t=>{t.preventDefault(),p(route("profile.destroy"),{preserveScroll:!0,onSuccess:()=>s(),onError:()=>{var l;return(l=o.current)==null?void 0:l.focus()},onFinish:()=>a()})},s=()=>{r(!1),f(),a()};return e.jsxs("section",{className:`space-y-6 ${d}`,children:[e.jsxs("header",{children:[e.jsx("h2",{className:"text-lg font-medium text-gray-900",children:"Delete Account"}),e.jsx("p",{className:"mt-1 text-sm text-gray-600",children:"Once your account is deleted, all of its resources and data will be permanently deleted. Before deleting your account, please download any data or information that you wish to retain."})]}),e.jsx(c,{onClick:h,children:"Delete Account"}),e.jsx(g,{show:i,onClose:s,children:e.jsxs("form",{onSubmit:j,className:"p-6",children:[e.jsx("h2",{className:"text-lg font-medium text-gray-900",children:"Are you sure you want to delete your account?"}),e.jsx("p",{className:"mt-1 text-sm text-gray-600",children:"Once your account is deleted, all of its resources and data will be permanently deleted. Please enter your password to confirm you would like to permanently delete your account."}),e.jsxs("div",{className:"mt-6",children:[e.jsx(N,{htmlFor:"password",value:"Password",className:"sr-only"}),e.jsx(D,{id:"password",type:"password",name:"password",ref:o,value:u.password,onChange:t=>m("password",t.target.value),className:"mt-1 block w-3/4",isFocused:!0,placeholder:"Password"}),e.jsx(b,{message:y.password,className:"mt-2"})]}),e.jsxs("div",{className:"mt-6 flex justify-end",children:[e.jsx(v,{onClick:s,children:"Cancel"}),e.jsx(c,{className:"ms-3",disabled:x,children:"Delete Account"})]})]})})]})}export{A as default};

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.