Burada birşey bulunamadı. Aramayı deneyebilirsiniz.
(function () { const cfg = window.MyAuto || null; if (!cfg) return; const minChars = cfg.minChars || 3; const limit = cfg.limit || 8; // MOD: "product" = tıklayınca ürün sayfasına git (HIZLI) // "search" = input doldur + form submit (YAVAŞ ama arama sonuçlarında kalır) const clickMode = cfg.clickMode || "product"; function log(...a){ if (cfg.debug) console.log(...a); } function initForInput(input) { if (!input || input.dataset.muAutoInit === '1') return; input.dataset.muAutoInit = '1'; const brandSelect = document.querySelector(cfg.brandSelector || 'select[name="product_brand"]'); const parent = input.parentElement; if (!parent) return; if (!parent.style.position) parent.style.position = 'relative'; // Dropdown box const box = document.createElement('div'); box.style.position = 'absolute'; box.style.left = '0'; box.style.right = '0'; box.style.top = 'calc(100% + 6px)'; box.style.background = '#fff'; box.style.border = '1px solid #e5e7eb'; box.style.borderRadius = '10px'; box.style.boxShadow = '0 10px 30px rgba(0,0,0,.08)'; box.style.zIndex = '99999'; box.style.overflow = 'hidden'; box.style.display = 'none'; parent.appendChild(box); // Basit inline CSS (hover net olsun) const style = document.createElement('style'); style.textContent = ` .mu-auto-row:hover { background: #f1f5f9 !important; } .mu-auto-row.is-active { background: #e2e8f0 !important; } .mu-auto-row { transition: background .06s linear; } `; document.head.appendChild(style); let timer = null; let items = []; let activeIndex = -1; // İstek iptali + cache let abortController = null; const cache = new Map(); // key -> items[] const CACHE_TTL_MS = 60 * 1000; const cacheTime = new Map(); function esc(s) { // Burada sadece gerçek HTML karakterlerini kaçırıyoruz return String(s).replace(/[&<>"']/g, (m) => ({ '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' }[m])); } function closeBox() { box.style.display = 'none'; box.innerHTML = ''; items = []; activeIndex = -1; } function openBox() { box.style.display = 'block'; } function setActive(idx) { activeIndex = idx; const rows = box.querySelectorAll('.mu-auto-row'); rows.forEach((r, i) => { if (i === activeIndex) r.classList.add('is-active'); else r.classList.remove('is-active'); }); } function showLoading() { box.innerHTML = `
Güvenin Entegratörü
Burada birşey bulunamadı. Aramayı deneyebilirsiniz.