← Back
Editing: mail.7313.cb4c349cba3dc02cfa99.js
(globalThis.webpackChunknextcloud_mail=globalThis.webpackChunknextcloud_mail||[]).push([[7313,7471],{4728(t,e,n){"use strict";n.d(e,{Ay:()=>r,TB:()=>a,Xu:()=>o});var i=n(65122);const o="change_alias",a="editor_ready";class r extends i.uBz{removeSignatureElement(t,e){const n=t.model.createRangeIn(t.model.document.getRoot());for(const t of n.getWalker({shallow:!0}))t.item.is("element")&&"signature"===t.item.name&&e.remove(t.item)}insertSignatureElement(t,e,n,i){if(0===n.length)return;const o=t.data.processor.toView(n),a=t.data.toModel(o),r=e.createElement("signature");e.append(e.createText("-- "),r),e.append(e.createElement("paragraph"),r),e.append(a,r),i&&e.append(e.createElement("paragraph"),r);const s=this.findPosition(t,e,i);t.model.insertContent(r,s)}findPosition(t,e,n){if(n){const n=t.model.createRangeIn(t.model.document.getRoot());for(const t of n.getWalker({shallow:!0}))if(t.item.is("element")&&"quote"===t.item.name)return e.createPositionBefore(t.item)}return e.createPositionAt(t.model.document.getRoot(),"end")}hasSignatureElement(t){const e=t.model.createRangeIn(t.model.document.getRoot());for(const t of e.getWalker({shallow:!0}))if(t.item.is("element")){if("quote"===t.item.name)continue;if("signature"===t.item.name)return!0}return!1}execute(t,e,n){this.editor.model.change((i=>{t===o&&(this.removeSignatureElement(this.editor,i),this.insertSignatureElement(this.editor,i,e,n)),t!==a||this.hasSignatureElement(this.editor)||this.insertSignatureElement(this.editor,i,e,n)}))}refresh(){this.isEnabled=!0}}},35630(t,e,n){"use strict";n.d(e,{A:()=>i});const i=(0,n(27380).A)()},51648(t,e,n){"use strict";n.d(e,{T:()=>a});var i=n(53334),o=n(85745);function a(t){if(t.specialUse.length>0)try{return function(t){if(t.specialUse.includes("all"))return(0,i.Tl)("mail","All");if(t.specialUse.includes("archive"))return(0,i.Tl)("mail","Archive");if(t.specialUse.includes("drafts"))return(0,i.Tl)("mail","Drafts");if(t.specialUse.includes("flagged"))return(0,i.Tl)("mail","Favorites");if(t.specialUse.includes("inbox"))return t.isPriorityInbox?(0,i.Tl)("mail","Priority inbox"):t.isUnified?(0,i.Tl)("mail","All inboxes"):(0,i.Tl)("mail","Inbox");if(t.specialUse.includes("junk"))return(0,i.Tl)("mail","Junk");if(t.specialUse.includes("sent"))return(0,i.Tl)("mail","Sent");if(t.specialUse.includes("trash"))return(0,i.Tl)("mail","Trash");throw new Error(`unknown special use ${t.specialUse}`)}(t)}catch(t){o.A.error("could not translate special mailbox",{error:t})}return t.displayName}},6791(t,e,n){"use strict";n.d(e,{LG:()=>s,Np:()=>a,Zd:()=>l,bq:()=>r});var i=n(72302),o=n(63814);function a(t){const e=(0,o.Jv)("/apps/mail/api/contactIntegration/match/{mail}",{mail:t});return i.Ay.get(e).then((t=>t.data))}function r(t,e){const n=(0,o.Jv)("/apps/mail/api/contactIntegration/add");return i.Ay.put(n,{uid:t,mail:e}).then((t=>t.data))}function s(t,e){const n=(0,o.Jv)("/apps/mail/api/contactIntegration/new");return i.Ay.put(n,{contactName:t,mail:e}).then((t=>t.data))}function l(t){const e=(0,o.Jv)("/apps/mail/api/contactIntegration/autoComplete/{term}",{term:t});return i.Ay.get(e).then((t=>t.data))}},37528(t,e,n){"use strict";n.d(e,{E:()=>r,I:()=>a});var i=n(72302),o=n(63814);async function a(t,e,n){const a=(0,o.Jv)("/apps/mail/api/trustedsenders/{email}?type={type}",{email:t,type:e});n?await i.Ay.put(a):await i.Ay.delete(a)}async function r(){const t=(0,o.Jv)("/apps/mail/api/trustedsenders");return(await i.Ay.get(t)).data.data}},28290(t,e,n){"use strict";function i(t,e){if(!t.myAcls)return!0;const n=[...t.myAcls];for(const t of[...e])if(!n.includes(t))return!1;return!0}n.d(e,{w:()=>i})},91353(t,e,n){var i={"./af.js":[51539,[1539]],"./ar.js":[21159,[1159]],"./ast.js":[91214,[1214]],"./az.js":[50671,[671]],"./be.js":[39337,[9337]],"./bg.js":[95847,[5847]],"./bn.js":[96888,[6888]],"./bs.js":[26227,[6227]],"./ca.js":[64876,[4876]],"./cs.js":[71334,[1334]],"./da.js":[57015,[7015]],"./de-ch.js":[6007,[6007]],"./de.js":[60147,[147]],"./el.js":[34225,[4225]],"./en-au.js":[12750,[2750]],"./en-gb.js":[32569,[2569]],"./eo.js":[54584,[4584]],"./es-co.js":[44215,[4215]],"./es.js":[89548,[9548]],"./et.js":[25081,[5081]],"./eu.js":[35594,[5594]],"./fa.js":[34145,[4145]],"./fi.js":[71833,[1833]],"./fr.js":[84984,[4984]],"./gl.js":[95235,[5235]],"./gu.js":[44052,[4052]],"./he.js":[45783,[5783]],"./hi.js":[75355,[5355]],"./hr.js":[56838,[6838]],"./hu.js":[33991,[3991]],"./hy.js":[61035,[1035]],"./id.js":[18509,[8509]],"./it.js":[71933,[1933]],"./ja.js":[18685,[8685]],"./jv.js":[56472,[4091]],"./kk.js":[7942,[7942]],"./km.js":[3472,[3472]],"./kn.js":[36425,[6425]],"./ko.js":[23898,[3898]],"./ku.js":[94312,[4312]],"./lt.js":[88980,[8980]],"./lv.js":[33438,[3438]],"./ms.js":[30436,[436]],"./nb.js":[20224,[224]],"./ne.js":[60373,[373]],"./nl.js":[45086,[5086]],"./no.js":[72763,[2763]],"./oc.js":[99866,[9866]],"./pl.js":[80464,[464]],"./pt-br.js":[98201,[8201]],"./pt.js":[4552,[4552]],"./ro.js":[41759,[1759]],"./ru.js":[49257,[9257]],"./si.js":[98436,[8436]],"./sk.js":[13358,[3358]],"./sl.js":[74511,[4511]],"./sq.js":[51820,[1820]],"./sr-latn.js":[83711,[3711]],"./sr.js":[39285,[9285]],"./sv.js":[33433,[3433]],"./th.js":[17752,[7752]],"./ti.js":[61679,[1679]],"./tk.js":[32081,[2081]],"./tr.js":[50346,[346]],"./tt.js":[38988,[8988]],"./ug.js":[33056,[3056]],"./uk.js":[69716,[9716]],"./ur.js":[20899,[899]],"./uz.js":[38027,[8027]],"./vi.js":[67753,[7753]],"./zh-cn.js":[45846,[5846]],"./zh.js":[94406,[4406]]};function o(t){try{if(!n.o(i,t))return Promise.resolve().then((()=>{var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}))}catch(t){return Promise.reject(t)}var e=i[t],o=e[0];return n.e(e[1][0]).then((()=>n(o)))}o.keys=()=>Object.keys(i),o.id=91353,t.exports=o},2369(t,e,n){"use strict";n.d(e,{A:()=>s});var i=n(71354),o=n.n(i),a=n(76314),r=n.n(a)()(o());r.push([t.id,"[data-v-23f86109] .modal-container{width:calc(100vw - 120px) !important;height:calc(100vh - 120px) !important;max-width:600px !important;max-height:500px !important}.modal-content[data-v-23f86109]{display:flex;box-sizing:border-box;width:100%;height:100%;flex-direction:column;padding:calc(var(--default-grid-baseline)*4)}.crumbs[data-v-23f86109]{display:inline-flex;padding-inline-end:0;flex-wrap:wrap}.crumbs .level[data-v-23f86109]{display:inline-flex;height:44px;min-width:0px;flex:0 0 auto;order:1;padding-inline-end:calc(var(--default-grid-baseline)*2);background-position:right center;background-size:auto 24px;margin-top:calc(var(--default-grid-baseline)*-2.5)}.crumbs a[data-v-23f86109]{position:relative;padding:calc(var(--default-grid-baseline)*3);opacity:.5;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;flex:0 0 auto;min-width:0px;max-width:200px}.crumbs a[data-v-23f86109]:hover{opacity:.7}.crumbs a.icon-home[data-v-23f86109]{width:0px;background-position:left center}.mailbox-list[data-v-23f86109]{display:inline-block;width:100%;height:100%;overflow-y:auto;flex:1}.mailbox-list li[data-v-23f86109]{display:flex;cursor:pointer}.mailbox-list li[data-v-23f86109]:hover{background-color:var(--color-background-hover)}.mailbox-list li[data-v-23f86109]:not(:last-child){border-bottom:var(--border-width-input) solid var(--color-border)}.mailbox-list h2[data-v-23f86109]{width:100%;color:var(--color-text-maxcontrast);text-align:center;margin-top:80px;opacity:.4;background-size:64px;height:64px}.mailbox-list .mailbox-icon[data-v-23f86109]{width:24px;height:24px;padding:calc(var(--default-grid-baseline)*3);opacity:.9;background-size:24px}.mailbox-list .mailbox-title[data-v-23f86109]{padding:calc(var(--default-grid-baseline)*3) calc(var(--default-grid-baseline)*3) calc(var(--default-grid-baseline)*3) 0;flex:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.buttons[data-v-23f86109]{display:flex;justify-content:flex-end;padding-top:calc(var(--default-grid-baseline)*2)}.buttons .spinner[data-v-23f86109]{margin-inline-end:var(--default-grid-baseline)}.material-design-icon[data-v-23f86109]{opacity:.7;margin-inline-end:calc(var(--default-grid-baseline)*1.5)}","",{version:3,sources:["webpack://./src/components/MailboxPicker.vue"],names:[],mappings:"AACA,mCACC,oCAAA,CACA,qCAAA,CACA,0BAAA,CACA,2BAAA,CAGD,gCACC,YAAA,CACA,qBAAA,CACA,UAAA,CACA,WAAA,CACA,qBAAA,CACA,4CAAA,CAGD,yBACC,mBAAA,CACA,oBAAA,CACA,cAAA,CAEA,gCACC,mBAAA,CACA,WAAA,CACA,aAAA,CACA,aAAA,CACA,OAAA,CACA,uDAAA,CACA,gCAAA,CACA,yBAAA,CACA,kDAAA,CAGD,2BACC,iBAAA,CACA,4CAAA,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,iEAAA,CAIF,kCACC,UAAA,CACA,mCAAA,CACA,iBAAA,CACA,eAAA,CACA,UAAA,CACA,oBAAA,CACA,WAAA,CAGD,6CACC,UAAA,CACA,WAAA,CACA,4CAAA,CACA,UAAA,CACA,oBAAA,CAGD,8CACC,wHAAA,CACA,MAAA,CACA,eAAA,CACA,kBAAA,CACA,sBAAA,CAIF,0BACC,YAAA,CACA,wBAAA,CACA,gDAAA,CAEA,mCACC,8CAAA,CAIF,uCACC,UAAA,CACA,wDAAA",sourcesContent:["\n: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: calc(var(--default-grid-baseline) * 4);\n}\n\n.crumbs {\n\tdisplay: inline-flex;\n\tpadding-inline-end: 0;\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-inline-end: calc(var(--default-grid-baseline) * 2);\n\t\tbackground-position: right center;\n\t\tbackground-size: auto 24px;\n\t\tmargin-top: calc(var(--default-grid-baseline) * -2.5);\n\t}\n\n\ta {\n\t\tposition: relative;\n\t\tpadding: calc(var(--default-grid-baseline) * 3);\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: var(--border-width-input) solid var(--color-border);\n\t\t}\n\t}\n\n\th2 {\n\t\twidth: 100%;\n\t\tcolor: var(--color-text-maxcontrast);\n\t\ttext-align: center;\n\t\tmargin-top: 80px;\n\t\topacity: 0.4;\n\t\tbackground-size: 64px;\n\t\theight: 64px;\n\t}\n\n\t.mailbox-icon {\n\t\twidth: 24px;\n\t\theight: 24px;\n\t\tpadding: calc(var(--default-grid-baseline) * 3);\n\t\topacity: 0.9;\n\t\tbackground-size: 24px;\n\t}\n\n\t.mailbox-title {\n\t\tpadding: calc(var(--default-grid-baseline) * 3) calc(var(--default-grid-baseline) * 3) calc(var(--default-grid-baseline) * 3) 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: calc(var(--default-grid-baseline) * 2);\n\n\t.spinner {\n\t\tmargin-inline-end: var(--default-grid-baseline);\n\t}\n}\n\n.material-design-icon {\n\topacity: .7;\n\tmargin-inline-end: calc(var(--default-grid-baseline) * 1.5);\n}\n"],sourceRoot:""}]);const s=r},16747(t,e,n){"use strict";n.d(e,{A:()=>s});var i=n(71354),o=n.n(i),a=n(76314),r=n.n(a)()(o());r.push([t.id,"@keyframes rotation-7c643ab3{from{transform:rotate(0deg)}to{transform:rotate(-360deg)}}.mail-navigation__new-message-button[data-v-7c643ab3]{padding:calc(var(--default-grid-baseline, 4px)*2)}.mail-navigation__error-message[data-v-7c643ab3]{display:flex;align-items:center;gap:.5rem}.outbox[data-v-7c643ab3]{padding:calc(var(--default-grid-baseline, 4px)*2);padding-bottom:0;width:auto}.outbox__border[data-v-7c643ab3]{border-top:1px solid var(--color-background-darker)}.mail-settings[data-v-7c643ab3]{padding:calc(var(--default-grid-baseline, 4px)*2);padding-top:0}.mail-settings__button[data-v-7c643ab3]{display:flex;width:100% !important;justify-content:start !important}.v-popper__inner[data-v-7c643ab3]{height:unset !important}","",{version:3,sources:["webpack://./src/components/Navigation.vue"],names:[],mappings:"AACA,6BACA,KACC,sBAAA,CAED,GACE,yBAAA,CAAA,CAKD,sDACC,iDAAA,CAED,iDACC,YAAA,CACA,kBAAA,CACA,SAAA,CAIF,yBACC,iDAAA,CACA,gBAAA,CAEA,UAAA,CACA,iCACC,mDAAA,CAIF,gCACC,iDAAA,CACA,aAAA,CAEA,wCACC,YAAA,CACA,qBAAA,CACA,gCAAA,CAIF,kCACC,uBAAA",sourcesContent:["\n@keyframes rotation {\nfrom {\n\ttransform: rotate(-0deg);\n}\nto {\n\t\ttransform: rotate(-360deg);\n\t}\n}\n\n.mail-navigation {\n\t&__new-message-button {\n\t\tpadding: calc(var(--default-grid-baseline, 4px) * 2);\n\t}\n\t&__error-message {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tgap: 0.5rem;\n\t}\n}\n\n.outbox {\n\tpadding: calc(var(--default-grid-baseline, 4px) * 2);\n\tpadding-bottom: 0;\n\n\twidth: auto;\n\t&__border {\n\t\tborder-top: 1px solid var(--color-background-darker);\n\t}\n}\n\n.mail-settings {\n\tpadding: calc(var(--default-grid-baseline, 4px) * 2);\n\tpadding-top: 0;\n\n\t&__button {\n\t\tdisplay: flex;\n\t\twidth: 100% !important;\n\t\tjustify-content: start !important;\n\t}\n}\n\n.v-popper__inner {\n\theight: unset !important;\n}\n\n"],sourceRoot:""}]);const s=r},3123(t,e,n){"use strict";n.d(e,{A:()=>s});var i=n(71354),o=n.n(i),a=n(76314),r=n.n(a)()(o());r.push([t.id,".dialog__actions{flex-wrap:wrap}.dialog__actions>button{flex:1 auto}","",{version:3,sources:["webpack://./src/components/NavigationAccount.vue"],names:[],mappings:"AAGC,iBACC,cAAA,CAEA,wBACC,WAAA",sourcesContent:["\n// Fix very long button labels overflowing the modal\n.dialog {\n\t&__actions {\n\t\tflex-wrap: wrap;\n\n\t\t> button {\n\t\t\tflex: 1 auto;\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const s=r},35800(t,e,n){"use strict";n.d(e,{A:()=>s});var i=n(71354),o=n.n(i),a=n(76314),r=n.n(a)()(o());r.push([t.id,"[data-v-376a2382] .app-navigation-entry__title{color:var(--color-text-maxcontrast)}","",{version:3,sources:["webpack://./src/components/NavigationAccountExpandCollapse.vue"],names:[],mappings:"AACA,+CACC,mCAAA",sourcesContent:["\n:deep(.app-navigation-entry__title) {\n\tcolor: var(--color-text-maxcontrast);\n}\n"],sourceRoot:""}]);const s=r},45868(t,e,n){"use strict";n.d(e,{A:()=>s});var i=n(71354),o=n.n(i),a=n(76314),r=n.n(a)()(o());r.push([t.id,".counter-bubble__counter[data-v-3d14f734]{max-width:initial}[data-v-3d14f734] .action-item__menutoggle{background-color:rgba(0,0,0,0) !important}","",{version:3,sources:["webpack://./src/components/NavigationMailbox.vue"],names:[],mappings:"AACA,0CACC,iBAAA,CAGD,2CACC,yCAAA",sourcesContent:["\n.counter-bubble__counter {\n\tmax-width: initial;\n}\n\n:deep(.action-item__menutoggle) {\n\tbackground-color: transparent !important;\n}\n"],sourceRoot:""}]);const s=r},21902(t,e,n){"use strict";n.d(e,{A:()=>s});var i=n(71354),o=n.n(i),a=n(76314),r=n.n(a)()(o());r.push([t.id,".navigation-outbox__unread-counter[data-v-ad5ce6fc]{margin-inline-end:calc(var(--default-grid-baseline)*2)}","",{version:3,sources:["webpack://./src/components/NavigationOutbox.vue"],names:[],mappings:"AAEC,oDACC,sDAAA",sourcesContent:["\n.navigation-outbox {\n\t&__unread-counter {\n\t\tmargin-inline-end: calc(var(--default-grid-baseline) * 2);\n\t}\n}\n\n"],sourceRoot:""}]);const s=r},22858(t,e,n){"use strict";n.d(e,{A:()=>s});var i=n(71354),o=n.n(i),a=n(76314),r=n.n(a)()(o());r.push([t.id,".header[data-v-229330c8]{display:flex;align-items:center;justify-content:space-between;gap:var(--default-grid-baseline)}.refresh__button[data-v-229330c8]{background-color:rgba(0,0,0,0)}","",{version:3,sources:["webpack://./src/components/NewMessageButtonHeader.vue"],names:[],mappings:"AACA,yBACC,YAAA,CACA,kBAAA,CACA,6BAAA,CACA,gCAAA,CAGD,kCACC,8BAAA",sourcesContent:["\n.header {\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: space-between;\n\tgap: var(--default-grid-baseline);\n}\n\n.refresh__button {\n\tbackground-color: transparent;\n}\n"],sourceRoot:""}]);const s=r},74442(t,e,n){"use strict";n.d(e,{A:()=>s});var i=n(71354),o=n.n(i),a=n(76314),r=n.n(a)()(o());r.push([t.id,".editor-wrapper--bordered[data-v-263bab40]{--border-offset: calc(var(--border-width-input-focused, 2px) - var(--border-width-input, 2px));margin-top:var(--default-grid-baseline);border:var(--border-width-input, 2px) solid var(--color-border-maxcontrast);border-radius:var(--border-radius-large);height:200px;padding:9px}.editor-wrapper--bordered[data-v-263bab40] .ck.ck-editor__editable_inline{padding:0 !important}.editor-wrapper--bordered[data-v-263bab40]:focus{padding:calc(9px - var(--border-offset));border-color:var(--color-main-text);border-width:var(--border-width-input-focused, 2px)}.editor-wrapper--bordered[data-v-263bab40]:hover{padding:calc(9px - var(--border-offset));border-color:var(--color-main-text);border-width:var(--border-width-input-focused, 2px)}.editor[data-v-263bab40]{width:100%;height:calc(100% - 75px);overflow:scroll;margin-bottom:10px}.editor.ck[data-v-263bab40]{border:none !important;box-shadow:none !important;padding:0}[data-v-263bab40] a{color:#07d}[data-v-263bab40] p{cursor:text;margin:0 !important}","",{version:3,sources:["webpack://./src/components/TextEditor.vue"],names:[],mappings:"AACA,2CACC,8FAAA,CACA,uCAAA,CACA,2EAAA,CACA,wCAAA,CACA,YAAA,CAEA,WAAA,CAEA,0EACC,oBAAA,CAED,iDACC,wCAAA,CACA,mCAAA,CACA,mDAAA,CAED,iDACC,wCAAA,CACA,mCAAA,CACA,mDAAA,CAIF,yBACC,UAAA,CACA,wBAAA,CACA,eAAA,CACA,kBAAA,CAEA,4BACC,sBAAA,CACA,0BAAA,CACA,SAAA,CAIF,oBACC,UAAA,CAGD,oBACC,WAAA,CACA,mBAAA",sourcesContent:["\n.editor-wrapper--bordered{\n\t--border-offset: calc(var(--border-width-input-focused, 2px) - var(--border-width-input, 2px));\n\tmargin-top: var(--default-grid-baseline);\n\tborder: var(--border-width-input, 2px) solid var(--color-border-maxcontrast);\n\tborder-radius:var(--border-radius-large);\n\theight: 200px;\n\t// to align with the text input in the text block modal\n\tpadding: 9px;\n\n\t:deep(.ck.ck-editor__editable_inline) {\n\t\tpadding:0 !important;\n\t}\n\t&:focus {\n\t\tpadding: calc(9px - var(--border-offset));\n\t\tborder-color: var(--color-main-text);\n\t\tborder-width: var(--border-width-input-focused, 2px);\n\t}\n\t&:hover {\n\t\tpadding: calc(9px - var(--border-offset));\n\t\tborder-color: var(--color-main-text);\n\t\tborder-width: var(--border-width-input-focused, 2px);\n\t}\n}\n\n.editor {\n\twidth: 100%;\n\theight: calc(100% - 75px);\n\toverflow: scroll;\n\tmargin-bottom: 10px;\n\n\t&.ck {\n\t\tborder: none !important;\n\t\tbox-shadow: none !important;\n\t\tpadding: 0;\n\t}\n}\n\n:deep(a) {\n\tcolor: #07d;\n}\n\n:deep(p) {\n\tcursor: text;\n\tmargin: 0 !important;\n}\n"],sourceRoot:""}]);const s=r},97451(t,e,n){"use strict";n.d(e,{A:()=>s});var i=n(71354),o=n.n(i),a=n(76314),r=n.n(a)()(o());r.push([t.id,".empty-content[data-v-482b81be]{height:100%;display:flex}.certificate-modal[data-v-482b81be]{padding:calc(var(--default-grid-baseline)*5)}.certificate-modal__list table[data-v-482b81be]{table-layout:fixed;width:100%}.certificate-modal__list table th[data-v-482b81be]{color:var(--color-text-maxcontrast)}.certificate-modal__list table th[data-v-482b81be],.certificate-modal__list table td[data-v-482b81be]{padding:calc(var(--default-grid-baseline)*.5);text-overflow:ellipsis;white-space:nowrap;overflow:hidden;flex:5 1 0px}.certificate-modal__list table th[data-v-482b81be]:last-child,.certificate-modal__list table td[data-v-482b81be]:last-child{flex:1 1 0px}.certificate-modal__list table span[data-v-482b81be]{text-overflow:ellipsis}.certificate-modal__list table tr[data-v-482b81be]{display:flex;flex-direction:row;align-items:center}.certificate-modal__list table tr[data-v-482b81be]:hover{background-color:unset}.certificate-modal__list__actions[data-v-482b81be]{margin:calc(var(--default-grid-baseline)*3);float:inline-end}.certificate-modal__import[data-v-482b81be]{display:flex;flex-direction:column;gap:calc(var(--default-grid-baseline)*2)}.certificate-modal__import input[type=file][data-v-482b81be]{display:flex;width:100%}.certificate-modal__import__type[data-v-482b81be]{display:flex;gap:0 calc(var(--default-grid-baseline)*5);flex-wrap:wrap}.certificate-modal__import__type>div[data-v-482b81be]{display:flex;gap:var(--default-grid-baseline);align-items:center}.certificate-modal__import__hints[data-v-482b81be]{color:var(--color-text-maxcontrast)}.certificate-modal__import__actions[data-v-482b81be]{display:flex;justify-content:space-between;gap:calc(var(--default-grid-baseline)*4)}","",{version:3,sources:["webpack://./src/components/smime/SmimeCertificateModal.vue"],names:[],mappings:"AACA,gCACC,WAAA,CACA,YAAA,CAGD,oCACC,4CAAA,CAGC,gDACC,kBAAA,CACA,UAAA,CAEA,mDACC,mCAAA,CAGD,sGACC,6CAAA,CACA,sBAAA,CACA,kBAAA,CACA,eAAA,CACA,YAAA,CAGD,4HACC,YAAA,CAGD,qDACC,sBAAA,CAGD,mDACC,YAAA,CACA,kBAAA,CACA,kBAAA,CAID,yDACC,sBAAA,CAIF,mDACC,2CAAA,CACA,gBAAA,CAIF,4CACC,YAAA,CACA,qBAAA,CACA,wCAAA,CAEA,6DACC,YAAA,CACA,UAAA,CAGD,kDACC,YAAA,CACA,0CAAA,CACA,cAAA,CAEA,sDACC,YAAA,CACA,gCAAA,CACA,kBAAA,CAIF,mDACC,mCAAA,CAGD,qDACC,YAAA,CACA,6BAAA,CACA,wCAAA",sourcesContent:["\n.empty-content{\n\theight: 100%;\n\tdisplay: flex;\n}\n\n.certificate-modal {\n\tpadding: calc(var(--default-grid-baseline) * 5);\n\n\t&__list {\n\t\ttable {\n\t\t\ttable-layout: fixed;\n\t\t\twidth: 100%;\n\n\t\t\tth {\n\t\t\t\tcolor: var(--color-text-maxcontrast);\n\t\t\t}\n\n\t\t\tth, td {\n\t\t\t\tpadding: calc(var(--default-grid-baseline) * 0.5);\n\t\t\t\ttext-overflow: ellipsis;\n\t\t\t\twhite-space: nowrap;\n\t\t\t\toverflow: hidden;\n\t\t\t\tflex: 5 1 0px;\n\t\t\t}\n\n\t\t\tth:last-child, td:last-child {\n\t\t\t\tflex: 1 1 0px;\n\t\t\t}\n\n\t\t\tspan {\n\t\t\t\ttext-overflow: ellipsis;\n\t\t\t}\n\n\t\t\ttr {\n\t\t\t\tdisplay: flex;\n\t\t\t\tflex-direction: row;\n\t\t\t\talign-items: center;\n\t\t\t}\n\n\t\t\t// Disable default hover style\n\t\t\ttr:hover {\n\t\t\t\tbackground-color: unset;\n\t\t\t}\n\t\t}\n\n\t\t&__actions {\n\t\t\tmargin: calc(var(--default-grid-baseline) * 3);\n\t\t\tfloat: inline-end;\n\t\t}\n\t}\n\n\t&__import {\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tgap: calc(var(--default-grid-baseline) * 2);\n\n\t\tinput[type=file] {\n\t\t\tdisplay: flex;\n\t\t\twidth: 100%;\n\t\t}\n\n\t\t&__type {\n\t\t\tdisplay: flex;\n\t\t\tgap: 0 calc(var(--default-grid-baseline) * 5);\n\t\t\tflex-wrap: wrap;\n\n\t\t\t> div {\n\t\t\t\tdisplay: flex;\n\t\t\t\tgap: var(--default-grid-baseline);\n\t\t\t\talign-items: center;\n\t\t\t}\n\t\t}\n\n\t\t&__hints {\n\t\t\tcolor: var(--color-text-maxcontrast);\n\t\t}\n\n\t\t&__actions {\n\t\t\tdisplay: flex;\n\t\t\tjustify-content: space-between;\n\t\t\tgap: calc(var(--default-grid-baseline) * 4);\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const s=r},80330(t,e,n){"use strict";n.d(e,{A:()=>s});var i=n(71354),o=n.n(i),a=n(76314),r=n.n(a)()(o());r.push([t.id,".text-block__list-item[data-v-0bf54fc2]{margin-inline-start:calc(var(--default-grid-baseline)*4)}","",{version:3,sources:["webpack://./src/components/textBlocks/List.vue"],names:[],mappings:"AACA,wCACC,wDAAA",sourcesContent:["\n.text-block__list-item {\n\tmargin-inline-start: calc(var(--default-grid-baseline) * 4);\n}\n"],sourceRoot:""}]);const s=r},58039(t,e,n){"use strict";n.d(e,{A:()=>s});var i=n(71354),o=n.n(i),a=n(76314),r=n.n(a)()(o());r.push([t.id,".text-block-list-item[data-v-7e1b7282]{padding-inline-start:0px !important;padding-inline-end:0px !important}.text-block-list-item[data-v-7e1b7282] .list-item-content{padding:0px !important}.text-block-buttons[data-v-7e1b7282]{width:100%;justify-self:end;display:flex;justify-content:flex-end}.text-block-buttons__button[data-v-7e1b7282]{margin:var(--default-grid-baseline)}","",{version:3,sources:["webpack://./src/components/textBlocks/ListItem.vue"],names:[],mappings:"AACA,uCACC,mCAAA,CACA,iCAAA,CACA,0DACC,sBAAA,CAIF,qCACC,UAAA,CACA,gBAAA,CACA,YAAA,CACA,wBAAA,CACA,6CACC,mCAAA",sourcesContent:["\n.text-block-list-item {\n\tpadding-inline-start: 0px !important;\n\tpadding-inline-end: 0px !important;\n\t:deep(.list-item-content) {\n\t\tpadding: 0px !important;\n\t}\n}\n\n.text-block-buttons {\n\twidth: 100%;\n\tjustify-self: end;\n\tdisplay: flex;\n\tjustify-content: flex-end;\n\t&__button {\n\t\tmargin: var(--default-grid-baseline);\n\t}\n}\n"],sourceRoot:""}]);const s=r},59975(t,e,n){"use strict";n.d(e,{A:()=>s});var i=n(71354),o=n.n(i),a=n(76314),r=n.n(a)()(o());r.push([t.id,"\n/*\nOverwrite the default z-index for CKEditor\nhttps://github.com/ckeditor/ckeditor5/issues/1142\n */\n.ck .ck-reset {\n\tbackground: var(--color-main-background) !important;\n}\n/* Default ckeditor value of padding-inline-start, to overwrite the global styling from server */\n.ck-content ul, .ck-content ol {\n\tpadding-inline-start: 40px;\n}\n.ck-read-only {\n\tcolor: var(--color-main-text) !important;\n\tbackground-color: var(--color-main-background) !important;\n\topacity: 1 !important;\n\tfont-size: 100% !important;\n}\n.ck-list__item {\n.ck-off {\n\t\tbackground:var(--color-main-background) !important;\n}\n.ck-on {\n\t\tbackground:var(--color-primary-element-light) !important;\n}\n}\n.custom-item-username {\n\tcolor: var(--color-main-text) !important;\n}\n.link-title {\n\tcolor: var(--color-main-text) !important;\n\tmargin-inline-start: var(--default-grid-baseline) !important;\n}\n.custom-item {\n\twidth : 100% !important;\n\tborder-radius : 8px !important;\n\tpadding : 4px 8px !important;\n\tdisplay :block;\n\tbackground:var(--color-main-background)!important;\n}\n.custom-item:hover {\n\tbackground:var(--color-primary-element-light)!important;\n}\n.link-container{\n\tborder-radius :8px !important;\n\tpadding :4px 8px !important;\n\tdisplay : block;\n\twidth : 100% !important;\n\tbackground:var(--color-main-background)!important;\nimg.link-icon {\n\t\twidth: 16px;\n\t\theight: 16px;\n}\n}\n.link-container:hover {\n\tbackground:var(--color-primary-element-light)!important;\n}\n:root {\n\t--ck-z-default: 10000;\n\t--ck-balloon-border-width: 0;\n}\n.ck.ck-toolbar {\n\tborder-radius: var(--border-radius-large) !important;\n\tbackground: var(--color-main-background) !important;\n color: var(--color-main-text) !important;\n\tborder: 1px solid var(--color-border) !important;\n.ck.ck-toolbar__separator {\n\t\tbackground: var(--color-border) !important;\n}\n}\n.ck-rounded-corners .ck.ck-dropdown__panel, .ck.ck-dropdown__panel.ck-rounded-corners {\n\tborder-radius: var(--border-radius-large) !important;\n\toverflow: visible;\n}\n.ck.ck-list-styles-list {\n/* our composer is very small, having menus vertically shown is better */\n\tgrid-template-rows: repeat(3,auto) !important;\n\tgrid-template-columns: unset !important;\n}\n.ck.ck-button {\n\tborder-radius: var(--border-radius-element) !important;\n}\n.ck-powered-by-balloon {\n\tdisplay: none !important;\n}\n.editor-wrapper {\n\tdisplay: flex;\n\tflex-direction: column-reverse;\n\theight: 100%;\n.toolbar {\n\t\tposition: sticky;\n\t\tbottom: 0;\n\t\tz-index: 10;\n}\n.editable {\n\t\tflex-grow: 1;\n\t\toverflow-y: auto;\n}\n}\n.ck.ck-editor__editable.ck-focused:not(.ck-editor__nested-editable) {\n\tborder: none;\n\tbox-shadow: none;\n\twidth: 99%;\n\theight: 97%;\n}\n.ck.ck-button, a.ck.ck-button {\n\tfont-size: small;\n\tfont-weight: normal;\n}\n.ck-source-editing-area {\n\theight: 97%;\n\toverflow: scroll;\n}\n.ck-source-editing-area textarea {\n\tborder: 0;\n}\n.ck.ck-editor__editable_inline {\n\twidth: 99%;\n\theight: 97%;\n\tborder: 0;\n}\n.select, button:not(.button-vue,[class^=vs__]), .button, input[type=button], input[type=submit], input[type=reset] {\n\tcolor: var(--color-main-text);\n}\n\n/* We need the paragraph field a bit smaller so it doesnt break the toolbar for signature */\n.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__button .ck-button__label {\n\twidth: 6em !important;\n}\n.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content {\n\tborder: none;\n}\n.ck.ck-balloon-panel_visible {\n border-radius: calc(var(--border-radius-large) + 1px) !important;\n background: var(--color-main-background) !important;\n color: var(--color-main-text) !important;\n box-shadow: 0 2px 8px rgba(0,0,0,0.15);\n}\n.ck.ck-tooltip__text{\n\tcolor: var(--color-main-text) !important;\n}\n.ck.ck-toolbar .ck-button {\n\tcolor: var(--color-main-text) !important;\n}\n.ck.ck-toolbar .ck-button:hover,\n.ck.ck-toolbar .ck-button.ck-on,\n.ck.ck-toolbar .ck-button:focus {\n\tbackground: var(--color-primary-element-light) !important;\n color: var(--color-main-text) !important;\n}\n.ck.ck-toolbar .ck-button .ck-button__label {\n\tcolor: var(--color-main-text) !important;\n}\n.ck.ck-dropdown__panel .ck.ck-list {\n\tborder-radius: var(--border-radius-large) !important;\n}\n.ck-dropdown__panel.ck-dropdown__panel-visible {\n\tborder-radius: var(--border-radius-large) !important;\n}\n\n/* Needs to be set to flex, bececause else it breaks the toolbar - it is shown in 2 lines instead of 1 */\n.ck.ck-splitbutton.ck-dropdown__button{\n\tdisplay: flex !important;\n}\n.ck.ck-input.ck-input-text{\n\tbackground: var(--color-main-background) !important;\n color: var(--color-main-text) !important;\n\tcursor: text !important;\n}\n.ck.ck-labeled-field-view__input-wrapper .ck.ck-label {\n\tbackground: var(--color-main-background) !important;\n color: var(--color-main-text) !important;\n}\n.ck.ck-button.ck-splitbutton__action {\n margin: 0 !important;\n}\n.ck.ck-splitbutton.ck-dropdown__button:hover .ck-button,\n.ck.ck-splitbutton.ck-dropdown__button:hover .ck-splitbutton__action,\n.ck.ck-splitbutton.ck-dropdown__button:hover .ck-splitbutton__arrow {\n\tbackground: var(--color-primary-element-light) !important;\n\tcolor: var(--color-main-text) !important;\n}\n.ck.ck-splitbutton .ck-button:focus,\n.ck.ck-splitbutton .ck-button:focus-visible,\n.ck.ck-splitbutton .ck-button:active,\n.ck.ck-splitbutton .ck-button.ck-on {\n\tbackground: var(--color-primary-element-light) !important;\n\tcolor: var(--color-main-text) !important;\n\toutline: none !important;\n}\n.ck.ck-splitbutton.ck-splitbutton_open .ck-button,\n.ck.ck-splitbutton.ck-splitbutton_open .ck-splitbutton__action,\n.ck.ck-splitbutton.ck-splitbutton_open .ck-splitbutton__arrow {\n background: var(--color-primary-element-light) !important;\n color: var(--color-main-text) !important;\n}\n\n","",{version:3,sources:["webpack://./src/components/TextEditor.vue"],names:[],mappings:";AAoqBA;;;EAGA;AACA;CACA,mDAAA;AACA;AACA,gGAAA;AACA;CACA,0BAAA;AACA;AAEA;CACA,wCAAA;CACA,yDAAA;CACA,qBAAA;CACA,0BAAA;AACA;AAEA;AACA;EACA,kDAAA;AACA;AACA;EACA,wDAAA;AACA;AACA;AAEA;CACA,wCAAA;AACA;AAEA;CACA,wCAAA;CACA,4DAAA;AACA;AAEA;CACA,uBAAA;CACA,8BAAA;CACA,4BAAA;CACA,cAAA;CACA,iDAAA;AACA;AAEA;CACA,uDAAA;AACA;AAEA;CACA,6BAAA;CACA,2BAAA;CACA,eAAA;CACA,uBAAA;CACA,iDAAA;AACA;EACA,WAAA;EACA,YAAA;AACA;AACA;AAEA;CACA,uDAAA;AACA;AAEA;CACA,qBAAA;CACA,6BAAA;AACA;AAEA;CACA,oDAAA;CACA,mDAAA;IACA,wCAAA;CACA,gDAAA;AAEA;EACA,0CAAA;AACA;AACA;AAEA;CACA,oDAAA;CACA,iBAAA;AACA;AAEA;AACA,wEAAA;CACA,6CAAA;CACA,uCAAA;AACA;AAEA;CACA,sDAAA;AACA;AAEA;CACA,wBAAA;AACA;AAEA;CACA,aAAA;CACA,8BAAA;CACA,YAAA;AAEA;EACA,gBAAA;EACA,SAAA;EACA,WAAA;AACA;AAEA;EACA,YAAA;EACA,gBAAA;AACA;AACA;AAEA;CACA,YAAA;CACA,gBAAA;CACA,UAAA;CACA,WAAA;AACA;AAEA;CACA,gBAAA;CACA,mBAAA;AACA;AAEA;CACA,WAAA;CACA,gBAAA;AACA;AAEA;CACA,SAAA;AACA;AAEA;CACA,UAAA;CACA,WAAA;CACA,SAAA;AACA;AAEA;CACA,6BAAA;AACA;;AAEA,2FAAA;AACA;CACA,qBAAA;AACA;AAEA;CACA,YAAA;AACA;AAEA;IACA,gEAAA;IACA,mDAAA;IACA,wCAAA;IACA,sCAAA;AACA;AAEA;CACA,wCAAA;AACA;AAEA;CACA,wCAAA;AACA;AAEA;;;CAGA,yDAAA;IACA,wCAAA;AACA;AAEA;CACA,wCAAA;AACA;AAEA;CACA,oDAAA;AACA;AAEA;CACA,oDAAA;AACA;;AAEA,wGAAA;AACA;CACA,wBAAA;AACA;AAEA;CACA,mDAAA;IACA,wCAAA;CACA,uBAAA;AACA;AAEA;CACA,mDAAA;IACA,wCAAA;AACA;AAEA;IACA,oBAAA;AACA;AAEA;;;CAGA,yDAAA;CACA,wCAAA;AACA;AAEA;;;;CAIA,yDAAA;CACA,wCAAA;CACA,wBAAA;AACA;AAEA;;;IAGA,yDAAA;IACA,wCAAA;AACA",sourcesContent:["\x3c!--\n - SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors\n - SPDX-License-Identifier: AGPL-3.0-or-later\n--\x3e\n\n<template>\n\t<div :class=\"{ 'editor-wrapper--bordered': isBordered }\" class=\"editor-wrapper\">\n\t\t<div ref=\"toolbarContainer\" class=\"toolbar\" />\n\n\t\t<div ref=\"editableContainer\" class=\"editable\" />\n\n\t\t<Ckeditor\n\t\t\tv-if=\"ready\"\n\t\t\t:value=\"value\"\n\t\t\t:config=\"config\"\n\t\t\t:editor=\"editor\"\n\t\t\t:disabled=\"disabled\"\n\t\t\tclass=\"editor\"\n\t\t\t@input=\"onEditorInput\"\n\t\t\t@ready=\"onEditorReady\" />\n\t</div>\n</template>\n\n<script>\nimport CKEditor from '@ckeditor/ckeditor5-vue2'\nimport { getLanguage } from '@nextcloud/l10n'\nimport { emojiAddRecent, emojiSearch } from '@nextcloud/vue'\nimport {\n\tAlignment,\n\tBase64UploadAdapter,\n\tBlockQuote,\n\tBold,\n\tClassicEditor,\n\tDropdownView,\n\tEssentials,\n\tFindAndReplace,\n\tFont,\n\tGeneralHtmlSupport,\n\tHeading,\n\tImage,\n\tImageResize,\n\tImageUpload,\n\tItalic,\n\tLink,\n\tList,\n\tMention,\n\tParagraph,\n\tRemoveFormat,\n\tSourceEditing,\n\tStrikethrough,\n\tSubscript,\n\tSuperscript,\n\tUnderline,\n} from 'ckeditor5'\nimport { getLinkWithPicker, searchProvider } from '@nextcloud/vue/components/NcRichText'\nimport TextDirectionPlugin from '../ckeditor/direction/TextDirectionPlugin.js'\nimport MailPlugin from '../ckeditor/mail/MailPlugin.js'\nimport QuotePlugin from '../ckeditor/quote/QuotePlugin.js'\nimport SignaturePlugin from '../ckeditor/signature/SignaturePlugin.js'\nimport PickerPlugin from '../ckeditor/smartpicker/PickerPlugin.js'\nimport logger from '../logger.js'\nimport { autoCompleteByName } from '../service/ContactIntegrationService.js'\nimport { Text, toPlain } from '../util/text.js'\n\nimport 'ckeditor5/ckeditor5.css'\n\nexport default {\n\tname: 'TextEditor',\n\tcomponents: {\n\t\tCkeditor: CKEditor.component,\n\t},\n\n\tinject: {\n\t\taddToFocusTrap: { default: () => {} },\n\t},\n\n\tprops: {\n\t\tvalue: {\n\t\t\ttype: String,\n\t\t\trequired: true,\n\t\t},\n\n\t\thtml: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\n\t\tplaceholder: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\n\t\tfocus: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\n\t\tbus: {\n\t\t\ttype: Object,\n\t\t\trequired: true,\n\t\t},\n\n\t\tdisabled: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\n\t\ttextBlocks: {\n\t\t\ttype: Array,\n\t\t\tdefault: () => [],\n\t\t},\n\n\t\tisBordered: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\n\t\treadOnly: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\t},\n\n\tdata() {\n\t\tconst plugins = [\n\t\t\tEssentials,\n\t\t\tParagraph,\n\t\t\tSignaturePlugin,\n\t\t\tQuotePlugin,\n\t\t\tPickerPlugin,\n\t\t\tMention,\n\t\t\tLink,\n\t\t\tFindAndReplace,\n\t\t\tGeneralHtmlSupport,\n\t\t]\n\t\tconst toolbar = ['undo', 'redo']\n\n\t\tif (this.html) {\n\t\t\tplugins.push(...[\n\t\t\t\tHeading,\n\t\t\t\tAlignment,\n\t\t\t\tBold,\n\t\t\t\tItalic,\n\t\t\t\tUnderline,\n\t\t\t\tStrikethrough,\n\t\t\t\tSubscript,\n\t\t\t\tSuperscript,\n\t\t\t\tBlockQuote,\n\t\t\t\tList,\n\t\t\t\tImage,\n\t\t\t\tImageUpload,\n\t\t\t\tImageResize,\n\t\t\t\tFont,\n\t\t\t\tRemoveFormat,\n\t\t\t\tBase64UploadAdapter,\n\t\t\t\tMailPlugin,\n\t\t\t\tSourceEditing,\n\t\t\t\tTextDirectionPlugin,\n\t\t\t])\n\t\t\ttoolbar.unshift(...[\n\t\t\t\t'heading',\n\t\t\t\t'fontFamily',\n\t\t\t\t'fontSize',\n\t\t\t\t'bold',\n\t\t\t\t'italic',\n\t\t\t\t'underline',\n\t\t\t\t'strikethrough',\n\t\t\t\t'fontColor',\n\t\t\t\t'subscript',\n\t\t\t\t'superscript',\n\t\t\t\t'fontBackgroundColor',\n\t\t\t\t'insertImage',\n\t\t\t\t'alignment',\n\t\t\t\t'textDirection:ltr',\n\t\t\t\t'textDirection:rtl',\n\t\t\t\t'bulletedList',\n\t\t\t\t'numberedList',\n\t\t\t\t'blockquote',\n\t\t\t\t'link',\n\t\t\t\t'removeFormat',\n\t\t\t\t'findAndReplace',\n\t\t\t\t'sourceEditing',\n\t\t\t])\n\t\t}\n\n\t\treturn {\n\t\t\tlinkTribute: null,\n\t\t\temojiTribute: null,\n\t\t\tcontactMentionQuery: null,\n\t\t\ttextSmiles: [],\n\t\t\tsourceEditingInputHandler: null,\n\t\t\tsourceEditingModeHandler: null,\n\t\t\tsourceEditingDebounceTimer: null,\n\t\t\tready: false,\n\t\t\teditor: ClassicEditor,\n\t\t\tconfig: {\n\t\t\t\tlicenseKey: 'GPL',\n\t\t\t\tplaceholder: this.placeholder,\n\t\t\t\tplugins,\n\t\t\t\ttoolbar,\n\t\t\t\tlanguage: 'en',\n\t\t\t\tmention: {\n\t\t\t\t\tfeeds: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tmarker: ':',\n\t\t\t\t\t\t\tfeed: this.getEmoji,\n\t\t\t\t\t\t\titemRenderer: this.customEmojiRenderer,\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tmarker: '/',\n\t\t\t\t\t\t\tfeed: this.getLink,\n\t\t\t\t\t\t\titemRenderer: this.customLinkRenderer,\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tmarker: '@',\n\t\t\t\t\t\t\tfeed: this.getContact,\n\t\t\t\t\t\t\titemRenderer: (value) => this.customRenderer(value, 'contact'),\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tmarker: '!',\n\t\t\t\t\t\t\tfeed: this.getTextBlock,\n\t\t\t\t\t\t\titemRenderer: this.customRenderer,\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t},\n\n\t\t\t\thtmlSupport: {\n\t\t\t\t\tallow: [\n\t\t\t\t\t\t'table',\n\t\t\t\t\t\t'tbody',\n\t\t\t\t\t\t'td',\n\t\t\t\t\t\t'tfoot',\n\t\t\t\t\t\t'th',\n\t\t\t\t\t\t'thead',\n\t\t\t\t\t\t'tr',\n\t\t\t\t\t\t'figure',\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'a',\n\t\t\t\t\t\t\tattributes: ['title', 'name', 'id'],\n\t\t\t\t\t\t\tclasses: true,\n\t\t\t\t\t\t\tstyles: true,\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'img',\n\t\t\t\t\t\t\tattributes: ['src', 'alt', 'title', 'width', 'height', 'data-cid', 'loading'],\n\t\t\t\t\t\t\tstyles: true,\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t},\n\n\t\t\t},\n\t\t}\n\t},\n\n\tbeforeMount() {\n\t\tthis.loadEditorTranslations(getLanguage())\n\t},\n\n\tbeforeDestroy() {\n\t\tthis.unregisterSourceEditingInputListener()\n\n\t\tif (this.editorInstance?.plugins.has('SourceEditing') && this.sourceEditingModeHandler) {\n\t\t\tthis.editorInstance.plugins.get('SourceEditing').off('change:isSourceEditingMode', this.sourceEditingModeHandler)\n\t\t}\n\t},\n\n\tmethods: {\n\t\tregisterSourceEditingInputListener() {\n\t\t\tconst textarea = this.editorInstance.ui.getEditableElement('sourceEditing:main')\n\n\t\t\tif (!textarea || this.sourceEditingInputHandler) {\n\t\t\t\treturn\n\t\t\t}\n\n\t\t\tthis.sourceEditingInputHandler = () => {\n\t\t\t\tclearTimeout(this.sourceEditingDebounceTimer)\n\t\t\t\tthis.sourceEditingDebounceTimer = setTimeout(() => {\n\t\t\t\t\tthis.editorInstance.plugins.get('SourceEditing').updateEditorData()\n\t\t\t\t}, 300)\n\t\t\t}\n\n\t\t\ttextarea.addEventListener('input', this.sourceEditingInputHandler)\n\t\t},\n\n\t\tunregisterSourceEditingInputListener() {\n\t\t\tclearTimeout(this.sourceEditingDebounceTimer)\n\t\t\tthis.sourceEditingDebounceTimer = null\n\n\t\t\tif (!this.sourceEditingInputHandler) {\n\t\t\t\treturn\n\t\t\t}\n\n\t\t\tconst textarea = this.editorInstance?.ui.getEditableElement('sourceEditing:main')\n\t\t\ttextarea?.removeEventListener('input', this.sourceEditingInputHandler)\n\t\t\tthis.sourceEditingInputHandler = null\n\t\t},\n\n\t\tgetLink(text) {\n\t\t\tconst results = searchProvider(text)\n\t\t\tif (results.length === 1 && !results[0].title.toLowerCase().includes(text.toLowerCase())) {\n\t\t\t\treturn []\n\t\t\t}\n\t\t\treturn results\n\t\t},\n\n\t\tgetEmoji(text) {\n\t\t\t// Disable the emoji picker if a [space] is the first character after the colon ':'\n\t\t\tif (text[0] === ' ') {\n\t\t\t\treturn []\n\t\t\t}\n\t\t\tconst emojiResults = emojiSearch(text)\n\t\t\tif (this.textSmiles.includes(':' + text)) {\n\t\t\t\temojiResults.unshift(':' + text)\n\t\t\t}\n\t\t\treturn emojiResults\n\t\t},\n\n\t\tasync getContact(text) {\n\t\t\tif (text.length === 0) {\n\t\t\t\treturn []\n\t\t\t}\n\t\t\tthis.contactMentionQuery = text\n\t\t\tlet contactResults\n\t\t\ttry {\n\t\t\t\tcontactResults = await autoCompleteByName(text)\n\t\t\t\tcontactResults = contactResults.filter((result) => result.email?.filter((email) => email.length > 0))\n\t\t\t} catch (error) {\n\t\t\t\tlogger.error('could not fetch contacts to mention', { error })\n\t\t\t\treturn []\n\t\t\t}\n\t\t\treturn contactResults\n\t\t},\n\n\t\tgetTextBlock(text) {\n\t\t\tif (text.length === 0) {\n\t\t\t\treturn []\n\t\t\t}\n\t\t\treturn this.textBlocks.filter((textBlock) => textBlock.title.toLowerCase().includes(text.toLowerCase()))\n\t\t},\n\n\t\tcustomEmojiRenderer(item) {\n\t\t\tconst itemElement = document.createElement('span')\n\n\t\t\titemElement.classList.add('custom-item')\n\t\t\titemElement.id = `mention-list-item-id-${item.colons}`\n\t\t\titemElement.textContent = `${item.native} `\n\t\t\tconst usernameElement = document.createElement('span')\n\n\t\t\tusernameElement.classList.add('custom-item-username')\n\t\t\tusernameElement.textContent = item.colons\n\n\t\t\titemElement.appendChild(usernameElement)\n\n\t\t\treturn itemElement\n\t\t},\n\n\t\tcustomLinkRenderer(item) {\n\t\t\tconst itemElement = document.createElement('span')\n\t\t\titemElement.classList.add('link-container')\n\n\t\t\tconst icon = document.createElement('img')\n\t\t\ticon.classList.add('link-icon')\n\t\t\ticon.src = `${item.icon_url} `\n\n\t\t\tconst usernameElement = document.createElement('span')\n\n\t\t\tusernameElement.classList.add('link-title')\n\t\t\tusernameElement.textContent = `${item.title} `\n\t\t\titemElement.appendChild(icon)\n\t\t\titemElement.appendChild(usernameElement)\n\n\t\t\treturn itemElement\n\t\t},\n\n\t\tcustomRenderer(item, type) {\n\t\t\tconst itemElement = document.createElement('span')\n\n\t\t\titemElement.classList.add('custom-item')\n\t\t\titemElement.id = `mention-list-item-id-${item.id}`\n\t\t\tconst usernameElement = document.createElement('p')\n\t\t\tconst label = type === 'contact' ? item.label : item.title\n\t\t\tusernameElement.classList.add('custom-item-username')\n\t\t\tusernameElement.textContent = label\n\n\t\t\titemElement.appendChild(usernameElement)\n\n\t\t\treturn itemElement\n\t\t},\n\n\t\toverrideDropdownPositionsToNorth(editor, toolbarView) {\n\t\t\tconst {\n\t\t\t\tsouth,\n\t\t\t\tnorth,\n\t\t\t\tsouthEast,\n\t\t\t\tsouthWest,\n\t\t\t\tnorthEast,\n\t\t\t\tnorthWest,\n\t\t\t\tsouthMiddleEast,\n\t\t\t\tsouthMiddleWest,\n\t\t\t\tnorthMiddleEast,\n\t\t\t\tnorthMiddleWest,\n\t\t\t} = DropdownView.defaultPanelPositions\n\n\t\t\tlet panelPositions\n\n\t\t\tif (editor.locale.uiLanguageDirection !== 'rtl') {\n\t\t\t\tpanelPositions = [\n\t\t\t\t\tnorthEast,\n\t\t\t\t\tnorthWest,\n\t\t\t\t\tnorthMiddleEast,\n\t\t\t\t\tnorthMiddleWest,\n\t\t\t\t\tnorth,\n\t\t\t\t\tsouthEast,\n\t\t\t\t\tsouthWest,\n\t\t\t\t\tsouthMiddleEast,\n\t\t\t\t\tsouthMiddleWest,\n\t\t\t\t\tsouth,\n\t\t\t\t]\n\t\t\t} else {\n\t\t\t\tpanelPositions = [\n\t\t\t\t\tnorthWest,\n\t\t\t\t\tnorthEast,\n\t\t\t\t\tnorthMiddleWest,\n\t\t\t\t\tnorthMiddleEast,\n\t\t\t\t\tnorth,\n\t\t\t\t\tsouthWest,\n\t\t\t\t\tsouthEast,\n\t\t\t\t\tsouthMiddleWest,\n\t\t\t\t\tsouthMiddleEast,\n\t\t\t\t\tsouth,\n\t\t\t\t]\n\t\t\t}\n\n\t\t\tfor (const item of toolbarView.items) {\n\t\t\t\tif (!(item instanceof DropdownView)) {\n\t\t\t\t\tcontinue\n\t\t\t\t}\n\n\t\t\t\titem.on('change:isOpen', () => {\n\t\t\t\t\tif (!item.isOpen) {\n\t\t\t\t\t\treturn\n\t\t\t\t\t}\n\n\t\t\t\t\titem.panelView.position = DropdownView._getOptimalPosition({\n\t\t\t\t\t\telement: item.panelView.element,\n\t\t\t\t\t\ttarget: item.buttonView.element,\n\t\t\t\t\t\tfitInViewport: true,\n\t\t\t\t\t\tpositions: panelPositions,\n\t\t\t\t\t}).name\n\t\t\t\t})\n\t\t\t}\n\t\t},\n\n\t\toverrideTooltipPositions(toolbarView) {\n\t\t\tfor (const item of toolbarView.items) {\n\t\t\t\tif (item.buttonView) {\n\t\t\t\t\titem.buttonView.tooltipPosition = 'n'\n\t\t\t\t} else if (item.tooltipPosition) {\n\t\t\t\t\titem.tooltipPosition = 'n'\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\n\t\tasync loadEditorTranslations(language) {\n\t\t\t// CKEditor uses lowercase locale codes (e.g. \"de-ch\" instead of \"de-CH\")\n\t\t\tconst ckeditorLanguage = language.toLowerCase()\n\n\t\t\tif (ckeditorLanguage === 'en') {\n\t\t\t\t// The default, nothing to fetch\n\t\t\t\tthis.showEditor('en')\n\t\t\t\treturn\n\t\t\t}\n\n\t\t\t// Try exact match first (e.g. \"de-ch\"), then language only (e.g. \"de\"), then fall back to \"en\"\n\t\t\tconst candidates = [ckeditorLanguage]\n\t\t\tif (ckeditorLanguage.includes('-')) {\n\t\t\t\tcandidates.push(ckeditorLanguage.split('-')[0])\n\t\t\t}\n\n\t\t\tfor (const candidate of candidates) {\n\t\t\t\ttry {\n\t\t\t\t\tlogger.debug(`loading \"${candidate}\" translations for CKEditor`)\n\n\t\t\t\t\t/* eslint-disable @stylistic/comma-dangle, @stylistic/function-paren-newline */\n\t\t\t\t\tconst { default: coreTranslations } = await import(\n\t\t\t\t\t\t/* webpackMode: \"lazy\" */\n\t\t\t\t\t\t`../../node_modules/ckeditor5/build/translations/${candidate}.js`\n\t\t\t\t\t)\n\t\t\t\t\t/* eslint-enable @stylistic/comma-dangle, @stylistic/function-paren-newline */\n\n\t\t\t\t\tthis.showEditor(candidate, [coreTranslations])\n\t\t\t\t\treturn\n\t\t\t\t} catch (error) {\n\t\t\t\t\tlogger.debug(`no CKEditor translations for \"${candidate}\"`, { error })\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tlogger.info(`no CKEditor translations found for \"${language}\", falling back to English`)\n\t\t\tthis.showEditor('en')\n\t\t},\n\n\t\tshowEditor(language, translations) {\n\t\t\tlogger.debug(`using \"${language}\" as CKEditor language`)\n\t\t\tif (translations) {\n\t\t\t\tthis.config.translations = translations\n\t\t\t}\n\t\t\tthis.config.language = language\n\n\t\t\tthis.ready = true\n\t\t},\n\n\t\t/**\n\t\t * @param {module:core/editor/editor~Editor} editor editor the editor instance\n\t\t */\n\t\tonEditorReady(editor) {\n\t\t\tlogger.debug('TextEditor is ready', { editor })\n\n\t\t\t// https://ckeditor.com/docs/ckeditor5/latest/examples/builds-custom/bottom-toolbar-editor.html\n\t\t\tthis.$refs.toolbarContainer.appendChild(editor.ui.view.toolbar.element)\n\t\t\tthis.$refs.editableContainer.appendChild(editor.ui.view.editable.element)\n\t\t\tif (this.readOnly) {\n\t\t\t\teditor.ui.view.toolbar.element.style.display = 'none'\n\t\t\t\teditor.enableReadOnlyMode('text-block')\n\t\t\t}\n\t\t\tif (editor.ui) {\n\t\t\t\tthis.overrideDropdownPositionsToNorth(editor, editor.ui.view.toolbar)\n\t\t\t\tthis.overrideTooltipPositions(editor.ui.view.toolbar)\n\t\t\t}\n\t\t\teditor.commands.get('mention')?.on('execute', (event, data) => {\n\t\t\t\tevent.stop()\n\t\t\t\tconst eventData = data[0]\n\t\t\t\tconst item = eventData.mention\n\t\t\t\tif (eventData.marker === ':') {\n\t\t\t\t\temojiAddRecent(item)\n\t\t\t\t\tthis.editorInstance.execute('insertItem', item.native, ':')\n\t\t\t\t}\n\t\t\t\tif (eventData.marker === '/') {\n\t\t\t\t\tgetLinkWithPicker(item.id)\n\t\t\t\t\t\t.then((link) => {\n\t\t\t\t\t\t\tthis.editorInstance.execute('insertItem', link, '/')\n\t\t\t\t\t\t\tthis.editorInstance.editing.view.focus()\n\t\t\t\t\t\t})\n\t\t\t\t\t\t.catch((error) => {\n\t\t\t\t\t\t\tlogger.debug('Smart picker promise rejected', { error })\n\t\t\t\t\t\t})\n\t\t\t\t}\n\t\t\t\tif (eventData.marker === '@') {\n\t\t\t\t\tconst lookback = this.contactMentionQuery?.length ? this.contactMentionQuery.length + '@'.length : 5\n\t\t\t\t\tthis.editorInstance.execute('insertItem', { email: item.email[0], label: item.label }, '@', lookback)\n\t\t\t\t\tthis.$emit('mention', { email: item.email[0], label: item.label })\n\t\t\t\t}\n\t\t\t\tif (eventData.marker === '!') {\n\t\t\t\t\tthis.insertTextBlock(item, false)\n\t\t\t\t}\n\t\t\t}, { priority: 'high' })\n\n\t\t\tif (editor.plugins.has('SourceEditing')) {\n\t\t\t\tthis.sourceEditingModeHandler = (_event, _name, isSourceEditingMode) => {\n\t\t\t\t\tif (isSourceEditingMode) {\n\t\t\t\t\t\tthis.registerSourceEditingInputListener()\n\t\t\t\t\t\treturn\n\t\t\t\t\t}\n\n\t\t\t\t\tthis.unregisterSourceEditingInputListener()\n\t\t\t\t}\n\n\t\t\t\teditor.plugins.get('SourceEditing').on('change:isSourceEditingMode', this.sourceEditingModeHandler)\n\t\t\t}\n\n\t\t\teditor.keystrokes.set('Ctrl+Enter', (event) => {\n\t\t\t\tlogger.debug('Detected Ctrl+Enter/Cmd+Enter', event)\n\t\t\t\tthis.$emit('submit', editor)\n\t\t\t})\n\n\t\t\tthis.editorInstance = editor\n\n\t\t\tif (this.focus) {\n\t\t\t\tlogger.debug('focusing TextEditor')\n\t\t\t\teditor.editing.view.focus()\n\t\t\t}\n\n\t\t\tif (this.html) {\n\t\t\t\tthis.addToFocusTrap('.ck-body-wrapper')\n\t\t\t}\n\n\t\t\tthis.bus.on('append-to-body-at-cursor', this.appendToBodyAtCursor)\n\t\t\tthis.bus.on('insert-text-block', this.insertTextBlock)\n\t\t\tthis.$emit('ready', editor)\n\t\t},\n\n\t\tonEditorInput(text) {\n\t\t\tif (text !== this.value) {\n\t\t\t\tlogger.debug(`TextEditor input changed to <${text}>`)\n\t\t\t\tthis.$emit('input', text)\n\t\t\t}\n\t\t},\n\n\t\tappendToBodyAtCursor(toAppend) {\n\t\t\t// https://ckeditor.com/docs/ckeditor5/latest/builds/guides/faq.html#where-are-the-editorinserthtml-and-editorinserttext-methods-how-to-insert-some-content\n\t\t\tconst viewFragment = this.editorInstance.data.processor.toView(toAppend)\n\t\t\tconst modelFragment = this.editorInstance.data.toModel(viewFragment)\n\t\t\tthis.editorInstance.model.insertContent(modelFragment)\n\t\t},\n\n\t\teditorExecute(commandName, ...args) {\n\t\t\tif (this.editorInstance) {\n\t\t\t\tthis.editorInstance.execute(commandName, ...args)\n\t\t\t} else {\n\t\t\t\tthrow new Error('Impossible to execute a command before editor is ready.')\n\t\t\t}\n\t\t},\n\n\t\tinsertTextBlock(textBlock, addTriggrer = true) {\n\t\t\tif (addTriggrer) {\n\t\t\t\tthis.appendToBodyAtCursor('!')\n\t\t\t}\n\t\t\tlet content = textBlock.content\n\t\t\tif (!this.html) {\n\t\t\t\tconst text = new Text('html', content)\n\t\t\t\tcontent = toPlain(text).value\n\t\t\t}\n\t\t\tthis.editorInstance.execute('insertItem', { content, isHtml: this.html }, '!')\n\t\t},\n\t},\n}\n<\/script>\n\n<style lang=\"scss\" scoped>\n.editor-wrapper--bordered{\n\t--border-offset: calc(var(--border-width-input-focused, 2px) - var(--border-width-input, 2px));\n\tmargin-top: var(--default-grid-baseline);\n\tborder: var(--border-width-input, 2px) solid var(--color-border-maxcontrast);\n\tborder-radius:var(--border-radius-large);\n\theight: 200px;\n\t// to align with the text input in the text block modal\n\tpadding: 9px;\n\n\t:deep(.ck.ck-editor__editable_inline) {\n\t\tpadding:0 !important;\n\t}\n\t&:focus {\n\t\tpadding: calc(9px - var(--border-offset));\n\t\tborder-color: var(--color-main-text);\n\t\tborder-width: var(--border-width-input-focused, 2px);\n\t}\n\t&:hover {\n\t\tpadding: calc(9px - var(--border-offset));\n\t\tborder-color: var(--color-main-text);\n\t\tborder-width: var(--border-width-input-focused, 2px);\n\t}\n}\n\n.editor {\n\twidth: 100%;\n\theight: calc(100% - 75px);\n\toverflow: scroll;\n\tmargin-bottom: 10px;\n\n\t&.ck {\n\t\tborder: none !important;\n\t\tbox-shadow: none !important;\n\t\tpadding: 0;\n\t}\n}\n\n:deep(a) {\n\tcolor: #07d;\n}\n\n:deep(p) {\n\tcursor: text;\n\tmargin: 0 !important;\n}\n</style>\n\n<style>\n/*\nOverwrite the default z-index for CKEditor\nhttps://github.com/ckeditor/ckeditor5/issues/1142\n */\n .ck .ck-reset {\n\tbackground: var(--color-main-background) !important;\n }\n/* Default ckeditor value of padding-inline-start, to overwrite the global styling from server */\n.ck-content ul, .ck-content ol {\n\tpadding-inline-start: 40px;\n}\n\n.ck-read-only {\n\tcolor: var(--color-main-text) !important;\n\tbackground-color: var(--color-main-background) !important;\n\topacity: 1 !important;\n\tfont-size: 100% !important;\n}\n\n.ck-list__item {\n\t.ck-off {\n\t\tbackground:var(--color-main-background) !important;\n\t}\n\t.ck-on {\n\t\tbackground:var(--color-primary-element-light) !important;\n\t}\n}\n\n.custom-item-username {\n\tcolor: var(--color-main-text) !important;\n }\n\n.link-title {\n\tcolor: var(--color-main-text) !important;\n\tmargin-inline-start: var(--default-grid-baseline) !important;\n}\n\n.custom-item {\n\twidth : 100% !important;\n\tborder-radius : 8px !important;\n\tpadding : 4px 8px !important;\n\tdisplay :block;\n\tbackground:var(--color-main-background)!important;\n}\n\n.custom-item:hover {\n\tbackground:var(--color-primary-element-light)!important;\n}\n\n.link-container{\n\tborder-radius :8px !important;\n\tpadding :4px 8px !important;\n\tdisplay : block;\n\twidth : 100% !important;\n\tbackground:var(--color-main-background)!important;\n\timg.link-icon {\n\t\twidth: 16px;\n\t\theight: 16px;\n\t}\n}\n\n.link-container:hover {\n\tbackground:var(--color-primary-element-light)!important;\n}\n\n:root {\n\t--ck-z-default: 10000;\n\t--ck-balloon-border-width: 0;\n}\n\n.ck.ck-toolbar {\n\tborder-radius: var(--border-radius-large) !important;\n\tbackground: var(--color-main-background) !important;\n color: var(--color-main-text) !important;\n\tborder: 1px solid var(--color-border) !important;\n\n\t.ck.ck-toolbar__separator {\n\t\tbackground: var(--color-border) !important;\n\t}\n}\n\n.ck-rounded-corners .ck.ck-dropdown__panel, .ck.ck-dropdown__panel.ck-rounded-corners {\n\tborder-radius: var(--border-radius-large) !important;\n\toverflow: visible;\n}\n\n.ck.ck-list-styles-list {\n/* our composer is very small, having menus vertically shown is better */\n\tgrid-template-rows: repeat(3,auto) !important;\n\tgrid-template-columns: unset !important;\n}\n\n.ck.ck-button {\n\tborder-radius: var(--border-radius-element) !important;\n}\n\n.ck-powered-by-balloon {\n\tdisplay: none !important;\n}\n\n.editor-wrapper {\n\tdisplay: flex;\n\tflex-direction: column-reverse;\n\theight: 100%;\n\n\t.toolbar {\n\t\tposition: sticky;\n\t\tbottom: 0;\n\t\tz-index: 10;\n\t}\n\n\t.editable {\n\t\tflex-grow: 1;\n\t\toverflow-y: auto;\n\t}\n}\n\n.ck.ck-editor__editable.ck-focused:not(.ck-editor__nested-editable) {\n\tborder: none;\n\tbox-shadow: none;\n\twidth: 99%;\n\theight: 97%;\n}\n\n.ck.ck-button, a.ck.ck-button {\n\tfont-size: small;\n\tfont-weight: normal;\n}\n\n.ck-source-editing-area {\n\theight: 97%;\n\toverflow: scroll;\n}\n\n.ck-source-editing-area textarea {\n\tborder: 0;\n}\n\n.ck.ck-editor__editable_inline {\n\twidth: 99%;\n\theight: 97%;\n\tborder: 0;\n}\n\n.select, button:not(.button-vue,[class^=vs__]), .button, input[type=button], input[type=submit], input[type=reset] {\n\tcolor: var(--color-main-text);\n}\n\n/* We need the paragraph field a bit smaller so it doesnt break the toolbar for signature */\n.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__button .ck-button__label {\n\twidth: 6em !important;\n}\n\n.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content {\n\tborder: none;\n}\n\n.ck.ck-balloon-panel_visible {\n border-radius: calc(var(--border-radius-large) + 1px) !important;\n background: var(--color-main-background) !important;\n color: var(--color-main-text) !important;\n box-shadow: 0 2px 8px rgba(0,0,0,0.15);\n}\n\n.ck.ck-tooltip__text{\n\tcolor: var(--color-main-text) !important;\n}\n\n.ck.ck-toolbar .ck-button {\n\tcolor: var(--color-main-text) !important;\n}\n\n.ck.ck-toolbar .ck-button:hover,\n.ck.ck-toolbar .ck-button.ck-on,\n.ck.ck-toolbar .ck-button:focus {\n\tbackground: var(--color-primary-element-light) !important;\n color: var(--color-main-text) !important;\n}\n\n.ck.ck-toolbar .ck-button .ck-button__label {\n\tcolor: var(--color-main-text) !important;\n}\n\n.ck.ck-dropdown__panel .ck.ck-list {\n\tborder-radius: var(--border-radius-large) !important;\n}\n\n.ck-dropdown__panel.ck-dropdown__panel-visible {\n\tborder-radius: var(--border-radius-large) !important;\n}\n\n/* Needs to be set to flex, bececause else it breaks the toolbar - it is shown in 2 lines instead of 1 */\n.ck.ck-splitbutton.ck-dropdown__button{\n\tdisplay: flex !important;\n}\n\n.ck.ck-input.ck-input-text{\n\tbackground: var(--color-main-background) !important;\n color: var(--color-main-text) !important;\n\tcursor: text !important;\n}\n\n.ck.ck-labeled-field-view__input-wrapper .ck.ck-label {\n\tbackground: var(--color-main-background) !important;\n color: var(--color-main-text) !important;\n}\n\n.ck.ck-button.ck-splitbutton__action {\n margin: 0 !important;\n}\n\n.ck.ck-splitbutton.ck-dropdown__button:hover .ck-button,\n.ck.ck-splitbutton.ck-dropdown__button:hover .ck-splitbutton__action,\n.ck.ck-splitbutton.ck-dropdown__button:hover .ck-splitbutton__arrow {\n\tbackground: var(--color-primary-element-light) !important;\n\tcolor: var(--color-main-text) !important;\n}\n\n.ck.ck-splitbutton .ck-button:focus,\n.ck.ck-splitbutton .ck-button:focus-visible,\n.ck.ck-splitbutton .ck-button:active,\n.ck.ck-splitbutton .ck-button.ck-on {\n\tbackground: var(--color-primary-element-light) !important;\n\tcolor: var(--color-main-text) !important;\n\toutline: none !important;\n}\n\n.ck.ck-splitbutton.ck-splitbutton_open .ck-button,\n.ck.ck-splitbutton.ck-splitbutton_open .ck-splitbutton__action,\n.ck.ck-splitbutton.ck-splitbutton_open .ck-splitbutton__arrow {\n background: var(--color-primary-element-light) !important;\n color: var(--color-main-text) !important;\n}\n\n</style>\n"],sourceRoot:""}]);const s=r},81235(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960" fill="#222222"><path d="M609-389q-29-29-29-71t29-71q29-29 71-29t71 29q29 29 29 71t-29 71q-29 29-71 29t-71-29ZM480-160v-56q0-24 12.5-44.5T528-290q36-15 74.5-22.5T680-320q39 0 77.5 7.5T832-290q23 9 35.5 29.5T880-216v56H480ZM287-527q-47-47-47-113t47-113q47-47 113-47t113 47q47 47 47 113t-47 113q-47 47-113 47t-113-47Zm113-113ZM80-160v-112q0-34 17-62.5t47-43.5q60-30 124.5-46T400-440q35 0 70 6t70 14l-34 34-34 34q-18-5-36-6.5t-36-1.5q-58 0-113.5 14T180-306q-10 5-15 14t-5 20v32h240v80H80Zm320-80Zm56.5-343.5Q480-607 480-640t-23.5-56.5Q433-720 400-720t-56.5 23.5Q320-673 320-640t23.5 56.5Q367-560 400-560t56.5-23.5Z"></path></svg>'},31169(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8,17V14L4,18L8,22V19H20V17M10,10V15H12V4H14V15H16V4H18V2H10A4,4 0 0,0 6,6A4,4 0 0,0 10,10Z"></path></svg>'},28428(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21,18L17,14V17H5V19H17V22M9,10V15H11V4H13V15H15V4H17V2H9A4,4 0 0,0 5,6A4,4 0 0,0 9,10Z"></path></svg>'},88579(t,e,n){"use strict";n.d(e,{A:()=>E});var i=n(53334),o=n(78034),a=n(51849),r=n(71229),s=n(57747),l=n(71561),c=n(10578),d=n(86791),u=n(18896),m=n(76476),A=n(51648),p=n(41527),g=n(28290);const h={name:"MailboxPicker",components:{ButtonVue:o.x1,Modal:o.FH,IconInbox:c.A,IconDraft:d.A,IconSent:u.A,IconArchive:r.A,IconTrash:m.A,IconFolder:l.A,IconBreadcrumb:s.A,IconLoading:o.ne},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:(0,i.Tl)("mail","Choose")},labelSelectLoading:{type:String,default:(0,i.Tl)("mail","Choose")},pickedMailbox:{type:Object,required:!1,default:()=>{}},allowRoot:{type:Boolean,default:!1}},data:()=>({selectedMailboxId:void 0,mailboxCrumbs:[]}),computed:{...(0,a.n2)(p.A),mailboxes(){return this.selectedMailboxId?this.mainStore.getSubMailboxes(this.selectedMailboxId):this.mainStore.getMailboxes(this.account.accountId)},filteredMailboxes(){return this.pickedMailbox?this.mailboxes.filter((t=>t.databaseId!==this.pickedMailbox.databaseId&&(0,g.w)(t,"k"))):this.mailboxes.filter((t=>(0,g.w)(t,"i")))}},methods:{getMailboxIcon:t=>t.specialRole?"icon-"+t.specialRole:"icon-folder",getMailboxTitle:t=>(0,A.T)(t),onClickHome(){this.selectedMailboxId=void 0,this.$emit("update:selected",void 0),this.mailboxCrumbs=[]},onClickCrumb(t){this.selectedMailboxId=this.mailboxCrumbs[t].databaseId,this.$emit("update:selected",this.selectedMailboxId),this.mailboxCrumbs=this.mailboxCrumbs.slice(0,t+1)},onClickMailbox(t){this.selectedMailboxId=t.databaseId,this.$emit("update:selected",this.selectedMailboxId),this.mailboxCrumbs.push(t)},onSelect(){this.$emit("select",this.selectedMailboxId)},onClose(){this.$emit("close")}}};var b=n(85072),x=n.n(b),f=n(97825),v=n.n(f),C=n(77659),y=n.n(C),M=n(55056),w=n.n(M),k=n(10540),I=n.n(k),S=n(41113),D=n.n(S),N=n(2369),_={};_.styleTagTransform=D(),_.setAttributes=w(),_.insert=y().bind(null,"head"),_.domAPI=v(),_.insertStyleElement=I(),x()(N.A,_),N.A&&N.A.locals&&N.A.locals;var L=(0,n(14486).A)(h,(function(){var t=this,e=t._self._c;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 folder"))+"\n\t\t")]),t._v(" "),e("span",{staticClass:"crumbs"},[e("div",{on:{click:function(e){return e.preventDefault(),t.onClickHome.apply(null,arguments)}}},[e("IconInbox",{attrs:{size:20}})],1),t._v(" "),t._l(t.mailboxCrumbs,(function(n,i){return e("div",{key:n.databaseId,staticClass:"level"},[e("IconBreadcrumb",{attrs:{size:20}}),t._v(" "),e("a",{on:{click:function(e){return e.preventDefault(),t.onClickCrumb(i)}}},[t._v("\n\t\t\t\t\t"+t._s(t.getMailboxTitle(n))+"\n\t\t\t\t")])],1)}))],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)}}},["inbox"===n.specialRole?e("IconInbox",{attrs:{size:20}}):"drafts"===n.specialRole?e("IconDraft",{attrs:{size:20}}):"sent"===n.specialRole?e("IconSent",{attrs:{size:20}}):"archive"===n.specialRole?e("IconArchive",{attrs:{size:20}}):"trash"===n.specialRole?e("IconTrash",{attrs:{size:20}}):e("IconFolder",{attrs:{size:20}}),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")])],1)})),0):e("IconFolder",{attrs:{size:65}}),t._v(" "),e("div",{staticClass:"empty-icon empty"}),t._v(" "),e("h2",[t._v(t._s(t.t("mail","No more submailboxes in here")))])],1),t._v(" "),e("div",{staticClass:"buttons"},[e("ButtonVue",{attrs:{type:"primary",disabled:t.loading||!t.allowRoot&&!t.selectedMailboxId,"aria-label":t.loading?t.labelSelectLoading:t.labelSelect},on:{click:t.onSelect},scopedSlots:t._u([{key:"icon",fn:function(){return[t.loading?e("IconLoading",{attrs:{size:20}}):t._e()]},proxy:!0}])},[t._v("\n\t\t\t\t"+t._s(t.loading?t.labelSelectLoading:t.labelSelect)+"\n\t\t\t")])],1)])])}),[],!1,null,"23f86109",null);const E=L.exports},26961(e,n,i){"use strict";i.d(n,{A:()=>Le});var o=i(78034),a=i(51849),r=i(72522),s=i(86883),l=i(85168),c=i(63814),d=i(27380),u=i(6766),m=i(90629),A=i(56702),p=i(44428),g=i(47305),h=i(92316),b=i(28760),x=i(30867),f=i(49954),v=i(67123),C=i.n(v),y=i(81131),M=i.n(y),w=i(27742),k=i.n(w),I=i(10854),S=i.n(I),D=i(5652),N=i(76476),_=i(85745),L=i(41527);const E=S()(k()("address")),T={name:"InternalAddress",components:{ButtonVue:o.x1,NcDialog:o.i$,NcTextField:o.v,NcActionButton:o.Ko,NcListItem:o.l,IconDomain:h.A,IconEmail:D.A,IconDelete:N.A,IconAdd:f.A},data(){return{openDialog:!1,newAddress:"",buttons:[{label:"Cancel",icon:C(),callback:()=>{this.openDialog=!1}},{label:"Ok",type:"primary",icon:M(),callback:()=>{this.addInternalAddress()}}]}},computed:{...(0,a.n2)(L.A),list(){return this.mainStore.getInternalAddresses},sortedDomains(){return E(this.list.filter((t=>"domain"===t.type)))},sortedEmails(){return E(this.list.filter((t=>"individual"===t.type)))}},methods:{async removeInternalAddress(e){try{await this.mainStore.removeInternalAddress({id:e.id,address:e.address,type:e.type})}catch(n){_.A.error(`Could not remove internal address ${e.email}`,{error:n}),(0,l.Qg)(t("mail","Could not remove internal address {sender}",{sender:e.address}))}},async addInternalAddress(){const e=this.checkType();try{await this.mainStore.addInternalAddress({address:this.newAddress,type:e}).then((async()=>{this.newAddress="",this.openDialog=!1}))}catch(e){_.A.error(`Could not add internal address ${this.newAddress}`,{error:e}),(0,l.Qg)(t("mail","Could not add internal address {address}",{address:this.newAddress}))}},checkType(){const t=this.newAddress.split("@");return 2!==t.length?"domain":0===t[0].length?(this.newAddress=t[1],"domain"):"individual"},senderType(e){switch(e){case"individual":return t("mail","individual");case"domain":return t("mail","domain")}return e}}};var j=i(14486);const z=(0,j.A)(T,(function(){var t=this,e=t._self._c;return e("div",[t._l(t.sortedDomains,(function(n){return e("NcListItem",{key:n.address,scopedSlots:t._u([{key:"name",fn:function(){return[t._v("\n\t\t\t"+t._s(n.address)+"\n\t\t")]},proxy:!0},{key:"icon",fn:function(){return["domain"===n.type?e("IconDomain",{attrs:{size:20,title:t.senderType(n.type)}}):t._e(),t._v(" "),"individual"===n.type?e("IconEmail",{attrs:{size:20,title:t.senderType(n.type)}}):t._e()]},proxy:!0},{key:"extra-actions",fn:function(){return[e("NcActionButton",{attrs:{title:t.t("mail","Remove"),"aria-label":t.t("mail","Remove")},on:{click:function(e){return t.removeInternalAddress(n)}},scopedSlots:t._u([{key:"icon",fn:function(){return[e("IconDelete",{attrs:{size:20}})]},proxy:!0}],null,!0)})]},proxy:!0}],null,!0)})})),t._v(" "),t._l(t.sortedEmails,(function(n){return e("NcListItem",{key:n.address,scopedSlots:t._u([{key:"name",fn:function(){return[t._v("\n\t\t\t"+t._s(n.address)+"\n\t\t")]},proxy:!0},{key:"icon",fn:function(){return["domain"===n.type?e("IconDomain",{attrs:{size:20,title:t.senderType(n.type)}}):t._e(),t._v(" "),"individual"===n.type?e("IconEmail",{attrs:{size:20,title:t.senderType(n.type)}}):t._e()]},proxy:!0},{key:"extra-actions",fn:function(){return[e("NcActionButton",{attrs:{title:t.t("mail","Remove"),"aria-label":t.t("mail","Remove")},on:{click:function(e){return t.removeInternalAddress(n)}},scopedSlots:t._u([{key:"icon",fn:function(){return[e("IconDelete",{attrs:{size:20}})]},proxy:!0}],null,!0)})]},proxy:!0}],null,!0)})})),t._v(" "),e("ButtonVue",{attrs:{type:"secondary",wide:""},on:{click:function(e){t.openDialog=!0}},scopedSlots:t._u([{key:"icon",fn:function(){return[e("IconAdd",{attrs:{size:20}})]},proxy:!0}])},[t._v("\n\t\t"+t._s(t.t("mail","Add internal address"))+"\n\t")]),t._v(" "),e("NcDialog",{attrs:{open:t.openDialog,buttons:t.buttons,name:t.t("mail","Add internal address")},on:{"update:open":function(e){t.openDialog=e},close:function(e){t.openDialog=!1}}},[e("NcTextField",{staticClass:"input",attrs:{label:t.t("mail","Add internal email or domain")},model:{value:t.newAddress,callback:function(e){t.newAddress=e},expression:"newAddress"}})],1)],2)}),[],!1,null,null,null).exports;var B=i(51651),O=i(39547),P=i.n(O);class U extends Error{constructor(){super(),this.name=U.name}}const Q="pkcs12",R={name:"SmimeCertificateModal",components:{NcModal:o.FH,NcButton:o.x1,NcPasswordField:o.b9,NcEmptyContent:o.yI,DeleteIcon:N.A},data:()=>({TYPE_PKCS12:Q,TYPE_PEM:"pem",moment:B.A,showImportScreen:!1,loading:!1,certificateType:Q,certificate:void 0,privateKey:void 0,password:""}),computed:{...(0,a.n2)(L.A),...(0,a.aH)(L.A,{certificates:"getSmimeCertificates"}),inputFormIsValid(){return!!this.certificate}},async mounted(){await this.mainStore.fetchSmimeCertificates()},methods:{async deleteCertificate(t){await this.mainStore.deleteSmimeCertificate(t)},async uploadCertificate(){let e,n=this.$refs.certificate.files[0];if(this.certificateType===Q)try{const t=function(t,e){const n=new(P().util.ByteBuffer)(t),i=P().asn1.fromDer(n),o=P().pkcs12.pkcs12FromAsn1(i,e),a=t=>o.getBags({bagType:t})[t],r=a(P().pki.oids.certBag),s=a(P().pki.oids.pkcs8ShroudedKeyBag);if(0===r.length)throw new U("The PKCS #12 certificate must contain at least one certificate");if(1!==s.length)throw new U("The PKCS #12 certificate must contain a single key");return{certificate:r.map((t=>P().pki.certificateToPem(t.cert))).join("\r\n"),privateKey:P().pki.privateKeyToPem(s[0].key)}}(await n.arrayBuffer(),this.password);n=new Blob([t.certificate]),e=new Blob([t.privateKey])}catch(e){return void(e.name===U.name?(_.A.error("PKCS #12 certificate contains multiple certs or keys",{error:e}),(0,l.Qg)(t("mail","The provided PKCS #12 certificate must contain at least one certificate and exactly one private key."))):(_.A.debug("Is probably not a PKCS #12 certificate or the password is wrong",{error:e}),(0,l.Qg)(t("mail","Failed to import the certificate. Please check the password."))))}else{if("pem"!==this.certificateType)return;e=this.$refs.privateKey.files[0]}this.loading=!0;try{await this.mainStore.createSmimeCertificate({certificate:n,privateKey:e}),(0,l.Te)(t("mail","Certificate imported successfully")),this.resetImportForm()}catch(n){_.A.error(`Failed to import a S/MIME certificate: ${n.response?.data?.data}`,{error:n}),e?(0,l.Qg)(t("mail","Failed to import the certificate. Please make sure that the private key matches the certificate and is not protected by a passphrase.")):(0,l.Qg)(t("mail","Failed to import the certificate"))}finally{this.loading=!1}},resetImportForm(){this.certificateType=Q,this.showImportScreen=!1,this.certificate=void 0,this.privateKey=void 0,this.password=""}}};var F=i(85072),Y=i.n(F),G=i(97825),V=i.n(G),H=i(77659),Z=i.n(H),W=i(55056),q=i.n(W),$=i(10540),J=i.n($),K=i(41113),X=i.n(K),tt=i(97451),et={};et.styleTagTransform=X(),et.setAttributes=q(),et.insert=Z().bind(null,"head"),et.domAPI=V(),et.insertStyleElement=J(),Y()(tt.A,et),tt.A&&tt.A.locals&&tt.A.locals;var nt=(0,j.A)(R,(function(){var t=this,e=t._self._c;return e("NcModal",{attrs:{name:t.showImportScreen?t.t("mail","Import S/MIME certificate"):t.t("mail","S/MIME certificates")},on:{close:function(e){return t.$emit("close")}}},[e("div",{staticClass:"certificate-modal"},[t.showImportScreen?e("form",{staticClass:"certificate-modal__import",on:{submit:function(e){return e.preventDefault(),t.uploadCertificate.apply(null,arguments)}}},[e("h2",[t._v(t._s(t.t("mail","Import S/MIME certificate")))]),t._v(" "),e("fieldset",{staticClass:"certificate-modal__import__type"},[e("div",[e("input",{directives:[{name:"model",rawName:"v-model",value:t.certificateType,expression:"certificateType"}],attrs:{id:"certificate-type-pkcs12",name:"certificate-type",type:"radio"},domProps:{value:t.TYPE_PKCS12,checked:t._q(t.certificateType,t.TYPE_PKCS12)},on:{change:function(e){t.certificateType=t.TYPE_PKCS12}}}),t._v(" "),e("label",{attrs:{for:"certificate-type-pkcs12"}},[t._v("\n\t\t\t\t\t\t"+t._s(t.t("mail","PKCS #12 Certificate"))+"\n\t\t\t\t\t")])]),t._v(" "),e("div",[e("input",{directives:[{name:"model",rawName:"v-model",value:t.certificateType,expression:"certificateType"}],attrs:{id:"certificate-type-pem",name:"certificate-type",type:"radio"},domProps:{value:t.TYPE_PEM,checked:t._q(t.certificateType,t.TYPE_PEM)},on:{change:function(e){t.certificateType=t.TYPE_PEM}}}),t._v(" "),e("label",{attrs:{for:"certificate-type-pem"}},[t._v("\n\t\t\t\t\t\t"+t._s(t.t("mail","PEM Certificate"))+"\n\t\t\t\t\t")])])]),t._v(" "),e("fieldset",[e("label",{attrs:{for:"certificate"}},[t._v(t._s(t.t("mail","Certificate")))]),t._v(" "),e("input",{ref:"certificate",attrs:{id:"certificate",type:"file",accept:".p12,.crt,.pem",required:""},on:{change:function(e){t.certificate=e.target.files[0]}}})]),t._v(" "),t.certificateType===t.TYPE_PEM?e("fieldset",[e("label",{attrs:{for:"private-key"}},[t._v(t._s(t.t("mail","Private key (optional)")))]),t._v(" "),e("input",{ref:"privateKey",attrs:{id:"private-key",type:"file",accept:".key,.pem"},on:{change:function(e){t.privateKey=e.target.files[0]}}})]):t._e(),t._v(" "),t.certificateType===t.TYPE_PKCS12?e("fieldset",[e("label",{attrs:{for:"password"}},[t._v(t._s(t.t("mail","Password")))]),t._v(" "),e("NcPasswordField",{attrs:{label:t.t("mail","Password")},model:{value:t.password,callback:function(e){t.password=e},expression:"password"}})],1):t._e(),t._v(" "),e("div",{staticClass:"certificate-modal__import__hints"},[t.certificateType===t.TYPE_PEM?e("p",[t._v("\n\t\t\t\t\t"+t._s(t.t("mail","The private key is only required if you intend to send signed and encrypted emails using this certificate."))+"\n\t\t\t\t")]):t._e()]),t._v(" "),e("div",{staticClass:"certificate-modal__import__actions"},[e("NcButton",{attrs:{variant:"tertiary-no-background","aria-label":t.t("mail","Back")},on:{click:t.resetImportForm}},[t._v("\n\t\t\t\t\t"+t._s(t.t("mail","Back"))+"\n\t\t\t\t")]),t._v(" "),e("NcButton",{attrs:{variant:"primary","aria-label":t.t("mail","Submit"),type:"submit",disabled:t.loading||!t.inputFormIsValid}},[t._v("\n\t\t\t\t\t"+t._s(t.t("mail","Submit"))+"\n\t\t\t\t")])],1)]):e("div",{staticClass:"certificate-modal__list"},[e("h2",[t._v(t._s(t.t("mail","S/MIME certificates")))]),t._v(" "),e("table",{staticClass:"certificate-modal__list__table"},[e("thead",[e("tr",[e("th",[t._v(t._s(t.t("mail","Certificate name")))]),t._v(" "),e("th",[t._v(t._s(t.t("mail","E-mail address")))]),t._v(" "),e("th",[t._v(t._s(t.t("mail","Valid until")))]),t._v(" "),e("th")])]),t._v(" "),e("tbody",t._l(t.certificates,(function(n){return e("tr",{key:n.id},[e("td",{attrs:{title:n.info.commonName}},[t._v("\n\t\t\t\t\t\t\t"+t._s(n.info.commonName)+"\n\t\t\t\t\t\t")]),t._v(" "),e("td",{attrs:{title:n.info.emailAddress}},[t._v("\n\t\t\t\t\t\t\t"+t._s(n.info.emailAddress)+"\n\t\t\t\t\t\t")]),t._v(" "),e("td",{attrs:{title:t.moment.unix(n.info.notAfter).format("LL")}},[t._v("\n\t\t\t\t\t\t\t"+t._s(t.moment.unix(n.info.notAfter).format("LL"))+"\n\t\t\t\t\t\t")]),t._v(" "),e("td",[e("NcButton",{attrs:{variant:"tertiary-no-background","aria-label":t.t("mail","Delete certificate")},on:{click:function(e){return t.deleteCertificate(n.id)}},scopedSlots:t._u([{key:"icon",fn:function(){return[e("DeleteIcon",{attrs:{title:t.t("mail","Delete certificate"),size:20}})]},proxy:!0}],null,!0)})],1)])})),0)]),t._v(" "),0===t.certificates.length?e("NcEmptyContent",{staticClass:"certificate__empty",attrs:{name:t.t("mail","No certificate imported yet")}}):t._e(),t._v(" "),e("div",{staticClass:"certificate-modal__list__actions"},[e("NcButton",{attrs:{variant:"primary","aria-label":t.t("mail","Import certificate")},on:{click:function(e){t.showImportScreen=!0}}},[t._v("\n\t\t\t\t\t"+t._s(t.t("mail","Import certificate"))+"\n\t\t\t\t")])],1)],1)])])}),[],!1,null,"482b81be",null);const it=nt.exports,ot={name:"List",components:{ListItem:i(40610).A},props:{shared:{type:Boolean,default:!1},textBlocks:{type:Array,required:!0}},methods:{}};var at=i(80330),rt={};rt.styleTagTransform=X(),rt.setAttributes=q(),rt.insert=Z().bind(null,"head"),rt.domAPI=V(),rt.insertStyleElement=J(),Y()(at.A,rt),at.A&&at.A.locals&&at.A.locals;const st=(0,j.A)(ot,(function(){var t=this,e=t._self._c;return e("div",[t._l(t.textBlocks,(function(n){return e("ListItem",{key:n.id,staticClass:"text-block__list-item",attrs:{"text-block":n,shared:t.shared}})})),t._v(" "),t.textBlocks.length?t._e():e("span",[t._v(" "+t._s(t.t("mail","No text blocks available"))+" ")])],2)}),[],!1,null,"0bf54fc2",null).exports;var lt=i(33777),ct=i(37528);const dt=S()(k()("email")),ut={name:"TrustedSenders",components:{NcActionButton:o.Ko,NcListItem:o.l,IconDelete:N.A,IconDomain:h.A,IconEmail:D.A},data:()=>({list:[]}),computed:{sortedSenders(){return dt(this.list)}},async mounted(){this.list=await(0,ct.E)()},methods:{async removeSender(e){this.list=this.list.filter((t=>t.id!==e.id));try{await(0,ct.I)(e.email,e.type,!1)}catch(n){_.A.error(`Could not remove trusted sender ${e.email}`,{error:n}),(0,l.Qg)(t("mail","Could not remove trusted sender {sender}",{sender:e.email})),this.list.push(e)}},senderType(e){switch(e){case"individual":return t("mail","individual");case"domain":return t("mail","domain")}return e}}},mt={name:"AppSettingsMenu",components:{TrustedSenders:(0,j.A)(ut,(function(){var t=this,e=t._self._c;return e("div",[t._l(t.sortedSenders,(function(n){return e("NcListItem",{key:n.email,scopedSlots:t._u([{key:"name",fn:function(){return[t._v("\n\t\t\t"+t._s(n.email)+"\n\t\t")]},proxy:!0},{key:"icon",fn:function(){return["domain"===n.type?e("IconDomain",{attrs:{size:20,title:t.senderType(n.type)}}):t._e(),t._v(" "),"individual"===n.type?e("IconEmail",{attrs:{size:20,title:t.senderType(n.type)}}):t._e()]},proxy:!0},{key:"extra-actions",fn:function(){return[e("NcActionButton",{attrs:{title:t.t("mail","Remove"),"aria-label":t.t("mail","Remove")},on:{click:function(e){return t.removeSender(n)}},scopedSlots:t._u([{key:"icon",fn:function(){return[e("IconDelete",{attrs:{size:20}})]},proxy:!0}],null,!0)})]},proxy:!0}],null,!0)})})),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,null,null).exports,InternalAddress:z,NcButton:o.x1,IconAdd:f.A,IconMedal:x.A,IconClose:A.A,IconCheck:m.A,SmimeCertificateModal:it,NcAppSettingsDialog:o.q4,NcAppSettingsSection:o.Te,NcAppSettingsShortcutsSection:o.mz,NcRadioGroup:o.RM,NcRadioGroupButton:o.O8,CompactMode:b.A,VerticalSplit:g.A,HorizontalSplit:p.A,List:st,NcDialog:o.i$,NcInputField:o.Es,TextEditor:lt.A,NcFormBox:o.jB,NcFormBoxButton:o.f7,NcFormBoxSwitch:o.PX,NcFormGroup:o.Nt,IconDomain:h.A,NcNoteCard:o.mQ,NcHotkeyList:o.aG,NcHotkey:o.Iz,IconArrow:u.A},provide(){return{addToFocusTrap:t=>this.trapElements.push(t)}},props:{open:{required:!0,type:Boolean}},data:()=>({loadingAvatarSettings:!1,prioritySettingsText:t("mail","Search the body of messages in priority Inbox"),loadingPrioritySettings:!1,optOutSettingsText:t("mail","Activate"),loadingOptOutSettings:!1,loadingInternalAddresses:!1,loadingReplySettings:!1,contextChatText:t("mail","Make mails available to Context Chat"),followUpReminderText:t("mail","Remind about messages that require a reply but received none"),internalAddressText:t("mail","Highlight external addresses"),toggleAutoTagging:!1,loadingContextChat:!1,loadingFollowUpReminders:!1,loadingSortFavorites:!1,displaySmimeCertificateModal:!1,sortOrder:"newest",showSettings:!1,showAccountSettings:!1,showMailSettings:!0,selectedAccount:null,mailvelopeIsAvailable:!1,trapElements:[],bus:(0,d.A)(),textBlockDialogOpen:!1,localTextBlock:{title:"",content:""}}),computed:{...(0,a.n2)(L.A),...(0,a.aH)(L.A,["getAccounts","followUpFeatureAvailable","contextChatFeatureAvailable","getMyTextBlocks","getSharedTextBlocks"]),useBottomReplies(){return"bottom"===this.mainStore.getPreference("reply-mode","top")},allowNewMailAccounts(){return this.mainStore.getPreference("allow-new-accounts",!0)},mailVersion(){return this.mainStore.getPreference("mailVersion","0.0.0")},accountsWithEmail(){return this.getAccounts.filter((t=>t&&t.emailAddress&&!t.isDelegated))},delegatedAccounts(){return this.getAccounts.filter((t=>t&&t.emailAddress&&t.isDelegated))},sortFavorites:{get(){return"true"===this.mainStore.getPreference("sort-favorites","false")},set(t){this.onToggleSortFavorites(t)}},searchPriorityBody:{get(){return"true"===this.mainStore.getPreference("search-priority-body","false")},set(t){this.onToggleSearchPriorityBody(t)}},useExternalAvatars:{get(){return"true"===this.mainStore.getPreference("external-avatars","true")},set(t){this.onToggleExternalAvatars(t)}},useDataCollection:{get(){return"true"===this.mainStore.getPreference("collect-data","true")},set(t){this.onToggleCollectData(t)}},useContextChat:{get(){return"true"===this.mainStore.getPreference("index-context-chat","true")},set(t){this.onToggleContextChat(t)}},useInternalAddresses:{get(){return"true"===this.mainStore.getPreference("internal-addresses","false")},set(t){this.onToggleInternalAddress(t)}},useFollowUpReminders:{get(){return"true"===this.mainStore.getPreference("follow-up-reminders","true")},set(t){this.onToggleFollowUpReminders(t)}},layoutMode:{get(){return this.mainStore.getPreference("layout-mode","vertical-split")},set(t){this.setLayout(t)}},compactMode:{get(){return"true"===this.mainStore.getPreference("compact-mode","false")},set(t){this.setCompactMode(t)}},layoutMessageView:{get(){return"threaded"===this.mainStore.getPreference("layout-message-view")},set(t){t?this.setLayoutMessageView("threaded"):this.setLayoutMessageView("singleton")}}},watch:{showSettings(t){t||this.$emit("update:open",t)},async open(t){t&&await this.onOpen()}},mounted(){this.sortOrder=this.mainStore.getPreference("sort-order","newest"),document.addEventListener.call(window,"mailvelope",(()=>this.checkMailvelope())),this.mainStore.areTextBlocksFetched()||(this.mainStore.fetchMyTextBlocks(),this.mainStore.fetchSharedTextBlocks())},updated(){this.checkMailvelope()},methods:{openAccountSettings(t){this.mainStore.showSettingsForAccountMutation(t),this.showSettings=!1},checkMailvelope(){this.mailvelopeIsAvailable=!!window.mailvelope},async setLayout(t){try{await this.mainStore.savePreference({key:"layout-mode",value:t})}catch(t){_.A.error("Could not save preferences",{error:t})}},async setCompactMode(t){try{await this.mainStore.savePreference({key:"compact-mode",value:t?"true":"false"})}catch(t){_.A.error("Could not save preferences",{error:t})}},async setLayoutMessageView(t){try{await this.mainStore.savePreference({key:"layout-message-view",value:t})}catch(t){_.A.error("Could not save preferences",{error:t})}},async onOpen(){this.showSettings=!0},onToggleButtonReplies(t){this.loadingReplySettings=!0,this.mainStore.savePreference({key:"reply-mode",value:t?"bottom":"top"}).catch((t=>_.A.error("could not save preferences",{error:t}))).then((()=>{this.loadingReplySettings=!1}))},onToggleExternalAvatars(t){this.loadingAvatarSettings=!0,this.mainStore.savePreference({key:"external-avatars",value:t?"true":"false"}).catch((t=>_.A.error("could not save preferences",{error:t}))).then((()=>{this.loadingAvatarSettings=!1}))},async onToggleSearchPriorityBody(t){this.loadingPrioritySettings=!0;try{await this.mainStore.savePreference({key:"search-priority-body",value:t?"true":"false"})}catch(t){_.A.error("could not save preferences",{error:t})}finally{this.loadingPrioritySettings=!1}},async onToggleSortFavorites(t){this.loadingSortFavorites=!0;try{await this.mainStore.savePreference({key:"sort-favorites",value:t?"true":"false"})}catch(t){_.A.error("could not save preferences",{error:t})}finally{this.loadingSortFavorites=!1}},onToggleCollectData(t){this.loadingOptOutSettings=!0,this.mainStore.savePreference({key:"collect-data",value:t?"true":"false"}).catch((t=>_.A.error("could not save preferences",{error:t}))).then((()=>{this.loadingOptOutSettings=!1}))},async onSortByDate(e){const n=this.sortOrder;try{this.sortOrder=e,await this.mainStore.savePreference({key:"sort-order",value:e}),this.mainStore.removeAllEnvelopesMutation()}catch(e){_.A.error("could not save preferences",{error:e}),this.sortOrder=n,(0,l.Qg)(t("mail","Could not update preference"))}},async onToggleFollowUpReminders(e){this.loadingFollowUpReminders=!0;try{await this.mainStore.savePreference({key:"follow-up-reminders",value:e?"true":"false"})}catch(e){_.A.error("Could not save preferences",{error:e}),(0,l.Qg)(t("mail","Could not update preference"))}finally{this.loadingFollowUpReminders=!1}},async onToggleContextChat(e){this.loadingContextChat=!0;try{await this.mainStore.savePreference({key:"index-context-chat",value:e?"true":"false"})}catch(e){_.A.error("Could not save preferences",{error:e}),(0,l.Qg)(t("mail","Could not update preference"))}finally{this.loadingContextChat=!1}},async onToggleInternalAddress(e){this.loadingInternalAddresses=!0;try{await this.mainStore.savePreference({key:"internal-addresses",value:e?"true":"false"})}catch(e){_.A.error("Could not save preferences",{error:e}),(0,l.Qg)(t("mail","Could not update preference"))}finally{this.loadingInternalAddresses=!1}},registerProtocolHandler(){if(window.navigator.registerProtocolHandler){const t=window.location.protocol+"//"+window.location.host+(0,c.Jv)("apps/mail/compose?uri=%s");try{window.navigator.registerProtocolHandler("mailto",t,OC.theme.name+" Mail")}catch(t){_.A.error("could not register protocol handler",{err:t})}}},mailvelopeAuthorizeDomain(){const t=document.createElement("iframe");t.style="display: none",t.src="https://api.mailvelope.com/authorize-domain/?api=true",document.body.append(t)},newTextBlock(){this.mainStore.createTextBlock({...this.localTextBlock}),this.textBlockDialogOpen=!1,this.localTextBlock={title:"",content:""}},closeTextBlockDialog(){this.textBlockDialogOpen=!1,this.localTextBlock={title:"",content:""}}}},At=(0,j.A)(mt,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"app-settings"},[e("NcAppSettingsDialog",{attrs:{id:"app-settings-dialog",name:t.t("mail","Mail settings"),"show-navigation":!0,"additional-trap-elements":t.trapElements,legacy:!1,open:t.showSettings},on:{"update:open":function(e){t.showSettings=e}}},[e("NcAppSettingsSection",{attrs:{id:"general",name:t.t("mail","General")}},[e("NcButton",{attrs:{variant:"secondary","aria-label":t.t("mail","Set as default mail app"),wide:""},on:{click:t.registerProtocolHandler}},[t._v("\n\t\t\t\t"+t._s(t.t("mail","Set as default mail app"))+"\n\t\t\t")]),t._v(" "),e("NcFormGroup",{attrs:{label:t.t("mail","Account settings")}},[e("NcFormBox",[t._l(t.accountsWithEmail,(function(n){return e("NcFormBoxButton",{key:n.id,attrs:{"aria-label":t.t("mail","Account settings")},on:{click:function(e){return t.openAccountSettings(n.id)}},scopedSlots:t._u([{key:"icon",fn:function(){return[e("IconArrow",{attrs:{size:20}})]},proxy:!0}],null,!0)},[t._v("\n\t\t\t\t\t\t"+t._s(n.emailAddress)+"\n\t\t\t\t\t")])})),t._v(" "),t._l(t.delegatedAccounts,(function(n){return e("NcFormBoxButton",{key:n.id,attrs:{"aria-label":t.t("mail","Account settings")},on:{click:function(e){return t.openAccountSettings(n.id)}},scopedSlots:t._u([{key:"icon",fn:function(){return[e("IconArrow",{attrs:{size:20}})]},proxy:!0}],null,!0)},[t._v("\n\t\t\t\t\t\t"+t._s(t.t("mail","{email} (delegated)",{email:n.emailAddress}))+"\n\t\t\t\t\t")])})),t._v(" "),t.allowNewMailAccounts?e("NcButton",{attrs:{variant:"secondary",to:"/setup","aria-label":t.t("mail","Add mail account"),wide:""},scopedSlots:t._u([{key:"icon",fn:function(){return[e("IconAdd",{attrs:{size:20}})]},proxy:!0}],null,!1,2388353250)},[t._v("\n\t\t\t\t\t\t"+t._s(t.t("mail","Add mail account"))+"\n\t\t\t\t\t")]):t._e()],2)],1)],1),t._v(" "),e("NcAppSettingsSection",{attrs:{id:"appearance",name:t.t("mail","Appearance")}},[e("NcFormBox",[e("NcFormBoxSwitch",{attrs:{label:t.t("mail","Show all messages in thread"),description:t.t("mail","When off, only the selected message will be shown")},model:{value:t.layoutMessageView,callback:function(e){t.layoutMessageView=e},expression:"layoutMessageView"}})],1),t._v(" "),e("NcFormBox",[e("NcFormBoxSwitch",{attrs:{label:t.t("mail","Sort favorites up"),disabled:t.loadingSortFavorites,description:t.t("mail","When on, favorite messages will be sorted to the top of folders")},model:{value:t.sortFavorites,callback:function(e){t.sortFavorites=e},expression:"sortFavorites"}})],1),t._v(" "),e("NcRadioGroup",{attrs:{label:t.t("mail","Layout")},model:{value:t.layoutMode,callback:function(e){t.layoutMode=e},expression:"layoutMode"}},[e("NcRadioGroupButton",{attrs:{label:t.t("mail","Vertical split"),value:"vertical-split"},scopedSlots:t._u([{key:"icon",fn:function(){return[e("VerticalSplit",{attrs:{size:20}})]},proxy:!0}])}),t._v(" "),e("NcRadioGroupButton",{attrs:{label:t.t("mail","Horizontal split"),value:"horizontal-split"},scopedSlots:t._u([{key:"icon",fn:function(){return[e("HorizontalSplit",{attrs:{size:20}})]},proxy:!0}])}),t._v(" "),e("NcRadioGroupButton",{attrs:{label:t.t("mail","List"),value:"no-split"},scopedSlots:t._u([{key:"icon",fn:function(){return[e("CompactMode",{attrs:{size:20}})]},proxy:!0}])})],1),t._v(" "),e("NcFormBox",[e("NcFormBoxSwitch",{attrs:{label:t.t("mail","Use compact mode")},model:{value:t.compactMode,callback:function(e){t.compactMode=e},expression:"compactMode"}})],1),t._v(" "),e("NcRadioGroup",{attrs:{"model-value":t.sortOrder,label:t.t("mail","Sorting")},on:{"update:modelValue":t.onSortByDate}},[e("NcRadioGroupButton",{attrs:{label:t.t("mail","Newest first"),value:"newest"}}),t._v(" "),e("NcRadioGroupButton",{attrs:{label:t.t("mail","Oldest first"),value:"oldest"}})],1),t._v(" "),e("NcAppSettingsSection",{attrs:{id:"messages",name:"Messages"}},[e("NcFormBox",[e("NcFormBoxSwitch",{attrs:{disabled:t.loadingAvatarSettings},model:{value:t.useExternalAvatars,callback:function(e){t.useExternalAvatars=e},expression:"useExternalAvatars"}},[t._v("\n\t\t\t\t\t\t"+t._s(t.t("mail","Avatars from Gravatar and favicons"))+"\n\t\t\t\t\t")]),t._v(" "),e("NcFormBoxSwitch",{attrs:{disabled:t.loadingPrioritySettings},model:{value:t.searchPriorityBody,callback:function(e){t.searchPriorityBody=e},expression:"searchPriorityBody"}},[t._v("\n\t\t\t\t\t\t"+t._s(t.prioritySettingsText)+"\n\t\t\t\t\t")])],1),t._v(" "),e("NcRadioGroup",{attrs:{"model-value":t.useBottomReplies,label:t.t("mail","Reply position")},on:{"update:modelValue":t.onToggleButtonReplies}},[e("NcRadioGroupButton",{attrs:{label:t.t("mail","Top"),value:!1}}),t._v(" "),e("NcRadioGroupButton",{attrs:{label:t.t("mail","Bottom"),value:!0}})],1),t._v(" "),e("NcFormGroup",{attrs:{label:t.t("mail","Text blocks"),description:t.t("mail","Reusable pieces of text that can be inserted in messages")}},[e("List",{attrs:{"text-blocks":t.getMyTextBlocks()}}),t._v(" "),e("NcButton",{attrs:{variant:"secondary",wide:""},on:{click:()=>t.textBlockDialogOpen=!0},scopedSlots:t._u([{key:"icon",fn:function(){return[e("IconAdd",{attrs:{size:20}})]},proxy:!0}])},[t._v("\n\t\t\t\t\t\t"+t._s(t.t("mail","New text block"))+"\n\t\t\t\t\t")]),t._v(" "),t.getSharedTextBlocks().length>0?[e("h6",[t._v(t._s(t.t("mail","Shared with me")))]),t._v(" "),e("List",{attrs:{"text-blocks":t.getSharedTextBlocks(),shared:!0}})]:t._e()],2)],1),t._v(" "),e("NcAppSettingsSection",{attrs:{id:"privacy",name:t.t("mail","Privacy")}},[e("NcFormBoxSwitch",{attrs:{label:t.t("mail","Data collection"),description:t.t("mail","Allow the app to collect and process data locally to adapt to your preferences")},model:{value:t.useDataCollection,callback:function(e){t.useDataCollection=e},expression:"useDataCollection"}}),t._v(" "),e("NcFormGroup",{attrs:{label:t.t("mail","Always show images from")}},[e("TrustedSenders")],1)],1),t._v(" "),e("NcAppSettingsSection",{attrs:{id:"security",name:t.t("mail","Security")}},[e("NcFormBoxSwitch",{attrs:{disabled:t.loadingInternalAddresses,label:t.internalAddressText,description:t.t("mail","Manage your internal addresses and domains to ensure recognized contacts stay unmarked")},model:{value:t.useInternalAddresses,callback:function(e){t.useInternalAddresses=e},expression:"useInternalAddresses"}}),t._v(" "),e("InternalAddress"),t._v(" "),e("NcFormGroup",{attrs:{label:t.t("mail","S/MIME")}},[e("NcButton",{staticClass:"app-settings-button",attrs:{variant:"secondary","aria-label":t.t("mail","Manage certificates"),wide:""},on:{click:function(e){e.preventDefault(),e.stopPropagation(),t.displaySmimeCertificateModal=!0}},scopedSlots:t._u([{key:"icon",fn:function(){return[e("IconMedal",{attrs:{size:20}})]},proxy:!0}])},[t._v("\n\t\t\t\t\t\t"+t._s(t.t("mail","Manage certificates"))+"\n\t\t\t\t\t")]),t._v(" "),t.displaySmimeCertificateModal?e("SmimeCertificateModal",{on:{close:function(e){t.displaySmimeCertificateModal=!1}}}):t._e()],1),t._v(" "),e("NcFormGroup",{attrs:{label:t.t("mail","Mailvelope")}},[t.mailvelopeIsAvailable?e("NcNoteCard",{attrs:{type:"success"}},[t._v("\n\t\t\t\t\t\t"+t._s(t.t("mail","Mailvelope is enabled for the current domain."))+"\n\t\t\t\t\t")]):e("NcFormBox",[e("NcFormBoxButton",{attrs:{href:"https://www.mailvelope.com/",target:"_blank",label:t.t("mail","Step 1"),description:t.t("mail","Install the browser extension"),"inverted-accent":""}}),t._v(" "),e("NcFormBoxButton",{attrs:{label:t.t("mail","Step 2"),description:t.t("mail","Enable for the current domain"),"inverted-accent":""},on:{click:t.mailvelopeAuthorizeDomain},scopedSlots:t._u([{key:"icon",fn:function(){return[e("IconDomain",{attrs:{size:20}})]},proxy:!0}])})],1)],1)],1),t._v(" "),t.followUpFeatureAvailable?e("NcAppSettingsSection",{attrs:{id:"autotagging-settings",name:t.t("mail","Assistance features")}},[e("NcFormBox",[e("NcFormBoxSwitch",{attrs:{disabled:t.loadingFollowUpReminders},model:{value:t.useFollowUpReminders,callback:function(e){t.useFollowUpReminders=e},expression:"useFollowUpReminders"}},[t._v("\n\t\t\t\t\t\t"+t._s(t.followUpReminderText)+"\n\t\t\t\t\t")])],1)],1):t._e(),t._v(" "),t.contextChatFeatureAvailable?e("NcAppSettingsSection",{attrs:{id:"context-chat-settings",name:t.t("mail","Context Chat integration")}},[e("NcFormBox",[e("NcFormBoxSwitch",{attrs:{disabled:t.loadingContextChat},model:{value:t.useContextChat,callback:function(e){t.useContextChat=e},expression:"useContextChat"}},[t._v("\n\t\t\t\t\t\t"+t._s(t.contextChatText)+"\n\t\t\t\t\t")])],1)],1):t._e(),t._v(" "),e("NcAppSettingsShortcutsSection",[e("NcHotkeyList",[e("NcHotkey",{attrs:{label:t.t("mail","Compose new message"),hotkey:"C"}}),t._v(" "),e("NcHotkey",{attrs:{label:t.t("mail","Newer message"),hotkey:"ArrowLeft"}}),t._v(" "),e("NcHotkey",{attrs:{label:t.t("mail","Older message"),hotkey:"ArrowRight"}}),t._v(" "),e("NcHotkey",{attrs:{label:t.t("mail","Toggle star"),hotkey:"S"}}),t._v(" "),e("NcHotkey",{attrs:{label:t.t("mail","Toggle unread"),hotkey:"U"}}),t._v(" "),e("NcHotkey",{attrs:{label:t.t("mail","Archive"),hotkey:"A"}}),t._v(" "),e("NcHotkey",{attrs:{label:t.t("mail","Delete"),hotkey:"Delete"}}),t._v(" "),e("NcHotkey",{attrs:{label:t.t("mail","Search"),hotkey:"Control F"}}),t._v(" "),e("NcHotkey",{attrs:{label:t.t("mail","Send"),hotkey:"Control Enter"}}),t._v(" "),e("NcHotkey",{attrs:{label:t.t("mail","Refresh"),hotkey:"R"}})],1)],1),t._v(" "),e("NcAppSettingsSection",{attrs:{id:"about-settings",name:t.t("mail","About")}},[e("NcFormGroup",{attrs:{label:t.t("mail","Acknowledgements"),description:t.t("mail","This application includes CKEditor, an open-source editor. Copyright © CKEditor contributors. Licensed under GPLv2.")}})],1),t._v(" "),e("NcDialog",{attrs:{open:t.textBlockDialogOpen,name:t.t("mail","New text block"),"is-form":!0,size:"normal"},on:{"update:open":function(e){t.textBlockDialogOpen=e}}},[e("NcInputField",{attrs:{label:t.t("mail","Title of the text block")},model:{value:t.localTextBlock.title,callback:function(e){t.$set(t.localTextBlock,"title",e)},expression:"localTextBlock.title"}}),t._v(" "),e("TextEditor",{attrs:{"is-bordered":!0,html:!0,placeholder:t.t("mail","Content of the text block"),bus:t.bus},model:{value:t.localTextBlock.content,callback:function(e){t.$set(t.localTextBlock,"content",e)},expression:"localTextBlock.content"}}),t._v(" "),e("div",{staticClass:"text-block-buttons"},[e("NcButton",{staticClass:"text-block-buttons__button",attrs:{variant:"tertiary"},on:{click:t.closeTextBlockDialog},scopedSlots:t._u([{key:"icon",fn:function(){return[e("IconClose",{attrs:{size:20}})]},proxy:!0}])},[t._v("\n\t\t\t\t\t\t"+t._s(t.t("mail","Cancel"))+"\n\t\t\t\t\t")]),t._v(" "),e("NcButton",{staticClass:"text-block-buttons__button",attrs:{variant:"primary",disabled:!t.localTextBlock.title||!t.localTextBlock.content},on:{click:t.newTextBlock},scopedSlots:t._u([{key:"icon",fn:function(){return[e("IconCheck",{attrs:{size:20}})]},proxy:!0}])},[t._v("\n\t\t\t\t\t\t"+t._s(t.t("mail","Ok"))+"\n\t\t\t\t\t")])],1)],1)],1)],1)],1)}),[],!1,null,null,null).exports;var pt=i(73713),gt=i(54914),ht=i(6961),bt=i(39487),xt=i(71561),ft=i(25216),vt=i(97627),Ct=i(81235),yt=i.n(Ct);const Mt={name:"NavigationAccount",components:{NcAppNavigationCaption:o.dL,Fragment:gt.F,ActionButton:o.Ko,ActionCheckbox:o.RI,ActionInput:o.Az,ActionText:o.HO,AccountSettings:()=>Promise.all([i.e(9908),i.e(4165),i.e(7666),i.e(9699),i.e(8730)]).then(i.bind(i,93692)),DelegationModal:()=>i.e(1989).then(i.bind(i,64920)),IconInfo:ft.A,IconSettings:s.A,NcIconSvgWrapper:o.K1,IconFolderAdd:xt.A,MenuDown:ht.A,MenuUp:bt.A,IconDelete:N.A,IconLoading:o.ne},props:{account:{type:Object,required:!0},firstMailbox:{type:Object,default:()=>{}},isFirst:{type:Boolean,default:!1},isLast:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1}},data:()=>({menuOpen:!1,loading:{delete:!1},savingShowOnlySubscribed:!1,quota:void 0,editing:!1,showSaving:!1,showDelegationModal:!1,IconDelegation:yt(),createMailboxName:"",showMailboxes:!1,nameInput:!1,nameLabel:!0}),computed:{...(0,a.n2)(L.A),showSettings(){return this.mainStore.showSettingsForAccount(this.account.id)},showSettingsSection(){return this.mainStore.showSettingsSectionForAccount(this.account.id)},visible(){return!0!==this.account.isUnified&&!1!==this.account.visible},canDelegate(){return!this.account.isDelegated&&!this.account.provisioningId},id(){return"account-"+this.account.id},quotaText(){return this.quota?t("mail","Used quota: {quota}% ({limit})",{quota:Math.ceil(this.quota.usage/this.quota.limit*100),limit:(0,pt.v7)(this.quota.limit)}):this.account.quotaPercentage?t("mail","Used quota: {quota}%",{quota:this.account.quotaPercentage}):""}},methods:{async createMailbox(e){this.nameInput=!1,this.showSaving=!0;const n=this.createMailboxName;_.A.info("creating mailbox "+n),this.menuOpen=!1;try{await this.mainStore.createMailbox({account:this.account,name:n})}catch(e){throw(0,l.Qg)(t("mail","Unable to create mailbox. The name likely contains invalid characters. Please try another name.")),_.A.error("could not create folder",{error:e}),e}finally{this.showSaving=!1,this.nameInput=!1,this.editing=!1,this.createMailboxName=""}_.A.info(`mailbox ${n} created`)},openCreateMailbox(){this.editing=!0,this.nameInput=!0,this.showSaving=!1},async removeAccount(){const e=this.account.id;_.A.info("delete account",{account:this.account});const n=(new l.ik).setName(t("mail","Remove account")).setText(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})).setButtons([{label:t("mail","Cancel")},{label:t("mail","Remove {email}",{email:this.account.emailAddress}),type:"error",callback:async()=>{this.loading.delete=!0;try{await this.mainStore.deleteAccount(this.account),_.A.info(`account ${e} deleted, redirecting …`),location.href=(0,c.Jv)("/apps/mail")}catch(e){_.A.error("could not delete account",{error:e}),(0,l.Qg)(t("mail","could not delete account"))}finally{this.loading.delete=!1}}}]).build();await n.show()},changeAccountOrderUp(){this.mainStore.moveAccount({account:this.account,up:!0}).catch((t=>_.A.error("could not move account up",{error:t})))},changeAccountOrderDown(){this.mainStore.moveAccount({account:this.account}).catch((t=>_.A.error("could not move account down",{error:t})))},changeShowSubscribedOnly(t){this.savingShowOnlySubscribed=!0,this.mainStore.patchAccount({account:this.account,data:{showSubscribedOnly:t}}).then((()=>{this.savingShowOnlySubscribed=!1,_.A.info("show only subscribed folders updated to "+t)})).catch((t=>{throw _.A.error("could not update subscription mode",{error:t}),this.savingShowOnlySubscribed=!1,t}))},onMenuToggle(t){t&&null!==this.account.quotaPercentage&&(_.A.debug("accounts menu opened, fetching quota"),this.fetchQuota())},async fetchQuota(){const t=await(0,vt.FY)(this.account.id);_.A.debug("quota fetched",{quota:t}),this.quota=void 0!==t&&t},showAccountSettings(t){t?this.mainStore.showSettingsForAccountMutation(this.account.id):this.mainStore.showSettingsForAccountMutation(null)}}};var wt=i(3123),kt={};kt.styleTagTransform=X(),kt.setAttributes=q(),kt.insert=Z().bind(null,"head"),kt.domAPI=V(),kt.insertStyleElement=J(),Y()(wt.A,kt),wt.A&&wt.A.locals&&wt.A.locals;var It=(0,j.A)(Mt,(function(){var t=this,e=t._self._c;return e("Fragment",[t.visible?e("NcAppNavigationCaption",{key:t.id,attrs:{id:t.id,name:t.account.emailAddress},on:{"update:open":t.onMenuToggle},scopedSlots:t._u([{key:"actions",fn:function(){return[t.isDisabled?[e("ActionText",{attrs:{name:t.t("mail","Provisioned account is disabled")},scopedSlots:t._u([{key:"icon",fn:function(){return[e("IconInfo",{attrs:{size:20}})]},proxy:!0}],null,!1,3812223437)},[t._v("\n\t\t\t\t\t"+t._s(t.t("mail","Please login using a password to enable this account. The current session is using passwordless authentication, e.g. SSO or WebAuthn."))+"\n\t\t\t\t")])]:[t.account.isUnified||null===t.account.quotaPercentage?t._e():e("ActionText",{scopedSlots:t._u([{key:"icon",fn:function(){return[e("IconInfo",{attrs:{size:20}})]},proxy:!0}],null,!1,3812223437)},[t._v("\n\t\t\t\t\t"+t._s(t.quotaText)+"\n\t\t\t\t")]),t._v(" "),e("ActionButton",{attrs:{"close-after-click":!0},on:{click:function(e){return t.showAccountSettings(!0)}},scopedSlots:t._u([{key:"icon",fn:function(){return[e("IconSettings",{attrs:{size:20}})]},proxy:!0}],null,!1,408832678)},[t._v("\n\t\t\t\t\t"+t._s(t.t("mail","Account settings"))+"\n\t\t\t\t")]),t._v(" "),t.canDelegate?e("ActionButton",{attrs:{"close-after-click":!0},on:{click:function(e){t.showDelegationModal=!0}},scopedSlots:t._u([{key:"icon",fn:function(){return[e("NcIconSvgWrapper",{attrs:{size:20,title:t.t("mail","Delegate account"),svg:t.IconDelegation}})]},proxy:!0}],null,!1,2321351306)},[t._v("\n\t\t\t\t\t"+t._s(t.t("mail","Delegate account"))+"\n\t\t\t\t")]):t._e(),t._v(" "),e("ActionCheckbox",{attrs:{checked:t.account.showSubscribedOnly,disabled:t.savingShowOnlySubscribed},on:{"update:checked":t.changeShowSubscribedOnly}},[t._v("\n\t\t\t\t\t"+t._s(t.t("mail","Show only subscribed folders"))+"\n\t\t\t\t")]),t._v(" "),!t.editing&&t.nameLabel?e("ActionButton",{on:{click:t.openCreateMailbox},scopedSlots:t._u([{key:"icon",fn:function(){return[e("IconFolderAdd",{attrs:{size:20}})]},proxy:!0}],null,!1,2169509812)},[t._v("\n\t\t\t\t\t"+t._s(t.t("mail","Add folder"))+"\n\t\t\t\t")]):t._e(),t._v(" "),t.editing&&t.nameInput?e("ActionInput",{attrs:{value:t.createMailboxName},on:{"update:value":function(e){t.createMailboxName=e},submit:function(e){return e.preventDefault(),e.stopPropagation(),t.createMailbox.apply(null,arguments)}},scopedSlots:t._u([{key:"icon",fn:function(){return[e("IconFolderAdd",{attrs:{size:20}})]},proxy:!0}],null,!1,2169509812)},[t._v("\n\t\t\t\t\t"+t._s(t.t("mail","Folder name"))+"\n\t\t\t\t")]):t._e(),t._v(" "),t.showSaving?e("ActionText",{scopedSlots:t._u([{key:"icon",fn:function(){return[e("IconLoading",{attrs:{size:20}})]},proxy:!0}],null,!1,3081367109)},[t._v("\n\t\t\t\t\t"+t._s(t.t("mail","Saving"))+"\n\t\t\t\t")]):t._e(),t._v(" "),t.isFirst?t._e():e("ActionButton",{on:{click:t.changeAccountOrderUp},scopedSlots:t._u([{key:"icon",fn:function(){return[e("MenuUp",{attrs:{size:20}})]},proxy:!0}],null,!1,859424094)},[t._v("\n\t\t\t\t\t"+t._s(t.t("mail","Move up"))+"\n\t\t\t\t")]),t._v(" "),t.isLast?t._e():e("ActionButton",{on:{click:t.changeAccountOrderDown},scopedSlots:t._u([{key:"icon",fn:function(){return[e("MenuDown",{attrs:{size:20}})]},proxy:!0}],null,!1,3657048169)},[t._v("\n\t\t\t\t\t"+t._s(t.t("mail","Move down"))+"\n\t\t\t\t")]),t._v(" "),t.account.provisioningId||t.account.isDelegated?t._e():e("ActionButton",{on:{click:t.removeAccount},scopedSlots:t._u([{key:"icon",fn:function(){return[e("IconDelete",{attrs:{size:20}})]},proxy:!0}],null,!1,881161434)},[t._v("\n\t\t\t\t\t"+t._s(t.t("mail","Remove account"))+"\n\t\t\t\t")])]]},proxy:!0}],null,!1,713340133)}):t._e(),t._v(" "),e("AccountSettings",{attrs:{open:t.showSettings,account:t.account,"scroll-to-section":t.showSettingsSection},on:{"update:open":function(e){return t.showAccountSettings(e)}}}),t._v(" "),t.showDelegationModal?e("DelegationModal",{attrs:{account:t.account},on:{close:function(e){t.showDelegationModal=!1}}}):t._e()],1)}),[],!1,null,null,null);const St=It.exports,Dt={name:"NavigationAccountExpandCollapse",components:{AppNavigationItem:o.G_},props:{account:{type:Object,required:!0}},computed:{...(0,a.n2)(L.A),id(){return"collapse-"+this.account.id},title(){return this.account.collapsed&&this.account.showSubscribedOnly?t("mail","Show all subscribed folders"):this.account.collapsed&&!this.account.showSubscribedOnly?t("mail","Show all folders"):t("mail","Collapse folders")}},methods:{async toggleCollapse(){_.A.debug("toggling collapsed mailboxes for account "+this.account.id);try{await this.mainStore.toggleAccountCollapsedMutation(this.account.id),await this.mainStore.setAccountSetting({accountId:this.account.id,key:"collapsed",value:this.account.collapsed})}catch(t){_.A.error("could not update account settings",{error:t})}}}};var Nt=i(35800),_t={};_t.styleTagTransform=X(),_t.setAttributes=q(),_t.insert=Z().bind(null,"head"),_t.domAPI=V(),_t.insertStyleElement=J(),Y()(Nt.A,_t),Nt.A&&Nt.A.locals&&Nt.A.locals;const Lt=(0,j.A)(Dt,(function(){var t=this;return(0,t._self._c)("AppNavigationItem",{attrs:{name:t.title},on:{click:t.toggleCollapse}})}),[],!1,null,"376a2382",null).exports;var Et=i(53334),Tt=i(63508),jt=i(84377),zt=i(71229),Bt=i(90913),Ot=i(42882),Pt=i(77996),Ut=i(5857),Qt=i(97101),Rt=i(95790),Ft=i(73599),Yt=i(10578),Gt=i(87515),Vt=i(21726),Ht=i(6178),Zt=i(35195),Wt=i(5493),qt=i(86791),$t=i(8426),Jt=i(18896),Kt=i(29080),Xt=i(42622),te=i(42496),ee=i(3477);const ne={name:"MoveMailboxModal",components:{MailboxPicker:i(88579).A},props:{account:{type:Object,required:!0},mailbox:{type:Object,required:!0}},data:()=>({moving:!1,destMailboxId:void 0}),computed:{...(0,a.n2)(L.A)},methods:{onClose(){this.$emit("close")},async onMove(){if(this.moving=!0,this.mailbox.id!==this.destMailboxId)try{if(this.destMailboxId){const t=this.mainStore.getMailbox(this.destMailboxId).name+this.mailbox.delimiter+this.mailbox.displayName;await this.mainStore.renameMailbox({account:this.account,mailbox:this.mailbox,newName:t})}else{const t=this.mailbox.displayName;await this.mainStore.renameMailbox({account:this.account,mailbox:this.mailbox,newName:t})}}catch(t){_.A.error("could not move folder",{error:t})}finally{this.moving=!1,this.$emit("close")}},genId:t=>"mailbox-"+t.databaseId}},ie=(0,j.A)(ne,(function(){var t=this;return(0,t._self._c)("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(e){t.destMailboxId=e},select:t.onMove,close:t.onClose}})}),[],!1,null,null,null).exports;var oe=i(35630);class ae{constructor(t,e){this.el=t,this.options=e,this.mainStore=e.mainStore,this._onDragStart=this.onDragStart.bind(this),this._onDragEnd=this.onDragEnd.bind(this),this._onDragOver=this.onDragOver.bind(this),this._onDragLeave=this.onDragLeave.bind(this),this._onDrop=this.onDrop.bind(this),this.registerListeners(t),this.setInitialAttributes()}setInitialAttributes(){this.draggableInfo={},this.setStatus("enabled")}registerListeners(t){oe.A.on("drag-start",this._onDragStart),oe.A.on("drag-end",this._onDragEnd),t.firstChild.addEventListener("dragover",this._onDragOver),t.firstChild.addEventListener("dragleave",this._onDragLeave),t.firstChild.addEventListener("drop",this._onDrop)}removeListeners(t){oe.A.off("drag-start",this._onDragStart),oe.A.off("drag-end",this._onDragEnd),t.firstChild.removeEventListener("dragover",this._onDragOver),t.firstChild.removeEventListener("dragleave",this._onDragLeave),t.firstChild.removeEventListener("drop",this._onDrop)}setStatus(t){this.el.setAttribute("droppable-mailbox",t)}onDragStart(t){this.draggableInfo=t,this.canBeDropped()||this.setStatus("disabled")}canBeDropped(){return this.isSameAccount()&&this.options.isValidDropTarget}isSameAccount(){return this.draggableInfo.accountId===this.options.accountId}get isCurrentlyDragging(){return Object.keys(this.draggableInfo).length>0}onDragEnd(){this.setInitialAttributes()}onDragOver(t){this.isCurrentlyDragging&&this.canBeDropped()&&(t.preventDefault(),this.draggableInfo.mailboxId!==this.options.mailboxId&&(this.options.isValidDropTarget&&this.setStatus("dragover"),t.dataTransfer.dropEffect="move"))}onDragLeave(t){this.isCurrentlyDragging&&this.canBeDropped()&&(t.preventDefault(),this.setStatus("enabled"))}async onDrop(t){if(!this.isCurrentlyDragging||!this.canBeDropped())return;if(t.preventDefault(),this.draggableInfo.mailboxId===this.options.mailboxId)return;this.setInitialAttributes();const e=JSON.parse(t.dataTransfer.getData("text"));oe.A.emit("envelopes-dropped",{envelopes:e});try{const t=e.map((async t=>await this.processDroppedItem(t)));await Promise.all(t)}catch(t){_.A.error("could not process dropped messages",t)}finally{oe.A.emit("envelopes-moved",{mailboxId:this.options.mailboxId,movedEnvelopes:e})}}async processDroppedItem(t){const e=document.querySelector(`[data-envelope-id="${t.databaseId}"]`);e.setAttribute("draggable-envelope","pending");try{"threaded"===this.mainStore.getPreference("layout-message-view")?await this.mainStore.moveThread({envelope:t,destMailboxId:this.options.mailboxId}):await this.mainStore.moveMessage({id:t.databaseId,destMailboxId:this.options.mailboxId})}catch(t){e.removeAttribute("draggable-envelope"),_.A.error("could not move messages",t)}}}const re=new WeakMap;function se(t,e){const n=new ae(t,e.value);re.set(t,n)}function le(t,e){const n=re.get(t);n&&(n.options=e.value)}function ce(t){const e=re.get(t);e&&e.removeListeners(t),re.delete(t)}const de={bind:se,componentUpdated:le,unbind:ce,mounted:se,updated:le,unmounted:ce};var ue=i(51648),me=i(50966),Ae=i(1468),pe=i(87314),ge=i(28290);const he={name:"NavigationMailbox",components:{AppNavigationItem:o.G_,CounterBubble:o.E7,ActionText:o.HO,ActionButton:o.Ko,ActionCheckbox:o.RI,ActionInput:o.Az,IconSend:$t.A,IconSendOutline:Jt.A,IconDelete:te.A,IconDeleteOutline:N.A,IconEmailCheck:Bt.A,IconExternal:Zt.A,IconAdd:f.A,IconEdit:qt.A,IconFolderSync:Rt.A,IconInfo:ft.A,IconAllInboxes:Gt.A,IconAllInboxesOutline:Vt.A,IconFavorite:Kt.A,IconFavoriteOutline:Xt.A,IconFolder:Pt.A,IconFolderOutline:xt.A,IconFolderShared:Ut.A,IconFolderSharedOutline:Qt.A,IconDraft:Wt.A,IconDraftOutline:qt.A,IconArchive:jt.A,IconArchiveOutline:zt.A,IconJunk:Ot.A,IconInbox:Ft.A,IconInboxOutline:Yt.A,IconWrench:ee.A,ImportantIcon:Ht.A,IconLoading:o.ne,MoveMailboxModal:ie,AlarmIcon:Tt.A},directives:{droppableMailbox:de},props:{account:{type:Object,required:!0},mailbox:{type:Object,required:!0},filter:{type:String,default:"",required:!1}},data(){return{debug:window?.OC?.debug||!1,mailboxStats:void 0,loadingMarkAsRead:!1,clearingCache:!1,showSaving:!1,changeSubscription:!1,changingSyncInBackground:!1,editing:!1,showSubMailboxes:!1,wasExpandedBeforeDrag:!1,menuOpen:!1,renameLabel:!0,renameInput:!1,mailboxName:this.mailbox.displayName,showMoveModal:!1,hasDelimiter:!!this.mailbox.delimiter,UNIFIED_INBOX_ID:pe.mH,createMailboxName:"",repairing:!1}},computed:{...(0,a.n2)(L.A),visible(){return(!1===this.account.showSubscribedOnly||this.mailbox.attributes&&this.mailbox.attributes.includes("\\subscribed"))&&this.isUnifiedButOnlyInbox},notInbox(){return"inbox"!==this.mailbox.name.toLowerCase()},notVirtual(){return!this.account.isUnified&&"flagged"!==this.mailbox.specialRole&&!this.filter},title(){return"starred"===this.filter?(0,ue.T)({...this.mailbox,specialUse:["flagged"]}):(0,ue.T)(this.mailbox)},to(){return{name:"mailbox",params:{mailboxId:this.mailbox.databaseId,filter:this.filter?this.filter:void 0}}},hasSubMailboxes(){return this.subMailboxes.length>0},subMailboxes(){return this.mainStore.getSubMailboxes(this.mailbox.databaseId)},statsText(){return this.mailboxStats&&"total"in this.mailboxStats&&"unread"in this.mailboxStats?0===this.mailboxStats.unread?(0,Et.zw)("mail","{total} message","{total} messages",this.mailboxStats.total,{total:this.mailboxStats.total}):(0,Et.zw)("mail","{unread} unread of {total}","{unread} unread of {total}",this.mailboxStats.unread,{total:this.mailboxStats.total,unread:this.mailboxStats.unread}):t("mail","Loading …")},isDroppableSpecialMailbox(){return"starred"!==this.filter&&![this.account.draftsMailboxId,this.account.sentMailboxId].includes(this.mailbox.databaseId)},isActive(){return this.$route.params.mailboxId===this.mailbox.databaseId},isValidDropTarget(){return!(this.isActive||!this.hasInsertAcl)&&(this.isDroppableSpecialMailbox||!this.mailbox.specialRole&&!this.account.isUnified)},isUnifiedButOnlyInbox(){return!this.mailbox.isUnified||this.mailbox.specialUse.includes("inbox")&&this.mainStore.getAccounts.length>2},showUnreadCounter(){return"starred"!==this.filter&&"trash"!==this.mailbox.specialRole&&(this.mailbox.unread>0||this.subCounter>0)},subCounter(){return this.subMailboxes.reduce(((t,e)=>t+e.unread),0)},hasRenameAcl(){if(!this.mailbox.myAcls)return!0;const t=this.mainStore.getParentMailbox(this.mailbox.databaseId);return t&&t.myAcls?(0,ge.w)(this.mailbox,"x")&&(0,ge.w)(t,"k"):(0,ge.w)(this.mailbox,"x")},hasInsertAcl(){return(0,ge.w)(this.mailbox,"i")},hasSeenAcl(){return(0,ge.w)(this.mailbox,"s")},hasSubmailboxActionAcl(){return(0,ge.w)(this.mailbox,"k")},hasDeleteAcl(){return(0,ge.w)(this.mailbox,"x")},hasClearMailboxAcl(){return(0,ge.w)(this.mailbox,"te")}},mounted(){oe.A.on("drag-start",this.onDragStart),oe.A.on("drag-end",this.onDragEnd),oe.A.on("envelopes-moved",this.onEnvelopesMoved)},beforeUnmount(){oe.A.off("drag-start",this.onDragStart),oe.A.off("drag-end",this.onDragEnd),oe.A.off("envelopes-moved",this.onEnvelopesMoved)},methods:{genId:t=>"folder-"+t.databaseId,onMenuToggle(t){t&&this.fetchMailboxStats()},async fetchMailboxStats(){if(this.mailboxStats=null,!this.account.isUnified&&"flagged"!==this.mailbox.specialRole)try{const t=await(0,me.Np)(this.mailbox.databaseId);_.A.debug(`loaded mailbox stats for ${this.mailbox.databaseId}`,{stats:t}),this.mailboxStats=t}catch(t){this.mailboxStats={error:!0},_.A.error(`could not load mailbox stats for ${this.mailbox.databaseId}`,t)}},async createMailbox(t){this.editing=!0;const e=this.createMailboxName,n=this.mailbox.name+this.mailbox.delimiter+e;_.A.info(`creating mailbox ${n} as submailbox of ${this.mailbox.databaseId}`),this.menuOpen=!1;try{await this.mainStore.createMailbox({account:this.account,name:n})}catch(t){throw _.A.error(`could not create mailbox ${n}`,{error:t}),t}finally{this.editing=!1,this.showSaving=!1}_.A.info(`mailbox ${n} created`),this.showSubMailboxes=!0},openCreateMailbox(){this.editing=!0,this.showSaving=!1},markAsRead(){this.loadingMarkAsRead=!0,this.mainStore.markMailboxRead({accountId:this.account.id,mailboxId:this.mailbox.databaseId}).then((()=>_.A.info(`mailbox ${this.mailbox.databaseId} marked as read`))).catch((t=>_.A.error(`could not mark mailbox ${this.mailbox.databaseId} as read`,{error:t}))).then((()=>this.loadingMarkAsRead=!1))},async changeFolderSubscription(t){try{this.changeSubscription=!0,await this.mainStore.changeMailboxSubscription({mailbox:this.mailbox,subscribed:t})}catch(t){throw _.A.error(`could not update subscription of mailbox ${this.mailbox.databaseId}`,{error:t}),t}finally{this.changeSubscription=!1}},async changeSyncInBackground(t){try{this.changingSyncInBackground=!0,await this.mainStore.patchMailbox({mailbox:this.mailbox,attributes:{syncInBackground:t}})}catch(t){throw _.A.error(`could not update background sync flag of mailbox ${this.mailbox.databaseId}`,{error:t}),t}finally{this.changingSyncInBackground=!1}},async clearCache(){try{this.clearingCache=!0,_.A.debug("clearing message cache",{accountId:this.account.id,mailboxId:this.mailbox.databaseId}),await(0,Ae.IL)(this.account.id,this.mailbox.databaseId),window.location.reload(!1)}finally{this.clearCache=!1}},clearMailbox(){const e=this.mailbox.databaseId;OC.dialogs.confirmDestructive(t("mail","All messages in mailbox will be deleted."),t("mail","Clear mailbox {name}",{name:this.mailbox.displayName}),{type:OC.dialogs.YES_NO_BUTTONS,confirm:t("mail","Clear folder"),confirmClasses:"error",cancel:t("mail","Cancel")},(t=>{if(t)return this.mainStore.clearMailbox({mailbox:this.mailbox}).then((()=>{_.A.info(`mailbox ${e} cleared`)})).catch((t=>_.A.error("could not clear folder",{error:t})))}))},deleteMailbox(){const e=this.mailbox.databaseId;_.A.info("delete folder",{mailbox:this.mailbox}),OC.dialogs.confirmDestructive(t("mail","The folder and all messages in it will be deleted."),t("mail","Delete folder"),{type:OC.dialogs.YES_NO_BUTTONS,confirm:t("mail","Delete folder {name}",{name:this.mailbox.displayName}),confirmClasses:"error",cancel:t("mail","Cancel")},(t=>{if(t)return this.mainStore.deleteMailbox({mailbox:this.mailbox}).then((()=>{_.A.info(`mailbox ${e} deleted`),parseInt(this.$route.params.mailboxId,10)===this.mailbox.databaseId&&this.$router.push({name:"mailbox",params:{mailboxId:pe.U8}})})).catch((t=>_.A.error("could not delete folder",{error:t})))}))},async renameMailbox(){this.renameInput=!1,this.showSaving=!0;try{let t=this.mailboxName;this.mailbox.path&&(t=this.mailbox.path+this.mailbox.delimiter+t),await this.mainStore.renameMailbox({account:this.account,mailbox:this.mailbox,newName:t}),this.renameLabel=!0,this.renameInput=!1}catch(e){(0,l.cf)(t("mail","An error occurred, unable to rename the mailbox.")),_.A.error("could not rename mailbox",{error:e})}finally{this.showSaving=!1}},openRenameInput(){this.renameLabel=!1,this.renameInput=!0,this.showSaving=!1},onOpenMoveModal(){this.showMoveModal=!0},onCloseMoveModal(){this.showMoveModal=!1},onDragStart({accountId:t}){t===this.mailbox.accountId&&(this.wasExpandedBeforeDrag=this.showSubMailboxes,this.mainStore.expandAccountMutation(t),this.showSubMailboxes=!0)},onDragEnd({accountId:t}){t===this.mailbox.accountId&&(this.showSubMailboxes=this.wasExpandedBeforeDrag)},onEnvelopesMoved({mailboxId:t,movedEnvelopes:e}){if(this.mailbox.databaseId!==t)return;const n=e.find((t=>t.envelopeId===this.$route.params.threadId));"message"===this.$route.name&&n&&this.$router.push({name:"mailbox",params:{mailboxId:this.$route.params.mailboxId,filter:this.$route.params?.filter}})},async repair(){this.repairing=!0;const e=this.mailbox.databaseId;try{await(0,me.AF)(e),await this.$router.push({name:"mailbox",params:{mailboxId:this.$route.params.mailboxId}}),window.location.reload()}catch(e){if(this.repairing=!1,429!==e.response?.status)throw e;_.A.error("mailbox repair rate-limited",{error:e}),(0,l.Qg)(t("mail","Please wait 10 minutes before repairing again"))}}}};var be=i(45868),xe={};xe.styleTagTransform=X(),xe.setAttributes=q(),xe.insert=Z().bind(null,"head"),xe.domAPI=V(),xe.insertStyleElement=J(),Y()(be.A,xe),be.A&&be.A.locals&&be.A.locals;var fe=(0,j.A)(he,(function(){var t=this,e=t._self._c;return t.visible?e("AppNavigationItem",{directives:[{name:"droppable-mailbox",rawName:"v-droppable-mailbox",value:{mainStore:t.mainStore,mailboxId:t.mailbox.databaseId,accountId:t.mailbox.accountId,isValidDropTarget:t.isValidDropTarget},expression:"{\n\t\tmainStore: mainStore,\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":t.hasSubMailboxes,"menu-open":t.menuOpen,"force-menu":!0,name:t.title,to:t.to,open:t.showSubMailboxes},on:{"update:menuOpen":[function(e){t.menuOpen=e},t.onMenuToggle],"update:menu-open":function(e){t.menuOpen=e},"update:open":function(e){t.showSubMailboxes=e}},scopedSlots:t._u([{key:"icon",fn:function({active:n}){return[e("div",[t.mailbox.isPriorityInbox?e("ImportantIcon",{attrs:{size:20}}):t.mailbox.id===t.UNIFIED_INBOX_ID&&n?e("IconAllInboxes",{attrs:{size:20}}):t.mailbox.id===t.UNIFIED_INBOX_ID?e("IconAllInboxesOutline",{attrs:{size:20}}):"inbox"===t.mailbox.specialRole&&!t.mailbox.isPriorityInbox&&"starred"!==t.filter&&n?e("IconInbox",{attrs:{size:20}}):"inbox"!==t.mailbox.specialRole||t.mailbox.isPriorityInbox||"starred"===t.filter?"starred"===t.filter&&n?e("IconFavorite",{attrs:{size:20}}):"starred"===t.filter?e("IconFavoriteOutline",{attrs:{size:20}}):t.mailbox.databaseId===t.account.draftsMailboxId&&n?e("IconDraft",{attrs:{size:20}}):t.mailbox.databaseId===t.account.draftsMailboxId?e("IconDraftOutline",{attrs:{size:20}}):t.mailbox.databaseId===t.account.sentMailboxId&&n?e("IconSend",{attrs:{size:20}}):t.mailbox.databaseId===t.account.sentMailboxId?e("IconSendOutline",{attrs:{size:20}}):t.mailbox.databaseId===t.account.archiveMailboxId&&n?e("IconArchive",{attrs:{size:20}}):t.mailbox.databaseId===t.account.archiveMailboxId?e("IconArchiveOutline",{attrs:{size:20}}):t.mailbox.databaseId===t.account.trashMailboxId&&n?e("IconDelete",{attrs:{size:20}}):t.mailbox.databaseId===t.account.trashMailboxId?e("IconDeleteOutline",{attrs:{size:20}}):t.mailbox.databaseId===t.account.junkMailboxId?e("IconJunk",{attrs:{size:20}}):t.mailbox.databaseId===t.account.snoozeMailboxId?e("AlarmIcon",{attrs:{size:20}}):t.mailbox.shared&&n?e("IconFolderShared",{attrs:{size:20}}):t.mailbox.shared?e("IconFolderSharedOutline",{attrs:{size:20}}):e(n?"IconFolder":"IconFolderOutline",{attrs:{size:20}}):e("IconInboxOutline",{attrs:{size:20}})],1)]}},{key:"actions",fn:function(){return[t.account.isUnified||"flagged"===t.mailbox.specialRole?t._e():e("ActionText",{attrs:{name:t.mailbox.name},scopedSlots:t._u([{key:"icon",fn:function(){return[e("IconInfo",{attrs:{title:t.statsText,size:20}})]},proxy:!0}],null,!1,3059915399)},[t._v("\n\t\t\t"+t._s(t.statsText)+"\n\t\t")]),t._v(" "),"flagged"!==t.mailbox.specialRole&&!t.account.isUnified&&t.hasSeenAcl?e("ActionButton",{attrs:{name:t.t("mail","Mark all as read"),disabled:t.loadingMarkAsRead},on:{click:t.markAsRead},scopedSlots:t._u([{key:"icon",fn:function(){return[e("IconEmailCheck",{attrs:{size:20}})]},proxy:!0}],null,!1,46646313)}):t._e(),t._v(" "),!t.editing&&!t.account.isUnified&&t.hasDelimiter&&"flagged"!==t.mailbox.specialRole&&t.hasSubmailboxActionAcl?e("ActionButton",{on:{click:t.openCreateMailbox},scopedSlots:t._u([{key:"icon",fn:function(){return[e("IconAdd",{attrs:{size:20}})]},proxy:!0}],null,!1,2388353250)},[t._v("\n\t\t\t"+t._s(t.t("mail","Add subfolder"))+"\n\t\t")]):t._e(),t._v(" "),t.editing?e("ActionInput",{attrs:{value:t.createMailboxName},on:{"update:value":function(e){t.createMailboxName=e},submit:function(e){return e.preventDefault(),e.stopPropagation(),t.createMailbox.apply(null,arguments)}},scopedSlots:t._u([{key:"icon",fn:function(){return[e("IconAdd",{attrs:{size:20}})]},proxy:!0}],null,!1,2388353250)}):t._e(),t._v(" "),t.renameLabel&&!t.hasSubMailboxes&&!t.account.isUnified&&t.hasRenameAcl?e("ActionButton",{on:{click:function(e){return e.preventDefault(),e.stopPropagation(),t.openRenameInput.apply(null,arguments)}},scopedSlots:t._u([{key:"icon",fn:function(){return[e("IconEdit",{attrs:{size:20}})]},proxy:!0}],null,!1,649782975)},[t._v("\n\t\t\t"+t._s(t.t("mail","Rename"))+"\n\t\t")]):t._e(),t._v(" "),t.renameInput?e("ActionInput",{attrs:{value:t.mailboxName},on:{"update:value":function(e){t.mailboxName=e},submit:function(e){return e.preventDefault(),e.stopPropagation(),t.renameMailbox.apply(null,arguments)}},scopedSlots:t._u([{key:"icon",fn:function(){return[e("IconEdit",{attrs:{title:t.t("mail","Rename"),size:20}})]},proxy:!0}],null,!1,2133523657)}):t._e(),t._v(" "),t.showSaving?e("ActionText",{scopedSlots:t._u([{key:"icon",fn:function(){return[e("IconLoading",{attrs:{size:20}})]},proxy:!0}],null,!1,3081367109)},[t._v("\n\t\t\t"+t._s(t.t("mail","Saving"))+"\n\t\t")]):t._e(),t._v(" "),t.account.isUnified||!t.hasDelimiter||t.mailbox.specialRole||t.hasSubMailboxes||!t.hasDeleteAcl?t._e():e("ActionButton",{attrs:{id:t.genId(t.mailbox),"close-after-click":!0},on:{click:function(e){return e.preventDefault(),t.onOpenMoveModal.apply(null,arguments)}},scopedSlots:t._u([{key:"icon",fn:function(){return[e("IconExternal",{attrs:{size:20}})]},proxy:!0}],null,!1,1464797790)},[t._v("\n\t\t\t"+t._s(t.t("mail","Move folder"))+"\n\t\t")]),t._v(" "),t.account.isUnified||"flagged"===t.mailbox.specialRole?t._e():e("ActionButton",{attrs:{disabled:t.repairing},on:{click:t.repair},scopedSlots:t._u([{key:"icon",fn:function(){return[e("IconWrench",{attrs:{size:20}})]},proxy:!0}],null,!1,4061649702)},[t._v("\n\t\t\t"+t._s(t.t("mail","Repair folder"))+"\n\t\t")]),t._v(" "),t.debug&&!t.account.isUnified&&"flagged"!==t.mailbox.specialRole?e("ActionButton",{attrs:{name:t.t("mail","Clear cache"),disabled:t.clearingCache},on:{click:t.clearCache},scopedSlots:t._u([{key:"icon",fn:function(){return[e("IconFolderSync",{attrs:{size:20}})]},proxy:!0}],null,!1,3488227250)},[t._v("\n\t\t\t"+t._s(t.t("mail","Clear locally cached data, in case there are issues with synchronization."))+"\n\t\t")]):t._e(),t._v(" "),t.notVirtual?e("ActionCheckbox",{attrs:{checked:t.mailbox.isSubscribed,disabled:t.changeSubscription},on:{"update:checked":t.changeFolderSubscription}},[t._v("\n\t\t\t"+t._s(t.t("mail","Subscribed"))+"\n\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._s(t.t("mail","Sync in background"))+"\n\t\t")]):t._e(),t._v(" "),"flagged"!==t.mailbox.specialRole&&!t.account.isUnified&&t.hasClearMailboxAcl?e("ActionButton",{attrs:{"close-after-click":!0},on:{click:t.clearMailbox},scopedSlots:t._u([{key:"icon",fn:function(){return[e("IconDeleteOutline",{attrs:{size:20}})]},proxy:!0}],null,!1,3934608602)},[t._v("\n\t\t\t"+t._s(t.t("mail","Delete all messages"))+"\n\t\t")]):t._e(),t._v(" "),t.account.isUnified||t.mailbox.specialRole||t.hasSubMailboxes||!t.hasDeleteAcl?t._e():e("ActionButton",{on:{click:t.deleteMailbox},scopedSlots:t._u([{key:"icon",fn:function(){return[e("IconDeleteOutline",{attrs:{size:20}})]},proxy:!0}],null,!1,3934608602)},[t._v("\n\t\t\t"+t._s(t.t("mail","Delete folder"))+"\n\t\t")])]},proxy:!0},{key:"counter",fn:function(){return[t.showUnreadCounter&&t.subCounter?e("CounterBubble",[t._v("\n\t\t\t"+t._s(t.mailbox.unread)+" ("+t._s(t.subCounter)+")\n\t\t")]):t.showUnreadCounter?e("CounterBubble",[t._v("\n\t\t\t"+t._s(t.mailbox.unread)+"\n\t\t")]):t._e()]},proxy:!0},{key:"extra",fn:function(){return[t.showMoveModal?e("MoveMailboxModal",{attrs:{account:t.account,mailbox:t.mailbox},on:{close:t.onCloseMoveModal}}):t._e()]},proxy:!0}],null,!1,363383615)},[t._v(" "),t._v(" "),t._v(" "),t._v(" "),t._l(t.subMailboxes,(function(n){return e("NavigationMailbox",{key:t.genId(n),attrs:{account:t.account,mailbox:n}})}))],2):t._e()}),[],!1,null,"3d14f734",null);const ve=fe.exports;var Ce=i(58841),ye=i(56872);const Me={name:"NavigationOutbox",components:{AppNavigationItem:o.G_,CounterBubble:o.E7,IconOutbox:Ce.A},computed:{...(0,a.n2)(ye.A),count(){return this.outboxStore.getAllMessages.length},to:()=>({name:"outbox"})}};var we=i(21902),ke={};ke.styleTagTransform=X(),ke.setAttributes=q(),ke.insert=Z().bind(null,"head"),ke.domAPI=V(),ke.insertStyleElement=J(),Y()(we.A,ke),we.A&&we.A.locals&&we.A.locals;const Ie=(0,j.A)(Me,(function(){var t=this,e=t._self._c;return e("AppNavigationItem",{key:"navigation-outbox",attrs:{id:"navigation-outbox",name:t.t("mail","Outbox"),to:t.to},scopedSlots:t._u([{key:"icon",fn:function(){return[e("IconOutbox",{attrs:{size:20}})]},proxy:!0},{key:"counter",fn:function(){return[t.count?e("CounterBubble",{staticClass:"navigation-outbox__unread-counter"},[t._v("\n\t\t\t"+t._s(t.count)+"\n\t\t")]):t._e()]},proxy:!0}])})}),[],!1,null,"ad5ce6fc",null).exports;var Se=i(26735);const De={name:"Navigation",components:{AppNavigation:o.hN,AppSettingsMenu:At,NavigationAccount:St,NavigationAccountExpandCollapse:Lt,NavigationMailbox:ve,NavigationOutbox:Ie,NcButton:o.x1,NewMessageButtonHeader:Se.A,IconSetting:s.A,AppNavigationItem:o.G_,IconAlertTriangle:r.A},data:()=>({refreshing:!1,showSettings:!1}),computed:{...(0,a.n2)(ye.A,L.A),menu(){return this.mainStore.getAccounts.filter((t=>t.id!==pe.Hc)).map((t=>{const e=this.mainStore.getMailboxes(t.id),n=e.filter((e=>this.isCollapsed(t,e))).length>1;return{id:t.id,account:t,mailboxes:e,isCollapsible:n}}))},unifiedAccount(){return this.mainStore.getAccount(pe.Hc)},unifiedMailboxes(){return this.mainStore.getMailboxes(pe.Hc)},passwordIsUnavailable(){return this.mainStore.getPreference("password-is-unavailable",!1)},outboxMessages(){return this.outboxStore.getAllMessages}},methods:{showMailSettings(){this.showSettings=!0},showAccountSettings(t,e){this.mainStore.showSettingsForAccountMutation(t,e)},isCollapsed:(t,e)=>"inbox"!==e.specialRole&&e.databaseId!==t.draftsMailboxId&&e.databaseId!==t.sentMailboxId&&e.databaseId!==t.trashMailboxId,isFirst(t){return t===this.mainStore.getAccounts[1]},isLast(t){const e=this.mainStore.getAccounts;return t===e[e.length-1]},isDisabled(t){return this.passwordIsUnavailable&&!!t.provisioningId&&!!this.mainStore.masterPasswordEnabled}}};var Ne=i(16747),_e={};_e.styleTagTransform=X(),_e.setAttributes=q(),_e.insert=Z().bind(null,"head"),_e.domAPI=V(),_e.insertStyleElement=J(),Y()(Ne.A,_e),Ne.A&&Ne.A.locals&&Ne.A.locals;const Le=(0,j.A)(De,(function(){var t=this,e=t._self._c;return e("AppNavigation",{staticClass:"mail-navigation",scopedSlots:t._u([{key:"search",fn:function(){return[e("NewMessageButtonHeader",{staticClass:"mail-navigation__new-message-button"})]},proxy:!0},{key:"list",fn:function(){return[t._l(t.unifiedMailboxes,(function(n){return e("NavigationMailbox",{key:"mailbox-"+n.databaseId,attrs:{account:t.unifiedAccount,mailbox:n}})})),t._v(" "),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),"is-disabled":t.isDisabled(n.account)}}):t._e(),t._v(" "),n.account.error?e("div",{key:n.account.error,staticClass:"mail-navigation__error-message"},[e("IconAlertTriangle",{attrs:{size:18,title:t.t("mail","This account cannot connect")}}),t._v(" "),e("span",{on:{click:function(e){return t.showAccountSettings(n.account.id,"mail-server")}}},[t._v("\n\t\t\t\t\t"+t._s(t.t("mail","Connection failed. Please verify your information and try again"))+"\n\t\t\t\t\t"),e("NcButton",{attrs:{"aria-label":t.t("mail","Change password"),variant:"tertiary"}},[t._v(t._s(t.t("mail","Change password")))])],1)],1):t.isDisabled(n.account)?t._e():[t._l(n.mailboxes,(function(i){return[e("NavigationMailbox",{directives:[{name:"show",rawName:"v-show",value:!n.isCollapsible||!n.account.collapsed||!t.isCollapsed(n.account,i),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-"+i.databaseId,attrs:{account:n.account,mailbox:i}}),t._v(" "),n.account.isUnified||"inbox"!==i.specialRole?t._e():e("NavigationMailbox",{key:i.databaseId+"-starred",attrs:{account:n.account,mailbox:i,filter:"starred"}})]})),t._v(" "),!n.account.isUnified&&n.isCollapsible?e("NavigationAccountExpandCollapse",{key:"collapse-"+n.account.id,attrs:{account:n.account}}):t._e()]]}))]},proxy:!0},{key:"footer",fn:function(){return[0!==t.outboxMessages.length?e("div",{staticClass:"outbox__border"},[e("NavigationOutbox",{staticClass:"outbox"})],1):t._e(),t._v(" "),e("div",{staticClass:"mail-settings"},[e("AppNavigationItem",{staticClass:"mail-settings__button",attrs:{"close-after-click":!0,name:t.t("mail","Mail settings")},on:{click:t.showMailSettings},scopedSlots:t._u([{key:"icon",fn:function(){return[e("IconSetting",{attrs:{size:20}})]},proxy:!0}])})],1)]},proxy:!0}])},[t._v(" "),t._v(" "),t._v(" "),e("AppSettingsMenu",{attrs:{open:t.showSettings},on:{"update:open":function(e){t.showSettings=e}}})],1)}),[],!1,null,"7c643ab3",null).exports},26735(t,e,n){"use strict";n.d(e,{A:()=>k});var i=n(78034),o=n(51849),a=n(88289),r=n(49954),s=n(41936),l=n(85745),c=n(41527);const d={name:"NewMessageButtonHeader",components:{ButtonVue:i.x1,IconAdd:r.A,IconRefresh:s.A,IconLoading:a.A},props:{showRefresh:{default:!0}},data:()=>({refreshing:!1}),computed:{...(0,o.n2)(c.A),currentMailbox(){if("message"===this.$route.name||"mailbox"===this.$route.name)return this.mainStore.getMailbox(this.$route.params.mailboxId)},account(){return this.mainStore.getAccount(this.currentMailbox.accountId)}},methods:{async refreshMailbox(){if(!0!==this.refreshing){this.refreshing=!0;try{await this.mainStore.syncEnvelopes({mailboxId:this.currentMailbox.databaseId}),await this.mainStore.syncMailboxesForAccount(this.account),l.A.debug("Current folder is sync'ing ")}catch(t){l.A.error("could not sync current folder",{error:t})}finally{this.refreshing=!1}}else l.A.debug("already sync'ing mailbox.. aborting")},async onNewMessage(){await this.mainStore.startComposerSession({isBlankMessage:!0})}}};var u=n(85072),m=n.n(u),A=n(97825),p=n.n(A),g=n(77659),h=n.n(g),b=n(55056),x=n.n(b),f=n(10540),v=n.n(f),C=n(41113),y=n.n(C),M=n(22858),w={};w.styleTagTransform=y(),w.setAttributes=x(),w.insert=h().bind(null,"head"),w.domAPI=p(),w.insertStyleElement=v(),m()(M.A,w),M.A&&M.A.locals&&M.A.locals;const k=(0,n(14486).A)(d,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"header"},[e("ButtonVue",{attrs:{"aria-label":t.t("mail","New message"),type:"secondary","button-id":"mail_new_message",wide:!0},on:{click:t.onNewMessage},scopedSlots:t._u([{key:"icon",fn:function(){return[e("IconAdd",{attrs:{size:20}})]},proxy:!0}])},[t._v("\n\t\t"+t._s(t.t("mail","New message"))+"\n\t")]),t._v(" "),t.showRefresh&&t.currentMailbox?e("ButtonVue",{staticClass:"refresh__button",attrs:{"aria-label":t.t("mail","Refresh"),type:"tertiary-no-background",disabled:t.refreshing},on:{click:t.refreshMailbox},scopedSlots:t._u([{key:"icon",fn:function(){return[t.refreshing?t._e():e("IconRefresh",{attrs:{size:20}}),t._v(" "),t.refreshing?e("IconLoading",{attrs:{size:20}}):t._e()]},proxy:!0}],null,!1,2669673868)}):t._e()],1)}),[],!1,null,"229330c8",null).exports},33777(t,e,n){"use strict";n.d(e,{A:()=>Y});var i=n(57020),o=n.n(i),a=n(53334),r=n(78034),s=n(65122),l=n(64508),c=n(31169),d=n.n(c),u=n(28428),m=n.n(u);const A="textDirection";class p extends s.uBz{refresh(){const t=(0,s.$1N)(this.editor.model.document.selection.getSelectedBlocks());this.isEnabled=Boolean(t)&&this.editor.model.schema.checkAttribute(t,A),this.isEnabled&&t.hasAttribute(A)?this.value=t.getAttribute(A):this.value=null}execute(t={}){const e=this.editor.model,n=e.document,i=t.value;e.change((t=>{const e=Array.from(n.selection.getSelectedBlocks()).filter((t=>this.editor.model.schema.checkAttribute(t,A)));for(const n of e)n.getAttribute(A)===i?t.removeAttribute(A,n):t.setAttribute(A,i,n)}))}}const g="textDirection";class h extends s.k_1{static get pluginName(){return"TextDirectionPlugin"}init(){this._defineSchema(),this._defineConverters(),this._defineCommand(),this.editor.ui&&this._defineButtons()}_defineSchema(){const t=this.editor.model.schema;t.extend("$block",{allowAttributes:g}),t.setAttributeProperties(g,{isFormatting:!0})}_defineConverters(){const t=this.editor;t.conversion.for("downcast").attributeToAttribute({model:{key:g,values:["ltr","rtl"]},view:{ltr:{key:"dir",value:"ltr"},rtl:{key:"dir",value:"rtl"}}}),t.conversion.for("upcast").attributeToAttribute({view:{key:"dir",value:"ltr"},model:{key:g,value:"ltr"}}),t.conversion.for("upcast").attributeToAttribute({view:{key:"dir",value:"rtl"},model:{key:g,value:"rtl"}})}_defineCommand(){this.editor.commands.add(g,new p(this.editor))}_defineButtons(){const t=this.editor,e=t.t,n=t.commands.get(g);t.ui.componentFactory.add("textDirection:ltr",(i=>{const o=new s._aF(i);return o.set({label:e("Left-to-right text"),icon:d(),tooltip:!0,isToggleable:!0}),o.bind("isEnabled").to(n),o.bind("isOn").to(n,"value",(t=>"ltr"===t)),this.listenTo(o,"execute",(()=>{t.execute(g,{value:"ltr"}),t.editing.view.focus()})),o})),t.ui.componentFactory.add("textDirection:rtl",(i=>{const o=new s._aF(i);return o.set({label:e("Right-to-left text"),icon:m(),tooltip:!0,isToggleable:!0}),o.bind("isEnabled").to(n),o.bind("isOn").to(n,"value",(t=>"rtl"===t)),this.listenTo(o,"execute",(()=>{t.execute(g,{value:"rtl"}),t.editing.view.focus()})),o}))}}class b extends s.k_1{static get requires(){return[s.fzL]}init(){this._overwriteParagraphConversion()}_overwriteParagraphConversion(){this.editor.conversion.elementToElement({model:"paragraph",view:{name:"p",styles:{margin:0}},converterPriority:"high"})}}class x extends s.k_1{init(){this._defineSchema(),this._defineConverters()}_defineSchema(){this.editor.model.schema.register("quote",{inheritAllFrom:"$container"})}_defineConverters(){this.editor.conversion.elementToElement({model:"quote",view:{name:"div",classes:"quote"}})}}var f=n(4728);class v extends s.k_1{init(){this._defineSchema(),this._defineConverters(),this.editor.commands.add("insertSignature",new f.Ay(this.editor))}_defineSchema(){this.editor.model.schema.register("signature",{inheritAllFrom:"$container"})}_defineConverters(){this.editor.conversion.elementToElement({model:"signature",view:{name:"div",classes:"signature"}})}}class C extends s.uBz{insertItem(t,e,n,i,o){const a=t.model.document.selection.getLastPosition();if(null===a)return;const r=t.model.createRange(a.getShiftedBy(-o),a).getWalker({shallow:!1,direction:"backward"});for(const o of r)if("text"===o.type&&o.item.data.includes(i)){e.remove(o.item);const a=o.item.data,r=a.lastIndexOf(i),s=e.createElement("paragraph");if(e.insertText(a.substring(0,r),s),t.model.insertContent(s),"@"===i){const i=`mailto:${n.email}`,o=`@${n.label}`,a=e.createText(o,{linkHref:i});t.model.insertContent(a)}else if("!"===i)if(n.isHtml){const e=t.data.processor.toView(n.content),i=t.data.toModel(e);t.model.insertContent(i)}else{const e=n.content.split("\n").map((t=>`<p>${t}</p>`)).join(""),i=t.data.processor.toView(e),o=t.data.toModel(i);t.model.insertContent(o)}else{const i=e.createElement("paragraph");e.insertText(n,i),t.model.insertContent(i)}return}}execute(t,e,n=5){this.editor.model.change((i=>{this.insertItem(this.editor,i,t,e,n)}))}refresh(){this.isEnabled=!0}}class y extends s.k_1{init(){this.editor.commands.add("insertItem",new C(this.editor))}}var M=n(85745),w=n(6791),k=n(18446);n(61036);const I={name:"TextEditor",components:{Ckeditor:o().component},inject:{addToFocusTrap:{default:()=>{}}},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},disabled:{type:Boolean,default:!1},textBlocks:{type:Array,default:()=>[]},isBordered:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1}},data(){const t=[s.uwK,s.fzL,v,x,y,s.PXQ,s.N_E,s.NeA,s.FG2],e=["undo","redo"];return this.html&&(t.push(s.DZT,s.C1k,s.yN4,s.J20,s.z2z,s.GkN,s.Eac,s.Z3f,s.Y0,s.B8B,s._V3,s.BRX,s.uXn,s.KQV,s.ybQ,s.m57,b,s.q2u,h),e.unshift("heading","fontFamily","fontSize","bold","italic","underline","strikethrough","fontColor","subscript","superscript","fontBackgroundColor","insertImage","alignment","textDirection:ltr","textDirection:rtl","bulletedList","numberedList","blockquote","link","removeFormat","findAndReplace","sourceEditing")),{linkTribute:null,emojiTribute:null,contactMentionQuery:null,textSmiles:[],sourceEditingInputHandler:null,sourceEditingModeHandler:null,sourceEditingDebounceTimer:null,ready:!1,editor:s.aRV,config:{licenseKey:"GPL",placeholder:this.placeholder,plugins:t,toolbar:e,language:"en",mention:{feeds:[{marker:":",feed:this.getEmoji,itemRenderer:this.customEmojiRenderer},{marker:"/",feed:this.getLink,itemRenderer:this.customLinkRenderer},{marker:"@",feed:this.getContact,itemRenderer:t=>this.customRenderer(t,"contact")},{marker:"!",feed:this.getTextBlock,itemRenderer:this.customRenderer}]},htmlSupport:{allow:["table","tbody","td","tfoot","th","thead","tr","figure",{name:"a",attributes:["title","name","id"],classes:!0,styles:!0},{name:"img",attributes:["src","alt","title","width","height","data-cid","loading"],styles:!0}]}}}},beforeMount(){this.loadEditorTranslations((0,a.Z0)())},beforeDestroy(){this.unregisterSourceEditingInputListener(),this.editorInstance?.plugins.has("SourceEditing")&&this.sourceEditingModeHandler&&this.editorInstance.plugins.get("SourceEditing").off("change:isSourceEditingMode",this.sourceEditingModeHandler)},methods:{registerSourceEditingInputListener(){const t=this.editorInstance.ui.getEditableElement("sourceEditing:main");t&&!this.sourceEditingInputHandler&&(this.sourceEditingInputHandler=()=>{clearTimeout(this.sourceEditingDebounceTimer),this.sourceEditingDebounceTimer=setTimeout((()=>{this.editorInstance.plugins.get("SourceEditing").updateEditorData()}),300)},t.addEventListener("input",this.sourceEditingInputHandler))},unregisterSourceEditingInputListener(){if(clearTimeout(this.sourceEditingDebounceTimer),this.sourceEditingDebounceTimer=null,!this.sourceEditingInputHandler)return;const t=this.editorInstance?.ui.getEditableElement("sourceEditing:main");t?.removeEventListener("input",this.sourceEditingInputHandler),this.sourceEditingInputHandler=null},getLink(t){const e=(0,l.kr)(t);return 1!==e.length||e[0].title.toLowerCase().includes(t.toLowerCase())?e:[]},getEmoji(t){if(" "===t[0])return[];const e=(0,r.Fo)(t);return this.textSmiles.includes(":"+t)&&e.unshift(":"+t),e},async getContact(t){if(0===t.length)return[];let e;this.contactMentionQuery=t;try{e=await(0,w.Zd)(t),e=e.filter((t=>t.email?.filter((t=>t.length>0))))}catch(t){return M.A.error("could not fetch contacts to mention",{error:t}),[]}return e},getTextBlock(t){return 0===t.length?[]:this.textBlocks.filter((e=>e.title.toLowerCase().includes(t.toLowerCase())))},customEmojiRenderer(t){const e=document.createElement("span");e.classList.add("custom-item"),e.id=`mention-list-item-id-${t.colons}`,e.textContent=`${t.native} `;const n=document.createElement("span");return n.classList.add("custom-item-username"),n.textContent=t.colons,e.appendChild(n),e},customLinkRenderer(t){const e=document.createElement("span");e.classList.add("link-container");const n=document.createElement("img");n.classList.add("link-icon"),n.src=`${t.icon_url} `;const i=document.createElement("span");return i.classList.add("link-title"),i.textContent=`${t.title} `,e.appendChild(n),e.appendChild(i),e},customRenderer(t,e){const n=document.createElement("span");n.classList.add("custom-item"),n.id=`mention-list-item-id-${t.id}`;const i=document.createElement("p"),o="contact"===e?t.label:t.title;return i.classList.add("custom-item-username"),i.textContent=o,n.appendChild(i),n},overrideDropdownPositionsToNorth(t,e){const{south:n,north:i,southEast:o,southWest:a,northEast:r,northWest:l,southMiddleEast:c,southMiddleWest:d,northMiddleEast:u,northMiddleWest:m}=s.BOx.defaultPanelPositions;let A;A="rtl"!==t.locale.uiLanguageDirection?[r,l,u,m,i,o,a,c,d,n]:[l,r,m,u,i,a,o,d,c,n];for(const t of e.items)t instanceof s.BOx&&t.on("change:isOpen",(()=>{t.isOpen&&(t.panelView.position=s.BOx._getOptimalPosition({element:t.panelView.element,target:t.buttonView.element,fitInViewport:!0,positions:A}).name)}))},overrideTooltipPositions(t){for(const e of t.items)e.buttonView?e.buttonView.tooltipPosition="n":e.tooltipPosition&&(e.tooltipPosition="n")},async loadEditorTranslations(t){const e=t.toLowerCase();if("en"===e)return void this.showEditor("en");const i=[e];e.includes("-")&&i.push(e.split("-")[0]);for(const t of i)try{M.A.debug(`loading "${t}" translations for CKEditor`);const{default:e}=await n(91353)(`./${t}.js`);return void this.showEditor(t,[e])}catch(e){M.A.debug(`no CKEditor translations for "${t}"`,{error:e})}M.A.info(`no CKEditor translations found for "${t}", falling back to English`),this.showEditor("en")},showEditor(t,e){M.A.debug(`using "${t}" as CKEditor language`),e&&(this.config.translations=e),this.config.language=t,this.ready=!0},onEditorReady(t){M.A.debug("TextEditor is ready",{editor:t}),this.$refs.toolbarContainer.appendChild(t.ui.view.toolbar.element),this.$refs.editableContainer.appendChild(t.ui.view.editable.element),this.readOnly&&(t.ui.view.toolbar.element.style.display="none",t.enableReadOnlyMode("text-block")),t.ui&&(this.overrideDropdownPositionsToNorth(t,t.ui.view.toolbar),this.overrideTooltipPositions(t.ui.view.toolbar)),t.commands.get("mention")?.on("execute",((t,e)=>{t.stop();const n=e[0],i=n.mention;if(":"===n.marker&&((0,r.ZR)(i),this.editorInstance.execute("insertItem",i.native,":")),"/"===n.marker&&(0,l.J4)(i.id).then((t=>{this.editorInstance.execute("insertItem",t,"/"),this.editorInstance.editing.view.focus()})).catch((t=>{M.A.debug("Smart picker promise rejected",{error:t})})),"@"===n.marker){const t=this.contactMentionQuery?.length?this.contactMentionQuery.length+1:5;this.editorInstance.execute("insertItem",{email:i.email[0],label:i.label},"@",t),this.$emit("mention",{email:i.email[0],label:i.label})}"!"===n.marker&&this.insertTextBlock(i,!1)}),{priority:"high"}),t.plugins.has("SourceEditing")&&(this.sourceEditingModeHandler=(t,e,n)=>{n?this.registerSourceEditingInputListener():this.unregisterSourceEditingInputListener()},t.plugins.get("SourceEditing").on("change:isSourceEditingMode",this.sourceEditingModeHandler)),t.keystrokes.set("Ctrl+Enter",(e=>{M.A.debug("Detected Ctrl+Enter/Cmd+Enter",e),this.$emit("submit",t)})),this.editorInstance=t,this.focus&&(M.A.debug("focusing TextEditor"),t.editing.view.focus()),this.html&&this.addToFocusTrap(".ck-body-wrapper"),this.bus.on("append-to-body-at-cursor",this.appendToBodyAtCursor),this.bus.on("insert-text-block",this.insertTextBlock),this.$emit("ready",t)},onEditorInput(t){t!==this.value&&(M.A.debug(`TextEditor input changed to <${t}>`),this.$emit("input",t))},appendToBodyAtCursor(t){const e=this.editorInstance.data.processor.toView(t),n=this.editorInstance.data.toModel(e);this.editorInstance.model.insertContent(n)},editorExecute(t,...e){if(!this.editorInstance)throw new Error("Impossible to execute a command before editor is ready.");this.editorInstance.execute(t,...e)},insertTextBlock(t,e=!0){e&&this.appendToBodyAtCursor("!");let n=t.content;if(!this.html){const t=new k.EY("html",n);n=(0,k.Ul)(t).value}this.editorInstance.execute("insertItem",{content:n,isHtml:this.html},"!")}}};var S=n(85072),D=n.n(S),N=n(97825),_=n.n(N),L=n(77659),E=n.n(L),T=n(55056),j=n.n(T),z=n(10540),B=n.n(z),O=n(41113),P=n.n(O),U=n(74442),Q={};Q.styleTagTransform=P(),Q.setAttributes=j(),Q.insert=E().bind(null,"head"),Q.domAPI=_(),Q.insertStyleElement=B(),D()(U.A,Q),U.A&&U.A.locals&&U.A.locals;var R=n(59975),F={};F.styleTagTransform=P(),F.setAttributes=j(),F.insert=E().bind(null,"head"),F.domAPI=_(),F.insertStyleElement=B(),D()(R.A,F),R.A&&R.A.locals&&R.A.locals;const Y=(0,n(14486).A)(I,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"editor-wrapper",class:{"editor-wrapper--bordered":t.isBordered}},[e("div",{ref:"toolbarContainer",staticClass:"toolbar"}),t._v(" "),e("div",{ref:"editableContainer",staticClass:"editable"}),t._v(" "),t.ready?e("Ckeditor",{staticClass:"editor",attrs:{value:t.value,config:t.config,editor:t.editor,disabled:t.disabled},on:{input:t.onEditorInput,ready:t.onEditorReady}}):t._e()],1)}),[],!1,null,"263bab40",null).exports},40610(e,n,i){"use strict";i.d(n,{A:()=>O});var o=i(21777),a=i(72302),r=i(85168),s=i(63814),l=i(40715),c=i(78034),d=i(12572),u=i.n(d),m=i(27380),A=i(51849),p=i(30787),g=i(90629),h=i(56702),b=i(86791),x=i(33777),f=i(85745),v=i(81430),C=i(41527);const y={name:"ListItem",components:{NcActionButton:c.Ko,NcLoadingIcon:c.ne,NcSelectUsers:c.cy,NcDialog:c.i$,TextEditor:x.A,NcButton:c.x1,NcAvatar:c.Bx,NcInputField:c.Es,AccountMultiple:p.A,IconClose:h.A,IconPencil:b.A,IconCheck:g.A,NcListItem:c.l},props:{textBlock:{type:Object,required:!0},shared:{type:Boolean,default:!1},isViewMode:{type:Boolean,default:!1},picked:{type:Boolean,default:!1}},data(){return{shares:[],localTextBlock:JSON.parse(JSON.stringify(this.textBlock)),editModalOpen:!1,loading:!1,saveLoading:!1,share:null,suggestions:[],bus:(0,m.A)()}},computed:{...(0,A.n2)(C.A),options(){return this.suggestions.filter((t=>void 0===this.shares.find((e=>e.shareWith===t.shareWith))&&t.shareWith!==(0,o.HW)().uid))},sortedShares(){return[...this.shares].sort(((t,e)=>"user"===t.type&&"group"===e.type?-1:"group"===t.type&&"user"===e.type?1:0))}},async mounted(){this.shared||this.isViewMode||(this.shares=await(0,v.PI)(this.textBlock.id))},methods:{async deleteTextBlock(){await this.mainStore.deleteTextBlock({id:this.textBlock.id}).then((()=>{(0,r.Te)(t("mail","Text block deleted"))})).catch((e=>{f.A.error("failed to delete text block",{error:e}),(0,r.Qg)(t("mail","Failed to delete text block"))}))},async shareTextBlock(e){try{this.share=e,await(0,v.CM)(this.textBlock.id,e.shareWith,e.shareType===l.I.User?"user":"group"),this.shares.push({shareWith:e.shareWith,type:e.isNoUser?"group":"user",displayName:e.displayName}),(0,r.Te)(t("mail","Text block shared with {sharee}",{sharee:e.shareWith})),this.share=null}catch(n){f.A.error("failed to share text block",{error:n}),(0,r.Qg)(t("mail","Failed to share text block with {sharee}",{sharee:e.shareWith}))}},async removeShare(e){try{await(0,v.xn)(this.textBlock.id,e.shareWith),this.shares=this.shares.filter((t=>t.shareWith!==e.shareWith)),(0,r.Te)(t("mail","Share deleted for {name}",{name:e.shareWith}))}catch(n){f.A.error("failed to delete text block share",{error:n}),(0,r.Qg)(t("mail","Failed to delete share with {name}",{name:e.shareWith}))}},async asyncFind(t){await this.debounceGetSuggestions(t.trim())},async getSuggestions(t){this.loading=!0;const e=[l.I.User,l.I.Group];let n=null;try{n=await a.Ay.get((0,s.KT)("apps/files_sharing/api/v1/sharees"),{params:{format:"json",itemType:"file",search:t,shareTypes:e}})}catch(t){return void f.A.error("Error fetching suggestions",t)}const i=n.data.ocs.data,o=n.data.ocs.data.exact;i.exact=[];const r=o.users.concat(o.groups),c=i.users.concat(i.groups),d=r.map((t=>this.formatForMultiselect(t))),u=c.map((t=>this.formatForMultiselect(t))).sort(((t,e)=>t.shareType-e.shareType)),m=d.concat(u).sort(((t,e)=>t.shareType-e.shareType)),A=m.reduce(((t,e)=>e.displayName?(t[e.displayName]||(t[e.displayName]=0),t[e.displayName]++,t):t),{});this.suggestions=m.map((t=>A[t.displayName]>1&&!t.desc?{...t,desc:t.shareWithDisplayNameUnique}:t)),this.loading=!1,f.A.info("suggestions",this.suggestions)},shareTypeToIcon(e){switch(e){case l.I.User:return{icon:"icon-user",iconTitle:t("files_sharing","Guest")};case l.I.Group:return{icon:"icon-group",iconTitle:t("files_sharing","Group")};default:return{}}},formatForMultiselect(t){return{shareWith:t.value.shareWith,shareType:t.value.shareType,user:t.uuid||t.value.shareWith,isNoUser:t.value.shareType!==l.I.User,displayName:t.name||t.label,shareWithDisplayNameUnique:t.shareWithDisplayNameUnique||"",...this.shareTypeToIcon(t.value.shareType)}},debounceGetSuggestions:u()(300,(function(...t){this.getSuggestions(...t)})),handleListItemClick(){this.isViewMode?this.$emit("click",this.textBlock):this.editModalOpen=!0},closeTextBlockDialog(){this.editModalOpen=!1,this.localTextBlock=JSON.parse(JSON.stringify(this.textBlock))},async saveTextBlock(){this.saveLoading=!0;try{await this.mainStore.patchTextBlock(this.localTextBlock),this.saveLoading=!1,this.editModalOpen=!1}catch(e){(0,r.Qg)(t("mail","Failed to save text block")),f.A.error("Failed to save text block",e)}}}};var M=i(85072),w=i.n(M),k=i(97825),I=i.n(k),S=i(77659),D=i.n(S),N=i(55056),_=i.n(N),L=i(10540),E=i.n(L),T=i(41113),j=i.n(T),z=i(58039),B={};B.styleTagTransform=j(),B.setAttributes=_(),B.insert=D().bind(null,"head"),B.domAPI=I(),B.insertStyleElement=E(),w()(z.A,B),z.A&&z.A.locals&&z.A.locals;const O=(0,i(14486).A)(y,(function(){var t=this,e=t._self._c;return e("div",[e("NcListItem",{staticClass:"text-block-list-item",attrs:{active:t.picked},on:{click:t.handleListItemClick},scopedSlots:t._u([{key:"name",fn:function(){return[t._v("\n\t\t\t"+t._s(t.textBlock.title)+"\n\t\t")]},proxy:!0},{key:"subname",fn:function(){return[t._v("\n\t\t\t"+t._s(t.textBlock.preview)+"\n\t\t")]},proxy:!0},t.shared?null:{key:"extra-actions",fn:function(){return[t.shares.length>0?e("AccountMultiple",{attrs:{title:t.t("mail","Shared"),size:20}}):t._e(),t._v(" "),e("NcActionButton",{attrs:{title:t.t("mail","Edit {title}",{title:t.textBlock.title})},on:{click:function(e){t.editModalOpen=!0}},scopedSlots:t._u([{key:"icon",fn:function(){return[e("IconPencil",{attrs:{size:20}})]},proxy:!0}],null,!1,291764094)}),t._v(" "),t.isViewMode?t._e():e("NcActionButton",{attrs:{icon:"icon-delete",title:t.t("mail","Delete {title}",{title:t.textBlock.title})},on:{click:function(e){return t.deleteTextBlock()}}})]},proxy:!0}],null,!0)}),t._v(" "),e("NcDialog",{attrs:{open:t.editModalOpen,name:t.t("mail","Edit text block"),size:"normal","is-form":!0},on:{"update:open":function(e){t.editModalOpen=e}}},[t.shared?e("p",[t._v("\n\t\t\t"+t._s(t.localTextBlock.title)+"\n\t\t")]):e("NcInputField",{attrs:{label:t.t("mail","Title of the text block")},model:{value:t.localTextBlock.title,callback:function(e){t.$set(t.localTextBlock,"title",e)},expression:"localTextBlock.title"}}),t._v(" "),e("TextEditor",{attrs:{"is-bordered":!t.shared,html:!0,"read-only":t.shared,placeholder:t.t("mail","Content of the text block"),bus:t.bus},model:{value:t.localTextBlock.content,callback:function(e){t.$set(t.localTextBlock,"content",e)},expression:"localTextBlock.content"}}),t._v(" "),t.shared?t._e():[e("h3",[t._v("\n\t\t\t\t"+t._s(t.t("mail","Shares"))+"\n\t\t\t")]),t._v(" "),e("NcSelectUsers",{staticClass:"text-block-list-item__shares",attrs:{"model-value":t.share,placeholder:t.t("mail","Search for users or groups"),"label-outside":!0,loading:t.loading,options:t.options,"get-option-label":t=>t.displayName},on:{"update:modelValue":t.shareTextBlock,search:t.asyncFind}}),t._v(" "),t._l(t.sortedShares,(function(n){return e("NcListItem",{key:n.shareWith,attrs:{name:n.displayName,compact:!0},scopedSlots:t._u([{key:"icon",fn:function(){return["group"===n.type?e("NcAvatar",{scopedSlots:t._u([{key:"icon",fn:function(){return[e("AccountMultiple",{attrs:{size:20}})]},proxy:!0}],null,!0)}):e("NcAvatar",{attrs:{user:n.shareWith,"display-name":n.displayName}})]},proxy:!0},{key:"extra-actions",fn:function(){return[e("NcButton",{attrs:{variant:"tertiary-no-background"},on:{click:function(e){return t.removeShare(n)}},scopedSlots:t._u([{key:"icon",fn:function(){return[e("IconClose",{attrs:{size:20}})]},proxy:!0}],null,!0)})]},proxy:!0}],null,!0)})})),t._v(" "),e("div",{staticClass:"text-block-buttons"},[e("NcButton",{staticClass:"text-block-buttons__button",attrs:{variant:"tertiary",disabled:t.saveLoading},on:{click:t.closeTextBlockDialog},scopedSlots:t._u([{key:"icon",fn:function(){return[e("IconClose",{attrs:{size:20}})]},proxy:!0}],null,!1,2888946197)},[t._v("\n\t\t\t\t\t"+t._s(t.t("mail","Cancel"))+"\n\t\t\t\t")]),t._v(" "),e("NcButton",{staticClass:"text-block-buttons__button",attrs:{variant:"primary",disabled:!t.localTextBlock.title||!t.localTextBlock.content||t.saveLoading},on:{click:t.saveTextBlock},scopedSlots:t._u([{key:"icon",fn:function(){return[t.saveLoading?e("NcLoadingIcon",{attrs:{size:20}}):e("IconCheck",{attrs:{size:20}})]},proxy:!0}],null,!1,1468414576)},[t._v("\n\t\t\t\t\t"+t._s(t.t("mail","Ok"))+"\n\t\t\t\t")])],1)]],2)],1)}),[],!1,null,"7e1b7282",null).exports},27518(t){"use strict";t.exports="data:image/svg+xml,%3c%21--%20-%20SPDX-FileCopyrightText:%202020%20Google%20Inc.%20-%20SPDX-License-Identifier:%20Apache-2.0%20--%3e%3csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20width=%2724%27%20height=%2724%27%20fill=%27%23222%27%3e%3cpath%20d=%27M15.4%2016.6L10.8%2012l4.6-4.6L14%206l-6%206%206%206%201.4-1.4z%27/%3e%3c/svg%3e"},27514(t){"use strict";t.exports="data:image/svg+xml,%3c%21--%20-%20SPDX-FileCopyrightText:%202020%20Google%20Inc.%20-%20SPDX-License-Identifier:%20Apache-2.0%20--%3e%3csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20width=%2724%27%20height=%2724%27%20fill=%27%23222%27%3e%3cpath%20d=%27M18.4%207.4L17%206l-6%206%206%206%201.4-1.4-4.6-4.6%204.6-4.6m-6%200L11%206l-6%206%206%206%201.4-1.4L7.8%2012l4.6-4.6z%27/%3e%3c/svg%3e"},79722(t){"use strict";t.exports="data:image/svg+xml,%3c%21--%20-%20SPDX-FileCopyrightText:%202020%20Google%20Inc.%20-%20SPDX-License-Identifier:%20Apache-2.0%20--%3e%3csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20width=%2724%27%20height=%2724%27%20fill=%27%23222%27%3e%3cpath%20d=%27M5.6%207.4L7%206l6%206-6%206-1.4-1.4%204.6-4.6-4.6-4.6m6%200L13%206l6%206-6%206-1.4-1.4%204.6-4.6-4.6-4.6z%27/%3e%3c/svg%3e"},86886(t){"use strict";t.exports="data:image/svg+xml,%3c%21--%20-%20SPDX-FileCopyrightText:%202020%20Google%20Inc.%20-%20SPDX-License-Identifier:%20Apache-2.0%20--%3e%3csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20width=%2724%27%20height=%2724%27%20fill=%27%23222%27%3e%3cpath%20d=%27M8.6%2016.6l4.6-4.6-4.6-4.6L10%206l6%206-6%206-1.4-1.4z%27/%3e%3c/svg%3e"},24225(t){"use strict";t.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHdpZHRoPSI1MDRweCIgaGVpZ2h0PSI1MDRweCIgdmlld0JveD0iMCAwIDUwNCA1MDQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+ICAgICAgICA8dGl0bGU+Z2x5cGgtbG9nb19NYXkyMDE2PC90aXRsZT4gICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+ICAgIDxkZWZzPiAgICAgICAgPHBvbHlnb24gaWQ9InBhdGgtMSIgcG9pbnRzPSIwIDAuMTU5IDUwMy44NDEgMC4xNTkgNTAzLjg0MSA1MDMuOTQgMCA1MDMuOTQiPjwvcG9seW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Y2LTMuOTktMS4xMzctMS42NjYtMi4zMjctMy40LTMuNjM3LTUuMTY5bC0uMDAyLS4wMDN6IiBmaWxsPSIjYzNjM2MzIi8+PHBhdGggZD0iTTIxMi45ODMgMjQ4LjQ5NWwtMzYuOTUyIDM2Ljk1M3YuODEyYTUuMjI3IDUuMjI3IDAgMCAwIDUuMjM4IDUuMjM4aDEuMDE1bDM1LjY2Ni0zNS42NjZhMTM2LjI3NSAxMzYuMjc1IDAgMCAwLTIuNzY0LTMuOSAzNy41NzUgMzcuNTc1IDAgMCAwLS45ODktMS40NGMtLjI5OS0uNTAzLS42MTYtMS4wMDYtLjk1LTEuNTA4LS4wODMtLjE2Mi0uMTc2LS4zMjYtLjI2NC0uNDg5eiIgZmlsbD0iI2ZkZGM0ZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJNMjExLjk5OCAyNjEuMDgzbC02LjE1MiA2LjE1MSAyNC4yNjQgMjQuMjY0aC43ODFhNS4yMjcgNS4yMjcgMCAwIDAgNS4yMzktNS4yMzh2LTEuMDQ1eiIgZmlsbD0iI2ZmZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48L2c+PC9zdmc+"},97083(t){"use strict";t.exports="data:image/svg+xml;utf8,<svg width=%27120%27 height=%2712%27 xmlns=%27http://www.w3.org/2000/svg%27 ><text style=%27paint-order:stroke fill; clip-path: inset%28-3px%29%27 stroke=%27%23EAEAEA%27 stroke-width=%2713%27 dominant-baseline=%27middle%27 fill=%27black%27 x=%273%27 y=%277%27 font-size=%279px%27 font-family=%27Consolas, %22Lucida Console%22, %22Lucida Sans Typewriter%22, %22DejaVu Sans Mono%22, %22Bitstream Vera Sans Mono%22, %22Liberation Mono%22, Monaco, %22Courier New%22, Courier, monospace%27>ADDRESS</text></svg>"},90923(t){"use strict";t.exports="data:image/svg+xml;utf8,<svg width=%27120%27 height=%2712%27 xmlns=%27http://www.w3.org/2000/svg%27 ><text style=%27paint-order:stroke fill; clip-path: inset%28-3px%29%27 stroke=%27%23EAEAEA%27 stroke-width=%2713%27 dominant-baseline=%27middle%27 fill=%27black%27 x=%273%27 y=%277%27 font-size=%279px%27 font-family=%27Consolas, %22Lucida Console%22, %22Lucida Sans Typewriter%22, %22DejaVu Sans Mono%22, %22Bitstream Vera Sans Mono%22, %22Liberation Mono%22, Monaco, %22Courier New%22, Courier, monospace%27>ASIDE</text></svg>"},88436(t){"use strict";t.exports="data:image/svg+xml;utf8,<svg width=%27120%27 height=%2712%27 xmlns=%27http://www.w3.org/2000/svg%27 ><text style=%27paint-order:stroke fill; clip-path: inset%28-3px%29%27 stroke=%27%23EAEAEA%27 stroke-width=%2713%27 dominant-baseline=%27middle%27 fill=%27black%27 x=%273%27 y=%277%27 font-size=%279px%27 font-family=%27Consolas, %22Lucida Console%22, %22Lucida Sans Typewriter%22, %22DejaVu Sans Mono%22, %22Bitstream Vera Sans Mono%22, %22Liberation Mono%22, Monaco, %22Courier New%22, Courier, monospace%27>BLOCKQUOTE</text></svg>"},81309(t){"use strict";t.exports="data:image/svg+xml;utf8,<svg width=%27120%27 height=%2712%27 xmlns=%27http://www.w3.org/2000/svg%27 ><text style=%27paint-order:stroke fill; clip-path: inset%28-3px%29%27 stroke=%27%23EAEAEA%27 stroke-width=%2713%27 dominant-baseline=%27middle%27 fill=%27black%27 x=%273%27 y=%277%27 font-size=%279px%27 font-family=%27Consolas, %22Lucida Console%22, %22Lucida Sans Typewriter%22, %22DejaVu Sans Mono%22, %22Bitstream Vera Sans Mono%22, %22Liberation Mono%22, Monaco, %22Courier New%22, Courier, monospace%27>DETAILS</text></svg>"},15228(t){"use strict";t.exports="data:image/svg+xml;utf8,<svg width=%27120%27 height=%2712%27 xmlns=%27http://www.w3.org/2000/svg%27 ><text style=%27paint-order:stroke fill; clip-path: inset%28-3px%29%27 stroke=%27%23EAEAEA%27 stroke-width=%2713%27 dominant-baseline=%27middle%27 fill=%27black%27 x=%273%27 y=%277%27 font-size=%279px%27 font-family=%27Consolas, %22Lucida Console%22, %22Lucida Sans Typewriter%22, %22DejaVu Sans Mono%22, %22Bitstream Vera Sans Mono%22, %22Liberation Mono%22, Monaco, %22Courier New%22, Courier, monospace%27>DIV</text></svg>"},69767(t){"use strict";t.exports="data:image/svg+xml;utf8,<svg width=%27120%27 height=%2712%27 xmlns=%27http://www.w3.org/2000/svg%27 ><text style=%27paint-order:stroke fill; clip-path: inset%28-3px%29%27 stroke=%27%23EAEAEA%27 stroke-width=%2713%27 dominant-baseline=%27middle%27 fill=%27black%27 x=%273%27 y=%277%27 font-size=%279px%27 font-family=%27Consolas, %22Lucida Console%22, %22Lucida Sans Typewriter%22, %22DejaVu Sans Mono%22, %22Bitstream Vera Sans Mono%22, %22Liberation Mono%22, Monaco, %22Courier New%22, Courier, monospace%27>FIGCAPTION</text></svg>"},34084(t){"use strict";t.exports="data:image/svg+xml;utf8,<svg width=%27120%27 height=%2712%27 xmlns=%27http://www.w3.org/2000/svg%27 ><text style=%27paint-order:stroke fill; clip-path: inset%28-3px%29%27 stroke=%27%23EAEAEA%27 stroke-width=%2713%27 dominant-baseline=%27middle%27 fill=%27black%27 x=%273%27 y=%277%27 font-size=%279px%27 font-family=%27Consolas, %22Lucida Console%22, %22Lucida Sans Typewriter%22, %22DejaVu Sans Mono%22, %22Bitstream Vera Sans Mono%22, %22Liberation Mono%22, Monaco, %22Courier New%22, Courier, monospace%27>FOOTER</text></svg>"},43524(t){"use strict";t.exports="data:image/svg+xml;utf8,<svg width=%27120%27 height=%2712%27 xmlns=%27http://www.w3.org/2000/svg%27 ><text style=%27paint-order:stroke fill; clip-path: inset%28-3px%29%27 stroke=%27%23EAEAEA%27 stroke-width=%2713%27 dominant-baseline=%27middle%27 fill=%27black%27 x=%273%27 y=%277%27 font-size=%279px%27 font-family=%27Consolas, %22Lucida Console%22, %22Lucida Sans Typewriter%22, %22DejaVu Sans Mono%22, %22Bitstream Vera Sans Mono%22, %22Liberation Mono%22, Monaco, %22Courier New%22, Courier, monospace%27>H1</text></svg>"},87757(t){"use strict";t.exports="data:image/svg+xml;utf8,<svg width=%27120%27 height=%2712%27 xmlns=%27http://www.w3.org/2000/svg%27 ><text style=%27paint-order:stroke fill; clip-path: inset%28-3px%29%27 stroke=%27%23EAEAEA%27 stroke-width=%2713%27 dominant-baseline=%27middle%27 fill=%27black%27 x=%273%27 y=%277%27 font-size=%279px%27 font-family=%27Consolas, %22Lucida Console%22, %22Lucida Sans Typewriter%22, %22DejaVu Sans Mono%22, %22Bitstream Vera Sans Mono%22, %22Liberation Mono%22, Monaco, %22Courier New%22, Courier, monospace%27>H2</text></svg>"},7310(t){"use strict";t.exports="data:image/svg+xml;utf8,<svg width=%27120%27 height=%2712%27 xmlns=%27http://www.w3.org/2000/svg%27 ><text style=%27paint-order:stroke fill; clip-path: inset%28-3px%29%27 stroke=%27%23EAEAEA%27 stroke-width=%2713%27 dominant-baseline=%27middle%27 fill=%27black%27 x=%273%27 y=%277%27 font-size=%279px%27 font-family=%27Consolas, %22Lucida Console%22, %22Lucida Sans Typewriter%22, %22DejaVu Sans Mono%22, %22Bitstream Vera Sans Mono%22, %22Liberation Mono%22, Monaco, %22Courier New%22, Courier, monospace%27>H3</text></svg>"},15599(t){"use strict";t.exports="data:image/svg+xml;utf8,<svg width=%27120%27 height=%2712%27 xmlns=%27http://www.w3.org/2000/svg%27 ><text style=%27paint-order:stroke fill; clip-path: inset%28-3px%29%27 stroke=%27%23EAEAEA%27 stroke-width=%2713%27 dominant-baseline=%27middle%27 fill=%27black%27 x=%273%27 y=%277%27 font-size=%279px%27 font-family=%27Consolas, %22Lucida Console%22, %22Lucida Sans Typewriter%22, %22DejaVu Sans Mono%22, %22Bitstream Vera Sans Mono%22, %22Liberation Mono%22, Monaco, %22Courier New%22, Courier, monospace%27>H4</text></svg>"},98256(t){"use strict";t.exports="data:image/svg+xml;utf8,<svg width=%27120%27 height=%2712%27 xmlns=%27http://www.w3.org/2000/svg%27 ><text style=%27paint-order:stroke fill; clip-path: inset%28-3px%29%27 stroke=%27%23EAEAEA%27 stroke-width=%2713%27 dominant-baseline=%27middle%27 fill=%27black%27 x=%273%27 y=%277%27 font-size=%279px%27 font-family=%27Consolas, %22Lucida Console%22, %22Lucida Sans Typewriter%22, %22DejaVu Sans Mono%22, %22Bitstream Vera Sans Mono%22, %22Liberation Mono%22, Monaco, %22Courier New%22, Courier, monospace%27>H5</text></svg>"},36921(t){"use strict";t.exports="data:image/svg+xml;utf8,<svg width=%27120%27 height=%2712%27 xmlns=%27http://www.w3.org/2000/svg%27 ><text style=%27paint-order:stroke fill; clip-path: inset%28-3px%29%27 stroke=%27%23EAEAEA%27 stroke-width=%2713%27 dominant-baseline=%27middle%27 fill=%27black%27 x=%273%27 y=%277%27 font-size=%279px%27 font-family=%27Consolas, %22Lucida Console%22, %22Lucida Sans Typewriter%22, %22DejaVu Sans Mono%22, %22Bitstream Vera Sans Mono%22, %22Liberation Mono%22, Monaco, %22Courier New%22, Courier, monospace%27>H6</text></svg>"},37074(t){"use strict";t.exports="data:image/svg+xml;utf8,<svg width=%27120%27 height=%2712%27 xmlns=%27http://www.w3.org/2000/svg%27 ><text style=%27paint-order:stroke fill; clip-path: inset%28-3px%29%27 stroke=%27%23EAEAEA%27 stroke-width=%2713%27 dominant-baseline=%27middle%27 fill=%27black%27 x=%273%27 y=%277%27 font-size=%279px%27 font-family=%27Consolas, %22Lucida Console%22, %22Lucida Sans Typewriter%22, %22DejaVu Sans Mono%22, %22Bitstream Vera Sans Mono%22, %22Liberation Mono%22, Monaco, %22Courier New%22, Courier, monospace%27>HEADER</text></svg>"},73490(t){"use strict";t.exports="data:image/svg+xml;utf8,<svg width=%27120%27 height=%2712%27 xmlns=%27http://www.w3.org/2000/svg%27 ><text style=%27paint-order:stroke fill; clip-path: inset%28-3px%29%27 stroke=%27%23EAEAEA%27 stroke-width=%2713%27 dominant-baseline=%27middle%27 fill=%27black%27 x=%273%27 y=%277%27 font-size=%279px%27 font-family=%27Consolas, %22Lucida Console%22, %22Lucida Sans Typewriter%22, %22DejaVu Sans Mono%22, %22Bitstream Vera Sans Mono%22, %22Liberation Mono%22, Monaco, %22Courier New%22, Courier, monospace%27>MAIN</text></svg>"},6901(t){"use strict";t.exports="data:image/svg+xml;utf8,<svg width=%27120%27 height=%2712%27 xmlns=%27http://www.w3.org/2000/svg%27 ><text style=%27paint-order:stroke fill; clip-path: inset%28-3px%29%27 stroke=%27%23EAEAEA%27 stroke-width=%2713%27 dominant-baseline=%27middle%27 fill=%27black%27 x=%273%27 y=%277%27 font-size=%279px%27 font-family=%27Consolas, %22Lucida Console%22, %22Lucida Sans Typewriter%22, %22DejaVu Sans Mono%22, %22Bitstream Vera Sans Mono%22, %22Liberation Mono%22, Monaco, %22Courier New%22, Courier, monospace%27>NAV</text></svg>"},63772(t){"use strict";t.exports="data:image/svg+xml;utf8,<svg width=%27120%27 height=%2712%27 xmlns=%27http://www.w3.org/2000/svg%27 ><text style=%27paint-order:stroke fill; clip-path: inset%28-3px%29%27 stroke=%27%23EAEAEA%27 stroke-width=%2713%27 dominant-baseline=%27middle%27 fill=%27black%27 x=%273%27 y=%277%27 font-size=%279px%27 font-family=%27Consolas, %22Lucida Console%22, %22Lucida Sans Typewriter%22, %22DejaVu Sans Mono%22, %22Bitstream Vera Sans Mono%22, %22Liberation Mono%22, Monaco, %22Courier New%22, Courier, monospace%27>OL</text></svg>"},16291(t){"use strict";t.exports="data:image/svg+xml;utf8,<svg width=%27120%27 height=%2712%27 xmlns=%27http://www.w3.org/2000/svg%27 ><text style=%27paint-order:stroke fill; clip-path: inset%28-3px%29%27 stroke=%27%23EAEAEA%27 stroke-width=%2713%27 dominant-baseline=%27middle%27 fill=%27black%27 x=%273%27 y=%277%27 font-size=%279px%27 font-family=%27Consolas, %22Lucida Console%22, %22Lucida Sans Typewriter%22, %22DejaVu Sans Mono%22, %22Bitstream Vera Sans Mono%22, %22Liberation Mono%22, Monaco, %22Courier New%22, Courier, monospace%27>P</text></svg>"},83206(t){"use strict";t.exports="data:image/svg+xml;utf8,<svg width=%27120%27 height=%2712%27 xmlns=%27http://www.w3.org/2000/svg%27 ><text style=%27paint-order:stroke fill; clip-path: inset%28-3px%29%27 stroke=%27%23EAEAEA%27 stroke-width=%2713%27 dominant-baseline=%27middle%27 fill=%27black%27 x=%273%27 y=%277%27 font-size=%279px%27 font-family=%27Consolas, %22Lucida Console%22, %22Lucida Sans Typewriter%22, %22DejaVu Sans Mono%22, %22Bitstream Vera Sans Mono%22, %22Liberation Mono%22, Monaco, %22Courier New%22, Courier, monospace%27>PRE</text></svg>"},94656(t){"use strict";t.exports="data:image/svg+xml;utf8,<svg width=%27120%27 height=%2712%27 xmlns=%27http://www.w3.org/2000/svg%27 ><text style=%27paint-order:stroke fill; clip-path: inset%28-3px%29%27 stroke=%27%23EAEAEA%27 stroke-width=%2713%27 dominant-baseline=%27middle%27 fill=%27black%27 x=%273%27 y=%277%27 font-size=%279px%27 font-family=%27Consolas, %22Lucida Console%22, %22Lucida Sans Typewriter%22, %22DejaVu Sans Mono%22, %22Bitstream Vera Sans Mono%22, %22Liberation Mono%22, Monaco, %22Courier New%22, Courier, monospace%27>SECTION</text></svg>"},41510(t){"use strict";t.exports="data:image/svg+xml;utf8,<svg width=%27120%27 height=%2712%27 xmlns=%27http://www.w3.org/2000/svg%27 ><text style=%27paint-order:stroke fill; clip-path: inset%28-3px%29%27 stroke=%27%23EAEAEA%27 stroke-width=%2713%27 dominant-baseline=%27middle%27 fill=%27black%27 x=%273%27 y=%277%27 font-size=%279px%27 font-family=%27Consolas, %22Lucida Console%22, %22Lucida Sans Typewriter%22, %22DejaVu Sans Mono%22, %22Bitstream Vera Sans Mono%22, %22Liberation Mono%22, Monaco, %22Courier New%22, Courier, monospace%27>UL</text></svg>"},50310(){}}]); //# sourceMappingURL=mail.7313.cb4c349cba3dc02cfa99.js.map
Save File
Cancel