"use strict";(self["webpackChunk_zoom_client_email_desktop"]=self["webpackChunk_zoom_client_email_desktop"]||[]).push([[551,860,49,761],{70049:function(e,t,i){i.r(t),i.d(t,{default:function(){return l}});var n=function(){var e=this,t=e._self._c;return t("zm-dialog",{attrs:{visible:e.visible,title:e.showE2EEDescription?e.$t("encryption.messageEncryption"):e.$t("encryption.secureMessageWithExpiration"),"close-on-click-modal":"","append-to-body":"","close-on-press-escape":"",width:"420px"},on:{close:e.onCancel,closed:e.reset}},[t("zm-form",{ref:"expirationForm",attrs:{"label-position":"top"}},[e.showE2EEDescription?t("zm-form-item",{attrs:{label:e.$t("encryption.forAllExternalRecipients")}},[t("div",[e._v(" "+e._s(e.$t("encryption.expirationDescription"))+" ")])]):t("zm-form-item",[t("div",[e._v(" "+e._s(e.$t("encryption.expirationDescriptionExternalRecipients"))+" ")])]),t("zm-form-item",{attrs:{label:e.$t("expiration.setExpiration")}},[t("zm-select",{staticClass:"select-self-dark-mode size zm-select",attrs:{label:e.$t("expiration.setExpiration"),size:"large",popperClass:"select-dark-mode","zm-ta":"password-protection-expiration-select"},model:{value:e.expiration,callback:function(t){e.expiration=t},expression:"expiration"}},e._l(e.expirationOptions,(function(i){return t("zm-option",{key:i.value,style:{width:"100%"},attrs:{label:i.label,value:i.value,disabled:i.disabled,"zm-ta":"password-protection-expiration-select"+i.value},nativeOn:{click:function(t){return e.$metric.report(i.metric)}}})})),1)],1),e.showE2EEDescription?t("zm-form-item",{attrs:{label:e.$t("encryption.forAllInternalRecipients")}},[t("div",[e._v(" "+e._s(e.$t("encryption.encryptionDescription"))+" ")])]):e._e()],1),t("div",{attrs:{slot:"footer"},slot:"footer"},[t("div",{staticClass:"footer-left"},[e.defaultExpiration?t("zm-button",{attrs:{plain:"","zm-ta":"password-protection-remove"},on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.onRemove.apply(null,arguments)}}},[e._v(" "+e._s(e.$t("operation.remove"))+" ")]):e._e()],1),t("div",[t("zm-button",{attrs:{type:"secondary","zm-ta":"password-protection-cancel"},on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.onCancel.apply(null,arguments)}}},[e._v(" "+e._s(e.$t("operation.cancel"))+" ")]),t("zm-button",{attrs:{type:"primary","zm-ta":"password-protection-save"},on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.submitForm.apply(null,arguments)}}},[e._v(" "+e._s(e.$t("operation.save"))+" ")])],1)])],1)},o=[],s={name:"EncryptionDialog",props:{title:String,defaultExpiration:{type:Number,default:null},showE2EEDescription:{type:Boolean,default:!1},visible:{type:Boolean,default:!1}},data:function(){return{expiration:null,expirationOptions:[{label:this.$t("time.oneDay"),value:86400,metric:"password_protection_one_day"},{label:this.$t("time.oneWeek"),value:604800,metric:"password_protection_one_week"},{label:this.$t("time.oneMonth"),value:2592e3,metric:"password_protection_one_month"}]}},watch:{visible:function(e){if(e)if(this.defaultExpiration)this.expiration=this.defaultExpiration;else{var t=this.expirationOptions.length-1,i=this.expirationOptions[t].value;this.expiration=i}}},methods:{reset:function(){this.expiration=this.defaultExpiration},onRemove:function(){this.$emit("onRemove"),this.$metric.report("remove_password_protection")},onCancel:function(){this.$emit("onCancel"),this.$metric.report("cancel_password_protection")},submitForm:function(){this.$emit("onOk",this.expiration),this.$metric.report("create_password_protection")}}},r=s,a=i(93483),c=(0,a.Z)(r,n,o,!1,null,"ec897e50",null),l=c.exports},27761:function(e,t,i){i.r(t),i.d(t,{default:function(){return m}});var n=function(){var e=this,t=e._self._c;return t("ComposeBanner",{attrs:{iconClass:"locked-circle",content:e.content},on:{close:e.handleClose}},[t("zm-button",{attrs:{slot:"actions","aria-label":e.$t("accessibility.editPasswordProtection"),type:"link",size:"mini"},on:{click:e.handleEdit},slot:"actions"},[e._v(" "+e._s(e.$t("operation.edit"))+" ")])],1)},o=[],s=i(34948),r=i(29648),a=i(36289),c={name:"ExpirationBanner",components:{ComposeBanner:a.Z},props:{addExternalNote:{type:Boolean,default:!1},expirationSeconds:{type:Number,default:2592e3}},data:function(){return{durationOptions:{86400:this.$t("time.oneDay"),604800:this.$t("time.oneWeek"),2592e3:this.$t("time.oneMonth")}}},computed:(0,s.Z)((0,s.Z)({},(0,r.rn)({userTimeZone:function(e){return e.userProfile.userTimeZone}})),{},{expDate:function(){return this.getExpDate(this.expirationSeconds)},content:function(){return this.addExternalNote?this.$t("editor.expirationBannerExternal",[this.expDate]):this.$t("editor.expirationBanner",[this.expDate])}}),methods:{getExpDate:function(e){return this.durationOptions[e]},handleEdit:function(){this.$emit("edit"),this.$metric.report("edit_password_protection")},handleClose:function(){this.$emit("dismiss"),this.$metric.report("remove_password_protection")}}},l=c,d=i(93483),u=(0,d.Z)(l,n,o,!1,null,null,null),m=u.exports},12551:function(e,t,i){i.r(t),i.d(t,{default:function(){return Re}});var n=function(){var e=this,t=e._self._c;return t("div",{ref:"composeContainer",staticClass:"compose-container"},[t("div",{ref:"composeListWrap",class:["compose-list-wrap",{"single-draft":e.isComposeShouldOnEdge||e.hideShortcuts}]},[t("transition-group",{attrs:{name:"compose-list"}},e._l(e.composeList,(function(i){return t("Compose",{key:i.key,ref:"composeRef_".concat(i.key),refInFor:!0,attrs:{id:i.key,isCurrent:e.currentCompose&&e.currentCompose.key===i.key,composeItem:i.composeItem,composeType:i.composeType,isDraft:i.isDraft,isForward:i.isForward,isReply:i.isReply,fromPopOut:i.fromPopOut,preTo:i.preTo,preSubject:i.preSubject},on:{triggerClose:e.handleComposeClose,minimize:e.handleComposeMinimize,updateSubject:e.handleComposeUpdate,creatingOrUpdating:e.creatingOrUpdating}})})),1)],1),t("div",{directives:[{name:"show",rawName:"v-show",value:e.showComposeShortCut,expression:"showComposeShortCut"}],ref:"shortcutListRef",staticClass:"compose-shortcut-list-wrap",style:e.inlineStyles},[t("transition-group",{attrs:{name:"compose-shortcut-list"}},e._l(e.composeShortcutList,(function(i){return t("ComposeShortcut",{key:i.key,ref:"composeShortcut_".concat(i.key),refInFor:!0,attrs:{id:i.key,isCurrent:e.currentCompose&&e.currentCompose.key===i.key,composeItem:i.composeItem,isDraft:i.isDraft,isForward:i.isForward,isReply:i.isReply,preTo:i.preTo,creatingOrUpdatingLists:e.creatingOrUpdatingLists,isAllowCompose:e.allowComposeFromShortcut},on:{close:e.handleShortcutClose,onShowCompose:function(t){return e.onShowCompose(i.key)}}})})),1)],1)])},o=[],s=i(70021),r=i(56706),a=i(34948),c=i(37761),l=i.n(c),d=i(29648),u=i(53806),m=i(63012),p=i(6041),h=i(26274),f=function(){var e,t=this,i=t._self._c;return i("div",{ref:"root",class:["compose-wrap",{hide:!t.isCurrent,"fullscreen-size":t.fullScreen,"is-locked":t.draftIsFreezed}],style:{minHeight:t.fullScreen?"auto":"".concat(t.composeHeight,"px"),maxHeight:t.fullScreen?"".concat(t.maxHeight,"px"):"".concat(t.maxHeight-50,"px"),width:t.fullScreen?"auto":"".concat(t.composeWidth,"px")},on:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"tab",9,e.key,"Tab")?null:t.handleFocusTrap.apply(null,arguments)},focusin:t.handleFocusIn}},[i("div",{staticClass:"compose-title-bar"},[i("div",{staticClass:"compose-resize-bar-horizontal",on:{mousedown:function(e){return e.preventDefault(),e.stopPropagation(),t.handleResizeMouseDown(e,"horizontal")}}}),i("div",{staticClass:"compose-title-text"},[t._v(" "+t._s(t.composeTitle)+" ")]),i("div",{staticClass:"caption-button-wrap"},[i("zm-tooltip",{attrs:{content:t.$t("common.minimize"),placement:"bottom",enterable:!1}},[i("zm-button",{ref:"minimizeButton",staticClass:"caption-button",attrs:{"tab-index":"1","aria-label":t.$t("common.minimize"),"aria-expanded":void 0,"zm-ta":"new-compose-minimize"},on:{click:t.handleMini}},[i("SvgIcon",{attrs:{iconClass:"minus"}})],1)],1),i("zm-tooltip",{attrs:{content:t.$t("common.fullScreen"),placement:"bottom",enterable:!1}},[i("zm-button",{staticClass:"caption-button",attrs:{"tab-index":"1","aria-label":t.$t("common.fullScreen"),"aria-expanded":void 0,"zm-ta":"new-compose-maximize"},on:{click:t.handleFullScreen}},[i("SvgIcon",{attrs:{iconClass:t.fullScreen?"minimize":"maximize"}})],1)],1),i("zm-tooltip",{attrs:{content:t.$t("common.saveAndClose"),placement:"bottom",enterable:!1}},[i("zm-button",{staticClass:"caption-button",attrs:{"tab-index":"1","aria-label":t.$t("common.saveAndClose"),"aria-expanded":void 0,"zm-ta":"new-compose-close"},on:{click:t.triggerClose}},[i("SvgIcon",{attrs:{iconClass:"close"}})],1)],1)],1)]),i("div",{staticClass:"compose-header"},[i("div",{directives:[{name:"show",rawName:"v-show",value:t.isComposeFromFieldVisible,expression:"isComposeFromFieldVisible"}],staticClass:"recipients-line"},[i("span",{staticClass:"recipients-line-label"},[t._v(t._s(t.$t("editor.from")))]),t.hasSendAsList?i("FromSelector",{attrs:{fromUserMail:t.fromUserMail,replyTo:t.replyTo},on:{"update:fromUserMail":function(e){t.fromUserMail=e},"update:from-user-mail":function(e){t.fromUserMail=e},"update:replyTo":function(e){t.replyTo=e},"update:reply-to":function(e){t.replyTo=e}}}):t._e(),t.hasAliasList?i("AliasSelector",{attrs:{disabled:t.isAliasSelectorDisabled},on:{select:t.onSelectAlias}}):t._e()],1),i("div",{ref:"contactSelectors"},[i("div",{staticClass:"recipients-line"},[i("span",{staticClass:"recipients-line-label"},[t._v(t._s(t.$t("filter.to")))]),i("contactsSelector",{ref:"toContactRef",attrs:{label:t.$t("filter.to"),value:t.to,type:"to",disableAllActions:t.draftIsFreezed},on:{change:function(e){t.to=e},typeMapChange:function(e){t.toContactToTypeMap=e},resetShowActions:t.resetShowActions}}),i("span",{directives:[{name:"show",rawName:"v-show",value:!t.showCc,expression:"!showCc"}],class:["showToAction","tab-focus",{disabled:t.draftIsFreezed}],attrs:{tabindex:"0",role:"button","aria-label":t.$t("accessibility.addCc")},on:{click:function(e){return e.stopPropagation(),t.handleCc.apply(null,arguments)},keydown:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleCc.apply(null,arguments)},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"space",32,e.key,[" ","Spacebar"])?null:t.handleCc.apply(null,arguments)}]}},[t._v(" "+t._s(t.$t("editor.cc"))+" ")]),i("span",{directives:[{name:"show",rawName:"v-show",value:!t.showBcc,expression:"!showBcc"}],class:["showToAction","tab-focus",{disabled:t.draftIsFreezed}],attrs:{tabindex:"0",role:"button","aria-label":t.$t("accessibility.addBcc")},on:{click:function(e){return e.stopPropagation(),t.handleBcc.apply(null,arguments)},keydown:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleBcc.apply(null,arguments)},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"space",32,e.key,[" ","Spacebar"])?null:t.handleBcc.apply(null,arguments)}]}},[t._v(" "+t._s(t.$t("editor.bcc"))+" ")])],1),i("div",{directives:[{name:"show",rawName:"v-show",value:t.showCc,expression:"showCc"}],staticClass:"recipients-line"},[i("span",{staticClass:"recipients-line-label"},[t._v(t._s(t.$t("editor.cc")))]),i("contactsSelector",{ref:"ccContactRef",attrs:{label:t.$t("editor.cc"),value:t.cc,type:"cc",disableAllActions:t.draftIsFreezed},on:{change:function(e){t.cc=e},typeMapChange:function(e){t.ccContactToTypeMap=e},resetShowActions:t.resetShowActions}})],1),i("div",{directives:[{name:"show",rawName:"v-show",value:t.showBcc,expression:"showBcc"}],staticClass:"recipients-line"},[i("span",{staticClass:"recipients-line-label"},[t._v(t._s(t.$t("editor.bcc")))]),i("contactsSelector",{ref:"bccContactRef",attrs:{label:t.$t("editor.bcc"),value:t.bcc,type:"bcc",disableAllActions:t.draftIsFreezed},on:{change:function(e){t.bcc=e},typeMapChange:function(e){t.bccContactToTypeMap=e},resetShowActions:t.resetShowActions}})],1)]),i("div",{staticClass:"subject"},[i("zm-input",{ref:"input",attrs:{disabled:t.draftIsFreezed,placeholder:t.$t("filter.subject"),"zm-ta":"new-compose-subject"},model:{value:t.subject,callback:function(e){t.subject=e},expression:"subject"}}),t.showSmartSubject&&t.smartSubject?i("SmartSubject",{attrs:{subject:t.smartSubject},on:{dismiss:t.discardSubject,replace:t.selectSmartCompose}}):t._e()],1)]),t.draftIsFreezed?i("div",{ref:"editorBody",class:["compose-body",{"is-quarantined":t.isQuarantined}]},[t.isLocked?i("locked-draft-content",{attrs:{draftDetail:t.composeItem,labelId:t.currentLabelId},on:{updateDraftContent:t.handleUpdateDraftContent}}):i("span",[t._v(t._s(t.$t("compliance.lockedQuarantinedDraft")))])],1):i("div",{ref:"editorBody",staticClass:"compose-body"},[i("drop-zone",{attrs:{onDragOver:t.handleDragZoneDragOver,onDragEnter:t.debouncedPositionUploader,onLeaveWindow:t.onLeaveWindow,filesOnly:""}},[i("editor",{ref:"editor",attrs:{inlineImages:t.inlineImages,options:t.editorOptions,to2Contacts:t.to2Contacts,noPadding:"",useToolbar:!t.showFixedEditTool,"zm-ta":"new-compose-editor"},on:{"hook:mounted":t.editorMounted,input:t.handleEditorContentUpdate,immediateUpdate:t.handleImmediateUpdate,showFileSelector:t.showFileSelector,pasteFiles:t.uploadFiles,imageInserted:t.removeInsertedImage,addContact:t.handleAddContact,removeContact:t.handleRemoveContact,changeToFixedToolbar:function(e){t.showFixedEditTool=!0}}})],1)],1),i("div",{staticClass:"compose-footer"},[t.isQuarantined?t._e():[t.isOfflineByDisconnection?i("offline-mode-compose-banner"):t._e(),t.hasExternalRecipients&&!t.externalBannerDismissed&&!t.showExpirationBanner&&t.externalWarningConfiguration.warningBannerSendEnabled?i("external-user-warning-banner",{on:{dismiss:function(e){t.externalBannerDismissed=!0}}}):t._e(),t.hasRecipientsLengthExceedLimit?i("recipient-length-limit-banner"):t._e(),t.hasGroupRecipients&&!t.groupBannerDismissed?i("group-email-banner",{on:{dismiss:function(e){t.groupBannerDismissed=!0}}}):t._e(),t.showExpirationBanner?i("expiration-banner",{attrs:{expirationSeconds:t.expirationSeconds,addExternalNote:t.hasInternalRecipients},on:{edit:t.openEncryptionModal,dismiss:t.handleCloseExpirationBanner}}):t._e(),t.showScheduledSend?i("scheduled-send-banner",{ref:"scheduledSend",attrs:{scheduledTime:t.scheduledTime,isEdit:!0},on:{handleCustomTimeVisible:t.handleCustomTimeVisible,handleEditScheduledSend:t.handleEditScheduledSend,handleScheduledSend:t.handleScheduledSend,setScheduledTime:t.setScheduledTime}}):t._e(),t.isDelegated?i("delegate-banner",{attrs:{showDelegateBanner:t.isDelegated}}):t._e(),t.showOOO?i("OOOStatusBanner",{attrs:{recipientsStatus:t.recipientsStatus},on:{hide:t.forceHide}}):t._e()],t.availableAttachmentList.length>0?i("AttachmentsList",{attrs:{attachments:t.availableAttachmentList,showDelete:!0,fromPopOut:t.fromPopOut},on:{deleteItem:t.handleDeleteItem}}):t._e(),t.displayMailMergeBanner?i("ComposeBanner",{attrs:{iconClass:"megaphone",content:t.$t("mailMerge.desc"),actionText:t.$t("mailMerge.disable")},on:{action:t.disableMailMerge,close:t.closeDisplayMailMergeBanner}}):t._e(),t.$refs.editor?i("editor-toolbar",{directives:[{name:"show",rawName:"v-show",value:t.showFixedEditTool,expression:"showFixedEditTool"}],attrs:{"zm-ta":"new-compose-editor-toolbar",isFlowStyle:!1,isFloatStyle:!0,formatState:t.$refs.editor.formatState,selectedFontSize:t.$refs.editor.selectedFontSize},on:{commandAction:t.$refs.editor.handleToolbarAction,showLinkEdit:t.$refs.editor.showLinkEditDialog,changeToFixedToolbar:t.$refs.editor.changeToFixedToolbar,handleFontSizeChange:t.$refs.editor.handleFontSizeChange}}):t._e(),t.draftIsFreezed?i("toolbar",{attrs:{disabledActions:"all",msgId:t.msgId}}):i("toolbar",{ref:"toolbar",attrs:{showEditTool:t.showFixedEditTool,isCompose:!0,hasDraftContent:!!t.plainDraftContent,hiddenActions:(e={},(0,h.Z)(e,t.ToolbarActions.INSERT_INLINE_IMAGE,!0),(0,h.Z)(e,t.ToolbarActions.SET_ENCRYPTION,!t.showEncryptionButton),e),disabledActions:(0,h.Z)({},t.ToolbarActions.DELAYED_SEND,"Uploading"===t.attachmentsStatus||t.hasRecipientsLengthExceedLimit),tooltipPlacement:t.fullScreen?"top":"bottom",isEditScheduledSend:t.isEditScheduledSend,scheduledTime:t.scheduledTime,msgId:t.msgId,isPromptEditorVisible:t.isPromptEditorVisible,selectedSignatureId:t.selectedSignatureId,encryptionActive:t.encryptionActive,getEditorRef:function(){return t.$refs.editor},useMailMerge:t.useMailMerge,customTimeVisible:t.customTimeVisible},on:{setUseMailMerge:t.setUseMailMerge,setMailMergeData:t.setMailMergeData,handleMailMerge:t.handleMailMerge,setTo:t.setTo,toggleEditTool:function(e){t.showFixedEditTool=!t.showFixedEditTool},handleScheduledSend:t.handleScheduledSend,handleEditScheduledSend:t.handleEditScheduledSend,handleCustomTimeVisible:t.handleCustomTimeVisible,setScheduledTime:t.setScheduledTime,send:t.handleSend,selectSignature:t.handleSelectSignature,delete:t.handleDraftDelete,openPromptEditor:t.openPromptEditor,insertTemplate:t.handleInsertTemplate,setEncryption:t.handleSetEncryption,changeToFixedToolbar:function(e){t.showFixedEditTool=!0}}})],2),i("EncryptionDialog",{attrs:{showE2EEDescription:t.hybridModeActive,visible:t.showEncryptionModal,defaultExpiration:t.expirationSeconds,"zm-ta":"password-protection-expiration-dialog"},on:{onCancel:t.closeEncryptionModal,onOk:t.setExpirationTime,onRemove:function(e){return t.removeExpirationTime(!0)}}}),i("prompt-editor",{attrs:{visible:t.isPromptEditorVisible,"preset-draft":t.plainDraftContent,recipients:[].concat((0,p.Z)(t.to),(0,p.Z)(t.cc))},on:{closePromptEditor:function(e){t.isPromptEditorVisible=!1},onInsertContent:t.insertNewCompose,onHasGeneratedContent:t.onHasGeneratedContent}}),i("mail-merge-error-dialog",{attrs:{title:t.mailMergeErrorTitle,message:t.mailMergeErrorMsg,visible:t.displayMailMergeErrorDialog},on:{handleCancel:t.handleErrorDialog}}),i("mail-merge-ready-send-dialog",{attrs:{visible:t.displayMailMergeReadySendDialog,emails:t.to},on:{handleCancel:t.handleCancelReadySend,handleSend:t.handleMailMergeSend}})],1)},g=[],v=i(84282),C=(i(6886),i(77950),i(6710),i(37348)),b=i.n(C),S=i(79337),y=i(36289),w=i(72951),E=i(69899),D=i(19052),M=i(7790),I=i(54700),$=i(61514),T=i(81020),x=i(41331),_=i(97626),L=i(94256),k=i(70049),z=i(27761),O=i(70607),H=i(53744),Z=i(19030),A=i(64908),R=i(76860),F=i(87693),B={DEFAULT_WIDTH:615,DEFAULT_HEIGHT:550},U=i(96713),P=i(32682),j=i(94e3),W=i(66235),N=function(){var e=this,t=e._self._c;return t("div",{class:["smart-subject","tab-focus"],attrs:{tabindex:"0","aria-label":e.$t("GPT.suggestion",[e.subject])}},[t("i18n",{staticClass:"suggestion-text",attrs:{path:"GPT.suggestion",tag:"span"},scopedSlots:e._u([{key:"0",fn:function(){return[t("span",{staticClass:"suggestion-text-content"},[e._v(e._s(e.subject)+" ")])]},proxy:!0}],null,!1,4108712466)}),t("div",{staticClass:"actions"},[t("zm-button",{attrs:{type:"plain"},on:{click:e.handleReplace}},[e._v(e._s(e.$t("GPT.replace")))]),t("zm-tooltip",{staticClass:"item",attrs:{placement:"bottom",content:e.$t("common.dismiss")}},[t("zm-button",{staticClass:"discard",attrs:{ghost:"","aria-label":e.$t("common.dismiss")},on:{click:e.handleDiscard}},[t("svg-icon",{attrs:{iconClass:"close"}})],1)],1)],1)],1)},V=[],G={name:"SmartSubject",props:{subject:{type:String,default:""}},emits:["dismiss","replace"],data:function(){return{ariaAnnouncement:""}},methods:(0,a.Z)((0,a.Z)({},(0,d.OI)(["ariaAnnounce"])),{},{handleDiscard:function(){this.ariaAnnounce(this.$t("GPT.suggestedSubjectDismissed")),this.$emit("dismiss")},handleReplace:function(){this.ariaAnnounce(this.$t("GPT.subjectIsReplaced")),this.$emit("replace")}})},Y=G,q=i(93483),Q=(0,q.Z)(Y,N,V,!1,null,"2428537f",null),X=Q.exports,K=i(17891),J=i(36463),ee=i(1679),te=i(84912),ie=i(77291),ne=i(49585),oe=function(){var e=this,t=e._self._c;return t("zm-dialog",{attrs:{title:e.title,modal:"","modal-append-to-body":"","append-to-body":"","lock-scroll":"","close-on-press-escape":!1,visible:e.isVisible,width:"400px"},on:{"update:visible":function(t){e.isVisible=t}}},[t("p",[e._v(e._s(e.message))]),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("zm-button",{attrs:{type:"primary"},on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.handleOk.apply(null,arguments)}}},[e._v(e._s(e.$t("common.ok")))])],1)])},se=[],re={name:"MailMergeErrorDialog",inheritAttrs:!0,props:{title:{type:String,default:""},message:{type:String,default:""},visible:{type:Boolean,default:function(){return!1}}},data:function(){return{isVisible:!1}},watch:{visible:function(e){this.isVisible=e}},methods:{handleOk:function(){this.$emit("handleCancel")}}},ae=re,ce=(0,q.Z)(ae,oe,se,!1,null,"aff12d82",null),le=ce.exports,de=function(){var e=this,t=e._self._c;return t("zm-dialog",{attrs:{title:e.title,modal:"","modal-append-to-body":"","append-to-body":"","lock-scroll":"","close-on-press-escape":!1,visible:e.isVisible,width:"400px"},on:{"update:visible":function(t){e.isVisible=t}}},[t("p",[e._v(e._s(e.$t("mailMerge.readyToSend")))]),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("zm-button",{on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.handleCancel.apply(null,arguments)}}},[e._v(e._s(e.$t("externalImage.cancel")))]),t("zm-button",{attrs:{type:"primary"},on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.onSend.apply(null,arguments)}}},[e._v(e._s(e.$t("common.sendAll")))])],1)])},ue=[],me={name:"MailMergeReadySendDialog",inheritAttrs:!0,props:{visible:{type:Boolean,default:function(){return!1}},emails:{type:Array,default:function(){return[]}}},data:function(){return{isVisible:!1,firstName:"",lastName:""}},computed:{title:function(){return 1===this.emails.length?this.$t("mailMerge.emailWillBeSent",[this.emails.length]):this.$t("mailMerge.emailsWillBeSent",[this.emails.length])}},watch:{visible:function(e){this.isVisible=e}},methods:{handleCancel:function(){console.log("Dialog onCancel"),this.$emit("handleCancel")},onSend:function(){this.$emit("handleSend")}}},pe=me,he=(0,q.Z)(pe,de,ue,!1,null,"f714c2c4",null),fe=he.exports,ge=i(12327),ve=i(84878),Ce=u.Components.LockedDraftContent,be=u.Enums.RESPOND_TYPE,Se=u.Enums.SettingConfigField,ye=u.Enums.ENCRYPTION_MODE,we=u.Enums.SystemDefinedMailLabelIds,Ee=u.Business.labelUtils,De=(0,F.wE)((function(){return Promise.resolve().then(i.bind(i,12327))})),Me={name:"Compose",components:{Editor:w["default"],Toolbar:De,SvgIcon:_.Z,ComposeBanner:y.Z,FromSelector:K.Z,AliasSelector:J.Z,contactsSelector:O.Z,DropZone:R["default"],EncryptionDialog:k["default"],ExpirationBanner:z["default"],ScheduledSendBanner:E.Z,ExternalUserWarningBanner:D.Z,RecipientLengthLimitBanner:M.Z,LockedDraftContent:Ce,GroupEmailBanner:$.Z,OOOStatusBanner:T.Z,AttachmentsList:L.Z,DelegateBanner:x.Z,OfflineModeComposeBanner:I.Z,PromptEditor:W.Z,SmartSubject:X,EditorToolbar:ne.Z,MailMergeErrorDialog:le,MailMergeReadySendDialog:fe},mixins:[Z.b,A.v7,A.go,ee.Z,A.kK],props:{id:{type:String,default:""},isCurrent:{type:Boolean,default:!1},composeItem:{type:Object,default:function(){}},composeType:{type:String,default:""},isDraft:{type:Boolean,default:!1},isForward:{type:Boolean,default:!1},isReply:{type:Boolean,default:!1},preTo:{type:Array,default:function(){return[]}},fromPopOut:{type:Boolean,default:!1},preSubject:{type:String,default:""}},data:function(){return{ToolbarActions:ge.ToolbarActions,showFixedEditTool:!1,clientHeight:window.innerHeight,originalComposeHeight:B.DEFAULT_HEIGHT,originalComposeWidth:B.DEFAULT_WIDTH,composeHeight:B.DEFAULT_HEIGHT,composeWidth:B.DEFAULT_WIDTH,minComposeHeight:B.DEFAULT_HEIGHT,resizing:!1,resizeOriginalPos:{offsetX:0,offsetY:0},resizeOri:"",fromUserMail:null,replyTo:null,to:[],cc:[],bcc:[],toContactToTypeMap:{},ccContactToTypeMap:{},bccContactToTypeMap:{},subject:"",content:"",showCc:!1,showBcc:!1,useMailMerge:!1,fullScreen:!1,groupBannerDismissed:!1,externalBannerDismissed:!1,showEncryptionModal:!1,showExpirationBanner:!1,expirationSeconds:null,composePrepared:!1,isComposeDirty:!1,isSending:!1,creatingOrUpdating:!1,isEditorMounted:!1,msgId:"",mailId:"",totalMessageSize:0,updatedContent:!1,editorOptions:{isComposeEditor:!0},showScheduledSend:!1,customTimeVisible:!1,isEditScheduledSend:!1,scheduledTime:null,isPromptEditorVisible:!1,showSmartSubject:!1,smartSubject:"",hasGeneratedContent:!1,plainDraftContent:"",isDeletingOrSending:!1,selectedSignatureId:"",hideToolbarByDefault:!0,defaultFontSize:"medium",displayMailMergeErrorDialog:!1,displayMailMergeMissingDataDialog:!1,displayMailMergeReadySendDialog:!1,mailMergeErrorMsg:"",mailMergeErrorTitle:"",mailMergeDefaults:{},mailMergeData:{},displayMailMergeBanner:!1,encryptionOn:!1}},computed:(0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)({},(0,d.rn)({userTimeZone:function(e){return e.userProfile.userTimeZone},typeOfEmail:function(e){return e.typeOfEmail},inboxItem:function(e){return e.currentInboxItem},undoDuration:function(e){return e.undoDuration},allowMailExternalImg:function(e){return e.allowMailExternalImg},isDelegated:function(e){return e.userProfile.isDelegated},outgoingRecipientsLimitPerMessage:function(e){return e.userProfile.outgoingRecipientsLimitPerMessage},sendAsList:function(e){return e.sendAsList},aliasList:function(e){return e.alias.aliasList},recipientInfo:function(e){return e.recipientInfo}})),(0,d.rn)("auth",["defaultAccountLists"])),(0,d.rn)("signature",["defaultNewComposeSignatureId","defaultReplyComposeSignatureId"])),(0,d.Se)(["externalWarningConfiguration","isZmail","isEncryptedZmail","currentLabelId","isOfflineByDisconnection","getLabelIdByMailId","hasSendAsList","hasAliasList","isComposeFromFieldVisible","getMailHeadByMailId","hybridModeActive","defaultComposeEncryptionState"])),(0,d.Se)("features",["enableHybridEncryptionModeSupport"])),(0,d.Se)("delegate",["permissionRole"])),(0,d.Se)("auth",["isZmailVirtualUser"])),{},{composePermission:function(e){var t=e.permissionRole;return(0,ve.yz)(t,ve.Vn.COMPOSE_EMAIL)},canConsumeUploadedFile:function(){return!0},maxHeight:function(){return this.clientHeight},isLocked:function(){var e;return u.Utils.isDecryptFailed(null===(e=this.composeItem)||void 0===e?void 0:e.decryptionStatus)},isQuarantined:function(e){var t=e.composeItem;return Ee.isMsgQuarantined(t)},draftIsFreezed:function(e){var t=e.isQuarantined,i=e.isLocked,n=e.composePermission;return t||i||!n},composeTitle:function(){var e;return(null===(e=this.composeItem)||void 0===e?void 0:e.mailHead.subject)||this.preSubject||this.$t("editor.newMail")},recipients:function(){return[].concat((0,p.Z)(this.to),(0,p.Z)(this.cc),(0,p.Z)(this.bcc))},metricContext:function(){var e="new_email";return this.isForward&&(e="forward"),this.isReply&&(e="reply"),e},DEFAULT_HTML:function(){return this.defaultFontSize&&"medium"!==this.defaultFontSize?'

'):"

"},hasInternalRecipients:function(){return this.hasRecipientsOfType("internal")},hasExternalRecipients:function(){return this.hasRecipientsOfType("external")},hasGroupRecipients:function(){return this.hasRecipientsOfType("group")},hasExternalOrGroupRecipients:function(){return this.hasExternalRecipients||this.hasGroupRecipients},hasRecipientsLengthExceedLimit:function(){return[].concat((0,p.Z)(this.to),(0,p.Z)(this.cc),(0,p.Z)(this.bcc)).length>this.outgoingRecipientsLimitPerMessage},isAliasSelectorDisabled:function(){return this.mailEncryptionMode!==ye.PLAINTEXT}}),watch:{maxHeight:{handler:function(){this.composeHeight>this.maxHeight-50&&(this.composeHeight=this.maxHeight-50)},immediate:!0},isCurrent:function(e){e&&this.autofocus()},subject:function(e){this.$emit("updateSubject",{id:this.id,subject:e})},cc:function(e,t){l().isEqual(e,t)||(this.showCc=!0)},bcc:function(e,t){l().isEqual(e,t)||(this.showBcc=!0)},hasExternalOrGroupRecipients:function(e){e||this.removeExpirationTime()},activeKeyBinding:function(e){var t=e.action,i=e.event;if(this.windowContainsFocus())switch(t){case"editor-send":i.preventDefault(),this.isCurrent&&"Uploading"!=this.attachmentsStatus&&!this.hasRecipientsLengthExceedLimit&&this.handleSend();break;case"editor-add-cc":i.preventDefault(),this.handleCc();break;case"editor-add-bcc":i.preventDefault(),this.handleBcc();break;default:break}},isPromptEditorVisible:function(e){e||(this.hasGeneratedContent=!1)},hasGeneratedContent:function(e){this.refineComposeHeight()}},created:function(){var e=this;console.log("created ====> ",this.isCurrent),this.debouncedHandleResizeMouseMove=l().throttle(this.handleResizeMouseMove,16),this.$once("hook:beforeDestroy",(function(){e.debouncedHandleResizeMouseMove.cancel()})),window.addEventListener("resize",this.resizedWindow),this.$nextTick((0,r.Z)((0,s.Z)().mark((function t(){var i,n,o,a,c,d,p,h,f,g,v,C,b,S,y,w,E,D,M,I,$,T,x,_,L,k,z,O,Z,A;return(0,s.Z)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return console.log("this.composeItem ===> ",e.composeItem),t.next=3,e.getSignatureContent();case 3:return i=t.sent,t.next=6,m.Setting.getPersistentSetting({key:Se.EDIT_TOOL});case 6:if(n=t.sent,o=n.errorCode,a=n.data,0===o)try{c=JSON.parse((null===a||void 0===a?void 0:a.value)||"{}"),d=c.hideToolbarByDefault,p=void 0===d||d,h=c.fontSize,f=void 0===h?"medium":h,e.hideToolbarByDefault=p,e.defaultFontSize=f}catch(R){console.error(R)}e.composeItem?(g=e.composeItem,v=g.bcc,C=g.from,b=g.cc,S=g.content,y=g.mailHead,w=g.to,E=g.attachments,D=g.replyTo,M=(0,F.mM)(u.Utils.sanitizeHTML2String(null===y||void 0===y?void 0:y.subject)),I=(0,F.mM)(S,{WHOLE_DOCUMENT:!0}),$=u.Utils.sanitizeHTML2String(null===C||void 0===C?void 0:C.displayName),y.mailMerge&&(e.useMailMerge=!0,e.displayMailMergeBanner=!0,y.mailMerge.columnNames&&(e.mailMergeData=y.mailMerge)),T=u.Utils.sanitizeHTML2String(null===C||void 0===C?void 0:C.emailAddr),e.isForward?(x=y&&y.subject?y.subject:"",e.subject="Fwd: "+u.Utils.stripSubjectPrefix(x),e.attachments=E&&E.length>0?E.map((function(t){return t.msgId=e.composeItem.mailHead.msgId,t})):[],console.log("this.attachments",e.attachments),e.to=[],e.bcc=[],e.cc=[],_=(0,F.mM)(w.map((function(e){return"".concat(u.Utils.sanitizeHTML2String(e.displayName),'<').concat(u.Utils.sanitizeHTML2String(e.emailAddr),">")})).join(", ")),L=(0,F.mM)(b.length>0?"
Cc: "+b.map((function(e){return"".concat(u.Utils.sanitizeHTML2String(e.displayName),'<').concat(u.Utils.sanitizeHTML2String(e.emailAddr),">")})).join(", ")+"
":""),k='\n
\n
\n
---------- Forwarded message ----------
\n
\n From: '.concat($,'<').concat(T,">\n
\n
Date: ").concat(e.formatTime(y.date),"
\n
Subject: ").concat(M,"
\n
To: ").concat(_,"\n
\n ").concat(L,"\n
\n
\n ").concat(I,"\n
\n ")+i,console.log("forwarding mail new content ===> ",k),e.setEditorContent(k),e.setEditorEllipsisContent("")):e.isDraft?(e.initComposeContentWithDraft(e.composeItem),e.inReplyTo=null===(z=e.composeItem.mailHead)||void 0===z?void 0:z.inReplyTo,e.replyTo=D,e.fromUserMail=C):(e.to=w?w.map((function(e){return e.emailAddr})):[],e.bcc=v?v.map((function(e){return e.emailAddr})):[],e.cc=b?b.map((function(e){return e.emailAddr})):[],e.replyTo=D,e.fromUserMail=C,O="\n
".concat(I,"
\n "),e.setEditorContent(I?O:i),e.subject=y&&y.subject?y.subject:"",e.attachments=E&&E.length>0?E:[])):(i.length>0?(console.log("opening a new compose"),A="".concat(e.DEFAULT_HTML).concat(i),e.setEditorContent(A),e.setEditorEllipsisContent("")):e.setEditorContent("".concat(e.DEFAULT_HTML)),e.preTo.length>0&&(e.to=e.preTo),!e.preSubject||null!==(Z=e.subject)&&void 0!==Z&&Z.length||(e.subject=e.preSubject),e.encryptionOn=e.defaultComposeEncryptionState),e.debounceComposeChange=l().debounce((function(){e.doCreateOrUpdate()}),H.Z.composeChangedFrequency,{leading:!0,trailing:!0}),e.monitorComposeChange=function(){e.composePrepared&&(e.isComposeDirty=!0,e.debounceComposeChange())},e.updateImmediately=(0,r.Z)((0,s.Z)().mark((function t(){return(0,s.Z)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!e.composePrepared){t.next=4;break}e.isComposeDirty=!0,t.next=5;break;case 4:return t.abrupt("return");case 5:if(e.msgId){t.next=10;break}return t.next=8,e.createDraft();case 8:t.next=13;break;case 10:if(!e.msgId){t.next=13;break}return t.next=13,e.updateDraft();case 13:case"end":return t.stop()}}),t)}))),e.$watch("to",e.monitorComposeChange),e.$watch("cc",e.monitorComposeChange),e.$watch("bcc",e.monitorComposeChange),e.$watch("subject",e.monitorComposeChange),e.$watch("attachments",e.updateImmediately),e.$watch("expirationSeconds",e.monitorComposeChange),e.$watch("encryptionOn",e.monitorComposeChange),e.$watch("scheduledTime",e.monitorComposeChange),e.$watch("fromUserMail",e.monitorComposeChange),e.composePrepared=!0,e.autofocus();case 24:case"end":return t.stop()}}),t)}))))},mounted:function(){this.selectedSignatureId=this.getInitialSelectedSignatureId(),b()(document).on("mousemove",this.debouncedHandleResizeMouseMove),b()(document).on("mouseup",this.handleResizeMouseUp),b()(document).on("mouseleave",this.handleResizeMouseLeave)},beforeDestroy:function(){var e=this;return(0,r.Z)((0,s.Z)().mark((function t(){return(0,s.Z)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(b()(document).off("mousemove",e.debouncedHandleResizeMouseMove),b()(document).off("mouseup",e.handleResizeMouseUp),b()(document).off("mouseleave",e.handleResizeMouseLeave),window.removeEventListener("resize",e.resizedWindow),!e.fromPopOut||e.isDeletingOrSending){t.next=8;break}return t.next=7,e.doCreateOrUpdate();case 7:e.isDeletingOrSending=!1;case 8:case"end":return t.stop()}}),t)})))()},methods:(0,a.Z)((0,a.Z)({},(0,d.nv)({removeReplyLater:"mail/removeReplyLater",getDefaultSignatureContent:"signature/getDefaultSignatureContent",insertSignatureContent:"signature/insertSignatureContent",getSignatureIdFromDraftContent:"signature/getSignatureIdFromDraftContent"})),{},{setUseMailMerge:function(e){this.useMailMerge=e,this.displayMailMergeBanner=e},disableMailMerge:function(){this.setUseMailMerge(!1)},setMailMergeErrorDialog:function(e,t){this.mailMergeErrorTitle=e,this.mailMergeErrorMsg=t,this.displayMailMergeErrorDialog=!0},setMailMergeData:function(e){this.mailMergeData=e},setTo:function(e){this.to=e},handleErrorDialog:function(){this.displayMailMergeErrorDialog=!1},handleCancelMissingData:function(){this.displayMailMergeMissingDataDialog=!1},handleCancelReadySend:function(){this.displayMailMergeReadySendDialog=!1},handleMailMergeDefaults:function(e){this.displayMailMergeMissingDataDialog=!1,this.mailMergeDefaults=e,console.log("adding mail merge default data",e)},handleMailMergeSend:function(){this.displayMailMergeReadySendDialog=!1,this.handleSend()},closeDisplayMailMergeBanner:function(){this.displayMailMergeBanner=!1},windowContainsFocus:function(){return this.$el.contains(document.activeElement)},triggerImageSelector:function(){this.$refs.editor.handleToolbarAction({commandType:ie.d.INSERT_IMAGE})},updatePlainDraftContent:function(){this.plainDraftContent=(0,te.C8)((0,F.mM)(this.getEditorContent()))},handleFocusIn:function(e){var t=e.target,i=[this.$refs.toContactRef,this.$refs.ccContactRef,this.$refs.bccContactRef],n=i.some((function(e){return null===e||void 0===e?void 0:e.$el.contains(t)}));n?this.expandRecipients():this.$refs.contactSelectors.contains(t)||(this.hideCcBccIfEmpty(),this.collapseRecipients())},handleFocusTrap:function(e){var t,i,n,o=document.activeElement,s=null===(t=this.$refs.toolbar)||void 0===t||null===(i=t.$refs.discardButton)||void 0===i?void 0:i.$el,r=null===(n=this.$refs.minimizeButton)||void 0===n?void 0:n.$el;switch(o){case s:e.shiftKey||(e.preventDefault(),r.focus());break;case r:e.shiftKey&&(e.preventDefault(),s.focus());break}},openPromptEditor:function(){this.isPromptEditorVisible=!0},resizedWindow:function(){this.clientHeight=window.innerHeight,this.refineComposeHeight()},hasRecipientsOfType:function(e){for(var t=[this.toContactToTypeMap,this.ccContactToTypeMap,this.bccContactToTypeMap],i=0,n=t;i0){var l=(0,F.mM)(r,{WHOLE_DOCUMENT:!0});if("Reply"===t.mDraftType){this.setEditorContent(l);var d=b()("
");d.html(l);var m=d.clone();m.find(".gmail_quote:first").prevAll(":not(.gmail_quote)").remove(),d.find(".gmail_quote").remove(),this.setEditorContent(d.html()),this.setEditorEllipsisContent(m.html())}else this.setEditorContent(l)}if(this.attachments=a&&a.length>0?a:[],this.isZmail){switch(c["Mode"]){case ye.PASSWORD_PROTECT:this.setExpirationTime(c.passwordExpireSeconds);break;case ye.EXTERNAL_DISALLOWED:this.encryptionOn=!0;break;default:this.encryptionOn=this.defaultComposeEncryptionState}var p=S.ou.now().toISO(),h=S.ou.fromSeconds(t.date).toISO();h&&p1&&void 0!==arguments[1]?arguments[1]:"";this.$refs.toContactRef.hide(),this.$refs.ccContactRef.hide(),this.$refs.bccContactRef.hide();var i=e.pageX,n=e.pageY;console.log("handleResizeMouseDown",e),this.resizeOriginalPos={pageX:i,pageY:n},this.originalComposeHeight=this.composeHeight,this.originalComposeWidth=this.composeWidth,this.resizing=!0,this.resizeOri=t},handleResizeMouseMove:function(e){if(this.resizing){e.preventDefault();var t=e.originalEvent,i=t.pageY,n=t.pageX;i<20&&(i=20),n<20&&(n=20);var o=this.resizeOriginalPos.pageY,s=o-i,r=this.originalComposeHeight+s;this.composeHeight=r0&&void 0!==arguments[0]&&arguments[0],o=this.getEditorContent(),s=n?(0,F.mM)(this.transformEditorContent(o)):(0,F.mM)(o),r=u.Utils.getMailSnippet(s);return(0,a.Z)((0,a.Z)({subject:this.subject,content:s,snippet:r||"",fromUserMail:this.fromUserMail,replyTo:this.replyTo,inReplyTo:null===(e=this.composeItem)||void 0===e?void 0:e.mailHead.msgId,forwardMsgZid:this.isForward?null===(t=this.composeItem)||void 0===t?void 0:t.mailHead.msgId:"",draftId:"",msgId:this.msgId||"",mailEncryptionMode:this.mailEncryptionMode,passwordExpireSeconds:this.expirationSeconds,scheduledSendTime:this.scheduledTime?this.convertTime(this.scheduledTime):null,toUserEmail:this.to.map((function(e){var t;return{emailAddr:e,displayName:(null===(t=i.recipientInfo.get(e))||void 0===t?void 0:t.displayName)||e.split("@")[0]}})),ccUserEmail:this.cc.map((function(e){var t;return{emailAddr:e,displayName:(null===(t=i.recipientInfo.get(e))||void 0===t?void 0:t.displayName)||e.split("@")[0]}})),bccUserEmail:this.bcc.map((function(e){var t;return{emailAddr:e,displayName:(null===(t=i.recipientInfo.get(e))||void 0===t?void 0:t.displayName)||e.split("@")[0]}})),atListUserEmail:[],attachments:this.attachments},this.useMailMerge&&{mailMerge:{}}),this.useMailMerge&&this.mailMergeData.columnNames&&{mailMerge:this.mailMergeData})},updateDraft:function(){var e=this;return(0,r.Z)((0,s.Z)().mark((function t(){var i;return(0,s.Z)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!e.draftIsFreezed){t.next=2;break}return t.abrupt("return");case 2:return i=e.createMailSendInfo(),t.next=5,m.Draft.updateDraft({mailSendInfo:i});case 5:e.$emit("creatingOrUpdating",e.id),e.getMailHeadAllLabels(we.DRAFT);case 7:case"end":return t.stop()}}),t)})))()},getMailHeadAllLabels:function(){var e=arguments,t=this;return(0,r.Z)((0,s.Z)().mark((function i(){var n,o,r;return(0,s.Z)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return n=e.length>0&&void 0!==e[0]?e[0]:null,o=n||t.getLabelIdByMailId(null,t.mailId),i.next=4,m.Inbox.getMailHead({labelId:o,mailId:t.mailId});case 4:r=i.sent,r&&t.$store.commit("batchAddMailHeads",{labelId:n,mailHeads:[r.mailHead]});case 6:case"end":return i.stop()}}),i)})))()},createDraft:function(){var e=this,t=this.createMailSendInfo();return m.Draft.createDraft({mailSendInfo:t}).then((function(t){return 0===t.errorCode?(e.$emit("creatingOrUpdating",e.id),e.msgId=t.data.CreateDraft.msgId,e.mailId=t.data.CreateDraft.threadId,e.$store.commit("updateInstantDraft",{key:e.id,threadId:e.mailId,msgId:e.msgId,preSubject:e.preSubject}),e.$metric.report("sidebar_new_mail",{msgId:e.msgId})):(e.$msg(e.$t("detail.createDraftFailed")),e.$metric.report("sidebar_new_mail",{error:e.$metric.apiError("mailui_createdraft",t)})),t}))["catch"]((function(t){e.$metric.report("sidebar_new_mail",{msgId:e.msgId,error:e.$metric.jsError("mailui_createdraft",t)})}))},doCreateOrUpdate:function(){var e=this;return(0,r.Z)((0,s.Z)().mark((function t(){return(0,s.Z)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.isComposeDirty){t.next=2;break}return t.abrupt("return");case 2:if(!e.isSending){t.next=4;break}return t.abrupt("return");case 4:if(!e.creatingOrUpdating){t.next=6;break}return t.abrupt("return");case 6:if(e.creatingOrUpdating=!0,e.msgId){t.next=12;break}return t.next=10,e.createDraft();case 10:t.next=15;break;case 12:if(!e.msgId){t.next=15;break}return t.next=15,e.updateDraft();case 15:e.creatingOrUpdating=!1;case 16:case"end":return t.stop()}}),t)})))()},handleShowCompose:function(){this.$store.commit("setCurrentSend",""),this.$store.commit("setCurrentInstantDraft",{key:this.id,composeItem:this.composeItem,isDraft:this.isDraft,isForward:this.isForward,isReply:this.isReply,preTo:this.preTo,preSubject:this.preSubject})},handleSend:function(){var e=this,t=[];if(this.attachments.forEach((function(e){"Error"!==e.downloadStatus&&t.push(e)})),this.attachments.length>t.length){var i=this.$t("editor.attachmentsFailedToLoad"),n=this.$t("editor.confirmSendContent");this.$confirm(n,i,{confirmButtonText:this.$t("editor.sendEmail"),cancelButtonText:this.$t("operation.cancel"),closeOnClickModal:!1,callback:function(i){"confirm"===i&&e.delayedSend(t,!0)}})}else this.delayedSend()},handleMailMerge:function(){var e=this;return(0,r.Z)((0,s.Z)().mark((function t(){return(0,s.Z)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(0!==e.to.length){t.next=3;break}return e.setMailMergeErrorDialog(e.$t("mailMerge.recipentRequired"),e.$t("mailMerge.recipentRequiredDesc")),t.abrupt("return");case 3:if(!(e.cc.length>1||e.bcc.length>1||e.cc.length>0&&e.bcc.length>0)){t.next=6;break}return e.setMailMergeErrorDialog(e.$t("mailMerge.tooManyCC"),e.$t("mailMerge.tooManyCCDesc")),t.abrupt("return");case 6:e.displayMailMergeReadySendDialog=!0;case 7:case"end":return t.stop()}}),t)})))()},delayedSend:function(){var e,t,i=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(console.log("undoDuration:",this.$store.state.undoDuration),this.isDisable)this.$msg(this.$t("editor.emailContentCannotBeEmpty"));else if(0!==this.to.length||0!==this.bcc.length||0!==this.cc.length){var s=this.validateEmails([].concat((0,p.Z)(this.to),(0,p.Z)(this.bcc),(0,p.Z)(this.cc)));if(s.length>0)this.$msg(this.$t("compose.emailIsInvalid"));else{var r=this.$refs.editor.isShowToolbar,a=this.$refs.editor.selectedFontSize;m.Setting.setPersistentSetting({key:Se.EDIT_TOOL,value:JSON.stringify({hideToolbarByDefault:!r,fontSize:a})}),this.handleMini(),this.$store.commit("setCurrentSend",this.id),this.$store.commit("changeSendingFlag",{key:this.id,status:!0});var c=this.createMailSendInfo(!0);c.ignoreFailedAttachments=o,o&&(c.attachments=n);var l=(null===(e=this.inboxItem)||void 0===e||null===(t=e.mailHead)||void 0===t?void 0:t.subject)||"",d=(0,F.TP)(l)!==(0,F.TP)(this.subject);d&&(c.inReplyTo="",c.forwardMsgZid=""),this.isSending=!0,this.isDeletingOrSending=!0,(0,U.Y)({el:this.$root,mailSendInfo:c,undoDuration:this.undoDuration,onSendSuccessfully:function(){var e,t;i.$emit("triggerClose",i.id),i.isSending=!1,i.isReply&&null!==(e=i.composeItem)&&void 0!==e&&null!==(t=e.mailHead)&&void 0!==t&&t.mailId&&i.removeReplyLater(i.composeItem.mailHead.mailId),i.$metric.report("send_mail",{event_context:i.metricContext,msgId:i.msgId})},onCancel:function(){i.isSending=!1,i.$store.commit("changeSendingFlag",{key:i.id,status:!1}),i.handleShowCompose()},onSendFailed:function(e){i.$metric.report("send_mail",{event_context:i.metricContext,msgId:i.msgId,error:i.$metric.apiError("mailui_senddraft",e)})},onSendError:function(e){i.$metric.report("send_mail",{event_context:i.metricContext,msgId:i.msgId,error:i.$metric.jsError("mailui_senddraft",e)})}},this.typeOfEmail)}}else this.$msg(this.$t("compose.toIsEmpty"))},validateEmails:function(e){var t=this;console.log("emailList",e);var i=[];return e.forEach((function(e){t.validateEmail(e)||i.push(e)})),(0,p.Z)(new Set(i))},validateEmail:function(e){return String(e).toLowerCase().match(/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/)},getEditorComponent:function(){if(this.isEditorMounted)return this.$refs.editor.$refs.squireEditor},getEditorInstance:function(){return this.$refs.editor.$refs.squireEditor.editorInstance},getEditorContent:function(){var e=this.getEditorComponent();if(e){var t=e.getContent();return t===this.DEFAULT_HTML?"":t}return""},transformEditorContent:function(e){console.log("transforming editor content",e);var t,i=u.Utils.htmlStringToRootDom(e),n=i.querySelectorAll("[data-zm-tag='true']"),o=(0,v.Z)(n);try{for(o.s();!(t=o.n()).done;){var s,r=t.value;if(null!==(s=r.dataset)&&void 0!==s&&s.zmTag){var a=void 0;try{a=JSON.parse(r.dataset.mailMergeTag)}catch(l){var c;console.error("failed to parse mail merge tag data",null===(c=r.dataset)||void 0===c?void 0:c.mailMergeTag,l)}a&&(r.textContent=a.value)}}}catch(d){o.e(d)}finally{o.f()}return console.log("transformed editor content",i.outerHTML),i.outerHTML},setEditorContent:function(e){var t=this,i=this.getEditorComponent();i&&(i.setContent(e||this.DEFAULT_HTML),this.$nextTick((0,r.Z)((0,s.Z)().mark((function e(){var i,n,o,r;return(0,s.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return o=null===(i=t.$refs.editor)||void 0===i||null===(n=i.getEditorRootDom)||void 0===n?void 0:n.call(i),e.next=3,t.getSignatureIdFromDraftContent({editorRoot:o});case 3:r=e.sent,console.debug("[signature] get signature id in new compose",r),t.selectedSignatureId=r;case 6:case"end":return e.stop()}}),e)})))))},setEditorEllipsisContent:function(e){var t=this.getEditorComponent();t&&t.setEllipsisContent(e)},isEditorEmpty:function(){var e=this.getEditorContent();return console.log("!!$(editorContent).text()",b()(e).text(),!!b()(e).text()),!b()(e).text()},editorMounted:function(){this.isEditorMounted=!0},setWidth:function(e){this.composeWidth=e},setHeight:function(e){this.composeHeight=e},getPosition:function(){var e=this.$refs.root.getBoundingClientRect();return{left:e.left,top:e.top,width:e.width,height:e.height}},focusToSelector:function(e){var t={to:this.$refs.toContactRef,cc:this.$refs.ccContactRef,bcc:this.$refs.bccContactRef};this.$nextTick((function(){var i;return null===(i=t[e])||void 0===i?void 0:i.focus()}))},key:function(e){return"".concat(e," + ").concat((0,P.Z)())},isValidateMail:function(e){return(0,F.Xt)(e)},dragEnter:function(e){this.$emit("onDragEnter",e)},resetShowActions:function(){var e,t,i;null===(e=this.$refs.toContactRef)||void 0===e||e.hideAllActions(),null===(t=this.$refs.ccContactRef)||void 0===t||t.hideAllActions(),null===(i=this.$refs.bccContactRef)||void 0===i||i.hideAllActions()},convertTime:function(e){return Math.floor(e.toSeconds())},insertNewCompose:function(){var e=arguments,t=this;return(0,r.Z)((0,s.Z)().mark((function i(){var n,o,r,a,c,l;return(0,s.Z)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(o=e.length>0&&void 0!==e[0]?e[0]:"",r=e.length>1&&void 0!==e[1]?e[1]:"",t.isPromptEditorVisible=!1,o){i.next=5;break}return i.abrupt("return");case 5:return i.next=7,t.getSignatureContent();case 7:a=i.sent,c=a?"
".concat(o,"
").concat(a,"
"):o,l=(0,F.mM)(c,{WHOLE_DOCUMENT:!0}),t.setEditorContent(l),t.handleEditorContentUpdate(),t.subject?(t.showSmartSubject=!0,t.smartSubject=r):t.subject=r,null===(n=t.getEditorInstance())||void 0===n||n.focus();case 14:case"end":return i.stop()}}),i)})))()},selectSmartCompose:function(){this.subject=this.smartSubject,this.showSmartSubject=!1},onHasGeneratedContent:function(e){e&&!this.hasGeneratedContent&&(this.hasGeneratedContent=!0)},discardSubject:function(){this.smartSubject="",this.showSmartSubject=!1},getSignatureContent:function(){var e=this;return(0,r.Z)((0,s.Z)().mark((function t(){var i;return(0,s.Z)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return i=e.composeType===be.NEW||!e.composeItem,t.next=3,e.getDefaultSignatureContent({type:i?j.Vl.NEW_COMPOSE:j.Vl.REPLY_FORWARD_COMPOSE});case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t)})))()},refineComposeHeight:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hasGeneratedContent;e&&this.$refs.root?this.$refs.root.style.height=this.fullScreen?"".concat(this.maxHeight,"px"):"".concat(this.maxHeight-50,"px"):!e&&this.$refs.root&&(this.$refs.root.style.height="auto")},getInitialSelectedSignatureId:function(){var e=this.composeItem?this.defaultReplyComposeSignatureId:this.defaultNewComposeSignatureId;return e},onSelectAlias:function(e){console.debug("[alias] select in new compose",e,this.fromUserMail,this.replyTo),this.fromUserMail=e,this.replyTo=e.emailAddr,this.doCreateOrUpdate()}})},Ie=Me,$e=(0,q.Z)(Ie,f,g,!1,null,"076899a6",null),Te=$e.exports,xe=function(){var e=this,t=e._self._c;return t("transition",[t("div",{directives:[{name:"show",rawName:"v-show",value:e.isHide,expression:"isHide"}],class:["compose-shortcut-wrap",{active:e.isCurrent}],attrs:{title:e.isAllowCompose?"":e.$t("editor.resizeYourWindowToHaveMoreSpace")}},[t("div",{staticClass:"title"},[e.creatingOrUpdatingLists[e.id]?t("i",[e._v(" ["+e._s(e.$t("label.draft"))+"]  ")]):e._e(),t("span",[e._v(e._s(e.title))])]),t("div",{staticClass:"caption-button-wrap"},[t("zm-tooltip",{directives:[{name:"show",rawName:"v-show",value:!e.isCurrent&&e.isAllowCompose,expression:"!isCurrent && isAllowCompose"}],attrs:{content:e.$t("common.maximize"),placement:"top",enterable:!1}},[t("zm-button",{staticClass:"caption-button",attrs:{"zm-ta":"compose-shortcut-maximize","aria-label":e.$t("common.maximize"),"aria-expanded":void 0},on:{click:e.handleShowCompose}},[t("SvgIcon",{attrs:{iconClass:"maximize"}})],1)],1),t("zm-tooltip",{attrs:{content:e.$t("common.saveAndClose"),placement:"top",enterable:!1}},[t("zm-button",{staticClass:"caption-button",attrs:{"zm-ta":"compose-shortcut-close","aria-label":e.$t("common.saveAndClose"),"aria-expanded":void 0},on:{click:e.handleCloseCompose}},[t("SvgIcon",{attrs:{iconClass:"close"}})],1)],1)],1)])])},_e=[],Le={name:"ComposeShortcut",props:{id:{type:String,default:""},isCurrent:{type:Boolean,default:!1},composeItem:{type:Object,default:function(){}},isDraft:{type:Boolean,default:!1},isForward:{type:Boolean,default:!1},isReply:{type:Boolean,default:!1},preTo:{type:Array,default:function(){return[]}},creatingOrUpdatingLists:{type:Object,default:function(){}},isAllowCompose:{type:Boolean,default:!0}},data:function(){return{snippet:""}},computed:(0,a.Z)((0,a.Z)({},(0,d.rn)(["isCurrentSent","instantDraftList"])),{},{title:function(e){var t=e.snippet,i=e.composeItem;return t||(i&&i.plainText?i.plainText:this.$t("editor.newMail"))},isHide:function(e){var t=e.id,i=e.isCurrentSent;return!(i&&i===t)}}),methods:{handleShowCompose:function(){var e,t,i,n=this;this.$store.commit("setCurrentInstantDraft",{key:this.id,composeItem:this.composeItem,isDraft:this.isDraft,isForward:this.isForward,isReply:this.isReply,preTo:this.preTo}),this.$Bus.$emit("disableLinkPopoverVisible"),console.log("composeItem",this.instantDraftList.find((function(e){return e.key===n.id}))),this.$emit("onShowCompose"),this.$metric.report("editor_maximize",{msgId:(null===(e=this.instantDraftList.find((function(e){return e.key===n.id})))||void 0===e||null===(t=e.composeItem)||void 0===t||null===(i=t.mailHead)||void 0===i?void 0:i.msgId)||this.id})},handleCloseCompose:function(){this.$emit("close",this.id)},setComposeSinippet:function(e){console.log("setComposeSinippet",e),this.snippet=e}}},ke=Le,ze=(0,q.Z)(ke,xe,_e,!1,null,"41ff27d7",null),Oe=ze.exports,He={name:"ComposeContainer",components:{Compose:Te,ComposeShortcut:Oe},props:{composeItem:{type:Object,default:function(){}}},data:function(){return{creatingOrUpdatingLists:{},lastWindowWidth:window.innerWidth,lastWindowHeight:window.innerHeight,hideShortcuts:!1,allowComposeFromShortcut:!0}},computed:(0,a.Z)((0,a.Z)((0,a.Z)({},(0,d.rn)({currentCompose:"currentInstantDraft",composeList:"instantDraftList"})),(0,d.rn)("mail",["replyLaterLabelMailHeads"])),{},{inlineStyles:function(e){var t=e.replyLaterLabelMailHeads;return t.length>0?{right:"2rem",bottom:"-1rem"}:{}},composeShortcutList:function(e){var t=e.composeList;return t.filter((function(e){return!e.status}))},isComposeShouldOnEdge:function(e){var t=e.composeShortcutList,i=e.currentCompose;return t.length<1||!(t.length>1)&&!!i},hasMultiShortcuts:function(e){var t=e.composeShortcutList;return t.length>1},showComposeShortCut:function(e){var t=e.composeShortcutList,i=e.currentCompose;return 0!==t.length&&(t.length>1||!i)},activeCompose:function(e){var t=e.currentCompose;return t?this.$refs["composeRef_".concat(t.key)][0]:null}}),watch:{currentCompose:function(e){e&&(e.isDraft&&this.creatingOrUpdating(e.key),this.hideShortcuts=!1)}},created:function(){var e=this;this.debouncedAutoLayoutCompose=l().throttle(this.$autoLayoutCompose,16),this.$once("hook:beforeDestroy",(function(){e.debouncedAutoLayoutCompose.cancel()})),this.handleComposeUpdate=l().throttle((function(t){var i=t.id,n=t.subject,o=e.$refs["composeShortcut_".concat(i)][0];o&&(null===o||void 0===o||o.setComposeSinippet(n.slice(0,20)))}),200)},mounted:function(){window.addEventListener("resize",this.debouncedAutoLayoutCompose),this.$Bus.$on(u.Enums.Notification.OnMessageQuarantined,this.handleMsgQuarantined)},beforeDestroy:function(){window.removeEventListener("resize",this.debouncedAutoLayoutCompose),this.$Bus.$off(u.Enums.Notification.OnMessageQuarantined,this.handleMsgQuarantined)},methods:(0,a.Z)((0,a.Z)({},(0,d.OI)(["updateInstantDraft"])),{},{creatingOrUpdating:function(e){this.$set(this.creatingOrUpdatingLists,e,!0)},handleComposeClose:function(e){console.log("handleComposeClose",e),this.doComposeClose(e)},handleComposeMinimize:function(){this.$store.commit("setCurrentInstantDraft",null)},handleShortcutClose:function(e){console.log("handleShortcutClose",e);var t=this.$refs["composeRef_".concat(e)][0];console.log("targetCompose",t),null===t||void 0===t||t.triggerClose()},doComposeClose:function(e){this.currentCompose&&this.currentCompose.key===e&&this.$store.commit("setCurrentInstantDraft",null);var t=this.$store.state.instantDraftList.filter((function(t){return e!==t.key}));console.warn("draftOpenInCompose","id",e,this.$store.state.instantDraftList.slice()),this.$store.commit("setInstantDraftList",t)},resetInstantDraftsMsgIdByThreadIds:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.composeList.length&&this.composeList.forEach((function(i){var n,o,s=i.mailId||(null===(n=i.composeItem)||void 0===n||null===(o=n.mailHead)||void 0===o?void 0:o.mailId);if(s&&t.includes(s)){var r=e.$refs["composeRef_".concat(i.key)][0];r&&(r.msgId="")}}))},isDecreasingWindow:function(){return this.lastWindowWidth>window.innerWidth||this.lastWindowHeight>window.innerHeight},isIncreasingWindow:function(){return this.lastWindowWidthi+10}return!1},allowComposeByShortcuts:function(){var e,t=null===(e=this.$refs.shortcutListRef)||void 0===e?void 0:e.getBoundingClientRect();if(t&&this.hasMultiShortcuts)return t.right-t.width>B.DEFAULT_WIDTH+10;if(!this.hasMultiShortcuts){var i=0===t.width;return t.right>B.DEFAULT_WIDTH+10||i}return!1},$autoLayoutCompose:function(){var e,t=60,i=10,n=.7*B.DEFAULT_HEIGHT;if(!this.currentCompose||null===(e=this.activeCompose)||void 0===e||!e.isFullScreen()){if(this.isDecreasingWindow()&&this.currentCompose){var o,s=this.activeCompose.getPosition(),r=s.left;console.assert("undefined"!==typeof r);var a=null===(o=this.activeCompose)||void 0===o?void 0:o.composeHeight;if(rB.DEFAULT_HEIGHT?B.DEFAULT_HEIGHT:h+10)}this.hasMultiShortcuts&&this.hideShortcuts&&(this.hideShortcuts=!this.need2HideShortcutsForCompose())}this.allowComposeFromShortcut=this.allowComposeByShortcuts(),this.lastWindowWidth=window.innerWidth,this.lastWindowHeight=window.innerHeight}},onShowCompose:function(e){var t=this.$refs["composeRef_".concat(e)]?this.$refs["composeRef_".concat(e)][0]:null;t&&t.syncRecipientsStatus()},handleMsgQuarantined:function(e){var t=this;return(0,r.Z)((0,s.Z)().mark((function i(){var n,o,r,c,l,d,p;return(0,s.Z)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(n=e.result,o=n.messageId,r=n.isQuarantined,c=t.composeList.findIndex((function(e){var t=e.composeItem.mailHead.msgId;return t===o})),-1!==c){i.next=4;break}return i.abrupt("return");case 4:return l=t.composeList[c],d=(0,a.Z)({},l),r&&(d=(0,a.Z)((0,a.Z)({},d),{},{composeItem:(0,a.Z)((0,a.Z)({},d.composeItem),{},{mailHead:(0,a.Z)((0,a.Z)({},d.composeItem.mailHead),{},{allLabelIds:(d.composeItem.mailHead.allLabelIds||[]).concat(u.Enums.SystemDefinedMailLabelIds.QUARANTINED)})})}),t.updateInstantDraft(d)),i.next=9,m.Inbox.getMailDetails({mailIds:[o]});case 9:p=i.sent,null!==p&&void 0!==p&&p.mailDetails&&(d=(0,a.Z)((0,a.Z)({},d),{},{composeItem:(0,a.Z)({},p.mailDetails[0])}),t.updateInstantDraft(d),t.currentCompose.key===d.key&&t.$store.commit("setCurrentInstantDraft",d));case 11:case"end":return i.stop()}}),i)})))()}})},Ze=He,Ae=(0,q.Z)(Ze,n,o,!1,null,"ff6adaa8",null),Re=Ae.exports},76860:function(e,t,i){i.r(t),i.d(t,{default:function(){return m}});var n=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticClass:"mc-drop-zone-container",on:{dragenter:e.$onDragEnter,dragover:e.debouncedDragOver,dragleave:e.$onDragLeave}},[e._t("default"),e.canDrop?t("div",{staticClass:"mc-drop-zone-overlay"},[e._t("mc-drop-zone-place-holder",(function(){return[t("span",{staticClass:"mc-drop-zone-place-holder"},[e._v(e._s(e.$t("editor.dropFilesHere")))])]}))],2):e._e()],2)},o=[],s=i(37761),r=i.n(s),a={name:"DropZone",props:{onDragEnter:{type:Function},onDragOver:{type:Function},onDrop:{type:Function},onLeaveWindow:{type:Function},filesOnly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},data:function(){return{canDrop:!1,isDraggingLeave:!0,lastEnterElement:null}},watch:{canDrop:{handler:function(e){!e&&this.debouncedCanDrop(),e&&this.$onDragEnter()}}},created:function(){var e=this;this.debouncedDragOver=r().debounce(this.$onDragOver,16),this.debouncedCanDrop=r().debounce(this.$canDrop,100),this.$once("hook:beforeDestroy",(function(){e.debouncedDragOver.cancel(),e.debouncedCanDrop.cancel()}))},mounted:function(){var e=this;window.addEventListener("dragenter",this.$setCanDrop),window.addEventListener("dragover",this.$setCanDrop),window.addEventListener("dragleave",this.$unsetCanDrop),window.addEventListener("mouseout",this.$unsetCanDrop),window.addEventListener("drop",this.$unsetCanDrop),this.$once("hook:beforeDestroy",(function(){window.removeEventListener("dragenter",e.$setCanDrop),window.removeEventListener("dragover",e.$setCanDrop),window.removeEventListener("dragleave",e.$unsetCanDrop),window.removeEventListener("drop",e.$unsetCanDrop),window.removeEventListener("mouseout",e.$unsetCanDrop)}))},methods:{$canDrop:function(){this.onLeaveWindow&&this.onLeaveWindow()},$onDragEnter:function(){if(this.onDragEnter&&this.canDrop){var e=this.$refs.container.getBoundingClientRect();return this.onDragEnter(e)}},$onDragOver:function(){if(this.onDragOver)return this.onDragOver()},$onDragLeave:function(){this.onDragLeave&&this.onDragLeave()},$setCanDrop:function(e){this.disabled||(this.lastEnterElement=e.target,e.preventDefault(),this.filesOnly&&!e.dataTransfer.types.includes("Files")||(this.canDrop=!0))},$unsetCanDrop:function(e){e.preventDefault(),this.canDrop&&e.target===this.lastEnterElement&&(this.canDrop=!1)}}},c=a,l=i(93483),d=(0,l.Z)(c,n,o,!1,null,"bb80260e",null),u=d.exports,m=u}}]);