import{t as c,c as o}from"./NcLoadingIcon-DmVcM0-B.chunk.mjs";import{e as s}from"./index-6AQ8QgJK.chunk.mjs";import{_ as a}from"./index-CCUE3e_p.chunk.mjs";import{N as i}from"./NcCheckboxRadioSwitch-ip_mRd2T-Df5K32Av.chunk.mjs";import{n as p}from"./_plugin-vue2_normalizer-wd1ZAbRr.chunk.mjs";import"./emoji-picker-DwlFXcXb.chunk.mjs";import"./vue.runtime.esm-C9BcAUzb.chunk.mjs";const n={name:"FilesSettings",components:{NcCheckboxRadioSwitch:i},data(){return{showWorkspace:OCA.Text.RichWorkspaceEnabled}},methods:{toggle(){this.showWorkspace?(s("Text::showRichWorkspace"),o.post(a("/apps/text/settings"),{key:"workspace_enabled",value:"1"})):(s("Text::hideRichWorkspace"),o.post(a("/apps/text/settings"),{key:"workspace_enabled",value:"0"}))},t:c}};var h=function(){var t=this,e=t._self._c;return e("div",{attrs:{id:"files-setting-richworkspace"}},[e("NcCheckboxRadioSwitch",{attrs:{checked:t.showWorkspace},on:{"update:checked":[function(r){t.showWorkspace=r},t.toggle]}},[t._v(" "+t._s(t.t("text","Show folder description"))+" ")])],1)},d=[],k=p(n,h,d,!1,null,null);const W=k.exports;export{W as default};
//# sourceMappingURL=FilesSettings-Dg3CcFuY.chunk.mjs.map
