f7cloud_client/apps/mail/js/mail.9157.47fdf0c0fbc990b8301b.js
root 8b6a0139db f7cloud_client
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-17 22:59:26 +00:00

2 lines
179 KiB
JavaScript
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(globalThis.webpackChunkf7cloud_mail=globalThis.webpackChunkf7cloud_mail||[]).push([[7471,9157],{4728(t,e,n){"use strict";n.d(e,{Ay:()=>s,TB:()=>o,Xu:()=>a});var i=n(81435);const a="change_alias",o="editor_ready";class s 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 a=t.data.processor.toView(n),o=t.data.toModel(a),s=e.createElement("signature");e.append(e.createText("-- "),s),e.append(e.createElement("paragraph"),s),e.append(o,s),i&&e.append(e.createElement("paragraph"),s);const r=this.findPosition(t,e,i);t.model.insertContent(s,r)}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===a&&(this.removeSignatureElement(this.editor,i),this.insertSignatureElement(this.editor,i,e,n)),t!==o||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);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){console.error("could not translate special mailbox",t)}return t.displayName}},6791(t,e,n){"use strict";n.d(e,{LG:()=>r,Np:()=>o,Zd:()=>l,bq:()=>s});var i=n(66802),a=n(63814);function o(t){const e=(0,a.Jv)("/apps/mail/api/contactIntegration/match/{mail}",{mail:t});return i.Ay.get(e).then(t=>t.data)}function s(t,e){const n=(0,a.Jv)("/apps/mail/api/contactIntegration/add");return i.Ay.put(n,{uid:t,mail:e}).then(t=>t.data)}function r(t,e){const n=(0,a.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,a.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:()=>s,I:()=>o});var i=n(66802),a=n(63814);async function o(t,e,n){const o=(0,a.Jv)("/apps/mail/api/trustedsenders/{email}?type={type}",{email:t,type:e});n?await i.Ay.put(o):await i.Ay.delete(o)}async function s(){const t=(0,a.Jv)("/apps/mail/api/trustedsenders");return(await i.Ay.get(t)).data.data}},28290(t,e,n){"use strict";function i(t,e){if("read"===t?.permission)return!1;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})},66613(t,e,n){var i={"./af.js":[35469,[5469]],"./af.umd.js":[31333,[1333]],"./ar.js":[55169,[5169]],"./ar.umd.js":[15145,[5145]],"./ast.js":[21380,[1380]],"./ast.umd.js":[12344,[2344]],"./az.js":[38937,[8937]],"./az.umd.js":[47617,[7617]],"./be.js":[41043,[1043]],"./be.umd.js":[26295,[6295]],"./bg.js":[39637,[9637]],"./bg.umd.js":[909,[909]],"./bn.js":[40702,[702]],"./bn.umd.js":[38574,[8574]],"./bs.js":[54153,[4153]],"./bs.umd.js":[39953,[9953]],"./ca.js":[79526,[9526]],"./ca.umd.js":[44182,[4182]],"./cs.js":[70444,[444]],"./cs.umd.js":[43840,[3840]],"./da.js":[52549,[2549]],"./da.umd.js":[36477,[6477]],"./de-ch.js":[61429,[1429]],"./de-ch.umd.js":[71085,[1085]],"./de.js":[36585,[6585]],"./de.umd.js":[36657,[6657]],"./el.js":[41151,[1151]],"./el.umd.js":[14899,[4899]],"./en-au.js":[95716,[5716]],"./en-au.umd.js":[51896,[1896]],"./en-gb.js":[53556,[1175]],"./en-gb.umd.js":[81499,[1499]],"./en.js":[36673,[6673]],"./en.umd.js":[37833,[7833]],"./eo.js":[82770,[2770]],"./eo.umd.js":[85730,[5730]],"./es-co.js":[30805,[805]],"./es-co.umd.js":[85485,[5485]],"./es.js":[52230,[2230]],"./es.umd.js":[59414,[9414]],"./et.js":[23495,[3495]],"./et.umd.js":[91259,[1259]],"./eu.js":[82448,[2448]],"./eu.umd.js":[29540,[9540]],"./fa.js":[87579,[7579]],"./fa.umd.js":[22335,[2335]],"./fi.js":[76595,[6595]],"./fi.umd.js":[43927,[3927]],"./fr.js":[32910,[2910]],"./fr.umd.js":[55358,[5358]],"./gl.js":[23677,[3677]],"./gl.umd.js":[31669,[1669]],"./gu.js":[41254,[1254]],"./gu.umd.js":[18742,[8742]],"./he.js":[41269,[1269]],"./he.umd.js":[41325,[1325]],"./hi.js":[51649,[1649]],"./hi.umd.js":[8649,[8649]],"./hr.js":[47952,[7952]],"./hr.umd.js":[92900,[2900]],"./hu.js":[14277,[4277]],"./hu.umd.js":[53565,[3565]],"./hy.js":[46897,[6897]],"./hy.umd.js":[11513,[1513]],"./id.js":[77507,[7507]],"./id.umd.js":[42823,[2823]],"./it.js":[14867,[4867]],"./it.umd.js":[84215,[4215]],"./ja.js":[82671,[2671]],"./ja.umd.js":[12291,[2291]],"./jv.js":[14334,[4334]],"./jv.umd.js":[88590,[8590]],"./kk.js":[30028,[28]],"./kk.umd.js":[1440,[1440]],"./km.js":[76074,[6074]],"./km.umd.js":[16250,[6250]],"./kn.js":[34999,[4999]],"./kn.umd.js":[41547,[1547]],"./ko.js":[45280,[5280]],"./ko.umd.js":[4660,[4660]],"./ku.js":[6818,[6818]],"./ku.umd.js":[91122,[1122]],"./lt.js":[26338,[6338]],"./lt.umd.js":[19090,[9090]],"./lv.js":[37368,[7368]],"./lv.umd.js":[17932,[7932]],"./ms.js":[27166,[7166]],"./ms.umd.js":[82094,[2094]],"./nb.js":[68150,[8150]],"./nb.umd.js":[62438,[2438]],"./ne.js":[43031,[3031]],"./ne.umd.js":[95915,[5915]],"./nl.js":[40456,[456]],"./nl.umd.js":[36348,[6348]],"./no.js":[93377,[3377]],"./no.umd.js":[2409,[2409]],"./oc.js":[6968,[6968]],"./oc.umd.js":[37484,[7484]],"./pl.js":[20166,[166]],"./pl.umd.js":[8950,[8950]],"./pt-br.js":[15411,[5411]],"./pt-br.umd.js":[22711,[2711]],"./pt.js":[92670,[2670]],"./pt.umd.js":[72078,[2078]],"./ro.js":[30733,[733]],"./ro.umd.js":[21541,[1541]],"./ru.js":[25107,[5107]],"./ru.umd.js":[37335,[7335]],"./si.js":[55166,[5166]],"./si.umd.js":[21166,[1166]],"./sk.js":[66964,[6964]],"./sk.umd.js":[55752,[5752]],"./sl.js":[64481,[4481]],"./sl.umd.js":[85801,[5801]],"./sq.js":[96390,[6390]],"./sq.umd.js":[76534,[6534]],"./sr-latn.js":[78453,[8453]],"./sr-latn.umd.js":[57101,[7101]],"./sr.js":[18147,[8147]],"./sr.umd.js":[24711,[4711]],"./sv.js":[67655,[7655]],"./sv.umd.js":[19451,[9451]],"./th.js":[39998,[9998]],"./th.umd.js":[59246,[9246]],"./ti.js":[23741,[3741]],"./ti.umd.js":[90517,[517]],"./tk.js":[43483,[3483]],"./tk.umd.js":[71071,[1071]],"./tr.js":[39676,[9676]],"./tr.umd.js":[86096,[6096]],"./tt.js":[17626,[7626]],"./tt.umd.js":[13002,[3002]],"./ug.js":[6714,[6714]],"./ug.umd.js":[57578,[7578]],"./uk.js":[94254,[4254]],"./uk.umd.js":[42270,[2270]],"./ur.js":[36533,[8914]],"./ur.umd.js":[31533,[1533]],"./uz.js":[47517,[7517]],"./uz.umd.js":[16533,[6533]],"./vi.js":[18723,[8723]],"./vi.umd.js":[17031,[7031]],"./zh-cn.js":[20124,[124]],"./zh-cn.umd.js":[75472,[5472]],"./zh.js":[43136,[3136]],"./zh.umd.js":[88820,[8820]]};function a(t){if(!n.o(i,t))return Promise.resolve().then(()=>{var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e});var e=i[t],a=e[0];return n.e(e[1][0]).then(()=>n(a))}a.keys=()=>Object.keys(i),a.id=66613,t.exports=a},2369(t,e,n){"use strict";n.d(e,{A:()=>r});var i=n(71354),a=n.n(i),o=n(76314),s=n.n(o)()(a());s.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 r=s},89334(t,e,n){"use strict";n.d(e,{A:()=>r});var i=n(71354),a=n.n(i),o=n(76314),s=n.n(o)()(a());s.push([t.id,".mailbox-share-modal[data-v-7a18a352]{padding:0 4px;min-width:320px;max-width:420px}.mailbox-share-modal__folder-name[data-v-7a18a352]{font-weight:600;margin-bottom:12px}.mailbox-share-modal__heading[data-v-7a18a352]{margin:12px 0 6px;font-size:13px}.mailbox-share-modal__add[data-v-7a18a352]{display:flex;flex-direction:column;gap:8px}.mailbox-share-modal__row[data-v-7a18a352]{display:flex;align-items:flex-end;gap:8px}.mailbox-share-modal__select[data-v-7a18a352]{flex:1;min-width:0}.mailbox-share-modal__add-btn[data-v-7a18a352]{flex-shrink:0}.mailbox-share-modal__permission[data-v-7a18a352]{max-width:200px}.mailbox-share-modal__permission-inline[data-v-7a18a352]{max-width:160px;margin-top:2px}.mailbox-share-modal__empty[data-v-7a18a352]{color:var(--color-text-maxcontrast);font-size:13px;margin:8px 0}.mailbox-share-modal__actions[data-v-7a18a352]{margin-top:16px;padding-top:12px;border-top:1px solid var(--color-border)}","",{version:3,sources:["webpack://./src/components/MailboxShareModal.vue"],names:[],mappings:"AACA,sCACC,aAAA,CACA,eAAA,CACA,eAAA,CAEA,mDACC,eAAA,CACA,kBAAA,CAGD,+CACC,iBAAA,CACA,cAAA,CAGD,2CACC,YAAA,CACA,qBAAA,CACA,OAAA,CAGD,2CACC,YAAA,CACA,oBAAA,CACA,OAAA,CAGD,8CACC,MAAA,CACA,WAAA,CAGD,+CACC,aAAA,CAGD,kDACC,eAAA,CAGD,yDACC,eAAA,CACA,cAAA,CAGD,6CACC,mCAAA,CACA,cAAA,CACA,YAAA,CAGD,+CACC,eAAA,CACA,gBAAA,CACA,wCAAA",sourcesContent:["\n.mailbox-share-modal {\n\tpadding: 0 4px;\n\tmin-width: 320px;\n\tmax-width: 420px;\n\n\t&__folder-name {\n\t\tfont-weight: 600;\n\t\tmargin-bottom: 12px;\n\t}\n\n\t&__heading {\n\t\tmargin: 12px 0 6px;\n\t\tfont-size: 13px;\n\t}\n\n\t&__add {\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tgap: 8px;\n\t}\n\n\t&__row {\n\t\tdisplay: flex;\n\t\talign-items: flex-end;\n\t\tgap: 8px;\n\t}\n\n\t&__select {\n\t\tflex: 1;\n\t\tmin-width: 0;\n\t}\n\n\t&__add-btn {\n\t\tflex-shrink: 0;\n\t}\n\n\t&__permission {\n\t\tmax-width: 200px;\n\t}\n\n\t&__permission-inline {\n\t\tmax-width: 160px;\n\t\tmargin-top: 2px;\n\t}\n\n\t&__empty {\n\t\tcolor: var(--color-text-maxcontrast);\n\t\tfont-size: 13px;\n\t\tmargin: 8px 0;\n\t}\n\n\t&__actions {\n\t\tmargin-top: 16px;\n\t\tpadding-top: 12px;\n\t\tborder-top: 1px solid var(--color-border);\n\t}\n}\n"],sourceRoot:""}]);const r=s},7337(t,e,n){"use strict";n.d(e,{A:()=>r});var i=n(71354),a=n.n(i),o=n(76314),s=n.n(o)()(a());s.push([t.id,"@keyframes rotation-6420d344{from{transform:rotate(0deg)}to{transform:rotate(-360deg)}}.mail-navigation__new-message-button[data-v-6420d344]{padding:calc(var(--default-grid-baseline, 4px)*2)}.mail-navigation__error-message[data-v-6420d344]{display:flex;align-items:center;gap:.5rem}.outbox[data-v-6420d344]{padding:calc(var(--default-grid-baseline, 4px)*2);padding-bottom:0;width:auto}.outbox__border[data-v-6420d344]{border-top:1px solid var(--color-background-darker)}.mail-settings[data-v-6420d344]{padding:calc(var(--default-grid-baseline, 4px)*2);padding-top:0}.mail-settings__button[data-v-6420d344]{display:flex;width:100% !important;justify-content:start !important}.v-popper__inner[data-v-6420d344]{height:unset !important}.mail-navigation__shared-section[data-v-6420d344]{margin-top:calc(var(--default-grid-baseline, 4px)*2)}.mail-navigation__shared-heading[data-v-6420d344]{margin:0;padding:calc(var(--default-grid-baseline, 4px)*2) calc(var(--default-grid-baseline, 4px)*2) calc(var(--default-grid-baseline, 4px));font-size:var(--default-font-size);font-weight:600;color:var(--color-text-maxcontrast)}.mail-navigation__shared-heading--small[data-v-6420d344]{font-size:.85rem;font-weight:500}.mail-navigation__shared-group[data-v-6420d344]{margin-bottom:2px}.mail-navigation__shared-caption[data-v-6420d344]{display:flex;align-items:center;width:100%;padding:calc(var(--default-grid-baseline, 4px)*1.5) calc(var(--default-grid-baseline, 4px)*2);margin:0;border:none;background:rgba(0,0,0,0);color:var(--color-main-text);font-size:var(--default-font-size);text-align:left;cursor:pointer;gap:2px}.mail-navigation__shared-caption[data-v-6420d344]:hover{background:var(--color-background-hover)}.mail-navigation__shared-chevron[data-v-6420d344]{flex-shrink:0;color:var(--color-text-maxcontrast)}.mail-navigation__shared-caption-text[data-v-6420d344]{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}","",{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,CAGD,kDACC,oDAAA,CAGD,kDACC,QAAA,CACA,mIAAA,CACA,kCAAA,CACA,eAAA,CACA,mCAAA,CAEA,yDACC,gBAAA,CACA,eAAA,CAIF,gDACC,iBAAA,CAGD,kDACC,YAAA,CACA,kBAAA,CACA,UAAA,CACA,6FAAA,CACA,QAAA,CACA,WAAA,CACA,wBAAA,CACA,4BAAA,CACA,kCAAA,CACA,eAAA,CACA,cAAA,CACA,OAAA,CAEA,wDACC,wCAAA,CAIF,kDACC,aAAA,CACA,mCAAA,CAGD,uDACC,MAAA,CACA,eAAA,CACA,sBAAA,CACA,kBAAA",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.mail-navigation__shared-section {\n\tmargin-top: calc(var(--default-grid-baseline, 4px) * 2);\n}\n\n.mail-navigation__shared-heading {\n\tmargin: 0;\n\tpadding: calc(var(--default-grid-baseline, 4px) * 2) calc(var(--default-grid-baseline, 4px) * 2) calc(var(--default-grid-baseline, 4px));\n\tfont-size: var(--default-font-size);\n\tfont-weight: 600;\n\tcolor: var(--color-text-maxcontrast);\n\n\t&--small {\n\t\tfont-size: 0.85rem;\n\t\tfont-weight: 500;\n\t}\n}\n\n.mail-navigation__shared-group {\n\tmargin-bottom: 2px;\n}\n\n.mail-navigation__shared-caption {\n\tdisplay: flex;\n\talign-items: center;\n\twidth: 100%;\n\tpadding: calc(var(--default-grid-baseline, 4px) * 1.5) calc(var(--default-grid-baseline, 4px) * 2);\n\tmargin: 0;\n\tborder: none;\n\tbackground: transparent;\n\tcolor: var(--color-main-text);\n\tfont-size: var(--default-font-size);\n\ttext-align: left;\n\tcursor: pointer;\n\tgap: 2px;\n\n\t&:hover {\n\t\tbackground: var(--color-background-hover);\n\t}\n}\n\n.mail-navigation__shared-chevron {\n\tflex-shrink: 0;\n\tcolor: var(--color-text-maxcontrast);\n}\n\n.mail-navigation__shared-caption-text {\n\tflex: 1;\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\twhite-space: nowrap;\n}\n\n"],sourceRoot:""}]);const r=s},42127(t,e,n){"use strict";n.d(e,{A:()=>r});var i=n(71354),a=n.n(i),o=n(76314),s=n.n(o)()(a());s.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 r=s},35800(t,e,n){"use strict";n.d(e,{A:()=>r});var i=n(71354),a=n.n(i),o=n(76314),s=n.n(o)()(a());s.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 r=s},35420(t,e,n){"use strict";n.d(e,{A:()=>r});var i=n(71354),a=n.n(i),o=n(76314),s=n.n(o)()(a());s.push([t.id,".counter-bubble__counter[data-v-a43a7b5e]{max-width:initial}","",{version:3,sources:["webpack://./src/components/NavigationMailbox.vue"],names:[],mappings:"AACA,0CACC,iBAAA",sourcesContent:["\n.counter-bubble__counter {\n\tmax-width: initial;\n}\n"],sourceRoot:""}]);const r=s},29922(t,e,n){"use strict";n.d(e,{A:()=>r});var i=n(71354),a=n.n(i),o=n(76314),s=n.n(o)()(a());s.push([t.id,".navigation-outbox__unread-counter[data-v-6c2343f2]{margin-inline-end:calc(var(--default-grid-baseline)*2)}.outbox-opacity-icon[data-v-6c2343f2]{opacity:.7}.outbox-opacity-icon[data-v-6c2343f2]:hover{opacity:1}","",{version:3,sources:["webpack://./src/components/NavigationOutbox.vue"],names:[],mappings:"AAEC,oDACC,sDAAA,CAIF,sCACC,UAAA,CACA,4CACC,SAAA",sourcesContent:["\n.navigation-outbox {\n\t&__unread-counter {\n\t\tmargin-inline-end: calc(var(--default-grid-baseline) * 2);\n\t}\n}\n\n.outbox-opacity-icon {\n\topacity: .7;\n\t&:hover {\n\t\topacity: 1;\n\t}\n}\n"],sourceRoot:""}]);const r=s},73233(t,e,n){"use strict";n.d(e,{A:()=>r});var i=n(71354),a=n.n(i),o=n(76314),s=n.n(o)()(a());s.push([t.id,".header[data-v-145401bb]{display:flex;align-items:center;justify-content:space-between;gap:var(--default-grid-baseline)}.refresh__button[data-v-145401bb]{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 r=s},59591(t,e,n){"use strict";n.d(e,{A:()=>r});var i=n(71354),a=n.n(i),o=n(76314),s=n.n(o)()(a());s.push([t.id,".editor-wrapper--bordered[data-v-6a2bdadf]{--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-6a2bdadf] .ck.ck-editor__editable_inline{padding:0 !important}.editor-wrapper--bordered[data-v-6a2bdadf]: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-6a2bdadf]:hover{padding:calc(9px - var(--border-offset));border-color:var(--color-main-text);border-width:var(--border-width-input-focused, 2px)}.editor[data-v-6a2bdadf]{width:100%;height:calc(100% - 75px);overflow:scroll;margin-bottom:10px}.editor.ck[data-v-6a2bdadf]{border:none !important;box-shadow:none !important;padding:0}[data-v-6a2bdadf] a{color:#07d}[data-v-6a2bdadf] 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 r=s},47724(t,e,n){"use strict";n.d(e,{A:()=>r});var i=n(71354),a=n.n(i),o=n(76314),s=n.n(o)()(a());s.push([t.id,".empty-content[data-v-65dec736]{height:100%;display:flex}.certificate-modal[data-v-65dec736]{padding:calc(var(--default-grid-baseline)*5)}.certificate-modal__list table[data-v-65dec736]{table-layout:fixed;width:100%}.certificate-modal__list table th[data-v-65dec736]{color:var(--color-text-maxcontrast)}.certificate-modal__list table th[data-v-65dec736],.certificate-modal__list table td[data-v-65dec736]{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-65dec736]:last-child,.certificate-modal__list table td[data-v-65dec736]:last-child{flex:1 1 0px}.certificate-modal__list table span[data-v-65dec736]{text-overflow:ellipsis}.certificate-modal__list table tr[data-v-65dec736]{display:flex;flex-direction:row;align-items:center}.certificate-modal__list table tr[data-v-65dec736]:hover{background-color:unset}.certificate-modal__list__actions[data-v-65dec736]{margin:calc(var(--default-grid-baseline)*3);float:inline-end}.certificate-modal__import[data-v-65dec736]{display:flex;flex-direction:column;gap:calc(var(--default-grid-baseline)*2)}.certificate-modal__import input[type=file][data-v-65dec736]{display:flex;width:100%}.certificate-modal__import__type[data-v-65dec736]{display:flex;gap:0 calc(var(--default-grid-baseline)*5);flex-wrap:wrap}.certificate-modal__import__type>div[data-v-65dec736]{display:flex;gap:var(--default-grid-baseline);align-items:center}.certificate-modal__import__hints[data-v-65dec736]{color:var(--color-text-maxcontrast)}.certificate-modal__import__actions[data-v-65dec736]{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 r=s},80330(t,e,n){"use strict";n.d(e,{A:()=>r});var i=n(71354),a=n.n(i),o=n(76314),s=n.n(o)()(a());s.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 r=s},59520(t,e,n){"use strict";n.d(e,{A:()=>r});var i=n(71354),a=n.n(i),o=n(76314),s=n.n(o)()(a());s.push([t.id,".text-block-list-item[data-v-7848a15a]{padding-inline-start:0px !important;padding-inline-end:0px !important}.text-block-list-item[data-v-7848a15a] .list-item-content{padding:0px !important}.text-block-buttons[data-v-7848a15a]{width:100%;justify-self:end;display:flex;justify-content:flex-end}.text-block-buttons__button[data-v-7848a15a]{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 r=s},47941(t,e,n){"use strict";n.d(e,{A:()=>r});var i=n(71354),a=n.n(i),o=n(76314),s=n.n(o)()(a());s.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-text-maxcontrast) !important;\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:";AA0iBA;;;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,0DAAA;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 F7cloud GmbH and F7cloud 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 '@f7cloud/l10n'\nimport { emojiAddRecent, emojiSearch } from '@f7cloud/vue'\nimport {\n\tAlignment,\n\tBase64UploadAdapter,\n\tBlockQuote,\n\tBold,\n\tDecoupledEditor,\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\tStrikethrough,\n\tSubscript,\n\tSuperscript,\n\tUnderline,\n} from 'ckeditor5'\nimport { getLinkWithPicker, searchProvider } from '@f7cloud/vue/components/NcRichText'\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\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])\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'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])\n\t\t}\n\n\t\treturn {\n\t\t\tlinkTribute: null,\n\t\t\temojiTribute: null,\n\t\t\ttextSmiles: [],\n\t\t\tready: false,\n\t\t\teditor: DecoupledEditor,\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: this.customRenderer,\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\t\t\t},\n\t\t}\n\t},\n\n\tbeforeMount() {\n\t\tthis.loadEditorTranslations(getLanguage())\n\t},\n\n\tmethods: {\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\tlet contactResults = await autoCompleteByName(text)\n\t\t\tcontactResults = contactResults.filter((result) => result.email.length > 0)\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, north, southEast, southWest, northEast, northWest,\n\t\t\t\tsouthMiddleEast, southMiddleWest, northMiddleEast, northMiddleWest,\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\tif (language === 'en') {\n\t\t\t\t// The default, nothing to fetch\n\t\t\t\treturn this.showEditor('en')\n\t\t\t}\n\n\t\t\ttry {\n\t\t\t\tlogger.debug(`loading ${language} translations for CKEditor`)\n\n\t\t\t\t/* eslint-disable @stylistic/comma-dangle, @stylistic/function-paren-newline */\n\t\t\t\tconst { default: coreTranslations } = await import(\n\t\t\t\t\t/* webpackMode: \"lazy\" */\n\t\t\t\t\t`ckeditor5/translations/${language}.js`\n\t\t\t\t)\n\t\t\t\t/* eslint-enable @stylistic/comma-dangle, @stylistic/function-paren-newline */\n\n\t\t\t\tthis.showEditor(language, [coreTranslations])\n\t\t\t} catch (error) {\n\t\t\t\tlogger.error(`could not find CKEditor translations for \"${language}\"`, { error })\n\t\t\t\tthis.showEditor('en')\n\t\t\t}\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\tconsole.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\tthis.editorInstance.execute('insertItem', { email: item.email[0], label: item.label }, '@')\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\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.$emit('show-toolbar', editor.ui._focusableToolbarDefinitions[0].toolbarView.element)\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-text-maxcontrast) !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\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 r=s},88579(t,e,n){"use strict";n.d(e,{A:()=>L});var i=n(53334),a=n(60103),o=n(51849),s=n(71229),r=n(57747),l=n(71561),c=n(10578),d=n(86791),u=n(18896),A=n(76476),m=n(51648),p=n(49519),h=n(28290);const g={name:"MailboxPicker",components:{ButtonVue:a.x1,Modal:a.FH,IconInbox:c.A,IconDraft:d.A,IconSent:u.A,IconArchive:s.A,IconTrash:A.A,IconFolder:l.A,IconBreadcrumb:r.A,IconLoading:a.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,o.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,h.w)(t,"k")):this.mailboxes.filter(t=>(0,h.w)(t,"i"))}},methods:{getMailboxIcon:t=>t.specialRole?"icon-"+t.specialRole:"icon-folder",getMailboxTitle:t=>(0,m.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),C=n.n(f),v=n(77659),y=n.n(v),M=n(55056),w=n.n(M),k=n(10540),I=n.n(k),S=n(41113),_=n.n(S),N=n(2369),D={};D.styleTagTransform=_(),D.setAttributes=w(),D.insert=y().bind(null,"head"),D.domAPI=C(),D.insertStyleElement=I(),x()(N.A,D),N.A&&N.A.locals&&N.A.locals;var j=(0,n(14486).A)(g,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 L=j.exports},69125(e,n,i){"use strict";i.d(n,{A:()=>Ye});var a=i(60103),o=i(51849),s=i(72522),r=i(6961),l=i(57747),c=i(71561),d=i(97101),u=i(86883),A=i(85168),m=i(63814),p=i(27380),h=i(6766),g=i(90629),b=i(56702),x=i(44428),f=i(47305),C=i(92316),v=i(28760),y=i(30867),M=i(49954),w=i(67123),k=i.n(w),I=i(81131),S=i.n(I),_=i(27742),N=i.n(_),D=i(10854),j=i.n(D),L=i(5652),T=i(76476),E=i(85745),z=i(49519);const B=j()(N()("address")),O={name:"InternalAddress",components:{ButtonVue:a.x1,NcDialog:a.i$,NcTextField:a.v,NcActionButton:a.Ko,NcListItem:a.l,IconDomain:C.A,IconEmail:L.A,IconDelete:T.A,IconAdd:M.A},data(){return{openDialog:!1,newAddress:"",buttons:[{label:"Cancel",icon:k(),callback:()=>{this.openDialog=!1}},{label:"Ok",type:"primary",icon:S(),callback:()=>{this.addInternalAddress()}}]}},computed:{...(0,o.n2)(z.A),list(){return this.mainStore.getInternalAddresses},sortedDomains(){return B(this.list.filter(t=>"domain"===t.type))},sortedEmails(){return B(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){E.A.error(`Could not remove internal address ${e.email}`,{error:n}),(0,A.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){E.A.error(`Could not add internal address ${this.newAddress}`,{error:e}),(0,A.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 U=i(14486);const P=(0,U.A)(O,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"),value:t.newAddress},on:{"update:value":function(e){t.newAddress=e}}})],1)],2)},[],!1,null,null,null).exports;var Q=i(51651),R=i(39547),Y=i.n(R);class F extends Error{constructor(){super(),this.name=F.name}}const G="pkcs12",W={name:"SmimeCertificateModal",components:{NcModal:a.FH,NcButton:a.x1,NcPasswordField:a.b9,NcEmptyContent:a.yI,DeleteIcon:T.A},data:()=>({TYPE_PKCS12:G,TYPE_PEM:"pem",moment:Q.A,showImportScreen:!1,loading:!1,certificateType:G,certificate:void 0,privateKey:void 0,password:""}),computed:{...(0,o.n2)(z.A),...(0,o.aH)(z.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===G)try{const t=function(t,e){const n=new(Y().util.ByteBuffer)(t),i=Y().asn1.fromDer(n),a=Y().pkcs12.pkcs12FromAsn1(i,e),o=t=>a.getBags({bagType:t})[t],s=o(Y().pki.oids.certBag),r=o(Y().pki.oids.pkcs8ShroudedKeyBag);if(0===s.length)throw new F("The PKCS #12 certificate must contain at least one certificate");if(1!==r.length)throw new F("The PKCS #12 certificate must contain a single key");return{certificate:s.map(t=>Y().pki.certificateToPem(t.cert)).join("\r\n"),privateKey:Y().pki.privateKeyToPem(r[0].key)}}(await n.arrayBuffer(),this.password);n=new Blob([t.certificate]),e=new Blob([t.privateKey])}catch(e){return void(e.name===F.name?(E.A.error("PKCS #12 certificate contains multiple certs or keys",{error:e}),(0,A.Qg)(t("mail","The provided PKCS #12 certificate must contain at least one certificate and exactly one private key."))):(E.A.debug("Is probably not a PKCS #12 certificate or the password is wrong",{error:e}),(0,A.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,A.Te)(t("mail","Certificate imported successfully")),this.resetImportForm()}catch(n){E.A.error(`Failed to import a S/MIME certificate: ${n.response?.data?.data}`,{error:n}),e?(0,A.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,A.Qg)(t("mail","Failed to import the certificate"))}finally{this.loading=!1}},resetImportForm(){this.certificateType=G,this.showImportScreen=!1,this.certificate=void 0,this.privateKey=void 0,this.password=""}}};var V=i(85072),Z=i.n(V),H=i(97825),$=i.n(H),q=i(77659),J=i.n(q),K=i(55056),X=i.n(K),tt=i(10540),et=i.n(tt),nt=i(41113),it=i.n(nt),at=i(47724),ot={};ot.styleTagTransform=it(),ot.setAttributes=X(),ot.insert=J().bind(null,"head"),ot.domAPI=$(),ot.insertStyleElement=et(),Z()(at.A,ot),at.A&&at.A.locals&&at.A.locals;var st=(0,U.A)(W,function(){var t=this,e=t._self._c;return e("NcModal",{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:{value:t.password,label:t.t("mail","Password")},on:{"update:value":function(e){t.password=e}}})],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,"65dec736",null);const rt=st.exports,lt={name:"List",components:{ListItem:i(5848).A},props:{shared:{type:Boolean,default:!1},textBlocks:{type:Array,required:!0}},methods:{}};var ct=i(80330),dt={};dt.styleTagTransform=it(),dt.setAttributes=X(),dt.insert=J().bind(null,"head"),dt.domAPI=$(),dt.insertStyleElement=et(),Z()(ct.A,dt),ct.A&&ct.A.locals&&ct.A.locals;const ut=(0,U.A)(lt,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 At=i(28793),mt=i(37528);const pt=j()(N()("email")),ht={name:"TrustedSenders",components:{NcActionButton:a.Ko,NcListItem:a.l,IconDelete:T.A,IconDomain:C.A,IconEmail:L.A},data:()=>({list:[]}),computed:{sortedSenders(){return pt(this.list)}},async mounted(){this.list=await(0,mt.E)()},methods:{async removeSender(e){this.list=this.list.filter(t=>t.id!==e.id);try{await(0,mt.I)(e.email,e.type,!1)}catch(n){E.A.error(`Could not remove trusted sender ${e.email}`,{error:n}),(0,A.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}}},gt={name:"AppSettingsMenu",components:{TrustedSenders:(0,U.A)(ht,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:P,NcButton:a.x1,IconAdd:M.A,IconMedal:y.A,IconClose:b.A,IconCheck:g.A,SmimeCertificateModal:rt,NcAppSettingsDialog:a.q4,NcAppSettingsSection:a.Te,NcAppSettingsShortcutsSection:a.mz,NcRadioGroup:a.RM,NcRadioGroupButton:a.O8,CompactMode:v.A,VerticalSplit:f.A,HorizontalSplit:x.A,List:ut,NcDialog:a.i$,NcInputField:a.Es,TextEditor:At.A,NcFormBox:a.jB,NcFormBoxButton:a.f7,NcFormBoxSwitch:a.PX,NcFormGroup:a.Nt,IconDomain:C.A,NcNoteCard:a.mQ,NcHotkeyList:a.aG,NcHotkey:a.Iz,IconArrow:h.A},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,autoTaggingText:t("mail","Determine importance using machine learning"),followUpReminderText:t("mail","Remind about messages that require a reply but received none"),internalAddressText:t("mail","Highlight external addresses"),toggleAutoTagging:!1,loadingFollowUpReminders:!1,displaySmimeCertificateModal:!1,sortOrder:"newest",showSettings:!1,showAccountSettings:!1,showMailSettings:!0,selectedAccount:null,mailvelopeIsAvailable:!1,trapElements:[],bus:(0,p.A)(),textBlockDialogOpen:!1,localTextBlock:{title:"",content:""}}),computed:{...(0,o.n2)(z.A),...(0,o.aH)(z.A,["getAccounts","followUpFeatureAvailable","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)},searchPriorityBody:{get(){return"true"===this.mainStore.getPreference("search-priority-body","false")},set(t){this.onToggleSearchPriorityBody(t)}},useAutoTagging:{get(){return"true"===this.mainStore.getPreference("tag-classified-messages","true")},set(t){this.onToggleAutoTagging(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)}},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)}},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){E.A.error("Could not save preferences",{error:t})}},async setLayoutMessageView(t){try{await this.mainStore.savePreference({key:"layout-message-view",value:t})}catch(t){E.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=>E.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=>E.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){E.A.error("could not save preferences",{error:t})}finally{this.loadingPrioritySettings=!1}},onToggleCollectData(t){this.loadingOptOutSettings=!0,this.mainStore.savePreference({key:"collect-data",value:t?"true":"false"}).catch(t=>E.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){E.A.error("could not save preferences",{error:e}),this.sortOrder=n,(0,A.Qg)(t("mail","Could not update preference"))}},async onToggleAutoTagging(e){this.toggleAutoTagging=!0;try{await this.mainStore.savePreference({key:"tag-classified-messages",value:e?"true":"false"})}catch(e){E.A.error("could not save preferences",{error:e}),(0,A.Qg)(t("mail","Could not update preference"))}finally{this.toggleAutoTagging=!1}},async onToggleFollowUpReminders(e){this.loadingFollowUpReminders=!0;try{await this.mainStore.savePreference({key:"follow-up-reminders",value:e?"true":"false"})}catch(e){E.A.error("Could not save preferences",{error:e}),(0,A.Qg)(t("mail","Could not update preference"))}finally{this.loadingFollowUpReminders=!1}},async onToggleInternalAddress(e){this.loadingInternalAddresses=!0;try{await this.mainStore.savePreference({key:"internal-addresses",value:e?"true":"false"})}catch(e){E.A.error("Could not save preferences",{error:e}),(0,A.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,m.Jv)("apps/mail/compose?uri=%s");try{window.navigator.registerProtocolHandler("mailto",t,OC.theme.name+" Mail")}catch(t){E.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)},handleShowToolbar(t){this.trapElements.push(t)},newTextBlock(){this.mainStore.createTextBlock({...this.localTextBlock}),this.textBlockDialogOpen=!1,this.localTextBlock={title:"",content:""}},closeTextBlockDialog(){this.textBlockDialogOpen=!1,this.localTextBlock={title:"",content:""}}}},bt=(0,U.A)(gt,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.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("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("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},on:{"update:modelValue":t.onToggleExternalAvatars},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.toggleAutoTagging},on:{"update:modelValue":t.onToggleAutoTagging},model:{value:t.useAutoTagging,callback:function(e){t.useAutoTagging=e},expression:"useAutoTagging"}},[t._v("\n\t\t\t\t\t\t"+t._s(t.autoTaggingText)+"\n\t\t\t\t\t")]),t._v(" "),e("NcFormBoxSwitch",{attrs:{disabled:t.loadingPrioritySettings},on:{"update:modelValue":t.onToggleSearchPriorityBody},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()},on:{"show-toolbar":t.handleShowToolbar}}),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},on:{"show-toolbar":t.handleShowToolbar}})]:t._e()],2)],1),t._v(" "),e("NcAppSettingsSection",{attrs:{id:"privacy",name:t.t("mail","Privacy")}},[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")},on:{"update:modelValue":t.onToggleInternalAddress},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:{checked:t.useFollowUpReminders,disabled:t.loadingFollowUpReminders},on:{"update:modelValue":t.onToggleFollowUpReminders}},[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(" "),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("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("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:{value:t.localTextBlock.title,label:t.t("mail","Title of the text block")},on:{"update:value":function(e){return t.$set(t.localTextBlock,"title",e)}}}),t._v(" "),e("TextEditor",{attrs:{"is-bordered":!0,html:!0,placeholder:t.t("mail","Content of the text block"),bus:t.bus,"show-toolbar":t.handleShowToolbar},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 xt=i(6555),ft=i(54914),Ct=i(39487),vt=i(25216),yt=i(97627);const Mt={name:"NavigationAccount",components:{NcAppNavigationCaption:a.dL,Fragment:ft.F,ActionButton:a.Ko,ActionCheckbox:a.RI,ActionInput:a.Az,ActionText:a.HO,AccountSettings:()=>Promise.all([i.e(9908),i.e(4165),i.e(9140),i.e(8152),i.e(8730)]).then(i.bind(i,34695)),IconInfo:vt.A,IconSettings:u.A,IconFolderAdd:c.A,MenuDown:r.A,MenuUp:Ct.A,IconDelete:T.A,IconLoading:a.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,createMailboxName:"",showMailboxes:!1,nameInput:!1,nameLabel:!0}),computed:{...(0,o.n2)(z.A),showSettings(){return this.mainStore.showSettingsForAccount(this.account.id)},visible(){return!0!==this.account.isUnified&&!1!==this.account.visible},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,xt.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;E.A.info("creating mailbox "+n),this.menuOpen=!1;try{await this.mainStore.createMailbox({account:this.account,name:n})}catch(e){throw(0,A.Qg)(t("mail","Unable to create mailbox. The name likely contains invalid characters. Please try another name.")),E.A.error("could not create folder",{error:e}),e}finally{this.showSaving=!1,this.nameInput=!1,this.editing=!1,this.createMailboxName=""}E.A.info(`mailbox ${n} created`)},openCreateMailbox(){this.editing=!0,this.nameInput=!0,this.showSaving=!1},async removeAccount(){const e=this.account.id;E.A.info("delete account",{account:this.account});const n=(new A.ik).setName(t("mail","Remove account")).setText(t("mail","The account for {email} and cached email data will be removed from F7cloud, 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),E.A.info(`account ${e} deleted, redirecting …`),location.href=(0,m.Jv)("/apps/mail")}catch(t){E.A.error("could not delete account",{error:t})}finally{this.loading.delete=!1}}}]).build();await n.show()},changeAccountOrderUp(){this.mainStore.moveAccount({account:this.account,up:!0}).catch(t=>E.A.error("could not move account up",{error:t}))},changeAccountOrderDown(){this.mainStore.moveAccount({account:this.account}).catch(t=>E.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,E.A.info("show only subscribed folders updated to "+t)}).catch(t=>{throw E.A.error("could not update subscription mode",{error:t}),this.savingShowOnlySubscribed=!1,t})},onMenuToggle(t){t&&null!==this.account.quotaPercentage&&(console.debug("accounts menu opened, fetching quota"),this.fetchQuota())},async fetchQuota(){const t=await(0,yt.FY)(this.account.id);console.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(42127),kt={};kt.styleTagTransform=it(),kt.setAttributes=X(),kt.insert=J().bind(null,"head"),kt.domAPI=$(),kt.insertStyleElement=et(),Z()(wt.A,kt),wt.A&&wt.A.locals&&wt.A.locals;var It=(0,U.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(" "),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._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,4051550634)}):t._e(),t._v(" "),e("AccountSettings",{attrs:{open:t.showSettings,account:t.account},on:{"update:open":function(e){return t.showAccountSettings(e)}}})],1)},[],!1,null,null,null);const St=It.exports,_t={name:"NavigationAccountExpandCollapse",components:{AppNavigationItem:a.G_},props:{account:{type:Object,required:!0}},computed:{...(0,o.n2)(z.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(){E.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){E.A.error("could not update account settings",{error:t})}}}};var Nt=i(35800),Dt={};Dt.styleTagTransform=it(),Dt.setAttributes=X(),Dt.insert=J().bind(null,"head"),Dt.domAPI=$(),Dt.insertStyleElement=et(),Z()(Nt.A,Dt),Nt.A&&Nt.A.locals&&Nt.A.locals;const jt=(0,U.A)(_t,function(){var t=this;return(0,t._self._c)("AppNavigationItem",{attrs:{name:t.title},on:{click:t.toggleCollapse}})},[],!1,null,"376a2382",null).exports;var Lt=i(53334),Tt=i(63508),Et=i(84377),zt=i(71229),Bt=i(90913),Ot=i(95797),Ut=i(42882),Pt=i(77996),Qt=i(5857),Rt=i(29689),Yt=i(56417),Ft=i(95790),Gt=i(73599),Wt=i(10578),Vt=i(87515),Zt=i(21726),Ht=i(6178),$t=i(35195),qt=i(5493),Jt=i(86791),Kt=i(8426),Xt=i(18896),te=i(29080),ee=i(42622),ne=i(42496),ie=i(22822),ae=i(3477),oe=i(21777),se=i(66802),re=i(40715),le=i(12572),ce=i.n(le),de=i(30787),ue=i(85547);const Ae={name:"MailboxShareModal",components:{NcAvatar:a.Bx,NcButton:a.x1,NcListItem:a.l,NcModal:a.FH,NcSelect:a.EQ,NcSelectUsers:a.cy,AccountMultiple:de.A,IconClose:b.A},props:{mailbox:{type:Object,required:!0}},data:()=>({shares:[],initialSnapshot:[],selectedSharee:null,newPermission:"read",loadingSuggestions:!1,suggestions:[]}),computed:{permissionOptions(){return[{value:"read",label:this.t("mail","View only")},{value:"read_write",label:this.t("mail","Full access")}]},shareeOptions(){return this.suggestions.filter(t=>!this.shares.some(e=>e.shareWith===t.shareWith)&&t.shareWith!==(0,oe.HW)()?.uid)},hasChanges(){const t=this.sharesSnapshot();return JSON.stringify(t)!==JSON.stringify(this.initialSnapshot)}},async mounted(){await this.loadShares(),this.getSuggestions("")},methods:{sharesSnapshot(){return this.shares.map(t=>({shareWith:t.shareWith,shareType:this.shareTypeForSave(t),permission:t.permission})).sort((t,e)=>t.shareWith.localeCompare(e.shareWith))},shareTypeForSave(t){const e=t.shareType;return"group"===e||e===re.I.Group?"group":"user"},async loadShares(){try{this.shares=await(0,ue.Dx)(this.mailbox.databaseId),this.initialSnapshot=this.sharesSnapshot()}catch(t){E.A.error("Failed to load mailbox shares",t),(0,A.Qg)(this.t("mail","Failed to load shares"))}},shareKey:t=>null!=t.id?String(t.id):`pending-${t.shareWith}`,isGroup:t=>"group"===t.shareType||t.shareType===re.I.Group,shareDisplayName:t=>t.shareWith,applyShare(){if(!this.selectedSharee)return;if(this.shares.some(t=>t.shareWith===this.selectedSharee.shareWith))return;const t={shareWith:this.selectedSharee.shareWith,shareType:this.selectedSharee.shareType,permission:this.newPermission};this.shares.push({...t}),this.selectedSharee=null},removeShare(t){this.shares=this.shares.filter(e=>this.shareKey(e)!==this.shareKey(t))},async confirm(){if(this.hasChanges)try{const t=await(0,ue.Dx)(this.mailbox.databaseId);for(const e of t)await(0,ue.jn)(e.id);for(const t of this.shares)await(0,ue.Uy)(this.mailbox.databaseId,t.shareWith,this.shareTypeForSave(t),t.permission);(0,A.Te)(this.t("mail","Access permissions updated")),this.$emit("confirm"),this.$emit("close")}catch(t){E.A.error("Failed to save sharing settings",t),(0,A.Qg)(this.t("mail","Failed to save sharing settings"))}},async getSuggestions(t){const e="string"==typeof t?t.trim():"";this.loadingSuggestions=!0;try{const t=(await se.Ay.get((0,m.KT)("apps/files_sharing/api/v1/sharees"),{params:{format:"json",itemType:"file",search:e,shareTypes:[re.I.User,re.I.Group]}})).data.ocs.data,n=t.exact||{users:[],groups:[]},i=(t.users||[]).concat(n.users||[]),a=(t.groups||[]).concat(n.groups||[]);this.suggestions=i.concat(a).map(t=>{const e=t.value||t;return{shareWith:e.shareWith||t.shareWith,shareType:void 0!==e.shareType?e.shareType:re.I.User,displayName:t.name||t.label||e.shareWith}})}catch(t){E.A.error("Sharee search failed",t),this.suggestions=[]}finally{this.loadingSuggestions=!1}},debouncedSearch:ce()(300,function(t){this.getSuggestions(t?.trim?.()||"")})},watch:{selectedSharee:{handler(t){t&&"object"==typeof t&&void 0===t.displayName&&t.shareWith&&this.debouncedSearch(t.shareWith)}}}};var me=i(89334),pe={};pe.styleTagTransform=it(),pe.setAttributes=X(),pe.insert=J().bind(null,"head"),pe.domAPI=$(),pe.insertStyleElement=et(),Z()(me.A,pe),me.A&&me.A.locals&&me.A.locals;const he=(0,U.A)(Ae,function(){var t=this,e=t._self._c;return e("NcModal",{attrs:{name:t.t("mail","Share folder"),title:t.t("mail","Share folder")},on:{close:function(e){return t.$emit("close")}}},[e("div",{staticClass:"mailbox-share-modal"},[e("p",{staticClass:"mailbox-share-modal__folder-name"},[t._v("\n\t\t\t"+t._s(t.mailbox.displayName)+"\n\t\t")]),t._v(" "),e("div",{staticClass:"mailbox-share-modal__add"},[e("div",{staticClass:"mailbox-share-modal__row"},[e("NcSelectUsers",{staticClass:"mailbox-share-modal__select",attrs:{placeholder:t.t("mail","Search for users or groups"),"label-outside":!0,loading:t.loadingSuggestions,options:t.shareeOptions,"get-option-label":t=>t.displayName},on:{search:t.debouncedSearch},model:{value:t.selectedSharee,callback:function(e){t.selectedSharee=e},expression:"selectedSharee"}}),t._v(" "),e("NcButton",{staticClass:"mailbox-share-modal__add-btn",attrs:{type:"primary",disabled:!t.selectedSharee},on:{click:t.applyShare}},[t._v("\n\t\t\t\t\t"+t._s(t.t("mail","Add"))+"\n\t\t\t\t")])],1),t._v(" "),e("div",{staticClass:"mailbox-share-modal__permission"},[e("NcSelect",{attrs:{options:t.permissionOptions,reduce:t=>t.value,"input-label":t.t("mail","Permission"),label:"label"},model:{value:t.newPermission,callback:function(e){t.newPermission=e},expression:"newPermission"}})],1)]),t._v(" "),e("h4",{staticClass:"mailbox-share-modal__heading"},[t._v("\n\t\t\t"+t._s(t.t("mail","People with access"))+"\n\t\t")]),t._v(" "),t._l(t.shares,function(n){return e("NcListItem",{key:t.shareKey(n),attrs:{name:t.shareDisplayName(n),compact:!0},scopedSlots:t._u([{key:"icon",fn:function(){return[t.isGroup(n)?e("NcAvatar",{attrs:{"display-name":n.shareWith},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.shareWith}})]},proxy:!0},{key:"subname",fn:function(){return[e("NcSelect",{staticClass:"mailbox-share-modal__permission-inline",attrs:{options:t.permissionOptions,reduce:t=>t.value,label:"label"},model:{value:n.permission,callback:function(e){t.$set(n,"permission",e)},expression:"share.permission"}})]},proxy:!0},{key:"extra-actions",fn:function(){return[e("NcButton",{attrs:{variant:"tertiary-no-background","aria-label":t.t("mail","Remove access")},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(" "),0===t.shares.length?e("p",{staticClass:"mailbox-share-modal__empty"},[t._v("\n\t\t\t"+t._s(t.t("mail","No one has access yet"))+"\n\t\t")]):t._e(),t._v(" "),e("div",{staticClass:"mailbox-share-modal__actions"},[e("NcButton",{attrs:{type:"primary",disabled:!t.hasChanges},on:{click:t.confirm}},[t._v("\n\t\t\t\t"+t._s(t.t("mail","Confirm"))+"\n\t\t\t")])],1)],2)])},[],!1,null,"7a18a352",null).exports,ge={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,o.n2)(z.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){E.A.error("could not move folder",{error:t})}finally{this.moving=!1,this.$emit("close")}},genId:t=>"mailbox-"+t.databaseId}},be=(0,U.A)(ge,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 xe=i(35630);class fe{constructor(t,e,n){this.el=t,this.options=n,this.mainStore=n.mainStore,this.registerListeners.bind(this)(t),this.setInitialAttributes()}setInitialAttributes(){this.draggableInfo={},this.setStatus("enabled")}update(t,e){this.setInitialAttributes(),this.options=e.options}registerListeners(t){xe.A.on("drag-start",this.onDragStart.bind(this)),xe.A.on("drag-end",this.onDragEnd.bind(this)),t.firstChild.addEventListener("dragover",this.onDragOver.bind(this)),t.firstChild.addEventListener("dragleave",this.onDragLeave.bind(this)),t.firstChild.addEventListener("drop",this.onDrop.bind(this))}removeListeners(t){xe.A.off("drag-start",this.onDragStart),xe.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&&(t.preventDefault(),this.draggableInfo.mailboxId!==this.options.mailboxId&&(this.options.isValidDropTarget&&this.setStatus("dragover"),t.dataTransfer.dropEffect="move"))}onDragLeave(t){this.isCurrentlyDragging&&(t.preventDefault(),this.setStatus("enabled"))}async onDrop(t){if(!this.isCurrentlyDragging)return;if(t.preventDefault(),this.draggableInfo.mailboxId===this.options.mailboxId)return;this.setInitialAttributes();const e=JSON.parse(t.dataTransfer.getData("text"));xe.A.emit("envelopes-dropped",{envelopes:e});try{const t=e.map(async t=>await this.processDroppedItem(t));await Promise.all(t)}catch(t){E.A.error("could not process dropped messages",t)}finally{xe.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"),E.A.error("could not move messages",t)}}}let Ce;const ve={bind(t,e,n){Ce=new fe(t,n.context,e.value)},componentUpdated(t,e){Ce.options=e.value,Ce.update(t,Ce)}};var ye=i(51648),Me=i(50966),we=i(1468),ke=i(87314),Ie=i(28290);const Se={name:"NavigationMailbox",components:{AppNavigationItem:a.G_,CounterBubble:a.E7,ActionText:a.HO,ActionButton:a.Ko,ActionCheckbox:a.RI,ActionInput:a.Az,IconSend:Kt.A,IconSendOutline:Xt.A,IconDelete:ne.A,IconDeleteOutline:T.A,IconEmailCheck:Bt.A,IconExternal:$t.A,IconFolderAdd:Yt.A,IconFolderRename:Rt.A,IconFolderSync:Ft.A,IconInfo:vt.A,IconAllInboxes:Vt.A,IconAllInboxesOutline:Zt.A,IconFavorite:te.A,IconFavoriteOutline:ee.A,IconFolder:Pt.A,IconFolderOutline:c.A,IconFolderShared:Qt.A,IconFolderSharedOutline:d.A,IconDraft:qt.A,IconDraftOutline:Jt.A,IconArchive:Et.A,IconArchiveOutline:zt.A,IconJunk:Ut.A,IconInbox:Gt.A,IconInboxOutline:Wt.A,IconWrench:ae.A,EraserIcon:Ot.A,ImportantIcon:Ht.A,IconLoading:a.ne,IconShare:ie.A,MailboxShareModal:he,MoveMailboxModal:be,AlarmIcon:Tt.A},directives:{droppableMailbox:ve},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,menuOpen:!1,renameLabel:!0,renameInput:!1,mailboxName:this.mailbox.displayName,showMoveModal:!1,UNIFIED_INBOX_ID:ke.mH,createMailboxName:"",repairing:!1}},computed:{...(0,o.n2)(z.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,ye.T)({...this.mailbox,specialUse:["flagged"]}):"unread"===this.filter?t("mail","Unread"):(0,ye.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,Lt.zw)("mail","{total} message","{total} messages",this.mailboxStats.total,{total:this.mailboxStats.total}):(0,Lt.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!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,Ie.w)(this.mailbox,"x")&&(0,Ie.w)(t,"k"):(0,Ie.w)(this.mailbox,"x")},hasInsertAcl(){return(0,Ie.w)(this.mailbox,"i")},hasSeenAcl(){return(0,Ie.w)(this.mailbox,"s")},hasSubmailboxActionAcl(){return(0,Ie.w)(this.mailbox,"k")},hasDelimiter(){return!!this.mailbox.delimiter},hasDeleteAcl(){return(0,Ie.w)(this.mailbox,"x")},hasClearMailboxAcl(){return(0,Ie.w)(this.mailbox,"te")},hasShareFolderAcl(){return!this.account.isUnified&&!this.mailbox.specialRole}},mounted(){xe.A.on("drag-start",this.onDragStart),xe.A.on("drag-end",this.onDragEnd),xe.A.on("envelopes-moved",this.onEnvelopesMoved)},beforeDestroy(){xe.A.off("drag-start",this.onDragStart),xe.A.off("drag-end",this.onDragEnd),xe.A.off("envelopes-moved",this.onEnvelopesMoved)},methods:{genId(t){return"folder-"+t.databaseId+(this.filter?"-"+this.filter:"")},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);E.A.debug(`loaded mailbox stats for ${this.mailbox.databaseId}`,{stats:t}),this.mailboxStats=t}catch(t){this.mailboxStats={error:!0},E.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;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 E.A.error(`could not create mailbox ${n}`,{error:t}),t}finally{this.editing=!1,this.showSaving=!1}E.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(()=>E.A.info(`mailbox ${this.mailbox.databaseId} marked as read`)).catch(t=>E.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 E.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 E.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,E.A.debug("clearing message cache",{accountId:this.account.id,mailboxId:this.mailbox.databaseId}),await(0,we.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(()=>{E.A.info(`mailbox ${e} cleared`)}).catch(t=>E.A.error("could not clear folder",{error:t}))})},deleteMailbox(){const e=this.mailbox.databaseId;E.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(()=>{E.A.info(`mailbox ${e} deleted`),parseInt(this.$route.params.mailboxId,10)===this.mailbox.databaseId&&this.$router.push({name:"mailbox",params:{mailboxId:ke.U8}})}).catch(t=>E.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,A.cf)(t("mail","An error occurred, unable to rename the mailbox.")),console.error(e)}finally{this.showSaving=!1}},openRenameInput(){this.renameLabel=!1,this.renameInput=!0,this.showSaving=!1},onOpenMoveModal(){this.showMoveModal=!0},onCloseMoveModal(){this.showMoveModal=!1},onOpenShareModal(){this.showShareModal=!0},onCloseShareModal(){this.showShareModal=!1},onDragStart({accountId:t}){t===this.mailbox.accountId&&(this.mainStore.expandAccountMutation(t),this.showSubMailboxes=!0)},onDragEnd({accountId:t}){t===this.mailbox.accountId&&(this.showSubMailboxes=!1)},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;(0,A.Qg)(t("mail","Please wait 10 minutes before repairing again"))}}}};var _e=i(35420),Ne={};Ne.styleTagTransform=it(),Ne.setAttributes=X(),Ne.insert=J().bind(null,"head"),Ne.domAPI=$(),Ne.insertStyleElement=et(),Z()(_e.A,Ne),_e.A&&_e.A.locals&&_e.A.locals;var De=(0,U.A)(Se,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\t\tmainStore: mainStore,\n\t\t\tmailboxId: mailbox.databaseId,\n\t\t\taccountId: mailbox.accountId,\n\t\t\tisValidDropTarget,\n\t\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"+t._s(t.statsText)+"\n\t\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._v("\n\t\t\t\t"+t._s(t.t("mail","Mark all messages of this folder as read"))+"\n\t\t\t")]):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("IconFolderAdd",{attrs:{size:20}})]},proxy:!0}],null,!1,2169509812)},[t._v("\n\t\t\t\t"+t._s(t.t("mail","Add subfolder"))+"\n\t\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("IconFolderAdd",{attrs:{size:20}})]},proxy:!0}],null,!1,2169509812)}):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("IconFolderRename",{attrs:{size:20}})]},proxy:!0}],null,!1,2880355077)},[t._v("\n\t\t\t\t"+t._s(t.t("mail","Rename"))+"\n\t\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("IconFolderRename",{attrs:{title:t.t("mail","Rename"),size:20}})]},proxy:!0}],null,!1,990908275)}):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._s(t.t("mail","Saving"))+"\n\t\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"+t._s(t.t("mail","Move folder"))+"\n\t\t\t")]),t._v(" "),t.account.isUnified||t.mailbox.specialRole||!t.hasShareFolderAcl?t._e():e("ActionButton",{attrs:{"close-after-click":!0},on:{click:function(e){return e.preventDefault(),t.onOpenShareModal.apply(null,arguments)}},scopedSlots:t._u([{key:"icon",fn:function(){return[e("IconShare",{attrs:{size:20}})]},proxy:!0}],null,!1,165512238)},[t._v("\n\t\t\t\t"+t._s(t.t("mail","Share"))+"\n\t\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"+t._s(t.t("mail","Repair folder"))+"\n\t\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"+t._s(t.t("mail","Clear locally cached data, in case there are issues with synchronization."))+"\n\t\t\t")]):t._e(),t._v(" "),t.notVirtual?e("ActionCheckbox",{attrs:{checked:t.mailbox.isSubscribed,disabled:t.changeSubscription},on:{"update:checked":t.changeFolderSubscription}},[t._v("\n\t\t\t\t"+t._s(t.t("mail","Subscribed"))+"\n\t\t\t")]):t._e(),t._v(" "),t.notVirtual&&t.notInbox?e("ActionCheckbox",{attrs:{checked:t.mailbox.syncInBackground,disabled:t.changingSyncInBackground},on:{"update:checked":t.changeSyncInBackground}},[t._v("\n\t\t\t\t"+t._s(t.t("mail","Sync in background"))+"\n\t\t\t")]):t._e(),t._v(" "),"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("EraserIcon",{attrs:{size:20}})]},proxy:!0}],null,!1,55307409)},[t._v("\n\t\t\t\t"+t._s(t.t("mail","Clear folder"))+"\n\t\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("IconDelete",{attrs:{size:20}})]},proxy:!0}],null,!1,881161434)},[t._v("\n\t\t\t\t"+t._s(t.t("mail","Delete folder"))+"\n\t\t\t")])]},proxy:!0},{key:"counter",fn:function(){return[t.showUnreadCounter&&t.subCounter?e("CounterBubble",[t._v("\n\t\t\t\t"+t._s(t.mailbox.unread)+" ("+t._s(t.subCounter)+")\n\t\t\t")]):t.showUnreadCounter?e("CounterBubble",[t._v("\n\t\t\t\t"+t._s(t.mailbox.unread)+"\n\t\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(),t._v(" "),t.showShareModal?e("MailboxShareModal",{attrs:{mailbox:t.mailbox},on:{close:t.onCloseShareModal,confirm:t.onCloseShareModal}}):t._e()]},proxy:!0}],null,!1,2479695535)},[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,"a43a7b5e",null);const je=De.exports;var Le=i(58841),Te=i(56872);const Ee={name:"NavigationOutbox",components:{AppNavigationItem:a.G_,CounterBubble:a.E7,IconOutbox:Le.A},computed:{...(0,o.n2)(Te.A),count(){return this.outboxStore.getAllMessages.length},to:()=>({name:"outbox"})}};var ze=i(29922),Be={};Be.styleTagTransform=it(),Be.setAttributes=X(),Be.insert=J().bind(null,"head"),Be.domAPI=$(),Be.insertStyleElement=et(),Z()(ze.A,Be),ze.A&&ze.A.locals&&ze.A.locals;const Oe=(0,U.A)(Ee,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",{staticClass:"outbox-opacity-icon",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,"6c2343f2",null).exports;var Ue=i(83737);const Pe={name:"Navigation",components:{AppNavigation:a.hN,AppSettingsMenu:bt,NavigationAccount:St,NavigationAccountExpandCollapse:jt,NavigationMailbox:je,NavigationOutbox:Oe,NewMessageButtonHeader:Ue.A,IconSetting:u.A,AppNavigationItem:a.G_,IconAlertTriangle:s.A,IconChevronDown:r.A,IconChevronRight:l.A,IconFolderOutline:c.A,IconFolderSharedOutline:d.A},data:()=>({refreshing:!1,showSettings:!1,sharedGroupOpen:{}}),computed:{...(0,o.n2)(Te.A,z.A),menu(){return this.mainStore.getAccounts.filter(t=>t.id!==ke.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(ke.Hc)},unifiedMailboxes(){return this.mainStore.getMailboxes(ke.Hc)},passwordIsUnavailable(){return this.mainStore.getPreference("password-is-unavailable",!1)},outboxMessages(){return this.outboxStore.getAllMessages},sharedWithMe(){return this.mainStore.getSharedWithMe()},sharedWithMeGrouped(){const t=this.sharedWithMe,e=new Map;for(const n of t){const t=n.ownerUserId;e.has(t)||e.set(t,{ownerUserId:n.ownerUserId,ownerDisplayName:n.ownerDisplayName,shares:[]}),e.get(t).shares.push(n)}return Array.from(e.values())}},mounted(){this.mainStore.fetchSharedWithMe(),this._boundRefetchShared=()=>this.mainStore.fetchSharedWithMe(),document.addEventListener("visibilitychange",this._boundRefetchShared),window.addEventListener("focus",this._boundRefetchShared)},beforeDestroy(){this._boundRefetchShared&&(document.removeEventListener("visibilitychange",this._boundRefetchShared),window.removeEventListener("focus",this._boundRefetchShared))},methods:{showMailSettings(){this.showSettings=!0},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},isSharedGroupOpen(t){return!1!==this.sharedGroupOpen[t]},toggleSharedGroup(t){this.$set(this.sharedGroupOpen,t,!this.isSharedGroupOpen(t))}}};var Qe=i(7337),Re={};Re.styleTagTransform=it(),Re.setAttributes=X(),Re.insert=J().bind(null,"head"),Re.domAPI=$(),Re.insertStyleElement=et(),Z()(Qe.A,Re),Qe.A&&Qe.A.locals&&Qe.A.locals;const Ye=(0,U.A)(Pe,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",[t._v("\n\t\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")])],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\t!group.isCollapsible\n\t\t\t\t\t\t\t\t\t|| !group.account.collapsed\n\t\t\t\t\t\t\t\t\t|| !isCollapsed(group.account, item)\n\t\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+"-unread",attrs:{account:n.account,mailbox:i,filter:"unread"}}),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()]]}),t._v(" "),t.sharedWithMe.length>0?e("div",{staticClass:"mail-navigation__shared-section"},[e("h3",{staticClass:"mail-navigation__shared-heading mail-navigation__shared-heading--small"},[t._v("\n\t\t\t\t\t"+t._s(t.t("mail","Network mail folders"))+"\n\t\t\t\t")]),t._v(" "),t._l(t.sharedWithMeGrouped,function(n){return e("div",{key:"shared-group-"+n.ownerUserId,staticClass:"mail-navigation__shared-group"},[e("button",{staticClass:"mail-navigation__shared-caption",attrs:{type:"button","aria-expanded":t.isSharedGroupOpen(n.ownerUserId)},on:{click:function(e){return t.toggleSharedGroup(n.ownerUserId)}}},[t.isSharedGroupOpen(n.ownerUserId)?e("IconChevronDown",{staticClass:"mail-navigation__shared-chevron",attrs:{size:20}}):e("IconChevronRight",{staticClass:"mail-navigation__shared-chevron",attrs:{size:20}}),t._v(" "),e("span",{staticClass:"mail-navigation__shared-caption-text"},[t._v(t._s(n.ownerDisplayName))])],1),t._v(" "),t.isSharedGroupOpen(n.ownerUserId)?[t._l(n.shares,function(n){return[e("AppNavigationItem",{key:"shared-"+n.shareId,attrs:{name:n.mailbox.displayName,to:{name:"mailboxShared",params:{shareId:n.shareId}}},scopedSlots:t._u([{key:"icon",fn:function(){return[e("IconFolderSharedOutline",{attrs:{size:20}})]},proxy:!0}],null,!0)}),t._v(" "),t._l(n.subMailboxes,function(i){return e("AppNavigationItem",{key:"shared-"+n.shareId+"-"+i.id,attrs:{name:i.displayName,to:{name:"mailboxSharedFolder",params:{shareId:n.shareId,mailboxId:i.id}}},scopedSlots:t._u([{key:"icon",fn:function(){return[e("IconFolderOutline",{attrs:{size:20}})]},proxy:!0}],null,!0)})})]})]:t._e()],2)})],2):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,"6420d344",null).exports},83737(t,e,n){"use strict";n.d(e,{A:()=>k});var i=n(60103),a=n(51849),o=n(88289),s=n(49954),r=n(41936),l=n(85745),c=n(49519);const d={name:"NewMessageButtonHeader",components:{ButtonVue:i.x1,IconAdd:s.A,IconRefresh:r.A,IconLoading:o.A},props:{showRefresh:{default:!0}},data:()=>({refreshing:!1}),computed:{...(0,a.n2)(c.A),currentMailbox(){if("message"===this.$route.name||"mailbox"===this.$route.name)return this.mainStore.getMailbox(this.$route.params.mailboxId)}},methods:{async refreshMailbox(){if(!0!==this.refreshing){this.refreshing=!0;try{await this.mainStore.syncEnvelopes({mailboxId:this.currentMailbox.databaseId}),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),A=n.n(u),m=n(97825),p=n.n(m),h=n(77659),g=n.n(h),b=n(55056),x=n.n(b),f=n(10540),C=n.n(f),v=n(41113),y=n.n(v),M=n(73233),w={};w.styleTagTransform=y(),w.setAttributes=x(),w.insert=g().bind(null,"head"),w.domAPI=p(),w.insertStyleElement=C(),A()(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,"145401bb",null).exports},28793(t,e,n){"use strict";n.d(e,{A:()=>z});var i=n(57020),a=n.n(i),o=n(53334),s=n(60103),r=n(81435),l=n(64508);class c extends r.k_1{static get requires(){return[r.fzL]}init(){this._overwriteParagraphConversion()}_overwriteParagraphConversion(){this.editor.conversion.elementToElement({model:"paragraph",view:{name:"p",styles:{margin:0}},converterPriority:"high"})}}class d extends r.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 u=n(4728);class A extends r.k_1{init(){this._defineSchema(),this._defineConverters(),this.editor.commands.add("insertSignature",new u.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 m extends r.uBz{insertItem(t,e,n,i){const a=t.model.document.selection.getLastPosition();if(null===a)return;const o=t.model.createRange(a.getShiftedBy(-5),a).getWalker({shallow:!1,direction:"backward"});for(const a of o)if("text"===a.type&&a.item.data.includes(i)){e.remove(a.item);const o=a.item.data,s=o.lastIndexOf(i),r=e.createElement("paragraph");if(e.insertText(o.substring(0,s),r),t.model.insertContent(r),"@"===i){const i=`mailto:${n.email}`,a=`@${n.label}`,o=e.createText(a,{linkHref:i});t.model.insertContent(o)}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),a=t.data.toModel(i);t.model.insertContent(a)}else{const i=e.createElement("paragraph");e.insertText(n,i),t.model.insertContent(i)}return}}execute(t,e){this.editor.model.change(n=>{this.insertItem(this.editor,n,t,e)})}refresh(){this.isEnabled=!0}}class p extends r.k_1{init(){this.editor.commands.add("insertItem",new m(this.editor))}}var h=n(85745),g=n(6791),b=n(18446);n(61036);const x={name:"TextEditor",components:{ckeditor:a().component},props:{value:{type:String,required:!0},html:{type:Boolean,default:!1},placeholder:{type:String,default:""},focus:{type:Boolean,default:!1},bus:{type:Object,required:!0},disabled:{type:Boolean,default:!1},textBlocks:{type:Array,default:()=>[]},isBordered:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1}},data(){const t=[r.uwK,r.fzL,A,d,p,r.PXQ,r.N_E,r.NeA,r.FG2],e=["undo","redo"];return this.html&&(t.push(r.DZT,r.C1k,r.yN4,r.J20,r.z2z,r.GkN,r.Eac,r.Z3f,r.Y0,r.B8B,r._V3,r.BRX,r.uXn,r.KQV,r.ybQ,r.m57,c),e.unshift("heading","fontFamily","fontSize","bold","italic","underline","strikethrough","fontColor","subscript","superscript","fontBackgroundColor","insertImage","alignment","bulletedList","numberedList","blockquote","link","removeFormat","findAndReplace")),{linkTribute:null,emojiTribute:null,textSmiles:[],ready:!1,editor:r.tx0,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:this.customRenderer},{marker:"!",feed:this.getTextBlock,itemRenderer:this.customRenderer}]}}}},beforeMount(){this.loadEditorTranslations((0,o.Z0)())},methods:{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,s.Fo)(t);return this.textSmiles.includes(":"+t)&&e.unshift(":"+t),e},async getContact(t){if(0===t.length)return[];let e=await(0,g.Zd)(t);return e=e.filter(t=>t.email.length>0),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"),a="contact"===e?t.label:t.title;return i.classList.add("custom-item-username"),i.textContent=a,n.appendChild(i),n},overrideDropdownPositionsToNorth(t,e){const{south:n,north:i,southEast:a,southWest:o,northEast:s,northWest:l,southMiddleEast:c,southMiddleWest:d,northMiddleEast:u,northMiddleWest:A}=r.BOx.defaultPanelPositions;let m;m="rtl"!==t.locale.uiLanguageDirection?[s,l,u,A,i,a,o,c,d,n]:[l,s,A,u,i,o,a,d,c,n];for(const t of e.items)t instanceof r.BOx&&t.on("change:isOpen",()=>{t.isOpen&&(t.panelView.position=r.BOx._getOptimalPosition({element:t.panelView.element,target:t.buttonView.element,fitInViewport:!0,positions:m}).name)})},overrideTooltipPositions(t){for(const e of t.items)e.buttonView?e.buttonView.tooltipPosition="n":e.tooltipPosition&&(e.tooltipPosition="n")},async loadEditorTranslations(t){if("en"===t)return this.showEditor("en");try{h.A.debug(`loading ${t} translations for CKEditor`);const{default:e}=await n(66613)(`./${t}.js`);this.showEditor(t,[e])}catch(e){h.A.error(`could not find CKEditor translations for "${t}"`,{error:e}),this.showEditor("en")}},showEditor(t,e){h.A.debug(`using "${t}" as CKEditor language`),e&&(this.config.translations=e),this.config.language=t,this.ready=!0},onEditorReady(t){h.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;":"===n.marker&&((0,s.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=>{console.debug("Smart picker promise rejected:",t)}),"@"===n.marker&&(this.editorInstance.execute("insertItem",{email:i.email[0],label:i.label},"@"),this.$emit("mention",{email:i.email[0],label:i.label})),"!"===n.marker&&this.insertTextBlock(i,!1)},{priority:"high"}),t.keystrokes.set("Ctrl+Enter",e=>{h.A.debug("Detected Ctrl+Enter/Cmd+Enter",e),this.$emit("submit",t)}),this.editorInstance=t,this.focus&&(h.A.debug("focusing TextEditor"),t.editing.view.focus()),this.html&&this.$emit("show-toolbar",t.ui._focusableToolbarDefinitions[0].toolbarView.element),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&&(h.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 b.EY("html",n);n=(0,b.Ul)(t).value}this.editorInstance.execute("insertItem",{content:n,isHtml:this.html},"!")}}};var f=n(85072),C=n.n(f),v=n(97825),y=n.n(v),M=n(77659),w=n.n(M),k=n(55056),I=n.n(k),S=n(10540),_=n.n(S),N=n(41113),D=n.n(N),j=n(59591),L={};L.styleTagTransform=D(),L.setAttributes=I(),L.insert=w().bind(null,"head"),L.domAPI=y(),L.insertStyleElement=_(),C()(j.A,L),j.A&&j.A.locals&&j.A.locals;var T=n(47941),E={};E.styleTagTransform=D(),E.setAttributes=I(),E.insert=w().bind(null,"head"),E.domAPI=y(),E.insertStyleElement=_(),C()(T.A,E),T.A&&T.A.locals&&T.A.locals;const z=(0,n(14486).A)(x,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,"6a2bdadf",null).exports},5848(e,n,i){"use strict";i.d(n,{A:()=>O});var a=i(21777),o=i(66802),s=i(85168),r=i(63814),l=i(40715),c=i(60103),d=i(12572),u=i.n(d),A=i(27380),m=i(51849),p=i(30787),h=i(90629),g=i(56702),b=i(86791),x=i(28793),f=i(85745),C=i(81430),v=i(49519);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:g.A,IconPencil:b.A,IconCheck:h.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,A.A)()}},computed:{...(0,m.n2)(v.A),options(){return this.suggestions.filter(t=>!this.shares.find(e=>e.name===t.shareWith)&&t.shareWith!==(0,a.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,C.PI)(this.textBlock.id))},methods:{async deleteTextBlock(){await this.mainStore.deleteTextBlock({id:this.textBlock.id}).then(()=>{(0,s.Te)(t("mail","Text block deleted"))}).catch(()=>{(0,s.Qg)(t("mail","Failed to delete text block"))})},async shareTextBlock(e){try{await(0,C.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,s.Te)(t("mail","Text block shared with {sharee}",{sharee:e.shareWith})),this.share=null}catch(n){(0,s.Qg)(t("mail","Failed to share text block with {sharee}",{sharee:e.shareWith}))}},async removeShare(e){try{await(0,C.xn)(this.textBlock.id,e.shareWith),this.shares=this.shares.filter(t=>t.shareWith!==e.shareWith),(0,s.Te)(t("mail","Share deleted for {name}",{name:e.shareWith}))}catch(n){(0,s.Qg)(t("mail","Failed to delete share with {name}",{name:e.shareWith}))}},async asyncFind(t){this.loading=!0,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 o.Ay.get((0,r.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,a=n.data.ocs.data.exact;i.exact=[];const s=a.users.concat(a.groups),c=i.users.concat(i.groups),d=s.map(t=>this.formatForMultiselect(t)),u=c.map(t=>this.formatForMultiselect(t)).sort((t,e)=>t.shareType-e.shareType),A=d.concat(u).sort((t,e)=>t.shareType-e.shareType),m=A.reduce((t,e)=>e.displayName?(t[e.displayName]||(t[e.displayName]=0),t[e.displayName]++,t):t,{});this.suggestions=A.map(t=>m[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,s.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),_=i.n(S),N=i(55056),D=i.n(N),j=i(10540),L=i.n(j),T=i(41113),E=i.n(T),z=i(59520),B={};B.styleTagTransform=E(),B.setAttributes=D(),B.insert=_().bind(null,"head"),B.domAPI=I(),B.insertStyleElement=L(),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:{value:t.localTextBlock.title,label:t.t("mail","Title of the text block")},on:{"update:value":function(e){return t.$set(t.localTextBlock,"title",e)}}}),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:{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:{"option:selecting":t.shareTextBlock,search:t.asyncFind},model:{value:t.share,callback:function(e){t.share=e},expression:"share"}}),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,"7848a15a",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+ICAgIDxkZWZzPiAgICAgICAgPHBvbHlnb24gaWQ9InBhdGgtMSIgcG9pbnRzPSIwIDAuMTU5IDUwMy44NDEgMC4xNTkgNTAzLjg0MSA1MDMuOTQgMCA1MDMuOTQiPjwvcG9seWdvbj4gICAgPC9kZWZzPiAgICA8ZyBpZD0iZ2x5cGgtbG9nb19NYXkyMDE2IiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4gICAgICAgIDxnIGlkPSJHcm91cC0zIj4gICAgICAgICAgICA8bWFzayBpZD0ibWFzay0yIiBmaWxsPSJ3aGl0ZSI+ICAgICAgICAgICAgICAgIDx1c2UgeGxpbms6aHJlZj0iI3BhdGgtMSI+PC91c2U+ICAgICAgICAgICAgPC9tYXNrPiAgICAgICAgICAgIDxnIGlkPSJDbGlwLTIiPjwvZz4gICAgICAgICAgICA8cGF0aCBkPSJNMjUxLjkyMSwwLjE1OSBDMTgzLjUwMywwLjE1OSAxNzQuOTI0LDAuNDQ5IDE0OC4wNTQsMS42NzUgQzEyMS4yNCwyLjg5OCAxMDIuOTI3LDcuMTU3IDg2LjkwMywxMy4zODUgQzcwLjMzNywxOS44MjIgNTYuMjg4LDI4LjQzNiA0Mi4yODIsNDIuNDQxIEMyOC4yNzcsNTYuNDQ3IDE5LjY2Myw3MC40OTYgMTMuMjI2LDg3LjA2MiBDNi45OTgsMTAzLjA4NiAyLjczOSwxMjEuMzk5IDEuNTE2LDE0OC4yMTMgQzAuMjksMTc1LjA4MyAwLDE4My42NjIgMCwyNTIuMDggQzAsMzIwLjQ5NyAwLjI5LDMyOS4wNzYgMS41MTYsMzU1Ljk0NiBDMi43MzksMzgyLjc2IDYuOTk4LDQwMS4wNzMgMTMuMjI2LDQxNy4wOTcgQzE5LjY2Myw0MzMuNjYzIDI4LjI3Nyw0NDcuNzEyIDQyLjI4Miw0NjEuNzE4IEM1Ni4yODgsNDc1LjcyMyA3MC4zMzcsNDg0LjMzNyA4Ni45MDMsNDkwLjc3NSBDMTAyLjkyNyw0OTcuMDAyIDEyMS4yNCw1MDEuMjYxIDE0OC4wNTQsNTAyLjQ4NCBDMTc0LjkyNCw1MDMuNzEgMTgzLjUwMyw1MDQgMjUxLjkyMSw1MDQgQzMyMC4zMzgsNTA0IDMyOC45MTcsNTAzLjcxIDM1NS43ODcsNTAyLjQ4NCBDMzgyLjYwMSw1MDEuMjYxIDQwMC45MTQsNDk3LjAwMiA0MTYuOTM4LDQ5MC43NzUgQzQzMy41MDQsNDg0LjMzNyA0NDcuNTUzLDQ3NS43MjMgNDYxLjU1OSw0NjEuNzE4IEM0NzUuNTY0LDQ0Ny43MTIgNDg0LjE3OCw0MzMuNjYzIDQ5MC42MTYsNDE3LjA5NyBDNDk2Ljg0Myw0MDEuMDczIDUwMS4xMDIsMzgyLjc2IDUwMi4zMjUsMzU1Ljk0NiBDNTAzLjU1MSwzMjkuMDc2IDUwMy44NDEsMzIwLjQ5NyA1MDMuODQxLDI1Mi4wOCBDNTAzLjg0MSwxODMuNjYyIDUwMy41NTEsMTc1LjA4MyA1MDIuMzI1LDE0OC4yMTMgQzUwMS4xMDIsMTIxLjM5OSA0OTYuODQzLDEwMy4wODYgNDkwLjYxNiw4Ny4wNjIgQzQ4NC4xNzgsNzAuNDk2IDQ3NS41NjQsNTYuNDQ3IDQ2MS41NTksNDIuNDQxIEM0NDcuNTUzLDI4LjQzNiA0MzMuNTA0LDE5LjgyMiA0MTYuOTM4LDEzLjM4NSBDNDAwLjkxNCw3LjE1NyAzODIuNjAxLDIuODk4IDM1NS43ODcsMS42NzUgQzMyOC45MTcsMC40NDkgMzIwLjMzOCwwLjE1OSAyNTEuOTIxLDAuMTU5IFogTTI1MS45MjEsNDUuNTUgQzMxOS4xODYsNDUuNTUgMzI3LjE1NCw0NS44MDcgMzUzLjcxOCw0Ny4wMTkgQzM3OC4yOCw0OC4xMzkgMzkxLjYxOSw1Mi4yNDMgNDAwLjQ5Niw1NS42OTMgQzQxMi4yNTUsNjAuMjYzIDQyMC42NDcsNjUuNzIyIDQyOS40NjIsNzQuNTM4IEM0MzguMjc4LDgzLjM1MyA0NDMuNzM3LDkxLjc0NSA0NDguMzA3LDEwMy41MDQgQzQ1MS43NTcsMTEyLjM4MSA0NTUuODYxLDEyNS43MiA0NTYuOTgxLDE1MC4yODIgQzQ1OC4xOTMsMTc2Ljg0NiA0NTguNDUsMTg0LjgxNCA0NTguNDUsMjUyLjA4IEM0NTguNDUsMzE5LjM0NSA0NTguMTkzLDMyNy4zMTMgNDU2Ljk4MSwzNTMuODc3IEM0NTUuODYxLDM3OC40MzkgNDUxLjc1NywzOTEuNzc4IDQ0OC4zMDcsNDAwLjY1NSBDNDQzLjczNyw0MTIuNDE0IDQzOC4yNzgsNDIwLjgwNiA0MjkuNDYyLDQyOS42MjEgQzQyMC42NDcsNDM4LjQzNyA0MTIuMjU1LDQ0My44OTYgNDAwLjQ5Niw0NDguNDY2IEMzOTEuNjE5LDQ1MS45MTYgMzc4LjI4LDQ1Ni4wMiAzNTMuNzE4LDQ1Ny4xNCBDMzI3LjE1OCw0NTguMzUyIDMxOS4xOTEsNDU4LjYwOSAyNTEuOTIxLDQ1OC42MDkgQzE4NC42NSw0NTguNjA5IDE3Ni42ODQsNDU4LjM1MiAxNTAuMTIzLDQ1Ny4xNCBDMTI1LjU2MSw0NTYuMDIgMTEyLjIyMiw0NTEuOTE2IDEwMy4zNDUsNDQ4LjQ2NiBDOTEuNTg2LDQ0My44OTYgODMuMTk0LDQzOC40MzcgNzQuMzc5LDQyOS42MjEgQzY1LjU2NCw0MjAuODA2IDYwLjEwNCw0MTIuNDE0IDU1LjUzNCw0MDAuNjU1IEM1Mi4wODQsMzkxLjc3OCA0Ny45OCwzNzguNDM5IDQ2Ljg2LDM1My44NzcgQzQ1LjY0OCwzMjcuMzEzIDQ1LjM5MSwzMTkuMzQ1IDQ1LjM5MSwyNTIuMDggQzQ1LjM5MSwxODQuODE0IDQ1LjY0OCwxNzYuODQ2IDQ2Ljg2LDE1MC4yODIgQzQ3Ljk4LDEyNS43MiA1Mi4wODQsMTEyLjM4MSA1NS41MzQsMTAzLjUwNCBDNjAuMTA0LDkxLjc0NSA2NS41NjMsODMuMzUzIDc0LjM3OSw3NC41MzggQzgzLjE5NCw2NS43MjIgOTEuNTg2LDYwLjI2MyAxMDMuMzQ1LDU1LjY5MyBDMTEyLjIyMiw1Mi4yNDMgMTI1LjU2MSw0OC4xMzkgMTUwLjEyMyw0Ny4wMTkgQzE3Ni42ODcsNDUuODA3IDE4NC42NTUsNDUuNTUgMjUxLjkyMSw0NS41NSBaIiBpZD0iRmlsbC0xIiBmaWxsPSIjRkZGRkZGIiBtYXNrPSJ1cmwoI21hc2stMikiPjwvcGF0aD4gICAgICAgIDwvZz4gICAgICAgIDxwYXRoIGQ9Ik0yNTEuOTIxLDMzNi4wNTMgQzIwNS41NDMsMzM2LjA1MyAxNjcuOTQ3LDI5OC40NTcgMTY3Ljk0NywyNTIuMDggQzE2Ny45NDcsMjA1LjcwMiAyMDUuNTQzLDE2OC4xMDYgMjUxLjkyMSwxNjguMTA2IEMyOTguMjk4LDE2OC4xMDYgMzM1Ljg5NCwyMDUuNzAyIDMzNS44OTQsMjUyLjA4IEMzMzUuODk0LDI5OC40NTcgMjk4LjI5OCwzMzYuMDUzIDI1MS45MjEsMzM2LjA1MyBaIE0yNTEuOTIxLDEyMi43MTUgQzE4MC40NzQsMTIyLjcxNSAxMjIuNTU2LDE4MC42MzMgMTIyLjU1NiwyNTIuMDggQzEyMi41NTYsMzIzLjUyNiAxODAuNDc0LDM4MS40NDQgMjUxLjkyMSwzODEuNDQ0IEMzMjMuMzY3LDM4MS40NDQgMzgxLjI4NSwzMjMuNTI2IDM4MS4yODUsMjUyLjA4IEMzODEuMjg1LDE4MC42MzMgMzIzLjM2NywxMjIuNzE1IDI1MS45MjEsMTIyLjcxNSBaIiBpZD0iRmlsbC00IiBmaWxsPSIjRkZGRkZGIj48L3BhdGg+ICAgICAgICA8cGF0aCBkPSJNNDE2LjYyNywxMTcuNjA0IEM0MTYuNjI3LDEzNC4zIDQwMy4wOTIsMTQ3LjgzNCAzODYuMzk2LDE0Ny44MzQgQzM2OS43MDEsMTQ3LjgzNCAzNTYuMTY2LDEzNC4zIDM1Ni4xNjYsMTE3LjYwNCBDMzU2LjE2NiwxMDAuOTA4IDM2OS43MDEsODcuMzczIDM4Ni4zOTYsODcuMzczIEM0MDMuMDkyLDg3LjM3MyA0MTYuNjI3LDEwMC45MDggNDE2LjYyNywxMTcuNjA0IiBpZD0iRmlsbC01IiBmaWxsPSIjRkZGRkZGIj48L3BhdGg+ICAgIDwvZz48L3N2Zz4="},42248(t){"use strict";t.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHdpZHRoPSIxMDI0cHgiIGhlaWdodD0iMTAyNHB4IiB2aWV3Qm94PSIwIDAgMTAyNCAxMDI0IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPiAgICAgICAgPHRpdGxlPkZpbGwgMTwvdGl0bGU+ICAgIDxkZXNjPkNyZWF0ZWQgd2l0aCBTa2V0Y2guPC9kZXNjPiAgICA8ZGVmcz48L2RlZnM+ICAgIDxnIGlkPSJQYWdlLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPiAgICAgICAgPGcgaWQ9ImZMb2dvX1doaXRlIiBmaWxsPSIjRkZGRkZFIj4gICAgICAgICAgICA8cGF0aCBkPSJNOTY3LjQ4NCwwIEw1Ni41MTcsMCBDMjUuMzA0LDAgMCwyNS4zMDQgMCw1Ni41MTcgTDAsOTY3LjQ4MyBDMCw5OTguNjk0IDI1LjI5NywxMDI0IDU2LjUyMiwxMDI0IEw1NDcsMTAyNCBMNTQ3LDYyOCBMNDE0LDYyOCBMNDE0LDQ3MyBMNTQ3LDQ3MyBMNTQ3LDM1OS4wMjkgQzU0NywyMjYuNzY3IDYyNy43NzMsMTU0Ljc0NyA3NDUuNzU2LDE1NC43NDcgQzgwMi4yNjksMTU0Ljc0NyA4NTAuODQyLDE1OC45NTUgODY1LDE2MC44MzYgTDg2NSwyOTkgTDc4My4zODQsMjk5LjAzNyBDNzE5LjM5MSwyOTkuMDM3IDcwNywzMjkuNTI5IDcwNywzNzQuMjczIEw3MDcsNDczIEw4NjAuNDg3LDQ3MyBMODQwLjUwMSw2MjggTDcwNyw2MjggTDcwNywxMDI0IEw5NjcuNDg0LDEwMjQgQzk5OC42OTcsMTAyNCAxMDI0LDk5OC42OTcgMTAyNCw5NjcuNDg0IEwxMDI0LDU2LjUxNSBDMTAyNCwyNS4zMDMgOTk4LjY5NywwIDk2Ny40ODQsMCIgaWQ9IkZpbGwtMSI+PC9wYXRoPiAgICAgICAgPC9nPiAgICA8L2c+PC9zdmc+"},70911(t){"use strict";t.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48c3ZnIHZlcnNpb249IjEuMSIgaWQ9IldoaXRlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIgdmlld0JveD0iMCAwIDQwMCA0MDAiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDQwMCA0MDA7IiB4bWw6c3BhY2U9InByZXNlcnZlIj48c3R5bGUgdHlwZT0idGV4dC9jc3MiPi5zdDB7ZmlsbDojRkZGRkZGO308L3N0eWxlPjxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik00MDAsMjAwYzAsMTEwLjUtODkuNSwyMDAtMjAwLDIwMFMwLDMxMC41LDAsMjAwUzg5LjUsMCwyMDAsMFM0MDAsODkuNSw0MDAsMjAweiBNMTYzLjQsMzA1LjVjODguNywwLDEzNy4yLTczLjUsMTM3LjItMTM3LjJjMC0yLjEsMC00LjItMC4xLTYuMmM5LjQtNi44LDE3LjYtMTUuMywyNC4xLTI1Yy04LjYsMy44LTE3LjksNi40LTI3LjcsNy42YzEwLTYsMTcuNi0xNS40LDIxLjItMjYuN2MtOS4zLDUuNS0xOS42LDkuNS0zMC42LDExLjdjLTguOC05LjQtMjEuMy0xNS4yLTM1LjItMTUuMmMtMjYuNiwwLTQ4LjIsMjEuNi00OC4yLDQ4LjJjMCwzLjgsMC40LDcuNSwxLjMsMTFjLTQwLjEtMi03NS42LTIxLjItOTkuNC01MC40Yy00LjEsNy4xLTYuNSwxNS40LTYuNSwyNC4yYzAsMTYuNyw4LjUsMzEuNSwyMS41LDQwLjFjLTcuOS0wLjItMTUuMy0yLjQtMjEuOC02YzAsMC4yLDAsMC40LDAsMC42YzAsMjMuNCwxNi42LDQyLjgsMzguNyw0Ny4zYy00LDEuMS04LjMsMS43LTEyLjcsMS43Yy0zLjEsMC02LjEtMC4zLTkuMS0wLjljNi4xLDE5LjIsMjMuOSwzMy4xLDQ1LDMzLjVjLTE2LjUsMTIuOS0zNy4zLDIwLjYtNTkuOSwyMC42Yy0zLjksMC03LjctMC4yLTExLjUtMC43QzExMC44LDI5Ny41LDEzNi4yLDMwNS41LDE2My40LDMwNS41Ii8+PC9zdmc+"},48242(t){"use strict";t.exports="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbD0iI2ZmZiIgZD0ibTExLjA3NyAxNSAuOTkxLTEuNDE2YS43NS43NSAwIDEgMSAxLjIyOS44NmwtMS4xNDggMS42NGEuNzQ4Ljc0OCAwIDAgMS0uMjE3LjIwNiA1LjI1MSA1LjI1MSAwIDAgMS04LjUwMy01Ljk1NS43NDEuNzQxIDAgMCAxIC4xMi0uMjc0bDEuMTQ3LTEuNjM5YS43NS43NSAwIDEgMSAxLjIyOC44Nkw0LjkzMyAxMC43bC4wMDYuMDAzYTMuNzUgMy43NSAwIDAgMCA2LjEzMiA0LjI5NGwuMDA2LjAwNHptNS40OTQtNS4zMzVhLjc0OC43NDggMCAwIDEtLjEyLjI3NGwtMS4xNDcgMS42MzlhLjc1Ljc1IDAgMSAxLTEuMjI4LS44NmwuODYtMS4yM2EzLjc1IDMuNzUgMCAwIDAtNi4xNDQtNC4zMDFsLS44NiAxLjIyOWEuNzUuNzUgMCAwIDEtMS4yMjktLjg2bDEuMTQ4LTEuNjRhLjc0OC43NDggMCAwIDEgLjIxNy0uMjA2IDUuMjUxIDUuMjUxIDAgMCAxIDguNTAzIDUuOTU1em0tNC41NjMtMi41MzJhLjc1Ljc1IDAgMCAxIC4xODQgMS4wNDVsLTMuMTU1IDQuNTA1YS43NS43NSAwIDEgMS0xLjIyOS0uODZsMy4xNTUtNC41MDZhLjc1Ljc1IDAgMCAxIDEuMDQ1LS4xODR6Ii8+PC9zdmc+"},53691(t){"use strict";t.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNTAuMzc4IiBoZWlnaHQ9IjI1NC4xNjciIHZpZXdCb3g9IjAgMCA2Ni4yNDYgNjcuMjQ4Ij48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTcyLjUzMSAtMjE4LjQ1NSkgc2NhbGUoLjk4MDEyKSI+PHJlY3Qgcnk9IjUuMjM4IiByeD0iNS4yMzgiIHk9IjIzMS4zOTkiIHg9IjE3Ni4wMzEiIGhlaWdodD0iNjAuMDk5IiB3aWR0aD0iNjAuMDk5IiBmaWxsPSIjMzRhNjY4IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxwYXRoIGQ9Ik0yMDYuNDc3IDI2MC45bC0yOC45ODcgMjguOTg3YTUuMjE4IDUuMjE4IDAgMCAwIDMuNzggMS42MWg0OS42MjFjMS42OTQgMCAzLjE5LS43OTggNC4xNDYtMi4wMzd6IiBmaWxsPSIjNWM4OGM1Ii8+PHBhdGggZD0iTTIyNi43NDIgMjIyLjk4OGMtOS4yNjYgMC0xNi43NzcgNy4xNy0xNi43NzcgMTYuMDE0LjAwNyAyLjc2Mi42NjMgNS40NzQgMi4wOTMgNy44NzUuNDMuNzAzLjgzIDEuNDA4IDEuMTkgMi4xMDcuMzMzLjUwMi42NSAxLjAwNS45NSAxLjUwOC4zNDMuNDc3LjY3My45NTcuOTg4IDEuNDQgMS4zMSAxLjc2OSAyLjUgMy41MDIgMy42MzcgNS4xNjguNzkzIDEuMjc1IDEuNjgzIDIuNjQgMi40NjYgMy45OSAyLjM2MyA0LjA5NCA0LjAwNyA4LjA5MiA0LjYgMTMuOTE0di4wMTJjLjE4Mi40MTIuNTE2LjY2Ni44NzkuNjY3LjQwMy0uMDAxLjc2OC0uMzE0LjkzLS43OTkuNjAzLTUuNzU2IDIuMjM4LTkuNzI5IDQuNTg1LTEzLjc5NC43ODItMS4zNSAxLjY3My0yLjcxNSAyLjQ2NS0zLjk5IDEuMTM3LTEuNjY2IDIuMzI4LTMuNCAzLjYzOC01LjE2OS4zMTUtLjQ4Mi42NDUtLjk2Mi45ODgtMS40MzkuMy0uNTAzLjYxNy0xLjAwNi45NS0xLjUwOC4zNTktLjcuNzYtMS40MDQgMS4xOS0yLjEwNyAxLjQyNi0yLjQwMiAyLTUuMTE0IDIuMDA0LTcuODc1IDAtOC44NDQtNy41MTEtMTYuMDE0LTE2Ljc3Ni0xNi4wMTR6IiBmaWxsPSIjZGQ0YjNlIiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxlbGxpcHNlIHJ5PSI1LjU2NCIgcng9IjUuODI4IiBjeT0iMjM5LjAwMiIgY3g9IjIyNi43NDIiIGZpbGw9IiM4MDJkMjciIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PHBhdGggZD0iTTE5MC4zMDEgMjM3LjI4M2MtNC42NyAwLTguNDU3IDMuODUzLTguNDU3IDguNjA2czMuNzg2IDguNjA3IDguNDU3IDguNjA3YzMuMDQzIDAgNC44MDYtLjk1OCA2LjMzNy0yLjUxNiAxLjUzLTEuNTU3IDIuMDg3LTMuOTEzIDIuMDg3LTYuMjkgMC0uMzYyLS4wMjMtLjcyMi0uMDY0LTEuMDc5aC04LjI1N3YzLjA0M2g0Ljg1Yy0uMTk3Ljc1OS0uNTMxIDEuNDUtMS4wNTggMS45ODYtLjk0Mi45NTgtMi4wMjggMS41NDgtMy45MDEgMS41NDgtMi44NzYgMC01LjIwOC0yLjM3Mi01LjIwOC01LjI5OSAwLTIuOTI2IDIuMzMyLTUuMjk5IDUuMjA4LTUuMjk5IDEuMzk5IDAgMi42MTguNDA3IDMuNTg0IDEuMjkzbDIuMzgxLTIuMzhjMC0uMDAyLS4wMDMtLjAwNC0uMDA0LS4wMDUtMS41ODgtMS41MjQtMy42Mi0yLjIxNS01Ljk1NS0yLjIxNXptNC40MyA1LjY2bC4wMDMuMDA2di0uMDAzeiIgZmlsbD0iI2ZmZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJNMjE1LjE4NCAyNTEuOTI5bC03Ljk4IDcuOTc5IDI4LjQ3NyAyOC40NzVjLjI4Ny0uNjQ5LjQ0OS0xLjM2Ni40NDktMi4xMjN2LTMxLjE2NWMtLjQ2OS42NzUtLjkzNCAxLjM0OS0xLjM4MiAyLjAwNS0uNzkyIDEuMjc1LTEuNjgyIDIuNjQtMi40NjUgMy45OS0yLjM0NyA0LjA2NS0zLjk4MiA4LjAzOC00LjU4NSAxMy43OTQtLjE2Mi40ODUtLjUyNy43OTgtLjkzLjc5OS0uMzYzLS4wMDEtLjY5Ny0uMjU1LS44NzktLjY2N3YtLjAxMmMtLjU5My01LjgyMi0yLjIzNy05LjgyLTQuNi0xMy45MTQtLjc4My0xLjM1LTEuNjczLTIuNzE1LTIuNDY2LTMuOTktMS4xMzctMS42NjYtMi4zMjctMy40LTMuNjM3LTUuMTY5bC0uMDAyLS4wMDN6IiBmaWxsPSIjYzNjM2MzIi8+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>"},29282(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.9157.47fdf0c0fbc990b8301b.js.map