/* OK ITHAKI V249526R10F1 — EXCLUSIVE MESH ROUTE OWNER / NEVER COMMUNITIES */
(function(){
'use strict';
if(window.__ITHAKI_V249526R10F1_MESH_OWNER__)return;
window.__ITHAKI_V249526R10F1_MESH_OWNER__={version:'V249526R10F1',exclusiveMeshRoute:true,nativeOrWebInfoOnly:true,neverRoutesCommunities:true,legacyOverridesRemoved:true,at:Date.now()};
const I=()=>window.ITH=window.ITH||{},$=id=>document.getElementById(id);
function bridge(){return window.OKITHAKI_ANDROID||window.AndroidBridge||null}
function closePlus(){const p=$('plusSheet');if(p){p.classList.remove('show','ithPlusMenuV249429','ith530CanonicalPlus');}return false}
function toast(msg){try{if(typeof I().toast==='function')return I().toast(msg);if(typeof window.toast==='function')return window.toast(msg)}catch(e){}console.warn(msg)}
function webInfo(){let old=$('ithMeshInfoR10F1');if(old)old.remove();const o=document.createElement('div');o.id='ithMeshInfoR10F1';o.setAttribute('role','dialog');o.setAttribute('aria-modal','true');o.style.cssText='position:fixed;inset:0;z-index:2147483647;background:rgba(2,8,16,.97);display:grid;place-items:center;padding:18px;color:#fff';o.innerHTML='<div style="width:min(650px,96vw);max-height:90vh;overflow:auto;background:linear-gradient(160deg,#0a1c2b,#07121d);border:1px solid rgba(91,232,187,.48);border-radius:25px;padding:20px;box-shadow:0 28px 90px #000"><div style="display:flex;gap:10px;align-items:center"><button id="ithMeshBackR10F1" type="button" style="border:0;border-radius:14px;background:#24384c;color:#fff;min-width:46px;height:42px;font-size:21px">←</button><h2 style="margin:0;flex:1;color:#eafff7">🛜 Γειτονιά & Ραντάρ</h2></div><p>Η πραγματική Κυψέλη Wi‑Fi και το Nearby Ραντάρ ανοίγουν μόνο μέσα στο Android APK V249531.</p><p>Η λειτουργία είναι χειροκίνητη, μόνο για γραπτά μηνύματα και SOS. Δεν αλλάζει την κανονική σύνδεση OK ITHAKI.</p><p style="color:#ffe09a">Στον browser δεν γίνεται μετάβαση στις Κοινότητες. Εγκατέστησε το νέο APK από την επιλογή 2.</p></div>';document.body.appendChild(o);$('ithMeshBackR10F1').onclick=()=>o.remove();return false}
function openCanonical(){closePlus();const b=bridge();if(b&&typeof b.openEmergencyNeighborhoodV249442==='function'){try{b.openEmergencyNeighborhoodV249442();document.documentElement.setAttribute('data-ithaki-mesh-open-r10f1','native');return false}catch(e){toast('Δεν άνοιξε η Γειτονιά: '+String(e&&e.message||e));return webInfo()}}document.documentElement.setAttribute('data-ithaki-mesh-open-r10f1','web-info');return webInfo()}
function install(){const o=I();o.openCanonicalMeshV249526R10F1=openCanonical;o.openEmergencyNeighborhoodV249442=openCanonical;o.openEmergencyOfflineHubV249283=openCanonical;o.openOfflineMeshV249432=openCanonical;o.openMeshNeighborhoodV249437=openCanonical;o.openMeshNeighborhoodV249436=openCanonical;window.openCanonicalMeshV249526R10F1=openCanonical;window.openEmergencyNeighborhoodV249442=openCanonical;window.openEmergencyOfflineHubV249283=openCanonical;window.openLocalConnection=openCanonical;document.documentElement.setAttribute('data-ithaki-v249526r10f1','exclusive-mesh-route-owner')}
function capture(e){const q=e.target&&e.target.closest&&e.target.closest('#plusSheet button,#plusSheet [role="button"]');if(!q)return;const key=String(q.dataset.r9plus||q.dataset.v249429Act||q.dataset.act||'').toLowerCase();const text=String(q.textContent||'').toLowerCase();if(key==='neighborhood'||key==='offline'||/γειτονιά|mesh|ραντάρ/.test(text)){e.preventDefault();e.stopImmediatePropagation();return openCanonical()}}
document.addEventListener('click',capture,true);if(document.readyState==='loading')document.addEventListener('DOMContentLoaded',install,{once:true});else install();window.addEventListener('pageshow',install);window.addEventListener('ithaki:page-changed',install);
})();
