"use strict";(self["webpackChunkModoboa"]=self["webpackChunkModoboa"]||[]).push([[602],{8602:function(t,e,i){i.r(e),i.d(e,{default:function(){return y}});var s=i(6313),n=i(7953),a=function(){var t=this,e=t._self._c;return e("div",[e(s.Z,{attrs:{flat:""}},[e(n.qW,[e("translate",[t._v("Forward")])],1)],1),e("div",{staticClass:"pa-4"},[e("forward-form",{attrs:{account:t.authUser}})],1)],1)},o=[],r=i(629),c=i(4562),l=i(4145),h=i(4886),u=i(3486),d=i(2648),p=function(){var t=this,e=t._self._c;return e("div",[e(l.Z,{attrs:{flat:""}},[e(h.ZB,[e("label",{staticClass:"m-label"},[e("translate",[t._v("Recipient(s)")])],1),e(d.Z,{attrs:{hint:t._f("translate")("Indicate one or more recipients separated by a comma (,)"),"persistent-hint":"",rows:"3",outlined:""},model:{value:t.form.recipients,callback:function(e){t.$set(t.form,"recipients",e)},expression:"form.recipients"}}),e(u.Z,{attrs:{label:t._f("translate")("Keep local copies"),hint:t._f("translate")("Forward messages and store copies into your local mailbox"),"persistent-hint":""},model:{value:t.form.keepcopies,callback:function(e){t.$set(t.form,"keepcopies",e)},expression:"form.keepcopies"}})],1),e(h.h7,{staticClass:"pa-4"},[e(c.Z,{attrs:{color:"success",loading:t.loading},on:{click:t.submit}},[e("translate",[t._v("Update")])],1)],1)],1)],1)},m=[],f=i(2257),g=i(6739),v={props:{account:Object},data(){return{form:{},loading:!1}},methods:{submit(){this.loading=!0,f.Z.setForward(this.form).then((t=>{this.loading=!1,g.$.$emit("notification",{type:"success",msg:this.$gettext("Forward updated")})}))}},mounted(){f.Z.getForward().then((t=>{this.form=t.data}))}},I=v,w=i(1001),x=(0,w.Z)(I,p,m,!1,null,null,null),k=x.exports,b={components:{ForwardForm:k},computed:{...(0,r.Se)({authUser:"auth/authUser"})}},Z=b,$=(0,w.Z)(Z,a,o,!1,null,"05963698",null),y=$.exports},3486:function(t,e,i){i.d(e,{Z:function(){return o}});i(7393);var s=i(2240),n=i(573),a=i(596),o=a.Z.extend({name:"v-checkbox",props:{indeterminate:Boolean,indeterminateIcon:{type:String,default:"$checkboxIndeterminate"},offIcon:{type:String,default:"$checkboxOff"},onIcon:{type:String,default:"$checkboxOn"}},data(){return{inputIndeterminate:this.indeterminate}},computed:{classes(){return{...n.Z.options.computed.classes.call(this),"v-input--selection-controls":!0,"v-input--checkbox":!0,"v-input--indeterminate":this.inputIndeterminate}},computedIcon(){return this.inputIndeterminate?this.indeterminateIcon:this.isActive?this.onIcon:this.offIcon},validationState(){if(!this.isDisabled||this.inputIndeterminate)return this.hasError&&this.shouldValidate?"error":this.hasSuccess?"success":null!==this.hasColor?this.computedColor:void 0}},watch:{indeterminate(t){this.$nextTick((()=>this.inputIndeterminate=t))},inputIndeterminate(t){this.$emit("update:indeterminate",t)},isActive(){this.indeterminate&&(this.inputIndeterminate=!1)}},methods:{genCheckbox(){const{title:t,...e}=this.attrs$;return this.$createElement("div",{staticClass:"v-input--selection-controls__input"},[this.$createElement(s.Z,this.setTextColor(this.validationState,{props:{dense:this.dense,dark:this.dark,light:this.light}}),this.computedIcon),this.genInput("checkbox",{...e,"aria-checked":this.inputIndeterminate?"mixed":this.isActive.toString()}),this.genRipple(this.setTextColor(this.rippleState))])},genDefaultSlot(){return[this.genCheckbox(),this.genLabel()]}}})},2648:function(t,e,i){i.d(e,{Z:function(){return o}});var s=i(7808),n=i(7678);const a=(0,n.Z)(s.Z);var o=a.extend({name:"v-textarea",props:{autoGrow:Boolean,noResize:Boolean,rowHeight:{type:[Number,String],default:24,validator:t=>!isNaN(parseFloat(t))},rows:{type:[Number,String],default:5,validator:t=>!isNaN(parseInt(t,10))}},computed:{classes(){return{"v-textarea":!0,"v-textarea--auto-grow":this.autoGrow,"v-textarea--no-resize":this.noResizeHandle,...s.Z.options.computed.classes.call(this)}},noResizeHandle(){return this.noResize||this.autoGrow}},watch:{autoGrow(t){this.$nextTick((()=>{var e;t?this.calculateInputHeight():null===(e=this.$refs.input)||void 0===e||e.style.removeProperty("height")}))},lazyValue(){this.autoGrow&&this.$nextTick(this.calculateInputHeight)},rowHeight(){this.autoGrow&&this.$nextTick(this.calculateInputHeight)}},mounted(){setTimeout((()=>{this.autoGrow&&this.calculateInputHeight()}),0)},methods:{calculateInputHeight(){const t=this.$refs.input;if(!t)return;t.style.height="0";const e=t.scrollHeight,i=parseInt(this.rows,10)*parseFloat(this.rowHeight);t.style.height=Math.max(i,e)+"px"},genInput(){const t=s.Z.options.methods.genInput.call(this);return t.tag="textarea",delete t.data.attrs.type,t.data.attrs.rows=this.rows,t},onInput(t){s.Z.options.methods.onInput.call(this,t),this.autoGrow&&this.calculateInputHeight()},onKeyDown(t){this.isFocused&&13===t.keyCode&&t.stopPropagation(),this.$emit("keydown",t)}}})}}]);
//# sourceMappingURL=602.7efe9859.js.map