1 line
11 KiB
JavaScript
1 line
11 KiB
JavaScript
|
"use strict";var KTAppInbox=function(){var i,a,t,e,s,l=function(i,a){a=new Quill("#"+a,{modules:{toolbar:{}},placeholder:"Type message...",theme:"snow"});var t=KTUtil.find(i,".ql-toolbar");a=KTUtil.find(i,".ql-editor");t&&KTUtil.addClass(t,"px-5 border-top-0 border-left-0 border-right-0"),a&&KTUtil.addClass(a,"px-8")},n=function(i){i=KTUtil.getById(i);var a=KTUtil.find(i,"[name=compose_to]"),t=(new Tagify(a,{delimiters:", ",maxTags:10,blacklist:["fuck","shit","pussy"],keepInvalidTags:!0,whitelist:[{value:"Chris Muller",email:"chris.muller@wix.com",initials:"",initialsState:"",pic:"./assets/media/users/100_11.jpg",class:"tagify__tag--primary"},{value:"Nick Bold",email:"nick.seo@gmail.com",initials:"SS",initialsState:"warning",pic:""},{value:"Alon Silko",email:"alon@keenthemes.com",initials:"",initialsState:"",pic:"./assets/media/users/100_6.jpg"},{value:"Sam Seanic",email:"sam.senic@loop.com",initials:"",initialsState:"",pic:"./assets/media/users/100_8.jpg"},{value:"Sara Loran",email:"sara.loran@tilda.com",initials:"",initialsState:"",pic:"./assets/media/users/100_9.jpg"},{value:"Eric Davok",email:"davok@mix.com",initials:"",initialsState:"",pic:"./assets/media/users/100_13.jpg"},{value:"Sam Seanic",email:"sam.senic@loop.com",initials:"",initialsState:"",pic:"./assets/media/users/100_13.jpg"},{value:"Lina Nilson",email:"lina.nilson@loop.com",initials:"LN",initialsState:"danger",pic:"./assets/media/users/100_15.jpg"}],templates:{dropdownItem:function(i){try{var a="";return a+='<div class="tagify__dropdown__item">',a+=' <div class="d-flex align-items-center">',a+=' <span class="symbol sumbol-'+(i.initialsState?i.initialsState:"")+' mr-2">',a+=' <span class="symbol-label" style="background-image: url(\''+(i.pic?i.pic:"")+"')\">"+(i.initials?i.initials:"")+"</span>",a+=" </span>",a+=' <div class="d-flex flex-column">',a+=' <a href="#" class="text-dark-75 text-hover-primary font-weight-bold">'+(i.value?i.value:"")+"</a>",a+=' <span class="text-muted font-weight-bold">'+(i.email?i.email:"")+"</span>",a+=" </div>",a+=" </div>",a+="</div>"}catch(i){}}},transformTag:function(i){i.class="tagify__tag tagify__tag--primary"},dropdown:{classname:"color-blue",enabled:1,maxItems:5}}),KTUtil.find(i,"[name=compose_cc]")),e=(new Tagify(t,{delimiters:", ",maxTags:10,blacklist:["fuck","shit","pussy"],keepInvalidTags:!0,whitelist:[{value:"Chris Muller",email:"chris.muller@wix.com",initials:"",initialsState:"",pic:"./assets/media/users/100_11.jpg",class:"tagify__tag--primary"},{value:"Nick Bold",email:"nick.seo@gmail.com",initials:"SS",initialsState:"warning",pic:""},{value:"Alon Silko",email:"alon@keenthemes.com",initials:"",initialsState:"",pic:"./assets/media/users/100_6.jpg"},{value:"Sam Seanic",email:"sam.senic@loop.com",initials:"",initialsState:"",pic:"./assets/media/users/100_8.jpg"},{value:"Sara Loran",email:"sara.loran@tilda.com",initials:"",initialsState:"",pic:"./assets/media/users/100_9.jpg"},{value:"Eric Davok",email:"davok@mix.com",initials:"",initialsState:"",pic:"./assets/media/users/100_13.jpg"},{value:"Sam Seanic",email:"sam.senic@loop.com",initials:"",initialsState:"",pic:"./assets/media/users/100_13.jpg"},{value:"Lina Nilson",email:"lina.nilson@loop.com",initials:"LN",initialsState:"danger",pic:"./assets/media/users/100_15.jpg"}],templates:{dropdownItem:function(i){try{var a="";return a+='<div class="tagify__dropdown__item">',a+=' <div class="d-flex align-items-center">',a+=' <span class="symbol sumbol-'+(i.initialsState?i.initialsState:"")+' mr-2" style="background-image: url(\''+(i.pic?i.pic:"")+"')\">",a+=' <span class="symbol-label">'+(i.initials?i.initials:"")+"</span>",a+=" </span>",a+=' <div class="d-flex flex-column">',a+=' <a href="#" class="text-dark-75 text-hover-primary font-weight-bold">'+(i.value?i.value:"")+"</a>",a+=' <span class="text-muted font-weight-bold">'+(i.email?i.email:"")+"</span>",a+=" </div>",a+=" </div>",a+="</div>"}catch(i){}}},transformTag:function(i){i.class="tagify__tag tagify
|