123 |
- /*! For license information please see sharebymail-vue-settings-admin-sharebymail.js.LICENSE.txt */
- !function(){"use strict";var e,n={31163:function(e,n,r){var i=r(20144),o=r(45994),a=r(31352),s=(r(36144),r(20571)),c=r.n(s),u=r(13299),d=r.n(u),l=r(79954),f=r(64024),p=r(4820),h=r(79753),y=r(10128),v=(r(65509),r(25108));function m(e,n,t,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void t(e)}s.done?n(c):Promise.resolve(c).then(r,i)}function g(e){return function(){var n=this,t=arguments;return new Promise((function(r,i){var o=e.apply(n,t);function a(e){m(o,r,i,a,s,"next",e)}function s(e){m(o,r,i,a,s,"throw",e)}a(void 0)}))}}var b={name:"AdminSettings",components:{NcCheckboxRadioSwitch:c(),NcSettingsSection:d()},data:function(){return{sendPasswordMail:(0,l.j)("sharebymail","sendPasswordMail"),replyToInitiator:(0,l.j)("sharebymail","replyToInitiator")}},methods:{update:function(e,n){var r=this;return g(regeneratorRuntime.mark((function i(){var o,a,s,c,u,d;return regeneratorRuntime.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,(0,y.confirmPassword)();case 2:return o=(0,h.generateOcsUrl)("/apps/provisioning_api/api/v1/config/apps/{appId}/{key}",{appId:"sharebymail",key:e}),a=n?"yes":"no",i.prev=4,i.next=7,p.default.post(o,{value:a});case 7:u=i.sent,d=u.data,r.handleResponse({status:null===(s=d.ocs)||void 0===s||null===(c=s.meta)||void 0===c?void 0:c.status}),i.next=15;break;case 12:i.prev=12,i.t0=i.catch(4),r.handleResponse({errorMessage:t("sharebymail","Unable to update share by mail config"),error:i.t0});case 15:case"end":return i.stop()}}),i,null,[[4,12]])})))()},handleResponse:function(e){return g(regeneratorRuntime.mark((function n(){var t,r,i;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t=e.status,r=e.errorMessage,i=e.error,"ok"!==t&&((0,f.x2)(r),v.error(r,i));case 2:case"end":return n.stop()}}),n)})))()}}},I=(0,r(51900).Z)(b,(function(){var e=this,n=e._self._c;return n("NcSettingsSection",{attrs:{title:e.t("sharebymail","Share by mail"),description:e.t("sharebymail","Allows users to share a personalized link to a file or folder by putting in an email address.")}},[n("NcCheckboxRadioSwitch",{attrs:{type:"switch",checked:e.sendPasswordMail},on:{"update:checked":[function(n){e.sendPasswordMail=n},function(n){return e.update("sendpasswordmail",e.sendPasswordMail)}]}},[e._v("\n\t\t"+e._s(e.t("sharebymail","Send password by mail"))+"\n\t")]),e._v(" "),n("NcCheckboxRadioSwitch",{attrs:{type:"switch",checked:e.replyToInitiator},on:{"update:checked":[function(n){e.replyToInitiator=n},function(n){return e.update("replyToInitiator",e.replyToInitiator)}]}},[e._v("\n\t\t"+e._s(e.t("sharebymail","Reply to initiator"))+"\n\t")])],1)}),[],!1,null,null,null).exports;r.nc=btoa((0,o.IH)()),i.ZP.mixin({methods:{t:a.Iu}}),(new(i.ZP.extend(I))).$mount("#vue-admin-sharebymail")},81490:function(e){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMTYiIHdpZHRoPSIxNiI+CiAgPHBhdGggZD0iTTE0IDEyLjNMMTIuMyAxNCA4IDkuNyAzLjcgMTQgMiAxMi4zIDYuMyA4IDIgMy43IDMuNyAyIDggNi4zIDEyLjMgMiAxNCAzLjcgOS43IDh6Ii8+Cjwvc3ZnPgo="},90888:function(e){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMTYiIHdpZHRoPSIxNiI+CiAgPHBhdGggZD0iTTE0IDEyLjNMMTIuMyAxNCA4IDkuNyAzLjcgMTQgMiAxMi4zIDYuMyA4IDIgMy43IDMuNyAyIDggNi4zIDEyLjMgMiAxNCAzLjcgOS43IDh6IiBzdHlsZT0iZmlsbC1vcGFjaXR5OjE7ZmlsbDojZmZmZmZmIi8+Cjwvc3ZnPgo="}},r={};function i(e){var t=r[e];if(void 0!==t)return t.exports;var o=r[e]={id:e,loaded:!1,exports:{}};return n[e].call(o.exports,o,o.exports,i),o.loaded=!0,o.exports}i.m=n,e=[],i.O=function(n,t,r,o){if(!t){var a=1/0;for(d=0;d<e.length;d++){t=e[d][0],r=e[d][1],o=e[d][2];for(var s=!0,c=0;c<t.length;c++)(!1&o||a>=o)&&Object.keys(i.O).every((function(e){return i.O[e](t[c])}))?t.splice(c--,1):(s=!1,o<a&&(a=o));if(s){e.splice(d--,1);var u=r();void 0!==u&&(n=u)}}return n}o=o||0;for(var d=e.length;d>0&&e[d-1][2]>o;d--)e[d]=e[d-1];e[d]=[t,r,o]},i.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(n,{a:n}),n},i.d=function(e,n){for(var t in n)i.o(n,t)&&!i.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},i.j=3173,function(){i.b=document.baseURI||self.location.href;var e={3173:0};i.O.j=function(n){return 0===e[n]};var n=function(n,t){var r,o,a=t[0],s=t[1],c=t[2],u=0;if(a.some((function(n){return 0!==e[n]}))){for(r in s)i.o(s,r)&&(i.m[r]=s[r]);if(c)var d=c(i)}for(n&&n(t);u<a.length;u++)o=a[u],i.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return i.O(d)},t=self.webpackChunknextcloud=self.webpackChunknextcloud||[];t.forEach(n.bind(null,0)),t.push=n.bind(null,t.push.bind(t))}(),i.nc=void 0;var o=i.O(void 0,[7874],(function(){return i(31163)}));o=i.O(o)}();
- //# sourceMappingURL=sharebymail-vue-settings-admin-sharebymail.js.map?v=4682e841ad7690d016c9
|