(()=>{"use strict";vare,r,a,o={57182:(e,r,a)=>{varo=a(85471),n=a(92457),i=a(53334),s=a(32073),l=a(88837),d=a(38613),c=a(85168),u=a(26287),p=a(99498),h=a(56760),f=(a(51257),a(96763));constb={name:"AdminSettings",components:{NcCheckboxRadioSwitch:s.A,NcSettingsSection:l.A},data:()=>({sendPasswordMail:(0,d.C)("sharebymail","sendPasswordMail"),replyToInitiator:(0,d.C)("sharebymail","replyToInitiator")}),methods:{asyncupdate(e,r){await(0,h.C)();consta=(0,p.KT)("/apps/provisioning_api/api/v1/config/apps/{appId}/{key}",{appId:"sharebymail",key:e}),o=r?"yes":"no";try{varn;const{data:e}=awaitu.A.post(a,{value:o});this.handleResponse({status:null===(n=e.ocs)||void0===n||null===(n=n.meta)||void0===n?void0:n.status})}catch(e){this.handleResponse({errorMessage:t("sharebymail","Unable to update share by mail config"),error:e})}},asynchandleResponse(e){let{status:t,errorMessage:r,error:a}=e;"ok"!==t&&((0,c.Qg)(r),f.error(r,a))}}},m=(0,a(14486).A)(b,(function(){vare=this,t=e._self._c;returnt("NcSettingsSection",{attrs:{name:e.t("sharebymail","Share by mail"),description:e.t("sharebymail","Allows people to share a personalized link to a file or folder by putting in an email address.")}},[t("NcCheckboxRadioSwitch",{attrs:{type:"switch",checked:e.sendPasswordMail},on:{"update:checked":[function(t){e.sendPasswordMail=t},function(t){returne.update("sendpasswordmail",e.sendPasswordMail)}]}},[e._v("\n\t\t"+e._s(e.t("sharebymail","Send password by mail"))+"\n\t")]),e._v(" "),t("NcCheckboxRadioSwitch",{attrs:{type:"switch",checked:e.replyToInitiator},on:{"update:checked":[function(t){e.replyToInitiator=t},function(t){returne.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;a.nc=btoa((0,n.do)()),o.Ay.mixin({methods:{t:i.Tl}}),(new(o.Ay.extend(m))).$mount("#vue-admin-sharebymail")}},n={};functioni(e){vart=n[e];if(void0!==t)returnt.exports;varr=n[e]={id:e,loaded:!1,exports:{}};returno[e].call(r.exports,r,r.exports,i),r.loaded=!0,r.exports}i.m=o,e=[],i.O=(t,r,a,o)=>{if(!r){varn=1/0;for(c=0;c<e.length;c++){r=e[c][0],a=e[c][1],o=e[c][2];for(vars=!0,l=0;l<r.length;l++)(!1&o||n>=o)&&Object.keys(i.O).every((e=>i.O[e](r[l])))?r.splice(l--,1):(s=!1,o<n&&(n=o));if(s){e.splice(c--,1);vard=a();void0!==d&&(t=d)}}returnt}o=o||0;for(varc=e.length;c>0&&e[c-1][2]>o;c--)e[c]=e[c-1];e[c]=[r,a,o]},i.n=e=>{vart=e&&e.__esModule?()=>e.default:()=>e;returni.d(t,{a:t}),t},i.d=(e,t)=>{for(varrint)i.o(t,r)&&!i.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},i.f={},i.e=e=>Promise.all(Object.keys(i.f).reduce(((t,r)=>(i.f[r](e,t),t)),[])),i.u=e=>e+"-"+e+".js?v="+{3747:"bb4bbdf7802c276cc6d5",5662:"d1f20e62402d8be29948"}[e],i.g=function(){if("object"==typeofglobalThis)returnglobalThis;try{returnthis||newFunction("return this")()}catch(e){if("object"==typeofwindow)returnwindow}}(),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r={},a="nextcloud:",i.l=(e,t,o,n)=>{if(r[e])r[e].push(t);else{vars,l;if(void0!==o)for(vard=document.getElementsByTagName("script"),c=0;c<d.length;c++){varu=d[c];if(u.getAttribute("src")==e||u.getAttribute("data-webpack")==a+o){s=u;break}}s||(l=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,i.nc&&s.setAttribute("nonce",i.nc),s.setAttribute("data-webpack",a+o),s.src=e),r[e]=[t];varp=(t,a)=>{s.onerror=s.onload=null,clearTimeout(h);varo=r[e];if(deleter[e],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach((e=>e(a))),t)returnt(a)},h=setTimeout(p.bind(null,void0,{type:"timeout",target:s}),12e4);s.onerror=p.bind(null,s.onerror),s.onload=p.bind(null,s.onload),l&&document.head.appendChild(s)}},i.r=e=>{"undefined"!=typeofSymbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),i.j=7115,(()=>{vare;i.g.importScripts&&(e=i.g.location+"");vart=i.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){varr=t.getElementsByTagNa