/*! third party licenses: js/vendor.LICENSE.txt */
import{n as S,l as d,b as y,_ as u,V as i}from"./index-CK4Vyj7l.chunk.mjs";const w={name:"AdminSettings",data(){return{allowSocialSync:d("contacts","allowSocialSync")==="yes"}},methods:{updateSetting(a){y.put(u("apps/contacts/api/v1/social/config/global/"+a),{allow:this[a]?"yes":"no"})}}};var p=function(){var a=this,c=a._self._c;return c("div",{staticClass:"section",attrs:{id:"contacts"}},[c("h2",[a._v(a._s(a.t("contacts","Contacts")))]),c("p",[c("input",{directives:[{name:"model",rawName:"v-model",value:a.allowSocialSync,expression:"allowSocialSync"}],staticClass:"checkbox",attrs:{id:"allow-social-sync",type:"checkbox"},domProps:{checked:Array.isArray(a.allowSocialSync)?a._i(a.allowSocialSync,null)>-1:a.allowSocialSync},on:{change:[function(n){var o=a.allowSocialSync,s=n.target,r=!!s.checked;if(Array.isArray(o)){var e=null,l=a._i(o,e);s.checked?l<0&&(a.allowSocialSync=o.concat([e])):l>-1&&(a.allowSocialSync=o.slice(0,l).concat(o.slice(l+1)))}else a.allowSocialSync=r},function(n){return a.updateSetting("allowSocialSync")}]}}),c("label",{attrs:{for:"allow-social-sync"}},[a._v(a._s(a.t("contacts","Allow updating avatars from social media")))])])])},m=[],v=S(w,p,m,!1,null,null);const f=v.exports;document.addEventListener("DOMContentLoaded",h);function h(){i.prototype.t=t;const a=i.extend(f);new a().$mount("#contacts-settings")}
//# sourceMappingURL=contacts-admin-settings.mjs.map
