| 1 |
- "use strict";(self["webpackChunk_zoom_client_email_desktop"]=self["webpackChunk_zoom_client_email_desktop"]||[]).push([[761],{27761:function(t,e,n){n.r(e),n.d(e,{default:function(){return p}});var i=function(){var t=this,e=t._self._c;return e("ComposeBanner",{attrs:{iconClass:"locked-circle",content:t.content},on:{close:t.handleClose}},[e("zm-button",{attrs:{slot:"actions","aria-label":t.$t("accessibility.editPasswordProtection"),type:"link",size:"mini"},on:{click:t.handleEdit},slot:"actions"},[t._v(" "+t._s(t.$t("operation.edit"))+" ")])],1)},o=[],r=n(34948),s=n(29648),a=n(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,r.Z)((0,r.Z)({},(0,s.rn)({userTimeZone:function(t){return t.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(t){return this.durationOptions[t]},handleEdit:function(){this.$emit("edit"),this.$metric.report("edit_password_protection")},handleClose:function(){this.$emit("dismiss"),this.$metric.report("remove_password_protection")}}},l=c,u=n(93483),d=(0,u.Z)(l,i,o,!1,null,null,null),p=d.exports}}]);
|