first commit

This commit is contained in:
aminhashemi92 2025-08-10 07:44:23 +03:30
commit b71ea45681
898 changed files with 138202 additions and 0 deletions

View file

@ -0,0 +1 @@
"use strict";!function(){new Plyr("#plyr-video-player");document.getElementsByClassName("plyr")[0].style.borderRadius="7px",document.getElementsByClassName("plyr__poster")[0].style.display="none";const e=document.getElementsByTagName("html")[0],t=document.querySelector(".stick-top");function s(){e.classList.contains("layout-navbar-fixed")?t.classList.add("course-content-fixed"):t.classList.remove("course-content-fixed")}s(),window.onscroll=function(){s()}}();

View file

@ -0,0 +1 @@
"use strict";$(function(){var e=$(".select2");e.length&&(e.each(function(){var e=$(this);e.wrap('<div class="position-relative"></div>').select2({dropdownParent:e.parent(),placeholder:e.data("placeholder"),dropdownCss:{minWidth:"150px"}})}),$(".select2-selection__rendered").addClass("w-px-150"))}),function(){new Plyr("#guitar-video-player"),new Plyr("#guitar-video-player-2");document.getElementsByClassName("plyr")[0].style.borderRadius="4px",document.getElementsByClassName("plyr")[1].style.borderRadius="4px",document.getElementsByClassName("plyr__poster")[0].style.display="none",document.getElementsByClassName("plyr__poster")[1].style.display="none"}();

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1 @@
"use strict";$(function(){var e,a=$(".datatables-permissions"),d="app-user-list.html";a.length&&(e=a.DataTable({ajax:assetsPath+"json/permissions-list.json",columns:[{data:""},{data:"id"},{data:"name"},{data:"assigned_to"},{data:"created_date"},{data:""}],columnDefs:[{className:"control",orderable:!1,searchable:!1,responsivePriority:2,targets:0,render:function(e,a,t,s){return""}},{targets:1,searchable:!1,visible:!1},{targets:2,render:function(e,a,t,s){return'<span class="text-nowrap">'+t.name+"</span>"}},{targets:3,orderable:!1,render:function(e,a,t,s){for(var n=t.assigned_to,r="",o={Admin:'<a href="'+d+'"><span class="badge bg-label-primary m-1">Administrator</span></a>',Manager:'<a href="'+d+'"><span class="badge bg-label-warning m-1">Manager</span></a>',Users:'<a href="'+d+'"><span class="badge bg-label-success m-1">Users</span></a>',Support:'<a href="'+d+'"><span class="badge bg-label-info m-1">Support</span></a>',Restricted:'<a href="'+d+'"><span class="badge bg-label-danger m-1">Restricted User</span></a>'},l=0;l<n.length;l++)r+=o[n[l]];return'<span class="text-nowrap">'+r+"</span>"}},{targets:4,orderable:!1,render:function(e,a,t,s){return'<span class="text-nowrap">'+t.created_date+"</span>"}},{targets:-1,searchable:!1,title:"Actions",orderable:!1,render:function(e,a,t,s){return'<span class="text-nowrap"><button class="btn btn-sm btn-icon me-2" data-bs-target="#editPermissionModal" data-bs-toggle="modal" data-bs-dismiss="modal"><i class="bx bx-edit"></i></button><button class="btn btn-sm btn-icon delete-record"><i class="bx bx-trash"></i></button></span>'}}],order:[[1,"asc"]],dom:'<"row mx-1"<"col-sm-12 col-md-3" l><"col-sm-12 col-md-9"<"dt-action-buttons text-xl-end text-lg-start text-md-end text-start d-flex align-items-center justify-content-md-end justify-content-center flex-wrap me-1"<"me-3"f>B>>>t<"row mx-2"<"col-sm-12 col-md-6"i><"col-sm-12 col-md-6"p>>',language:{sLengthMenu:"_MENU_",search:"Search",searchPlaceholder:"Search.."},buttons:[{text:"Add Permission",className:"add-new btn btn-primary mb-3 mb-md-0",attr:{"data-bs-toggle":"modal","data-bs-target":"#addPermissionModal"},init:function(e,a,t){$(a).removeClass("btn-secondary")}}],responsive:{details:{display:$.fn.dataTable.Responsive.display.modal({header:function(e){return"Details of "+e.data().name}}),type:"column",renderer:function(e,a,t){t=$.map(t,function(e,a){return""!==e.title?'<tr data-dt-row="'+e.rowIndex+'" data-dt-column="'+e.columnIndex+'"><td>'+e.title+":</td> <td>"+e.data+"</td></tr>":""}).join("");return!!t&&$('<table class="table"/><tbody />').append(t)}}},initComplete:function(){this.api().columns(3).every(function(){var a=this,t=$('<select id="UserRole" class="form-select text-capitalize"><option value=""> Select Role </option></select>').appendTo(".user_role").on("change",function(){var e=$.fn.dataTable.util.escapeRegex($(this).val());a.search(e?"^"+e+"$":"",!0,!1).draw()});a.data().unique().sort().each(function(e,a){t.append('<option value="'+e+'" class="text-capitalize">'+e+"</option>")})})}})),$(".datatables-permissions tbody").on("click",".delete-record",function(){e.row($(this).parents("tr")).remove().draw()}),setTimeout(()=>{$(".dataTables_filter .form-control").removeClass("form-control-sm"),$(".dataTables_length .form-select").removeClass("form-select-sm")},300)});

View file

@ -0,0 +1 @@
"use strict";$(function(){var e=$(".datatables-users"),l={1:{title:"Pending",class:"bg-label-warning"},2:{title:"Active",class:"bg-label-success"},3:{title:"Inactive",class:"bg-label-secondary"}},c="app-user-view-account.html";e.length&&e.DataTable({ajax:assetsPath+"json/user-list.json",columns:[{data:""},{data:"full_name"},{data:"role"},{data:"current_plan"},{data:"billing"},{data:"status"},{data:""}],columnDefs:[{className:"control",orderable:!1,searchable:!1,responsivePriority:2,targets:0,render:function(e,a,t,s){return""}},{targets:1,responsivePriority:4,render:function(e,a,t,s){var l=t.full_name,n=t.email,r=t.avatar;return'<div class="d-flex justify-content-left align-items-center"><div class="avatar-wrapper"><div class="avatar avatar-sm me-3">'+(r?'<img src="'+assetsPath+"img/avatars/"+r+'" alt="Avatar" class="rounded-circle">':'<span class="avatar-initial rounded-circle bg-label-'+["success","danger","warning","info","dark","primary","secondary"][Math.floor(6*Math.random())+1]+'">'+(r=(((r=(l=t.full_name).match(/\b\w/g)||[]).shift()||"")+(r.pop()||"")).toUpperCase())+"</span>")+'</div></div><div class="d-flex flex-column"><a href="'+c+'" class="text-body text-truncate"><span class="fw-medium">'+l+'</span></a><small class="text-muted">@'+n+"</small></div></div>"}},{targets:2,render:function(e,a,t,s){t=t.role;return"<span class='text-truncate d-flex align-items-center'>"+{Subscriber:'<span class="badge badge-center rounded-pill bg-label-warning w-px-30 h-px-30 me-2"><i class="bx bx-user bx-xs"></i></span>',Author:'<span class="badge badge-center rounded-pill bg-label-success w-px-30 h-px-30 me-2"><i class="bx bx-cog bx-xs"></i></span>',Maintainer:'<span class="badge badge-center rounded-pill bg-label-primary w-px-30 h-px-30 me-2"><i class="bx bx-pie-chart-alt bx-xs"></i></span>',Editor:'<span class="badge badge-center rounded-pill bg-label-info w-px-30 h-px-30 me-2"><i class="bx bx-edit bx-xs"></i></span>',Admin:'<span class="badge badge-center rounded-pill bg-label-secondary w-px-30 h-px-30 me-2"><i class="bx bx-mobile-alt bx-xs"></i></span>'}[t]+t+"</span>"}},{targets:3,render:function(e,a,t,s){return'<span class="fw-medium">'+t.current_plan+"</span>"}},{targets:5,render:function(e,a,t,s){t=t.status;return'<span class="badge '+l[t].class+'">'+l[t].title+"</span>"}},{targets:-1,title:"View",searchable:!1,orderable:!1,render:function(e,a,t,s){return'<a href="'+c+'" class="btn btn-sm btn-icon"><i class="bx bx-show-alt"></i></a>'}}],order:[[1,"desc"]],dom:'<"row mx-2"<"col-sm-12 col-md-4 col-lg-6" l><"col-sm-12 col-md-8 col-lg-6"<"dt-action-buttons text-xl-end text-lg-start text-md-end text-start d-flex align-items-center justify-content-md-end justify-content-center align-items-center flex-sm-nowrap flex-wrap me-1"<"me-3"f><"user_role w-px-200 pb-3 pb-sm-0">>>>t<"row mx-2"<"col-sm-12 col-md-6"i><"col-sm-12 col-md-6"p>>',language:{sLengthMenu:"_MENU_",search:"Search",searchPlaceholder:"Search.."},responsive:{details:{display:$.fn.dataTable.Responsive.display.modal({header:function(e){return"Details of "+e.data().full_name}}),type:"column",renderer:function(e,a,t){t=$.map(t,function(e,a){return""!==e.title?'<tr data-dt-row="'+e.rowIndex+'" data-dt-column="'+e.columnIndex+'"><td>'+e.title+":</td> <td>"+e.data+"</td></tr>":""}).join("");return!!t&&$('<table class="table"/><tbody />').append(t)}}},initComplete:function(){this.api().columns(2).every(function(){var a=this,t=$('<select id="UserRole" class="form-select text-capitalize"><option value=""> Select Role </option></select>').appendTo(".user_role").on("change",function(){var e=$.fn.dataTable.util.escapeRegex($(this).val());a.search(e?"^"+e+"$":"",!0,!1).draw()});a.data().unique().sort().each(function(e,a){t.append('<option value="'+e+'" class="text-capitalize">'+e+"</option>")})})}}),setTimeout(()=>{$(".dataTables_filter .form-control").removeClass("form-control-sm"),$(".dataTables_length .form-select").removeClass("form-select-sm")},300)}),function(){var e=document.querySelectorAll(".role-edit-modal"),a=document.querySelector(".add-new-role"),t=document.querySelector(".role-title");a.onclick=function(){t.innerHTML="Add New Role"},e&&e.forEach(function(e){e.onclick=function(){t.innerHTML="Edit Role"}})}();

View file

@ -0,0 +1 @@
"use strict";let date=new Date,nextDay=new Date((new Date).getTime()+864e5),nextMonth=11===date.getMonth()?new Date(date.getFullYear()+1,0,1):new Date(date.getFullYear(),date.getMonth()+1,1),prevMonth=11===date.getMonth()?new Date(date.getFullYear()-1,0,1):new Date(date.getFullYear(),date.getMonth()-1,1);window.events=[{id:1,url:"",title:"Design Review",start:date,end:nextDay,allDay:!1,extendedProps:{calendar:"Business"}},{id:2,url:"",title:"Meeting With Client",start:new Date(date.getFullYear(),date.getMonth()+1,-11),end:new Date(date.getFullYear(),date.getMonth()+1,-10),allDay:!0,extendedProps:{calendar:"Business"}},{id:3,url:"",title:"Family Trip",allDay:!0,start:new Date(date.getFullYear(),date.getMonth()+1,-9),end:new Date(date.getFullYear(),date.getMonth()+1,-7),extendedProps:{calendar:"Holiday"}},{id:4,url:"",title:"Doctor's Appointment",start:new Date(date.getFullYear(),date.getMonth()+1,-11),end:new Date(date.getFullYear(),date.getMonth()+1,-10),extendedProps:{calendar:"Personal"}},{id:5,url:"",title:"Dart Game?",start:new Date(date.getFullYear(),date.getMonth()+1,-13),end:new Date(date.getFullYear(),date.getMonth()+1,-12),allDay:!0,extendedProps:{calendar:"ETC"}},{id:6,url:"",title:"Meditation",start:new Date(date.getFullYear(),date.getMonth()+1,-13),end:new Date(date.getFullYear(),date.getMonth()+1,-12),allDay:!0,extendedProps:{calendar:"Personal"}},{id:7,url:"",title:"Dinner",start:new Date(date.getFullYear(),date.getMonth()+1,-13),end:new Date(date.getFullYear(),date.getMonth()+1,-12),extendedProps:{calendar:"Family"}},{id:8,url:"",title:"Product Review",start:new Date(date.getFullYear(),date.getMonth()+1,-13),end:new Date(date.getFullYear(),date.getMonth()+1,-12),allDay:!0,extendedProps:{calendar:"Business"}},{id:9,url:"",title:"Monthly Meeting",start:nextMonth,end:nextMonth,allDay:!0,extendedProps:{calendar:"Business"}},{id:10,url:"",title:"Monthly Checkup",start:prevMonth,end:prevMonth,allDay:!0,extendedProps:{calendar:"Personal"}}];

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1 @@
"use strict";document.addEventListener("DOMContentLoaded",function(){{const o=document.querySelector(".app-chat-contacts .sidebar-body"),n=[].slice.call(document.querySelectorAll(".chat-contact-list-item:not(.chat-contact-list-item-title)")),i=document.querySelector(".chat-history-body"),u=document.querySelector(".app-chat-sidebar-left .sidebar-body"),d=document.querySelector(".app-chat-sidebar-right .sidebar-body"),h=[].slice.call(document.querySelectorAll(".form-check-input[name='chat-user-status']")),m=$(".chat-sidebar-left-user-about"),p=document.querySelector(".form-send-message"),v=document.querySelector(".message-input"),b=document.querySelector(".chat-search-input"),f=$(".speech-to-text"),y={active:"avatar-online",offline:"avatar-offline",away:"avatar-away",busy:"avatar-busy"};function a(){i.scrollTo(0,i.scrollHeight)}function l(e,a,c,t){e.forEach(e=>{var t=e.textContent.toLowerCase();!c||-1<t.indexOf(c)?(e.classList.add("d-flex"),e.classList.remove("d-none"),a++):e.classList.add("d-none")}),0==a?t.classList.remove("d-none"):t.classList.add("d-none")}o&&new PerfectScrollbar(o,{wheelPropagation:!1,suppressScrollX:!0}),i&&new PerfectScrollbar(i,{wheelPropagation:!1,suppressScrollX:!0}),u&&new PerfectScrollbar(u,{wheelPropagation:!1,suppressScrollX:!0}),d&&new PerfectScrollbar(d,{wheelPropagation:!1,suppressScrollX:!0}),a(),m.length&&m.maxlength({alwaysShow:!0,warningClass:"label label-success bg-success text-white",limitReachedClass:"label label-danger",separator:"/",validate:!0,threshold:120}),h.forEach(e=>{e.addEventListener("click",e=>{var t=document.querySelector(".chat-sidebar-left-user .avatar"),e=e.currentTarget.value,t=(t.removeAttribute("class"),Helpers._addClass("avatar avatar-xl "+y[e],t),document.querySelector(".app-chat-contacts .avatar"));t.removeAttribute("class"),Helpers._addClass("flex-shrink-0 avatar "+y[e]+" me-3",t)})}),n.forEach(e=>{e.addEventListener("click",e=>{n.forEach(e=>{e.classList.remove("active")}),e.currentTarget.classList.add("active")})}),b&&b.addEventListener("keyup",e=>{var e=e.currentTarget.value.toLowerCase(),t=document.querySelector(".chat-list-item-0"),a=document.querySelector(".contact-list-item-0"),c=[].slice.call(document.querySelectorAll("#chat-list li:not(.chat-contact-list-item-title)")),r=[].slice.call(document.querySelectorAll("#contact-list li:not(.chat-contact-list-item-title)"));l(c,0,e,t),l(r,0,e,a)}),p.addEventListener("submit",e=>{e.preventDefault(),v.value&&((e=document.createElement("div")).className="chat-message-text mt-2",e.innerHTML='<p class="mb-0 text-break">'+v.value+"</p>",document.querySelector("li:last-child .chat-message-wrapper").appendChild(e),v.value="",a())});let e=document.querySelector(".chat-history-header [data-target='#app-chat-contacts']"),t=document.querySelector(".app-chat-sidebar-left .close-sidebar");var c,r,s;e.addEventListener("click",e=>{t.removeAttribute("data-overlay")}),f.length&&null!=(c=c||webkitSpeechRecognition)&&(r=new c,s=!1,f.on("click",function(){const t=$(this);!(r.onspeechstart=function(){s=!0})===s&&r.start(),r.onerror=function(e){s=!1},r.onresult=function(e){t.closest(".form-send-message").find(".message-input").val(e.results[0][0].transcript)},r.onspeechend=function(e){s=!1,r.stop()}}))}});

View file

@ -0,0 +1 @@
"use strict";const commentEditor=document.querySelector(".comment-editor");commentEditor&&new Quill(commentEditor,{modules:{toolbar:".comment-toolbar"},placeholder:"Enter category description...",theme:"snow"}),$(function(){let e,t,a;a=(isDarkStyle?(e=config.colors_dark.borderColor,t=config.colors_dark.bodyBg,config.colors_dark):(e=config.colors.borderColor,t=config.colors.bodyBg,config.colors)).headingColor;var o,r=$(".datatables-category-list"),s=$(".select2");s.length&&s.each(function(){var e=$(this);e.wrap('<div class="position-relative"></div>').select2({dropdownParent:e.parent(),placeholder:e.data("placeholder")})}),r.length&&(o=r.DataTable({ajax:assetsPath+"json/ecommerce-category-list.json",columns:[{data:""},{data:"id"},{data:"categories"},{data:"total_products"},{data:"total_earnings"},{data:""}],columnDefs:[{className:"control",searchable:!1,orderable:!1,responsivePriority:1,targets:0,render:function(e,t,a,o){return""}},{targets:1,orderable:!1,searchable:!1,responsivePriority:4,checkboxes:!0,checkboxes:{selectAllRender:'<input type="checkbox" class="form-check-input">'},render:function(){return'<input type="checkbox" class="dt-checkboxes form-check-input">'}},{targets:2,responsivePriority:2,render:function(e,t,a,o){var r=a.categories,s=a.category_detail,n=a.cat_image,l=a.id;return'<div class="d-flex align-items-center"><div class="avatar-wrapper me-2 rounded-2 bg-label-secondary"><div class="avatar">'+(n?'<img src="'+assetsPath+"img/ecommerce-images/"+n+'" alt="Product-'+l+'" class="rounded-2">':'<span class="avatar-initial rounded-2 bg-label-'+["success","danger","warning","info","dark","primary","secondary"][Math.floor(6*Math.random())]+'">'+(n=(((n=(r=a.category_detail).match(/\b\w/g)||[]).shift()||"")+(n.pop()||"")).toUpperCase())+"</span>")+'</div></div><div class="d-flex flex-column justify-content-center"><span class="text-body text-wrap fw-medium">'+r+'</span><span class="text-muted text-truncate mb-0 d-none d-sm-block"><small>'+s+"</small></span></div></div>"}},{targets:3,responsivePriority:3,render:function(e,t,a,o){return'<div class="text-sm-end">'+a.total_products+"</div>"}},{targets:4,orderable:!1,render:function(e,t,a,o){return"<div class='fw-medium text-sm-end'>"+a.total_earnings+"</div"}},{targets:-1,title:"Actions",searchable:!1,orderable:!1,render:function(e,t,a,o){return'<div class="d-flex align-items-sm-center justify-content-sm-center"><button class="btn btn-sm btn-icon delete-record me-2"><i class="bx bx-trash"></i></button><button class="btn btn-sm btn-icon"><i class="bx bx-edit"></i></button></div>'}}],order:[2,"desc"],dom:'<"card-header d-flex flex-wrap py-0"<"me-5 ms-n2 pe-5"f><"d-flex justify-content-start justify-content-md-end align-items-baseline"<"dt-action-buttons d-flex align-items-start align-items-md-center justify-content-sm-center mb-3 mb-sm-0 gap-3"lB>>>t<"row mx-2"<"col-sm-12 col-md-6"i><"col-sm-12 col-md-6"p>>',lengthMenu:[7,10,20,50,70,100],language:{sLengthMenu:"_MENU_",search:"",searchPlaceholder:"Search Category"},buttons:[{text:'<i class="bx bx-plus me-0 me-sm-1"></i>Add Category',className:"add-new btn btn-primary ms-2",attr:{"data-bs-toggle":"offcanvas","data-bs-target":"#offcanvasEcommerceCategoryList"}}],responsive:{details:{display:$.fn.dataTable.Responsive.display.modal({header:function(e){return"Details of "+e.data().categories}}),type:"column",renderer:function(e,t,a){a=$.map(a,function(e,t){return""!==e.title?'<tr data-dt-row="'+e.rowIndex+'" data-dt-column="'+e.columnIndex+'"><td> '+e.title+':</td> <td class="ps-0">'+e.data+"</td></tr>":""}).join("");return!!a&&$('<table class="table"/><tbody />').append(a)}}}}),$(".dataTables_length").addClass("mt-0 mt-md-3"),$(".dt-action-buttons").addClass("pt-0")),$(".datatables-category-list tbody").on("click",".delete-record",function(){o.row($(this).parents("tr")).remove().draw()}),setTimeout(()=>{$(".dataTables_filter .form-control").removeClass("form-control-sm"),$(".dataTables_length .form-select").removeClass("form-select-sm")},300)}),function(){var e=document.getElementById("eCommerceCategoryListForm");FormValidation.formValidation(e,{fields:{categoryTitle:{validators:{notEmpty:{message:"Please enter category title"}}},slug:{validators:{notEmpty:{message:"Please enter slug"}}}},plugins:{trigger:new FormValidation.plugins.Trigger,bootstrap5:new FormValidation.plugins.Bootstrap5({eleValidClass:"is-valid",rowSelector:function(e,t){return".mb-3"}}),submitButton:new FormValidation.plugins.SubmitButton,autoFocus:new FormValidation.plugins.AutoFocus}})}();

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1 @@
"use strict";$(function(){var e,t=$(".datatables-customer-order"),s={1:{title:"Ready to Pickup",class:"bg-label-info"},2:{title:"Dispatched",class:"bg-label-warning"},3:{title:"Delivered",class:"bg-label-success"},4:{title:"Out for delivery",class:"bg-label-primary"}};t.length&&(e=t.DataTable({ajax:assetsPath+"json/ecommerce-customer-order.json",columns:[{data:""},{data:"id"},{data:"order"},{data:"date"},{data:"status"},{data:"spent"},{data:" "}],columnDefs:[{className:"control",searchable:!1,orderable:!1,responsivePriority:2,targets:0,render:function(e,t,r,a){return""}},{targets:1,orderable:!1,searchable:!1,responsivePriority:3,checkboxes:!0,checkboxes:{selectAllRender:'<input type="checkbox" class="form-check-input">'},render:function(){return'<input type="checkbox" class="dt-checkboxes form-check-input">'}},{targets:2,responsivePriority:4,render:function(e,t,r,a){return"<a href='app-ecommerce-order-details.html' class='fw-medium'><span>#"+r.order+"</span></a>"}},{targets:3,render:function(e,t,r,a){return'<span class="text-nowrap">'+new Date(r.date).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})+"</span > "}},{targets:4,render:function(e,t,r,a){r=r.status;return'<span class="badge '+s[r].class+'" text-capitalized>'+s[r].title+"</span>"}},{targets:5,render:function(e,t,r,a){return"<span >"+r.spent+"</span>"}},{targets:-1,title:"Actions",searchable:!1,orderable:!1,render:function(e,t,r,a){return'<div class="text-xxl-center"><button class="btn btn-sm btn-icon dropdown-toggle hide-arrow" data-bs-toggle="dropdown"><i class="bx bx-dots-vertical-rounded"></i></button><div class="dropdown-menu dropdown-menu-end m-0"><a href="javascript:;" class="dropdown-item">View</a><a href="javascript:;" class="dropdown-item delete-record">Delete</a></div></div>'}}],order:[[2,"desc"]],dom:'<"card-header d-flex flex-wrap py-3 py-sm-2"<"head-label text-center me-4 ms-1">f>t<"row mx-4"<"col-md-12 col-xl-6 text-center text-xl-start pb-2 pb-lg-0 pe-0"i><"col-md-12 col-xl-6 d-flex justify-content-center justify-content-xl-end"p>>',lengthMenu:[6,30,50,70,100],language:{sLengthMenu:"_MENU_",search:"",searchPlaceholder:"Search order"},responsive:{details:{display:$.fn.dataTable.Responsive.display.modal({header:function(e){return"Details of "+e.data().order}}),type:"column",renderer:function(e,t,r){r=$.map(r,function(e,t){return""!==e.title?'<tr data-dt-row="'+e.rowIndex+'" data-dt-column="'+e.columnIndex+'"><td>'+e.title+":</td> <td>"+e.data+"</td></tr>":""}).join("");return!!r&&$('<table class="table"/><tbody />').append(r)}}}}),$("div.head-label").html('<h5 class="card-title mb-0 text-nowrap">Orders placed</h5>')),$(".datatables-orders tbody").on("click",".delete-record",function(){e.row($(this).parents("tr")).remove().draw()}),setTimeout(()=>{$(".dataTables_filter .form-control").removeClass("form-control-sm"),$(".dataTables_length .form-select").removeClass("form-select-sm")},300)});

View file

@ -0,0 +1 @@
"use strict";!function(){var t=document.querySelector(".delete-customer"),t=(t&&(t.onclick=function(){Swal.fire({title:"Are you sure?",text:"You won't be able to revert customer!",icon:"warning",showCancelButton:!0,confirmButtonText:"Yes, Delete customer!",customClass:{confirmButton:"btn btn-primary me-2",cancelButton:"btn btn-label-secondary"},buttonsStyling:!1}).then(function(t){t.value?Swal.fire({icon:"success",title:"Deleted!",text:"Customer has been removed.",customClass:{confirmButton:"btn btn-success"}}):t.dismiss===Swal.DismissReason.cancel&&Swal.fire({title:"Cancelled",text:"Cancelled Delete :)",icon:"error",customClass:{confirmButton:"btn btn-success"}})})}),document.querySelectorAll(".cancel-subscription"));t&&t.forEach(t=>{t.onclick=function(){Swal.fire({text:"Are you sure you would like to cancel your subscription?",icon:"warning",showCancelButton:!0,confirmButtonText:"Yes",customClass:{confirmButton:"btn btn-primary me-2",cancelButton:"btn btn-label-secondary"},buttonsStyling:!1}).then(function(t){t.value?Swal.fire({icon:"success",title:"Unsubscribed!",text:"Your subscription cancelled successfully.",customClass:{confirmButton:"btn btn-success"}}):t.dismiss===Swal.DismissReason.cancel&&Swal.fire({title:"Cancelled",text:"Unsubscription Cancelled!!",icon:"error",customClass:{confirmButton:"btn btn-success"}})})}})}();

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1 @@
"use strict";$(function(){var e=$(".datatables-order-details");e.length&&e.DataTable({ajax:assetsPath+"json/ecommerce-order-details.json",columns:[{data:"id"},{data:"id"},{data:"product_name"},{data:"price"},{data:"qty"},{data:""}],columnDefs:[{className:"control",searchable:!1,orderable:!1,responsivePriority:2,targets:0,render:function(e,t,a,r){return""}},{targets:1,orderable:!1,checkboxes:{selectAllRender:'<input type="checkbox" class="form-check-input">'},render:function(){return'<input type="checkbox" class="dt-checkboxes form-check-input" >'},searchable:!1},{targets:2,responsivePriority:1,searchable:!1,orderable:!1,render:function(e,t,a,r){var n=a.product_name,s=a.product_info,o=a.image;return'<div class="d-flex justify-content-start align-items-center text-nowrap"><div class="avatar-wrapper"><div class="avatar me-2">'+(o?'<img src="'+assetsPath+"img/products/"+o+'" alt="product-'+n+'" class="rounded-2">':'<span class="avatar-initial rounded-2 bg-label-'+["success","danger","warning","info","dark","primary","secondary"][Math.floor(6*Math.random())]+'">'+(o=(((o=(n=a.product_name).match(/\b\w/g)||[]).shift()||"")+(o.pop()||"")).toUpperCase())+"</span>")+'</div></div><div class="d-flex flex-column"><h6 class="text-body mb-0">'+n+'</h6><small class="text-muted">'+s+"</small></div></div>"}},{targets:3,searchable:!1,orderable:!1,render:function(e,t,a,r){return"<span>$"+a.price+"</span>"}},{targets:4,searchable:!1,orderable:!1,render:function(e,t,a,r){return'<span class="text-body">'+a.qty+"</span>"}},{targets:5,searchable:!1,orderable:!1,render:function(e,t,a,r){return'<h6 class="mb-0">$'+a.qty*a.price+"</h6>"}}],order:[2,""],dom:"t",responsive:{details:{display:$.fn.dataTable.Responsive.display.modal({header:function(e){return"Details of "+e.data().full_name}}),type:"column",renderer:function(e,t,a){a=$.map(a,function(e,t){return""!==e.title?'<tr data-dt-row="'+e.rowIndex+'" data-dt-column="'+e.columnIndex+'"><td>'+e.title+":</td> <td>"+e.data+"</td></tr>":""}).join("");return!!a&&$('<table class="table"/><tbody />').append(a)}}}}),setTimeout(()=>{$(".dataTables_filter .form-control").removeClass("form-control-sm"),$(".dataTables_length .form-select").removeClass("form-select-sm")},300)}),function(){var e=document.querySelector(".delete-order");e&&(e.onclick=function(){Swal.fire({title:"Are you sure?",text:"You won't be able to revert order!",icon:"warning",showCancelButton:!0,confirmButtonText:"Yes, Delete order!",customClass:{confirmButton:"btn btn-primary me-2",cancelButton:"btn btn-label-secondary"},buttonsStyling:!1}).then(function(e){e.value?Swal.fire({icon:"success",title:"Deleted!",text:"Order has been removed.",customClass:{confirmButton:"btn btn-success"}}):e.dismiss===Swal.DismissReason.cancel&&Swal.fire({title:"Cancelled",text:"Cancelled Delete :)",icon:"error",customClass:{confirmButton:"btn btn-success"}})})});e=(new Date).getFullYear();document.getElementById("orderYear").innerHTML=e}();

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,16 @@
"use strict";!function(){var e=document.querySelector(".comment-editor"),e=(e&&new Quill(e,{modules:{toolbar:".comment-toolbar"},placeholder:"Product Description",theme:"snow"}),document.querySelector("#dropzone-basic")),e=(e&&new Dropzone(e,{previewTemplate:`<div class="dz-preview dz-file-preview">
<div class="dz-details">
<div class="dz-thumbnail">
<img data-dz-thumbnail>
<span class="dz-nopreview">No preview</span>
<div class="dz-success-mark"></div>
<div class="dz-error-mark"></div>
<div class="dz-error-message"><span data-dz-errormessage></span></div>
<div class="progress">
<div class="progress-bar progress-bar-primary" role="progressbar" aria-valuemin="0" aria-valuemax="100" data-dz-uploadprogress></div>
</div>
</div>
<div class="dz-filename" data-dz-name></div>
<div class="dz-size" data-dz-size></div>
</div>
</div>`,parallelUploads:1,maxFilesize:5,acceptedFiles:".jpg,.jpeg,.png,.gif",addRemoveLinks:!0,maxFiles:1}),document.querySelector("#ecommerce-product-tags")),e=(new Tagify(e),new Date),r=document.querySelector(".product-date");r&&r.flatpickr({monthSelectorType:"static",defaultDate:e})}(),$(function(){var s,i,e=$(".select2"),e=(e.length&&e.each(function(){var e=$(this);e.wrap('<div class="position-relative"></div>').select2({dropdownParent:e.parent(),placeholder:e.data("placeholder")})}),$(".form-repeater"));e.length&&(s=2,i=1,e.on("submit",function(e){e.preventDefault()}),e.repeater({show:function(){var a=$(this).find(".form-control, .form-select"),t=$(this).find(".form-label");a.each(function(e){var r="form-repeater-"+s+"-"+i;$(a[e]).attr("id",r),$(t[e]).attr("for",r),i++}),s++,$(this).slideDown(),$(".select2-container").remove(),$(".select2.form-select").select2({placeholder:"Placeholder text"}),$(".select2-container").css("width","100%"),$(".form-repeater:first .form-select").select2({dropdownParent:$(this).parent(),placeholder:"Placeholder text"}),$(".position-relative .select2").each(function(){$(this).select2({dropdownParent:$(this).closest(".position-relative")})})}}))});

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1 @@
"use strict";$(function(){var e=$(".select2");e.length&&e.each(function(){var e=$(this);e.wrap('<div class="position-relative"></div>').select2({dropdownParent:e.parent(),placeholder:e.data("placeholder")})})}),function(){var e=document.querySelectorAll(".phone-mask");e&&e.forEach(function(e){new Cleave(e,{phone:!0,phoneRegionCode:"US"})})}();

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1 @@
"use strict";!function(){var e=document.querySelectorAll(".invoice-item-price"),t=document.querySelectorAll(".invoice-item-qty"),n=document.querySelectorAll(".date-picker");e&&e.forEach(function(e){new Cleave(e,{delimiter:"",numeral:!0})}),t&&t.forEach(function(e){new Cleave(e,{delimiter:"",numeral:!0})}),n&&n.forEach(function(e){e.flatpickr({monthSelectorType:"static"})})}(),$(function(){var n,o,a,i,l,r,e=$(".btn-apply-changes"),t=$(".source-item"),c={"App Design":"Designed UI kit & app pages.","App Customization":"Customization & Bug Fixes.","ABC Template":"Bootstrap 4 admin template.","App Development":"Native App Development."};function p(e,t){e.closest(".repeater-wrapper").find(t).text(e.val())}$(document).on("click",".tax-select",function(e){e.stopPropagation()}),e.length&&$(document).on("click",".btn-apply-changes",function(e){var t=$(this);l=t.closest(".dropdown-menu").find("#taxInput1"),r=t.closest(".dropdown-menu").find("#taxInput2"),i=t.closest(".dropdown-menu").find("#discountInput"),o=t.closest(".repeater-wrapper").find(".tax-1"),a=t.closest(".repeater-wrapper").find(".tax-2"),n=$(".discount"),null!==l.val()&&p(l,o),null!==r.val()&&p(r,a),i.val().length&&t.closest(".repeater-wrapper").find(n).text(i.val()+"%")}),t.length&&(t.on("submit",function(e){e.preventDefault()}),t.repeater({show:function(){$(this).slideDown(),[].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]')).map(function(e){return new bootstrap.Tooltip(e)})},hide:function(e){$(this).slideUp()}})),$(document).on("change",".item-details",function(){var e=$(this),t=c[e.val()];e.next("textarea").length?e.next("textarea").val(t):e.after('<textarea class="form-control" rows="2">'+t+"</textarea>")})});

View file

@ -0,0 +1 @@
"use strict";!function(){var e=document.querySelectorAll(".invoice-item-price"),t=document.querySelectorAll(".invoice-item-qty"),n=new Date,o=document.querySelector(".invoice-date"),a=document.querySelector(".due-date");e&&e.forEach(function(e){new Cleave(e,{delimiter:"",numeral:!0})}),t&&t.forEach(function(e){new Cleave(e,{delimiter:"",numeral:!0})}),o&&o.flatpickr({monthSelectorType:"static",defaultDate:n}),a&&a.flatpickr({monthSelectorType:"static",defaultDate:new Date(n.getFullYear(),n.getMonth(),n.getDate()+5)})}(),$(function(){var n,o,a,l,i,r,e=$(".btn-apply-changes"),t=$(".source-item"),c={"App Design":"Designed UI kit & app pages.","App Customization":"Customization & Bug Fixes.","ABC Template":"Bootstrap 4 admin template.","App Development":"Native App Development."};function p(e,t){e.closest(".repeater-wrapper").find(t).text(e.val())}$(document).on("click",".tax-select",function(e){e.stopPropagation()}),e.length&&$(document).on("click",".btn-apply-changes",function(e){var t=$(this);i=t.closest(".dropdown-menu").find("#taxInput1"),r=t.closest(".dropdown-menu").find("#taxInput2"),l=t.closest(".dropdown-menu").find("#discountInput"),o=t.closest(".repeater-wrapper").find(".tax-1"),a=t.closest(".repeater-wrapper").find(".tax-2"),n=$(".discount"),null!==i.val()&&p(i,o),null!==r.val()&&p(r,a),l.val().length&&t.closest(".repeater-wrapper").find(n).text(l.val()+"%")}),t.length&&(t.on("submit",function(e){e.preventDefault()}),t.repeater({show:function(){$(this).slideDown(),[].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]')).map(function(e){return new bootstrap.Tooltip(e)})},hide:function(e){$(this).slideUp()}})),$(document).on("change",".item-details",function(){var e=$(this),t=c[e.val()];e.next("textarea").length?e.next("textarea").val(t):e.after('<textarea class="form-control" rows="2">'+t+"</textarea>")})});

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1 @@
!function(){mapboxgl.accessToken="pk.eyJ1IjoibG9yZC1zaGl2YW0iLCJhIjoiY2xpeTlpNHFwMDVzbDNmczl2MXdob29udyJ9.JOLDU6VQG_ra1CoVG4jbUA";const t={type:"FeatureCollection",features:[{type:"Feature",properties:{iconSize:[20,42],message:"1"},geometry:{type:"Point",coordinates:[-73.999024,40.75249842]}},{type:"Feature",properties:{iconSize:[20,42],message:"2"},geometry:{type:"Point",coordinates:[-74.03,40.75699842]}},{type:"Feature",properties:{iconSize:[20,42],message:"3"},geometry:{type:"Point",coordinates:[-73.967524,40.7599842]}},{type:"Feature",properties:{iconSize:[20,42],message:"4"},geometry:{type:"Point",coordinates:[-74.0325,40.742992]}}]},r=new mapboxgl.Map({container:"map",style:"mapbox://styles/mapbox/light-v9",center:[-73.999024,40.75249842],zoom:12.25});for(const i of t.features){var e=document.createElement("div"),o=i.properties.iconSize[0],s=i.properties.iconSize[1];e.className="marker",e.insertAdjacentHTML("afterbegin",'<img src="'+assetsPath+'img/illustrations/fleet-car.png" alt="Fleet Car" width="20" class="rounded-3" id="carFleet-'+i.properties.message+'">'),e.style.width=o+"px",e.style.height=s+"px",e.style.cursor="pointer",new mapboxgl.Marker(e).setLngLat(i.geometry.coordinates).addTo(r);const n=document.getElementById("fl-"+i.properties.message),c=document.getElementById("carFleet-"+i.properties.message);n.addEventListener("click",function(){var e=document.querySelector(".marker-focus");Helpers._hasClass("active",n)?(r.flyTo({center:t.features[i.properties.message-1].geometry.coordinates,zoom:16}),e&&Helpers._removeClass("marker-focus",e),Helpers._addClass("marker-focus",c)):Helpers._removeClass("marker-focus",c)})}var a=document.getElementById("carFleet-1"),a=(Helpers._addClass("marker-focus",a),document.querySelector(".mapboxgl-control-container").classList.add("d-none"),$(".logistics-fleet-sidebar-body"));a.length&&new PerfectScrollbar(a[0],{wheelPropagation:!1,suppressScrollX:!0})}();

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1 @@
"use strict";!function(){var t=document.querySelector(".cancel-subscription");t&&(t.onclick=function(){Swal.fire({text:"Are you sure you would like to cancel your subscription?",icon:"warning",showCancelButton:!0,confirmButtonText:"Yes",customClass:{confirmButton:"btn btn-primary me-2",cancelButton:"btn btn-label-secondary"},buttonsStyling:!1}).then(function(t){t.value?Swal.fire({icon:"success",title:"Unsubscribed!",text:"Your subscription cancelled successfully.",customClass:{confirmButton:"btn btn-success"}}):t.dismiss===Swal.DismissReason.cancel&&Swal.fire({title:"Cancelled",text:"Unsubscription Cancelled!!",icon:"error",customClass:{confirmButton:"btn btn-success"}})})});const e=document.querySelector(".edit-address"),n=document.querySelector(".address-title"),s=document.querySelector(".address-subtitle");e.onclick=function(){n.innerHTML="Edit Address",s.innerHTML="Edit your current address"}}();

View file

@ -0,0 +1 @@
"use strict";!function(){const e=document.querySelector("#formChangePassword");e&&FormValidation.formValidation(e,{fields:{newPassword:{validators:{notEmpty:{message:"Please enter new password"},stringLength:{min:8,message:"Password must be more than 8 characters"}}},confirmPassword:{validators:{notEmpty:{message:"Please confirm new password"},identical:{compare:function(){return e.querySelector('[name="newPassword"]').value},message:"The password and its confirm are not the same"},stringLength:{min:8,message:"Password must be more than 8 characters"}}}},plugins:{trigger:new FormValidation.plugins.Trigger,bootstrap5:new FormValidation.plugins.Bootstrap5({eleValidClass:"",rowSelector:".form-password-toggle"}),submitButton:new FormValidation.plugins.SubmitButton,autoFocus:new FormValidation.plugins.AutoFocus},init:e=>{e.on("plugins.message.placed",function(e){e.element.parentElement.classList.contains("input-group")&&e.element.parentElement.insertAdjacentElement("afterend",e.messageElement)})}})}();

View file

@ -0,0 +1 @@
"use strict";!function(){var n=document.querySelector(".suspend-user"),n=(n&&(n.onclick=function(){Swal.fire({title:"Are you sure?",text:"You won't be able to revert user!",icon:"warning",showCancelButton:!0,confirmButtonText:"Yes, Suspend user!",customClass:{confirmButton:"btn btn-primary me-2",cancelButton:"btn btn-label-secondary"},buttonsStyling:!1}).then(function(n){n.value?Swal.fire({icon:"success",title:"Suspended!",text:"User has been suspended.",customClass:{confirmButton:"btn btn-success"}}):n.dismiss===Swal.DismissReason.cancel&&Swal.fire({title:"Cancelled",text:"Cancelled Suspension :)",icon:"error",customClass:{confirmButton:"btn btn-success"}})})}),document.querySelectorAll(".cancel-subscription"));n&&n.forEach(n=>{n.onclick=function(){Swal.fire({text:"Are you sure you would like to cancel your subscription?",icon:"warning",showCancelButton:!0,confirmButtonText:"Yes",customClass:{confirmButton:"btn btn-primary me-2",cancelButton:"btn btn-label-secondary"},buttonsStyling:!1}).then(function(n){n.value?Swal.fire({icon:"success",title:"Unsubscribed!",text:"Your subscription cancelled successfully.",customClass:{confirmButton:"btn btn-success"}}):n.dismiss===Swal.DismissReason.cancel&&Swal.fire({title:"Cancelled",text:"Unsubscription Cancelled!!",icon:"error",customClass:{confirmButton:"btn btn-success"}})})}})}();

View file

@ -0,0 +1 @@
"use strict";!function(){var e=[].slice.call(document.querySelectorAll(".card-collapsible")),l=[].slice.call(document.querySelectorAll(".card-expand")),s=[].slice.call(document.querySelectorAll(".card-close")),c=document.getElementById("sortable-4");e&&e.map(function(l){l.addEventListener("click",e=>{e.preventDefault(),new bootstrap.Collapse(l.closest(".card").querySelector(".collapse")),l.closest(".card-header").classList.toggle("collapsed"),Helpers._toggleClass(l.firstElementChild,"bx-chevron-down","bx-chevron-up")})}),l&&l.map(function(l){l.addEventListener("click",e=>{e.preventDefault(),Helpers._toggleClass(l.firstElementChild,"bx-fullscreen","bx-exit-fullscreen"),l.closest(".card").classList.toggle("card-fullscreen")})}),document.addEventListener("keyup",e=>{e.preventDefault(),"Escape"===e.key&&(e=document.querySelector(".card-fullscreen"))&&(Helpers._toggleClass(e.querySelector(".card-expand").firstChild,"bx-fullscreen","bx-exit-fullscreen"),e.classList.toggle("card-fullscreen"))}),s&&s.map(function(l){l.addEventListener("click",e=>{e.preventDefault(),l.closest(".card").classList.add("d-none")})}),null!==c&&Sortable.create(c,{animation:500,handle:".card"})}(),$(function(){var e=$(".card-reload");e.length&&e.on("click",function(e){e.preventDefault();var l=$(this);l.closest(".card").block({message:'<div class="sk-fold sk-primary"><div class="sk-fold-cube"></div><div class="sk-fold-cube"></div><div class="sk-fold-cube"></div><div class="sk-fold-cube"></div></div><h5>LOADING...</h5>',css:{backgroundColor:"transparent",border:"0"},overlayCSS:{backgroundColor:$("html").hasClass("dark-style")?"#000":"#fff",opacity:.55}}),setTimeout(function(){l.closest(".card").unblock(),l.closest(".card").find(".card-alert").length&&l.closest(".card").find(".card-alert").html('<div class="alert alert-danger alert-dismissible fade show" role="alert"><button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button><span class="fw-medium">Holy grail!</span> Your success/error message here.</div>')},2500)})});

View file

@ -0,0 +1 @@
"use strict";!function(){let o,a,e,r;a=(isDarkStyle?(o=config.colors_dark.cardColor,r=config.colors_dark.textMuted,e=config.colors_dark.bodyColor,config.colors_dark):(o=config.colors.cardColor,r=config.colors.textMuted,e=config.colors.bodyColor,config.colors)).headingColor;var t=document.querySelectorAll(".chart-progress"),t=(t&&t.forEach(function(o){var e=config.colors[o.dataset.color],r=o.dataset.series,t=o.dataset.progress_variant||"false",e=(e=e,r=r,{chart:{height:"true"==(t=t)?58:55,width:"true"==t?58:45,type:"radialBar"},plotOptions:{radialBar:{hollow:{size:"true"==t?"50%":"25%"},dataLabels:{show:"true"==t,value:{offsetY:-10,fontSize:"15px",fontWeight:500,fontFamily:"Public Sans",color:a}},track:{background:config.colors_label.secondary}}},colors:[e],grid:{padding:{top:"true"==t?-12:-15,bottom:"true"==t?-17:-15,left:"true"==t?-17:-5,right:-15}},series:[r],labels:"true"==t?[""]:["Progress"]});new ApexCharts(o,e).render()}),document.querySelector("#orderStatisticsChart")),s={chart:{height:165,width:130,type:"donut"},labels:["Electronic","Sports","Decor","Fashion"],series:[85,15,50,50],colors:[config.colors.primary,config.colors.secondary,config.colors.info,config.colors.success],stroke:{width:5,colors:[o]},dataLabels:{enabled:!1,formatter:function(o,e){return parseInt(o)+"%"}},legend:{show:!1},grid:{padding:{top:0,bottom:0,right:15}},plotOptions:{pie:{donut:{size:"75%",labels:{show:!0,value:{fontSize:"1.5rem",fontFamily:"Public Sans",color:a,offsetY:-15,formatter:function(o){return parseInt(o)+"%"}},name:{offsetY:20,fontFamily:"Public Sans"},total:{show:!0,fontSize:"0.8125rem",color:e,label:"Weekly",formatter:function(o){return"38%"}}}}}},states:{active:{filter:{type:"none"}}}},t=(null!==t&&new ApexCharts(t,s).render(),document.querySelector("#reportBarChart")),s={chart:{height:200,type:"bar",toolbar:{show:!1}},plotOptions:{bar:{barHeight:"60%",columnWidth:"60%",startingShape:"rounded",endingShape:"rounded",borderRadius:4,distributed:!0}},grid:{show:!1,padding:{top:-20,bottom:0,left:-10,right:-10}},colors:[config.colors_label.primary,config.colors_label.primary,config.colors_label.primary,config.colors_label.primary,config.colors.primary,config.colors_label.primary,config.colors_label.primary],dataLabels:{enabled:!1},series:[{data:[40,95,60,45,90,50,75]}],legend:{show:!1},xaxis:{categories:["Mo","Tu","We","Th","Fr","Sa","Su"],axisBorder:{show:!1},axisTicks:{show:!1},labels:{style:{colors:r,fontSize:"13px"}}},yaxis:{labels:{show:!1}}},t=(null!==t&&new ApexCharts(t,s).render(),document.querySelector("#conversionRateChart")),s={chart:{height:80,width:140,type:"line",toolbar:{show:!1},dropShadow:{enabled:!0,top:10,left:5,blur:3,color:config.colors.primary,opacity:.15},sparkline:{enabled:!0}},markers:{size:6,colors:"transparent",strokeColors:"transparent",strokeWidth:4,discrete:[{fillColor:o,seriesIndex:0,dataPointIndex:3,strokeColor:config.colors.primary,strokeWidth:4,size:6,radius:2}],hover:{size:7}},grid:{show:!1,padding:{right:8}},colors:[config.colors.primary],dataLabels:{enabled:!1},stroke:{width:5,curve:"smooth"},series:[{data:[137,210,160,245]}],xaxis:{show:!1,lines:{show:!1},labels:{show:!1},axisBorder:{show:!1}},yaxis:{show:!1}},t=(new ApexCharts(t,s).render(),document.querySelector(".credit-card-payment")),s=document.querySelector(".expiry-date-payment"),i=document.querySelectorAll(".cvv-code-payment");t&&new Cleave(t,{creditCard:!0,onCreditCardTypeChanged:function(o){document.querySelector(".card-payment-type").innerHTML=""!=o&&"unknown"!=o?'<img src="'+assetsPath+"img/icons/payments/"+o+'-cc.png" class="cc-icon-image" height="28"/>':""}}),s&&new Cleave(s,{date:!0,delimiter:"/",datePattern:["m","y"]}),i&&i.forEach(function(o){new Cleave(o,{numeral:!0,numeralPositiveOnly:!0})})}();

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,44 @@
"use strict";
window.config = {
colors: {
primary: "#696cff",
secondary: "#8592a3",
success: "#71dd37",
info: "#03c3ec",
warning: "#ffab00",
danger: "#ff3e1d",
dark: "#233446",
black: "#000",
white: "#fff",
cardColor: "#fff",
bodyBg: "#f5f5f9",
bodyColor: "#697a8d",
headingColor: "#566a7f",
textMuted: "#a1acb8",
borderColor: "#eceef1"
},
colors_label: {
primary: "#666ee81a",
secondary: "#8897aa1a",
success: "#28d0941a",
info: "#1e9ff21a",
warning: "#ff91491a",
danger: "template-customizer#ff49611a",
dark: "#181c211a"
},
colors_dark: {
cardColor: "#2b2c40",
bodyBg: "#232333",
bodyColor: "#a3a4cc",
headingColor: "#cbcbe2",
textMuted: "#7071a4",
borderColor: "#444564"
},
enableMenuLocalStorage: !0
}, window.assetsPath = document.documentElement.getAttribute("data-assets-path"), window.templateName = document.documentElement.getAttribute("data-template"), window.rtlSupport = !0, "undefined" != typeof TemplateCustomizer && (window.templateCustomizer = new TemplateCustomizer({
cssPath: assetsPath + "vendor/css" + (rtlSupport ? "/rtl" : "") + "/",
themesPath: assetsPath + "vendor/css" + (rtlSupport ? "/rtl" : "") + "/",
displayCustomizer: 0,
lang: localStorage.getItem("templateCustomizer-" + templateName + "--Lang") || "en",
controls: ["rtl", "style", "headerType", "contentLayout", "layoutCollapsed", "layoutNavbarOptions", "themes"]
}));

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1 @@
"use strict";!function(){var e=document.getElementById("sortable-cards"),t=document.getElementById("pending-tasks"),n=document.getElementById("completed-tasks"),a=document.getElementById("clone-source-1"),o=document.getElementById("clone-source-2"),l=document.getElementById("handle-list-1"),r=document.getElementById("handle-list-2"),i=document.getElementById("image-list-1"),m=document.getElementById("image-list-2");e&&Sortable.create(e),i&&Sortable.create(i,{animation:150,group:"imgList"}),m&&Sortable.create(m,{animation:150,group:"imgList"}),a&&Sortable.create(a,{animation:150,group:{name:"cloneList",pull:"clone",revertClone:!0}}),o&&Sortable.create(o,{animation:150,group:{name:"cloneList",pull:"clone",revertClone:!0}}),t&&Sortable.create(t,{animation:150,group:"taskList"}),n&&Sortable.create(n,{animation:150,group:"taskList"}),l&&Sortable.create(l,{animation:150,group:"handleList",handle:".drag-handle"}),r&&Sortable.create(r,{animation:150,group:"handleList",handle:".drag-handle"})}();

View file

@ -0,0 +1 @@
"use strict";new Plyr("#plyr-video-player"),new Plyr("#plyr-audio-player");

View file

@ -0,0 +1 @@
"use strict";!function(){var t=[].slice.call(document.querySelectorAll(".clipboard-btn"));ClipboardJS?t.map(function(t){new ClipboardJS(t).on("success",function(t){"copy"==t.action&&toastr.success("","Copied to Clipboard!!")})}):t.map(function(t){t.setAttribute("disabled",!0)})}();

View file

@ -0,0 +1 @@
"use strict";$(function(){var a=$("#document-Status"),e=$("#document-Pause"),n=$("#document-Resume"),t=$("#document-Elapsed"),r=$("#document-Destroy"),i=$("#document-Init"),l=(a.length&&($(document).on("idle.idleTimer",function(e,n,t){a.val(function(e,n){return n+"Idle @ "+moment().format()+" \n"}).removeClass("alert-success").addClass("alert-warning")}),$(document).on("active.idleTimer",function(e,n,t,r){a.val(function(e,n){return n+"Active ["+r.type+"] ["+r.target.nodeName+"] @ "+moment().format()+" \n"}).addClass("alert-success").removeClass("alert-warning")}),e.on("click",function(){return $(document).idleTimer("pause"),a.val(function(e,n){return n+"Paused @ "+moment().format()+" \n"}),$(this).blur(),!1}),n.on("click",function(){return $(document).idleTimer("resume"),a.val(function(e,n){return n+"Resumed @ "+moment().format()+" \n"}),$(this).blur(),!1}),t.on("click",function(){return a.val(function(e,n){return n+"Elapsed (since becoming active): "+$(document).idleTimer("getElapsedTime")+" \n"}),$(this).blur(),!1}),r.on("click",function(){return $(document).idleTimer("destroy"),a.val(function(e,n){return n+"Destroyed: @ "+moment().format()+" \n"}).removeClass("alert-success").removeClass("alert-warning"),$(this).blur(),!1}),i.on("click",function(){return $(document).idleTimer({timeout:5e3}),a.val(function(e,n){return n+"Init: @ "+moment().format()+" \n"}),$(document).idleTimer("isIdle")?a.removeClass("alert-success").addClass("alert-warning"):a.addClass("alert-success").removeClass("alert-warning"),$(this).blur(),!1}),a.val(""),$(document).idleTimer(5e3),$(document).idleTimer("isIdle")?a.val(function(e,n){return n+"Initial Idle State @ "+moment().format()+" \n"}).removeClass("alert-success").addClass("alert-warning"):a.val(function(e,n){return n+"Initial Active State @ "+moment().format()+" \n"}).addClass("alert-success").removeClass("alert-warning")),$("#element-Status")),e=$("#element-Reset"),n=$("#element-Remaining"),t=$("#element-LastActive"),r=$("#element-State");l.length&&(l.on("idle.idleTimer",function(e,n,t){e.stopPropagation(),l.val(function(e,n){return n+"Idle @ "+moment().format()+" \n"}).removeClass("alert-success").addClass("alert-warning")}),l.on("active.idleTimer",function(e){e.stopPropagation(),l.val(function(e,n){return n+"Active @ "+moment().format()+" \n"}).addClass("alert-success").removeClass("alert-warning")}),e.on("click",function(){return l.idleTimer("reset").val(function(e,n){return n+"Reset @ "+moment().format()+" \n"}),$("#element-Status").idleTimer("isIdle")?l.removeClass("alert-success").addClass("alert-warning"):l.addClass("alert-success").removeClass("alert-warning"),$(this).blur(),!1}),n.on("click",function(){return l.val(function(e,n){return n+"Remaining: "+l.idleTimer("getRemainingTime")+" \n"}),$(this).blur(),!1}),t.on("click",function(){return l.val(function(e,n){return n+"LastActive: "+l.idleTimer("getLastActiveTime")+" \n"}),$(this).blur(),!1}),r.on("click",function(){return l.val(function(e,n){return n+"State: "+($("#element-Status").idleTimer("isIdle")?"idle":"active")+" \n"}),$(this).blur(),!1}),l.val("").idleTimer(3e3),l.idleTimer("isIdle")?l.val(function(e,n){return n+"Initial Idle @ "+moment().format()+" \n"}).removeClass("alert-success").addClass("alert-warning"):l.val(function(e,n){return n+"Initial Active @ "+moment().format()+" \n"}).addClass("alert-success").removeClass("alert-warning"))});

View file

@ -0,0 +1 @@
"use strict";!function(){var e=document.querySelector(".dNum"),r=document.querySelector(".fNum"),n=document.querySelector(".fCurrency"),u=document.querySelector(".fBytes"),t=document.querySelector(".fPercent"),m=document.querySelector(".fTime"),o=document.querySelector(".fExponential");e&&(e.innerHTML=numeral(974).value()),r&&(r.innerHTML=numeral(1230974).format("0.0a")),n&&(n.innerHTML=numeral(1000.234).format("$0,0.000")),u&&(u.innerHTML=numeral(3467479682787).format("0.000ib")),t&&(t.innerHTML=numeral(.974878234).format("0.000%")),m&&(m.innerHTML=numeral(63846).format("00:00:00")),o&&(o.innerHTML=numeral(1123456789).format("0,0e+0"))}();

View file

@ -0,0 +1 @@
"use strict";document.addEventListener("DOMContentLoaded",function(){var e,t,l;e=document.getElementById("vertical-example"),t=document.getElementById("horizontal-example"),l=document.getElementById("both-scrollbars-example"),e&&new PerfectScrollbar(e,{wheelPropagation:!1}),t&&new PerfectScrollbar(t,{wheelPropagation:!1,suppressScrollY:!0}),l&&new PerfectScrollbar(l,{wheelPropagation:!1})});

View file

@ -0,0 +1 @@
"use strict";$(function(){var r,t=$(".basic-ratings"),i=$(".custom-svg-ratings"),a=$(".multi-color-ratings"),n=$(".half-star-ratings"),s=$(".full-star-ratings"),e=$(".read-only-ratings"),l=$(".onset-event-ratings"),o=$(".onChange-event-ratings"),g=$(".methods-ratings"),c=$(".btn-initialize"),h=$(".btn-destroy"),f=$(".btn-get-rating"),u=$(".btn-set-rating");t&&t.rateYo({rating:3.6,rtl:isRtl}),i&&i.rateYo({rating:3.2,starSvg:"<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'><path d='M12 6.76l1.379 4.246h4.465l-3.612 2.625 1.379 4.246-3.611-2.625-3.612 2.625 1.379-4.246-3.612-2.625h4.465l1.38-4.246zm0-6.472l-2.833 8.718h-9.167l7.416 5.389-2.833 8.718 7.417-5.388 7.416 5.388-2.833-8.718 7.417-5.389h-9.167l-2.833-8.718z'-></path>",rtl:isRtl}),a&&a.rateYo({rtl:isRtl,multiColor:{startColor:"#fffca0",endColor:"#ffab00"}}),n&&n.rateYo({rtl:isRtl,rating:2}),s&&s.rateYo({rtl:isRtl,rating:2}),e&&e.rateYo({rating:2,rtl:isRtl}),l&&l.rateYo({rtl:isRtl}).on("rateyo.set",function(t,r){alert("The rating is set to "+r.rating+"!")}),o&&o.rateYo({rtl:isRtl}).on("rateyo.change",function(t,r){r=r.rating;$(this).parent().find(".counter").text(r)}),g&&(r=g.rateYo({rtl:isRtl}),c&&c.on("click",function(){r.rateYo({rtl:isRtl})}),h&&h.on("click",function(){r.hasClass("jq-ry-container")?r.rateYo("destroy"):window.alert("Please Initialize Ratings First")}),f&&f.on("click",function(){var t;r.hasClass("jq-ry-container")?(t=r.rateYo("rating"),window.alert("Current Ratings are "+t)):window.alert("Please Initialize Ratings First")}),u)&&u.on("click",function(){r.hasClass("jq-ry-container")?r.rateYo("rating",1):window.alert("Please Initialize Ratings First")})});

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1 @@
"use strict";AOS.init({disable:function(){return window.innerWidth<1024},once:!0});

View file

@ -0,0 +1 @@
"use strict";!function(){var t=document.querySelector("#shepherd-example");t&&(t.onclick=function(){var t,e,a=new Shepherd.Tour({defaultStepOptions:{scrollTo:!1,cancelIcon:{enabled:!0}},useModalOverlay:!0});t="btn btn-sm btn-label-secondary md-btn-flat",e="btn btn-sm btn-primary btn-next",(a=a).addStep({title:"Navbar",text:"This is your navbar",attachTo:{element:".navbar",on:"bottom"},buttons:[{action:a.cancel,classes:t,text:"Skip"},{text:"Next",classes:e,action:a.next}]}),a.addStep({title:"Card",text:"This is a card",attachTo:{element:".tour-card",on:"top"},buttons:[{text:"Skip",classes:t,action:a.cancel},{text:"Back",classes:t,action:a.back},{text:"Next",classes:e,action:a.next}]}),a.addStep({title:"Footer",text:"This is the Footer",attachTo:{element:".footer",on:"top"},buttons:[{text:"Skip",classes:t,action:a.cancel},{text:"Back",classes:t,action:a.back},{text:"Next",classes:e,action:a.next}]}),a.addStep({title:"Upgrade",text:"Click here to upgrade plan",attachTo:{element:".footer-link",on:"top"},buttons:[{text:"Back",classes:t,action:a.back},{text:"Finish",classes:e,action:a.cancel}]}),a.start()});t=document.querySelector("#shepherd-docs-example");t&&(t.onclick=function(){var t,e,a=new Shepherd.Tour({defaultStepOptions:{scrollTo:!1,cancelIcon:{enabled:!0}},useModalOverlay:!0});t="btn btn-sm btn-label-secondary md-btn-flat",e="btn btn-sm btn-primary btn-next",(a=a).addStep({title:"Navbar",text:"This is your navbar",attachTo:{element:".navbar",on:"bottom"},buttons:[{action:a.cancel,classes:t,text:"Skip"},{text:"Next",classes:e,action:a.next}]}),a.addStep({title:"Footer",text:"This is the Footer",attachTo:{element:".footer",on:"top"},buttons:[{text:"Skip",classes:t,action:a.cancel},{text:"Back",classes:t,action:a.back},{text:"Next",classes:e,action:a.next}]}),a.addStep({title:"Social Link",text:"Click here share on social media",attachTo:{element:".footer-link",on:"top"},buttons:[{text:"Back",classes:t,action:a.back},{text:"Finish",classes:e,action:a.cancel}]}),a.start()})}();

View file

@ -0,0 +1 @@
"use strict";$(function(){var t=$("html").hasClass("light-style")?"default":"default-dark",e=$("#jstree-basic"),s=$("#jstree-custom-icons"),x=$("#jstree-context-menu"),n=$("#jstree-drag-drop"),c=$("#jstree-checkbox"),l=$("#jstree-ajax");e.length&&e.jstree({core:{themes:{name:t}}}),s.length&&s.jstree({core:{themes:{name:t},data:[{text:"css",children:[{text:"app.css",type:"css"},{text:"style.css",type:"css"}]},{text:"img",state:{opened:!0},children:[{text:"bg.jpg",type:"img"},{text:"logo.png",type:"img"},{text:"avatar.png",type:"img"}]},{text:"js",state:{opened:!0},children:[{text:"jquery.js",type:"js"},{text:"app.js",type:"js"}]},{text:"index.html",type:"html"},{text:"page-one.html",type:"html"},{text:"page-two.html",type:"html"}]},plugins:["types"],types:{default:{icon:"bx bx-folder"},html:{icon:"bx bxl-html5 text-danger"},css:{icon:"bx bxl-css3 text-info"},img:{icon:"bx bx-image text-success"},js:{icon:"bx bxl-nodejs text-warning"}}}),x.length&&x.jstree({core:{themes:{name:t},check_callback:!0,data:[{text:"css",children:[{text:"app.css",type:"css"},{text:"style.css",type:"css"}]},{text:"img",state:{opened:!0},children:[{text:"bg.jpg",type:"img"},{text:"logo.png",type:"img"},{text:"avatar.png",type:"img"}]},{text:"js",state:{opened:!0},children:[{text:"jquery.js",type:"js"},{text:"app.js",type:"js"}]},{text:"index.html",type:"html"},{text:"page-one.html",type:"html"},{text:"page-two.html",type:"html"}]},plugins:["types","contextmenu"],types:{default:{icon:"bx bx-folder"},html:{icon:"bx bxl-html5 text-danger"},css:{icon:"bx bxl-css3 text-info"},img:{icon:"bx bx-image text-success"},js:{icon:"bx bxl-nodejs text-warning"}}}),n.length&&n.jstree({core:{themes:{name:t},check_callback:!0,data:[{text:"css",children:[{text:"app.css",type:"css"},{text:"style.css",type:"css"}]},{text:"img",state:{opened:!0},children:[{text:"bg.jpg",type:"img"},{text:"logo.png",type:"img"},{text:"avatar.png",type:"img"}]},{text:"js",state:{opened:!0},children:[{text:"jquery.js",type:"js"},{text:"app.js",type:"js"}]},{text:"index.html",type:"html"},{text:"page-one.html",type:"html"},{text:"page-two.html",type:"html"}]},plugins:["types","dnd"],types:{default:{icon:"bx bx-folder"},html:{icon:"bx bxl-html5 text-danger"},css:{icon:"bx bxl-css3 text-info"},img:{icon:"bx bx-image text-success"},js:{icon:"bx bxl-nodejs text-warning"}}}),c.length&&c.jstree({core:{themes:{name:t},data:[{text:"css",children:[{text:"app.css",type:"css"},{text:"style.css",type:"css"}]},{text:"img",state:{opened:!0},children:[{text:"bg.jpg",type:"img"},{text:"logo.png",type:"img"},{text:"avatar.png",type:"img"}]},{text:"js",state:{opened:!0},children:[{text:"jquery.js",type:"js"},{text:"app.js",type:"js"}]},{text:"index.html",type:"html"},{text:"page-one.html",type:"html"},{text:"page-two.html",type:"html"}]},plugins:["types","checkbox","wholerow"],types:{default:{icon:"bx bx-folder"},html:{icon:"bx bxl-html5 text-danger"},css:{icon:"bx bxl-css3 text-info"},img:{icon:"bx bx-image text-success"},js:{icon:"bx bxl-nodejs text-warning"}}}),l.length&&l.jstree({core:{themes:{name:t},data:{url:assetsPath+"json/jstree-data.json",dataType:"json",data:function(t){return{id:t.id}}}},plugins:["types","state"],types:{default:{icon:"bx bx-folder"},html:{icon:"bx bxl-html5 text-danger"},css:{icon:"bx bxl-css3 text-info"},img:{icon:"bx bx-image text-success"},js:{icon:"bx bxl-nodejs text-warning"}}})});

View file

@ -0,0 +1 @@
"use strict";!function(){var n,e,s,t=$(".speech-to-text");t.length&&null!=(n=n||webkitSpeechRecognition)&&(e=new n,s=!1,t.on("click",function(){const t=$(this);!(e.onspeechstart=function(){s=!0})===s&&e.start(),e.onerror=function(n){s=!1},e.onresult=function(n){t.closest(".form-send-message").find(".message-input").val(n.results[0][0].transcript)},e.onspeechend=function(n){s=!1,e.stop()}}))}();

View file

@ -0,0 +1 @@
"use strict";!function(){var e=document.querySelectorAll(".phone-mask"),t=document.querySelector(".credit-card-mask"),n=document.querySelector(".expiry-date-mask"),c=document.querySelector(".cvv-code-mask"),r=document.querySelectorAll(".dob-picker"),o=document.querySelectorAll(".form-check-input-payment");e&&e.forEach(function(e){new Cleave(e,{phone:!0,phoneRegionCode:"US"})}),t&&new Cleave(t,{creditCard:!0,onCreditCardTypeChanged:function(e){document.querySelector(".card-type").innerHTML=""!=e&&"unknown"!=e?'<img src="'+assetsPath+"img/icons/payments/"+e+'-cc.png" height="28"/>':""}}),n&&new Cleave(n,{date:!0,delimiter:"/",datePattern:["m","y"]}),c&&new Cleave(c,{numeral:!0,numeralPositiveOnly:!0}),r&&r.forEach(function(e){e.flatpickr({monthSelectorType:"static"})}),o&&o.forEach(function(e){e.addEventListener("change",function(e){"credit-card"===e.target.value?document.querySelector("#form-credit-card").classList.remove("d-none"):document.querySelector("#form-credit-card").classList.add("d-none")})})}(),$(function(){var e,t=$(".sticky-element"),t=(window.Helpers.initCustomOptionCheck(),e=Helpers.isNavbarFixed()?$(".layout-navbar").height()+7:0,t.length&&t.sticky({topSpacing:e,zIndex:9}),$(".select2"));t.length&&t.each(function(){var e=$(this);e.wrap('<div class="position-relative"></div>').select2({placeholder:"Select value",dropdownParent:e.parent()})})});

View file

@ -0,0 +1 @@
"use strict";!function(){window.Helpers.initCustomOptionCheck();var e=[].slice.call(document.querySelectorAll(".flatpickr-validation")),e=(e&&e.forEach(e=>{e.flatpickr({monthSelectorType:"static"})}),document.querySelectorAll(".needs-validation"));Array.prototype.slice.call(e).forEach(function(a){a.addEventListener("submit",function(e){a.checkValidity()?alert("Submitted!!!"):(e.preventDefault(),e.stopPropagation()),a.classList.add("was-validated")},!1)})}(),document.addEventListener("DOMContentLoaded",function(e){{const t=document.getElementById("formValidationExamples"),o=jQuery(t.querySelector('[name="formValidationSelect2"]')),i=jQuery(t.querySelector('[name="formValidationTech"]')),l=t.querySelector('[name="formValidationLang"]'),s=jQuery(t.querySelector(".selectpicker")),r=FormValidation.formValidation(t,{fields:{formValidationName:{validators:{notEmpty:{message:"Please enter your name"},stringLength:{min:6,max:30,message:"The name must be more than 6 and less than 30 characters long"},regexp:{regexp:/^[a-zA-Z0-9 ]+$/,message:"The name can only consist of alphabetical, number and space"}}},formValidationEmail:{validators:{notEmpty:{message:"Please enter your email"},emailAddress:{message:"The value is not a valid email address"}}},formValidationPass:{validators:{notEmpty:{message:"Please enter your password"}}},formValidationConfirmPass:{validators:{notEmpty:{message:"Please confirm password"},identical:{compare:function(){return t.querySelector('[name="formValidationPass"]').value},message:"The password and its confirm are not the same"}}},formValidationFile:{validators:{notEmpty:{message:"Please select the file"}}},formValidationDob:{validators:{notEmpty:{message:"Please select your DOB"},date:{format:"YYYY/MM/DD",message:"The value is not a valid date"}}},formValidationSelect2:{validators:{notEmpty:{message:"Please select your country"}}},formValidationLang:{validators:{notEmpty:{message:"Please add your language"}}},formValidationTech:{validators:{notEmpty:{message:"Please select technology"}}},formValidationHobbies:{validators:{notEmpty:{message:"Please select your hobbies"}}},formValidationBio:{validators:{notEmpty:{message:"Please enter your bio"},stringLength:{min:100,max:500,message:"The bio must be more than 100 and less than 500 characters long"}}},formValidationGender:{validators:{notEmpty:{message:"Please select your gender"}}},formValidationPlan:{validators:{notEmpty:{message:"Please select your preferred plan"}}},formValidationSwitch:{validators:{notEmpty:{message:"Please select your preference"}}},formValidationCheckbox:{validators:{notEmpty:{message:"Please confirm our T&C"}}}},plugins:{trigger:new FormValidation.plugins.Trigger,bootstrap5:new FormValidation.plugins.Bootstrap5({eleValidClass:"",rowSelector:function(e,a){switch(e){case"formValidationName":case"formValidationEmail":case"formValidationPass":case"formValidationConfirmPass":case"formValidationFile":case"formValidationDob":case"formValidationSelect2":case"formValidationLang":case"formValidationTech":case"formValidationHobbies":case"formValidationBio":case"formValidationGender":return".col-md-6";case"formValidationPlan":return".col-xl-3";case"formValidationSwitch":case"formValidationCheckbox":return".col-12";default:return".row"}}}),submitButton:new FormValidation.plugins.SubmitButton,defaultSubmit:new FormValidation.plugins.DefaultSubmit,autoFocus:new FormValidation.plugins.AutoFocus},init:e=>{e.on("plugins.message.placed",function(e){e.element.parentElement.classList.contains("input-group")&&e.element.parentElement.insertAdjacentElement("afterend",e.messageElement),e.element.parentElement.parentElement.classList.contains("custom-option")&&e.element.closest(".row").insertAdjacentElement("afterend",e.messageElement)})}});var n,a=document.querySelector('[name="formValidationDob"]');a&&a.flatpickr({enableTime:!1,dateFormat:"Y/m/d",onChange:function(){r.revalidateField("formValidationDob")}}),o.length&&(o.wrap('<div class="position-relative"></div>'),o.select2({placeholder:"Select country",dropdownParent:o.parent()}).on("change",function(){r.revalidateField("formValidationSelect2")})),isRtl&&(a=[].slice.call(document.querySelectorAll(".typeahead")))&&a.forEach(e=>{e.setAttribute("dir","rtl")}),i.typeahead({hint:!isRtl,highlight:!0,minLength:1},{name:"tech",source:(n=["ReactJS","Angular","VueJS","Html","Css","Sass","Pug","Gulp","Php","Laravel","Python","Bootstrap","Material Design","NodeJS"],function(e,a){var t=[],o=new RegExp(e,"i");$.each(n,function(e,a){o.test(a)&&t.push(a)}),a(t)})}),new Tagify(l),l.addEventListener("change",function(){r.revalidateField("formValidationLang")}),s.on("changed.bs.select",function(e,a,t,o){r.revalidateField("formValidationHobbies")})}});

View file

@ -0,0 +1 @@
"use strict";$(function(){var e=$(".select2"),t=$(".selectpicker");t.length&&t.selectpicker(),e.length&&e.each(function(){var e=$(this);e.wrap('<div class="position-relative"></div>'),e.select2({placeholder:"Select value",dropdownParent:e.parent()})})}),function(){var e=document.querySelector(".wizard-icons-example");if(null!==e){var t=[].slice.call(e.querySelectorAll(".btn-next")),l=[].slice.call(e.querySelectorAll(".btn-prev")),r=e.querySelector(".btn-submit");const c=new Stepper(e,{linear:!1});t&&t.forEach(e=>{e.addEventListener("click",e=>{c.next()})}),l&&l.forEach(e=>{e.addEventListener("click",e=>{c.previous()})}),r&&r.addEventListener("click",e=>{alert("Submitted..!!")})}e=document.querySelector(".wizard-vertical-icons-example");if(null!==e){t=[].slice.call(e.querySelectorAll(".btn-next")),l=[].slice.call(e.querySelectorAll(".btn-prev")),r=e.querySelector(".btn-submit");const n=new Stepper(e,{linear:!1});t&&t.forEach(e=>{e.addEventListener("click",e=>{n.next()})}),l&&l.forEach(e=>{e.addEventListener("click",e=>{n.previous()})}),r&&r.addEventListener("click",e=>{alert("Submitted..!!")})}e=document.querySelector(".wizard-modern-icons-example");if(null!==e){t=[].slice.call(e.querySelectorAll(".btn-next")),l=[].slice.call(e.querySelectorAll(".btn-prev")),r=e.querySelector(".btn-submit");const i=new Stepper(e,{linear:!1});t&&t.forEach(e=>{e.addEventListener("click",e=>{i.next()})}),l&&l.forEach(e=>{e.addEventListener("click",e=>{i.previous()})}),r&&r.addEventListener("click",e=>{alert("Submitted..!!")})}e=document.querySelector(".wizard-modern-vertical-icons-example");if(null!==e){t=[].slice.call(e.querySelectorAll(".btn-next")),l=[].slice.call(e.querySelectorAll(".btn-prev")),r=e.querySelector(".btn-submit");const a=new Stepper(e,{linear:!1});t&&t.forEach(e=>{e.addEventListener("click",e=>{a.next()})}),l&&l.forEach(e=>{e.addEventListener("click",e=>{a.previous()})}),r&&r.addEventListener("click",e=>{alert("Submitted..!!")})}}();

View file

@ -0,0 +1 @@
"use strict";$(function(){var e=$(".select2"),t=$(".selectpicker");t.length&&t.selectpicker(),e.length&&e.each(function(){var e=$(this);e.wrap('<div class="position-relative"></div>'),e.select2({placeholder:"Select value",dropdownParent:e.parent()})})}),function(){var e=document.querySelector(".wizard-numbered"),t=[].slice.call(e.querySelectorAll(".btn-next")),l=[].slice.call(e.querySelectorAll(".btn-prev")),r=e.querySelector(".btn-submit");if(null!==e){const c=new Stepper(e,{linear:!1});t&&t.forEach(e=>{e.addEventListener("click",e=>{c.next()})}),l&&l.forEach(e=>{e.addEventListener("click",e=>{c.previous()})}),r&&r.addEventListener("click",e=>{alert("Submitted..!!")})}e=document.querySelector(".wizard-vertical"),t=[].slice.call(e.querySelectorAll(".btn-next")),l=[].slice.call(e.querySelectorAll(".btn-prev")),r=e.querySelector(".btn-submit");if(null!==e){const n=new Stepper(e,{linear:!1});t&&t.forEach(e=>{e.addEventListener("click",e=>{n.next()})}),l&&l.forEach(e=>{e.addEventListener("click",e=>{n.previous()})}),r&&r.addEventListener("click",e=>{alert("Submitted..!!")})}e=document.querySelector(".wizard-modern-example"),t=[].slice.call(e.querySelectorAll(".btn-next")),l=[].slice.call(e.querySelectorAll(".btn-prev")),r=e.querySelector(".btn-submit");if(null!==e){const i=new Stepper(e,{linear:!1});t&&t.forEach(e=>{e.addEventListener("click",e=>{i.next()})}),l&&l.forEach(e=>{e.addEventListener("click",e=>{i.previous()})}),r&&r.addEventListener("click",e=>{alert("Submitted..!!")})}e=document.querySelector(".wizard-modern-vertical"),t=[].slice.call(e.querySelectorAll(".btn-next")),l=[].slice.call(e.querySelectorAll(".btn-prev")),r=e.querySelector(".btn-submit");if(null!==e){const a=new Stepper(e,{linear:!1});t&&t.forEach(e=>{e.addEventListener("click",e=>{a.next()})}),l&&l.forEach(e=>{e.addEventListener("click",e=>{a.previous()})}),r&&r.addEventListener("click",e=>{alert("Submitted..!!")})}}();

View file

@ -0,0 +1 @@
"use strict";!function(){var e=$(".select2"),a=$(".selectpicker"),i=document.querySelector("#wizard-validation");if(null!==i){var t=i.querySelector("#wizard-validation-form");const s=t.querySelector("#account-details-validation");var o=t.querySelector("#personal-info-validation"),n=t.querySelector("#social-links-validation"),r=[].slice.call(t.querySelectorAll(".btn-next")),t=[].slice.call(t.querySelectorAll(".btn-prev"));const l=new Stepper(i,{linear:!0}),d=FormValidation.formValidation(s,{fields:{formValidationUsername:{validators:{notEmpty:{message:"The name is required"},stringLength:{min:6,max:30,message:"The name must be more than 6 and less than 30 characters long"},regexp:{regexp:/^[a-zA-Z0-9 ]+$/,message:"The name can only consist of alphabetical, number and space"}}},formValidationEmail:{validators:{notEmpty:{message:"The Email is required"},emailAddress:{message:"The value is not a valid email address"}}},formValidationPass:{validators:{notEmpty:{message:"The password is required"}}},formValidationConfirmPass:{validators:{notEmpty:{message:"The Confirm Password is required"},identical:{compare:function(){return s.querySelector('[name="formValidationPass"]').value},message:"The password and its confirm are not the same"}}}},plugins:{trigger:new FormValidation.plugins.Trigger,bootstrap5:new FormValidation.plugins.Bootstrap5({eleValidClass:"",rowSelector:".col-sm-6"}),autoFocus:new FormValidation.plugins.AutoFocus,submitButton:new FormValidation.plugins.SubmitButton},init:e=>{e.on("plugins.message.placed",function(e){e.element.parentElement.classList.contains("input-group")&&e.element.parentElement.insertAdjacentElement("afterend",e.messageElement)})}}).on("core.form.valid",function(){l.next()}),m=FormValidation.formValidation(o,{fields:{formValidationFirstName:{validators:{notEmpty:{message:"The first name is required"}}},formValidationLastName:{validators:{notEmpty:{message:"The last name is required"}}},formValidationCountry:{validators:{notEmpty:{message:"The Country is required"}}},formValidationLanguage:{validators:{notEmpty:{message:"The Languages is required"}}}},plugins:{trigger:new FormValidation.plugins.Trigger,bootstrap5:new FormValidation.plugins.Bootstrap5({eleValidClass:"",rowSelector:".col-sm-6"}),autoFocus:new FormValidation.plugins.AutoFocus,submitButton:new FormValidation.plugins.SubmitButton}}).on("core.form.valid",function(){l.next()}),u=(a.length&&a.each(function(){$(this).selectpicker().on("change",function(){m.revalidateField("formValidationLanguage")})}),e.length&&e.each(function(){var e=$(this);e.wrap('<div class="position-relative"></div>'),e.select2({placeholder:"Select an country",dropdownParent:e.parent()}).on("change",function(){m.revalidateField("formValidationCountry")})}),FormValidation.formValidation(n,{fields:{formValidationTwitter:{validators:{notEmpty:{message:"The Twitter URL is required"},uri:{message:"The URL is not proper"}}},formValidationFacebook:{validators:{notEmpty:{message:"The Facebook URL is required"},uri:{message:"The URL is not proper"}}},formValidationGoogle:{validators:{notEmpty:{message:"The Google URL is required"},uri:{message:"The URL is not proper"}}},formValidationLinkedIn:{validators:{notEmpty:{message:"The LinkedIn URL is required"},uri:{message:"The URL is not proper"}}}},plugins:{trigger:new FormValidation.plugins.Trigger,bootstrap5:new FormValidation.plugins.Bootstrap5({eleValidClass:"",rowSelector:".col-sm-6"}),autoFocus:new FormValidation.plugins.AutoFocus,submitButton:new FormValidation.plugins.SubmitButton}}).on("core.form.valid",function(){alert("Submitted..!!")}));r.forEach(e=>{e.addEventListener("click",e=>{switch(l._currentIndex){case 0:d.validate();break;case 1:m.validate();break;case 2:u.validate()}})}),t.forEach(e=>{e.addEventListener("click",e=>{switch(l._currentIndex){case 2:case 1:l.previous()}})})}}();

View file

@ -0,0 +1 @@
"use strict";new Quill("#snow-editor",{bounds:"#snow-editor",modules:{formula:!0,toolbar:"#snow-toolbar"},theme:"snow"}),new Quill("#bubble-editor",{modules:{toolbar:"#bubble-toolbar"},theme:"bubble"}),new Quill("#full-editor",{bounds:"#full-editor",placeholder:"Type Something...",modules:{formula:!0,toolbar:[[{font:[]},{size:[]}],["bold","italic","underline","strike"],[{color:[]},{background:[]}],[{script:"super"},{script:"sub"}],[{header:"1"},{header:"2"},"blockquote","code-block"],[{list:"ordered"},{list:"bullet"},{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],["link","image","video","formula"],["clean"]]},theme:"snow"});

View file

@ -0,0 +1 @@
"use strict";!function(){var e=document.querySelector("#autosize-demo"),t=document.querySelector(".credit-card-mask"),r=document.querySelector(".phone-number-mask"),a=document.querySelector(".date-mask"),n=document.querySelector(".time-mask"),o=document.querySelector(".numeral-mask"),l=document.querySelector(".block-mask"),s=document.querySelector(".delimiter-mask"),c=document.querySelector(".custom-delimiter-mask"),i=document.querySelector(".prefix-mask");e&&autosize(e),t&&new Cleave(t,{creditCard:!0,onCreditCardTypeChanged:function(e){document.querySelector(".card-type").innerHTML=""!=e&&"unknown"!=e?'<img src="'+assetsPath+"img/icons/payments/"+e+'-cc.png" height="28"/>':""}}),r&&new Cleave(r,{phone:!0,phoneRegionCode:"US"}),a&&new Cleave(a,{date:!0,delimiter:"-",datePattern:["Y","m","d"]}),n&&new Cleave(n,{time:!0,timePattern:["h","m","s"]}),o&&new Cleave(o,{numeral:!0,numeralThousandsGroupStyle:"thousand"}),l&&new Cleave(l,{blocks:[4,3,3],uppercase:!0}),s&&new Cleave(s,{delimiter:"·",blocks:[3,3,3],uppercase:!0}),c&&new Cleave(c,{delimiters:[".",".","-"],blocks:[3,3,3,2],uppercase:!0}),i&&new Cleave(i,{prefix:"+63",blocks:[3,3,3,4],uppercase:!0})}(),$(function(){var n,o,e=$(".bootstrap-maxlength-example"),t=$(".form-repeater");e.length&&e.each(function(){$(this).maxlength({warningClass:"label label-success bg-success text-white",limitReachedClass:"label label-danger",separator:" out of ",preText:"You typed ",postText:" chars available.",validate:!0,threshold:+this.getAttribute("maxlength")})}),t.length&&(n=2,o=1,t.on("submit",function(e){e.preventDefault()}),t.repeater({show:function(){var r=$(this).find(".form-control, .form-select"),a=$(this).find(".form-label");r.each(function(e){var t="form-repeater-"+n+"-"+o;$(r[e]).attr("id",t),$(a[e]).attr("for",t),o++}),n++,$(this).slideDown()},hide:function(e){confirm("Are you sure you want to delete this element?")&&$(this).slideUp(e)}}))});

View file

@ -0,0 +1,16 @@
"use strict";!function(){var e=`<div class="dz-preview dz-file-preview">
<div class="dz-details">
<div class="dz-thumbnail">
<img data-dz-thumbnail>
<span class="dz-nopreview">No preview</span>
<div class="dz-success-mark"></div>
<div class="dz-error-mark"></div>
<div class="dz-error-message"><span data-dz-errormessage></span></div>
<div class="progress">
<div class="progress-bar progress-bar-primary" role="progressbar" aria-valuemin="0" aria-valuemax="100" data-dz-uploadprogress></div>
</div>
</div>
<div class="dz-filename" data-dz-name></div>
<div class="dz-size" data-dz-size></div>
</div>
</div>`,a=document.querySelector("#dropzone-basic"),a=(a&&new Dropzone(a,{previewTemplate:e,parallelUploads:1,maxFilesize:5,addRemoveLinks:!0,maxFiles:1}),document.querySelector("#dropzone-multi"));a&&new Dropzone(a,{previewTemplate:e,parallelUploads:1,maxFilesize:5,addRemoveLinks:!0})}();

View file

@ -0,0 +1 @@
"use strict";!function(){var e=document.querySelector("#flatpickr-date"),t=document.querySelector("#flatpickr-time"),a=document.querySelector("#flatpickr-datetime"),i=document.querySelector("#flatpickr-multi"),r=document.querySelector("#flatpickr-range"),n=document.querySelector("#flatpickr-inline"),o=document.querySelector("#flatpickr-human-friendly"),l=document.querySelector("#flatpickr-disabled-range");e&&e.flatpickr({monthSelectorType:"static"}),t&&t.flatpickr({enableTime:!0,noCalendar:!0}),a&&a.flatpickr({enableTime:!0,dateFormat:"Y-m-d H:i"}),i&&i.flatpickr({weekNumbers:!0,enableTime:!0,mode:"multiple",minDate:"today"}),null!=typeof r&&r.flatpickr({mode:"range"}),n&&n.flatpickr({inline:!0,allowInput:!1,monthSelectorType:"static"}),o&&o.flatpickr({altInput:!0,altFormat:"F j, Y",dateFormat:"Y-m-d"}),l&&(e=new Date(Date.now()-1728e5),t=new Date(Date.now()+1728e5),l.flatpickr({dateFormat:"Y-m-d",disable:[{from:e.toISOString().split("T")[0],to:t.toISOString().split("T")[0]}]}))}(),$(function(){var e=$("#bs-datepicker-basic"),t=$("#bs-datepicker-format"),a=$("#bs-datepicker-daterange"),i=$("#bs-datepicker-disabled-days"),r=$("#bs-datepicker-multidate"),n=$("#bs-datepicker-options"),o=$("#bs-datepicker-autoclose"),l=$("#bs-datepicker-inline"),e=(e.length&&e.datepicker({todayHighlight:!0,orientation:isRtl?"auto right":"auto left"}),t.length&&t.datepicker({todayHighlight:!0,format:"dd/mm/yyyy",orientation:isRtl?"auto right":"auto left"}),a.length&&a.datepicker({todayHighlight:!0,orientation:isRtl?"auto right":"auto left"}),i.length&&i.datepicker({todayHighlight:!0,daysOfWeekDisabled:[0,6],orientation:isRtl?"auto right":"auto left"}),r.length&&r.datepicker({multidate:!0,todayHighlight:!0,orientation:isRtl?"auto right":"auto left"}),n.length&&n.datepicker({calendarWeeks:!0,clearBtn:!0,todayHighlight:!0,orientation:isRtl?"auto left":"auto right"}),o.length&&o.datepicker({todayHighlight:!0,autoclose:!0,orientation:isRtl?"auto right":"auto left"}),l.length&&l.datepicker({todayHighlight:!0}),$("#bs-rangepicker-basic")),t=$("#bs-rangepicker-single"),a=$("#bs-rangepicker-time"),i=$("#bs-rangepicker-range"),r=$("#bs-rangepicker-week-num"),n=$("#bs-rangepicker-dropdown"),o=(e.length&&e.daterangepicker({opens:isRtl?"left":"right"}),t.length&&t.daterangepicker({singleDatePicker:!0,opens:isRtl?"left":"right"}),a.length&&a.daterangepicker({timePicker:!0,timePickerIncrement:30,locale:{format:"MM/DD/YYYY h:mm A"},opens:isRtl?"left":"right"}),i.length&&i.daterangepicker({ranges:{Today:[moment(),moment()],Yesterday:[moment().subtract(1,"days"),moment().subtract(1,"days")],"Last 7 Days":[moment().subtract(6,"days"),moment()],"Last 30 Days":[moment().subtract(29,"days"),moment()],"This Month":[moment().startOf("month"),moment().endOf("month")],"Last Month":[moment().subtract(1,"month").startOf("month"),moment().subtract(1,"month").endOf("month")]},opens:isRtl?"left":"right"}),r.length&&r.daterangepicker({showWeekNumbers:!0,opens:isRtl?"left":"right"}),n.length&&n.daterangepicker({showDropdowns:!0,opens:isRtl?"left":"right"}),$("#timepicker-basic")),l=$("#timepicker-min-max"),e=$("#timepicker-disabled-times"),t=$("#timepicker-format"),a=$("#timepicker-step"),i=$("#timepicker-24hours");o.length&&o.timepicker({orientation:isRtl?"r":"l"}),l.length&&l.timepicker({minTime:"2:00pm",maxTime:"7:00pm",showDuration:!0,orientation:isRtl?"r":"l"}),e.length&&e.timepicker({disableTimeRanges:[["12am","3am"],["4am","4:30am"]],orientation:isRtl?"r":"l"}),t.length&&t.timepicker({timeFormat:"H:i:s",orientation:isRtl?"r":"l"}),a.length&&a.timepicker({step:15,orientation:isRtl?"r":"l"}),i.length&&i.timepicker({show:"24:00",timeFormat:"H:i:s",orientation:isRtl?"r":"l"})}),function(){var e=document.querySelector("#color-picker-classic"),t=document.querySelector("#color-picker-monolith"),a=document.querySelector("#color-picker-nano");e&&pickr.create({el:e,theme:"classic",default:"rgba(102, 108, 232, 1)",swatches:["rgba(102, 108, 232, 1)","rgba(40, 208, 148, 1)","rgba(255, 73, 97, 1)","rgba(255, 145, 73, 1)","rgba(30, 159, 242, 1)"],components:{preview:!0,opacity:!0,hue:!0,interaction:{hex:!0,rgba:!0,hsla:!0,hsva:!0,cmyk:!0,input:!0,clear:!0,save:!0}}}),t&&pickr.create({el:t,theme:"monolith",default:"rgba(40, 208, 148, 1)",swatches:["rgba(102, 108, 232, 1)","rgba(40, 208, 148, 1)","rgba(255, 73, 97, 1)","rgba(255, 145, 73, 1)","rgba(30, 159, 242, 1)"],components:{preview:!0,opacity:!0,hue:!0,interaction:{hex:!0,rgba:!0,hsla:!0,hsva:!0,cmyk:!0,input:!0,clear:!0,save:!0}}}),a&&pickr.create({el:a,theme:"nano",default:"rgba(255, 73, 97, 1)",swatches:["rgba(102, 108, 232, 1)","rgba(40, 208, 148, 1)","rgba(255, 73, 97, 1)","rgba(255, 145, 73, 1)","rgba(30, 159, 242, 1)"],components:{preview:!0,opacity:!0,hue:!0,interaction:{hex:!0,rgba:!0,hsla:!0,hsva:!0,cmyk:!0,input:!0,clear:!0,save:!0}}})}();

View file

@ -0,0 +1 @@
"use strict";$(function(){var e=$(".selectpicker"),t=$(".select2"),n=$(".select2-icons");function i(e){return e.id?"<i class='"+$(e.element).data("icon")+" me-2'></i>"+e.text:e.text}e.length&&e.selectpicker(),t.length&&t.each(function(){var e=$(this);e.wrap('<div class="position-relative"></div>').select2({placeholder:"Select value",dropdownParent:e.parent()})}),n.length&&n.wrap('<div class="position-relative"></div>').select2({dropdownParent:n.parent(),templateResult:i,templateSelection:i,escapeMarkup:function(e){return e}})});

View file

@ -0,0 +1 @@
"use strict";!function(){var e=document.getElementById("slider-basic"),t=document.getElementById("slider-handles"),i=document.getElementById("slider-steps"),n=document.getElementById("slider-tap"),r=document.getElementById("slider-drag"),d=document.getElementById("slider-fixed-drag"),l=document.getElementById("slider-combined-options"),a=document.getElementById("slider-hover"),o=document.getElementById("slider-pips"),e=(e&&noUiSlider.create(e,{start:[50],connect:[!0,!1],direction:isRtl?"rtl":"ltr",range:{min:0,max:100}}),t&&noUiSlider.create(t,{start:[0,50],direction:isRtl?"rtl":"ltr",step:5,connect:!0,range:{min:0,max:100},pips:{mode:"range",density:5,stepped:!0}}),i&&noUiSlider.create(i,{start:[0,30],snap:!0,connect:!0,direction:isRtl?"rtl":"ltr",range:{min:0,"10%":10,"20%":20,"30%":30,"40%":40,"50%":50,max:100}}),n&&noUiSlider.create(n,{start:[10,30],behaviour:"tap",direction:isRtl?"rtl":"ltr",connect:!0,range:{min:10,max:100}}),r&&noUiSlider.create(r,{start:[40,60],limit:20,behaviour:"drag",direction:isRtl?"rtl":"ltr",connect:!0,range:{min:20,max:80}}),d&&noUiSlider.create(d,{start:[40,60],behaviour:"drag-fixed",direction:isRtl?"rtl":"ltr",connect:!0,range:{min:20,max:80}}),l&&noUiSlider.create(l,{start:[40,60],behaviour:"drag-tap",direction:isRtl?"rtl":"ltr",connect:!0,range:{min:20,max:80}}),a&&(noUiSlider.create(a,{start:20,behaviour:"hover-snap-tap",direction:isRtl?"rtl":"ltr",range:{min:0,max:100}}),a.noUiSlider.on("hover",function(e){document.getElementById("slider-val").innerHTML=e})),o&&noUiSlider.create(o,{start:[10],behaviour:"tap-drag",step:10,tooltips:!0,range:{min:0,max:100},pips:{mode:"steps",stepped:!0,density:5},direction:isRtl?"rtl":"ltr"}),document.getElementById("slider-primary")),t=document.getElementById("slider-success"),i=document.getElementById("slider-danger"),n=document.getElementById("slider-info"),r=document.getElementById("slider-warning"),d={start:[30,50],connect:!0,behaviour:"tap-drag",step:10,tooltips:!0,range:{min:0,max:100},pips:{mode:"steps",stepped:!0,density:5},direction:isRtl?"rtl":"ltr"};e&&noUiSlider.create(e,d),t&&noUiSlider.create(t,d),i&&noUiSlider.create(i,d),n&&noUiSlider.create(n,d),r&&noUiSlider.create(r,d);const c=document.getElementById("slider-dynamic"),s=document.getElementById("slider-select"),m=document.getElementById("slider-input");if(c&&(noUiSlider.create(c,{start:[10,30],connect:!0,direction:isRtl?"rtl":"ltr",range:{min:-20,max:40}}),c.noUiSlider.on("update",function(e,t){e=e[t];t?m.value=e:s.value=Math.round(e)})),s){for(let e=-20;e<=40;e++){var g=document.createElement("option");g.text=e,g.value=e,s.appendChild(g)}s.addEventListener("change",function(){c.noUiSlider.set([this.value,null])})}m&&m.addEventListener("change",function(){c.noUiSlider.set([null,this.value])});l=document.getElementById("slider-vertical"),a=document.getElementById("slider-connect-upper"),o=document.getElementById("slider-vertical-tooltip"),e=document.getElementById("slider-vertical-limit");l&&(l.style.height="200px",noUiSlider.create(l,{start:[40,60],orientation:"vertical",behaviour:"drag",connect:!0,range:{min:0,max:100}})),a&&(a.style.height="200px",noUiSlider.create(a,{start:40,orientation:"vertical",behaviour:"drag",connect:"upper",range:{min:0,max:100}})),o&&(o.style.height="200px",noUiSlider.create(o,{start:10,orientation:"vertical",behaviour:"drag",tooltips:!0,range:{min:0,max:100}})),e&&(e.style.height="200px",noUiSlider.create(e,{start:[0,40],orientation:"vertical",behaviour:"drag",limit:60,tooltips:!0,connect:!0,range:{min:0,max:100}}))}();

View file

@ -0,0 +1,34 @@
"use strict";!function(){var a=document.querySelector("#TagifyBasic"),a=(new Tagify(a),document.querySelector("#TagifyReadonly")),a=(new Tagify(a),document.querySelector("#TagifyCustomInlineSuggestion")),e=document.querySelector("#TagifyCustomListSuggestion"),t=["A# .NET","A# (Axiom)","A-0 System","A+","A++","ABAP","ABC","ABC ALGOL","ABSET","ABSYS","ACC","Accent","Ace DASL","ACL2","Avicsoft","ACT-III","Action!","ActionScript","Ada","Adenine","Agda","Agilent VEE","Agora","AIMMS","Alef","ALF","ALGOL 58","ALGOL 60","ALGOL 68","ALGOL W","Alice","Alma-0","AmbientTalk","Amiga E","AMOS","AMPL","Apex (Salesforce.com)","APL","AppleScript","Arc","ARexx","Argus","AspectJ","Assembly language","ATS","Ateji PX","AutoHotkey","Autocoder","AutoIt","AutoLISP / Visual LISP","Averest","AWK","Axum","Active Server Pages","ASP.NET"],a=(new Tagify(a,{whitelist:t,maxTags:10,dropdown:{maxItems:20,classname:"tags-inline",enabled:0,closeOnSelect:!1}}),new Tagify(e,{whitelist:t,maxTags:10,dropdown:{maxItems:20,classname:"",enabled:0,closeOnSelect:!1}}),document.querySelector("#TagifyUserList"));let i=new Tagify(a,{tagTextProp:"name",enforceWhitelist:!0,skipInvalid:!0,dropdown:{closeOnSelect:!1,enabled:0,classname:"users-list",searchKeys:["name","email"]},templates:{tag:function(a){return`
<tag title="${a.title||a.email}"
contenteditable='false'
spellcheck='false'
tabIndex="-1"
class="${this.settings.classNames.tag} ${a.class||""}"
${this.getAttributes(a)}
>
<x title='' class='tagify__tag__removeBtn' role='button' aria-label='remove tag'></x>
<div>
<div class='tagify__tag__avatar-wrap'>
<img onerror="this.style.visibility='hidden'" src="${a.avatar}">
</div>
<span class='tagify__tag-text'>${a.name}</span>
</div>
</tag>
`},dropdownItem:function(a){return`
<div ${this.getAttributes(a)}
class='tagify__dropdown__item align-items-center ${a.class||""}'
tabindex="0"
role="option"
>
${a.avatar?`<div class='tagify__dropdown__item__avatar-wrap'>
<img onerror="this.style.visibility='hidden'" src="${a.avatar}">
</div>`:""}
<div class="fw-medium">${a.name}</div>
<span>${a.email}</span>
</div>
`},dropdownHeader:function(a){return`
<div class="${this.settings.classNames.dropdownItem} ${this.settings.classNames.dropdownItem}__addAll">
<strong>${this.value.length?"Add remaning":"Add All"}</strong>
<span>${a.length} members</span>
</div>
`}},whitelist:[{value:1,name:"Justinian Hattersley",avatar:"https://i.pravatar.cc/80?img=1",email:"jhattersley0@ucsd.edu"},{value:2,name:"Antons Esson",avatar:"https://i.pravatar.cc/80?img=2",email:"aesson1@ning.com"},{value:3,name:"Ardeen Batisse",avatar:"https://i.pravatar.cc/80?img=3",email:"abatisse2@nih.gov"},{value:4,name:"Graeme Yellowley",avatar:"https://i.pravatar.cc/80?img=4",email:"gyellowley3@behance.net"},{value:5,name:"Dido Wilford",avatar:"https://i.pravatar.cc/80?img=5",email:"dwilford4@jugem.jp"},{value:6,name:"Celesta Orwin",avatar:"https://i.pravatar.cc/80?img=6",email:"corwin5@meetup.com"},{value:7,name:"Sally Main",avatar:"https://i.pravatar.cc/80?img=7",email:"smain6@techcrunch.com"},{value:8,name:"Grethel Haysman",avatar:"https://i.pravatar.cc/80?img=8",email:"ghaysman7@mashable.com"},{value:9,name:"Marvin Mandrake",avatar:"https://i.pravatar.cc/80?img=9",email:"mmandrake8@sourceforge.net"},{value:10,name:"Corrie Tidey",avatar:"https://i.pravatar.cc/80?img=10",email:"ctidey9@youtube.com"}]});i.on("dropdown:select",function(a){a.detail.elm.classList.contains(i.settings.classNames.dropdownItem+"__addAll")&&i.dropdown.selectAll()}).on("edit:start",function({detail:{tag:a,data:e}}){i.setTagTextNode(a,`${e.name} <${e.email}>`)});e=Array.apply(null,Array(100)).map(function(){return Array.apply(null,Array(~~(10*Math.random()+3))).map(function(){return String.fromCharCode(26*Math.random()+97)}).join("")+"@gmail.com"});const n=document.querySelector("#TagifyEmailList"),s=new Tagify(n,{pattern:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,whitelist:e,callbacks:{invalid:function(a){console.log("invalid",a.detail)}},dropdown:{position:"text",enabled:1}}),l=n.nextElementSibling;l.addEventListener("click",function(){s.addEmptyTag()})}();

View file

@ -0,0 +1 @@
"use strict";$(function(){var o,e=["Alabama","Alaska","Arizona","Arkansas","California","Colorado","Connecticut","Delaware","Florida","Georgia","Hawaii","Idaho","Illinois","Indiana","Iowa","Kansas","Kentucky","Louisiana","Maine","Maryland","Massachusetts","Michigan","Minnesota","Mississippi","Missouri","Montana","Nebraska","Nevada","New Hampshire","New Jersey","New Mexico","New York","North Carolina","North Dakota","Ohio","Oklahoma","Oregon","Pennsylvania","Rhode Island","South Carolina","South Dakota","Tennessee","Texas","Utah","Vermont","Virginia","Washington","West Virginia","Wisconsin","Wyoming"],e=(isRtl&&$(".typeahead").attr("dir","rtl"),$(".typeahead").typeahead({hint:!isRtl,highlight:!0,minLength:1},{name:"states",source:(o=e,function(e,a){var t=[],s=new RegExp(e,"i");$.each(o,function(e,a){s.test(a)&&t.push(a)}),a(t)})}),new Bloodhound({datumTokenizer:Bloodhound.tokenizers.whitespace,queryTokenizer:Bloodhound.tokenizers.whitespace,local:e})),t=($(".typeahead-bloodhound").typeahead({hint:!isRtl,highlight:!0,minLength:1},{name:"states",source:e}),new Bloodhound({datumTokenizer:Bloodhound.tokenizers.whitespace,queryTokenizer:Bloodhound.tokenizers.whitespace,prefetch:assetsPath+"json/typeahead.json"}));$(".typeahead-prefetch").typeahead({hint:!isRtl,highlight:!0,minLength:1},{name:"states",source:t}),$(".typeahead-default-suggestions").typeahead({hint:!isRtl,highlight:!0,minLength:0},{name:"states",source:function(e,a){""===e?a(t.get("Alaska","New York","Washington")):t.search(e,a)}});var e=new Bloodhound({datumTokenizer:Bloodhound.tokenizers.obj.whitespace("value"),queryTokenizer:Bloodhound.tokenizers.whitespace,prefetch:assetsPath+"json/typeahead-data-2.json"}),e=($(".typeahead-custom-template").typeahead(null,{name:"best-movies",display:"value",source:e,highlight:!0,hint:!isRtl,templates:{empty:['<div class="empty-message p-2">',"unable to find any Best Picture winners that match the current query","</div>"].join("\n"),suggestion:function(e){return'<div><span class="fw-medium">'+e.value+"</span> "+e.year+"</div>"}}}),new Bloodhound({datumTokenizer:Bloodhound.tokenizers.obj.whitespace("team"),queryTokenizer:Bloodhound.tokenizers.whitespace,local:[{team:"Boston Celtics"},{team:"Dallas Mavericks"},{team:"Brooklyn Nets"},{team:"Houston Rockets"},{team:"New York Knicks"},{team:"Memphis Grizzlies"},{team:"Philadelphia 76ers"},{team:"New Orleans Hornets"},{team:"Toronto Raptors"},{team:"San Antonio Spurs"},{team:"Chicago Bulls"},{team:"Denver Nuggets"},{team:"Cleveland Cavaliers"},{team:"Minnesota Timberwolves"},{team:"Detroit Pistons"},{team:"Portland Trail Blazers"},{team:"Indiana Pacers"},{team:"Oklahoma City Thunder"},{team:"Milwaukee Bucks"},{team:"Utah Jazz"},{team:"Atlanta Hawks"},{team:"Golden State Warriors"},{team:"Charlotte Bobcats"},{team:"Los Angeles Clippers"},{team:"Miami Heat"},{team:"Los Angeles Lakers"},{team:"Orlando Magic"},{team:"Phoenix Suns"},{team:"Washington Wizards"},{team:"Sacramento Kings"}]})),a=new Bloodhound({datumTokenizer:Bloodhound.tokenizers.obj.whitespace("team"),queryTokenizer:Bloodhound.tokenizers.whitespace,local:[{team:"New Jersey Devils"},{team:"New York Islanders"},{team:"New York Rangers"},{team:"Philadelphia Flyers"},{team:"Pittsburgh Penguins"},{team:"Chicago Blackhawks"},{team:"Columbus Blue Jackets"},{team:"Detroit Red Wings"},{team:"Nashville Predators"},{team:"St. Louis Blues"},{team:"Boston Bruins"},{team:"Buffalo Sabres"},{team:"Montreal Canadiens"},{team:"Ottawa Senators"},{team:"Toronto Maple Leafs"},{team:"Calgary Flames"},{team:"Colorado Avalanche"},{team:"Edmonton Oilers"},{team:"Minnesota Wild"},{team:"Vancouver Canucks"},{team:"Carolina Hurricanes"},{team:"Florida Panthers"},{team:"Tampa Bay Lightning"},{team:"Washington Capitals"},{team:"Winnipeg Jets"},{team:"Anaheim Ducks"},{team:"Dallas Stars"},{team:"Los Angeles Kings"},{team:"Phoenix Coyotes"},{team:"San Jose Sharks"}]});$(".typeahead-multi-datasets").typeahead({hint:!isRtl,highlight:!0,minLength:0},{name:"nba-teams",source:e,display:"team",templates:{header:'<h4 class="league-name border-bottom mb-0 mx-3 mt-3 pb-2">NBA Teams</h4>'}},{name:"nhl-teams",source:a,display:"team",templates:{header:'<h4 class="league-name border-bottom mb-0 mx-3 mt-3 pb-2">NHL Teams</h4>'}})});

View file

@ -0,0 +1 @@
"use strict";window.assetsPath=document.documentElement.getAttribute("data-assets-path"),window.templateName=document.documentElement.getAttribute("data-template"),window.rtlSupport=!0,"undefined"!=typeof TemplateCustomizer&&(window.templateCustomizer=new TemplateCustomizer({cssPath:assetsPath+"vendor/css"+(rtlSupport?"/rtl":"")+"/",themesPath:assetsPath+"vendor/css"+(rtlSupport?"/rtl":"")+"/",displayCustomizer:!0,controls:["rtl","style"]}));

View file

@ -0,0 +1 @@
"use strict";window.isRtl=window.Helpers.isRtl(),window.isDarkStyle=window.Helpers.isDarkStyle(),function(){const t=document.getElementById("navbarSupportedContent"),o=document.querySelector(".layout-navbar"),e=document.querySelectorAll(".navbar-nav .nav-link");function a(){t.classList.remove("show")}setTimeout(function(){window.Helpers.initCustomOptionCheck()},1e3),[].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]')).map(function(e){return new bootstrap.Tooltip(e)}),isRtl&&Helpers._addClass("dropdown-menu-end",document.querySelectorAll("#layout-navbar .dropdown-menu")),window.addEventListener("scroll",e=>{10<window.scrollY?o.classList.add("navbar-active"):o.classList.remove("navbar-active")}),window.addEventListener("load",e=>{10<window.scrollY?o.classList.add("navbar-active"):o.classList.remove("navbar-active")}),document.addEventListener("click",function(e){t.contains(e.target)||a()}),e.forEach(t=>{t.addEventListener("click",e=>{t.classList.contains("dropdown-toggle")?e.preventDefault():a()})}),isRtl&&Helpers._addClass("dropdown-menu-end",document.querySelectorAll(".dropdown-menu"));var l,n=document.querySelectorAll(".nav-link.mega-dropdown"),n=(n&&n.forEach(e=>{new MegaDropdown(e)}),document.querySelector(".dropdown-style-switcher")),s=localStorage.getItem("templateCustomizer-"+templateName+"--Style")||(window.templateCustomizer?.settings?.defaultStyle??"light");window.templateCustomizer&&n&&([].slice.call(n.children[1].querySelectorAll(".dropdown-item")).forEach(function(e){e.addEventListener("click",function(){var e=this.getAttribute("data-theme");"light"===e?window.templateCustomizer.setStyle("light"):"dark"===e?window.templateCustomizer.setStyle("dark"):window.templateCustomizer.setStyle("system")})}),n=n.querySelector("i"),"light"===s?(n.classList.add("bx-sun"),new bootstrap.Tooltip(n,{title:"Light Mode",fallbackPlacements:["bottom"]})):"dark"===s?(n.classList.add("bx-moon"),new bootstrap.Tooltip(n,{title:"Dark Mode",fallbackPlacements:["bottom"]})):(n.classList.add("bx-desktop"),new bootstrap.Tooltip(n,{title:"System Mode",fallbackPlacements:["bottom"]}))),"system"===(l=s)&&(l=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),[].slice.call(document.querySelectorAll("[data-app-"+l+"-img]")).map(function(e){var t=e.getAttribute("data-app-"+l+"-img");e.src=assetsPath+"img/"+t})}();

View file

@ -0,0 +1 @@
"use strict";!function(){const e=document.querySelector(".layout-navbar"),t=document.getElementById("hero-animation"),n=document.querySelectorAll(".hero-dashboard-img"),o=document.querySelectorAll(".hero-elements-img"),r=document.getElementById("swiper-clients-logos"),i=document.getElementById("swiper-reviews"),s=document.getElementById("reviews-previous-btn"),a=document.getElementById("reviews-next-btn"),c=document.querySelector(".swiper-button-prev"),l=document.querySelector(".swiper-button-next"),d=document.querySelector(".price-duration-toggler"),u=[].slice.call(document.querySelectorAll(".price-monthly")),m=[].slice.call(document.querySelectorAll(".price-yearly"));"1200"<=screen.width&&t&&(t.addEventListener("mousemove",function(r){o.forEach(e=>{e.style.transform="translateZ(1rem)"}),n.forEach(e=>{var t=(window.innerWidth-2*r.pageX)/100,n=(window.innerHeight-2*r.pageY)/100;e.style.transform=`perspective(1200px) rotateX(${n}deg) rotateY(${t}deg) scale3d(1, 1, 1)`})}),e.addEventListener("mousemove",function(r){o.forEach(e=>{e.style.transform="translateZ(1rem)"}),n.forEach(e=>{var t=(window.innerWidth-2*r.pageX)/100,n=(window.innerHeight-2*r.pageY)/100;e.style.transform=`perspective(1200px) rotateX(${n}deg) rotateY(${t}deg) scale3d(1, 1, 1)`})}),t.addEventListener("mouseout",function(){o.forEach(e=>{e.style.transform="translateZ(0)"}),n.forEach(e=>{e.style.transform="perspective(1200px) scale(1) rotateX(0) rotateY(0)"})})),i&&new Swiper(i,{slidesPerView:1,spaceBetween:5,grabCursor:!0,autoplay:{delay:3e3,disableOnInteraction:!1},loop:!0,loopAdditionalSlides:1,navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},breakpoints:{1200:{slidesPerView:3,spaceBetween:26},992:{slidesPerView:2,spaceBetween:20}}}),a.addEventListener("click",function(){l.click()}),s.addEventListener("click",function(){c.click()}),r&&new Swiper(r,{slidesPerView:2,autoplay:{delay:3e3,disableOnInteraction:!1},breakpoints:{992:{slidesPerView:5},768:{slidesPerView:3}}}),document.addEventListener("DOMContentLoaded",function(e){function t(){d.checked?(m.map(function(e){e.classList.remove("d-none")}),u.map(function(e){e.classList.add("d-none")})):(m.map(function(e){e.classList.add("d-none")}),u.map(function(e){e.classList.remove("d-none")}))}t(),d.onchange=function(){t()}})}();

View file

@ -0,0 +1 @@
"use strict";!function(){var e=document.querySelector(".billings-zip-code"),n=document.querySelector(".billing-card-mask"),t=document.querySelector(".billing-expiry-date-mask"),r=document.querySelector(".billing-cvv-mask"),c=document.querySelectorAll(".form-check-input-payment");e&&new Cleave(e,{delimiter:"",numeral:!0}),n&&new Cleave(n,{creditCard:!0,onCreditCardTypeChanged:function(e){document.querySelector(".card-type").innerHTML=""!=e&&"unknown"!=e?'<img src="'+assetsPath+"img/icons/payments/"+e+'-cc.png" height="28"/>':""}}),t&&new Cleave(t,{date:!0,delimiter:"/",datePattern:["m","y"]}),r&&new Cleave(r,{numeral:!0,numeralPositiveOnly:!0}),c&&c.forEach(function(e){e.addEventListener("change",function(e){"credit-card"===e.target.value?document.querySelector("#form-credit-card").classList.remove("d-none"):document.querySelector("#form-credit-card").classList.add("d-none")})})}();

View file

@ -0,0 +1 @@
"use strict";document.addEventListener("DOMContentLoaded",function(e){{const c=document.querySelector(".price-duration-toggler"),t=[].slice.call(document.querySelectorAll(".price-monthly")),o=[].slice.call(document.querySelectorAll(".price-yearly"));function n(){c.checked?(o.map(function(e){e.classList.remove("d-none")}),t.map(function(e){e.classList.add("d-none")})):(o.map(function(e){e.classList.add("d-none")}),t.map(function(e){e.classList.remove("d-none")}))}n(),c.onchange=function(){n()}}});

1
static/assets/js/main.js Normal file

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1 @@
"use strict";$(function(){var e=$(".select2");e.length&&e.each(function(){var e=$(this);e.wrap('<div class="position-relative"></div>').select2({placeholder:"Select value",dropdownParent:e.parent()})})}),document.addEventListener("DOMContentLoaded",function(){document.getElementById("addNewAddress").addEventListener("show.bs.modal",function(e){window.Helpers.initCustomOptionCheck()}),FormValidation.formValidation(document.getElementById("addNewAddressForm"),{fields:{modalAddressFirstName:{validators:{notEmpty:{message:"Please enter your first name"},regexp:{regexp:/^[a-zA-Zs]+$/,message:"The first name can only consist of alphabetical"}}},modalAddressLastName:{validators:{notEmpty:{message:"Please enter your last name"},regexp:{regexp:/^[a-zA-Zs]+$/,message:"The last name can only consist of alphabetical"}}}},plugins:{trigger:new FormValidation.plugins.Trigger,bootstrap5:new FormValidation.plugins.Bootstrap5({eleValidClass:"",rowSelector:".col-12"}),submitButton:new FormValidation.plugins.SubmitButton,autoFocus:new FormValidation.plugins.AutoFocus}})});

View file

@ -0,0 +1 @@
"use strict";document.addEventListener("DOMContentLoaded",function(e){{const n=document.querySelector(".credit-card-mask"),a=document.querySelector(".expiry-date-mask"),o=document.querySelector(".cvv-code-mask"),r=document.querySelector(".btn-reset");let t;document.getElementById("addNewCCModal").addEventListener("show.bs.modal",function(e){n&&(t=new Cleave(n,{creditCard:!0,onCreditCardTypeChanged:function(e){document.querySelector(".card-type").innerHTML=""!=e&&"unknown"!=e?'<img src="'+assetsPath+"img/icons/payments/"+e+'-cc.png" class="cc-icon-image" height="28"/>':""}}))}),a&&new Cleave(a,{date:!0,delimiter:"/",datePattern:["m","y"]}),o&&new Cleave(o,{numeral:!0,numeralPositiveOnly:!0}),FormValidation.formValidation(document.getElementById("addNewCCForm"),{fields:{modalAddCard:{validators:{notEmpty:{message:"Please enter your credit card number"}}}},plugins:{trigger:new FormValidation.plugins.Trigger,bootstrap5:new FormValidation.plugins.Bootstrap5({eleValidClass:"",rowSelector:".col-12"}),submitButton:new FormValidation.plugins.SubmitButton,autoFocus:new FormValidation.plugins.AutoFocus},init:e=>{e.on("plugins.message.placed",function(e){e.element.parentElement.classList.contains("input-group")&&e.element.parentElement.insertAdjacentElement("afterend",e.messageElement)})}}).on("plugins.message.displayed",function(e){e.element.parentElement.classList.contains("input-group")&&e.element.parentElement.insertAdjacentElement("afterend",e.messageElement.parentElement)}),r.addEventListener("click",function(e){document.querySelector(".card-type").innerHTML="",t.destroy()})}});

View file

@ -0,0 +1 @@
"use strict";document.addEventListener("DOMContentLoaded",function(o){FormValidation.formValidation(document.getElementById("addPermissionForm"),{fields:{modalPermissionName:{validators:{notEmpty:{message:"Please enter permission name"}}}},plugins:{trigger:new FormValidation.plugins.Trigger,bootstrap5:new FormValidation.plugins.Bootstrap5({eleValidClass:"",rowSelector:".col-12"}),submitButton:new FormValidation.plugins.SubmitButton,autoFocus:new FormValidation.plugins.AutoFocus}})});

View file

@ -0,0 +1 @@
"use strict";document.addEventListener("DOMContentLoaded",function(e){{FormValidation.formValidation(document.getElementById("addRoleForm"),{fields:{modalRoleName:{validators:{notEmpty:{message:"Please enter role name"}}}},plugins:{trigger:new FormValidation.plugins.Trigger,bootstrap5:new FormValidation.plugins.Bootstrap5({eleValidClass:"",rowSelector:".col-12"}),submitButton:new FormValidation.plugins.SubmitButton,autoFocus:new FormValidation.plugins.AutoFocus}});const t=document.querySelector("#selectAll"),o=document.querySelectorAll('[type="checkbox"]');t.addEventListener("change",t=>{o.forEach(e=>{e.checked=t.target.checked})})}});

View file

@ -0,0 +1 @@
"use strict";$(function(){var e=document.getElementById("createApp");const t=document.querySelector(".app-credit-card-mask"),n=document.querySelector(".app-expiry-date-mask"),c=document.querySelector(".app-cvv-code-mask");let r;function l(){t&&(r=new Cleave(t,{creditCard:!0,onCreditCardTypeChanged:function(e){document.querySelector(".app-card-type").innerHTML=""!=e&&"unknown"!=e?'<img src="'+assetsPath+"img/icons/payments/"+e+'-cc.png" class="cc-icon-image" height="28"/>':""}}))}n&&new Cleave(n,{date:!0,delimiter:"/",datePattern:["m","y"]}),c&&new Cleave(c,{numeral:!0,numeralPositiveOnly:!0}),e.addEventListener("show.bs.modal",function(e){var t=document.querySelector("#wizard-create-app");if(null!==t){var n=[].slice.call(t.querySelectorAll(".btn-next")),c=[].slice.call(t.querySelectorAll(".btn-prev")),r=t.querySelector(".btn-submit");const a=new Stepper(t,{linear:!1});n&&n.forEach(e=>{e.addEventListener("click",e=>{a.next(),l()})}),c&&c.forEach(e=>{e.addEventListener("click",e=>{a.previous(),l()})}),r&&r.addEventListener("click",e=>{alert("Submitted..!!")})}})});

View file

@ -0,0 +1 @@
"use strict";document.addEventListener("DOMContentLoaded",function(e){var t,n,a;t=document.querySelector(".credit-card-mask-edit"),n=document.querySelector(".expiry-date-mask-edit"),a=document.querySelector(".cvv-code-mask-edit"),t&&new Cleave(t,{creditCard:!0,onCreditCardTypeChanged:function(e){document.querySelector(".card-type-edit").innerHTML=""!=e&&"unknown"!=e?'<img src="'+assetsPath+"img/icons/payments/"+e+'-cc.png" height="28"/>':""}}),n&&new Cleave(n,{date:!0,delimiter:"/",datePattern:["m","y"]}),a&&new Cleave(a,{numeral:!0,numeralPositiveOnly:!0}),FormValidation.formValidation(document.getElementById("editCCForm"),{fields:{modalEditCard:{validators:{notEmpty:{message:"Please enter your credit card number"}}}},plugins:{trigger:new FormValidation.plugins.Trigger,bootstrap5:new FormValidation.plugins.Bootstrap5({eleValidClass:"",rowSelector:".col-12"}),submitButton:new FormValidation.plugins.SubmitButton,autoFocus:new FormValidation.plugins.AutoFocus},init:e=>{e.on("plugins.message.placed",function(e){e.element.parentElement.classList.contains("input-group")&&e.element.parentElement.insertAdjacentElement("afterend",e.messageElement)})}})});

View file

@ -0,0 +1 @@
"use strict";document.addEventListener("DOMContentLoaded",function(t){FormValidation.formValidation(document.getElementById("editPermissionForm"),{fields:{editPermissionName:{validators:{notEmpty:{message:"Please enter permission name"}}}},plugins:{trigger:new FormValidation.plugins.Trigger,bootstrap5:new FormValidation.plugins.Bootstrap5({eleValidClass:"",rowSelector:".col-sm-9"}),submitButton:new FormValidation.plugins.SubmitButton,autoFocus:new FormValidation.plugins.AutoFocus}})});

View file

@ -0,0 +1 @@
"use strict";$(function(){var e=$(".select2");e.length&&e.each(function(){var e=$(this);e.wrap('<div class="position-relative"></div>').select2({placeholder:"Select value",dropdownParent:e.parent()})})}),document.addEventListener("DOMContentLoaded",function(e){var a,t;a=document.querySelector(".modal-edit-tax-id"),t=document.querySelector(".phone-number-mask"),a&&new Cleave(a,{prefix:"TIN",blocks:[3,3,3,4],uppercase:!0}),t&&new Cleave(t,{phone:!0,phoneRegionCode:"US"}),FormValidation.formValidation(document.getElementById("editUserForm"),{fields:{modalEditUserFirstName:{validators:{notEmpty:{message:"Please enter your first name"},regexp:{regexp:/^[a-zA-Zs]+$/,message:"The first name can only consist of alphabetical"}}},modalEditUserLastName:{validators:{notEmpty:{message:"Please enter your last name"},regexp:{regexp:/^[a-zA-Zs]+$/,message:"The last name can only consist of alphabetical"}}},modalEditUserName:{validators:{notEmpty:{message:"Please enter your username"},stringLength:{min:6,max:30,message:"The name must be more than 6 and less than 30 characters long"},regexp:{regexp:/^[a-zA-Z0-9 ]+$/,message:"The name can only consist of alphabetical, number and space"}}}},plugins:{trigger:new FormValidation.plugins.Trigger,bootstrap5:new FormValidation.plugins.Bootstrap5({eleValidClass:"",rowSelector:".col-12"}),submitButton:new FormValidation.plugins.SubmitButton,autoFocus:new FormValidation.plugins.AutoFocus}})});

View file

@ -0,0 +1 @@
"use strict";document.addEventListener("DOMContentLoaded",function(e){var n;(n=document.querySelector(".phone-number-otp-mask"))&&new Cleave(n,{phone:!0,phoneRegionCode:"US"}),FormValidation.formValidation(document.getElementById("enableOTPForm"),{fields:{modalEnableOTPPhone:{validators:{notEmpty:{message:"Please enter your mobile number"}}}},plugins:{trigger:new FormValidation.plugins.Trigger,bootstrap5:new FormValidation.plugins.Bootstrap5({eleValidClass:"",rowSelector:".col-12"}),submitButton:new FormValidation.plugins.SubmitButton,autoFocus:new FormValidation.plugins.AutoFocus},init:e=>{e.on("plugins.message.placed",function(e){e.element.parentElement.classList.contains("input-group")&&e.element.parentElement.insertAdjacentElement("afterend",e.messageElement)})}})});

View file

@ -0,0 +1 @@
"use strict";$(function(){const a=$(".share-project-select");var s=document.getElementById("shareProject");s.addEventListener("show.bs.modal",function(e){function t(e){return e.id?'<div class="d-flex align-items-center"><div class="avatar avatar-xs me-2 d-flex"><img src="'+assetsPath+$(e.element).data("image")+'" class="rounded-circle"></div><div class="name">'+$(e.element).data("name")+"</div></div>":e.text}a.length&&a.wrap('<div class="position-relative"></div>').select2({dropdownParent:s,templateResult:t,templateSelection:t,placeholder:"Add Project Members",escapeMarkup:function(e){return e}})})});

View file

@ -0,0 +1 @@
"use strict";document.addEventListener("DOMContentLoaded",function(e){var n;(n=document.querySelectorAll("#twoFactorAuthInputSms"))&&n.forEach(function(e){new Cleave(e,{phone:!0,phoneRegionCode:"US"})})});

View file

@ -0,0 +1 @@
"use strict";!function(){var e=document.querySelector(".invoice-amount");e&&new Cleave(e,{numeral:!0});const t=new Date,c=document.querySelectorAll(".invoice-date");c&&c.forEach(function(e){e.flatpickr({monthSelectorType:"static",defaultDate:t})})}();

View file

@ -0,0 +1 @@
"use strict";!function(){var e=document.querySelector("#invoice-message"),t=e.textContent.replace(/^\s+|\s+$/gm,"");e.value=t}();

View file

@ -0,0 +1 @@
"use strict";document.addEventListener("DOMContentLoaded",function(e){{const o=document.querySelector("#formAccountSettings"),a=document.querySelector("#formAccountDeactivation"),i=a.querySelector(".deactivate-account"),s=(o&&FormValidation.formValidation(o,{fields:{firstName:{validators:{notEmpty:{message:"Please enter first name"}}},lastName:{validators:{notEmpty:{message:"Please enter last name"}}}},plugins:{trigger:new FormValidation.plugins.Trigger,bootstrap5:new FormValidation.plugins.Bootstrap5({eleValidClass:"",rowSelector:".col-md-6"}),submitButton:new FormValidation.plugins.SubmitButton,autoFocus:new FormValidation.plugins.AutoFocus},init:e=>{e.on("plugins.message.placed",function(e){e.element.parentElement.classList.contains("input-group")&&e.element.parentElement.insertAdjacentElement("afterend",e.messageElement)})}}),a&&FormValidation.formValidation(a,{fields:{accountActivation:{validators:{notEmpty:{message:"Please confirm you want to delete account"}}}},plugins:{trigger:new FormValidation.plugins.Trigger,bootstrap5:new FormValidation.plugins.Bootstrap5({eleValidClass:""}),submitButton:new FormValidation.plugins.SubmitButton,fieldStatus:new FormValidation.plugins.FieldStatus({onStatusChanged:function(e){e?i.removeAttribute("disabled"):i.setAttribute("disabled","disabled")}}),autoFocus:new FormValidation.plugins.AutoFocus},init:e=>{e.on("plugins.message.placed",function(e){e.element.parentElement.classList.contains("input-group")&&e.element.parentElement.insertAdjacentElement("afterend",e.messageElement)})}}),document.querySelector("#accountActivation"));i&&(i.onclick=function(){1==s.checked&&Swal.fire({text:"Are you sure you would like to deactivate your account?",icon:"warning",showCancelButton:!0,confirmButtonText:"Yes",customClass:{confirmButton:"btn btn-primary me-2",cancelButton:"btn btn-label-secondary"},buttonsStyling:!1}).then(function(e){e.value?Swal.fire({icon:"success",title:"Deleted!",text:"Your file has been deleted.",customClass:{confirmButton:"btn btn-success"}}):e.dismiss===Swal.DismissReason.cancel&&Swal.fire({title:"Cancelled",text:"Deactivation Cancelled!!",icon:"error",customClass:{confirmButton:"btn btn-success"}})})});var t=document.querySelector("#phoneNumber"),n=document.querySelector("#zipCode");t&&new Cleave(t,{phone:!0,phoneRegionCode:"US"}),n&&new Cleave(n,{delimiter:"",numeral:!0});let e=document.getElementById("uploadedAvatar");const l=document.querySelector(".account-file-input"),c=document.querySelector(".account-image-reset");if(e){const r=e.src;l.onchange=()=>{l.files[0]&&(e.src=window.URL.createObjectURL(l.files[0]))},c.onclick=()=>{l.value="",e.src=r}}}}),$(function(){var e=$(".select2");e.length&&e.each(function(){var e=$(this);e.wrap('<div class="position-relative"></div>'),e.select2({dropdownParent:e.parent()})})});

View file

@ -0,0 +1 @@
"use strict";document.addEventListener("DOMContentLoaded",function(e){var t,n,o,i;t=document.querySelector(".credit-card-mask"),n=document.querySelector(".expiry-date-mask"),o=document.querySelector(".cvv-code-mask"),t&&new Cleave(t,{creditCard:!0,onCreditCardTypeChanged:function(e){document.querySelector(".card-type").innerHTML=""!=e&&"unknown"!=e?'<img src="'+assetsPath+"img/icons/payments/"+e+'-cc.png" height="28"/>':""}}),n&&new Cleave(n,{date:!0,delimiter:"/",datePattern:["m","y"]}),o&&new Cleave(o,{numeral:!0,numeralPositiveOnly:!0}),t=document.getElementById("formAccountSettings"),n=document.querySelector(".mobile-number"),o=document.querySelector(".zip-code"),i=document.getElementById("creditCardForm"),t&&FormValidation.formValidation(t,{fields:{companyName:{validators:{notEmpty:{message:"Please enter company name"}}},billingEmail:{validators:{notEmpty:{message:"Please enter billing email"},emailAddress:{message:"Please enter valid email address"}}}},plugins:{trigger:new FormValidation.plugins.Trigger,bootstrap5:new FormValidation.plugins.Bootstrap5({eleValidClass:"",rowSelector:".col-sm-6"}),submitButton:new FormValidation.plugins.SubmitButton,autoFocus:new FormValidation.plugins.AutoFocus}}),i&&FormValidation.formValidation(i,{fields:{paymentCard:{validators:{notEmpty:{message:"Please enter your credit card number"}}}},plugins:{trigger:new FormValidation.plugins.Trigger,bootstrap5:new FormValidation.plugins.Bootstrap5({eleValidClass:""}),submitButton:new FormValidation.plugins.SubmitButton,autoFocus:new FormValidation.plugins.AutoFocus},init:e=>{e.on("plugins.message.placed",function(e){e.element.parentElement.classList.contains("input-group")&&e.element.parentElement.insertAdjacentElement("afterend",e.messageElement)})}}),(t=document.querySelector(".cancel-subscription"))&&(t.onclick=function(){Swal.fire({text:"Are you sure you would like to cancel your subscription?",icon:"warning",showCancelButton:!0,confirmButtonText:"Yes",customClass:{confirmButton:"btn btn-primary me-2",cancelButton:"btn btn-label-secondary"},buttonsStyling:!1}).then(function(e){e.value?Swal.fire({icon:"success",title:"Unsubscribed!",text:"Your subscription cancelled successfully.",customClass:{confirmButton:"btn btn-success"}}):e.dismiss===Swal.DismissReason.cancel&&Swal.fire({title:"Cancelled",text:"Unsubscription Cancelled!!",icon:"error",customClass:{confirmButton:"btn btn-success"}})})}),n&&new Cleave(n,{phone:!0,phoneRegionCode:"US"}),o&&new Cleave(o,{delimiter:"",numeral:!0})}),$(function(){var e=$(".select2");e.length&&e.each(function(){var e=$(this);e.wrap('<div class="position-relative"></div>'),e.select2({dropdownParent:e.parent()})})});

View file

@ -0,0 +1 @@
"use strict";document.addEventListener("DOMContentLoaded",function(e){{const t=document.querySelector("#formAccountSettings"),n=document.querySelector("#formAccountSettingsApiKey");t&&FormValidation.formValidation(t,{fields:{currentPassword:{validators:{notEmpty:{message:"Please current password"},stringLength:{min:8,message:"Password must be more than 8 characters"}}},newPassword:{validators:{notEmpty:{message:"Please enter new password"},stringLength:{min:8,message:"Password must be more than 8 characters"}}},confirmPassword:{validators:{notEmpty:{message:"Please confirm new password"},identical:{compare:function(){return t.querySelector('[name="newPassword"]').value},message:"The password and its confirm are not the same"},stringLength:{min:8,message:"Password must be more than 8 characters"}}}},plugins:{trigger:new FormValidation.plugins.Trigger,bootstrap5:new FormValidation.plugins.Bootstrap5({eleValidClass:"",rowSelector:".col-md-6"}),submitButton:new FormValidation.plugins.SubmitButton,autoFocus:new FormValidation.plugins.AutoFocus},init:e=>{e.on("plugins.message.placed",function(e){e.element.parentElement.classList.contains("input-group")&&e.element.parentElement.insertAdjacentElement("afterend",e.messageElement)})}}),n&&FormValidation.formValidation(n,{fields:{apiKey:{validators:{notEmpty:{message:"Please enter API key name"}}}},plugins:{trigger:new FormValidation.plugins.Trigger,bootstrap5:new FormValidation.plugins.Bootstrap5({eleValidClass:""}),submitButton:new FormValidation.plugins.SubmitButton,autoFocus:new FormValidation.plugins.AutoFocus},init:e=>{e.on("plugins.message.placed",function(e){e.element.parentElement.classList.contains("input-group")&&e.element.parentElement.insertAdjacentElement("afterend",e.messageElement)})}})}}),$(function(){var e=$(".select2");e.length&&e.each(function(){var e=$(this);e.wrap('<div class="position-relative"></div>'),e.select2({dropdownParent:e.parent()})})});

View file

@ -0,0 +1 @@
"use strict";$(function(){var e=$(".select2");e.length&&e.each(function(){var e=$(this);e.wrap('<div class="position-relative"></div>'),e.select2({placeholder:"Select an country",dropdownParent:e.parent()})})}),document.addEventListener("DOMContentLoaded",function(e){var n=document.querySelector("#multiStepsValidation");if(null!==n){var a=n.querySelector("#multiStepsForm");const c=a.querySelector("#accountDetailsValidation");var i=a.querySelector("#personalInfoValidation"),s=a.querySelector("#billingLinksValidation"),r=[].slice.call(a.querySelectorAll(".btn-next")),a=[].slice.call(a.querySelectorAll(".btn-prev")),o=document.querySelector(".multi-steps-exp-date"),l=document.querySelector(".multi-steps-cvv"),m=document.querySelector(".multi-steps-mobile"),u=document.querySelector(".multi-steps-pincode"),d=document.querySelector(".multi-steps-card");o&&new Cleave(o,{date:!0,delimiter:"/",datePattern:["m","y"]}),l&&new Cleave(l,{numeral:!0,numeralPositiveOnly:!0}),m&&new Cleave(m,{phone:!0,phoneRegionCode:"US"}),u&&new Cleave(u,{delimiter:"",numeral:!0}),d&&new Cleave(d,{creditCard:!0,onCreditCardTypeChanged:function(e){document.querySelector(".card-type").innerHTML=""!=e&&"unknown"!=e?'<img src="'+assetsPath+"img/icons/payments/"+e+'-cc.png" height="28"/>':""}});let t=new Stepper(n,{linear:!0});const p=FormValidation.formValidation(c,{fields:{multiStepsUsername:{validators:{notEmpty:{message:"Please enter username"},stringLength:{min:6,max:30,message:"The name must be more than 6 and less than 30 characters long"},regexp:{regexp:/^[a-zA-Z0-9 ]+$/,message:"The name can only consist of alphabetical, number and space"}}},multiStepsEmail:{validators:{notEmpty:{message:"Please enter email address"},emailAddress:{message:"The value is not a valid email address"}}},multiStepsPass:{validators:{notEmpty:{message:"Please enter password"}}},multiStepsConfirmPass:{validators:{notEmpty:{message:"Confirm Password is required"},identical:{compare:function(){return c.querySelector('[name="multiStepsPass"]').value},message:"The password and its confirm are not the same"}}}},plugins:{trigger:new FormValidation.plugins.Trigger,bootstrap5:new FormValidation.plugins.Bootstrap5({eleValidClass:"",rowSelector:".col-sm-6"}),autoFocus:new FormValidation.plugins.AutoFocus,submitButton:new FormValidation.plugins.SubmitButton},init:e=>{e.on("plugins.message.placed",function(e){e.element.parentElement.classList.contains("input-group")&&e.element.parentElement.insertAdjacentElement("afterend",e.messageElement)})}}).on("core.form.valid",function(){t.next()}),g=FormValidation.formValidation(i,{fields:{multiStepsFirstName:{validators:{notEmpty:{message:"Please enter first name"}}},multiStepsAddress:{validators:{notEmpty:{message:"Please enter your address"}}}},plugins:{trigger:new FormValidation.plugins.Trigger,bootstrap5:new FormValidation.plugins.Bootstrap5({eleValidClass:"",rowSelector:function(e,t){switch(e){case"multiStepsFirstName":return".col-sm-6";case"multiStepsAddress":return".col-md-12";default:return".row"}}}),autoFocus:new FormValidation.plugins.AutoFocus,submitButton:new FormValidation.plugins.SubmitButton}}).on("core.form.valid",function(){t.next()}),v=FormValidation.formValidation(s,{fields:{multiStepsCard:{validators:{notEmpty:{message:"Please enter card number"}}}},plugins:{trigger:new FormValidation.plugins.Trigger,bootstrap5:new FormValidation.plugins.Bootstrap5({eleValidClass:"",rowSelector:function(e,t){return"multiStepsCard"!==e?".col-dm-6":".col-md-12"}}),autoFocus:new FormValidation.plugins.AutoFocus,submitButton:new FormValidation.plugins.SubmitButton},init:e=>{e.on("plugins.message.placed",function(e){e.element.parentElement.classList.contains("input-group")&&e.element.parentElement.insertAdjacentElement("afterend",e.messageElement)})}}).on("core.form.valid",function(){alert("Submitted..!!")});r.forEach(e=>{e.addEventListener("click",e=>{switch(t._currentIndex){case 0:p.validate();break;case 1:g.validate();break;case 2:v.validate()}})}),a.forEach(e=>{e.addEventListener("click",e=>{switch(t._currentIndex){case 2:case 1:t.previous()}})})}});

View file

@ -0,0 +1 @@
"use strict";document.addEventListener("DOMContentLoaded",function(e){{for(let t of document.querySelector(".numeral-mask-wrapper").children)t.onkeyup=function(e){/^\d$/.test(e.key)?t.nextElementSibling&&this.value.length===parseInt(this.attributes.maxlength.value)&&t.nextElementSibling.focus():"Backspace"===e.key&&t.previousElementSibling&&t.previousElementSibling.focus()},t.onkeypress=function(e){"-"===e.key&&e.preventDefault()};const o=document.querySelector("#twoStepsForm");if(o){FormValidation.formValidation(o,{fields:{otp:{validators:{notEmpty:{message:"Please enter otp"}}}},plugins:{trigger:new FormValidation.plugins.Trigger,bootstrap5:new FormValidation.plugins.Bootstrap5({eleValidClass:"",rowSelector:".mb-3"}),submitButton:new FormValidation.plugins.SubmitButton,defaultSubmit:new FormValidation.plugins.DefaultSubmit,autoFocus:new FormValidation.plugins.AutoFocus}});const i=o.querySelectorAll(".numeral-mask"),t=function(){let t=!0,n="";i.forEach(e=>{""===e.value&&(t=!1,o.querySelector('[name="otp"]').value=""),n+=e.value}),t&&(o.querySelector('[name="otp"]').value=n)};i.forEach(e=>{e.addEventListener("keyup",t)})}}});

View file

@ -0,0 +1 @@
"use strict";const formAuthentication=document.querySelector("#formAuthentication");document.addEventListener("DOMContentLoaded",function(e){var t;formAuthentication&&FormValidation.formValidation(formAuthentication,{fields:{username:{validators:{notEmpty:{message:"Please enter username"},stringLength:{min:6,message:"Username must be more than 6 characters"}}},email:{validators:{notEmpty:{message:"Please enter your email"},emailAddress:{message:"Please enter valid email address"}}},"email-username":{validators:{notEmpty:{message:"Please enter email / username"},stringLength:{min:6,message:"Username must be more than 6 characters"}}},password:{validators:{notEmpty:{message:"Please enter your password"},stringLength:{min:6,message:"Password must be more than 6 characters"}}},"confirm-password":{validators:{notEmpty:{message:"Please confirm password"},identical:{compare:function(){return formAuthentication.querySelector('[name="password"]').value},message:"The password and its confirm are not the same"},stringLength:{min:6,message:"Password must be more than 6 characters"}}},terms:{validators:{notEmpty:{message:"Please agree terms & conditions"}}}},plugins:{trigger:new FormValidation.plugins.Trigger,bootstrap5:new FormValidation.plugins.Bootstrap5({eleValidClass:"",rowSelector:".mb-3"}),submitButton:new FormValidation.plugins.SubmitButton,defaultSubmit:new FormValidation.plugins.DefaultSubmit,autoFocus:new FormValidation.plugins.AutoFocus},init:e=>{e.on("plugins.message.placed",function(e){e.element.parentElement.classList.contains("input-group")&&e.element.parentElement.insertAdjacentElement("afterend",e.messageElement)})}}),(t=document.querySelectorAll(".numeral-mask")).length&&t.forEach(e=>{new Cleave(e,{numeral:!0})})});

View file

@ -0,0 +1 @@
"use strict";document.addEventListener("DOMContentLoaded",function(e){{const c=document.querySelector(".price-duration-toggler"),t=[].slice.call(document.querySelectorAll(".price-monthly")),o=[].slice.call(document.querySelectorAll(".price-yearly"));function n(){c.checked?(o.map(function(e){e.classList.remove("d-none")}),t.map(function(e){e.classList.add("d-none")})):(o.map(function(e){e.classList.add("d-none")}),t.map(function(e){e.classList.remove("d-none")}))}n(),c.onchange=function(){n()}}});

View file

@ -0,0 +1 @@
"use strict";document.addEventListener("DOMContentLoaded",function(e){{const c=document.querySelector(".price-duration-toggler"),t=[].slice.call(document.querySelectorAll(".price-monthly")),o=[].slice.call(document.querySelectorAll(".price-yearly"));function n(){c.checked?(o.map(function(e){e.classList.remove("d-none")}),t.map(function(e){e.classList.add("d-none")})):(o.map(function(e){e.classList.add("d-none")}),t.map(function(e){e.classList.remove("d-none")}))}n(),c.onchange=function(){n()}}});

View file

@ -0,0 +1,238 @@
// Persian language file for DataTables
$.extend(true, $.fn.dataTable.defaults, {
language: {
"emptyTable": "هیچ داده‌ای در جدول موجود نیست",
"info": "نمایش _START_ تا _END_ از _TOTAL_ رکورد",
"infoEmpty": "نمایش 0 تا 0 از 0 رکورد",
"infoFiltered": "(فیلتر شده از _MAX_ رکورد کل)",
"infoPostFix": "",
"thousands": ",",
"lengthMenu": "نمایش _MENU_ رکورد",
"loadingRecords": "در حال بارگذاری...",
"processing": "در حال پردازش...",
"search": "جستجو:",
"zeroRecords": "هیچ رکوردی یافت نشد",
"paginate": {
"first": "ابتدا",
"last": "انتها",
"next": "بعدی",
"previous": "قبلی"
},
"aria": {
"sortAscending": ": فعال‌سازی نمایش به صورت صعودی",
"sortDescending": ": فعال‌سازی نمایش به صورت نزولی"
},
"decimal": ".",
"searchBuilder": {
"add": "افزودن شرط",
"button": {
"_": "جستجوی پیشرفته (%d)",
"0": "جستجوی پیشرفته"
},
"clearAll": "پاک کردن همه",
"condition": "شرط",
"conditions": {
"date": {
"after": "بعد از",
"before": "قبل از",
"between": "بین",
"empty": "خالی",
"equals": "برابر با",
"not": "نباشد",
"notBetween": "بین نباشد",
"notEmpty": "خالی نباشد"
},
"number": {
"between": "بین",
"empty": "خالی",
"equals": "برابر با",
"gt": "بزرگتر از",
"gte": "بزرگتر یا برابر با",
"lt": "کوچکتر از",
"lte": "کوچکتر یا برابر با",
"not": "نباشد",
"notBetween": "بین نباشد",
"notEmpty": "خالی نباشد"
},
"string": {
"contains": "شامل",
"empty": "خالی",
"endsWith": "پایان با",
"equals": "برابر با",
"not": "نباشد",
"notEmpty": "خالی نباشد",
"startsWith": "شروع با"
},
"array": {
"contains": "شامل",
"empty": "خالی",
"equals": "برابر با",
"not": "نباشد",
"notEmpty": "خالی نباشد",
"without": "بدون"
}
},
"data": "داده",
"deleteTitle": "حذف شرط",
"leftTitle": "شرط‌های سمت چپ",
"logicAnd": "و",
"logicOr": "یا",
"rightTitle": "شرط‌های سمت راست",
"title": {
"_": "جستجوی پیشرفته (%d)",
"0": "جستجوی پیشرفته"
},
"value": "مقدار"
},
"searchPanes": {
"clearMessage": "پاک کردن همه",
"collapse": {
"_": "جستجوی پیشرفته (%d)",
"0": "جستجوی پیشرفته"
},
"count": "{total}",
"countFiltered": "{shown} از {total}",
"emptyPanes": "هیچ صفحه جستجویی وجود ندارد",
"loadMessage": "در حال بارگذاری صفحات جستجو...",
"title": "فیلترهای فعال - %d"
},
"select": {
"cells": {
"_": "%d سلول انتخاب شده",
"1": "1 سلول انتخاب شده"
},
"columns": {
"_": "%d ستون انتخاب شده",
"1": "1 ستون انتخاب شده"
},
"rows": {
"_": "%d ردیف انتخاب شده",
"1": "1 ردیف انتخاب شده"
}
},
"buttons": {
"copy": "کپی",
"copyKeys": "برای کپی کردن کلید <i>ctrl</i> یا <i>\u2318</i> + <i>C</i> را فشار دهید.<br><br>برای لغو، این پیام را کلیک کنید یا کلید <i>escape</i> را فشار دهید.",
"copySuccess": {
"_": "%d ردیف کپی شد",
"1": "1 ردیف کپی شد"
},
"copyTitle": "کپی به کلیپ‌بورد",
"csv": "CSV",
"excel": "Excel",
"pageLength": {
"_": "نمایش %d ردیف",
"-1": "نمایش همه ردیف‌ها"
},
"pdf": "PDF",
"print": "چاپ",
"colvis": "نمایش ستون‌ها",
"colvisRestore": "بازگردانی نمایش",
"updateState": "به‌روزرسانی",
"stateRestore": "حالت %d"
},
"autoFill": {
"cancel": "لغو",
"fill": "پر کردن همه سلول‌ها با <i>%d</i>",
"fillHorizontal": "پر کردن سلول‌ها به صورت افقی",
"fillVertical": "پر کردن سلول‌ها به صورت عمودی"
},
"datetime": {
"previous": "قبلی",
"next": "بعدی",
"hours": "ساعت",
"minutes": "دقیقه",
"seconds": "ثانیه",
"unknown": "-",
"amPm": [
"ص",
"ع"
],
"weekdays": [
"یکشنبه",
"دوشنبه",
"سه‌شنبه",
"چهارشنبه",
"پنج‌شنبه",
"جمعه",
"شنبه"
],
"months": [
"فروردین",
"اردیبهشت",
"خرداد",
"تیر",
"مرداد",
"شهریور",
"مهر",
"آبان",
"آذر",
"دی",
"بهمن",
"اسفند"
]
},
"editor": {
"close": "بستن",
"create": {
"button": "جدید",
"submit": "ایجاد",
"title": "ایجاد رکورد جدید"
},
"edit": {
"button": "ویرایش",
"submit": "به‌روزرسانی",
"title": "ویرایش رکورد"
},
"error": {
"system": "خطای سیستمی رخ داده است (<a target=\"\\\"_blank\\\" href=\"\\\"//datatables.net/error\\\">جزئیات بیشتر</a>)."
},
"multi": {
"info": "ردیف‌های انتخاب شده دارای مقادیر متفاوتی برای این فیلد هستند. برای ویرایش همه ردیف‌ها برای این فیلد با مقدار <em>%d</em>، کلیک کنید یا برای لغو کلیک کنید.",
"noMulti": "این فیلد را می‌توان به صورت جداگانه ویرایش کرد، اما بخشی از گروه ویرایش نیست.",
"restore": "لغو تغییرات",
"title": "مقادیر متعدد انتخاب شده"
},
"remove": {
"button": "حذف",
"confirm": {
"_": "آیا از حذف %d ردیف اطمینان دارید؟",
"1": "آیا از حذف 1 ردیف اطمینان دارید؟"
},
"submit": "حذف",
"title": "حذف رکورد"
}
},
"stateRestore": {
"creationModal": {
"button": "ایجاد",
"cancel": "لغو",
"columns": {
"_": "ستون %d",
"1": "ستون"
},
"name": "نام:",
"order": "ترتیب:",
"paging": "صفحه‌بندی",
"scroller": "موقعیت اسکرول",
"search": "جستجو",
"searchBuilder": "جستجوی پیشرفته",
"select": "انتخاب",
"title": "ایجاد حالت جدید",
"toggleLabel": "شامل:"
},
"duplicateError": "حالتی با این نام قبلاً وجود دارد.",
"emptyError": "نام نمی‌تواند خالی باشد.",
"emptyStates": "هیچ حالتی ذخیره نشده است",
"removeConfirm": "آیا از حذف %s اطمینان دارید؟",
"removeError": "خطا در حذف حالت.",
"removeJoiner": "و",
"removeSubmit": "حذف",
"removeTitle": "حذف حالت",
"renameButton": "تغییر نام",
"renameLabel": "نام جدید برای %s:",
"duplicateButton": "تکرار",
"duplicateLabel": "حالت موجود:"
}
}
});

View file

@ -0,0 +1 @@
"use strict";$(function(){var t=$(".datatables-ajax"),a=$(".dt-column-search"),n=$(".dt-advanced-search"),e=$(".dt-responsive"),d=$(".start_date"),c=$(".end_date"),o=$(".flatpickr-range");function l(t,a){var e,l,o,s,r;5==t?(e=d.val(),l=c.val(),""!==e&&""!==l&&($.fn.dataTableExt.afnFiltering.length=0,n.dataTable().fnDraw(),o=t,s=e,r=l,$.fn.dataTableExt.afnFiltering.push(function(t,a,e){var a=i(a[o]),l=i(s),n=i(r);return l<=a&&a<=n||l<=a&&""===n&&""!==l||a<=n&&""===l&&""!==n})),n.dataTable().fnDraw()):n.DataTable().column(t).search(a,!1,!0).draw()}o.length&&o.flatpickr({mode:"range",dateFormat:"m/d/Y",orientation:isRtl?"auto right":"auto left",locale:{format:"MM/DD/YYYY"},onClose:function(t,a,e){var l;new Date;null!=t[0]&&(l=moment(t[0]).format("MM/DD/YYYY"),d.val(l)),null!=t[1]&&(l=moment(t[1]).format("MM/DD/YYYY"),c.val(l)),$(o).trigger("change").trigger("keyup")}}),$.fn.dataTableExt.afnFiltering.length=0;var s,i=function(t){t=new Date(t);return t.getFullYear()+""+("0"+(t.getMonth()+1)).slice(-2)+("0"+t.getDate()).slice(-2)};t.length&&t.dataTable({processing:!0,ajax:assetsPath+"json/ajax.php",dom:'<"row"<"col-sm-12 col-md-6"l><"col-sm-12 col-md-6 d-flex justify-content-center justify-content-md-end"f>><"table-responsive"t><"row"<"col-sm-12 col-md-6"i><"col-sm-12 col-md-6"p>>'}),a.length&&($(".dt-column-search thead tr").clone(!0).appendTo(".dt-column-search thead"),$(".dt-column-search thead tr:eq(1) th").each(function(t){var a=$(this).text(),a=$('<input type="text" class="form-control" placeholder="Search '+a+'" />');$(this).css("border-left","none"),t===$(".dt-column-search thead tr:eq(1) th").length-1&&$(this).css("border-right","none"),$(this).html(a),$("input",this).on("keyup change",function(){s.column(t).search()!==this.value&&s.column(t).search(this.value).draw()})}),s=a.DataTable({ajax:assetsPath+"json/table-datatable.json",columns:[{data:"full_name"},{data:"email"},{data:"post"},{data:"city"},{data:"start_date"},{data:"salary"}],orderCellsTop:!0,dom:'<"row"<"col-sm-12 col-md-6"l><"col-sm-12 col-md-6 d-flex justify-content-center justify-content-md-end"f>><"table-responsive"t><"row"<"col-sm-12 col-md-6"i><"col-sm-12 col-md-6"p>>'})),n.length&&n.DataTable({dom:"<'row'<'col-sm-12'tr>><'row'<'col-sm-12 col-md-6'i><'col-sm-12 col-md-6 dataTables_pager'p>>",ajax:assetsPath+"json/table-datatable.json",columns:[{data:""},{data:"full_name"},{data:"email"},{data:"post"},{data:"city"},{data:"start_date"},{data:"salary"}],columnDefs:[{className:"control",orderable:!1,targets:0,render:function(t,a,e,l){return""}}],orderCellsTop:!0,responsive:{details:{display:$.fn.dataTable.Responsive.display.modal({header:function(t){return"Details of "+t.data().full_name}}),type:"column",renderer:function(t,a,e){e=$.map(e,function(t,a){return""!==t.title?'<tr data-dt-row="'+t.rowIndex+'" data-dt-column="'+t.columnIndex+'"><td>'+t.title+":</td> <td>"+t.data+"</td></tr>":""}).join("");return!!e&&$('<table class="table"/><tbody />').append(e)}}}}),$("input.dt-input").on("keyup",function(){l($(this).attr("data-column"),$(this).val())}),e.length&&e.DataTable({ajax:assetsPath+"json/table-datatable.json",columns:[{data:""},{data:"full_name"},{data:"email"},{data:"post"},{data:"city"},{data:"start_date"},{data:"salary"},{data:"age"},{data:"experience"},{data:"status"}],columnDefs:[{className:"control",orderable:!1,targets:0,searchable:!1,render:function(t,a,e,l){return""}},{targets:-1,render:function(t,a,e,l){var e=e.status,n={1:{title:"Current",class:"bg-label-primary"},2:{title:"Professional",class:" bg-label-success"},3:{title:"Rejected",class:" bg-label-danger"},4:{title:"Resigned",class:" bg-label-warning"},5:{title:"Applied",class:" bg-label-info"}};return void 0===n[e]?t:'<span class="badge rounded-pill '+n[e].class+'">'+n[e].title+"</span>"}}],destroy:!0,dom:'<"row"<"col-sm-12 col-md-6"l><"col-sm-12 col-md-6 d-flex justify-content-center justify-content-md-end"f>>t<"row"<"col-sm-12 col-md-6"i><"col-sm-12 col-md-6"p>>',responsive:{details:{display:$.fn.dataTable.Responsive.display.modal({header:function(t){return"Details of "+t.data().full_name}}),type:"column",renderer:function(t,a,e){e=$.map(e,function(t,a){return""!==t.title?'<tr data-dt-row="'+t.rowIndex+'" data-dt-column="'+t.columnIndex+'"><td>'+t.title+":</td> <td>"+t.data+"</td></tr>":""}).join("");return!!e&&$('<table class="table"/><tbody />').append(e)}}}}),setTimeout(()=>{$(".dataTables_filter .form-control").removeClass("form-control-sm"),$(".dataTables_length .form-select").removeClass("form-select-sm")},200)});

View file

@ -0,0 +1,321 @@
"use strict";
let fv, offCanvasEl;
document.addEventListener("DOMContentLoaded", function (e) {
var t;
t = document.getElementById("form-add-new-record"), setTimeout(() => {
const e = document.querySelector(".create-new"), t = document.querySelector("#add-new-record");
e && e.addEventListener("click", function () {
offCanvasEl = new bootstrap.Offcanvas(t), t.querySelector(".dt-full-name").value = "", t.querySelector(".dt-post").value = "", t.querySelector(".dt-email").value = "", t.querySelector(".dt-date").value = "", t.querySelector(".dt-salary").value = "", offCanvasEl.show()
})
}, 200), fv = FormValidation.formValidation(t, {
fields: {
basicFullname: {validators: {notEmpty: {message: "The name is required"}}},
basicPost: {validators: {notEmpty: {message: "Post field is required"}}},
basicEmail: {
validators: {
notEmpty: {message: "The Email is required"},
emailAddress: {message: "The value is not a valid email address"}
}
},
basicDate: {
validators: {
notEmpty: {message: "Joining Date is required"},
date: {format: "MM/DD/YYYY", message: "The value is not a valid date"}
}
},
basicSalary: {validators: {notEmpty: {message: "Basic Salary is required"}}}
},
plugins: {
trigger: new FormValidation.plugins.Trigger,
bootstrap5: new FormValidation.plugins.Bootstrap5({eleValidClass: "", rowSelector: ".col-sm-12"}),
submitButton: new FormValidation.plugins.SubmitButton,
autoFocus: new FormValidation.plugins.AutoFocus
},
init: e => {
e.on("plugins.message.placed", function (e) {
e.element.parentElement.classList.contains("input-group") && e.element.parentElement.insertAdjacentElement("afterend", e.messageElement)
})
}
}), (t = document.querySelector('[name="basicDate"]')) && t.flatpickr({
enableTime: !1, dateFormat: "m/d/Y", onChange: function () {
fv.revalidateField("basicDate")
}
})
}), $(function () {
var l, t, e = $(".datatables-basic"), a = $(".dt-complex-header"), s = $(".dt-row-grouping"), n = $(".dt-multilingual"),
r = (e.length && (l = e.DataTable({
ajax: assetsPath + "json/table-datatable.json",
columns: [{data: ""}, {data: "id"}, {data: "id"}, {data: "full_name"}, {data: "email"}, {data: "start_date"}, {data: "salary"}, {data: "status"}, {data: ""}],
columnDefs: [{
className: "control",
orderable: !1,
searchable: !1,
responsivePriority: 2,
targets: 0,
render: function (e, t, a, s) {
return ""
}
}, {
targets: 1,
orderable: !1,
searchable: !1,
responsivePriority: 3,
checkboxes: !0,
checkboxes: {selectAllRender: '<input type="checkbox" class="form-check-input">'},
render: function () {
return '<input type="checkbox" class="dt-checkboxes form-check-input">'
}
}, {targets: 2, searchable: !1, visible: !1}, {
targets: 3, responsivePriority: 4, render: function (e, t, a, s) {
var n = a.avatar, l = a.full_name, r = a.post;
return '<div class="d-flex justify-content-start align-items-center user-name"><div class="avatar-wrapper"><div class="avatar me-2">' + (n ? '<img src="' + assetsPath + "img/avatars/" + n + '" alt="Avatar" class="rounded-circle">' : '<span class="avatar-initial rounded-circle bg-label-' + ["success", "danger", "warning", "info", "dark", "primary", "secondary"][Math.floor(6 * Math.random())] + '">' + (n = (((n = (l = a.full_name).match(/\b\w/g) || []).shift() || "") + (n.pop() || "")).toUpperCase()) + "</span>") + '</div></div><div class="d-flex flex-column"><span class="emp_name text-truncate">' + l + '</span><small class="emp_post text-truncate text-muted">' + r + "</small></div></div>"
}
}, {responsivePriority: 1, targets: 4}, {
targets: -2, render: function (e, t, a, s) {
var a = a.status, n = {
1: {title: "Current", class: "bg-label-primary"},
2: {title: "Professional", class: " bg-label-success"},
3: {title: "Rejected", class: " bg-label-danger"},
4: {title: "Resigned", class: " bg-label-warning"},
5: {title: "Applied", class: " bg-label-info"}
};
return void 0 === n[a] ? e : '<span class="badge ' + n[a].class + '">' + n[a].title + "</span>"
}
}, {
targets: -1, title: "Actions", orderable: !1, searchable: !1, render: function (e, t, a, s) {
return '<div class="d-inline-block"><a href="javascript:;" class="btn btn-sm btn-icon dropdown-toggle hide-arrow" data-bs-toggle="dropdown"><i class="bx bx-dots-vertical-rounded"></i></a><ul class="dropdown-menu dropdown-menu-end m-0"><li><a href="javascript:;" class="dropdown-item">Details</a></li><li><a href="javascript:;" class="dropdown-item">Archive</a></li><div class="dropdown-divider"></div><li><a href="javascript:;" class="dropdown-item text-danger delete-record">Delete</a></li></ul></div><a href="javascript:;" class="btn btn-sm btn-icon item-edit"><i class="bx bxs-edit"></i></a>'
}
}],
order: [[2, "desc"]],
dom: '<"card-header flex-column flex-md-row"<"head-label text-center"><"dt-action-buttons text-end pt-3 pt-md-0"B>><"row"<"col-sm-12 col-md-6"l><"col-sm-12 col-md-6 d-flex justify-content-center justify-content-md-end"f>>t<"row"<"col-sm-12 col-md-6"i><"col-sm-12 col-md-6"p>>',
displayLength: 7,
lengthMenu: [7, 10, 25, 50, 75, 100],
buttons: [{
extend: "collection",
className: "btn btn-label-primary dropdown-toggle me-2",
text: '<i class="bx bx-export me-sm-1"></i> <span class="d-none d-sm-inline-block">Export</span>',
buttons: [{
extend: "print",
text: '<i class="bx bx-printer me-1" ></i>Print',
className: "dropdown-item",
exportOptions: {
columns: [3, 4, 5, 6, 7], format: {
body: function (e, t, a) {
var s;
return e.length <= 0 ? e : (e = $.parseHTML(e), s = "", $.each(e, function (e, t) {
void 0 !== t.classList && t.classList.contains("user-name") ? s += t.lastChild.firstChild.textContent : void 0 === t.innerText ? s += t.textContent : s += t.innerText
}), s)
}
}
},
customize: function (e) {
$(e.document.body).css("color", config.colors.headingColor).css("border-color", config.colors.borderColor).css("background-color", config.colors.bodyBg), $(e.document.body).find("table").addClass("compact").css("color", "inherit").css("border-color", "inherit").css("background-color", "inherit")
}
}, {
extend: "csv",
text: '<i class="bx bx-file me-1" ></i>Csv',
className: "dropdown-item",
exportOptions: {
columns: [3, 4, 5, 6, 7], format: {
body: function (e, t, a) {
var s;
return e.length <= 0 ? e : (e = $.parseHTML(e), s = "", $.each(e, function (e, t) {
void 0 !== t.classList && t.classList.contains("user-name") ? s += t.lastChild.firstChild.textContent : void 0 === t.innerText ? s += t.textContent : s += t.innerText
}), s)
}
}
}
}, {
extend: "excel",
text: '<i class="bx bxs-file-export me-1"></i>Excel',
className: "dropdown-item",
exportOptions: {
columns: [3, 4, 5, 6, 7], format: {
body: function (e, t, a) {
var s;
return e.length <= 0 ? e : (e = $.parseHTML(e), s = "", $.each(e, function (e, t) {
void 0 !== t.classList && t.classList.contains("user-name") ? s += t.lastChild.firstChild.textContent : void 0 === t.innerText ? s += t.textContent : s += t.innerText
}), s)
}
}
}
}, {
extend: "pdf",
text: '<i class="bx bxs-file-pdf me-1"></i>Pdf',
className: "dropdown-item",
exportOptions: {
columns: [3, 4, 5, 6, 7], format: {
body: function (e, t, a) {
var s;
return e.length <= 0 ? e : (e = $.parseHTML(e), s = "", $.each(e, function (e, t) {
void 0 !== t.classList && t.classList.contains("user-name") ? s += t.lastChild.firstChild.textContent : void 0 === t.innerText ? s += t.textContent : s += t.innerText
}), s)
}
}
}
}, {
extend: "copy",
text: '<i class="bx bx-copy me-1" ></i>Copy',
className: "dropdown-item",
exportOptions: {
columns: [3, 4, 5, 6, 7], format: {
body: function (e, t, a) {
var s;
return e.length <= 0 ? e : (e = $.parseHTML(e), s = "", $.each(e, function (e, t) {
void 0 !== t.classList && t.classList.contains("user-name") ? s += t.lastChild.firstChild.textContent : void 0 === t.innerText ? s += t.textContent : s += t.innerText
}), s)
}
}
}
}]
}, {
text: '<i class="bx bx-plus me-sm-1"></i> <span class="d-none d-sm-inline-block">Add New Record</span>',
className: "create-new btn btn-primary"
}],
responsive: {
details: {
display: $.fn.dataTable.Responsive.display.modal({
header: function (e) {
return "Details of " + e.data().full_name
}
}), type: "column", renderer: function (e, t, a) {
a = $.map(a, function (e, t) {
return "" !== e.title ? '<tr data-dt-row="' + e.rowIndex + '" data-dt-column="' + e.columnIndex + '"><td>' + e.title + ":</td> <td>" + e.data + "</td></tr>" : ""
}).join("");
return !!a && $('<table class="table"/><tbody />').append(a)
}
}
}
}), $("div.head-label").html('<h5 class="card-title mb-0">DataTable with Buttons</h5>'), $(".dt-buttons > .btn-group > button").removeClass("btn-secondary")), 101);
fv.on("core.form.valid", function () {
var e = $(".add-new-record .dt-full-name").val(), t = $(".add-new-record .dt-post").val(), a = $(".add-new-record .dt-email").val(),
s = $(".add-new-record .dt-date").val(), n = $(".add-new-record .dt-salary").val();
"" != e && (l.row.add({
id: r,
full_name: e,
post: t,
email: a,
start_date: s,
salary: "$" + n,
status: 5
}).draw(), r++, offCanvasEl.hide())
}), $(".datatables-basic tbody").on("click", ".delete-record", function () {
l.row($(this).parents("tr")).remove().draw()
}), a.length && a.DataTable({
ajax: assetsPath + "json/table-datatable.json",
columns: [{data: "full_name"}, {data: "email"}, {data: "city"}, {data: "post"}, {data: "salary"}, {data: "status"}, {data: ""}],
columnDefs: [{
targets: -2, render: function (e, t, a, s) {
var a = a.status, n = {
1: {title: "Current", class: "bg-label-primary"},
2: {title: "Professional", class: " bg-label-success"},
3: {title: "Rejected", class: " bg-label-danger"},
4: {title: "Resigned", class: " bg-label-warning"},
5: {title: "Applied", class: " bg-label-info"}
};
return void 0 === n[a] ? e : '<span class="badge ' + n[a].class + '">' + n[a].title + "</span>"
}
}, {
targets: -1, title: "Actions", orderable: !1, render: function (e, t, a, s) {
return '<div class="d-inline-block"><a href="javascript:;" class="btn btn-sm btn-icon dropdown-toggle hide-arrow" data-bs-toggle="dropdown"><i class="bx bx-dots-vertical-rounded"></i></a><div class="dropdown-menu dropdown-menu-end m-0"><a href="javascript:;" class="dropdown-item">Details</a><a href="javascript:;" class="dropdown-item">Archive</a><div class="dropdown-divider"></div><a href="javascript:;" class="dropdown-item text-danger delete-record">Delete</a></div></div><a href="javascript:;" class="btn btn-sm btn-icon item-edit"><i class="bx bxs-edit"></i></a>'
}
}],
dom: '<"row"<"col-sm-12 col-md-6"l><"col-sm-12 col-md-6 d-flex justify-content-center justify-content-md-end"f>><"table-responsive"t><"row"<"col-sm-12 col-md-6"i><"col-sm-12 col-md-6"p>>',
displayLength: 7,
lengthMenu: [7, 10, 25, 50, 75, 100]
}), s.length && (t = s.DataTable({
ajax: assetsPath + "json/table-datatable.json",
columns: [{data: ""}, {data: "full_name"}, {data: "post"}, {data: "email"}, {data: "city"}, {data: "start_date"}, {data: "salary"}, {data: "status"}, {data: ""}],
columnDefs: [{
className: "control", orderable: !1, targets: 0, searchable: !1, render: function (e, t, a, s) {
return ""
}
}, {visible: !1, targets: 2}, {
targets: -2, render: function (e, t, a, s) {
var a = a.status, n = {
1: {title: "Current", class: "bg-label-primary"},
2: {title: "Professional", class: " bg-label-success"},
3: {title: "Rejected", class: " bg-label-danger"},
4: {title: "Resigned", class: " bg-label-warning"},
5: {title: "Applied", class: " bg-label-info"}
};
return void 0 === n[a] ? e : '<span class="badge ' + n[a].class + '">' + n[a].title + "</span>"
}
}, {
targets: -1, title: "Actions", orderable: !1, searchable: !1, render: function (e, t, a, s) {
return '<div class="d-inline-block"><a href="javascript:;" class="btn btn-sm btn-icon dropdown-toggle hide-arrow" data-bs-toggle="dropdown"><i class="bx bx-dots-vertical-rounded"></i></a><div class="dropdown-menu dropdown-menu-end m-0"><a href="javascript:;" class="dropdown-item">Details</a><a href="javascript:;" class="dropdown-item">Archive</a><div class="dropdown-divider"></div><a href="javascript:;" class="dropdown-item text-danger delete-record">Delete</a></div></div><a href="javascript:;" class="btn btn-sm btn-icon item-edit"><i class="bx bxs-edit"></i></a>'
}
}],
order: [[2, "asc"]],
dom: '<"row"<"col-sm-12 col-md-6"l><"col-sm-12 col-md-6 d-flex justify-content-center justify-content-md-end"f>>t<"row"<"col-sm-12 col-md-6"i><"col-sm-12 col-md-6"p>>',
displayLength: 7,
lengthMenu: [7, 10, 25, 50, 75, 100],
drawCallback: function (e) {
var t = this.api(), a = t.rows({page: "current"}).nodes(), s = null;
t.column(2, {page: "current"}).data().each(function (e, t) {
s !== e && ($(a).eq(t).before('<tr class="group"><td colspan="8">' + e + "</td></tr>"), s = e)
})
},
responsive: {
details: {
display: $.fn.dataTable.Responsive.display.modal({
header: function (e) {
return "Details of " + e.data().full_name
}
}), type: "column", renderer: function (e, t, a) {
a = $.map(a, function (e, t) {
return "" !== e.title ? '<tr data-dt-row="' + e.rowIndex + '" data-dt-column="' + e.columnIndex + '"><td>' + e.title + ":</td> <td>" + e.data + "</td></tr>" : ""
}).join("");
return !!a && $('<table class="table"/><tbody />').append(a)
}
}
}
}), $(".dt-row-grouping tbody").on("click", "tr.group", function () {
var e = t.order()[0];
(2 === e[0] && "asc" === e[1] ? t.order([2, "desc"]) : t.order([2, "asc"])).draw()
}));
n.length && n.DataTable({
ajax: assetsPath + "json/table-datatable.json",
columns: [{data: ""}, {data: "full_name"}, {data: "post"}, {data: "email"}, {data: "start_date"}, {data: "salary"}, {data: "status"}, {data: ""}],
columnDefs: [{
className: "control", orderable: !1, targets: 0, searchable: !1, render: function (e, t, a, s) {
return ""
}
}, {
targets: -2, render: function (e, t, a, s) {
var a = a.status, n = {
1: {title: "Current", class: "bg-label-primary"},
2: {title: "Professional", class: " bg-label-success"},
3: {title: "Rejected", class: " bg-label-danger"},
4: {title: "Resigned", class: " bg-label-warning"},
5: {title: "Applied", class: " bg-label-info"}
};
return void 0 === n[a] ? e : '<span class="badge ' + n[a].class + '">' + n[a].title + "</span>"
}
}, {
targets: -1, title: "Actions", orderable: !1, searchable: !1, render: function (e, t, a, s) {
return '<div class="d-inline-block"><a href="javascript:;" class="btn btn-sm btn-icon dropdown-toggle hide-arrow" data-bs-toggle="dropdown"><i class="bx bx-dots-vertical-rounded"></i></a><div class="dropdown-menu dropdown-menu-end m-0"><a href="javascript:;" class="dropdown-item">Details</a><a href="javascript:;" class="dropdown-item">Archive</a><div class="dropdown-divider"></div><a href="javascript:;" class="dropdown-item text-danger delete-record">Delete</a></div></div><a href="javascript:;" class="btn btn-sm btn-icon item-edit"><i class="bx bxs-edit"></i></a>'
}
}],
language: {url: "//cdn.datatables.net/plug-ins/9dcbecd42ad/i18n/German.json"},
displayLength: 7,
dom: '<"row"<"col-sm-12 col-md-6"l><"col-sm-12 col-md-6 d-flex justify-content-center justify-content-md-end"f>>t<"row"<"col-sm-12 col-md-6"i><"col-sm-12 col-md-6"p>>',
lengthMenu: [7, 10, 25, 50, 75, 100],
responsive: {
details: {
display: $.fn.dataTable.Responsive.display.modal({
header: function (e) {
return "Details of " + e.data().full_name
}
}), type: "column", renderer: function (e, t, a) {
a = $.map(a, function (e, t) {
return "" !== e.title ? '<tr data-dt-row="' + e.rowIndex + '" data-dt-column="' + e.columnIndex + '"><td>' + e.title + ":</td> <td>" + e.data + "</td></tr>" : ""
}).join("");
return !!a && $('<table class="table"/><tbody />').append(a)
}
}
}
}), setTimeout(() => {
$(".dataTables_filter .form-control").removeClass("form-control-sm"), $(".dataTables_length .form-select").removeClass("form-select-sm")
}, 300)
});

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1 @@
"use strict";!function(){var e=document.querySelector("#swiper-default"),i=document.querySelector("#swiper-with-arrows"),r=document.querySelector("#swiper-with-pagination"),t=document.querySelector("#swiper-with-progress"),n=document.querySelector("#swiper-with-scrollbar"),o=document.querySelector("#swiper-vertical"),s=document.querySelector("#swiper-multiple-slides"),w=document.querySelector("#swiper-3d-coverflow-effect"),p=document.querySelector("#swiper-3d-cube-effect"),a=document.querySelector("#swiper-3d-flip-effect"),l=document.querySelector(".gallery-thumbs"),c=document.querySelector(".gallery-top");let u;e&&new Swiper(e,{slidesPerView:"auto"}),i&&new Swiper(i,{slidesPerView:"auto",navigation:{prevEl:".swiper-button-prev",nextEl:".swiper-button-next"}}),r&&new Swiper(r,{slidesPerView:"auto",pagination:{clickable:!0,el:".swiper-pagination"}}),t&&new Swiper(t,{slidesPerView:"auto",pagination:{type:"progressbar",el:".swiper-pagination"},navigation:{prevEl:".swiper-button-prev",nextEl:".swiper-button-next"}}),n&&new Swiper(n,{scrollbar:{hide:!0,el:".swiper-scrollbar"}}),o&&new Swiper(o,{direction:"vertical",pagination:{clickable:!0,el:".swiper-pagination"}}),s&&new Swiper(s,{slidesPerView:3,spaceBetween:30,pagination:{clickable:!0,el:".swiper-pagination"}}),w&&new Swiper(w,{effect:"coverflow",grabCursor:!0,centeredSlides:!0,slidesPerView:"auto",coverflowEffect:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0},pagination:{el:".swiper-pagination"}}),p&&new Swiper(p,{effect:"cube",grabCursor:!0,cubeEffect:{shadow:!0,slideShadows:!0,shadowScale:.94,shadowOffset:20},pagination:{el:".swiper-pagination"}}),a&&new Swiper(a,{effect:"flip",grabCursor:!0,pagination:{el:".swiper-pagination"},navigation:{prevEl:".swiper-button-prev",nextEl:".swiper-button-next"}}),l&&(u=new Swiper(l,{spaceBetween:10,slidesPerView:4,freeMode:!0,watchSlidesVisibility:!0,watchSlidesProgress:!0})),c&&new Swiper(c,{spaceBetween:10,navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},thumbs:{swiper:u}})}();

View file

@ -0,0 +1 @@
"use strict";!function(){const e=document.querySelector("#animation-dropdown"),t=document.querySelector("#animationModal"),a=(e&&(e.onchange=function(){t.classList="",t.classList.add("modal","animate__animated",this.value)}),document.querySelector("#youTubeModal")),o=a.querySelector("iframe");a.addEventListener("hidden.bs.modal",function(){o.setAttribute("src","")});[].slice.call(document.querySelectorAll('[data-bs-toggle="modal"]')).map(function(e){e.onclick=function(){var e=this.getAttribute("data-bs-target"),t=this.getAttribute("data-theVideo")+"?autoplay=1",e=document.querySelector(e+" iframe");e&&e.setAttribute("src",t)}}),document.querySelectorAll(".carousel").forEach(t=>{t.addEventListener("slide.bs.carousel",e=>{e=$(e.relatedTarget).height();$(t).find(".active.carousel-item").parent().animate({height:e},500)})})}();

Some files were not shown because too many files have changed in this diff Show more