git add folder assets

This commit is contained in:
KhatamNugraha
2023-09-07 11:44:29 +07:00
parent 809925aacb
commit 0aa41f9f7a
2616 changed files with 28961 additions and 1 deletions

View File

@ -0,0 +1 @@
"use strict";var KTAppEcommerceCategories=function(){var t,e,n=()=>{t.querySelectorAll('[data-kt-ecommerce-category-filter="delete_row"]').forEach((t=>{t.addEventListener("click",(function(t){t.preventDefault();const n=t.target.closest("tr"),o=n.querySelector('[data-kt-ecommerce-category-filter="category_name"]').innerText;Swal.fire({text:"Are you sure you want to delete "+o+"?",icon:"warning",showCancelButton:!0,buttonsStyling:!1,confirmButtonText:"Yes, delete!",cancelButtonText:"No, cancel",customClass:{confirmButton:"btn fw-bold btn-danger",cancelButton:"btn fw-bold btn-active-light-primary"}}).then((function(t){t.value?Swal.fire({text:"You have deleted "+o+"!.",icon:"success",buttonsStyling:!1,confirmButtonText:"Ok, got it!",customClass:{confirmButton:"btn fw-bold btn-primary"}}).then((function(){e.row($(n)).remove().draw()})):"cancel"===t.dismiss&&Swal.fire({text:o+" was not deleted.",icon:"error",buttonsStyling:!1,confirmButtonText:"Ok, got it!",customClass:{confirmButton:"btn fw-bold btn-primary"}})}))}))}))};return{init:function(){(t=document.querySelector("#kt_ecommerce_category_table"))&&((e=$(t).DataTable({info:!1,order:[],pageLength:10,columnDefs:[{orderable:!1,targets:0},{orderable:!1,targets:3}]})).on("draw",(function(){n()})),document.querySelector('[data-kt-ecommerce-category-filter="search"]').addEventListener("keyup",(function(t){e.search(t.target.value).draw()})),n())}}}();KTUtil.onDOMContentLoaded((function(){KTAppEcommerceCategories.init()}));

View File

@ -0,0 +1 @@
"use strict";var KTAppEcommerceProducts=function(){var t,e,n=()=>{t.querySelectorAll('[data-kt-ecommerce-product-filter="delete_row"]').forEach((t=>{t.addEventListener("click",(function(t){t.preventDefault();const n=t.target.closest("tr"),r=n.querySelector('[data-kt-ecommerce-product-filter="product_name"]').innerText;Swal.fire({text:"Are you sure you want to delete "+r+"?",icon:"warning",showCancelButton:!0,buttonsStyling:!1,confirmButtonText:"Yes, delete!",cancelButtonText:"No, cancel",customClass:{confirmButton:"btn fw-bold btn-danger",cancelButton:"btn fw-bold btn-active-light-primary"}}).then((function(t){t.value?Swal.fire({text:"You have deleted "+r+"!.",icon:"success",buttonsStyling:!1,confirmButtonText:"Ok, got it!",customClass:{confirmButton:"btn fw-bold btn-primary"}}).then((function(){e.row($(n)).remove().draw()})):"cancel"===t.dismiss&&Swal.fire({text:r+" was not deleted.",icon:"error",buttonsStyling:!1,confirmButtonText:"Ok, got it!",customClass:{confirmButton:"btn fw-bold btn-primary"}})}))}))}))};return{init:function(){(t=document.querySelector("#kt_ecommerce_products_table"))&&((e=$(t).DataTable({info:!1,order:[],pageLength:10,columnDefs:[{render:DataTable.render.number(",",".",2),targets:4},{orderable:!1,targets:0},{orderable:!1,targets:7}]})).on("draw",(function(){n()})),document.querySelector('[data-kt-ecommerce-product-filter="search"]').addEventListener("keyup",(function(t){e.search(t.target.value).draw()})),(()=>{const t=document.querySelector('[data-kt-ecommerce-product-filter="status"]');$(t).on("change",(t=>{let n=t.target.value;"all"===n&&(n=""),e.column(6).search(n).draw()}))})(),n())}}}();KTUtil.onDOMContentLoaded((function(){KTAppEcommerceProducts.init()}));

View File

@ -0,0 +1 @@
"use strict";var KTAppEcommerceSaveCategory=function(){const e=()=>{$("#kt_ecommerce_add_category_conditions").repeater({initEmpty:!1,defaultValues:{"text-input":"foo"},show:function(){$(this).slideDown(),t()},hide:function(e){$(this).slideUp(e)}})},t=()=>{document.querySelectorAll('[data-kt-ecommerce-catalog-add-category="condition_type"]').forEach((e=>{$(e).hasClass("select2-hidden-accessible")||$(e).select2({minimumResultsForSearch:-1})}));document.querySelectorAll('[data-kt-ecommerce-catalog-add-category="condition_equals"]').forEach((e=>{$(e).hasClass("select2-hidden-accessible")||$(e).select2({minimumResultsForSearch:-1})}))};return{init:function(){["#kt_ecommerce_add_category_description","#kt_ecommerce_add_category_meta_description"].forEach((e=>{let t=document.querySelector(e);t&&(t=new Quill(e,{modules:{toolbar:[[{header:[1,2,!1]}],["bold","italic","underline"],["image","code-block"]]},placeholder:"Type your text here...",theme:"snow"}))})),["#kt_ecommerce_add_category_meta_keywords"].forEach((e=>{const t=document.querySelector(e);t&&new Tagify(t)})),e(),t(),(()=>{const e=document.getElementById("kt_ecommerce_add_category_status"),t=document.getElementById("kt_ecommerce_add_category_status_select"),o=["bg-success","bg-warning","bg-danger"];$(t).on("change",(function(t){switch(t.target.value){case"published":e.classList.remove(...o),e.classList.add("bg-success"),r();break;case"scheduled":e.classList.remove(...o),e.classList.add("bg-warning"),c();break;case"unpublished":e.classList.remove(...o),e.classList.add("bg-danger"),r()}}));const a=document.getElementById("kt_ecommerce_add_category_status_datepicker");$("#kt_ecommerce_add_category_status_datepicker").flatpickr({enableTime:!0,dateFormat:"Y-m-d H:i"});const c=()=>{a.parentNode.classList.remove("d-none")},r=()=>{a.parentNode.classList.add("d-none")}})(),(()=>{const e=document.querySelectorAll('[name="method"][type="radio"]'),t=document.querySelector('[data-kt-ecommerce-catalog-add-category="auto-options"]');e.forEach((e=>{e.addEventListener("change",(e=>{"1"===e.target.value?t.classList.remove("d-none"):t.classList.add("d-none")}))}))})(),(()=>{let e;const t=document.getElementById("kt_ecommerce_add_category_form"),o=document.getElementById("kt_ecommerce_add_category_submit");e=FormValidation.formValidation(t,{fields:{category_name:{validators:{notEmpty:{message:"Category name is required"}}}},plugins:{trigger:new FormValidation.plugins.Trigger,bootstrap:new FormValidation.plugins.Bootstrap5({rowSelector:".fv-row",eleInvalidClass:"",eleValidClass:""})}}),o.addEventListener("click",(a=>{a.preventDefault(),e&&e.validate().then((function(e){console.log("validated!"),"Valid"==e?(o.setAttribute("data-kt-indicator","on"),o.disabled=!0,setTimeout((function(){o.removeAttribute("data-kt-indicator"),Swal.fire({text:"Form has been successfully submitted!",icon:"success",buttonsStyling:!1,confirmButtonText:"Ok, got it!",customClass:{confirmButton:"btn btn-primary"}}).then((function(e){e.isConfirmed&&(o.disabled=!1,window.location=t.getAttribute("data-kt-redirect"))}))}),2e3)):Swal.fire({text:"Sorry, looks like there are some errors detected, please try again.",icon:"error",buttonsStyling:!1,confirmButtonText:"Ok, got it!",customClass:{confirmButton:"btn btn-primary"}})}))}))})()}}}();KTUtil.onDOMContentLoaded((function(){KTAppEcommerceSaveCategory.init()}));

File diff suppressed because one or more lines are too long