Ben HERONOMİ’nin çalışkan karınca kahramanıyım! En güzel fırsatları senin için topladım • Yeni sezon çanta modelleri burada • Güvenli alışveriş • Hemen keşfet!

}); } function loadOne(id, candidates, done) { if (document.getElementById(id)) { if (done) done(true); return; } var existing = candidates.some(function (src) { return hasScript(src.split("?")[0]); }); if (existing) { if (done) done(true); return; } var index = 0; function tryNext() { if (index >= candidates.length) { if (done) done(false); return; } var src = candidates[index++]; var s = document.createElement("script"); s.id = id + "-" + index; s.async = true; s.src = src; s.onload = function () { if (done) done(true); }; s.onerror = function () { try { s.remove(); } catch (e) {} tryNext(); }; (document.head || document.documentElement).appendChild(s); } tryNext(); } loadOne( "hbb-heromoni-agent", [ "/heromoni/heromoni-customer-agent-v5.js?v=870", "/heromoni-customer-agent-v5.js?v=870" ], function () { loadOne( "hbb-heromoni-conversion", [ "/heronomi-conversion-v1.js?v=7", "/heromoni/heronomi-conversion-v1.js?v=7", "/heromoni/heromoni-conversion-v1.js?v=7" ] ); } ); })(); /* ========================================================= 11) HERONOMİ AI ARAYÜZ TOPARLAMA - V6.1 - AI motoruna / cevap servisine dokunmaz. - Ham **kalın** işaretlerini güvenli biçimde kalın yazıya çevirir. - Hızlı işlem butonlarını daha anlaşılır hale getirir. - Placeholder ve alt başlığı profesyonelleştirir. - Yalnızca HERONOMİ penceresi bulunduğunda çalışır. ========================================================= */ (function () { "use strict"; if (window.__HBB_HEROMONI_POLISH_V61__) return; window.__HBB_HEROMONI_POLISH_V61__ = true; var ROOT_CLASS = "hbb-heromoni-polished-v61"; var STYLE_ID = "hbb-heromoni-polish-v61-style"; var timer = null; function clean(v) { return String(v || "").replace(/\s+/g, " ").trim(); /* ========================================================= GRUP 5 — HERO DAYI PANEL ADAPTÖRÜ V1 - HERONOMİ = teknik AI motoru - HERO Dayı = müşterinin gördüğü temsilci - AI cevap servisine dokunmaz. - Mevcut sohbet penceresini HERO Dayı adına göre düzenler. ========================================================= */ (function () { "use strict"; if (window.__HBB_HERO_DAYI_PANEL_V1__) return; window.__HBB_HERO_DAYI_PANEL_V1__ = true; var ROOT_CLASS = "hbb-hero-dayi-panel-v1"; var STYLE_ID = "hbb-hero-dayi-panel-v1-style"; var timer = null; function clean(v) { return String(v || "").replace(/\s+/g, " ").trim(); } function addStyle() { if (document.getElementById(STYLE_ID)) return; var style = document.createElement("style"); style.id = STYLE_ID; style.textContent = ` .${ROOT_CLASS}{ border:1px solid rgba(20,42,76,.12) !important; border-radius:20px !important; box-shadow:0 18px 55px rgba(20,42,76,.18) !important; overflow:hidden !important; font-family:Arial,Helvetica,sans-serif !important; } .${ROOT_CLASS} .hbb-hero-dayi-quick{ font-weight:700 !important; letter-spacing:0 !important; } .${ROOT_CLASS} strong{ font-weight:800 !important; color:inherit !important; } .${ROOT_CLASS} input, .${ROOT_CLASS} textarea{ font-size:15px !important; } @media(max-width:600px){ .${ROOT_CLASS}{ border-radius:18px !important; } } `; (document.head || document.documentElement).appendChild(style); } function findRoot() { var fields = Array.prototype.slice.call( document.querySelectorAll("input[placeholder], textarea[placeholder]") ); var field = fields.find(function (el) { var p = clean(el.getAttribute("placeholder")).toLocaleUpperCase("tr-TR"); return ( p.indexOf("SORUNUZU DOĞAL") !== -1 || p.indexOf("ÜRÜN, BEDEN, STOK") !== -1 || p.indexOf("ÜRÜN, BEDEN, STOK, KARGO") !== -1 ); }); if (!field) return null; var node = field; var candidate = null; for (var i = 0; i < 10 && node && node !== document.body; i++) { var txt = clean(node.innerText || node.textContent).toLocaleUpperCase("tr-TR"); if ( txt.indexOf("HERONOMİ AI") !== -1 || txt.indexOf("HEROMONI AI") !== -1 || txt.indexOf("HERO DAYI") !== -1 ) { candidate = node; } node = node.parentElement; } return candidate; } function replaceExactText(root, oldText, newText) { Array.prototype.slice.call(root.querySelectorAll("*")).forEach(function (el) { if (el.children.length) return; if (clean(el.textContent) === oldText) el.textContent = newText; }); } function polishHeader(root) { replaceExactText(root, "HERONOMI AI", "HERO Dayı"); replaceExactText(root, "HERONOMİ AI", "HERO Dayı"); replaceExactText( root, "Profesyonel Müşteri Temsilcisi • AI bağlı", "HELE Bİ BAK Müşteri Temsilcisi • Çevrimiçi" ); replaceExactText( root, "Profesyonel Müşteri Temsilcisi • AI Bağlı", "HELE Bİ BAK Müşteri Temsilcisi • Çevrimiçi" ); replaceExactText( root, "Akıllı Alışveriş Asistanı • Çevrimiçi", "HELE Bİ BAK Müşteri Temsilcisi • Çevrimiçi" ); } function polishInput(root) { var field = root.querySelector("input[placeholder], textarea[placeholder]"); if (!field) return; field.setAttribute( "placeholder", "Ürün, beden, stok, kargo veya siparişinizi sorun…" ); field.setAttribute( "aria-label", "HERO Dayı müşteri temsilcisine sorun" ); } function polishQuickButtons(root) { var map = { "En iyi seçenek": "Ürün bul", "En iyi seçeneği bul": "Ürün bul", "Stok": "Stok / Beden", "Stok durumu": "Stok / Beden", "Kargo": "Kargo", "Kargo bilgisi": "Kargo", "Sepete Ekle": "Sepete ekle" }; Array.prototype.slice.call(root.querySelectorAll("button, a")).forEach(function (el) { var t = clean(el.textContent); if (!Object.prototype.hasOwnProperty.call(map, t)) return; el.textContent = map[t]; el.classList.add("hbb-hero-dayi-quick"); }); } function shouldSkipNode(node) { if (!node || !node.parentElement) return true; var tag = node.parentElement.tagName; return ( tag === "SCRIPT" || tag === "STYLE" || tag === "TEXTAREA" || tag === "INPUT" || tag === "STRONG" || tag === "B" ); } function renderStrongMarkdown(root) { if (!window.NodeFilter || !document.createTreeWalker) return; var walker = document.createTreeWalker( root, NodeFilter.SHOW_TEXT, null ); var nodes = []; var node; while ((node = walker.nextNode())) { if (shouldSkipNode(node)) continue; var value = String(node.nodeValue || ""); if (value.indexOf("**") !== -1) nodes.push(node); } nodes.forEach(function (textNode) { var value = String(textNode.nodeValue || ""); var regex = /\*\*([^*\n][\s\S]*?)\*\*/g; var match; var last = 0; var found = false; var frag = document.createDocumentFragment(); while ((match = regex.exec(value))) { found = true; if (match.index > last) { frag.appendChild(document.createTextNode(value.slice(last, match.index))); } var strong = document.createElement("strong"); strong.textContent = match[1]; frag.appendChild(strong); last = regex.lastIndex; } if (!found) return; if (last < value.length) { frag.appendChild(document.createTextNode(value.slice(last))); } textNode.parentNode.replaceChild(frag, textNode); }); } function addTrustNote(root) { if (root.querySelector(".hbb-hero-dayi-note")) return; var field = root.querySelector("input[placeholder], textarea[placeholder]"); if (!field || !field.parentElement || !field.parentElement.parentElement) return; var note = document.createElement("div"); note.className = "hbb-hero-dayi-note"; note.textContent = "Stok, fiyat, kampanya ve sipariş bilgileri doğrulanmış güncel veriye göre gösterilir."; note.style.cssText = "font-size:10.5px;line-height:1.25;color:#7a7f87;" + "padding:0 14px 8px;text-align:left;"; field.parentElement.parentElement.insertBefore(note, field.parentElement); } function polish() { addStyle(); var root = findRoot(); if (!root) return; root.classList.add(ROOT_CLASS); polishHeader(root); polishInput(root); polishQuickButtons(root); renderStrongMarkdown(root); addTrustNote(root); } function schedule() { clearTimeout(timer); timer = setTimeout(polish, 80); } function start() { polish(); setTimeout(polish, 500); setTimeout(polish, 1500); if (!document.body || !window.MutationObserver) return; var observer = new MutationObserver(schedule); observer.observe(document.body, { childList:true, subtree:true }); } if (document.readyState === "loading") { document.addEventListener("DOMContentLoaded", start); } else { start(); } })();