1import{s as y}from"./index-De384kfN.js";import{s as f}from"./index-BsJXpNkI.js";import{h as v,Q as b,r as o,j as h,m as V,v as n,D as x,F as C,I as g,z as r,N as c,_ as l,E as k,y as w,p as u}from"./_plugin-vue_export-helper-Bjah6Hf_.js";import"./app-BMFFSvzt.js";import"./index-Dj9wxCvD.js";import"./index-DeozGB6s.js";const N={class:"community-visibility"},B={class:"community-visibility__control"},I={for:"profile-community-visibility"},D={__name:"CommunityVisibilityCheckbox",setup(E){const t=b(),e=o(!1),a=o(!1),m=h(()=>![0,"0",!1].includes(t.props.auth.user.community_appearance));async function p(s){if(!e.value){e.value=!0,a.value=!1;try{const i=await window.axios.put(route("user.community-appearance.update"),{community_appearance:s});t.props.auth.user.community_appearance=i.data.community_appearance}catch{a.value=!0}finally{e.value=!1}}}return(s,i)=>{const d=f,_=y;return u(),V("div",N,[n("div",B,[g(d,{inputId:"profile-community-visibility",modelValue:m.value,"onUpdate:modelValue":p,binary:"",disabled:e.value},null,8,["modelValue","disabled"]),n("label",I,r(c(l)("dashboard::Community visibility (competitions and leaderboards)")),1)]),a.value?(u(),x(_,{key:0,severity:"error",variant:"simple"},{default:k(()=>[w(r(c(l)("Unable to save this setting right now.")),1)]),_:1})):C("",!0)])}}},Q=v(D,[["__scopeId","data-v-6fbc6467"]]);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.