403Webshell
Server IP : 93.86.61.54  /  Your IP : 216.73.216.206
Web Server : Apache/2.4.62 (Ubuntu)
System : Linux rasin.ddns.net 6.8.0-124-generic #124~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 21:05:19 UTC x86_64
User : www-data ( 33)
PHP Version : 8.4.22
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/projects/nextcloud/apps/mail/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/projects/nextcloud/apps/mail/js/mail.1.e58643906e0c70ad74ff.js
(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{1046:function(n,e,a){"use strict";var o=a(1298),i=a.n(o),s=a(1299),r=a.n(s),l=a(1300),c=a.n(l),u=a(1301),d=a.n(u),p=a(12),m=a(761),v=a.n(m),g=a(1302),b=a.n(g),f=a(657),h=a.n(f),A=a(731),C=a.n(A),x=a(980),y=a.n(x),w=a(981),S=a.n(w),_=a(732),k=a(0),M=a(919),P=a(87),I=a(1050),O={name:"EditorSettings",props:{account:{type:Object,required:!0}},data:function(){return{mode:this.account.editorMode}},watch:{mode:function(t,n){var e=this;this.$store.dispatch("patchAccount",{account:this.account,data:{editorMode:t}}).then((function(){p.a.info("editor mode updated")})).catch((function(t){throw p.a.error("could not update editor mode",{error:t}),e.editorMode=n,t}))}}},j=a(40),T=a.n(j),E=a(1306),N={insert:"head",singleton:!1},B=(T()(E.a,N),E.a.locals,a(29)),$=Object(B.a)(O,(function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",[e("p",[e("input",{directives:[{name:"model",rawName:"v-model",value:t.mode,expression:"mode"}],staticClass:"radio",attrs:{id:"plaintext",type:"radio",value:"plaintext"},domProps:{checked:t._q(t.mode,"plaintext")},on:{change:function(n){t.mode="plaintext"}}}),t._v(" "),e("label",{class:{primary:"plaintext"===t.mode},attrs:{for:"plaintext"}},[t._v("\n\t\t\t"+t._s(t.t("mail","Plain text"))+"\n\t\t")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.mode,expression:"mode"}],staticClass:"radio",attrs:{id:"richtext",type:"radio",value:"richtext"},domProps:{checked:t._q(t.mode,"richtext")},on:{change:function(n){t.mode="richtext"}}}),t._v(" "),e("label",{class:{primary:"richtext"===t.mode},attrs:{for:"richtext"}},[t._v("\n\t\t\t"+t._s(t.t("mail","Rich text"))+"\n\t\t")])])])}),[],!1,null,"7db23f84",null).exports,R=a(1307),D=a.n(R),U=(a(1323),{name:"MailboxInlinePicker",components:{Treeselect:D.a},props:{account:{type:Object,required:!0},disabled:{type:Boolean,default:!1},value:{type:Number,required:!1}},data:function(){return{selected:this.value}},computed:{mailboxes:function(){return this.getMailboxes()}},watch:{selected:function(t){t!==this.value&&(this.$emit("input",t),this.selected=t)}},methods:{getMailboxes:function(t){var n=this;return(t?this.$store.getters.getSubMailboxes(t):this.$store.getters.getMailboxes(this.account.accountId)).map((function(t){return{id:t.databaseId,label:t.displayName,children:t.mailboxes.length>0?n.getMailboxes(t.databaseId):""}}))}}}),q=a(1325),L={insert:"head",singleton:!1};T()(q.a,L),q.a.locals;function H(t,n,e,a,o,i,s){try{var r=t[i](s),l=r.value}catch(t){return void e(t)}r.done?n(l):Promise.resolve(l).then(a,o)}function F(t){return function(){var n=this,e=arguments;return new Promise((function(a,o){var i=t.apply(n,e);function s(t){H(i,a,o,s,r,"next",t)}function r(t){H(i,a,o,s,r,"throw",t)}s(void 0)}))}}var K={name:"AccountDefaultsSettings",components:{MailboxInlinePicker:Object(B.a)(U,(function(){var t=this,n=t.$createElement;return(t._self._c||n)("Treeselect",{ref:"Treeselect",attrs:{options:t.mailboxes,multiple:!1,clearable:!1,disabled:t.disabled},model:{value:t.selected,callback:function(n){t.selected=n},expression:"selected"}})}),[],!1,null,null,null).exports},props:{account:{type:Object,required:!0}},data:function(){return{saving:!1}},computed:{draftsMailbox:{get:function(){var t=this.$store.getters.getMailbox(this.account.draftsMailboxId);if(t)return t.databaseId},set:function(t){var n=this;return F(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return p.a.debug("setting drafts mailbox to "+t),n.saving=!0,e.prev=2,e.next=5,n.$store.dispatch("patchAccount",{account:n.account,data:{draftsMailboxId:t}});case 5:e.next=10;break;case 7:e.prev=7,e.t0=e.catch(2),p.a.error("could not set drafts mailbox",{error:e.t0});case 10:return e.prev=10,n.saving=!1,e.finish(10);case 13:case"end":return e.stop()}}),e,null,[[2,7,10,13]])})))()}},sentMailbox:{get:function(){var t=this.$store.getters.getMailbox(this.account.sentMailboxId);if(t)return t.databaseId},set:function(t){var n=this;return F(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return p.a.debug("setting sent mailbox to "+t),n.saving=!0,e.prev=2,e.next=5,n.$store.dispatch("patchAccount",{account:n.account,data:{sentMailboxId:t}});case 5:e.next=10;break;case 7:e.prev=7,e.t0=e.catch(2),p.a.error("could not set sent mailbox",{error:e.t0});case 10:return e.prev=10,n.saving=!1,e.finish(10);case 13:case"end":return e.stop()}}),e,null,[[2,7,10,13]])})))()}},trashMailbox:{get:function(){var t=this.$store.getters.getMailbox(this.account.trashMailboxId);if(t)return t.databaseId},set:function(t){var n=this;return F(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return p.a.debug("setting trash mailbox to "+t),n.saving=!0,e.prev=2,e.next=5,n.$store.dispatch("patchAccount",{account:n.account,data:{trashMailboxId:t}});case 5:e.next=10;break;case 7:e.prev=7,e.t0=e.catch(2),p.a.error("could not set trash mailbox",{error:e.t0});case 10:return e.prev=10,n.saving=!1,e.finish(10);case 13:case"end":return e.stop()}}),e,null,[[2,7,10,13]])})))()}}}},G=a(1326),z={insert:"head",singleton:!1},W=(T()(G.a,z),G.a.locals,Object(B.a)(K,(function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",[e("p",[t._v("\n\t\t"+t._s(t.t("mail","Drafts are saved in:"))+"\n\t")]),t._v(" "),e("MailboxInlinePicker",{attrs:{account:t.account,disabled:t.saving},model:{value:t.draftsMailbox,callback:function(n){t.draftsMailbox=n},expression:"draftsMailbox"}}),t._v(" "),e("p",[t._v("\n\t\t"+t._s(t.t("mail","Sent messages are saved in:"))+"\n\t")]),t._v(" "),e("MailboxInlinePicker",{attrs:{account:t.account,disabled:t.saving},model:{value:t.sentMailbox,callback:function(n){t.sentMailbox=n},expression:"sentMailbox"}}),t._v(" "),e("p",[t._v("\n\t\t"+t._s(t.t("mail","Deleted messages are moved in:"))+"\n\t")]),t._v(" "),e("MailboxInlinePicker",{attrs:{account:t.account,disabled:t.saving},model:{value:t.trashMailbox,callback:function(n){t.trashMailbox=n},expression:"trashMailbox"}})],1)}),[],!1,null,"3a6599f7",null).exports),Y=a(1052),V=a(687),J=a(6),Q={name:"SignatureSettings",components:{TextEditor:Y.a},props:{account:{type:Object,required:!0}},data:function(){return{loading:!1,bus:new J.default}},created:function(){this.signature=this.account.signature?Object(V.d)(Object(V.a)(this.account.signature)).value:""},methods:{deleteSignature:function(){var t=this;this.loading=!0,this.$store.dispatch("updateAccountSignature",{account:this.account,signature:null}).then((function(){p.a.info("signature deleted"),t.signature="",t.loading=!1})).catch((function(t){throw p.a.error("could not delete account signature",{error:t}),t}))},saveSignature:function(){var t=this;this.loading=!0,this.$store.dispatch("updateAccountSignature",{account:this.account,signature:this.signature}).then((function(){p.a.info("signature updated"),t.loading=!1})).catch((function(t){throw p.a.error("could not update account signature",{error:t}),t}))}}},X=a(1327),Z={insert:"head",singleton:!1},tt=(T()(X.a,Z),X.a.locals,a(1328)),nt={insert:"head",singleton:!1},et=(T()(tt.a,nt),tt.a.locals,Object(B.a)(Q,(function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"section"},[e("TextEditor",{attrs:{html:!0,placeholder:t.t("mail","Signature …"),bus:t.bus},model:{value:t.signature,callback:function(n){t.signature=n},expression:"signature"}}),t._v(" "),e("button",{staticClass:"primary",class:t.loading?"icon-loading-small-dark":"icon-checkmark-white",attrs:{disabled:t.loading},on:{click:t.saveSignature}},[t._v("\n\t\t"+t._s(t.t("mail","Save signature"))+"\n\t")]),t._v(" "),t.signature?e("button",{staticClass:"button-text",on:{click:t.deleteSignature}},[t._v("\n\t\t"+t._s(t.t("mail","Delete"))+"\n\t")]):t._e()],1)}),[],!1,null,"25a86580",null).exports);function at(t,n,e,a,o,i,s){try{var r=t[i](s),l=r.value}catch(t){return void e(t)}r.done?n(l):Promise.resolve(l).then(a,o)}function ot(t){return function(){var n=this,e=arguments;return new Promise((function(a,o){var i=t.apply(n,e);function s(t){at(i,a,o,s,r,"next",t)}function r(t){at(i,a,o,s,r,"throw",t)}s(void 0)}))}}var it={name:"AliasSettings",props:{account:{type:Object,required:!0}},data:function(){return{addMode:!1,loading:!1,alias:{aliasName:this.account.name,alias:""}}},computed:{aliases:function(){return this.account.aliases}},methods:{enabledAddMode:function(){this.addMode=!0,J.default.nextTick(this.focusEmailField)},focusEmailField:function(){this.$refs.email.focus()},deleteAlias:function(t){var n=this;return ot(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n.loading=!0,e.next=3,n.$store.dispatch("deleteAlias",{account:n.account,aliasToDelete:t});case 3:p.a.info("alias deleted"),n.loading=!1;case 5:case"end":return e.stop()}}),e)})))()},saveAlias:function(){var t=this;return ot(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t.loading=!0,n.next=3,t.$store.dispatch("createAlias",{account:t.account,aliasToAdd:t.alias});case 3:p.a.info("alias added"),t.alias={aliasName:t.account.name,alias:""},t.loading=!1;case 6:case"end":return n.stop()}}),n)})))()}}},st=a(1329),rt={insert:"head",singleton:!1},lt=(T()(st.a,rt),st.a.locals,Object(B.a)(it,(function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",[e("ul",{staticClass:"aliases-list"},t._l(t.aliases,(function(n){return e("li",{key:n.id},[e("strong",[t._v(t._s(n.name))]),t._v(" <"+t._s(n.alias)+">\n\n\t\t\t"),e("button",{staticClass:"icon-delete",on:{click:function(e){return t.deleteAlias(n)}}})])})),0),t._v(" "),e("div",[t.addMode?e("input",{directives:[{name:"model",rawName:"v-model",value:t.alias.aliasName,expression:"alias.aliasName"}],attrs:{id:"alias-name",type:"text",placeholder:t.t("mail","Name"),disabled:t.loading},domProps:{value:t.alias.aliasName},on:{input:function(n){n.target.composing||t.$set(t.alias,"aliasName",n.target.value)}}}):t._e(),t._v(" "),t.addMode?e("input",{directives:[{name:"model",rawName:"v-model",value:t.alias.alias,expression:"alias.alias"}],ref:"email",attrs:{id:"alias",type:"email",placeholder:t.t("mail","Mail Address"),disabled:t.loading},domProps:{value:t.alias.alias},on:{input:function(n){n.target.composing||t.$set(t.alias,"alias",n.target.value)}}}):t._e()]),t._v(" "),e("div",[t.addMode?t._e():e("button",{staticClass:"primary icon-add",on:{click:t.enabledAddMode}},[t._v("\n\t\t\t"+t._s(t.t("mail","Add alias"))+"\n\t\t")]),t._v(" "),t.addMode?e("button",{staticClass:"primary",class:t.loading?"icon-loading-small-dark":"icon-checkmark-white",attrs:{disabled:t.loading},on:{click:t.saveAlias}},[t._v("\n\t\t\t"+t._s(t.t("mail","Save"))+"\n\t\t")]):t._e()])])}),[],!1,null,"2c8c77c6",null).exports),ct=a(1330),ut=a.n(ct),dt=a(1333),pt=a.n(dt),mt=a(979),vt=a(535),gt=a.n(vt),bt=a(1334),ft=a.n(bt),ht=a(640);function At(t,n,e,a,o,i,s){try{var r=t[i](s),l=r.value}catch(t){return void e(t)}r.done?n(l):Promise.resolve(l).then(a,o)}function Ct(t){return function(){var n=this,e=arguments;return new Promise((function(a,o){var i=t.apply(n,e);function s(t){At(i,a,o,s,r,"next",t)}function r(t){At(i,a,o,s,r,"throw",t)}s(void 0)}))}}var xt=ft()(gt()("email")),yt={name:"TrustedSenders",data:function(){return{list:[]}},computed:{sortedSenders:function(){return xt(this.list)}},mounted:function(){var t=this;return Ct(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Object(mt.a)();case 2:t.list=n.sent;case 3:case"end":return n.stop()}}),n)})))()},methods:{removeSender:function(n){var e=this;return Ct(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return e.list=e.list.filter((function(t){return t.id!==n.id})),a.prev=1,a.next=4,Object(mt.b)(n.email,n.type,!1);case 4:a.next=11;break;case 6:a.prev=6,a.t0=a.catch(1),p.a.error("Could not remove trusted sender ".concat(n.email),{error:a.t0}),Object(ht.b)(t("mail","Could not remove trusted sender {sender}",{sender:n.email})),e.list.push(n);case 11:case"end":return a.stop()}}),a,null,[[1,6]])})))()},senderType:function(n){switch(n){case"individual":return t("mail","individual");case"domain":return t("mail","domain")}return n}}},wt=Object(B.a)(yt,(function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",[t._l(t.sortedSenders,(function(n){return e("div",{key:n.email},[t._v("\n\t\t"+t._s(n.email)+"\n\t\t"+t._s(t.senderType(n.type))+"\n\t\t"),e("button",{staticClass:"button",on:{click:function(e){return t.removeSender(n)}}},[t._v("\n\t\t\t"+t._s(t.t("mail","Remove"))+"\n\t\t")])])})),t._v(" "),t.sortedSenders.length?t._e():e("span",[t._v(" "+t._s(t.t("mail","No senders are trusted at the moment.")))])],2)}),[],!1,null,"e41e0a8c",null).exports;function St(t,n,e,a,o,i,s){try{var r=t[i](s),l=r.value}catch(t){return void e(t)}r.done?n(l):Promise.resolve(l).then(a,o)}var _t={name:"SieveAccountForm",props:{account:{type:Object,required:!0}},data:function(){return{sieveConfig:{sieveEnabled:this.account.sieveEnabled,sieveHost:this.account.sieveHost||this.account.imapHost,sievePort:this.account.sievePort||4190,sieveUser:this.account.sieveUser||"",sievePassword:"",sieveSslMode:this.account.sieveSslMode||"tls"},loading:!1,useImapCredentials:!this.account.sieveUser,errorMessage:"",submitButtonText:t("mail","Save sieve settings")}},methods:{onSubmit:function(){var t,n=this;return(t=regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n.loading=!0,n.errorMessage="",""===n.sieveConfig.sieveUser&&""===n.sieveConfig.sievePassword&&(n.useImapCredentials=!0),n.useImapCredentials&&(n.sieveConfig.sieveUser="",n.sieveConfig.sievePassword=""),t.prev=4,t.next=7,n.$store.dispatch("updateSieveAccount",{account:n.account,data:n.sieveConfig});case 7:t.next=12;break;case 9:t.prev=9,t.t0=t.catch(4),n.errorMessage=t.t0.message;case 12:n.loading=!1;case 13:case"end":return t.stop()}}),t,null,[[4,9]])})),function(){var n=this,e=arguments;return new Promise((function(a,o){var i=t.apply(n,e);function s(t){St(i,a,o,s,r,"next",t)}function r(t){St(i,a,o,s,r,"throw",t)}s(void 0)}))})()}}},kt=a(1336),Mt={insert:"head",singleton:!1},Pt=(T()(kt.a,Mt),kt.a.locals,Object(B.a)(_t,(function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("form",{attrs:{id:"sieve-form"}},[e("p",[e("input",{directives:[{name:"model",rawName:"v-model",value:t.sieveConfig.sieveEnabled,expression:"sieveConfig.sieveEnabled"}],staticClass:"radio",attrs:{id:"sieve-disabled",type:"radio",name:"sieve-active"},domProps:{value:!1,checked:t._q(t.sieveConfig.sieveEnabled,!1)},on:{change:function(n){return t.$set(t.sieveConfig,"sieveEnabled",!1)}}}),t._v(" "),e("label",{class:{primary:!t.sieveConfig.sieveEnabled},attrs:{for:"sieve-disabled"}},[t._v("\n\t\t\t"+t._s(t.t("mail","Disabled"))+"\n\t\t")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.sieveConfig.sieveEnabled,expression:"sieveConfig.sieveEnabled"}],staticClass:"radio",attrs:{id:"sieve-enabled",type:"radio",name:"sieve-active"},domProps:{value:!0,checked:t._q(t.sieveConfig.sieveEnabled,!0)},on:{change:function(n){return t.$set(t.sieveConfig,"sieveEnabled",!0)}}}),t._v(" "),e("label",{class:{primary:t.sieveConfig.sieveEnabled},attrs:{for:"sieve-enabled"}},[t._v("\n\t\t\t"+t._s(t.t("mail","Enabled"))+"\n\t\t")])]),t._v(" "),t.sieveConfig.sieveEnabled?[e("label",{attrs:{for:"sieve-host"}},[t._v(t._s(t.t("mail","Sieve Host")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.sieveConfig.sieveHost,expression:"sieveConfig.sieveHost"}],attrs:{id:"sieve-host",type:"text",required:""},domProps:{value:t.sieveConfig.sieveHost},on:{input:function(n){n.target.composing||t.$set(t.sieveConfig,"sieveHost",n.target.value)}}}),t._v(" "),e("h4",[t._v(t._s(t.t("mail","Sieve Security")))]),t._v(" "),e("div",{staticClass:"flex-row"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.sieveConfig.sieveSslMode,expression:"sieveConfig.sieveSslMode"}],attrs:{id:"sieve-sec-none",type:"radio",name:"sieve-sec",value:"none"},domProps:{checked:t._q(t.sieveConfig.sieveSslMode,"none")},on:{change:function(n){return t.$set(t.sieveConfig,"sieveSslMode","none")}}}),t._v(" "),e("label",{staticClass:"button",class:{primary:"none"===t.sieveConfig.sieveSslMode},attrs:{for:"sieve-sec-none"}},[t._v(t._s(t.t("mail","None")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.sieveConfig.sieveSslMode,expression:"sieveConfig.sieveSslMode"}],attrs:{id:"sieve-sec-ssl",type:"radio",name:"sieve-sec",value:"ssl"},domProps:{checked:t._q(t.sieveConfig.sieveSslMode,"ssl")},on:{change:function(n){return t.$set(t.sieveConfig,"sieveSslMode","ssl")}}}),t._v(" "),e("label",{staticClass:"button",class:{primary:"ssl"===t.sieveConfig.sieveSslMode},attrs:{for:"sieve-sec-ssl"}},[t._v("\n\t\t\t\t"+t._s(t.t("mail","SSL/TLS"))+"\n\t\t\t")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.sieveConfig.sieveSslMode,expression:"sieveConfig.sieveSslMode"}],attrs:{id:"sieve-sec-tls",type:"radio",name:"sieve-sec",value:"tls"},domProps:{checked:t._q(t.sieveConfig.sieveSslMode,"tls")},on:{change:function(n){return t.$set(t.sieveConfig,"sieveSslMode","tls")}}}),t._v(" "),e("label",{staticClass:"button",class:{primary:"tls"===t.sieveConfig.sieveSslMode},attrs:{for:"sieve-sec-tls"}},[t._v("\n\t\t\t\t"+t._s(t.t("mail","STARTTLS"))+"\n\t\t\t")])]),t._v(" "),e("label",{attrs:{for:"sieve-port"}},[t._v(t._s(t.t("mail","Sieve Port")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.sieveConfig.sievePort,expression:"sieveConfig.sievePort"}],attrs:{id:"sieve-port",type:"text",required:""},domProps:{value:t.sieveConfig.sievePort},on:{input:function(n){n.target.composing||t.$set(t.sieveConfig,"sievePort",n.target.value)}}}),t._v(" "),e("h4",[t._v(t._s(t.t("mail","Sieve Credentials")))]),t._v(" "),e("p",[e("input",{directives:[{name:"model",rawName:"v-model",value:t.useImapCredentials,expression:"useImapCredentials"}],staticClass:"radio",attrs:{id:"sieve-credentials-imap",type:"radio"},domProps:{value:!0,checked:t._q(t.useImapCredentials,!0)},on:{change:function(n){t.useImapCredentials=!0}}}),t._v(" "),e("label",{class:{primary:t.useImapCredentials},attrs:{for:"sieve-credentials-imap"}},[t._v("\n\t\t\t\t"+t._s(t.t("mail","IMAP Credentials"))+"\n\t\t\t")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.useImapCredentials,expression:"useImapCredentials"}],staticClass:"radio",attrs:{id:"sieve-credentials-custom",type:"radio"},domProps:{value:!1,checked:t._q(t.useImapCredentials,!1)},on:{change:function(n){t.useImapCredentials=!1}}}),t._v(" "),e("label",{class:{primary:!t.useImapCredentials},attrs:{for:"sieve-credentials-custom"}},[t._v("\n\t\t\t\t"+t._s(t.t("mail","Custom"))+"\n\t\t\t")])]),t._v(" "),t.useImapCredentials?t._e():[e("label",{attrs:{for:"sieve-user"}},[t._v(t._s(t.t("mail","Sieve User")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.sieveConfig.sieveUser,expression:"sieveConfig.sieveUser"}],attrs:{id:"sieve-user",type:"text",required:""},domProps:{value:t.sieveConfig.sieveUser},on:{input:function(n){n.target.composing||t.$set(t.sieveConfig,"sieveUser",n.target.value)}}}),t._v(" "),e("label",{attrs:{for:"sieve-password"}},[t._v(t._s(t.t("mail","Sieve Password")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.sieveConfig.sievePassword,expression:"sieveConfig.sievePassword"}],attrs:{id:"sieve-password",type:"password",required:""},domProps:{value:t.sieveConfig.sievePassword},on:{input:function(n){n.target.composing||t.$set(t.sieveConfig,"sievePassword",n.target.value)}}})]]:t._e(),t._v(" "),t._t("feedback"),t._v(" "),t.errorMessage?e("p",[t._v("\n\t\t"+t._s(t.t("mail","Oh Snap!"))+"\n\t\t"+t._s(t.errorMessage)+"\n\t")]):t._e(),t._v(" "),e("input",{staticClass:"primary",attrs:{type:"submit",disabled:t.loading},domProps:{value:t.submitButtonText},on:{click:function(n){return n.preventDefault(),t.onSubmit(n)}}})],2)}),[],!1,null,"8b1dc5a0",null).exports),It=a(541);function Ot(t,n,e,a,o,i,s){try{var r=t[i](s),l=r.value}catch(t){return void e(t)}r.done?n(l):Promise.resolve(l).then(a,o)}function jt(t){return function(){var n=this,e=arguments;return new Promise((function(a,o){var i=t.apply(n,e);function s(t){Ot(i,a,o,s,r,"next",t)}function r(t){Ot(i,a,o,s,r,"throw",t)}s(void 0)}))}}var Tt={name:"SieveFilterForm",props:{account:{type:Object,required:!0}},data:function(){return{active:{},loading:!1,errorMessage:""}},mounted:function(){var t=this;return jt(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Object(It.a)(t.account.id);case 2:t.active=n.sent;case 3:case"end":return n.stop()}}),n)})))()},methods:{saveActiveScript:function(){var t=this;return jt(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t.loading=!0,t.errorMessage="",n.prev=2,n.next=5,Object(It.c)(t.account.id,t.active);case 5:n.next=10;break;case 7:n.prev=7,n.t0=n.catch(2),t.errorMessage=n.t0.message;case 10:t.loading=!1;case 11:case"end":return n.stop()}}),n,null,[[2,7]])})))()}}},Et=a(1337),Nt={insert:"head",singleton:!1};T()(Et.a,Nt),Et.a.locals;function Bt(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);n&&(a=a.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,a)}return e}function $t(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?Bt(Object(e),!0).forEach((function(n){Rt(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Bt(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}function Rt(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}var Dt={name:"AccountSettings",components:{SieveAccountForm:Pt,SieveFilterForm:Object(B.a)(Tt,(function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"section"},[e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.active.script,expression:"active.script"},{name:"shortkey",rawName:"v-shortkey.avoid",modifiers:{avoid:!0}}],attrs:{id:"sieve-text-area",rows:"20",disabled:t.loading},domProps:{value:t.active.script},on:{input:function(n){n.target.composing||t.$set(t.active,"script",n.target.value)}}}),t._v(" "),t.errorMessage?e("p",[t._v("\n\t\t"+t._s(t.t("mail","Oh Snap!"))+"\n\t\t"+t._s(t.errorMessage)+"\n\t")]):t._e(),t._v(" "),e("button",{staticClass:"primary",class:t.loading?"icon-loading-small-dark":"icon-checkmark-white",attrs:{disabled:t.loading},on:{click:t.saveActiveScript}},[t._v("\n\t\t"+t._s(t.t("mail","Save sieve script"))+"\n\t")])])}),[],!1,null,"568aaba6",null).exports,TrustedSenders:wt,AccountForm:I.a,AliasSettings:lt,EditorSettings:$,SignatureSettings:et,AppSettingsDialog:ut.a,AppSettingsSection:pt.a,AccountDefaultsSettings:W},props:{account:{required:!0,type:Object},open:{required:!0,type:Boolean}},data:function(){return{showSettings:!1}},computed:{menu:function(){return this.buildMenu()},displayName:function(){return this.account.name},email:function(){return this.account.emailAddress}},watch:{showSettings:function(t){t||this.$emit("update:open",t)},open:function(t){t&&(this.showSettings=!0)}},methods:{onSave:function(t){return p.a.log("saving data",{data:t}),this.$store.dispatch("updateAccount",$t($t({},t),{},{accountId:this.account.id})).then((function(t){return t})).catch((function(t){throw p.a.error("account update failed:",{error:t}),t}))},handleClick:function(){this.$refs.accountForm.$el.scrollIntoView({behavior:"smooth"})}}},Ut=a(1338),qt={insert:"head",singleton:!1},Lt=(T()(Ut.a,qt),Ut.a.locals,Object(B.a)(Dt,(function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("AppSettingsDialog",{attrs:{open:t.showSettings,"show-navigation":!0},on:{"update:open":function(n){t.showSettings=n}}},[e("AppSettingsSection",{attrs:{title:t.t("mail","Account settings")}},[e("strong",[t._v(t._s(t.displayName))]),t._v(" <"+t._s(t.email)+">\n\t\t"),t.account.provisioned?t._e():e("a",{staticClass:"button icon-rename",attrs:{title:t.t("mail","Change name")},on:{click:t.handleClick}}),t._v(" "),t.account.provisioned?t._e():e("AliasSettings",{attrs:{account:t.account}})],1),t._v(" "),e("AppSettingsSection",{attrs:{title:t.t("mail","Signature")}},[e("p",{staticClass:"settings-hint"},[t._v("\n\t\t\t"+t._s(t.t("mail","A signature is added to the text of new messages and replies."))+"\n\t\t")]),t._v(" "),e("SignatureSettings",{attrs:{account:t.account}})],1),t._v(" "),e("AppSettingsSection",{attrs:{title:t.t("mail","Writing mode")}},[e("p",{staticClass:"settings-hint"},[t._v("\n\t\t\t"+t._s(t.t("mail","Preferred writing mode for new messages and replies."))+"\n\t\t")]),t._v(" "),e("EditorSettings",{attrs:{account:t.account}})],1),t._v(" "),e("AppSettingsSection",{attrs:{title:t.t("mail","Default folders")}},[e("p",{staticClass:"settings-hint"},[t._v("\n\t\t\t"+t._s(t.t("mail","The folders to use for drafts, sent messages and deleted messages."))+"\n\t\t")]),t._v(" "),e("AccountDefaultsSettings",{attrs:{account:t.account}})],1),t._v(" "),t.account&&!t.account.provisioned?e("AppSettingsSection",{attrs:{title:t.t("mail","Mail server")}},[e("div",{attrs:{id:"mail-settings"}},[e("AccountForm",{key:t.account.accountId,ref:"accountForm",attrs:{"display-name":t.displayName,email:t.email,save:t.onSave,account:t.account}})],1)]):t._e(),t._v(" "),t.account&&!t.account.provisioned?e("AppSettingsSection",{attrs:{title:t.t("mail","Sieve filter server")}},[e("div",{attrs:{id:"sieve-settings"}},[e("SieveAccountForm",{key:t.account.accountId,ref:"sieveAccountForm",attrs:{account:t.account}})],1)]):t._e(),t._v(" "),t.account&&t.account.sieveEnabled?e("AppSettingsSection",{attrs:{title:t.t("mail","Sieve filter rules")}},[e("div",{attrs:{id:"sieve-filter"}},[e("SieveFilterForm",{key:t.account.accountId,ref:"sieveFilterForm",attrs:{account:t.account}})],1)]):t._e(),t._v(" "),e("AppSettingsSection",{attrs:{title:t.t("mail","Trusted senders")}},[e("TrustedSenders")],1)],1)}),[],!1,null,"4aa4f25a",null).exports);function Ht(t,n,e,a,o,i,s){try{var r=t[i](s),l=r.value}catch(t){return void e(t)}r.done?n(l):Promise.resolve(l).then(a,o)}var Ft={name:"NavigationAccount",components:{AppNavigationItem:v.a,AppNavigationIconBullet:b.a,ActionButton:h.a,ActionCheckbox:C.a,ActionInput:y.a,ActionText:S.a,AccountSettings:Lt},props:{account:{type:Object,required:!0},firstMailbox:{type:Object,default:function(){}},isFirst:{type:Boolean,default:!1},isLast:{type:Boolean,default:!1}},data:function(){return{menuOpen:!1,loading:{delete:!1},savingShowOnlySubscribed:!1,quota:void 0,editing:!1,showSaving:!1,showSettings:!1}},computed:{visible:function(){return!0!==this.account.isUnified&&!1!==this.account.visible},firstMailboxRoute:function(){return this.firstMailbox?{name:"mailbox",params:{mailboxId:this.firstMailbox.databaseId}}:""},id:function(){return"account-"+this.account.id},bulletColor:function(){return this.account.error?void 0:Object(M.a)(this.account.emailAddress)},iconError:function(){return this.account.error?"icon-error":void 0},quotaText:function(){return void 0===this.quota?t("mail","Loading …"):!1===this.quota?t("mail","Not supported by the server"):t("mail","{usage} of {limit} used",{usage:Object(_.formatFileSize)(this.quota.usage),limit:Object(_.formatFileSize)(this.quota.limit)})}},methods:{createMailbox:function(t){this.editing=!0;var n=t.target.elements[1].value;p.a.info("creating mailbox "+n),this.menuOpen=!1,this.$store.dispatch("createMailbox",{account:this.account,name:n}).then((function(){return p.a.info("mailbox ".concat(n," created"))})).catch((function(t){throw p.a.error("could not create mailbox",{error:t}),t})),this.editing=!1,this.showSaving=!1},openCreateMailbox:function(){this.editing=!0,this.showSaving=!1},removeAccount:function(){var n=this,e=this.account.id;p.a.info("delete account",{account:this.account});var a=t("mail","The account for {email} and cached email data will be removed from Nextcloud, but not from your email provider.",{email:this.account.emailAddress});OC.dialogs.confirmDestructive(a,t("mail","Remove account {email}",{email:this.account.emailAddress}),{type:OC.dialogs.YES_NO_BUTTONS,confirm:t("mail","Remove {email}",{email:this.account.emailAddress}),confirmClasses:"error",cancel:t("mail","Cancel")},(function(t){if(t)return n.$store.dispatch("deleteAccount",n.account).then((function(){n.loading.delete=!0})).then((function(){p.a.info("account ".concat(e," deleted, redirecting …")),location.href=Object(k.generateUrl)("/apps/mail")})).catch((function(t){return p.a.error("could not delete account",{error:t})}));n.loading.delete=!1}))},changeAccountOrderUp:function(){this.$store.dispatch("moveAccount",{account:this.account,up:!0}).catch((function(t){return p.a.error("could not move account up",{error:t})}))},changeAccountOrderDown:function(){this.$store.dispatch("moveAccount",{account:this.account}).catch((function(t){return p.a.error("could not move account down",{error:t})}))},changeShowSubscribedOnly:function(t){var n=this;this.savingShowOnlySubscribed=!0,this.$store.dispatch("patchAccount",{account:this.account,data:{showSubscribedOnly:t}}).then((function(){n.savingShowOnlySubscribed=!1,p.a.info("show only subscribed mailboxes updated to "+t)})).catch((function(t){throw p.a.error("could not update subscription mode",{error:t}),n.savingShowOnlySubscribed=!1,t}))},onMenuToggle:function(t){t&&(console.debug("accounts menu opened, fetching quota"),this.fetchQuota())},fetchQuota:function(){var t,n=this;return(t=regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(P.e)(n.account.id);case 2:e=t.sent,console.debug("quota fetched",{quota:e}),n.quota=void 0!==e&&e;case 5:case"end":return t.stop()}}),t)})),function(){var n=this,e=arguments;return new Promise((function(a,o){var i=t.apply(n,e);function s(t){Ht(i,a,o,s,r,"next",t)}function r(t){Ht(i,a,o,s,r,"throw",t)}s(void 0)}))})()},toggleAccountSettings:function(){this.displayAccountSettings=!this.displayAccountSettings},showAccountSettings:function(){this.showSettings=!0}}},Kt=Object(B.a)(Ft,(function(){var t=this,n=t.$createElement,e=t._self._c||n;return t.visible?e("AppNavigationItem",{key:t.id,attrs:{id:t.id,icon:t.iconError,"menu-open":t.menuOpen,title:t.account.emailAddress,to:t.firstMailboxRoute,exact:!0},on:{"update:menuOpen":[function(n){t.menuOpen=n},t.onMenuToggle],"update:menu-open":function(n){t.menuOpen=n}},scopedSlots:t._u([{key:"actions",fn:function(){return[t.account.isUnified?t._e():e("ActionText",{attrs:{icon:"icon-info",title:t.t("mail","Quota")}},[t._v("\n\t\t\t"+t._s(t.quotaText)+"\n\t\t")]),t._v(" "),e("ActionButton",{attrs:{icon:"icon-settings","close-after-click":!0},on:{click:t.showAccountSettings,shortkey:t.toggleAccountSettings}},[t._v("\n\t\t\t"+t._s(t.t("mail","Account settings"))+"\n\t\t")]),t._v(" "),e("ActionCheckbox",{attrs:{checked:t.account.showSubscribedOnly,disabled:t.savingShowOnlySubscribed},on:{"update:checked":t.changeShowSubscribedOnly}},[t._v("\n\t\t\t"+t._s(t.t("mail","Show only subscribed mailboxes"))+"\n\t\t")]),t._v(" "),t.editing?t._e():e("ActionButton",{attrs:{icon:"icon-folder"},on:{click:t.openCreateMailbox}},[t._v("\n\t\t\t"+t._s(t.t("mail","Add mailbox"))+"\n\t\t")]),t._v(" "),t.editing?e("ActionInput",{attrs:{icon:"icon-folder"},on:{submit:function(n){return n.preventDefault(),n.stopPropagation(),t.createMailbox(n)}}}):t._e(),t._v(" "),t.showSaving?e("ActionText",{attrs:{icon:"icon-loading-small"}},[t._v("\n\t\t\t"+t._s(t.t("mail","Saving"))+"\n\t\t")]):t._e(),t._v(" "),t.isFirst?t._e():e("ActionButton",{attrs:{icon:"icon-triangle-n"},on:{click:t.changeAccountOrderUp}},[t._v("\n\t\t\t"+t._s(t.t("mail","Move up"))+"\n\t\t")]),t._v(" "),t.isLast?t._e():e("ActionButton",{attrs:{icon:"icon-triangle-s"},on:{click:t.changeAccountOrderDown}},[t._v("\n\t\t\t"+t._s(t.t("mail","Move down"))+"\n\t\t")]),t._v(" "),t.account.provisioned?t._e():e("ActionButton",{attrs:{icon:"icon-delete"},on:{click:t.removeAccount}},[t._v("\n\t\t\t"+t._s(t.t("mail","Remove account"))+"\n\t\t")])]},proxy:!0},{key:"extra",fn:function(){return[e("AccountSettings",{attrs:{open:t.showSettings,account:t.account},on:{"update:open":function(n){t.showSettings=n}}})]},proxy:!0}],null,!1,4058185783)},[t.bulletColor?e("AppNavigationIconBullet",{attrs:{slot:"icon",color:t.bulletColor},slot:"icon"}):t._e()],1):t._e()}),[],!1,null,null,null).exports;function Gt(t,n,e,a,o,i,s){try{var r=t[i](s),l=r.value}catch(t){return void e(t)}r.done?n(l):Promise.resolve(l).then(a,o)}var zt={name:"NavigationAccountExpandCollapse",components:{AppNavigationItem:v.a},props:{account:{type:Object,required:!0}},computed:{id:function(){return"collapse-"+this.account.id},title:function(){return this.account.collapsed&&this.account.showSubscribedOnly?t("mail","Show all subscribed mailboxes"):this.account.collapsed&&!this.account.showSubscribedOnly?t("mail","Show all mailboxes"):t("mail","Collapse mailboxes")}},methods:{toggleCollapse:function(){var t,n=this;return(t=regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return p.a.debug("toggling collapsed mailboxes for account "+n.account.id),t.prev=1,t.next=4,n.$store.commit("toggleAccountCollapsed",n.account.id);case 4:return t.next=6,n.$store.dispatch("setAccountSetting",{accountId:n.account.id,key:"collapsed",value:n.account.collapsed});case 6:t.next=11;break;case 8:t.prev=8,t.t0=t.catch(1),p.a.error("could not update account settings",{error:t.t0});case 11:case"end":return t.stop()}}),t,null,[[1,8]])})),function(){var n=this,e=arguments;return new Promise((function(a,o){var i=t.apply(n,e);function s(t){Gt(i,a,o,s,r,"next",t)}function r(t){Gt(i,a,o,s,r,"throw",t)}s(void 0)}))})()}}},Wt=a(1339),Yt={insert:"head",singleton:!1},Vt=(T()(Wt.a,Yt),Wt.a.locals,Object(B.a)(zt,(function(){var t=this.$createElement;return(this._self._c||t)("AppNavigationItem",{attrs:{title:this.title},on:{click:this.toggleCollapse}})}),[],!1,null,"2d33cadc",null).exports),Jt=a(1340),Qt=a.n(Jt);function Xt(t,n,e,a,o,i,s){try{var r=t[i](s),l=r.value}catch(t){return void e(t)}r.done?n(l):Promise.resolve(l).then(a,o)}var Zt={name:"MoveMailboxModal",components:{MailboxPicker:a(1051).a},props:{account:{type:Object,required:!0},mailbox:{type:Object,required:!0}},data:function(){return{moving:!1,destMailboxId:void 0}},methods:{onClose:function(){this.$emit("close")},onMove:function(){var t,n=this;return(t=regeneratorRuntime.mark((function t(){var e,a,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n.moving=!0,n.mailbox.id===n.destMailboxId){t.next=22;break}if(t.prev=2,n.destMailboxId){t.next=9;break}return e=n.mailbox.displayName,t.next=7,n.$store.dispatch("renameMailbox",{account:n.account,mailbox:n.mailbox,newName:e});case 7:t.next=13;break;case 9:return a=n.$store.getters.getMailbox(n.destMailboxId),o=a.name+n.mailbox.delimiter+n.mailbox.name,t.next=13,n.$store.dispatch("renameMailbox",{account:n.account,mailbox:n.mailbox,newName:o});case 13:t.next=18;break;case 15:t.prev=15,t.t0=t.catch(2),p.a.error("could not move mailbox",{error:t.t0});case 18:return t.prev=18,n.moving=!1,n.$emit("close"),t.finish(18);case 22:case"end":return t.stop()}}),t,null,[[2,15,18,22]])})),function(){var n=this,e=arguments;return new Promise((function(a,o){var i=t.apply(n,e);function s(t){Xt(i,a,o,s,r,"next",t)}function r(t){Xt(i,a,o,s,r,"throw",t)}s(void 0)}))})()},genId:function(t){return"mailbox-"+t.databaseId}}},tn=Object(B.a)(Zt,(function(){var t=this,n=t.$createElement;return(t._self._c||n)("MailboxPicker",{attrs:{account:t.account,selected:t.destMailboxId,loading:t.moving,"picked-mailbox":t.mailbox,"allow-root":!0,"label-select":t.t("mail","Move"),"label-select-loading":t.t("mail","Moving")},on:{"update:selected":function(n){t.destMailboxId=n},select:t.onMove,close:t.onClose}})}),[],!1,null,null,null).exports,nn=a(35),en=a(86),an=a(38),on=a(917),sn=a(96),rn=a(705);function ln(t,n,e,a,o,i,s){try{var r=t[i](s),l=r.value}catch(t){return void e(t)}r.done?n(l):Promise.resolve(l).then(a,o)}function cn(t){return function(){var n=this,e=arguments;return new Promise((function(a,o){var i=t.apply(n,e);function s(t){ln(i,a,o,s,r,"next",t)}function r(t){ln(i,a,o,s,r,"throw",t)}s(void 0)}))}}function un(t,n){for(var e=0;e<n.length;e++){var a=n[e];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}var dn,pn=function(){function t(n,e,a){!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t),this.el=n,this.options=a,this.registerListeners.bind(this)(n),this.setInitialAttributes()}var n,e,a,o,i;return n=t,(e=[{key:"setInitialAttributes",value:function(){this.draggableInfo={},this.setStatus("enabled")}},{key:"update",value:function(t,n){this.setInitialAttributes(),this.options=n.options}},{key:"registerListeners",value:function(t){rn.a.$on("dragStart",this.onDragStart.bind(this)),rn.a.$on("dragEnd",this.onDragEnd.bind(this)),t.firstChild.addEventListener("dragover",this.onDragOver.bind(this)),t.firstChild.addEventListener("dragleave",this.onDragLeave.bind(this)),t.firstChild.addEventListener("drop",this.onDrop.bind(this))}},{key:"removeListeners",value:function(t){rn.a.$off("dragStart",this.onDragStart),rn.a.$off("dragEnd",this.onDragEnd),t.firstChild.removeEventListener("dragover",this.onDragOver),t.firstChild.removeEventListener("dragleave",this.onDragLeave),t.firstChild.removeEventListener("drop",this.onDrop)}},{key:"setStatus",value:function(t){this.el.setAttribute("droppable-mailbox",t)}},{key:"onDragStart",value:function(t){this.draggableInfo=t,this.canBeDropped()||this.setStatus("disabled")}},{key:"canBeDropped",value:function(){return this.isSameAccount()&&this.options.isValidDropTarget}},{key:"isSameAccount",value:function(){return this.draggableInfo.accountId===this.options.accountId}},{key:"onDragEnd",value:function(){this.setInitialAttributes()}},{key:"onDragOver",value:function(t){t.preventDefault(),this.draggableInfo.mailboxId!==this.options.mailboxId&&(this.options.isValidDropTarget&&this.setStatus("dragover"),t.dataTransfer.dropEffect="move")}},{key:"onDragLeave",value:function(t){t.preventDefault(),this.setStatus("enabled")}},{key:"onDrop",value:(i=cn(regeneratorRuntime.mark((function t(n){var e,a,o=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n.preventDefault(),this.draggableInfo.mailboxId!==this.options.mailboxId){t.next=3;break}return t.abrupt("return");case 3:return this.setInitialAttributes(),e=JSON.parse(n.dataTransfer.getData("text")),rn.a.$emit("envelopesDropped",{envelopes:e}),t.prev=6,a=e.map(function(){var t=cn(regeneratorRuntime.mark((function t(n){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,o.processDroppedItem(parseInt(n.envelopeId));case 2:return e=t.sent,t.abrupt("return",e);case 4:case"end":return t.stop()}}),t)})));return function(n){return t.apply(this,arguments)}}()),t.next=10,Promise.all(a);case 10:t.next=15;break;case 12:t.prev=12,t.t0=t.catch(6),p.a.error("could not process dropped messages",t.t0);case 15:return t.prev=15,rn.a.$emit("envelopesMoved",{mailboxId:this.options.mailboxId,movedEnvelopes:e}),t.finish(15);case 18:case"end":return t.stop()}}),t,this,[[6,12,15,18]])}))),function(t){return i.apply(this,arguments)})},{key:"processDroppedItem",value:(o=cn(regeneratorRuntime.mark((function t(n){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(e=document.querySelector('[data-envelope-id="'.concat(n,'"]'))).setAttribute("draggable-envelope","pending"),t.prev=2,t.next=5,sn.a.dispatch("moveMessage",{id:n,destMailboxId:this.options.mailboxId});case 5:t.next=11;break;case 7:t.prev=7,t.t0=t.catch(2),e.removeAttribute("draggable-envelope"),p.a.error("could not move messages",t.t0);case 11:case"end":return t.stop()}}),t,this,[[2,7]])}))),function(t){return o.apply(this,arguments)})}])&&un(n.prototype,e),a&&un(n,a),t}(),mn={bind:function(t,n,e){dn=new pn(t,e.context,n.value)},componentUpdated:function(t,n){dn.options=n.value,dn.update(t,dn)}};function vn(t,n,e,a,o,i,s){try{var r=t[i](s),l=r.value}catch(t){return void e(t)}r.done?n(l):Promise.resolve(l).then(a,o)}function gn(t){return function(){var n=this,e=arguments;return new Promise((function(a,o){var i=t.apply(n,e);function s(t){vn(i,a,o,s,r,"next",t)}function r(t){vn(i,a,o,s,r,"throw",t)}s(void 0)}))}}function bn(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);n&&(a=a.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,a)}return e}function fn(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?bn(Object(e),!0).forEach((function(n){hn(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):bn(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}function hn(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}var An={name:"NavigationMailbox",components:{AppNavigationItem:v.a,AppNavigationCounter:Qt.a,ActionText:S.a,ActionButton:h.a,ActionCheckbox:C.a,ActionInput:y.a,MoveMailboxModal:tn},directives:{droppableMailbox:mn},props:{account:{type:Object,required:!0},mailbox:{type:Object,required:!0},top:{type:Boolean,default:!0},filter:{type:String,default:"",required:!1}},data:function(){var t,n;return{debug:(null===(t=window)||void 0===t||null===(n=t.OC)||void 0===n?void 0:n.debug)||!1,mailboxStats:void 0,loadingMarkAsRead:!1,clearingCache:!1,showSaving:!1,changeSubscription:!1,changingSyncInBackground:!1,editing:!1,showSubMailboxes:!1,menuOpen:!1,renameLabel:!0,renameInput:!1,mailboxName:this.mailbox.displayName,showMoveModal:!1}},computed:{visible:function(){return(!1===this.account.showSubscribedOnly||this.mailbox.attributes&&this.mailbox.attributes.includes("\\subscribed"))&&this.isUnifiedButOnlyInbox},notInbox:function(){return"inbox"!==this.mailbox.name.toLowerCase()},notVirtual:function(){return!this.account.isUnified&&"flagged"!==this.mailbox.specialRole},title:function(){return"starred"===this.filter?Object(on.a)(fn(fn({},this.mailbox),{},{specialUse:["flagged"]})):Object(on.a)(this.mailbox)},icon:function(){return"starred"===this.filter?"icon-flagged":this.mailbox.isPriorityInbox?"icon-important":this.mailbox.specialRole?"icon-"+this.mailbox.specialRole:"icon-folder"},to:function(){return{name:"mailbox",params:{mailboxId:this.mailbox.databaseId,filter:this.filter?this.filter:void 0}}},hasSubMailboxes:function(){return this.subMailboxes.length>0},subMailboxes:function(){return this.$store.getters.getSubMailboxes(this.mailbox.databaseId)},statsText:function(){return this.mailboxStats&&"total"in this.mailboxStats&&"unread"in this.mailboxStats?0===this.mailboxStats.unread?Object(an.translatePlural)("mail","{total} message","{total} messages",this.mailboxStats.total,{total:this.mailboxStats.total}):Object(an.translatePlural)("mail","{unread} unread of {total}","{unread} unread of {total}",this.mailboxStats.unread,{total:this.mailboxStats.total,unread:this.mailboxStats.unread}):t("mail","Loading …")},isSubscribed:function(){return this.mailbox.attributes&&this.mailbox.attributes.includes("\\subscribed")},isDroppableSpecialMailbox:function(){return"starred"!==this.filter&&![this.account.draftsMailboxId,this.account.sentMailboxId].includes(this.mailbox.databaseId)},isActive:function(){return this.$route.params.mailboxId===this.mailbox.databaseId},isValidDropTarget:function(){return!this.isActive&&(this.isDroppableSpecialMailbox||!this.mailbox.specialRole&&!this.account.isUnified)},isUnifiedButOnlyInbox:function(){return!this.mailbox.isUnified||this.mailbox.specialUse.includes("inbox")&&this.$store.getters.accounts.length>2}},mounted:function(){rn.a.$on("dragStart",this.onDragStart),rn.a.$on("dragEnd",this.onDragEnd),rn.a.$on("envelopesMoved",this.onEnvelopesMoved)},beforeDestroy:function(){rn.a.$off("dragStart",this.onDragStart),rn.a.$off("dragEnd",this.onDragEnd),rn.a.$off("envelopesMoved",this.onEnvelopesMoved)},methods:{genId:function(t){return"mailbox-"+t.databaseId},onMenuToggle:function(t){t&&this.fetchMailboxStats()},fetchMailboxStats:function(){var t=this;return gn(regeneratorRuntime.mark((function n(){var e;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(t.mailboxStats=null,!t.account.isUnified&&"flagged"!==t.mailbox.specialRole){n.next=3;break}return n.abrupt("return");case 3:return n.prev=3,n.next=6,Object(en.d)(t.mailbox.databaseId);case 6:e=n.sent,p.a.debug("loaded mailbox stats for ".concat(t.mailbox.databaseId),{stats:e}),t.mailboxStats=e,n.next=15;break;case 11:n.prev=11,n.t0=n.catch(3),t.mailboxStats={error:!0},p.a.error("could not load mailbox stats for ".concat(t.mailbox.databaseId),n.t0);case 15:case"end":return n.stop()}}),n,null,[[3,11]])})))()},createMailbox:function(t){var n=this;return gn(regeneratorRuntime.mark((function e(){var a,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n.editing=!0,a=t.target.elements[1].value,o=n.mailbox.name+n.mailbox.delimiter+a,p.a.info("creating mailbox ".concat(o," as submailbox of ").concat(n.mailbox.databaseId)),n.menuOpen=!1,e.prev=5,e.next=8,n.$store.dispatch("createMailbox",{account:n.account,name:o});case 8:e.next=14;break;case 10:throw e.prev=10,e.t0=e.catch(5),p.a.error("could not create mailbox ".concat(o),{error:e.t0}),e.t0;case 14:return e.prev=14,n.editing=!1,n.showSaving=!1,e.finish(14);case 18:p.a.info("mailbox ".concat(o," created")),n.showSubMailboxes=!0;case 20:case"end":return e.stop()}}),e,null,[[5,10,14,18]])})))()},openCreateMailbox:function(){this.editing=!0,this.showSaving=!1},markAsRead:function(){var t=this;this.loadingMarkAsRead=!0,this.$store.dispatch("markMailboxRead",{accountId:this.account.id,mailboxId:this.mailbox.databaseId}).then((function(){return p.a.info("mailbox ".concat(t.mailbox.databaseId," marked as read"))})).catch((function(n){return p.a.error("could not mark mailbox ".concat(t.mailbox.databaseId," as read"),{error:n})})).then((function(){return t.loadingMarkAsRead=!1}))},changeFolderSubscription:function(t){var n=this;return gn(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n.changeSubscription=!0,e.next=4,n.$store.dispatch("changeMailboxSubscription",{mailbox:n.mailbox,subscribed:t});case 4:e.next=10;break;case 6:throw e.prev=6,e.t0=e.catch(0),p.a.error("could not update subscription of mailbox ".concat(n.mailbox.databaseId),{error:e.t0}),e.t0;case 10:return e.prev=10,n.changeSubscription=!1,e.finish(10);case 13:case"end":return e.stop()}}),e,null,[[0,6,10,13]])})))()},changeSyncInBackground:function(t){var n=this;return gn(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n.changingSyncInBackground=!0,e.next=4,n.$store.dispatch("patchMailbox",{mailbox:n.mailbox,attributes:{syncInBackground:t}});case 4:e.next=10;break;case 6:throw e.prev=6,e.t0=e.catch(0),p.a.error("could not update background sync flag of mailbox ".concat(n.mailbox.databaseId),{error:e.t0}),e.t0;case 10:return e.prev=10,n.changingSyncInBackground=!1,e.finish(10);case 13:case"end":return e.stop()}}),e,null,[[0,6,10,13]])})))()},clearCache:function(){var t=this;return gn(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,t.clearingCache=!0,p.a.debug("clearing message cache",{accountId:t.account.id,mailboxId:t.mailbox.databaseId}),n.next=5,Object(nn.a)(t.account.id,t.mailbox.databaseId);case 5:window.location.reload(!1);case 6:return n.prev=6,t.clearCache=!1,n.finish(6);case 9:case"end":return n.stop()}}),n,null,[[0,,6,9]])})))()},deleteMailbox:function(){var n=this,e=this.mailbox.databaseId;p.a.info("delete mailbox",{mailbox:this.mailbox}),OC.dialogs.confirmDestructive(t("mail","The mailbox and all messages in it will be deleted."),t("mail","Delete mailbox"),{type:OC.dialogs.YES_NO_BUTTONS,confirm:t("mail","Delete mailbox {name}",{name:this.mailbox.displayName}),confirmClasses:"error",cancel:t("mail","Cancel")},(function(t){if(t)return n.$store.dispatch("deleteMailbox",{mailbox:n.mailbox}).then((function(){p.a.info("mailbox ".concat(e," deleted"))})).catch((function(t){return p.a.error("could not delete mailbox",{error:t})}))}))},renameMailbox:function(){var n=this;return gn(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n.renameInput=!1,n.showSaving=!1,e.prev=2,e.next=5,n.$store.dispatch("renameMailbox",{account:n.account,mailbox:n.mailbox,newName:n.mailboxName});case 5:n.renameLabel=!0,n.renameInput=!1,n.showSaving=!1,e.next=17;break;case 10:e.prev=10,e.t0=e.catch(2),Object(ht.c)(t("mail","An error occurred, unable to rename the mailbox.")),console.error(e.t0),n.renameLabel=!1,n.renameInput=!1,n.showSaving=!0;case 17:case"end":return e.stop()}}),e,null,[[2,10]])})))()},openRenameInput:function(){this.renameLabel=!1,this.renameInput=!0,this.showSaving=!1},onOpenMoveModal:function(){this.showMoveModal=!0},onCloseMoveModal:function(){this.showMoveModal=!1},onDragStart:function(t){var n=t.accountId;n===this.mailbox.accountId&&(this.$store.commit("expandAccount",n),this.showSubMailboxes=!0)},onDragEnd:function(t){t.accountId===this.mailbox.accountId&&(this.showSubMailboxes=!1)},onEnvelopesMoved:function(t){var n=this,e=t.mailboxId,a=t.movedEnvelopes;if(this.mailbox.databaseId===e){var o,i=a.find((function(t){return t.envelopeId===n.$route.params.threadId}));if("message"===this.$route.name&&i)this.$router.push({name:"mailbox",params:{mailboxId:this.$route.params.mailboxId,filter:null===(o=this.$route.params)||void 0===o?void 0:o.filter}})}}}},Cn=Object(B.a)(An,(function(){var t=this,n=t.$createElement,e=t._self._c||n;return t.visible?e("AppNavigationItem",{directives:[{name:"droppable-mailbox",rawName:"v-droppable-mailbox",value:{mailboxId:t.mailbox.databaseId,accountId:t.mailbox.accountId,isValidDropTarget:t.isValidDropTarget},expression:"{\n\t\tmailboxId: mailbox.databaseId,\n\t\taccountId: mailbox.accountId,\n\t\tisValidDropTarget,\n\t}"}],key:t.genId(t.mailbox),attrs:{id:t.genId(t.mailbox),"allow-collapse":!0,"menu-open":t.menuOpen,"force-menu":!0,icon:t.icon,title:t.title,to:t.to,open:t.showSubMailboxes},on:{"update:menuOpen":[function(n){t.menuOpen=n},t.onMenuToggle],"update:menu-open":function(n){t.menuOpen=n},"update:open":function(n){t.showSubMailboxes=n}}},[e("template",{slot:"actions"},[[t.account.isUnified||"flagged"===t.mailbox.specialRole?t._e():e("ActionText",{attrs:{icon:"icon-info",title:t.mailbox.name}},[t._v("\n\t\t\t\t"+t._s(t.statsText)+"\n\t\t\t")]),t._v(" "),"flagged"===t.mailbox.specialRole||t.account.isUnified?t._e():e("ActionButton",{attrs:{icon:"icon-mail",title:t.t("mail","Mark all as read"),disabled:t.loadingMarkAsRead},on:{click:t.markAsRead}},[t._v("\n\t\t\t\t"+t._s(t.t("mail","Mark all messages of this mailbox as read"))+"\n\t\t\t")]),t._v(" "),t.editing||!t.top||t.account.isUnified||"flagged"===t.mailbox.specialRole?t._e():e("ActionButton",{attrs:{icon:"icon-folder"},on:{click:t.openCreateMailbox}},[t._v("\n\t\t\t\t"+t._s(t.t("mail","Add submailbox"))+"\n\t\t\t")]),t._v(" "),t.editing?e("ActionInput",{attrs:{icon:"icon-folder"},on:{submit:function(n){return n.preventDefault(),n.stopPropagation(),t.createMailbox(n)}}}):t._e(),t._v(" "),!t.renameLabel||t.hasSubMailboxes||t.account.isUnified?t._e():e("ActionButton",{attrs:{icon:"icon-rename"},on:{click:function(n){return n.preventDefault(),n.stopPropagation(),t.openRenameInput(n)}}},[t._v("\n\t\t\t\t"+t._s(t.t("mail","Edit name"))+"\n\t\t\t")]),t._v(" "),t.renameInput?e("ActionInput",{attrs:{icon:"icon-rename",value:t.mailboxName},on:{"update:value":function(n){t.mailboxName=n},submit:function(n){return n.preventDefault(),n.stopPropagation(),t.renameMailbox(n)}}}):t._e(),t._v(" "),t.showSaving?e("ActionText",{attrs:{icon:"icon-loading-small"}},[t._v("\n\t\t\t\t"+t._s(t.t("mail","Saving"))+"\n\t\t\t")]):t._e(),t._v(" "),t.account.isUnified||t.mailbox.specialRole||t.hasSubMailboxes?t._e():e("ActionButton",{attrs:{id:t.genId(t.mailbox),icon:"icon-external","close-after-click":!0},on:{click:function(n){return n.preventDefault(),t.onOpenMoveModal(n)}}},[t._v("\n\t\t\t\t"+t._s(t.t("mail","Move"))+"\n\t\t\t")]),t._v(" "),t.debug&&!t.account.isUnified&&"flagged"!==t.mailbox.specialRole?e("ActionButton",{attrs:{icon:"icon-settings",title:t.t("mail","Clear cache"),disabled:t.clearingCache},on:{click:t.clearCache}},[t._v("\n\t\t\t\t"+t._s(t.t("mail","Clear locally cached data, in case there are issues with synchronization."))+"\n\t\t\t")]):t._e(),t._v(" "),t.notVirtual?e("ActionCheckbox",{attrs:{checked:t.isSubscribed,disabled:t.changeSubscription},on:{"update:checked":t.changeFolderSubscription}},[t._v("\n\t\t\t\t"+t._s(t.t("mail","Subscribed"))+"\n\t\t\t")]):t._e(),t._v(" "),t.notVirtual&&t.notInbox?e("ActionCheckbox",{attrs:{checked:t.mailbox.syncInBackground,disabled:t.changingSyncInBackground},on:{"update:checked":t.changeSyncInBackground}},[t._v("\n\t\t\t\t"+t._s(t.t("mail","Sync in background"))+"\n\t\t\t")]):t._e(),t._v(" "),t.account.isUnified||t.mailbox.specialRole||t.hasSubMailboxes?t._e():e("ActionButton",{attrs:{icon:"icon-delete"},on:{click:t.deleteMailbox}},[t._v("\n\t\t\t\t"+t._s(t.t("mail","Delete mailbox"))+"\n\t\t\t")])]],2),t._v(" "),t.mailbox.unread?e("AppNavigationCounter",{attrs:{slot:"counter"},slot:"counter"},[t._v("\n\t\t"+t._s(t.mailbox.unread)+"\n\t")]):t._e(),t._v(" "),e("template",{slot:"extra"},[t.showMoveModal?e("MoveMailboxModal",{attrs:{account:t.account,mailbox:t.mailbox},on:{close:t.onCloseMoveModal}}):t._e()],1),t._v(" "),t._l(t.subMailboxes,(function(n){return e("NavigationMailbox",{key:t.genId(n),attrs:{account:t.account,mailbox:n,top:!1}})}))],2):t._e()}),[],!1,null,null,null).exports,xn=a(729),yn={name:"KeyboardShortcuts",components:{Modal:a.n(xn).a}},wn=a(1341),Sn={insert:"head",singleton:!1},_n=(T()(wn.a,Sn),wn.a.locals,{name:"AppSettingsMenu",components:{KeyboardShortcuts:Object(B.a)(yn,(function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("Modal",{attrs:{size:"large",title:t.t("mail","Keyboard shortcut")},on:{close:function(n){return t.$emit("close")}}},[e("h2",[t._v(t._s(t.t("mail","Keyboard shortcuts")))]),t._v(" "),e("p",[t._v(t._s(t.t("mail","Speed up your Mail experience with these quick shortcuts.")))]),t._v(" "),e("dl",[e("div",[e("dt",[e("kbd",[t._v("C")])]),t._v(" "),e("dd",[t._v(t._s(t.t("mail","Compose new message")))])]),t._v(" "),e("div",[e("dt",[e("kbd",[t._v("←")])]),t._v(" "),e("dd",[t._v(t._s(t.t("mail","Newer message")))])]),t._v(" "),e("div",[e("dt",[e("kbd",[t._v("→")])]),t._v(" "),e("dd",[t._v(t._s(t.t("mail","Older message")))])]),t._v(" "),e("div",[e("dt",[e("kbd",[t._v("S")])]),t._v(" "),e("dd",[t._v(t._s(t.t("mail","Toggle star")))])]),t._v(" "),e("div",[e("dt",[e("kbd",[t._v("U")])]),t._v(" "),e("dd",[t._v(t._s(t.t("mail","Toggle unread")))])]),t._v(" "),e("div",[e("dt",[e("kbd",[t._v("Del")])]),t._v(" "),e("dd",[t._v(t._s(t.t("mail","Delete")))])]),t._v(" "),e("div",[e("dt",[e("kbd",[t._v("Ctrl")]),t._v(" + "),e("kbd",[t._v("F")])]),t._v(" "),e("dd",[t._v(t._s(t.t("mail","Search")))])]),t._v(" "),e("div",[e("dt",[e("kbd",[t._v("Ctrl")]),t._v(" + "),e("kbd",[t._v("Enter")])]),t._v(" "),e("dd",[t._v(t._s(t.t("mail","Send")))])]),t._v(" "),e("div",[e("dt",[e("kbd",[t._v("R")])]),t._v(" "),e("dd",[t._v(t._s(t.t("mail","Refresh")))])])])])}),[],!1,null,"17460ac4",null).exports},data:function(){return{loadingAvatarSettings:!1,optOutSettingsText:t("mail","Allow the app to collect data about your interactions. Based on this data, the app will adapt to your preferences. The data will only be stored locally."),loadingOptOutSettings:!1,replySettingsText:t("mail","Put my text to the bottom of a reply instead of on top of it."),loadingReplySettings:!1,displayKeyboardShortcuts:!1}},computed:{useBottomReplies:function(){return"bottom"===this.$store.getters.getPreference("reply-mode","top")},useExternalAvatars:function(){return"true"===this.$store.getters.getPreference("external-avatars","true")},useDataCollection:function(){return"true"===this.$store.getters.getPreference("collect-data","true")}},methods:{onToggleButtonReplies:function(t){var n=this;this.loadingReplySettings=!0,this.$store.dispatch("savePreference",{key:"reply-mode",value:t.target.checked?"bottom":"top"}).catch((function(t){return p.a.error("could not save preferences",{error:t})})).then((function(){n.loadingReplySettings=!1}))},onToggleExternalAvatars:function(t){var n=this;this.loadingAvatarSettings=!0,this.$store.dispatch("savePreference",{key:"external-avatars",value:t.target.checked?"true":"false"}).catch((function(t){return p.a.error("could not save preferences",{error:t})})).then((function(){n.loadingAvatarSettings=!1}))},onToggleCollectData:function(t){var n=this;this.loadingOptOutSettings=!0,this.$store.dispatch("savePreference",{key:"collect-data",value:t.target.checked?"true":"false"}).catch((function(t){return p.a.error("could not save preferences",{error:t})})).then((function(){n.loadingOptOutSettings=!1}))},registerProtocolHandler:function(){if(window.navigator.registerProtocolHandler){var t=window.location.protocol+"//"+window.location.host+Object(k.generateUrl)("apps/mail/compose?uri=%s");try{window.navigator.registerProtocolHandler("mailto",t,OC.theme.name+" Mail")}catch(t){p.a.error("could not register protocol handler",{err:t})}}},showKeyboardShortcuts:function(){this.displayKeyboardShortcuts=!0},closeKeyboardShortcuts:function(){this.displayKeyboardShortcuts=!1},toggleKeyboardShortcuts:function(){this.displayKeyboardShortcuts=!this.displayKeyboardShortcuts}}}),kn=a(1342),Mn={insert:"head",singleton:!1},Pn=(T()(kn.a,Mn),kn.a.locals,Object(B.a)(_n,(function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",[e("router-link",{staticClass:"icon-add-white app-settings-button button primary new-button",attrs:{to:"/setup"}},[t._v("\n\t\t"+t._s(t.t("mail","Add mail account"))+"\n\t")]),t._v(" "),t.loadingOptOutSettings?e("p",{staticClass:"app-settings"},[e("span",{staticClass:"icon-loading-small"}),t._v("\n\t\t"+t._s(t.optOutSettingsText)+"\n\t")]):e("p",{staticClass:"app-settings"},[e("input",{staticClass:"checkbox",attrs:{id:"data-collection-toggle",type:"checkbox"},domProps:{checked:t.useDataCollection},on:{change:t.onToggleCollectData}}),t._v(" "),e("label",{attrs:{for:"data-collection-toggle"}},[t._v(t._s(t.optOutSettingsText))])]),t._v(" "),t.loadingAvatarSettings?e("p",{staticClass:"app-settings avatar-settings"},[e("span",{staticClass:"icon-loading-small"}),t._v("\n\t\t"+t._s(t.t("mail","Use Gravatar and favicon avatars"))+"\n\t")]):e("p",{staticClass:"app-settings"},[e("input",{staticClass:"checkbox",attrs:{id:"gravatar-enabled",type:"checkbox"},domProps:{checked:t.useExternalAvatars},on:{change:t.onToggleExternalAvatars}}),t._v(" "),e("label",{attrs:{for:"gravatar-enabled"}},[t._v(t._s(t.t("mail","Use Gravatar and favicon avatars")))])]),t._v(" "),t.loadingAvatarSettings?e("p",{staticClass:"app-settings reply-settings"},[e("span",{staticClass:"icon-loading-small"}),t._v("\n\t\t"+t._s(t.replySettingsText)+"\n\t")]):e("p",{staticClass:"app-settings"},[e("input",{staticClass:"checkbox",attrs:{id:"bottom-reply-enabled",type:"checkbox"},domProps:{checked:t.useBottomReplies},on:{change:t.onToggleButtonReplies}}),t._v(" "),e("label",{attrs:{for:"bottom-reply-enabled"}},[t._v(t._s(t.replySettingsText))])]),t._v(" "),e("p",[e("button",{staticClass:"icon-mail app-settings-button",on:{click:t.registerProtocolHandler}},[t._v("\n\t\t\t"+t._s(t.t("mail","Register as application for mail links"))+"\n\t\t")])]),t._v(" "),e("button",{staticClass:"icon-details app-settings-button",on:{click:function(n){return n.preventDefault(),n.stopPropagation(),t.showKeyboardShortcuts(n)},shortkey:t.toggleKeyboardShortcuts}},[t._v("\n\t\t"+t._s(t.t("mail","Show keyboard shortcuts"))+"\n\t")]),t._v(" "),t.displayKeyboardShortcuts?e("KeyboardShortcuts",{on:{close:t.closeKeyboardShortcuts}}):t._e()],1)}),[],!1,null,"20887712",null).exports),In={name:"Navigation",components:{AppNavigation:i.a,AppNavigationNew:r.a,AppNavigationSettings:c.a,AppNavigationSpacer:d.a,AppSettingsMenu:Pn,NavigationAccount:Kt,NavigationAccountExpandCollapse:Vt,NavigationMailbox:Cn},computed:{menu:function(){var t=this;return this.$store.getters.accounts.map((function(n){var e=t.$store.getters.getMailboxes(n.id),a=e.filter((function(e){return t.isCollapsed(n,e)})).length>1;return{id:n.id,account:n,mailboxes:e,isCollapsible:a}}))}},methods:{isCollapsed:function(t,n){return"inbox"!==n.specialRole&&(n.databaseId!==t.draftsMailboxId&&n.databaseId!==t.sentMailboxId&&n.databaseId!==t.trashMailboxId)},onNewMessage:function(){var t,n=this.$route.params.accountId||this.$store.getters.accounts[0].id,e=this.$route.params.mailboxId||(null===(t=this.$store.getters.getMailboxes(n)[0])||void 0===t?void 0:t.databaseId);"message"!==this.$router.currentRoute.name||"new"!==this.$router.currentRoute.params.threadId?this.$router.push({name:"message",params:{mailboxId:e,filter:this.$route.params.filter?this.$route.params.filter:void 0,threadId:"new"}}).catch((function(t){p.a.error(t)})):this.$root.$emit("newMessage")},isFirst:function(t){return t===this.$store.getters.accounts[1]},isLast:function(t){var n=this.$store.getters.accounts;return t===n[n.length-1]}}},On=Object(B.a)(In,(function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("AppNavigation",{scopedSlots:t._u([{key:"list",fn:function(){return[e("ul",{attrs:{id:"accounts-list"}},[t._l(t.menu,(function(n){return[n.account?e("NavigationAccount",{key:n.account.id,attrs:{account:n.account,"first-mailbox":n.mailboxes[0],"is-first":t.isFirst(n.account),"is-last":t.isLast(n.account)}}):t._e(),t._v(" "),t._l(n.mailboxes,(function(a){return[e("NavigationMailbox",{directives:[{name:"show",rawName:"v-show",value:!n.isCollapsible||!n.account.collapsed||!t.isCollapsed(n.account,a),expression:"\n\t\t\t\t\t\t\t!group.isCollapsible ||\n\t\t\t\t\t\t\t\t!group.account.collapsed ||\n\t\t\t\t\t\t\t\t!isCollapsed(group.account, item)\n\t\t\t\t\t\t"}],key:"mailbox-"+a.databaseId,attrs:{account:n.account,mailbox:a}}),t._v(" "),n.account.isUnified||"inbox"!==a.specialRole?t._e():e("NavigationMailbox",{key:a.databaseId+"-starred",attrs:{account:n.account,mailbox:a,filter:"starred"}})]})),t._v(" "),!n.account.isUnified&&n.isCollapsible?e("NavigationAccountExpandCollapse",{key:"collapse-"+n.account.id,attrs:{account:n.account}}):t._e(),t._v(" "),e("AppNavigationSpacer",{key:"spacer-"+n.account.id})]}))],2)]},proxy:!0},{key:"footer",fn:function(){return[e("AppNavigationSettings",{attrs:{title:t.t("mail","Settings")}},[e("AppSettingsMenu")],1)]},proxy:!0}])},[e("AppNavigationNew",{attrs:{text:t.t("mail","New message"),"button-id":"mail_new_message","button-class":"icon-add",role:"complementary"},on:{click:t.onNewMessage}})],1)}),[],!1,null,"74496258",null);e.a=On.exports},1050:function(n,e,a){"use strict";var o=a(1303),i=a(12);function s(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);n&&(a=a.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,a)}return e}function r(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?s(Object(e),!0).forEach((function(n){l(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):s(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}function l(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}var c={name:"AccountForm",components:{Tab:o.Tab,Tabs:o.Tabs},props:{displayName:{type:String,default:""},email:{type:String,default:""},save:{type:Function,required:!0},account:{type:Object,required:!1,default:function(){}}},data:function(){var n=this,e=function(t,e){return void 0!==n.account?n.account[t]:e};return{loading:!1,mode:"auto",autoConfig:{accountName:this.displayName,emailAddress:this.email,password:""},manualConfig:{accountName:"",emailAddress:"",imapHost:e("imapHost",""),imapPort:e("imapPort",993),imapSslMode:e("imapSslMode","ssl"),imapUser:e("imapUser",""),imapPassword:"",smtpHost:e("smtpHost",""),smtpPort:e("smtpPort",587),smtpSslMode:e("smtpSslMode","tls"),smtpUser:e("smtpUser",""),smtpPassword:""},submitButtonText:this.account?t("mail","Save"):t("mail","Connect")}},computed:{settingsPage:function(){return void 0!==this.account}},methods:{onModeChanged:function(t){this.mode=t.tab.id,"manual"===this.mode&&(""===this.manualConfig.accountName&&(this.manualConfig.accountName=this.autoConfig.accountName),""===this.manualConfig.emailAddress&&(this.manualConfig.emailAddress=this.autoConfig.emailAddress),""===this.manualConfig.imapUser&&(this.manualConfig.imapUser=this.autoConfig.emailAddress),""===this.manualConfig.imapPassword&&(this.manualConfig.imapPassword=this.autoConfig.password),""===this.manualConfig.smtpUser&&(this.manualConfig.smtpUser=this.autoConfig.emailAddress),""===this.manualConfig.smtpPassword&&(this.manualConfig.smtpPassword=this.autoConfig.password))},onImapSslModeChange:function(){switch(this.manualConfig.imapSslMode){case"none":case"tls":this.manualConfig.imapPort=143;break;case"ssl":this.manualConfig.imapPort=993}},onSmtpSslModeChange:function(){switch(this.manualConfig.smtpSslMode){case"none":case"tls":this.manualConfig.smtpPort=587;break;case"ssl":this.manualConfig.smtpPort=465}},saveChanges:function(){return"auto"===this.mode?this.save(r({autoDetect:!0},this.autoConfig)):this.save(r({autoDetect:!1},this.manualConfig))},onSubmit:function(t){var n=this;console.debug("account form submitted",{event:t}),this.loading=!0,this.saveChanges().catch((function(t){return i.a.error("could not save account details",{error:t})})).then((function(){return n.loading=!1}))}}},u=a(40),d=a.n(u),p=a(1304),m={insert:"head",singleton:!1},v=(d()(p.a,m),p.a.locals,a(1305)),g={insert:"head",singleton:!1},b=(d()(v.a,g),v.a.locals,a(29)),f=Object(b.a)(c,(function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("form",{attrs:{id:"account-form"},on:{submit:function(n){return n.preventDefault(),t.onSubmit(n)}}},[e("Tabs",{attrs:{options:{useUrlFragment:!1,defaultTabHash:t.settingsPage?"manual":"auto"},"cache-lifetime":"0"},on:{changed:t.onModeChanged}},[e("Tab",{key:"auto",attrs:{id:"auto",name:t.t("mail","Auto")}},[e("label",{attrs:{for:"auto-name"}},[t._v(t._s(t.t("mail","Name")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.autoConfig.accountName,expression:"autoConfig.accountName"}],attrs:{id:"auto-name",type:"text",placeholder:t.t("mail","Name"),disabled:t.loading,autofocus:""},domProps:{value:t.autoConfig.accountName},on:{input:function(n){n.target.composing||t.$set(t.autoConfig,"accountName",n.target.value)}}}),t._v(" "),e("label",{attrs:{for:"auto-address"}},[t._v(t._s(t.t("mail","Mail Address")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.autoConfig.emailAddress,expression:"autoConfig.emailAddress"}],attrs:{id:"auto-address",type:"email",placeholder:t.t("mail","Mail Address"),disabled:t.loading,required:""},domProps:{value:t.autoConfig.emailAddress},on:{input:function(n){n.target.composing||t.$set(t.autoConfig,"emailAddress",n.target.value)}}}),t._v(" "),e("label",{attrs:{for:"auto-password"}},[t._v(t._s(t.t("mail","Password")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.autoConfig.password,expression:"autoConfig.password"}],attrs:{id:"auto-password",type:"password",placeholder:t.t("mail","Password"),disabled:t.loading,required:""},domProps:{value:t.autoConfig.password},on:{input:function(n){n.target.composing||t.$set(t.autoConfig,"password",n.target.value)}}})]),t._v(" "),e("Tab",{key:"manual",attrs:{id:"manual",name:t.t("mail","Manual")}},[e("label",{attrs:{for:"man-name"}},[t._v(t._s(t.t("mail","Name")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.manualConfig.accountName,expression:"manualConfig.accountName"}],attrs:{id:"man-name",type:"text",placeholder:t.t("mail","Name"),disabled:t.loading},domProps:{value:t.manualConfig.accountName},on:{input:function(n){n.target.composing||t.$set(t.manualConfig,"accountName",n.target.value)}}}),t._v(" "),e("label",{attrs:{for:"man-address"}},[t._v(t._s(t.t("mail","Mail Address")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.manualConfig.emailAddress,expression:"manualConfig.emailAddress"}],attrs:{id:"man-address",type:"email",placeholder:t.t("mail","Mail Address"),disabled:t.loading,required:""},domProps:{value:t.manualConfig.emailAddress},on:{input:function(n){n.target.composing||t.$set(t.manualConfig,"emailAddress",n.target.value)}}}),t._v(" "),e("h3",[t._v(t._s(t.t("mail","IMAP Settings")))]),t._v(" "),e("label",{attrs:{for:"man-imap-host"}},[t._v(t._s(t.t("mail","IMAP Host")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.manualConfig.imapHost,expression:"manualConfig.imapHost"}],attrs:{id:"man-imap-host",type:"text",placeholder:t.t("mail","IMAP Host"),disabled:t.loading,required:""},domProps:{value:t.manualConfig.imapHost},on:{input:function(n){n.target.composing||t.$set(t.manualConfig,"imapHost",n.target.value)}}}),t._v(" "),e("h4",[t._v(t._s(t.t("mail","IMAP Security")))]),t._v(" "),e("div",{staticClass:"flex-row"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.manualConfig.imapSslMode,expression:"manualConfig.imapSslMode"}],attrs:{id:"man-imap-sec-none",type:"radio",name:"man-imap-sec",disabled:t.loading,value:"none"},domProps:{checked:t._q(t.manualConfig.imapSslMode,"none")},on:{change:[function(n){return t.$set(t.manualConfig,"imapSslMode","none")},t.onImapSslModeChange]}}),t._v(" "),e("label",{staticClass:"button",class:{primary:"none"===t.manualConfig.imapSslMode},attrs:{for:"man-imap-sec-none"}},[t._v(t._s(t.t("mail","None")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.manualConfig.imapSslMode,expression:"manualConfig.imapSslMode"}],attrs:{id:"man-imap-sec-ssl",type:"radio",name:"man-imap-sec",disabled:t.loading,value:"ssl"},domProps:{checked:t._q(t.manualConfig.imapSslMode,"ssl")},on:{change:[function(n){return t.$set(t.manualConfig,"imapSslMode","ssl")},t.onImapSslModeChange]}}),t._v(" "),e("label",{staticClass:"button",class:{primary:"ssl"===t.manualConfig.imapSslMode},attrs:{for:"man-imap-sec-ssl"}},[t._v(t._s(t.t("mail","SSL/TLS")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.manualConfig.imapSslMode,expression:"manualConfig.imapSslMode"}],attrs:{id:"man-imap-sec-tls",type:"radio",name:"man-imap-sec",disabled:t.loading,value:"tls"},domProps:{checked:t._q(t.manualConfig.imapSslMode,"tls")},on:{change:[function(n){return t.$set(t.manualConfig,"imapSslMode","tls")},t.onImapSslModeChange]}}),t._v(" "),e("label",{staticClass:"button",class:{primary:"tls"===t.manualConfig.imapSslMode},attrs:{for:"man-imap-sec-tls"}},[t._v(t._s(t.t("mail","STARTTLS")))])]),t._v(" "),e("label",{attrs:{for:"man-imap-port"}},[t._v(t._s(t.t("mail","IMAP Port")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.manualConfig.imapPort,expression:"manualConfig.imapPort"}],attrs:{id:"man-imap-port",type:"number",placeholder:t.t("mail","IMAP Port"),disabled:t.loading,required:""},domProps:{value:t.manualConfig.imapPort},on:{input:function(n){n.target.composing||t.$set(t.manualConfig,"imapPort",n.target.value)}}}),t._v(" "),e("label",{attrs:{for:"man-imap-user"}},[t._v(t._s(t.t("mail","IMAP User")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.manualConfig.imapUser,expression:"manualConfig.imapUser"}],attrs:{id:"man-imap-user",type:"text",placeholder:t.t("mail","IMAP User"),disabled:t.loading,required:""},domProps:{value:t.manualConfig.imapUser},on:{input:function(n){n.target.composing||t.$set(t.manualConfig,"imapUser",n.target.value)}}}),t._v(" "),e("label",{attrs:{for:"man-imap-password"}},[t._v(t._s(t.t("mail","IMAP Password")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.manualConfig.imapPassword,expression:"manualConfig.imapPassword"}],attrs:{id:"man-imap-password",type:"password",placeholder:t.t("mail","IMAP Password"),disabled:t.loading,required:""},domProps:{value:t.manualConfig.imapPassword},on:{input:function(n){n.target.composing||t.$set(t.manualConfig,"imapPassword",n.target.value)}}}),t._v(" "),e("h3",[t._v(t._s(t.t("mail","SMTP Settings")))]),t._v(" "),e("label",{attrs:{for:"man-smtp-host"}},[t._v(t._s(t.t("mail","SMTP Host")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.manualConfig.smtpHost,expression:"manualConfig.smtpHost"}],ref:"smtpHost",attrs:{id:"man-smtp-host",type:"text",name:"smtp-host",placeholder:t.t("mail","SMTP Host"),disabled:t.loading,required:""},domProps:{value:t.manualConfig.smtpHost},on:{input:function(n){n.target.composing||t.$set(t.manualConfig,"smtpHost",n.target.value)}}}),t._v(" "),e("h4",[t._v(t._s(t.t("mail","SMTP Security")))]),t._v(" "),e("div",{staticClass:"flex-row"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.manualConfig.smtpSslMode,expression:"manualConfig.smtpSslMode"}],attrs:{id:"man-smtp-sec-none",type:"radio",name:"man-smtp-sec",disabled:t.loading,value:"none"},domProps:{checked:t._q(t.manualConfig.smtpSslMode,"none")},on:{change:[function(n){return t.$set(t.manualConfig,"smtpSslMode","none")},t.onSmtpSslModeChange]}}),t._v(" "),e("label",{staticClass:"button",class:{primary:"none"===t.manualConfig.smtpSslMode},attrs:{for:"man-smtp-sec-none"}},[t._v(t._s(t.t("mail","None")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.manualConfig.smtpSslMode,expression:"manualConfig.smtpSslMode"}],attrs:{id:"man-smtp-sec-ssl",type:"radio",name:"man-smtp-sec",disabled:t.loading,value:"ssl"},domProps:{checked:t._q(t.manualConfig.smtpSslMode,"ssl")},on:{change:[function(n){return t.$set(t.manualConfig,"smtpSslMode","ssl")},t.onSmtpSslModeChange]}}),t._v(" "),e("label",{staticClass:"button",class:{primary:"ssl"===t.manualConfig.smtpSslMode},attrs:{for:"man-smtp-sec-ssl"}},[t._v(t._s(t.t("mail","SSL/TLS")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.manualConfig.smtpSslMode,expression:"manualConfig.smtpSslMode"}],attrs:{id:"man-smtp-sec-tls",type:"radio",name:"man-smtp-sec",disabled:t.loading,value:"tls"},domProps:{checked:t._q(t.manualConfig.smtpSslMode,"tls")},on:{change:[function(n){return t.$set(t.manualConfig,"smtpSslMode","tls")},t.onSmtpSslModeChange]}}),t._v(" "),e("label",{staticClass:"button",class:{primary:"tls"===t.manualConfig.smtpSslMode},attrs:{for:"man-smtp-sec-tls"}},[t._v(t._s(t.t("mail","STARTTLS")))])]),t._v(" "),e("label",{attrs:{for:"man-smtp-port"}},[t._v(t._s(t.t("mail","SMTP Port")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.manualConfig.smtpPort,expression:"manualConfig.smtpPort"}],attrs:{id:"man-smtp-port",type:"number",placeholder:t.t("mail","SMTP Port"),disabled:t.loading,required:""},domProps:{value:t.manualConfig.smtpPort},on:{input:function(n){n.target.composing||t.$set(t.manualConfig,"smtpPort",n.target.value)}}}),t._v(" "),e("label",{attrs:{for:"man-smtp-user"}},[t._v(t._s(t.t("mail","SMTP User")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.manualConfig.smtpUser,expression:"manualConfig.smtpUser"}],attrs:{id:"man-smtp-user",type:"text",placeholder:t.t("mail","SMTP User"),disabled:t.loading,required:""},domProps:{value:t.manualConfig.smtpUser},on:{input:function(n){n.target.composing||t.$set(t.manualConfig,"smtpUser",n.target.value)}}}),t._v(" "),e("label",{attrs:{for:"man-smtp-password"}},[t._v(t._s(t.t("mail","SMTP Password")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.manualConfig.smtpPassword,expression:"manualConfig.smtpPassword"}],attrs:{id:"man-smtp-password",type:"password",placeholder:t.t("mail","SMTP Password"),disabled:t.loading,required:""},domProps:{value:t.manualConfig.smtpPassword},on:{input:function(n){n.target.composing||t.$set(t.manualConfig,"smtpPassword",n.target.value)}}})])],1),t._v(" "),t._t("feedback"),t._v(" "),e("input",{staticClass:"primary",attrs:{type:"submit",disabled:t.loading},domProps:{value:t.submitButtonText},on:{click:function(n){return n.preventDefault(),t.onSubmit(n)}}})],2)}),[],!1,null,"2bf4e148",null);e.a=f.exports},1051:function(t,n,e){"use strict";var a=e(729),o=e.n(a),i=e(38),s=e(917),r={name:"MailboxPicker",components:{Modal:o.a},props:{account:{type:Object,required:!0},selected:{type:Number,required:!1,default:void 0},loading:{type:Boolean,required:!1,default:!1},labelSelect:{type:String,default:Object(i.translate)("mail","Choose")},labelSelectLoading:{type:String,default:Object(i.translate)("mail","Choose")},pickedMailbox:{type:Object,required:!1,default:function(){}},allowRoot:{type:Boolean,default:!1}},data:function(){return{selectedMailboxId:void 0,mailboxCrumbs:[]}},computed:{mailboxes:function(){return this.selectedMailboxId?this.$store.getters.getSubMailboxes(this.selectedMailboxId):this.$store.getters.getMailboxes(this.account.accountId)},filteredMailboxes:function(){var t=this;return this.pickedMailbox?this.mailboxes.filter((function(n){return n.databaseId!==t.pickedMailbox.databaseId})):this.mailboxes}},methods:{getMailboxIcon:function(t){return t.specialRole?"icon-"+t.specialRole:"icon-folder"},getMailboxTitle:function(t){return Object(s.a)(t)},onClickHome:function(){this.selectedMailboxId=void 0,this.$emit("update:selected",void 0),this.mailboxCrumbs=[]},onClickCrumb:function(t){this.selectedMailboxId=this.mailboxCrumbs[t].databaseId,this.$emit("update:selected",this.selectedMailboxId),this.mailboxCrumbs=this.mailboxCrumbs.slice(0,t+1)},onClickMailbox:function(t){this.selectedMailboxId=t.databaseId,this.$emit("update:selected",this.selectedMailboxId),this.mailboxCrumbs.push(t)},onSelect:function(){this.$emit("select",this.selectedMailboxId)},onClose:function(){this.$emit("close")}}},l=e(40),c=e.n(l),u=e(1129),d={insert:"head",singleton:!1},p=(c()(u.a,d),u.a.locals,e(29)),m=Object(p.a)(r,(function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("Modal",{on:{close:t.onClose}},[e("div",{ref:"content",staticClass:"modal-content"},[e("h2",{staticClass:"oc-dialog-title"},[t._v("\n\t\t\t"+t._s(t.t("mail","Choose target mailbox"))+"\n\t\t")]),t._v(" "),e("span",{staticClass:"crumbs"},[e("div",{staticClass:"level icon-breadcrumb"},[e("a",{staticClass:"icon-home",on:{click:function(n){return n.preventDefault(),t.onClickHome(n)}}})]),t._v(" "),t._l(t.mailboxCrumbs,(function(n,a){return e("div",{key:n.databaseId,staticClass:"level icon-breadcrumb"},[e("a",{on:{click:function(n){return n.preventDefault(),t.onClickCrumb(a)}}},[t._v("\n\t\t\t\t\t"+t._s(t.getMailboxTitle(n))+"\n\t\t\t\t")])])}))],2),t._v(" "),e("div",{staticClass:"mailbox-list"},[t.filteredMailboxes.length>0?e("ul",t._l(t.filteredMailboxes,(function(n){return e("li",{key:n.databaseId,on:{click:function(e){return e.preventDefault(),t.onClickMailbox(n)}}},[e("div",{class:["mailbox-icon",t.getMailboxIcon(n)]}),t._v(" "),e("div",{staticClass:"mailbox-title"},[t._v("\n\t\t\t\t\t\t"+t._s(t.getMailboxTitle(n))+"\n\t\t\t\t\t")])])})),0):e("div",{staticClass:"empty"},[e("div",{staticClass:"empty-icon icon-folder"}),t._v(" "),e("h2",[t._v(t._s(t.t("mail","No more submailboxes in here")))])])]),t._v(" "),e("div",{staticClass:"buttons"},[e("button",{staticClass:"primary",attrs:{disabled:t.loading||!t.allowRoot&&!t.selectedMailboxId},on:{click:t.onSelect}},[t.loading?e("span",{staticClass:"icon-loading-small spinner"}):t._e(),t._v("\n\t\t\t\t"+t._s(t.loading?t.labelSelectLoading:t.labelSelect)+"\n\t\t\t")])])])])}),[],!1,null,"84d66076",null);n.a=m.exports},1052:function(t,n,e){"use strict";var a=e(1240),o=e.n(a),i=e(1350),s=e(1345),r=e(1347),l=e(1352),c=e(1355),u=e(1351),d=e(1356),p=e(1346),m=e(1348),v=e(766),g=e(38),b=e(1268),f=e.n(b),h=e(12);function A(t,n,e,a,o,i,s){try{var r=t[i](s),l=r.value}catch(t){return void e(t)}r.done?n(l):Promise.resolve(l).then(a,o)}var C={name:"TextEditor",components:{ckeditor:o.a.component},props:{value:{type:String,required:!0},html:{type:Boolean,default:!1},placeholder:{type:String,default:""},focus:{type:Boolean,default:!1},bus:{type:Object,required:!0}},data:function(){var t=[r.a,v.a],n=["undo","redo"];return this.html&&(t.push.apply(t,[u.a,i.a,c.a,d.a,l.a,p.a,m.a]),n.unshift.apply(n,["heading","alignment","bold","italic","bulletedList","numberedList","blockquote","link"])),{text:"",ready:!1,editor:s.a,config:{placeholder:this.placeholder,plugins:t,toolbar:{items:n},language:"en"}}},computed:{sanitizedValue:function(){return f.a.sanitize(this.value,{FORBID_TAGS:["style"]})}},watch:{sanitizedValue:function(t){this.text=t}},beforeMount:function(){this.loadEditorTranslations(Object(g.getLanguage)())},methods:{loadEditorTranslations:function(t){var n,a=this;return(n=regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if("en"!==t){n.next=2;break}return n.abrupt("return",a.showEditor("en"));case 2:return n.prev=2,h.a.debug("loading ".concat(t," translations for CKEditor")),n.next=6,e(1269)("./".concat(t));case 6:a.showEditor(t),n.next=13;break;case 9:n.prev=9,n.t0=n.catch(2),h.a.error('could not find CKEditor translations for "'.concat(t,'"'),{error:n.t0}),a.showEditor("en");case 13:case"end":return n.stop()}}),n,null,[[2,9]])})),function(){var t=this,e=arguments;return new Promise((function(a,o){var i=n.apply(t,e);function s(t){A(i,a,o,s,r,"next",t)}function r(t){A(i,a,o,s,r,"throw",t)}s(void 0)}))})()},showEditor:function(t){h.a.debug('using "'.concat(t,'" as CKEditor language')),this.config.language=t,this.ready=!0},onEditorReady:function(t){var n=t.model.schema;h.a.debug("CKEditor editor is ready",{editor:t,schema:n}),this.editorInstance=t,t.conversion.for("downcast").add((function(t){t.on("insert:paragraph",(function(t,n,e){e.writer.setStyle("margin","0",e.mapper.toViewElement(n.item))}),{priority:"low"})})),n.on("checkChild",(function(t,n){n[0].endsWith("blockQuote")&&(t.stop(),t.return=!0)}),{priority:"highest"}),this.focus&&(h.a.debug("focusing TextEditor"),t.editing.view.focus()),this.text=this.sanitizedValue,h.a.debug("setting TextEditor contents to <".concat(this.text,">")),this.bus.$on("appendToBodyAtCursor",this.appendToBodyAtCursor)},onInput:function(){h.a.debug("TextEditor input changed to <".concat(this.text,">")),this.$emit("input",this.text)},appendToBodyAtCursor:function(t){var n=this.editorInstance.data.processor.toView(t),e=this.editorInstance.data.toModel(n);this.editorInstance.model.insertContent(e)}}},x=e(40),y=e.n(x),w=e(1270),S={insert:"head",singleton:!1},_=(y()(w.a,S),w.a.locals,e(29)),k=Object(_.a)(C,(function(){var t=this,n=t.$createElement,e=t._self._c||n;return t.ready?e("ckeditor",{attrs:{config:t.config,editor:t.editor},on:{input:t.onInput,ready:t.onEditorReady},model:{value:t.text,callback:function(n){t.text=n},expression:"text"}}):t._e()}),[],!1,null,"733e6248",null);n.a=k.exports},1109:function(t,n){},1129:function(t,n,e){"use strict";var a=e(41),o=e.n(a),i=e(42),s=e.n(i)()(o.a);s.push([t.i,"[data-v-84d66076] .modal-container{width:calc(100vw - 120px) !important;height:calc(100vh - 120px) !important;max-width:600px !important;max-height:500px !important}.modal-content[data-v-84d66076]{display:flex;box-sizing:border-box;width:100%;height:100%;flex-direction:column;padding:15px}.crumbs[data-v-84d66076]{display:inline-flex;padding-left:12px;padding-right:0px;flex-wrap:wrap}.crumbs .level[data-v-84d66076]{display:inline-flex;height:44px;min-width:0px;flex:0 0 auto;order:1;padding-right:7px;background-position:right center;background-size:auto 24px}.crumbs a[data-v-84d66076]{position:relative;padding:12px;opacity:.5;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;flex:0 0 auto;min-width:0px;max-width:200px}.crumbs a[data-v-84d66076]:hover{opacity:.7}.crumbs a.icon-home[data-v-84d66076]{width:0px;background-position:left center}.mailbox-list[data-v-84d66076]{display:inline-block;width:100%;height:100%;overflow-y:auto;flex:1}.mailbox-list li[data-v-84d66076]{display:flex;cursor:pointer}.mailbox-list li[data-v-84d66076]:hover{background-color:var(--color-background-hover)}.mailbox-list li[data-v-84d66076]:not(:last-child){border-bottom:1px solid var(--color-border)}.mailbox-list .empty[data-v-84d66076]{width:100%;color:var(--color-text-maxcontrast);text-align:center;margin-top:80px}.mailbox-list .empty-icon[data-v-84d66076]{opacity:.4;background-size:64px;height:64px;width:64px;margin:0 auto 15px}.mailbox-list .mailbox-icon[data-v-84d66076]{width:24px;height:24px;padding:14px;opacity:.9;background-size:24px}.mailbox-list .mailbox-title[data-v-84d66076]{padding:14px 14px 14px 0;flex:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.buttons[data-v-84d66076]{display:flex;justify-content:flex-end;padding-top:10px}.buttons .spinner[data-v-84d66076]{margin-right:5px}","",{version:3,sources:["webpack://./src/components/MailboxPicker.vue"],names:[],mappings:"AA+IA,mCACC,oCAAA,CACA,qCAAA,CACA,0BAAA,CACA,2BAAA,CAGD,gCACC,YAAA,CACA,qBAAA,CACA,UAAA,CACA,WAAA,CACA,qBAAA,CACA,YAAA,CAGD,yBACC,mBAAA,CACA,iBAAA,CACA,iBAAA,CACA,cAAA,CAEA,gCACC,mBAAA,CACA,WAAA,CACA,aAAA,CACA,aAAA,CACA,OAAA,CACA,iBAAA,CACA,gCAAA,CACA,yBAAA,CAGD,2BACC,iBAAA,CACA,YAAA,CACA,UAAA,CACA,sBAAA,CACA,kBAAA,CACA,eAAA,CACA,aAAA,CACA,aAAA,CACA,eAAA,CAEA,iCACC,UAAA,CAIF,qCACC,SAAA,CACA,+BAAA,CAIF,+BACC,oBAAA,CACA,UAAA,CACA,WAAA,CACA,eAAA,CACA,MAAA,CAEA,kCACC,YAAA,CACA,cAAA,CAEA,wCACC,8CAAA,CAGD,mDACC,2CAAA,CAIF,sCACC,UAAA,CACA,mCAAA,CACA,iBAAA,CACA,eAAA,CAGD,2CACC,UAAA,CACA,oBAAA,CACA,WAAA,CACA,UAAA,CACA,kBAAA,CAGD,6CACC,UAAA,CACA,WAAA,CACA,YAAA,CACA,UAAA,CACA,oBAAA,CAGD,8CACC,wBAAA,CACA,MAAA,CACA,eAAA,CACA,kBAAA,CACA,sBAAA,CAIF,0BACC,YAAA,CACA,wBAAA,CACA,gBAAA,CAEA,mCACC,gBAAA",sourcesContent:["\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n::v-deep .modal-container {\n\twidth: calc(100vw - 120px) !important;\n\theight: calc(100vh - 120px) !important;\n\tmax-width: 600px !important;\n\tmax-height: 500px !important;\n}\n\n.modal-content {\n\tdisplay: flex;\n\tbox-sizing: border-box;\n\twidth: 100%;\n\theight: 100%;\n\tflex-direction: column;\n\tpadding: 15px;\n}\n\n.crumbs {\n\tdisplay: inline-flex;\n\tpadding-left: 12px;\n\tpadding-right: 0px;\n\tflex-wrap: wrap;\n\n\t.level {\n\t\tdisplay: inline-flex;\n\t\theight: 44px;\n\t\tmin-width: 0px;\n\t\tflex: 0 0 auto;\n\t\torder: 1;\n\t\tpadding-right: 7px;\n\t\tbackground-position: right center;\n\t\tbackground-size: auto 24px;\n\t}\n\n\ta {\n\t\tposition: relative;\n\t\tpadding: 12px;\n\t\topacity: 0.5;\n\t\ttext-overflow: ellipsis;\n\t\twhite-space: nowrap;\n\t\toverflow: hidden;\n\t\tflex: 0 0 auto;\n\t\tmin-width: 0px;\n\t\tmax-width: 200px;\n\n\t\t&:hover {\n\t\t\topacity: 0.7;\n\t\t}\n\t}\n\n\ta.icon-home {\n\t\twidth: 0px;\n\t\tbackground-position: left center;\n\t}\n}\n\n.mailbox-list {\n\tdisplay: inline-block;\n\twidth: 100%;\n\theight: 100%;\n\toverflow-y: auto;\n\tflex: 1;\n\n\tli {\n\t\tdisplay: flex;\n\t\tcursor: pointer;\n\n\t\t&:hover {\n\t\t\tbackground-color: var(--color-background-hover);\n\t\t}\n\n\t\t&:not(:last-child) {\n\t\t\tborder-bottom: 1px solid var(--color-border);\n\t\t}\n\t}\n\n\t.empty {\n\t\twidth: 100%;\n\t\tcolor: var(--color-text-maxcontrast);\n\t\ttext-align: center;\n\t\tmargin-top: 80px;\n\t}\n\n\t.empty-icon {\n\t\topacity: 0.4;\n\t\tbackground-size: 64px;\n\t\theight: 64px;\n\t\twidth: 64px;\n\t\tmargin: 0 auto 15px;\n\t}\n\n\t.mailbox-icon {\n\t\twidth: 24px;\n\t\theight: 24px;\n\t\tpadding: 14px;\n\t\topacity: 0.9;\n\t\tbackground-size: 24px;\n\t}\n\n\t.mailbox-title {\n\t\tpadding: 14px 14px 14px 0;\n\t\tflex: 1;\n\t\toverflow: hidden;\n\t\twhite-space: nowrap;\n\t\ttext-overflow: ellipsis;\n\t}\n}\n\n.buttons {\n\tdisplay: flex;\n\tjustify-content: flex-end;\n\tpadding-top: 10px;\n\n\t.spinner {\n\t\tmargin-right: 5px;\n\t}\n}\n"],sourceRoot:""}]),n.a=s},1269:function(t,n,e){var a={"./af":984,"./af.js":984,"./ar":985,"./ar.js":985,"./ast":986,"./ast.js":986,"./az":987,"./az.js":987,"./bg":988,"./bg.js":988,"./ca":989,"./ca.js":989,"./cs":990,"./cs.js":990,"./da":991,"./da.js":991,"./de":993,"./de-ch":992,"./de-ch.js":992,"./de.js":993,"./el":994,"./el.js":994,"./en-au":995,"./en-au.js":995,"./en-gb":996,"./en-gb.js":996,"./eo":997,"./eo.js":997,"./es":998,"./es.js":998,"./et":999,"./et.js":999,"./eu":1e3,"./eu.js":1e3,"./fa":1001,"./fa.js":1001,"./fi":1002,"./fi.js":1002,"./fr":1003,"./fr.js":1003,"./gl":1004,"./gl.js":1004,"./gu":1005,"./gu.js":1005,"./he":1006,"./he.js":1006,"./hi":1007,"./hi.js":1007,"./hr":1008,"./hr.js":1008,"./hu":1009,"./hu.js":1009,"./id":1010,"./id.js":1010,"./it":1011,"./it.js":1011,"./ja":1012,"./ja.js":1012,"./km":1013,"./km.js":1013,"./kn":1014,"./kn.js":1014,"./ko":1015,"./ko.js":1015,"./ku":1016,"./ku.js":1016,"./lt":1017,"./lt.js":1017,"./lv":1018,"./lv.js":1018,"./ms":1019,"./ms.js":1019,"./nb":1020,"./nb.js":1020,"./ne":1021,"./ne.js":1021,"./nl":1022,"./nl.js":1022,"./no":1023,"./no.js":1023,"./oc":1024,"./oc.js":1024,"./pl":1025,"./pl.js":1025,"./pt":1027,"./pt-br":1026,"./pt-br.js":1026,"./pt.js":1027,"./ro":1028,"./ro.js":1028,"./ru":1029,"./ru.js":1029,"./si":1030,"./si.js":1030,"./sk":1031,"./sk.js":1031,"./sl":1032,"./sl.js":1032,"./sq":1033,"./sq.js":1033,"./sr":1035,"./sr-latn":1034,"./sr-latn.js":1034,"./sr.js":1035,"./sv":1036,"./sv.js":1036,"./th":1037,"./th.js":1037,"./tk":1038,"./tk.js":1038,"./tr":1039,"./tr.js":1039,"./tt":1040,"./tt.js":1040,"./ug":1041,"./ug.js":1041,"./uk":1042,"./uk.js":1042,"./vi":1043,"./vi.js":1043,"./zh":1045,"./zh-cn":1044,"./zh-cn.js":1044,"./zh.js":1045};function o(t){return i(t).then((function(t){return e.t(t,7)}))}function i(t){return e.e(8).then((function(){if(!e.o(a,t)){var n=new Error("Cannot find module '"+t+"'");throw n.code="MODULE_NOT_FOUND",n}return a[t]}))}o.keys=function(){return Object.keys(a)},o.resolve=i,o.id=1269,t.exports=o},1270:function(t,n,e){"use strict";var a=e(41),o=e.n(a),i=e(42),s=e.n(i)()(o.a);s.push([t.i,"[data-v-733e6248] a{color:#07d}[data-v-733e6248] p{cursor:text}","",{version:3,sources:["webpack://./src/components/TextEditor.vue"],names:[],mappings:"AA+MA,oBACC,UAAA,CAED,oBACC,WAAA",sourcesContent:["\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n::v-deep a {\n\tcolor: #07d;\n}\n::v-deep p {\n\tcursor: text;\n}\n"],sourceRoot:""}]),n.a=s},1304:function(t,n,e){"use strict";var a=e(41),o=e.n(a),i=e(42),s=e.n(i)()(o.a);s.push([t.i,"[data-v-2bf4e148] .tabs-component-tabs{display:flex}[data-v-2bf4e148] .tabs-component-tab{flex-grow:1;text-align:center;color:var(--color-text-lighter);margin-bottom:10px}[data-v-2bf4e148] .tabs-component-tab.is-active{border-bottom:1px solid #000;font-weight:bold}.tabs-component-panels[data-v-2bf4e148]{padding-top:20px}.tabs-component-panels label[data-v-2bf4e148]{text-align:left;width:100%;display:inline-block}.tabs-component-panels input[data-v-2bf4e148],.tabs-component-panels select[data-v-2bf4e148]{margin-bottom:10px}","",{version:3,sources:["webpack://./src/components/AccountForm.vue"],names:[],mappings:"AAkWA,uCACC,YAAA,CAGD,sCACC,WAAA,CACA,iBAAA,CACA,+BAAA,CACA,kBAAA,CAGD,gDACC,4BAAA,CACA,gBAAA,CAGD,wCACC,gBAAA,CAGD,8CACC,eAAA,CACA,UAAA,CACA,oBAAA,CAGD,6FAEC,kBAAA",sourcesContent:["\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n::v-deep .tabs-component-tabs {\n\tdisplay: flex;\n}\n\n::v-deep .tabs-component-tab {\n\tflex-grow: 1;\n\ttext-align: center;\n\tcolor: var(--color-text-lighter);\n\tmargin-bottom: 10px;\n}\n\n::v-deep .tabs-component-tab.is-active {\n\tborder-bottom: 1px solid black;\n\tfont-weight: bold;\n}\n\n.tabs-component-panels {\n\tpadding-top: 20px;\n}\n\n.tabs-component-panels label {\n\ttext-align: left;\n\twidth: 100%;\n\tdisplay: inline-block;\n}\n\n.tabs-component-panels input,\n.tabs-component-panels select {\n\tmargin-bottom: 10px;\n}\n"],sourceRoot:""}]),n.a=s},1305:function(t,n,e){"use strict";var a=e(41),o=e.n(a),i=e(42),s=e.n(i)()(o.a);s.push([t.i,"\nh4[data-v-2bf4e148] {\n\ttext-align: left;\n}\n.flex-row[data-v-2bf4e148] {\n\tdisplay: flex;\n}\nlabel.button[data-v-2bf4e148] {\n\tdisplay: inline-block;\n\ttext-align: center;\n\tflex-grow: 1;\n}\nlabel.primary[data-v-2bf4e148] {\n\tcolor: var(--color-main-background);\n}\ninput.primary[data-v-2bf4e148] {\n\tcolor: var(--color-main-background);\n}\ninput[type='radio'][data-v-2bf4e148] {\n\tdisplay: none;\n}\ninput[type='radio'][disabled] + label[data-v-2bf4e148] {\n\tcursor: default;\n\topacity: 0.5;\n}\n","",{version:3,sources:["webpack://./src/components/AccountForm.vue"],names:[],mappings:";AAmYA;CACA,gBAAA;AACA;AAEA;CACA,aAAA;AACA;AAEA;CACA,qBAAA;CACA,kBAAA;CACA,YAAA;AACA;AACA;CACA,mCAAA;AACA;AACA;CACA,mCAAA;AACA;AAEA;CACA,aAAA;AACA;AAEA;CACA,eAAA;CACA,YAAA;AACA",sourcesContent:['<template>\n\t<form id="account-form" @submit.prevent="onSubmit">\n\t\t<Tabs\n\t\t\t:options="{useUrlFragment: false, defaultTabHash: settingsPage ? \'manual\' : \'auto\'}"\n\t\t\tcache-lifetime="0"\n\t\t\t@changed="onModeChanged">\n\t\t\t<Tab id="auto" key="auto" :name="t(\'mail\', \'Auto\')">\n\t\t\t\t<label for="auto-name">{{ t(\'mail\', \'Name\') }}</label>\n\t\t\t\t<input\n\t\t\t\t\tid="auto-name"\n\t\t\t\t\tv-model="autoConfig.accountName"\n\t\t\t\t\ttype="text"\n\t\t\t\t\t:placeholder="t(\'mail\', \'Name\')"\n\t\t\t\t\t:disabled="loading"\n\t\t\t\t\tautofocus>\n\t\t\t\t<label for="auto-address">{{ t(\'mail\', \'Mail Address\') }}</label>\n\t\t\t\t<input\n\t\t\t\t\tid="auto-address"\n\t\t\t\t\tv-model="autoConfig.emailAddress"\n\t\t\t\t\ttype="email"\n\t\t\t\t\t:placeholder="t(\'mail\', \'Mail Address\')"\n\t\t\t\t\t:disabled="loading"\n\t\t\t\t\trequired>\n\t\t\t\t<label for="auto-password">{{ t(\'mail\', \'Password\') }}</label>\n\t\t\t\t<input\n\t\t\t\t\tid="auto-password"\n\t\t\t\t\tv-model="autoConfig.password"\n\t\t\t\t\ttype="password"\n\t\t\t\t\t:placeholder="t(\'mail\', \'Password\')"\n\t\t\t\t\t:disabled="loading"\n\t\t\t\t\trequired>\n\t\t\t</Tab>\n\t\t\t<Tab id="manual" key="manual" :name="t(\'mail\', \'Manual\')">\n\t\t\t\t<label for="man-name">{{ t(\'mail\', \'Name\') }}</label>\n\t\t\t\t<input\n\t\t\t\t\tid="man-name"\n\t\t\t\t\tv-model="manualConfig.accountName"\n\t\t\t\t\ttype="text"\n\t\t\t\t\t:placeholder="t(\'mail\', \'Name\')"\n\t\t\t\t\t:disabled="loading">\n\t\t\t\t<label for="man-address">{{ t(\'mail\', \'Mail Address\') }}</label>\n\t\t\t\t<input\n\t\t\t\t\tid="man-address"\n\t\t\t\t\tv-model="manualConfig.emailAddress"\n\t\t\t\t\ttype="email"\n\t\t\t\t\t:placeholder="t(\'mail\', \'Mail Address\')"\n\t\t\t\t\t:disabled="loading"\n\t\t\t\t\trequired>\n\n\t\t\t\t<h3>{{ t(\'mail\', \'IMAP Settings\') }}</h3>\n\t\t\t\t<label for="man-imap-host">{{ t(\'mail\', \'IMAP Host\') }}</label>\n\t\t\t\t<input\n\t\t\t\t\tid="man-imap-host"\n\t\t\t\t\tv-model="manualConfig.imapHost"\n\t\t\t\t\ttype="text"\n\t\t\t\t\t:placeholder="t(\'mail\', \'IMAP Host\')"\n\t\t\t\t\t:disabled="loading"\n\t\t\t\t\trequired>\n\t\t\t\t<h4>{{ t(\'mail\', \'IMAP Security\') }}</h4>\n\t\t\t\t<div class="flex-row">\n\t\t\t\t\t<input\n\t\t\t\t\t\tid="man-imap-sec-none"\n\t\t\t\t\t\tv-model="manualConfig.imapSslMode"\n\t\t\t\t\t\ttype="radio"\n\t\t\t\t\t\tname="man-imap-sec"\n\t\t\t\t\t\t:disabled="loading"\n\t\t\t\t\t\tvalue="none"\n\t\t\t\t\t\t@change="onImapSslModeChange">\n\t\t\t\t\t<label\n\t\t\t\t\t\tclass="button"\n\t\t\t\t\t\tfor="man-imap-sec-none"\n\t\t\t\t\t\t:class="{primary: manualConfig.imapSslMode === \'none\'}">{{ t(\'mail\', \'None\') }}</label>\n\t\t\t\t\t<input\n\t\t\t\t\t\tid="man-imap-sec-ssl"\n\t\t\t\t\t\tv-model="manualConfig.imapSslMode"\n\t\t\t\t\t\ttype="radio"\n\t\t\t\t\t\tname="man-imap-sec"\n\t\t\t\t\t\t:disabled="loading"\n\t\t\t\t\t\tvalue="ssl"\n\t\t\t\t\t\t@change="onImapSslModeChange">\n\t\t\t\t\t<label\n\t\t\t\t\t\tclass="button"\n\t\t\t\t\t\tfor="man-imap-sec-ssl"\n\t\t\t\t\t\t:class="{primary: manualConfig.imapSslMode === \'ssl\'}">{{ t(\'mail\', \'SSL/TLS\') }}</label>\n\t\t\t\t\t<input\n\t\t\t\t\t\tid="man-imap-sec-tls"\n\t\t\t\t\t\tv-model="manualConfig.imapSslMode"\n\t\t\t\t\t\ttype="radio"\n\t\t\t\t\t\tname="man-imap-sec"\n\t\t\t\t\t\t:disabled="loading"\n\t\t\t\t\t\tvalue="tls"\n\t\t\t\t\t\t@change="onImapSslModeChange">\n\t\t\t\t\t<label\n\t\t\t\t\t\tclass="button"\n\t\t\t\t\t\tfor="man-imap-sec-tls"\n\t\t\t\t\t\t:class="{primary: manualConfig.imapSslMode === \'tls\'}">{{ t(\'mail\', \'STARTTLS\') }}</label>\n\t\t\t\t</div>\n\t\t\t\t<label for="man-imap-port">{{ t(\'mail\', \'IMAP Port\') }}</label>\n\t\t\t\t<input\n\t\t\t\t\tid="man-imap-port"\n\t\t\t\t\tv-model="manualConfig.imapPort"\n\t\t\t\t\ttype="number"\n\t\t\t\t\t:placeholder="t(\'mail\', \'IMAP Port\')"\n\t\t\t\t\t:disabled="loading"\n\t\t\t\t\trequired>\n\t\t\t\t<label for="man-imap-user">{{ t(\'mail\', \'IMAP User\') }}</label>\n\t\t\t\t<input\n\t\t\t\t\tid="man-imap-user"\n\t\t\t\t\tv-model="manualConfig.imapUser"\n\t\t\t\t\ttype="text"\n\t\t\t\t\t:placeholder="t(\'mail\', \'IMAP User\')"\n\t\t\t\t\t:disabled="loading"\n\t\t\t\t\trequired>\n\t\t\t\t<label for="man-imap-password">{{ t(\'mail\', \'IMAP Password\') }}</label>\n\t\t\t\t<input\n\t\t\t\t\tid="man-imap-password"\n\t\t\t\t\tv-model="manualConfig.imapPassword"\n\t\t\t\t\ttype="password"\n\t\t\t\t\t:placeholder="t(\'mail\', \'IMAP Password\')"\n\t\t\t\t\t:disabled="loading"\n\t\t\t\t\trequired>\n\n\t\t\t\t<h3>{{ t(\'mail\', \'SMTP Settings\') }}</h3>\n\t\t\t\t<label for="man-smtp-host">{{ t(\'mail\', \'SMTP Host\') }}</label>\n\t\t\t\t<input\n\t\t\t\t\tid="man-smtp-host"\n\t\t\t\t\tref="smtpHost"\n\t\t\t\t\tv-model="manualConfig.smtpHost"\n\t\t\t\t\ttype="text"\n\t\t\t\t\tname="smtp-host"\n\t\t\t\t\t:placeholder="t(\'mail\', \'SMTP Host\')"\n\t\t\t\t\t:disabled="loading"\n\t\t\t\t\trequired>\n\t\t\t\t<h4>{{ t(\'mail\', \'SMTP Security\') }}</h4>\n\t\t\t\t<div class="flex-row">\n\t\t\t\t\t<input\n\t\t\t\t\t\tid="man-smtp-sec-none"\n\t\t\t\t\t\tv-model="manualConfig.smtpSslMode"\n\t\t\t\t\t\ttype="radio"\n\t\t\t\t\t\tname="man-smtp-sec"\n\t\t\t\t\t\t:disabled="loading"\n\t\t\t\t\t\tvalue="none"\n\t\t\t\t\t\t@change="onSmtpSslModeChange">\n\t\t\t\t\t<label\n\t\t\t\t\t\tclass="button"\n\t\t\t\t\t\tfor="man-smtp-sec-none"\n\t\t\t\t\t\t:class="{primary: manualConfig.smtpSslMode === \'none\'}">{{ t(\'mail\', \'None\') }}</label>\n\t\t\t\t\t<input\n\t\t\t\t\t\tid="man-smtp-sec-ssl"\n\t\t\t\t\t\tv-model="manualConfig.smtpSslMode"\n\t\t\t\t\t\ttype="radio"\n\t\t\t\t\t\tname="man-smtp-sec"\n\t\t\t\t\t\t:disabled="loading"\n\t\t\t\t\t\tvalue="ssl"\n\t\t\t\t\t\t@change="onSmtpSslModeChange">\n\t\t\t\t\t<label\n\t\t\t\t\t\tclass="button"\n\t\t\t\t\t\tfor="man-smtp-sec-ssl"\n\t\t\t\t\t\t:class="{primary: manualConfig.smtpSslMode === \'ssl\'}">{{ t(\'mail\', \'SSL/TLS\') }}</label>\n\t\t\t\t\t<input\n\t\t\t\t\t\tid="man-smtp-sec-tls"\n\t\t\t\t\t\tv-model="manualConfig.smtpSslMode"\n\t\t\t\t\t\ttype="radio"\n\t\t\t\t\t\tname="man-smtp-sec"\n\t\t\t\t\t\t:disabled="loading"\n\t\t\t\t\t\tvalue="tls"\n\t\t\t\t\t\t@change="onSmtpSslModeChange">\n\t\t\t\t\t<label\n\t\t\t\t\t\tclass="button"\n\t\t\t\t\t\tfor="man-smtp-sec-tls"\n\t\t\t\t\t\t:class="{primary: manualConfig.smtpSslMode === \'tls\'}">{{ t(\'mail\', \'STARTTLS\') }}</label>\n\t\t\t\t</div>\n\t\t\t\t<label for="man-smtp-port">{{ t(\'mail\', \'SMTP Port\') }}</label>\n\t\t\t\t<input\n\t\t\t\t\tid="man-smtp-port"\n\t\t\t\t\tv-model="manualConfig.smtpPort"\n\t\t\t\t\ttype="number"\n\t\t\t\t\t:placeholder="t(\'mail\', \'SMTP Port\')"\n\t\t\t\t\t:disabled="loading"\n\t\t\t\t\trequired>\n\t\t\t\t<label for="man-smtp-user">{{ t(\'mail\', \'SMTP User\') }}</label>\n\t\t\t\t<input\n\t\t\t\t\tid="man-smtp-user"\n\t\t\t\t\tv-model="manualConfig.smtpUser"\n\t\t\t\t\ttype="text"\n\t\t\t\t\t:placeholder="t(\'mail\', \'SMTP User\')"\n\t\t\t\t\t:disabled="loading"\n\t\t\t\t\trequired>\n\t\t\t\t<label for="man-smtp-password">{{ t(\'mail\', \'SMTP Password\') }}</label>\n\t\t\t\t<input\n\t\t\t\t\tid="man-smtp-password"\n\t\t\t\t\tv-model="manualConfig.smtpPassword"\n\t\t\t\t\ttype="password"\n\t\t\t\t\t:placeholder="t(\'mail\', \'SMTP Password\')"\n\t\t\t\t\t:disabled="loading"\n\t\t\t\t\trequired>\n\t\t\t</Tab>\n\t\t</Tabs>\n\t\t<slot name="feedback" />\n\t\t<input type="submit"\n\t\t\tclass="primary"\n\t\t\t:disabled="loading"\n\t\t\t:value="submitButtonText"\n\t\t\t@click.prevent="onSubmit">\n\t</form>\n</template>\n\n<script>\nimport { Tab, Tabs } from \'vue-tabs-component\'\n\nimport logger from \'../logger\'\n\nexport default {\n\tname: \'AccountForm\',\n\tcomponents: {\n\t\tTab,\n\t\tTabs,\n\t},\n\tprops: {\n\t\tdisplayName: {\n\t\t\ttype: String,\n\t\t\tdefault: \'\',\n\t\t},\n\t\temail: {\n\t\t\ttype: String,\n\t\t\tdefault: \'\',\n\t\t},\n\t\tsave: {\n\t\t\ttype: Function,\n\t\t\trequired: true,\n\t\t},\n\t\taccount: {\n\t\t\ttype: Object,\n\t\t\trequired: false,\n\t\t\tdefault: () => undefined,\n\t\t},\n\t},\n\tdata() {\n\t\tconst fromAccountOr = (prop, def) => {\n\t\t\tif (this.account !== undefined) {\n\t\t\t\treturn this.account[prop]\n\t\t\t} else {\n\t\t\t\treturn def\n\t\t\t}\n\t\t}\n\n\t\treturn {\n\t\t\tloading: false,\n\t\t\tmode: \'auto\',\n\t\t\tautoConfig: {\n\t\t\t\taccountName: this.displayName,\n\t\t\t\temailAddress: this.email,\n\t\t\t\tpassword: \'\',\n\t\t\t},\n\t\t\tmanualConfig: {\n\t\t\t\taccountName: \'\',\n\t\t\t\temailAddress: \'\',\n\t\t\t\timapHost: fromAccountOr(\'imapHost\', \'\'),\n\t\t\t\timapPort: fromAccountOr(\'imapPort\', 993),\n\t\t\t\timapSslMode: fromAccountOr(\'imapSslMode\', \'ssl\'),\n\t\t\t\timapUser: fromAccountOr(\'imapUser\', \'\'),\n\t\t\t\timapPassword: \'\',\n\t\t\t\tsmtpHost: fromAccountOr(\'smtpHost\', \'\'),\n\t\t\t\tsmtpPort: fromAccountOr(\'smtpPort\', 587),\n\t\t\t\tsmtpSslMode: fromAccountOr(\'smtpSslMode\', \'tls\'),\n\t\t\t\tsmtpUser: fromAccountOr(\'smtpUser\', \'\'),\n\t\t\t\tsmtpPassword: \'\',\n\t\t\t},\n\t\t\tsubmitButtonText: this.account ? t(\'mail\', \'Save\') : t(\'mail\', \'Connect\'),\n\t\t}\n\t},\n\tcomputed: {\n\t\tsettingsPage() {\n\t\t\treturn this.account !== undefined\n\t\t},\n\t},\n\tmethods: {\n\t\tonModeChanged(e) {\n\t\t\tthis.mode = e.tab.id\n\n\t\t\tif (this.mode === \'manual\') {\n\t\t\t\tif (this.manualConfig.accountName === \'\') {\n\t\t\t\t\tthis.manualConfig.accountName = this.autoConfig.accountName\n\t\t\t\t}\n\t\t\t\tif (this.manualConfig.emailAddress === \'\') {\n\t\t\t\t\tthis.manualConfig.emailAddress = this.autoConfig.emailAddress\n\t\t\t\t}\n\n\t\t\t\t// IMAP\n\t\t\t\tif (this.manualConfig.imapUser === \'\') {\n\t\t\t\t\tthis.manualConfig.imapUser = this.autoConfig.emailAddress\n\t\t\t\t}\n\t\t\t\tif (this.manualConfig.imapPassword === \'\') {\n\t\t\t\t\tthis.manualConfig.imapPassword = this.autoConfig.password\n\t\t\t\t}\n\n\t\t\t\t// SMTP\n\t\t\t\tif (this.manualConfig.smtpUser === \'\') {\n\t\t\t\t\tthis.manualConfig.smtpUser = this.autoConfig.emailAddress\n\t\t\t\t}\n\t\t\t\tif (this.manualConfig.smtpPassword === \'\') {\n\t\t\t\t\tthis.manualConfig.smtpPassword = this.autoConfig.password\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\tonImapSslModeChange() {\n\t\t\tswitch (this.manualConfig.imapSslMode) {\n\t\t\tcase \'none\':\n\t\t\tcase \'tls\':\n\t\t\t\tthis.manualConfig.imapPort = 143\n\t\t\t\tbreak\n\t\t\tcase \'ssl\':\n\t\t\t\tthis.manualConfig.imapPort = 993\n\t\t\t\tbreak\n\t\t\t}\n\t\t},\n\t\tonSmtpSslModeChange() {\n\t\t\tswitch (this.manualConfig.smtpSslMode) {\n\t\t\tcase \'none\':\n\t\t\tcase \'tls\':\n\t\t\t\tthis.manualConfig.smtpPort = 587\n\t\t\t\tbreak\n\t\t\tcase \'ssl\':\n\t\t\t\tthis.manualConfig.smtpPort = 465\n\t\t\t\tbreak\n\t\t\t}\n\t\t},\n\t\tsaveChanges() {\n\t\t\tif (this.mode === \'auto\') {\n\t\t\t\treturn this.save({\n\t\t\t\t\tautoDetect: true,\n\t\t\t\t\t...this.autoConfig,\n\t\t\t\t})\n\t\t\t} else {\n\t\t\t\treturn this.save({\n\t\t\t\t\tautoDetect: false,\n\t\t\t\t\t...this.manualConfig,\n\t\t\t\t})\n\t\t\t}\n\t\t},\n\t\tonSubmit(event) {\n\t\t\tconsole.debug(\'account form submitted\', { event })\n\n\t\t\tthis.loading = true\n\n\t\t\tthis.saveChanges()\n\t\t\t\t.catch((error) => logger.error(\'could not save account details\', { error }))\n\t\t\t\t.then(() => (this.loading = false))\n\t\t},\n\t},\n}\n<\/script>\n\n<style lang="scss" scoped>\n::v-deep .tabs-component-tabs {\n\tdisplay: flex;\n}\n\n::v-deep .tabs-component-tab {\n\tflex-grow: 1;\n\ttext-align: center;\n\tcolor: var(--color-text-lighter);\n\tmargin-bottom: 10px;\n}\n\n::v-deep .tabs-component-tab.is-active {\n\tborder-bottom: 1px solid black;\n\tfont-weight: bold;\n}\n\n.tabs-component-panels {\n\tpadding-top: 20px;\n}\n\n.tabs-component-panels label {\n\ttext-align: left;\n\twidth: 100%;\n\tdisplay: inline-block;\n}\n\n.tabs-component-panels input,\n.tabs-component-panels select {\n\tmargin-bottom: 10px;\n}\n</style>\n\n<style scoped>\nh4 {\n\ttext-align: left;\n}\n\n.flex-row {\n\tdisplay: flex;\n}\n\nlabel.button {\n\tdisplay: inline-block;\n\ttext-align: center;\n\tflex-grow: 1;\n}\nlabel.primary {\n\tcolor: var(--color-main-background);\n}\ninput.primary {\n\tcolor: var(--color-main-background);\n}\n\ninput[type=\'radio\'] {\n\tdisplay: none;\n}\n\ninput[type=\'radio\'][disabled] + label {\n\tcursor: default;\n\topacity: 0.5;\n}\n</style>\n'],sourceRoot:""}]),n.a=s},1306:function(t,n,e){"use strict";var a=e(41),o=e.n(a),i=e(42),s=e.n(i)()(o.a);s.push([t.i,"label[data-v-7db23f84]{padding-right:12px}","",{version:3,sources:["webpack://./src/components/EditorSettings.vue"],names:[],mappings:"AAoFA,uBACC,kBAAA",sourcesContent:["\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nlabel {\n\tpadding-right: 12px;\n}\n"],sourceRoot:""}]),n.a=s},1325:function(t,n,e){"use strict";var a=e(41),o=e.n(a),i=e(42),s=e.n(i)()(o.a);s.push([t.i,"\n.vue-treeselect__control {\n\tpadding: 0;\n\tborder: 0;\n\twidth: 250px;\n}\n.vue-treeselect__control-arrow-container {\n\tdisplay: none;\n}\n.vue-treeselect--searchable .vue-treeselect__input-container {\n\tpadding-left: 0;\n}\ninput.vue-treeselect__input {\n\tmargin: 0;\n\tpadding: 0;\n}\n","",{version:3,sources:["webpack://./src/components/MailboxInlinePicker.vue"],names:[],mappings:";AAsEA;CACA,UAAA;CACA,SAAA;CACA,YAAA;AACA;AACA;CACA,aAAA;AACA;AACA;CACA,eAAA;AACA;AACA;CACA,SAAA;CACA,UAAA;AACA",sourcesContent:['<template>\n\t<Treeselect\n\t\tref="Treeselect"\n\t\tv-model="selected"\n\t\t:options="mailboxes"\n\t\t:multiple="false"\n\t\t:clearable="false"\n\t\t:disabled="disabled" />\n</template>\n<script>\nimport Treeselect from \'@riophae/vue-treeselect\'\nimport \'@riophae/vue-treeselect/dist/vue-treeselect.css\'\n\nexport default {\n\tname: \'MailboxInlinePicker\',\n\tcomponents: {\n\t\tTreeselect,\n\t},\n\tprops: {\n\t\taccount: {\n\t\t\ttype: Object,\n\t\t\trequired: true,\n\t\t},\n\t\tdisabled: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\t\tvalue: {\n\t\t\ttype: Number,\n\t\t\trequired: false,\n\t\t},\n\t},\n\tdata() {\n\t\treturn {\n\t\t\tselected: this.value,\n\t\t}\n\t},\n\tcomputed: {\n\t\tmailboxes() {\n\t\t\treturn this.getMailboxes()\n\t\t},\n\t},\n\twatch: {\n\t\tselected(val) {\n\t\t\tif (val !== this.value) {\n\t\t\t\tthis.$emit(\'input\', val)\n\t\t\t\tthis.selected = val\n\t\t\t}\n\t\t},\n\t},\n\tmethods: {\n\t\tgetMailboxes(mailboxId) {\n\t\t\tlet mailboxes = []\n\t\t\tif (!mailboxId) {\n\t\t\t\tmailboxes = this.$store.getters.getMailboxes(this.account.accountId)\n\t\t\t} else {\n\t\t\t\tmailboxes = this.$store.getters.getSubMailboxes(mailboxId)\n\t\t\t}\n\t\t\treturn mailboxes.map((mailbox) => {\n\t\t\t\t return {\n\t\t\t\t\tid: mailbox.databaseId,\n\t\t\t\t\tlabel: mailbox.displayName,\n\t\t\t\t\tchildren: mailbox.mailboxes.length > 0 ? this.getMailboxes(mailbox.databaseId) : \'\',\n\t\t\t\t}\n\t\t\t})\n\t\t},\n\t},\n}\n<\/script>\n<style>\n.vue-treeselect__control {\n\tpadding: 0;\n\tborder: 0;\n\twidth: 250px;\n}\n.vue-treeselect__control-arrow-container {\n\tdisplay: none;\n}\n.vue-treeselect--searchable .vue-treeselect__input-container {\n\tpadding-left: 0;\n}\ninput.vue-treeselect__input {\n\tmargin: 0;\n\tpadding: 0;\n}\n</style>\n'],sourceRoot:""}]),n.a=s},1326:function(t,n,e){"use strict";var a=e(41),o=e.n(a),i=e(42),s=e.n(i)()(o.a);s.push([t.i,".button.icon-rename[data-v-3a6599f7]{background-color:transparent;border:none;opacity:.3}.button.icon-rename[data-v-3a6599f7]:hover,.button.icon-rename[data-v-3a6599f7]:focus{opacity:1}","",{version:3,sources:["webpack://./src/components/AccountDefaultsSettings.vue"],names:[],mappings:"AAoJA,qCACC,4BAAA,CACA,WAAA,CACA,UAAA,CAEA,sFAEC,SAAA",sourcesContent:["\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n.button.icon-rename {\n\tbackground-color: transparent;\n\tborder: none;\n\topacity: 0.3;\n\n\t&:hover,\n\t&:focus {\n\t\topacity: 1;\n\t}\n}\n"],sourceRoot:""}]),n.a=s},1327:function(t,n,e){"use strict";var a=e(41),o=e.n(a),i=e(42),s=e.n(i)()(o.a);s.push([t.i,".ck.ck-editor__editable_inline[data-v-25a86580]{width:330px;max-width:78vw;height:100px;border-radius:var(--border-radius) !important;border:1px solid var(--color-border) !important;box-shadow:none !important}.primary[data-v-25a86580]{padding-left:26px;background-position:6px;color:var(--color-main-background)}.primary[data-v-25a86580]:after{left:14px}.button-text[data-v-25a86580]{background-color:transparent;border:none;color:var(--color-text-maxcontrast);font-weight:normal}.button-text[data-v-25a86580]:hover,.button-text[data-v-25a86580]:focus{color:var(--color-main-text)}.section[data-v-25a86580]{display:block;padding:0;margin-bottom:23px}","",{version:3,sources:["webpack://./src/components/SignatureSettings.vue"],names:[],mappings:"AAsGA,gDACC,WAAA,CACA,cAAA,CACA,YAAA,CACA,6CAAA,CACA,+CAAA,CACA,0BAAA,CAGD,0BACC,iBAAA,CACA,uBAAA,CACA,kCAAA,CAEA,gCACC,SAAA,CAIF,8BACC,4BAAA,CACA,WAAA,CACA,mCAAA,CACA,kBAAA,CAEA,wEAEC,4BAAA,CAGF,0BACC,aAAA,CACA,SAAA,CACA,kBAAA",sourcesContent:["\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n.ck.ck-editor__editable_inline {\n\twidth: 330px;\n\tmax-width: 78vw;\n\theight: 100px;\n\tborder-radius: var(--border-radius) !important;\n\tborder: 1px solid var(--color-border) !important;\n\tbox-shadow: none !important;\n}\n\n.primary {\n\tpadding-left: 26px;\n\tbackground-position: 6px;\n\tcolor: var(--color-main-background);\n\n\t&:after {\n\t\tleft: 14px;\n\t}\n}\n\n.button-text {\n\tbackground-color: transparent;\n\tborder: none;\n\tcolor: var(--color-text-maxcontrast);\n\tfont-weight: normal;\n\n\t&:hover,\n\t&:focus {\n\t\tcolor: var(--color-main-text);\n\t}\n}\n.section {\n\tdisplay: block;\n\tpadding: 0;\n\tmargin-bottom: 23px;\n}\n"],sourceRoot:""}]),n.a=s},1328:function(t,n,e){"use strict";var a=e(41),o=e.n(a),i=e(42),s=e.n(i)()(o.a);s.push([t.i,"\n.ck-balloon-panel {\n\tz-index: 10000 !important;\n}\n","",{version:3,sources:["webpack://./src/components/SignatureSettings.vue"],names:[],mappings:";AA2IA;CACA,yBAAA;AACA",sourcesContent:["\x3c!--\n  - @copyright 2019 Christoph Wurst <christoph@winzerhof-wurst.at>\n  -\n  - @author 2019 Christoph Wurst <christoph@winzerhof-wurst.at>\n  -\n  - @license GNU AGPL version 3 or any later version\n  -\n  - This program is free software: you can redistribute it and/or modify\n  - it under the terms of the GNU Affero General Public License as\n  - published by the Free Software Foundation, either version 3 of the\n  - License, or (at your option) any later version.\n  -\n  - This program is distributed in the hope that it will be useful,\n  - but WITHOUT ANY WARRANTY; without even the implied warranty of\n  - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n  - GNU Affero General Public License for more details.\n  -\n  - You should have received a copy of the GNU Affero General Public License\n  - along with this program.  If not, see <http://www.gnu.org/licenses/>.\n  --\x3e\n\n<template>\n\t<div class=\"section\">\n\t\t<TextEditor v-model=\"signature\"\n\t\t\t:html=\"true\"\n\t\t\t:placeholder=\"t('mail', 'Signature …')\"\n\t\t\t:bus=\"bus\" />\n\t\t<button\n\t\t\tclass=\"primary\"\n\t\t\t:class=\"loading ? 'icon-loading-small-dark' : 'icon-checkmark-white'\"\n\t\t\t:disabled=\"loading\"\n\t\t\t@click=\"saveSignature\">\n\t\t\t{{ t('mail', 'Save signature') }}\n\t\t</button>\n\t\t<button v-if=\"signature\" class=\"button-text\" @click=\"deleteSignature\">\n\t\t\t{{ t('mail', 'Delete') }}\n\t\t</button>\n\t</div>\n</template>\n\n<script>\nimport logger from '../logger'\nimport TextEditor from './TextEditor'\nimport { detect, toHtml } from '../util/text'\nimport Vue from 'vue'\n\nexport default {\n\tname: 'SignatureSettings',\n\tcomponents: {\n\t\tTextEditor,\n\t},\n\tprops: {\n\t\taccount: {\n\t\t\ttype: Object,\n\t\t\trequired: true,\n\t\t},\n\t},\n\tdata() {\n\t\treturn {\n\t\t\tloading: false,\n\t\t\tbus: new Vue(),\n\t\t}\n\t},\n\tcreated() {\n\t\tthis.signature = this.account.signature ? toHtml(detect(this.account.signature)).value : ''\n\t},\n\tmethods: {\n\t\tdeleteSignature() {\n\t\t\tthis.loading = true\n\n\t\t\tthis.$store\n\t\t\t\t.dispatch('updateAccountSignature', { account: this.account, signature: null })\n\t\t\t\t.then(() => {\n\t\t\t\t\tlogger.info('signature deleted')\n\t\t\t\t\tthis.signature = ''\n\t\t\t\t\tthis.loading = false\n\t\t\t\t})\n\t\t\t\t.catch((error) => {\n\t\t\t\t\tlogger.error('could not delete account signature', { error })\n\t\t\t\t\tthrow error\n\t\t\t\t})\n\t\t},\n\t\tsaveSignature() {\n\t\t\tthis.loading = true\n\n\t\t\tthis.$store\n\t\t\t\t.dispatch('updateAccountSignature', { account: this.account, signature: this.signature })\n\t\t\t\t.then(() => {\n\t\t\t\t\tlogger.info('signature updated')\n\t\t\t\t\tthis.loading = false\n\t\t\t\t})\n\t\t\t\t.catch((error) => {\n\t\t\t\t\tlogger.error('could not update account signature', { error })\n\t\t\t\t\tthrow error\n\t\t\t\t})\n\t\t},\n\t},\n}\n<\/script>\n\n<style lang=\"scss\" scoped>\n\n.ck.ck-editor__editable_inline {\n\twidth: 330px;\n\tmax-width: 78vw;\n\theight: 100px;\n\tborder-radius: var(--border-radius) !important;\n\tborder: 1px solid var(--color-border) !important;\n\tbox-shadow: none !important;\n}\n\n.primary {\n\tpadding-left: 26px;\n\tbackground-position: 6px;\n\tcolor: var(--color-main-background);\n\n\t&:after {\n\t\tleft: 14px;\n\t}\n}\n\n.button-text {\n\tbackground-color: transparent;\n\tborder: none;\n\tcolor: var(--color-text-maxcontrast);\n\tfont-weight: normal;\n\n\t&:hover,\n\t&:focus {\n\t\tcolor: var(--color-main-text);\n\t}\n}\n.section {\n\tdisplay: block;\n\tpadding: 0;\n\tmargin-bottom: 23px;\n}\n</style>\n<style>\n.ck-balloon-panel {\n\tz-index: 10000 !important;\n}\n</style>\n"],sourceRoot:""}]),n.a=s},1329:function(t,n,e){"use strict";var a=e(41),o=e.n(a),i=e(42),s=e.n(i)()(o.a);s.push([t.i,".primary[data-v-2c8c77c6]{padding-left:26px;background-position:6px;color:var(--color-main-background)}.primary[data-v-2c8c77c6]:after{left:14px}input[data-v-2c8c77c6]{width:195px}.aliases-list[data-v-2c8c77c6]{margin:.5rem 0rem}.icon-delete[data-v-2c8c77c6]{vertical-align:bottom;background-image:var(--icon-delete-000);background-color:var(--color-main-background);border:none;opacity:.7}.icon-delete[data-v-2c8c77c6]:hover,.icon-delete[data-v-2c8c77c6]:focus{opacity:1}.icon-add[data-v-2c8c77c6]{background-image:var(--icon-add-fff)}","",{version:3,sources:["webpack://./src/components/AliasSettings.vue"],names:[],mappings:"AAmHA,0BACC,iBAAA,CACA,uBAAA,CACA,kCAAA,CAEA,gCACC,SAAA,CAGF,uBACC,WAAA,CAED,+BACC,iBAAA,CAED,8BACC,qBAAA,CACA,uCAAA,CACA,6CAAA,CACA,WAAA,CACA,UAAA,CACA,wEAEC,SAAA,CAGF,2BACC,oCAAA",sourcesContent:["\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n.primary {\n\tpadding-left: 26px;\n\tbackground-position: 6px;\n\tcolor: var(--color-main-background);\n\n\t&:after {\n\t\tleft: 14px;\n\t}\n}\ninput {\n\twidth: 195px;\n}\n.aliases-list {\n\tmargin: 0.5rem 0rem;\n}\n.icon-delete {\n\tvertical-align: bottom;\n\tbackground-image: var(--icon-delete-000);\n\tbackground-color: var(--color-main-background);\n\tborder: none;\n\topacity: 0.7;\n\t&:hover,\n\t&:focus {\n\t\topacity: 1;\n\t}\n}\n.icon-add {\n\tbackground-image: var(--icon-add-fff);\n}\n"],sourceRoot:""}]),n.a=s},1336:function(t,n,e){"use strict";var a=e(41),o=e.n(a),i=e(42),s=e.n(i)()(o.a);s.push([t.i,"\nform[data-v-8b1dc5a0] {\n\twidth: 250px\n}\nlabel[data-v-8b1dc5a0] {\n\tdisplay: inline-block;\n}\ninput[data-v-8b1dc5a0] {\n\twidth: 100%;\n}\n.flex-row[data-v-8b1dc5a0] {\n\tdisplay: flex;\n}\nlabel.button[data-v-8b1dc5a0] {\n\ttext-align: center;\n\tflex-grow: 1;\n}\nlabel.error[data-v-8b1dc5a0] {\n\tcolor: red;\n}\ninput[type='radio'][data-v-8b1dc5a0] {\n\tdisplay: none;\n}\n","",{version:3,sources:["webpack://./src/components/SieveAccountForm.vue"],names:[],mappings:";AAgMA;CACA;AACA;AAEA;CACA,qBAAA;AACA;AAEA;CACA,WAAA;AACA;AAEA;CACA,aAAA;AACA;AAEA;CACA,kBAAA;CACA,YAAA;AACA;AAEA;CACA,UAAA;AACA;AAEA;CACA,aAAA;AACA",sourcesContent:['<template>\n\t<form id="sieve-form">\n\t\t<p>\n\t\t\t<input\n\t\t\t\tid="sieve-disabled"\n\t\t\t\tv-model="sieveConfig.sieveEnabled"\n\t\t\t\ttype="radio"\n\t\t\t\tclass="radio"\n\t\t\t\tname="sieve-active"\n\t\t\t\t:value="false">\n\t\t\t<label\n\t\t\t\t:class="{primary: !sieveConfig.sieveEnabled}"\n\t\t\t\tfor="sieve-disabled">\n\t\t\t\t{{ t(\'mail\', \'Disabled\') }}\n\t\t\t</label>\n\t\t\t<input\n\t\t\t\tid="sieve-enabled"\n\t\t\t\tv-model="sieveConfig.sieveEnabled"\n\t\t\t\ttype="radio"\n\t\t\t\tclass="radio"\n\t\t\t\tname="sieve-active"\n\t\t\t\t:value="true">\n\t\t\t<label\n\t\t\t\t:class="{primary: sieveConfig.sieveEnabled}"\n\t\t\t\tfor="sieve-enabled">\n\t\t\t\t{{ t(\'mail\', \'Enabled\') }}\n\t\t\t</label>\n\t\t</p>\n\t\t<template v-if="sieveConfig.sieveEnabled">\n\t\t\t<label for="sieve-host">{{ t(\'mail\', \'Sieve Host\') }}</label>\n\t\t\t<input\n\t\t\t\tid="sieve-host"\n\t\t\t\tv-model="sieveConfig.sieveHost"\n\t\t\t\ttype="text"\n\t\t\t\trequired>\n\t\t\t<h4>{{ t(\'mail\', \'Sieve Security\') }}</h4>\n\t\t\t<div class="flex-row">\n\t\t\t\t<input\n\t\t\t\t\tid="sieve-sec-none"\n\t\t\t\t\tv-model="sieveConfig.sieveSslMode"\n\t\t\t\t\ttype="radio"\n\t\t\t\t\tname="sieve-sec"\n\t\t\t\t\tvalue="none">\n\t\t\t\t<label\n\t\t\t\t\tclass="button"\n\t\t\t\t\tfor="sieve-sec-none"\n\t\t\t\t\t:class="{primary: sieveConfig.sieveSslMode === \'none\'}">{{\n\t\t\t\t\t\tt(\'mail\', \'None\')\n\t\t\t\t\t}}</label>\n\t\t\t\t<input\n\t\t\t\t\tid="sieve-sec-ssl"\n\t\t\t\t\tv-model="sieveConfig.sieveSslMode"\n\t\t\t\t\ttype="radio"\n\t\t\t\t\tname="sieve-sec"\n\t\t\t\t\tvalue="ssl">\n\t\t\t\t<label\n\t\t\t\t\tclass="button"\n\t\t\t\t\tfor="sieve-sec-ssl"\n\t\t\t\t\t:class="{primary: sieveConfig.sieveSslMode === \'ssl\'}">\n\t\t\t\t\t{{ t(\'mail\', \'SSL/TLS\') }}\n\t\t\t\t</label>\n\t\t\t\t<input\n\t\t\t\t\tid="sieve-sec-tls"\n\t\t\t\t\tv-model="sieveConfig.sieveSslMode"\n\t\t\t\t\ttype="radio"\n\t\t\t\t\tname="sieve-sec"\n\t\t\t\t\tvalue="tls">\n\t\t\t\t<label\n\t\t\t\t\tclass="button"\n\t\t\t\t\tfor="sieve-sec-tls"\n\t\t\t\t\t:class="{primary: sieveConfig.sieveSslMode === \'tls\'}">\n\t\t\t\t\t{{ t(\'mail\', \'STARTTLS\') }}\n\t\t\t\t</label>\n\t\t\t</div>\n\t\t\t<label for="sieve-port">{{ t(\'mail\', \'Sieve Port\') }}</label>\n\t\t\t<input\n\t\t\t\tid="sieve-port"\n\t\t\t\tv-model="sieveConfig.sievePort"\n\t\t\t\ttype="text"\n\t\t\t\trequired>\n\t\t\t<h4>{{ t(\'mail\', \'Sieve Credentials\') }}</h4>\n\t\t\t<p>\n\t\t\t\t<input\n\t\t\t\t\tid="sieve-credentials-imap"\n\t\t\t\t\tv-model="useImapCredentials"\n\t\t\t\t\ttype="radio"\n\t\t\t\t\tclass="radio"\n\t\t\t\t\t:value="true">\n\t\t\t\t<label\n\t\t\t\t\t:class="{primary: useImapCredentials}"\n\t\t\t\t\tfor="sieve-credentials-imap">\n\t\t\t\t\t{{ t(\'mail\', \'IMAP Credentials\') }}\n\t\t\t\t</label>\n\t\t\t\t<input\n\t\t\t\t\tid="sieve-credentials-custom"\n\t\t\t\t\tv-model="useImapCredentials"\n\t\t\t\t\ttype="radio"\n\t\t\t\t\tclass="radio"\n\t\t\t\t\t:value="false">\n\t\t\t\t<label\n\t\t\t\t\t:class="{primary: !useImapCredentials}"\n\t\t\t\t\tfor="sieve-credentials-custom">\n\t\t\t\t\t{{ t(\'mail\', \'Custom\') }}\n\t\t\t\t</label>\n\t\t\t</p>\n\t\t\t<template v-if="!useImapCredentials">\n\t\t\t\t<label for="sieve-user">{{ t(\'mail\', \'Sieve User\') }}</label>\n\t\t\t\t<input\n\t\t\t\t\tid="sieve-user"\n\t\t\t\t\tv-model="sieveConfig.sieveUser"\n\t\t\t\t\ttype="text"\n\t\t\t\t\trequired>\n\t\t\t\t<label for="sieve-password">{{\n\t\t\t\t\tt(\'mail\', \'Sieve Password\')\n\t\t\t\t}}</label>\n\t\t\t\t<input\n\t\t\t\t\tid="sieve-password"\n\t\t\t\t\tv-model="sieveConfig.sievePassword"\n\t\t\t\t\ttype="password"\n\t\t\t\t\trequired>\n\t\t\t</template>\n\t\t</template>\n\t\t<slot name="feedback" />\n\t\t<p v-if="errorMessage">\n\t\t\t{{ t(\'mail\', \'Oh Snap!\') }}\n\t\t\t{{ errorMessage }}\n\t\t</p>\n\t\t<input type="submit"\n\t\t\tclass="primary"\n\t\t\t:disabled="loading"\n\t\t\t:value="submitButtonText"\n\t\t\t@click.prevent="onSubmit">\n\t</form>\n</template>\n\n<script>\nexport default {\n\tname: \'SieveAccountForm\',\n\tprops: {\n\t\taccount: {\n\t\t\ttype: Object,\n\t\t\trequired: true,\n\t\t},\n\t},\n\tdata() {\n\t\treturn {\n\t\t\tsieveConfig: {\n\t\t\t\tsieveEnabled: this.account.sieveEnabled,\n\t\t\t\tsieveHost: this.account.sieveHost || this.account.imapHost,\n\t\t\t\tsievePort: this.account.sievePort || 4190,\n\t\t\t\tsieveUser: this.account.sieveUser || \'\',\n\t\t\t\tsievePassword: \'\',\n\t\t\t\tsieveSslMode: this.account.sieveSslMode || \'tls\',\n\t\t\t},\n\t\t\tloading: false,\n\t\t\tuseImapCredentials: !this.account.sieveUser,\n\t\t\terrorMessage: \'\',\n\t\t\tsubmitButtonText: t(\'mail\', \'Save sieve settings\'),\n\t\t}\n\t},\n\tmethods: {\n\t\tasync onSubmit() {\n\t\t\tthis.loading = true\n\t\t\tthis.errorMessage = \'\'\n\n\t\t\t// empty user and password => use imap credentials\n\t\t\tif (this.sieveConfig.sieveUser === \'\' && this.sieveConfig.sievePassword === \'\') {\n\t\t\t\tthis.useImapCredentials = true\n\t\t\t}\n\n\t\t\t// clear user and password if imap credentials are used\n\t\t\tif (this.useImapCredentials) {\n\t\t\t\tthis.sieveConfig.sieveUser = \'\'\n\t\t\t\tthis.sieveConfig.sievePassword = \'\'\n\t\t\t}\n\n\t\t\ttry {\n\t\t\t\tawait this.$store.dispatch(\'updateSieveAccount\', {\n\t\t\t\t\taccount: this.account,\n\t\t\t\t\tdata: this.sieveConfig,\n\t\t\t\t})\n\t\t\t} catch (error) {\n\t\t\t\tthis.errorMessage = error.message\n\t\t\t}\n\n\t\t\tthis.loading = false\n\t\t},\n\t},\n}\n<\/script>\n\n<style scoped>\nform {\n\twidth: 250px\n}\n\nlabel {\n\tdisplay: inline-block;\n}\n\ninput {\n\twidth: 100%;\n}\n\n.flex-row {\n\tdisplay: flex;\n}\n\nlabel.button {\n\ttext-align: center;\n\tflex-grow: 1;\n}\n\nlabel.error {\n\tcolor: red;\n}\n\ninput[type=\'radio\'] {\n\tdisplay: none;\n}\n</style>\n'],sourceRoot:""}]),n.a=s},1337:function(t,n,e){"use strict";var a=e(41),o=e.n(a),i=e(42),s=e.n(i)()(o.a);s.push([t.i,".section[data-v-568aaba6]{display:block;padding:0;margin-bottom:23px}textarea[data-v-568aaba6]{width:100%}.primary[data-v-568aaba6]{padding-left:26px;background-position:6px;color:var(--color-main-background)}.primary[data-v-568aaba6]:after{left:14px}","",{version:3,sources:["webpack://./src/components/SieveFilterForm.vue"],names:[],mappings:"AA6DA,0BACC,aAAA,CACA,SAAA,CACA,kBAAA,CAGD,0BACC,UAAA,CAGD,0BACC,iBAAA,CACA,uBAAA,CACA,kCAAA,CAEA,gCACE,SAAA",sourcesContent:["\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n.section {\n\tdisplay: block;\n\tpadding: 0;\n\tmargin-bottom: 23px;\n}\n\ntextarea {\n\twidth: 100%;\n}\n\n.primary {\n\tpadding-left: 26px;\n\tbackground-position: 6px;\n\tcolor: var(--color-main-background);\n\n\t&:after {\n\t\t left: 14px;\n\t }\n}\n"],sourceRoot:""}]),n.a=s},1338:function(t,n,e){"use strict";var a=e(41),o=e.n(a),i=e(42),s=e.n(i)()(o.a);s.push([t.i,"[data-v-4aa4f25a] .modal-container{display:block;overflow:scroll;transition:transform 300ms ease;border-radius:var(--border-radius-large);box-shadow:0 0 40px rgba(0,0,0,.2);padding:30px 70px 20px}.button.icon-rename[data-v-4aa4f25a]{background-image:var(--icon-rename-000);background-color:var(--color-main-background);border:none;opacity:.7}.button.icon-rename[data-v-4aa4f25a]:hover,.button.icon-rename[data-v-4aa4f25a]:focus{opacity:1}.settings-hint[data-v-4aa4f25a]{margin-top:-12px;margin-bottom:6px;color:var(--color-text-maxcontrast)}h2[data-v-4aa4f25a]{font-weight:bold;font-size:20px;margin-bottom:12px;margin-left:-30px;line-height:30px;color:var(--color-text-light)}.app-settings-section[data-v-4aa4f25a]{margin-bottom:45px}","",{version:3,sources:["webpack://./src/components/AccountSettings.vue"],names:[],mappings:"AAoLA,mCACC,aAAA,CACA,eAAA,CACA,+BAAA,CACA,wCAAA,CACA,kCAAA,CACA,sBAAA,CAED,qCACC,uCAAA,CACA,6CAAA,CACA,WAAA,CACA,UAAA,CACA,sFAEC,SAAA,CAGF,gCACC,gBAAA,CACA,iBAAA,CACA,mCAAA,CAED,oBACC,gBAAA,CACA,cAAA,CACA,kBAAA,CACA,iBAAA,CACA,gBAAA,CACA,6BAAA,CAED,uCACA,kBAAA",sourcesContent:["\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n::v-deep .modal-container {\n\tdisplay: block;\n\toverflow: scroll;\n\ttransition: transform 300ms ease;\n\tborder-radius: var(--border-radius-large);\n\tbox-shadow: 0 0 40px rgba(0,0,0,0.2);\n\tpadding: 30px 70px 20px;\n}\n.button.icon-rename {\n\tbackground-image: var(--icon-rename-000);\n\tbackground-color: var(--color-main-background);\n\tborder: none;\n\topacity: 0.7;\n\t&:hover,\n\t&:focus {\n\t\topacity: 1;\n\t}\n}\n.settings-hint {\n\tmargin-top: -12px;\n\tmargin-bottom: 6px;\n\tcolor: var(--color-text-maxcontrast);\n}\nh2 {\n\tfont-weight: bold;\n\tfont-size: 20px;\n\tmargin-bottom: 12px;\n\tmargin-left: -30px;\n\tline-height: 30px;\n\tcolor: var(--color-text-light);\n}\n.app-settings-section {\nmargin-bottom: 45px;\n}\n"],sourceRoot:""}]),n.a=s},1339:function(t,n,e){"use strict";var a=e(41),o=e.n(a),i=e(42),s=e.n(i)()(o.a);s.push([t.i,"[data-v-2d33cadc] .app-navigation-entry__title{color:var(--color-text-maxcontrast)}","",{version:3,sources:["webpack://./src/components/NavigationAccountExpandCollapse.vue"],names:[],mappings:"AA2EA,+CACC,mCAAA",sourcesContent:["\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n::v-deep .app-navigation-entry__title {\n\tcolor: var(--color-text-maxcontrast);\n}\n"],sourceRoot:""}]),n.a=s},1341:function(t,n,e){"use strict";var a=e(41),o=e.n(a),i=e(42),s=e.n(i)()(o.a);s.push([t.i,"[data-v-17460ac4] .modal-wrapper .modal-container{display:block;overflow:scroll;transition:transform 300ms ease;border-radius:var(--border-radius-large);box-shadow:0 0 40px rgba(0,0,0,.2);padding:30px 40px 20px}dt[data-v-17460ac4]{width:auto;text-align:left}","",{version:3,sources:["webpack://./src/views/KeyboardShortcuts.vue"],names:[],mappings:"AAgEA,kDACC,aAAA,CACA,eAAA,CACA,+BAAA,CACA,wCAAA,CACA,kCAAA,CACA,sBAAA,CAED,oBACC,UAAA,CACA,eAAA",sourcesContent:["\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n::v-deep .modal-wrapper .modal-container {\n\tdisplay: block;\n\toverflow: scroll;\n\ttransition: transform 300ms ease;\n\tborder-radius: var(--border-radius-large);\n\tbox-shadow: 0 0 40px rgba(0,0,0,0.2);\n\tpadding: 30px 40px 20px;\n}\ndt {\n\twidth: auto;\n\ttext-align: left;\n}\n\n"],sourceRoot:""}]),n.a=s},1342:function(t,n,e){"use strict";var a=e(41),o=e.n(a),i=e(42),s=e.n(i)()(o.a);s.push([t.i,"\np.app-settings span.icon-loading-small[data-v-20887712] {\n\tdisplay: inline-block;\n\tvertical-align: middle;\n\tpadding: 5px 0;\n}\np.app-settings[data-v-20887712] {\n\tpadding: 10px 0;\n}\n.app-settings-button[data-v-20887712] {\n\tdisplay: block;\n\n\tpadding-left: 34px;\n\tbackground-position: 10px center;\n\ttext-align: left;\n}\n.app-settings-button.button.primary.new-button[data-v-20887712] {\n\tcolor: var(--color-main-background);\n}\n.app-settings-link[data-v-20887712] {\n\ttext-decoration: underline;\n}\n","",{version:3,sources:["webpack://./src/components/AppSettingsMenu.vue"],names:[],mappings:";AA2KA;CACA,qBAAA;CACA,sBAAA;CACA,cAAA;AACA;AACA;CACA,eAAA;AACA;AACA;CACA,cAAA;;CAEA,kBAAA;CACA,gCAAA;CACA,gBAAA;AACA;AACA;CACA,mCAAA;AACA;AACA;CACA,0BAAA;AACA",sourcesContent:["<template>\n\t<div>\n\t\t<router-link to=\"/setup\" class=\"icon-add-white app-settings-button button primary new-button\">\n\t\t\t{{ t('mail', 'Add mail account') }}\n\t\t</router-link>\n\n\t\t<p v-if=\"loadingOptOutSettings\" class=\"app-settings\">\n\t\t\t<span class=\"icon-loading-small\" />\n\t\t\t{{ optOutSettingsText }}\n\t\t</p>\n\t\t<p v-else class=\"app-settings\">\n\t\t\t<input\n\t\t\t\tid=\"data-collection-toggle\"\n\t\t\t\tclass=\"checkbox\"\n\t\t\t\ttype=\"checkbox\"\n\t\t\t\t:checked=\"useDataCollection\"\n\t\t\t\t@change=\"onToggleCollectData\">\n\t\t\t<label for=\"data-collection-toggle\">{{ optOutSettingsText }}</label>\n\t\t</p>\n\n\t\t<p v-if=\"loadingAvatarSettings\" class=\"app-settings avatar-settings\">\n\t\t\t<span class=\"icon-loading-small\" />\n\t\t\t{{ t('mail', 'Use Gravatar and favicon avatars') }}\n\t\t</p>\n\t\t<p v-else class=\"app-settings\">\n\t\t\t<input\n\t\t\t\tid=\"gravatar-enabled\"\n\t\t\t\tclass=\"checkbox\"\n\t\t\t\ttype=\"checkbox\"\n\t\t\t\t:checked=\"useExternalAvatars\"\n\t\t\t\t@change=\"onToggleExternalAvatars\">\n\t\t\t<label for=\"gravatar-enabled\">{{ t('mail', 'Use Gravatar and favicon avatars') }}</label>\n\t\t</p>\n\n\t\t<p v-if=\"loadingAvatarSettings\" class=\"app-settings reply-settings\">\n\t\t\t<span class=\"icon-loading-small\" />\n\t\t\t{{ replySettingsText }}\n\t\t</p>\n\t\t<p v-else class=\"app-settings\">\n\t\t\t<input\n\t\t\t\tid=\"bottom-reply-enabled\"\n\t\t\t\tclass=\"checkbox\"\n\t\t\t\ttype=\"checkbox\"\n\t\t\t\t:checked=\"useBottomReplies\"\n\t\t\t\t@change=\"onToggleButtonReplies\">\n\t\t\t<label for=\"bottom-reply-enabled\">{{ replySettingsText }}</label>\n\t\t</p>\n\n\t\t<p>\n\t\t\t<button class=\"icon-mail app-settings-button\" @click=\"registerProtocolHandler\">\n\t\t\t\t{{ t('mail', 'Register as application for mail links') }}\n\t\t\t</button>\n\t\t</p>\n\n\t\t<button\n\t\t\tclass=\"icon-details app-settings-button\"\n\t\t\t@click.prevent.stop=\"showKeyboardShortcuts\"\n\t\t\t@shortkey=\"toggleKeyboardShortcuts\">\n\t\t\t{{ t('mail', 'Show keyboard shortcuts') }}\n\t\t</button>\n\t\t<KeyboardShortcuts v-if=\"displayKeyboardShortcuts\" @close=\"closeKeyboardShortcuts\" />\n\t</div>\n</template>\n\n<script>\nimport Logger from '../logger'\nimport { generateUrl } from '@nextcloud/router'\nimport KeyboardShortcuts from '../views/KeyboardShortcuts'\n\nexport default {\n\tname: 'AppSettingsMenu',\n\tcomponents: {\n\t\tKeyboardShortcuts,\n\t},\n\tdata() {\n\t\treturn {\n\t\t\tloadingAvatarSettings: false,\n\t\t\t// eslint-disable-next-line\n\t\t\toptOutSettingsText: t('mail', 'Allow the app to collect data about your interactions. Based on this data, the app will adapt to your preferences. The data will only be stored locally.'),\n\t\t\tloadingOptOutSettings: false,\n\t\t\t// eslint-disable-next-line\n\t\t\treplySettingsText: t('mail', 'Put my text to the bottom of a reply instead of on top of it.'),\n\t\t\tloadingReplySettings: false,\n\t\t\tdisplayKeyboardShortcuts: false,\n\t\t}\n\t},\n\tcomputed: {\n\t\tuseBottomReplies() {\n\t\t\treturn this.$store.getters.getPreference('reply-mode', 'top') === 'bottom'\n\t\t},\n\t\tuseExternalAvatars() {\n\t\t\treturn this.$store.getters.getPreference('external-avatars', 'true') === 'true'\n\t\t},\n\t\tuseDataCollection() {\n\t\t\treturn this.$store.getters.getPreference('collect-data', 'true') === 'true'\n\t\t},\n\t},\n\tmethods: {\n\t\tonToggleButtonReplies(e) {\n\t\t\tthis.loadingReplySettings = true\n\n\t\t\tthis.$store\n\t\t\t\t.dispatch('savePreference', {\n\t\t\t\t\tkey: 'reply-mode',\n\t\t\t\t\tvalue: e.target.checked ? 'bottom' : 'top',\n\t\t\t\t})\n\t\t\t\t.catch((error) => Logger.error('could not save preferences', { error }))\n\t\t\t\t.then(() => {\n\t\t\t\t\tthis.loadingReplySettings = false\n\t\t\t\t})\n\t\t},\n\t\tonToggleExternalAvatars(e) {\n\t\t\tthis.loadingAvatarSettings = true\n\n\t\t\tthis.$store\n\t\t\t\t.dispatch('savePreference', {\n\t\t\t\t\tkey: 'external-avatars',\n\t\t\t\t\tvalue: e.target.checked ? 'true' : 'false',\n\t\t\t\t})\n\t\t\t\t.catch((error) => Logger.error('could not save preferences', { error }))\n\t\t\t\t.then(() => {\n\t\t\t\t\tthis.loadingAvatarSettings = false\n\t\t\t\t})\n\t\t},\n\t\tonToggleCollectData(e) {\n\t\t\tthis.loadingOptOutSettings = true\n\n\t\t\tthis.$store\n\t\t\t\t.dispatch('savePreference', {\n\t\t\t\t\tkey: 'collect-data',\n\t\t\t\t\tvalue: e.target.checked ? 'true' : 'false',\n\t\t\t\t})\n\t\t\t\t.catch((error) => Logger.error('could not save preferences', { error }))\n\t\t\t\t.then(() => {\n\t\t\t\t\tthis.loadingOptOutSettings = false\n\t\t\t\t})\n\t\t},\n\t\tregisterProtocolHandler() {\n\t\t\tif (window.navigator.registerProtocolHandler) {\n\t\t\t\tconst url\n\t\t\t\t\t= window.location.protocol + '//' + window.location.host + generateUrl('apps/mail/compose?uri=%s')\n\t\t\t\ttry {\n\t\t\t\t\twindow.navigator.registerProtocolHandler('mailto', url, OC.theme.name + ' Mail')\n\t\t\t\t} catch (err) {\n\t\t\t\t\tLogger.error('could not register protocol handler', { err })\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t/**\n\t\t * Show the keyboard shortcuts overview\n\t\t */\n\t\tshowKeyboardShortcuts() {\n\t\t\tthis.displayKeyboardShortcuts = true\n\t\t},\n\t\t/**\n\t\t * Hide the keyboard shortcuts overview\n\t\t */\n\t\tcloseKeyboardShortcuts() {\n\t\t\tthis.displayKeyboardShortcuts = false\n\t\t},\n\t\t/**\n\t\t * Toggles the keyboard shortcuts overview\n\t\t */\n\t\ttoggleKeyboardShortcuts() {\n\t\t\tthis.displayKeyboardShortcuts = !this.displayKeyboardShortcuts\n\t\t},\n\t},\n}\n<\/script>\n\n<style scoped>\np.app-settings span.icon-loading-small {\n\tdisplay: inline-block;\n\tvertical-align: middle;\n\tpadding: 5px 0;\n}\np.app-settings {\n\tpadding: 10px 0;\n}\n.app-settings-button {\n\tdisplay: block;\n\n\tpadding-left: 34px;\n\tbackground-position: 10px center;\n\ttext-align: left;\n}\n.app-settings-button.button.primary.new-button {\n\tcolor: var(--color-main-background);\n}\n.app-settings-link {\n\ttext-decoration: underline;\n}\n</style>\n"],sourceRoot:""}]),n.a=s},687:function(t,n,e){"use strict";e.d(n,"c",(function(){return l})),e.d(n,"b",(function(){return c})),e.d(n,"a",(function(){return u})),e.d(n,"e",(function(){return p})),e.d(n,"d",(function(){return m}));var a=e(616),o=e(1078);function i(t,n){for(var e=0;e<n.length;e++){var a=n[e];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}
/**
 * @copyright 2020 Christoph Wurst <christoph@winzerhof-wurst.at>
 *
 * @author 2020 Christoph Wurst <christoph@winzerhof-wurst.at>
 *
 * @license GNU AGPL version 3 or any later version
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * 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/>.
 */
var s=function(){function t(n,e){!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t),this.format=n,this.value=e}var n,e,a;return n=t,(e=[{key:"append",value:function(n){if(this.format!==n.format)throw new Error("can't append two different formats");return new t(this.format,this.value+n.value)}}])&&i(n.prototype,e),a&&i(n,a),t}(),r=Object(a.a)((function(t,n){return new s(t,n)})),l=r("plain"),c=r("html"),u=function(t){return t.includes(">")?c(t):l(t)},d=Object(a.a)((function(t,n){return n.format===t})),p=(d("plain"),d("html"),function(t){if("plain"===t.format)return t;var n=t.value.replace(/<\/div>/gi,"</div><br>"),e=Object(o.fromString)(n,{noLinkBrackets:!0,ignoreHref:!0,ignoreImage:!0,wordwrap:!1,format:{blockquote:function(t,n,e){return n(t.children,e).replace(/\n\n\n/g,"\n\n").replace(/^/gm,"> ")},paragraph:function(t,n,e){return n(t.children,e)+"\n\n"}}});return l(e.replace(/\n\n\n/g,"\n\n").replace(/^[\n\r]+/g,"").replace(/ $/gm,""))}),m=function(t){if("html"===t.format)return t;if("plain"===t.format)return c(t.value.replace(/([^>\r\n]?)(\r\n|\n\r|\r|\n)/g,"$1<br>$2"));throw new Error("Unknown format ".concat(t.format))}},705:function(t,n,e){"use strict";var a=new(e(6).default);n.a=a},917:function(t,n,e){"use strict";e.d(n,"a",(function(){return o}));var a=e(38),o=function(t){if(t.specialUse.length>0)try{return function(t){if(t.specialUse.includes("all"))return Object(a.translate)("mail","All");if(t.specialUse.includes("archive"))return Object(a.translate)("mail","Archive");if(t.specialUse.includes("drafts"))return Object(a.translate)("mail","Drafts");if(t.specialUse.includes("flagged"))return Object(a.translate)("mail","Favorites");if(t.specialUse.includes("inbox"))return t.isPriorityInbox?Object(a.translate)("mail","Priority inbox"):t.isUnified?Object(a.translate)("mail","All inboxes"):Object(a.translate)("mail","Inbox");if(t.specialUse.includes("junk"))return Object(a.translate)("mail","Junk");if(t.specialUse.includes("sent"))return Object(a.translate)("mail","Sent");if(t.specialUse.includes("trash"))return Object(a.translate)("mail","Trash");throw new Error("unknown special use ".concat(t.specialUse))}(t)}catch(t){console.error("could not translate special mailbox",t)}return t.displayName}},919:function(t,n,e){"use strict";e.d(n,"a",(function(){return r}));var a=e(482),o=e.n(a),i=e(1131),s=e.n(i),r=function(t){var n=o()(t),e=s.a.hex.hsl(n),a=[40*Math.round(e[0]/40),e[1],e[2]];return"#"+s.a.hsl.hex(a)}},979:function(t,n,e){"use strict";e.d(n,"b",(function(){return l})),e.d(n,"a",(function(){return u}));var a=e(0),o=e(1),i=e.n(o);function s(t,n,e,a,o,i,s){try{var r=t[i](s),l=r.value}catch(t){return void e(t)}r.done?n(l):Promise.resolve(l).then(a,o)}function r(t){return function(){var n=this,e=arguments;return new Promise((function(a,o){var i=t.apply(n,e);function r(t){s(i,a,o,r,l,"next",t)}function l(t){s(i,a,o,r,l,"throw",t)}r(void 0)}))}}function l(t,n,e){return c.apply(this,arguments)}function c(){return(c=r(regeneratorRuntime.mark((function t(n,e,o){var s;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(s=Object(a.generateUrl)("/apps/mail/api/trustedsenders/{email}?type={type}",{email:n,type:e}),!o){t.next=6;break}return t.next=4,i.a.put(s);case 4:t.next=8;break;case 6:return t.next=8,i.a.delete(s);case 8:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function u(){return d.apply(this,arguments)}function d(){return(d=r(regeneratorRuntime.mark((function t(){var n,e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=Object(a.generateUrl)("/apps/mail/api/trustedsenders"),t.next=3,i.a.get(n);case 3:return e=t.sent,t.abrupt("return",e.data.data);case 5:case"end":return t.stop()}}),t)})))).apply(this,arguments)}}}]);
//# sourceMappingURL=mail.1.e58643906e0c70ad74ff.js.map

Youez - 2016 - github.com/yon3zu
LinuXploit