Sha256: d6156afda61a14e02f5b1d6f5a5568358038924a2add4e460d8bc0f776661ace
Contents?: true
Size: 1016 Bytes
Versions: 11
Compression:
Stored size: 1016 Bytes
Contents
"use strict";var KTModalCustomerSelect=function(){var e,t,n,o,s,a,c=function(e){setTimeout((function(){var s=KTUtil.getRandomInt(1,6);t.classList.add("d-none"),3===s?(n.classList.add("d-none"),o.classList.remove("d-none")):(n.classList.remove("d-none"),o.classList.add("d-none")),e.complete()}),1500)},r=function(e){t.classList.remove("d-none"),n.classList.add("d-none"),o.classList.add("d-none")};return{init:function(){e=document.querySelector("#kt_modal_customer_search_handler"),a=new bootstrap.Modal(document.querySelector("#kt_modal_customer_search")),e&&(e.querySelector('[data-kt-search-element="wrapper"]'),t=e.querySelector('[data-kt-search-element="suggestions"]'),n=e.querySelector('[data-kt-search-element="results"]'),o=e.querySelector('[data-kt-search-element="empty"]'),(s=new KTSearch(e)).on("kt.search.process",c),s.on("kt.search.clear",r),KTUtil.on(e,'[data-kt-search-element="customer"]',"click",(function(){a.hide()})))}}}();KTUtil.onDOMContentLoaded((function(){KTModalCustomerSelect.init()}));
Version data entries
11 entries across 5 versions & 1 rubygems