PageSourceSearch

https://procontent.renewedvision.com/js/procontent/assets/OptionsMenu-AUAvN-ol.js

js renewedvision.com collected 2026-09-24 17:47:13 UTC 1,652 bytes, 1 lines download raw bytes

1import{r,u as v,j as e}from"./app-BeGqF6ux.js";import{D as w}from"./DefaultModal-B8Vjb4lu.js";import{b,B as l}from"./Tooltip-DYcxt1UG.js";import"./index-Dkf2GVy1.js";import"./dayjs-BlgjZc9C.js";import"./button.styles-7lPNyjJO.js";import"./iconBase-CN8tsjra.js";import"./useTranslation-kJHeU9i8.js";import"./helpers-CgA5RTdO.js";function k({user:n,setSelectedUser:m,setEditingUser:u,setShowUserPermissionsModal:c}){const[s,t]=r.useState(!1),[d,o]=r.useState(!1),a=r.useRef(null),f=v(),i=g=>{s&&a.current&&!a.current.contains(g.target)&&t(!1)};r.useEffect(()=>(document.addEventListener("mousedown",i),()=>document.removeEventListener("mousedown",i)));const h=()=>{m(n),u(!0),t(!1),c(!0)},p=()=>{o(!1),f.delete(route("admin.manage-team.destroy",{manage_team:n.id}),{preserveState:!0,preserveScroll:!0,only:["adminUsers"]})};return e.jsxs("div",{className:`ml-auto cursor-pointer rounded ${s?"bg-surface-base-bg":""} p-1`,ref:a,children:[e.jsx(b,{name:"HiEllipsisVertical",size:"sm",className:"cursor-pointer",onClick:()=>t(!s)}),s&&e.jsx("div",{className:"absolute right-6 top-12 z-40 mt-2 w-48 rounded-lg bg-white shadow-lg",children:e.jsxs("ul",{children:[e.jsx("li",{children:e.jsx(l,{variant:"ghost",size:"sm",onClick:h,className:"w-full hover:bg-surface-base-bg",children:"Edit Permissions"})}),e.jsx("li",{children:e.jsx(l,{variant:"destructive-ghost",size:"sm",onClick:()=>{o(!0),t(!1)},className:"w-full hover:bg-surface-base-bg",children:"Remove User"})})]})}),e.jsx(w,{title:"Remove Admin User",message:"Are you sure you want to remove this user from the team?",type:"warning",show:d,onClose:()=>o(!1),handleSubmit:p})]})}export{k 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.