/*! third party licenses: js/vendor.LICENSE.txt */
import{n as S,b as d,_ as y,V as e}from"./index-C8Z_p2SP.chunk.mjs";import{l as u}from"./index-BiMVUFfi.chunk.mjs";const w={name:"AdminSettings",data(){return{allowSocialSync:u("contacts","allowSocialSync")==="yes"}},methods:{updateSetting(a){d.put(y("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 i=null,l=a._i(o,i);s.checked?l<0&&(a.allowSocialSync=o.concat([i])):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(){e.prototype.t=t;const a=e.extend(f);new a().$mount("#contacts-settings")}
//# sourceMappingURL=contacts-admin-settings.mjs.map
