PageSourceSearch

https://ez3d.ai/build/assets/password-Ce4IV2My.js

js ez3d.ai collected 2026-10-05 15:34:37 UTC 6,740 bytes, 13 lines download raw bytes

1import{u as S,r,e as k,j as e,H as E}from"./app-DP13319Q.js";import{F as i,J as u,f as P,a4 as U,c as R}from"./index-CtyZ6W6U.js";import{S as z}from"./layout-Dn2iQppg.js";import{D as L}from"./DraggableMenu-Bk7Spryo.js";import"./model-viewer-BNdxy5m2.js";import{M as F}from"./react-tooltip.min-DW3XhwOj.js";import{K as I}from"./transition-C6TXN687.js";/* empty css            */import"./index-DQkUn08L.js";function q(){const{auth:b,template:t}=S().props,[j,H]=r.useState(!0),[D,v]=r.useState(""),p=r.useRef(null),m=r.useRef(null),{data:l,setData:c,errors:a,put:N,reset:d,processing:w,recentlySuccessful:f}=k({current_password:"",password:"",password_confirmation:""}),C=s=>{s.preventDefault(),N(route("password.update"),{preserveScroll:!0,onSuccess:()=>d(),onError:n=>{var o,h;n.password&&(d("password","password_confirmation"),(o=p.current)==null||o.focus()),n.current_password&&(d("current_password"),(h=m.current)==null||h.focus())}})},x=r.useCallback(s=>{try{return new URL(s),!0}catch{return!1}},[]),g=r.useCallback(s=>{var o;return s&&((o=s.split("?")[0].split(".").pop())==null?void 0:o.toLowerCase())||""},[]),y=r.useCallback(s=>s?["jpg","jpeg","png","gif","bmp","tiff","tif","webp","apng","svg","ico"].includes(s):!1,[]),_=r.useMemo(()=>t!=null&&t.image&&y(g(t.image))?e.jsx("style",{children:`
2                    .blur-bg {
3                        background: url('${t.user_id===0?"https://admin.ez3d.ai/":"https://ez.wiki/"}${t.image}') no-repeat center center;
4                        background-size: cover;
5                    }
6                `}):null,[t,g,y]);return r.useEffect(()=>{if(t!=null&&t.image&&/<[a-z][\s\S]*>/i.test(t.image)&&!x(t.image)){const n=new Blob([t.image],{type:"text/html"}),o=URL.createObjectURL(n);return v(o),()=>{URL.revokeObjectURL(o)}}},[t,x]),r.useEffect(()=>{if(t!=null&&t.image&&(t.image.includes("facebook.com")||t.image.includes("fb.watch"))){const s=document.createElement("script");return s.src="https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v3.0",s.async=!0,s.defer=!0,s.crossOrigin="anonymous",document.body.appendChild(s),()=>{document.body.contains(s)&&document.body.removeChild(s)}}},[t]),e.jsxs(e.Fragment,{children:[e.jsxs(E,{children:[e.jsx("title",{children:"Password Settings"}),_]}),e.jsx(F,{id:"password-tooltip"}),e.jsx("style",{children:`
7                .react-tooltip {
8                    z-index: 99999 !important;
9                    opacity: 1 !important;
10                    font-size: 12px;
11                    padding: 4px 8px;
12                }
13            `}),e.jsx(L,{auth:b}),e.jsx("main",{className:"relative flex justify-center items-center p-4 min-h-screen overflow-hidden",children:j&&e.jsx("div",{className:"relative mt-4 mx-auto bottom-4 z-50 backdrop-blur-sm p-4 rounded-xl border border-white-700 overflow-y-auto shadow-2xl w-full",children:e.jsx(z,{children:e.jsx("div",{className:"relative",children:e.jsxs("div",{className:"bg-gray-800/80 border-gray-700 rounded-lg p-6 space-y-6 backdrop-blur-sm",children:[e.jsx("div",{className:"flex justify-between items-center",children:e.jsxs("h2",{className:"text-xl font-bold text-white","data-tooltip-id":"password-tooltip","data-tooltip-content":"Secure your account by updating your password regularly.",children:[e.jsx(i,{icon:u,className:"mr-2"}),"Update Password"]})}),e.jsx("p",{className:"text-sm text-gray-400","data-tooltip-id":"password-tooltip","data-tooltip-content":"For best security, your new password should be at least 8 characters long and include a mix of letters, numbers, and symbols.",children:"Ensure your account is using a long, random password to stay secure."}),f&&e.jsxs("div",{className:"p-4 bg-green-600/20 border border-green-400 text-green-100 rounded-lg",children:[e.jsx(i,{icon:P,className:"mr-2"}),"Password updated successfully!"]}),e.jsxs("form",{onSubmit:C,className:"space-y-6",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsxs("label",{className:"text-yellow-400 font-medium flex items-center",children:[e.jsx(i,{icon:U,className:"mr-2"}),"Current Password"]}),e.jsx("input",{id:"current_password",ref:m,value:l.current_password,onChange:s=>c("current_password",s.target.value),type:"password",className:"w-full bg-gray-700 text-white px-4 py-3 rounded-lg border border-gray-600 focus:outline-none focus:ring-2 focus:ring-yellow-400",autoComplete:"current-password",placeholder:"Enter your current password","data-tooltip-id":"password-tooltip","data-tooltip-content":"Enter your existing password to authorize the change."}),a.current_password&&e.jsx("p",{className:"text-red-400 text-sm",children:a.current_password})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs("label",{className:"text-yellow-400 font-medium flex items-center",children:[e.jsx(i,{icon:u,className:"mr-2"}),"New Password"]}),e.jsx("input",{id:"password",ref:p,value:l.password,onChange:s=>c("password",s.target.value),type:"password",className:"w-full bg-gray-700 text-white px-4 py-3 rounded-lg border border-gray-600 focus:outline-none focus:ring-2 focus:ring-yellow-400",autoComplete:"new-password",placeholder:"Enter your new password","data-tooltip-id":"password-tooltip","data-tooltip-content":"Choose a strong, new password that you haven't used before."}),a.password&&e.jsx("p",{className:"text-red-400 text-sm",children:a.password})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs("label",{className:"text-yellow-400 font-medium flex items-center",children:[e.jsx(i,{icon:u,className:"mr-2"}),"Confirm Password"]}),e.jsx("input",{id:"password_confirmation",value:l.password_confirmation,onChange:s=>c("password_confirmation",s.target.value),type:"password",className:"w-full bg-gray-700 text-white px-4 py-3 rounded-lg border border-gray-600 focus:outline-none focus:ring-2 focus:ring-yellow-400",autoComplete:"new-password",placeholder:"Confirm your new password","data-tooltip-id":"password-tooltip","data-tooltip-content":"Re-enter your new password to ensure it's correct."}),a.password_confirmation&&e.jsx("p",{className:"text-red-400 text-sm",children:a.password_confirmation})]}),e.jsxs("div",{className:"flex items-center gap-4 pt-4",children:[e.jsxs("button",{type:"submit",className:"bg-yellow-500 hover:bg-yellow-600 text-black font-bold py-2 px-6 rounded-lg transition-colors flex items-center",disabled:w,"data-tooltip-id":"password-tooltip","data-tooltip-content":"Click to save your new password.",children:[e.jsx(i,{icon:R,className:"mr-2"}),w?"Saving...":"Save Password"]}),e.jsx(I,{show:f,enter:"transition ease-in-out",enterFrom:"opacity-0",leave:"transition ease-in-out",leaveTo:"opacity-0",children:e.jsx("p",{className:"text-green-400 text-sm",children:"Saved successfully!"})})]})]})]})})})})})]})}export{q 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.