1import{d as b,a7 as x,o as C,b as V,w as o,a as m,e as l,u as t,aK as R,f as d,_ as f}from"./app.f8187a43.js";import{_ as $}from"./BaseDialog.vue_vue_type_script_setup_true_lang.42fe7f0e.js";const h={class:"flex w-[456px] flex-col text-left"},k={class:"flex justify-end space-x-2"},B=b({__name:"ManageRoleModal",props:{team:{},user:{},availableRoles:{}},emits:["close"],setup(p,{emit:_}){var u;const a=p,r=(u=a.user.membership)==null?void 0:u.role;function n(){_("close")}const s=x({role:r});async function v(){s.put(route("team-members.update",[a.team.hash_id,a.user]),{preserveScroll:!0,preserveState:!1,onSuccess:n})}return(c,e)=>(C(),V($,{title:"Manage role",show:!0,onClose:n},{default:o(()=>[m("div",h,[l(R,{modelValue:t(s).role,"onUpdate:modelValue":e[0]||(e[0]=i=>t(s).role=i),"current-role":t(r),"available-roles":c.availableRoles,class:"mb-8"},null,8,["modelValue","current-role","available-roles"]),m("div",k,[l(f,{variant:"neutral",onClick:e[1]||(e[1]=i=>c.$emit("close"))},{default:o(()=>[d(" Cancel ")]),_:1}),l(f,{variant:"primary",onClick:v},{default:o(()=>[d(" Update ")]),_:1})])])]),_:1}))}});export{B 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.