File: /home/zeusxp5/in.kamilleinc.com/wp-content/plugins/weforms/assets/js/spa-mixins.min.js
"use strict";weForms.mixins.BulkAction={data:function(){return{bulkAction:"-1",checkedItems:[]}},computed:{selectAll:{get:function(){return!!this.items&&this.checkedItems.length==this.items.length},set:function(t){var e=[],n=this;t&&this.items.forEach(function(t){void 0!==t[n.index]?e.push(t[n.index]):e.push(t.id)}),this.checkedItems=e}}},methods:{deleteBulk:function(){var e=this;e.loading=!0,wp.ajax.send(e.bulkDeleteAction,{data:{permanent:"trash"==this.status?1:0,ids:this.checkedItems,_wpnonce:weForms.nonce},success:function(t){e.checkedItems=[],e.fetchData()},error:function(t){alert(t)},complete:function(t){e.loading=!1}})},restoreBulk:function(){var e=this;e.loading=!0,wp.ajax.send("weforms_form_entry_restore_bulk",{data:{ids:this.checkedItems,_wpnonce:weForms.nonce},success:function(t){e.checkedItems=[],e.fetchData()},error:function(t){alert(t)},complete:function(t){e.loading=!1}})}}},weForms.mixins.Cookie={methods:{setCookie:function(t,e,n){var i=new Date;i.setTime(i.getTime()+24*n*60*60*1e3);var s="expires="+i.toUTCString();document.cookie=t+"="+e+";"+s+";path=/"},getCookie:function(t){for(var e=t+"=",n=decodeURIComponent(document.cookie).split(";"),i=0;i<n.length;i++){for(var s=n[i];" "==s.charAt(0);)s=s.substring(1);if(0==s.indexOf(e))return s.substring(e.length,s.length)}return""}}},weForms.mixins.Loading={watch:{loading:function(t){t?(NProgress.configure({parent:"#wpadminbar"}),NProgress.start()):NProgress.done()}}},weForms.mixins.Paginate={data:function(){return{totalItems:0,totalPage:1,currentPage:1,pageNumberInput:1}},methods:{isFirstPage:function(){return 1==this.currentPage},isLastPage:function(){return this.currentPage==this.totalPage},goFirstPage:function(){this.currentPage=1,this.pageNumberInput=this.currentPage,this.goToPage()},goLastPage:function(){this.currentPage=this.totalPage,this.pageNumberInput=this.currentPage,this.goToPage()},goToPage:function(t){"prev"==t?this.currentPage--:"next"==t?this.currentPage++:!isNaN(t)&&t<=this.totalPage&&(this.currentPage=t),this.pageNumberInput=this.currentPage,this.fetchData()}}},weForms.mixins.Tabs={methods:{makeActive:function(t){this.activeTab=t},isActiveTab:function(t){return this.activeTab===t}}};