1import{T as f,c as p,_,w as m,o as g,b as o,f as r,u as n,n as v,a as t,t as l}from"./app-BXvF3HYt.js";import{_ as w}from"./ActionMessage-D5vnNnNM.js";import{_ as x}from"./FormSection-Cnet2zBZ.js";import{_ as T,a as b}from"./TextInput-CN_jo65B.js";import{_ as d}from"./InputLabel-DZhBJ_Kg.js";import{_ as y}from"./PrimaryButton-D8zZyiff.js";import"./SectionTitle-CU87EiFI.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const N={class:"col-span-6"},S={class:"flex items-center mt-2"},k=["src","alt"],V={class:"ml-4 leading-tight"},$={class:"text-gray-900 dark:text-white"},h={class:"text-gray-700 dark:text-gray-300 text-sm"},B={class:"col-span-6 sm:col-span-4"},E={__name:"UpdateTeamNameForm",props:{team:Object,permissions:Object},setup(a){const i=a,s=f({name:i.team.name}),c=()=>{s.put(route("teams.update",i.team),{errorBag:"updateTeamName",preserveScroll:!0})};return(U,e)=>(g(),p(x,{onSubmitted:c},_({title:m(()=>[e[1]||(e[1]=r(" Team Name "))]),description:m(()=>[e[2]||(e[2]=r(" The team's name and owner information. "))]),form:m(()=>[t("div",N,[o(d,{value:"Team Owner"}),t("div",S,[t("img",{class:"w-12 h-12 rounded-full object-cover",src:a.team.owner.profile_photo_url,alt:a.team.owner.name},null,8,k),t("div",V,[t("div",$,l(a.team.owner.name),1),t("div",h,l(a.team.owner.email),1)])])]),t("div",B,[o(d,{for:"name",value:"Team Name"}),o(T,{id:"name",modelValue:n(s).name,"onUpdate:modelValue":e[0]||(e[0]=u=>n(s).name=u),type:"text",class:"mt-1 block w-full",disabled:!a.permissions.canUpdateTeam},null,8,["modelValue","disabled"]),o(b,{message:n(s).errors.name,class:"mt-2"},null,8,["message"])])]),_:2},[a.permissions.canUpdateTeam?{name:"actions",fn:m(()=>[o(w,{on:n(s).recentlySuccessful,class:"mr-3"},{default:m(()=>e[3]||(e[3]=[r(" Saved. ")])),_:1},8,["on"]),o(y,{class:v({"opacity-25":n(s).processing}),disabled:n(s).processing},{default:m(()=>e[4]||(e[4]=[r(" Save ")])),_:1},8,["class","disabled"])]),key:"0"}:void 0]),1024))}};export{E 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.