diff options
Diffstat (limited to 'js/admin/general-settings.js')
-rw-r--r-- | js/admin/general-settings.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/admin/general-settings.js b/js/admin/general-settings.js index 584b24081..9920e374c 100644 --- a/js/admin/general-settings.js +++ b/js/admin/general-settings.js @@ -1,4 +1,4 @@ -!function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/js/",n(n.s=84)}({0:function(t,e,n){"use strict";n.r(e),function(t,n){ +!function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/js/",n(n.s=83)}({0:function(t,e,n){"use strict";n.r(e),function(t,n){ /*! * Vue.js v2.6.10 * (c) 2014-2019 Evan You @@ -834,7 +834,7 @@ e.default=o},function(t,e,n){"use strict";var i=n(46);n.n(i).a},function(t,e,n){ * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. * - */n.d(e,"ActionButton",function(){return a.default}),n.d(e,"ActionCheckbox",function(){return s.default}),n.d(e,"ActionInput",function(){return c.default}),n.d(e,"ActionLink",function(){return l.default}),n.d(e,"ActionRouter",function(){return u.default}),n.d(e,"ActionText",function(){return d.default}),n.d(e,"ActionTextEditable",function(){return p.default}),n.d(e,"Actions",function(){return f.default}),n.d(e,"AppContent",function(){return h.default}),n.d(e,"AppContentDetails",function(){return v.default}),n.d(e,"AppContentList",function(){return m.default}),n.d(e,"AppNavigation",function(){return A.default}),n.d(e,"AppNavigationCaption",function(){return g.default}),n.d(e,"AppNavigationCounter",function(){return b.default}),n.d(e,"AppNavigationItem",function(){return y.default}),n.d(e,"AppNavigationNew",function(){return x.default}),n.d(e,"AppNavigationSettings",function(){return _.default}),n.d(e,"AppNavigationSpacer",function(){return w.default}),n.d(e,"AppSidebar",function(){return C.default}),n.d(e,"AppSidebarTab",function(){return k.default}),n.d(e,"Avatar",function(){return T.default}),n.d(e,"Content",function(){return E.default}),n.d(e,"DatetimePicker",function(){return S.default}),n.d(e,"Modal",function(){return M.default}),n.d(e,"Multiselect",function(){return O.default}),n.d(e,"PopoverMenu",function(){return D.default}),n.d(e,"Tooltip",function(){return I.default}),n.d(e,"isFullscreen",function(){return B.default}),n.d(e,"isMobile",function(){return N.default}),"undefined"!=typeof window&&window.Vue&&P(window.Vue),e.default=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?L(n,!0).forEach(function(e){o()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):L(n).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({install:P},i)}])})},42:function(t,e,n){var i=n(67);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);(0,n(9).default)("f0488382",i,!0,{})},5:function(t,e){var n,i,r=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{i="function"==typeof clearTimeout?clearTimeout:a}catch(t){i=a}}();var c,l=[],u=!1,d=-1;function p(){u&&c&&(u=!1,c.length?l=c.concat(l):d=-1,l.length&&f())}function f(){if(!u){var t=s(p);u=!0;for(var e=l.length;e;){for(c=l,l=[];++d<e;)c&&c[d].run();d=-1,e=l.length}c=null,u=!1,function(t){if(i===clearTimeout)return clearTimeout(t);if((i===a||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(t);try{i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}(t)}}function h(t,e){this.fun=t,this.array=e}function v(){}r.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];l.push(new h(t,e)),1!==l.length||u||s(f)},h.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=v,r.addListener=v,r.once=v,r.off=v,r.removeListener=v,r.removeAllListeners=v,r.emit=v,r.prependListener=v,r.prependOnceListener=v,r.listeners=function(t){return[]},r.binding=function(t){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(t){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},6:function(t,e,n){(function(t){var i=void 0!==t&&t||"undefined"!=typeof self&&self||window,r=Function.prototype.apply;function o(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new o(r.call(setTimeout,i,arguments),clearTimeout)},e.setInterval=function(){return new o(r.call(setInterval,i,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(i,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},n(7),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,n(2))},66:function(t,e,n){"use strict";var i=n(42);n.n(i).a},67:function(t,e,n){(t.exports=n(8)(!1)).push([t.i,"p[data-v-1aef540a]{display:flex;align-items:center}p label[data-v-1aef540a]{display:block;margin-right:10px}.multiselect[data-v-1aef540a]{flex-grow:1;max-width:300px}\n",""])},7:function(t,e,n){(function(t,e){!function(t,n){"use strict";if(!t.setImmediate){var i,r,o,a,s,c=1,l={},u=!1,d=t.document,p=Object.getPrototypeOf&&Object.getPrototypeOf(t);p=p&&p.setTimeout?p:t,"[object process]"==={}.toString.call(t.process)?i=function(t){e.nextTick(function(){h(t)})}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?t.MessageChannel?((o=new MessageChannel).port1.onmessage=function(t){h(t.data)},i=function(t){o.port2.postMessage(t)}):d&&"onreadystatechange"in d.createElement("script")?(r=d.documentElement,i=function(t){var e=d.createElement("script");e.onreadystatechange=function(){h(t),e.onreadystatechange=null,r.removeChild(e),e=null},r.appendChild(e)}):i=function(t){setTimeout(h,0,t)}:(a="setImmediate$"+Math.random()+"$",s=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(a)&&h(+e.data.slice(a.length))},t.addEventListener?t.addEventListener("message",s,!1):t.attachEvent("onmessage",s),i=function(e){t.postMessage(a+e,"*")}),p.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n<e.length;n++)e[n]=arguments[n+1];var r={callback:t,args:e};return l[c]=r,i(c),c++},p.clearImmediate=f}function f(t){delete l[t]}function h(t){if(u)setTimeout(h,0,t);else{var e=l[t];if(e){u=!0;try{!function(t){var e=t.callback,i=t.args;switch(i.length){case 0:e();break;case 1:e(i[0]);break;case 2:e(i[0],i[1]);break;case 3:e(i[0],i[1],i[2]);break;default:e.apply(n,i)}}(e)}finally{f(t),u=!1}}}}}("undefined"==typeof self?void 0===t?this:t:self)}).call(this,n(2),n(5))},8:function(t,e,n){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var n=function(t,e){var n=t[1]||"",i=t[3];if(!i)return n;if(e&&"function"==typeof btoa){var r=(a=i,s=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),c="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),"/*# ".concat(c," */")),o=i.sources.map(function(t){return"/*# sourceURL=".concat(i.sourceRoot).concat(t," */")});return[n].concat(o).concat([r]).join("\n")}var a,s,c;return[n].join("\n")}(e,t);return e[2]?"@media ".concat(e[2],"{").concat(n,"}"):n}).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var i={},r=0;r<this.length;r++){var o=this[r][0];null!=o&&(i[o]=!0)}for(var a=0;a<t.length;a++){var s=t[a];null!=s[0]&&i[s[0]]||(n&&!s[2]?s[2]=n:n&&(s[2]="(".concat(s[2],") and (").concat(n,")")),e.push(s))}},e}},84:function(e,i,r){"use strict";r.r(i);var o=r(0),a=r(4),s=[{value:0,label:t("spreed","Everyone")},{value:1,label:t("spreed","Users and moderators")},{value:2,label:t("spreed","Moderators only")}],c={name:"GeneralSettings",components:{Multiselect:a.Multiselect},data:function(){return{loading:!0,loadingStartCalls:!1,loadingConversationsFiles:!1,startCallOptions:s,startCalls:s[0],conversationsFiles:!0,conversationsFilesPublicShares:!0}},mounted:function(){this.loading=!0,this.startCalls=s[parseInt(OCP.InitialState.loadState("talk","start_calls"))],this.conversationsFiles=1===parseInt(OCP.InitialState.loadState("talk","conversations_files")),this.conversationsFilesPublicShares=1===parseInt(OCP.InitialState.loadState("talk","conversations_files_public_shares")),this.loading=!1},methods:{saveStartCalls:function(){this.loadingStartCalls=!0,OCP.AppConfig.setValue("spreed","start_calls",this.startCalls.value,{success:function(){this.loadingStartCalls=!1}.bind(this)})},saveConversationsFiles:function(){this.loadingConversationsFiles=!0,OCP.AppConfig.setValue("spreed","conversations_files",this.conversationsFiles?"1":"0",{success:function(){this.conversationsFiles?this.loadingConversationsFiles=!1:OCP.AppConfig.setValue("spreed","conversations_files_public_shares","0",{success:function(){this.conversationsFilesPublicShares=!1,this.loadingConversationsFiles=!1}.bind(this)})}.bind(this)})},saveConversationsFilesPublicShares:function(){this.loadingConversationsFiles=!0,OCP.AppConfig.setValue("spreed","conversations_files_public_shares",this.conversationsFilesPublicShares?"1":"0",{success:function(){this.loadingConversationsFiles=!1}.bind(this)})}}},l=(r(66),r(3)),u=Object(l.a)(c,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"videocalls section",attrs:{id:"general_settings"}},[n("h2",[t._v(t._s(t.t("spreed","General settings")))]),t._v(" "),n("p",[n("label",{attrs:{for:"start_calls"}},[t._v(t._s(t.t("spreed","Start calls")))]),t._v(" "),n("Multiselect",{attrs:{id:"start_calls",options:t.startCallOptions,placeholder:t.t("spreed","Who can start a call?"),label:"label","track-by":"value",disabled:t.loading||t.loadingStartCalls},on:{input:t.saveStartCalls},model:{value:t.startCalls,callback:function(e){t.startCalls=e},expression:"startCalls"}})],1),t._v(" "),n("p",[n("em",[t._v(t._s(t.t("spreed","When a call has started, everyone with access to the conversation can join the call.")))])]),t._v(" "),n("h3",[t._v(t._s(t.t("spreed","Integration into other apps")))]),t._v(" "),n("p",[n("input",{directives:[{name:"model",rawName:"v-model",value:t.conversationsFiles,expression:"conversationsFiles"}],staticClass:"checkbox",attrs:{id:"conversations_files",type:"checkbox",name:"conversations_files",disabled:t.loading||t.loadingConversationsFiles},domProps:{checked:Array.isArray(t.conversationsFiles)?t._i(t.conversationsFiles,null)>-1:t.conversationsFiles},on:{change:[function(e){var n=t.conversationsFiles,i=e.target,r=!!i.checked;if(Array.isArray(n)){var o=t._i(n,null);i.checked?o<0&&(t.conversationsFiles=n.concat([null])):o>-1&&(t.conversationsFiles=n.slice(0,o).concat(n.slice(o+1)))}else t.conversationsFiles=r},t.saveConversationsFiles]}}),t._v(" "),n("label",{attrs:{for:"conversations_files"}},[t._v(t._s(t.t("spreed","Allow conversations on files")))])]),t._v(" "),n("p",[n("input",{directives:[{name:"model",rawName:"v-model",value:t.conversationsFilesPublicShares,expression:"conversationsFilesPublicShares"}],staticClass:"checkbox",attrs:{id:"conversations_files_public_shares",type:"checkbox",name:"conversations_files_public_shares",disabled:t.loading||t.loadingConversationsFiles||!t.conversationsFiles},domProps:{checked:Array.isArray(t.conversationsFilesPublicShares)?t._i(t.conversationsFilesPublicShares,null)>-1:t.conversationsFilesPublicShares},on:{change:[function(e){var n=t.conversationsFilesPublicShares,i=e.target,r=!!i.checked;if(Array.isArray(n)){var o=t._i(n,null);i.checked?o<0&&(t.conversationsFilesPublicShares=n.concat([null])):o>-1&&(t.conversationsFilesPublicShares=n.slice(0,o).concat(n.slice(o+1)))}else t.conversationsFilesPublicShares=r},t.saveConversationsFilesPublicShares]}}),t._v(" "),n("label",{attrs:{for:"conversations_files_public_shares"}},[t._v(t._s(t.t("spreed","Allow conversations on public shares for files")))])])])},[],!1,null,"1aef540a",null).exports; + */n.d(e,"ActionButton",function(){return a.default}),n.d(e,"ActionCheckbox",function(){return s.default}),n.d(e,"ActionInput",function(){return c.default}),n.d(e,"ActionLink",function(){return l.default}),n.d(e,"ActionRouter",function(){return u.default}),n.d(e,"ActionText",function(){return d.default}),n.d(e,"ActionTextEditable",function(){return p.default}),n.d(e,"Actions",function(){return f.default}),n.d(e,"AppContent",function(){return h.default}),n.d(e,"AppContentDetails",function(){return v.default}),n.d(e,"AppContentList",function(){return m.default}),n.d(e,"AppNavigation",function(){return A.default}),n.d(e,"AppNavigationCaption",function(){return g.default}),n.d(e,"AppNavigationCounter",function(){return b.default}),n.d(e,"AppNavigationItem",function(){return y.default}),n.d(e,"AppNavigationNew",function(){return x.default}),n.d(e,"AppNavigationSettings",function(){return _.default}),n.d(e,"AppNavigationSpacer",function(){return w.default}),n.d(e,"AppSidebar",function(){return C.default}),n.d(e,"AppSidebarTab",function(){return k.default}),n.d(e,"Avatar",function(){return T.default}),n.d(e,"Content",function(){return E.default}),n.d(e,"DatetimePicker",function(){return S.default}),n.d(e,"Modal",function(){return M.default}),n.d(e,"Multiselect",function(){return O.default}),n.d(e,"PopoverMenu",function(){return D.default}),n.d(e,"Tooltip",function(){return I.default}),n.d(e,"isFullscreen",function(){return B.default}),n.d(e,"isMobile",function(){return N.default}),"undefined"!=typeof window&&window.Vue&&P(window.Vue),e.default=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?L(n,!0).forEach(function(e){o()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):L(n).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({install:P},i)}])})},42:function(t,e,n){var i=n(67);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);(0,n(9).default)("f0488382",i,!0,{})},5:function(t,e){var n,i,r=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{i="function"==typeof clearTimeout?clearTimeout:a}catch(t){i=a}}();var c,l=[],u=!1,d=-1;function p(){u&&c&&(u=!1,c.length?l=c.concat(l):d=-1,l.length&&f())}function f(){if(!u){var t=s(p);u=!0;for(var e=l.length;e;){for(c=l,l=[];++d<e;)c&&c[d].run();d=-1,e=l.length}c=null,u=!1,function(t){if(i===clearTimeout)return clearTimeout(t);if((i===a||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(t);try{i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}(t)}}function h(t,e){this.fun=t,this.array=e}function v(){}r.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];l.push(new h(t,e)),1!==l.length||u||s(f)},h.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=v,r.addListener=v,r.once=v,r.off=v,r.removeListener=v,r.removeAllListeners=v,r.emit=v,r.prependListener=v,r.prependOnceListener=v,r.listeners=function(t){return[]},r.binding=function(t){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(t){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},6:function(t,e,n){(function(t){var i=void 0!==t&&t||"undefined"!=typeof self&&self||window,r=Function.prototype.apply;function o(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new o(r.call(setTimeout,i,arguments),clearTimeout)},e.setInterval=function(){return new o(r.call(setInterval,i,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(i,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},n(7),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,n(2))},66:function(t,e,n){"use strict";var i=n(42);n.n(i).a},67:function(t,e,n){(t.exports=n(8)(!1)).push([t.i,"p[data-v-1aef540a]{display:flex;align-items:center}p label[data-v-1aef540a]{display:block;margin-right:10px}.multiselect[data-v-1aef540a]{flex-grow:1;max-width:300px}\n",""])},7:function(t,e,n){(function(t,e){!function(t,n){"use strict";if(!t.setImmediate){var i,r,o,a,s,c=1,l={},u=!1,d=t.document,p=Object.getPrototypeOf&&Object.getPrototypeOf(t);p=p&&p.setTimeout?p:t,"[object process]"==={}.toString.call(t.process)?i=function(t){e.nextTick(function(){h(t)})}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?t.MessageChannel?((o=new MessageChannel).port1.onmessage=function(t){h(t.data)},i=function(t){o.port2.postMessage(t)}):d&&"onreadystatechange"in d.createElement("script")?(r=d.documentElement,i=function(t){var e=d.createElement("script");e.onreadystatechange=function(){h(t),e.onreadystatechange=null,r.removeChild(e),e=null},r.appendChild(e)}):i=function(t){setTimeout(h,0,t)}:(a="setImmediate$"+Math.random()+"$",s=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(a)&&h(+e.data.slice(a.length))},t.addEventListener?t.addEventListener("message",s,!1):t.attachEvent("onmessage",s),i=function(e){t.postMessage(a+e,"*")}),p.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n<e.length;n++)e[n]=arguments[n+1];var r={callback:t,args:e};return l[c]=r,i(c),c++},p.clearImmediate=f}function f(t){delete l[t]}function h(t){if(u)setTimeout(h,0,t);else{var e=l[t];if(e){u=!0;try{!function(t){var e=t.callback,i=t.args;switch(i.length){case 0:e();break;case 1:e(i[0]);break;case 2:e(i[0],i[1]);break;case 3:e(i[0],i[1],i[2]);break;default:e.apply(n,i)}}(e)}finally{f(t),u=!1}}}}}("undefined"==typeof self?void 0===t?this:t:self)}).call(this,n(2),n(5))},8:function(t,e,n){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var n=function(t,e){var n=t[1]||"",i=t[3];if(!i)return n;if(e&&"function"==typeof btoa){var r=(a=i,s=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),c="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),"/*# ".concat(c," */")),o=i.sources.map(function(t){return"/*# sourceURL=".concat(i.sourceRoot).concat(t," */")});return[n].concat(o).concat([r]).join("\n")}var a,s,c;return[n].join("\n")}(e,t);return e[2]?"@media ".concat(e[2],"{").concat(n,"}"):n}).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var i={},r=0;r<this.length;r++){var o=this[r][0];null!=o&&(i[o]=!0)}for(var a=0;a<t.length;a++){var s=t[a];null!=s[0]&&i[s[0]]||(n&&!s[2]?s[2]=n:n&&(s[2]="(".concat(s[2],") and (").concat(n,")")),e.push(s))}},e}},83:function(e,i,r){"use strict";r.r(i);var o=r(0),a=r(4),s=[{value:0,label:t("spreed","Everyone")},{value:1,label:t("spreed","Users and moderators")},{value:2,label:t("spreed","Moderators only")}],c={name:"GeneralSettings",components:{Multiselect:a.Multiselect},data:function(){return{loading:!0,loadingStartCalls:!1,loadingConversationsFiles:!1,startCallOptions:s,startCalls:s[0],conversationsFiles:!0,conversationsFilesPublicShares:!0}},mounted:function(){this.loading=!0,this.startCalls=s[parseInt(OCP.InitialState.loadState("talk","start_calls"))],this.conversationsFiles=1===parseInt(OCP.InitialState.loadState("talk","conversations_files")),this.conversationsFilesPublicShares=1===parseInt(OCP.InitialState.loadState("talk","conversations_files_public_shares")),this.loading=!1},methods:{saveStartCalls:function(){this.loadingStartCalls=!0,OCP.AppConfig.setValue("spreed","start_calls",this.startCalls.value,{success:function(){this.loadingStartCalls=!1}.bind(this)})},saveConversationsFiles:function(){this.loadingConversationsFiles=!0,OCP.AppConfig.setValue("spreed","conversations_files",this.conversationsFiles?"1":"0",{success:function(){this.conversationsFiles?this.loadingConversationsFiles=!1:OCP.AppConfig.setValue("spreed","conversations_files_public_shares","0",{success:function(){this.conversationsFilesPublicShares=!1,this.loadingConversationsFiles=!1}.bind(this)})}.bind(this)})},saveConversationsFilesPublicShares:function(){this.loadingConversationsFiles=!0,OCP.AppConfig.setValue("spreed","conversations_files_public_shares",this.conversationsFilesPublicShares?"1":"0",{success:function(){this.loadingConversationsFiles=!1}.bind(this)})}}},l=(r(66),r(3)),u=Object(l.a)(c,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"videocalls section",attrs:{id:"general_settings"}},[n("h2",[t._v(t._s(t.t("spreed","General settings")))]),t._v(" "),n("p",[n("label",{attrs:{for:"start_calls"}},[t._v(t._s(t.t("spreed","Start calls")))]),t._v(" "),n("Multiselect",{attrs:{id:"start_calls",options:t.startCallOptions,placeholder:t.t("spreed","Who can start a call?"),label:"label","track-by":"value",disabled:t.loading||t.loadingStartCalls},on:{input:t.saveStartCalls},model:{value:t.startCalls,callback:function(e){t.startCalls=e},expression:"startCalls"}})],1),t._v(" "),n("p",[n("em",[t._v(t._s(t.t("spreed","When a call has started, everyone with access to the conversation can join the call.")))])]),t._v(" "),n("h3",[t._v(t._s(t.t("spreed","Integration into other apps")))]),t._v(" "),n("p",[n("input",{directives:[{name:"model",rawName:"v-model",value:t.conversationsFiles,expression:"conversationsFiles"}],staticClass:"checkbox",attrs:{id:"conversations_files",type:"checkbox",name:"conversations_files",disabled:t.loading||t.loadingConversationsFiles},domProps:{checked:Array.isArray(t.conversationsFiles)?t._i(t.conversationsFiles,null)>-1:t.conversationsFiles},on:{change:[function(e){var n=t.conversationsFiles,i=e.target,r=!!i.checked;if(Array.isArray(n)){var o=t._i(n,null);i.checked?o<0&&(t.conversationsFiles=n.concat([null])):o>-1&&(t.conversationsFiles=n.slice(0,o).concat(n.slice(o+1)))}else t.conversationsFiles=r},t.saveConversationsFiles]}}),t._v(" "),n("label",{attrs:{for:"conversations_files"}},[t._v(t._s(t.t("spreed","Allow conversations on files")))])]),t._v(" "),n("p",[n("input",{directives:[{name:"model",rawName:"v-model",value:t.conversationsFilesPublicShares,expression:"conversationsFilesPublicShares"}],staticClass:"checkbox",attrs:{id:"conversations_files_public_shares",type:"checkbox",name:"conversations_files_public_shares",disabled:t.loading||t.loadingConversationsFiles||!t.conversationsFiles},domProps:{checked:Array.isArray(t.conversationsFilesPublicShares)?t._i(t.conversationsFilesPublicShares,null)>-1:t.conversationsFilesPublicShares},on:{change:[function(e){var n=t.conversationsFilesPublicShares,i=e.target,r=!!i.checked;if(Array.isArray(n)){var o=t._i(n,null);i.checked?o<0&&(t.conversationsFilesPublicShares=n.concat([null])):o>-1&&(t.conversationsFilesPublicShares=n.slice(0,o).concat(n.slice(o+1)))}else t.conversationsFilesPublicShares=r},t.saveConversationsFilesPublicShares]}}),t._v(" "),n("label",{attrs:{for:"conversations_files_public_shares"}},[t._v(t._s(t.t("spreed","Allow conversations on public shares for files")))])])])},[],!1,null,"1aef540a",null).exports; /** * @copyright Copyright (c) 2019 Joas Schilling <coding@schilljs.com> * |