!function(t){var e={};function i(o){if(e[o])return e[o].exports;var n=e[o]={i:o,l:!1,exports:{}};return t[o].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.m=t,i.c=e,i.d=function(t,e,o){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(i.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)i.d(o,n,function(e){return t[e]}.bind(null,n));return o},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=623)}({623:function(t,e,i){"use strict";var o,n,a,l,s={init:function(){o=KTUtil.getById("kt_todo_aside"),n=KTUtil.getById("kt_todo_list"),a=KTUtil.getById("kt_todo_view"),l=KTUtil.getById("kt_todo_reply"),s.initAside(),s.initList(),s.initView(),s.initReply()},initAside:function(){new KTOffcanvas(o,{overlay:!0,baseClass:"offcanvas-mobile",toggleBy:"kt_subheader_mobile_toggle"}),KTUtil.on(o,'.list-item[data-action="list"]',"click",(function(t){var e=KTUtil.attr(this,"data-type"),i=KTUtil.find(n,".kt-inbox__items"),l=this.closest(".kt-nav__item"),s=KTUtil.find(o,".kt-nav__item.kt-nav__item--active"),r=new KTDialog({type:"loader",placement:"top center",message:"Loading ..."});r.show(),setTimeout((function(){r.hide(),KTUtil.css(n,"display","flex"),KTUtil.css(a,"display","none"),KTUtil.addClass(l,"kt-nav__item--active"),KTUtil.removeClass(s,"kt-nav__item--active"),KTUtil.attr(i,"data-type",e)}),600)}))},initList:function(){KTUtil.on(n,'[data-inbox="group-select"] input',"click",(function(){for(var t=KTUtil.findAll(n,'[data-inbox="message"]'),e=0,i=t.length;e<i;e++){var o=t[e];KTUtil.find(o,".checkbox input").checked=this.checked,this.checked?KTUtil.addClass(o,"active"):KTUtil.removeClass(o,"active")}})),KTUtil.on(n,'[data-inbox="message"] [data-inbox="actions"] .checkbox input',"click",(function(){var t=this.closest('[data-inbox="message"]');t&&this.checked?KTUtil.addClass(t,"active"):KTUtil.removeClass(t,"active")}))},initView:function(){KTUtil.on(a,'[data-inbox="back"]',"click",(function(){var t=new KTDialog({type:"loader",placement:"top center",message:"Loading ..."});t.show(),setTimeout((function(){t.hide(),KTUtil.addClass(n,"d-block"),KTUtil.removeClass(n,"d-none"),KTUtil.addClass(a,"d-none"),KTUtil.removeClass(a,"d-block")}),700)})),KTUtil.on(a,'[data-inbox="message"]',"click",(function(t){var e=this.closest('[data-inbox="message"]'),i=KTUtil.find(this,'[data-toggle="dropdown"]'),o=KTUtil.find(this,'[data-inbox="toolbar"]');return!(t.target===i||i&&!0===i.contains(t.target))&&!(t.target===o||o&&!0===o.contains(t.target))&&void(KTUtil.hasClass(e,"toggle-on")?(KTUtil.addClass(e,"toggle-off"),KTUtil.removeClass(e,"toggle-on")):(KTUtil.removeClass(e,"toggle-off"),KTUtil.addClass(e,"toggle-on")))}))},initReply:function(){!function(t,e){if(KTUtil.getById(e)){e=new Quill("#"+e,{modules:{toolbar:{}},placeholder:"Type message...",theme:"snow"});var i=KTUtil.find(t,".ql-toolbar");e=KTUtil.find(t,".ql-editor"),i&&KTUtil.addClass(i,"px-5 border-top-0 border-left-0 border-right-0"),e&&KTUtil.addClass(e,"px-8")}}(l,"kt_todo_reply_editor"),function(t){if(KTUtil.getById(t)){var e="#"+t,i=$(e+" .dropzone-item");i.id="";var o=i.parent(".dropzone-items").html();i.remove();var n=new Dropzone(e,{url:"https://keenthemes.com/scripts/void.php",parallelUploads:20,maxFilesize:1,previewTemplate:o,previewsContainer:e+" .dropzone-items",clickable:e+"_select"});n.on("addedfile",(function(t){$(document).find(e+" .dropzone-item").css("display","")})),n.on("totaluploadprogress",(function(t){document.querySelector(e+" .progress-bar").style.width=t+"%"})),n.on("sending",(function(t){document.querySelector(e+" .progress-bar").style.opacity="1"})),n.on("complete",(function(t){var i=e+" .dz-complete";setTimeout((function(){$(i+" .progress-bar, "+i+" .progress").css("opacity","0")}),300)}))}}("kt_todo_reply_attachments")}};jQuery(document).ready((function(){s.init()}))}});