{"id":621,"date":"2026-09-04T13:11:21","date_gmt":"2026-09-04T11:11:21","guid":{"rendered":"https:\/\/alterego360.it\/?page_id=621"},"modified":"2026-09-04T13:11:21","modified_gmt":"2026-09-04T11:11:21","slug":"ae-visure","status":"publish","type":"page","link":"https:\/\/alterego360.it\/?page_id=621","title":{"rendered":"Visure immobili"},"content":{"rendered":"\t\t<div class=\"ae-app\" data-view=\"visure\">\n\t\t\t\t\t\t<header class=\"ae-topbar\">\n\t\t\t\t\t\t\t\t<a class=\"ae-brand\" href=\"https:\/\/alterego360.it\/\">\n\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" class=\"ae-brand-logo\" src=\"https:\/\/alterego360.it\/wp-content\/uploads\/2026\/09\/alter_ego_02_carbone_terracotta-1-300x85.png\" alt=\"Alter Ego\">\n\t\t\t\t\t\t\t\t\t<\/a>\n\n\t\t\t\t\t\t\t\t<nav class=\"ae-nav\">\n\t\t\t\t\t<a href=\"https:\/\/alterego360.it\/\" class=\"ae-nav-link ae-nav-link--home\" title=\"Home\"><svg class=\"ae-ico ae-ico--planet\" width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><circle cx=\"12\" cy=\"12\" r=\"6\"\/><path d=\"M4.6 9.2c-2.6 1-3.9 2.3-3.4 3.5 1 2.2 7.2 2.5 14 .7 6.8-1.8 11.3-5 10.3-7.2-.5-1.1-2.3-1.5-5-1.3\"\/><\/svg><span>Home<\/span><\/a>\n\t\t\t\t\t<a href=\"https:\/\/alterego360.it\/?page_id=6\" class=\"ae-nav-link\" title=\"Cruscotto\"><svg class=\"ae-ico ae-ico--grid\" width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><rect x=\"3\" y=\"3\" width=\"7\" height=\"7\" rx=\"1\"\/><rect x=\"14\" y=\"3\" width=\"7\" height=\"7\" rx=\"1\"\/><rect x=\"3\" y=\"14\" width=\"7\" height=\"7\" rx=\"1\"\/><rect x=\"14\" y=\"14\" width=\"7\" height=\"7\" rx=\"1\"\/><\/svg><span>Cruscotto<\/span><\/a>\n\t\t\t\t\t<a href=\"https:\/\/alterego360.it\/?page_id=7\" class=\"ae-nav-link\" title=\"Anagrafiche\"><svg class=\"ae-ico ae-ico--users\" width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2\"\/><circle cx=\"9\" cy=\"7\" r=\"4\"\/><path d=\"M23 21v-2a4 4 0 0 0-3-3.87M16 3.13a4 4 0 0 1 0 7.75\"\/><\/svg><span>Anagrafiche<\/span><\/a>\n\t\t\t\t\t<a href=\"https:\/\/alterego360.it\/?page_id=8\" class=\"ae-nav-link\" title=\"Schede\"><svg class=\"ae-ico ae-ico--files\" width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M15 2H8a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h9a2 2 0 0 0 2-2V6z\"\/><path d=\"M15 2v4h4\"\/><path d=\"M3 6v13a3 3 0 0 0 3 3h9\"\/><\/svg><span>Schede<\/span><\/a>\n\t\t\t\t\t<a href=\"https:\/\/alterego360.it\/?page_id=164\" class=\"ae-nav-link\" title=\"Acquisisci\"><svg class=\"ae-ico ae-ico--scan\" width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M3 8V5a2 2 0 0 1 2-2h3M16 3h3a2 2 0 0 1 2 2v3M21 16v3a2 2 0 0 1-2 2h-3M8 21H5a2 2 0 0 1-2-2v-3M3 12h18\"\/><\/svg><span>Acquisisci<\/span><\/a>\n\t\t\t\t\t<a href=\"https:\/\/alterego360.it\/?page_id=10\" class=\"ae-nav-link\" title=\"Mappa\"><svg class=\"ae-ico ae-ico--map-pin\" width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0z\"\/><circle cx=\"12\" cy=\"10\" r=\"3\"\/><\/svg><span>Mappa<\/span><\/a>\n\t\t\t\t\t<a href=\"https:\/\/alterego360.it\/?page_id=11\" class=\"ae-nav-link\" title=\"Fatture\"><svg class=\"ae-ico ae-ico--euro\" width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M18 6a7 7 0 1 0 0 12M4 10h9M4 14h9\"\/><\/svg><span>Fatture<\/span><\/a>\n\t\t\t\t\t<a href=\"https:\/\/alterego360.it\/?page_id=12\" class=\"ae-nav-link\" title=\"Agenda\"><svg class=\"ae-ico ae-ico--calendar\" width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><rect x=\"3\" y=\"5\" width=\"18\" height=\"16\" rx=\"2\"\/><path d=\"M3 10h18M8 3v4M16 3v4\"\/><\/svg><span>Agenda<\/span><\/a>\n\t\t\t\t\t<a href=\"https:\/\/alterego360.it\/?page_id=13\" class=\"ae-nav-link\" title=\"Magazzino\"><svg class=\"ae-ico ae-ico--box\" width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"m21 8-9-5-9 5v8l9 5 9-5z\"\/><path d=\"m3 8 9 5 9-5M12 13v9\"\/><\/svg><span>Magazzino<\/span><\/a>\n\t\t\t\t\t<a href=\"https:\/\/alterego360.it\/?page_id=615\" class=\"ae-nav-link\" title=\"Patrimonio immobiliare\"><svg class=\"ae-ico ae-ico--building\" width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><rect x=\"4\" y=\"2\" width=\"16\" height=\"20\" rx=\"2\"\/><path d=\"M9 7h2M13 7h2M9 11h2M13 11h2M9 15h2M13 15h2\"\/><\/svg><span>Patrimonio<\/span><\/a>\n\t\t\t\t\t<a href=\"https:\/\/alterego360.it\/?page_id=621\" class=\"ae-nav-link is-active\" title=\"Visure immobili\"><svg class=\"ae-ico ae-ico--home\" width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"m3 10 9-7 9 7v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z\"\/><path d=\"M9 22V12h6v10\"\/><\/svg><span>Visure<\/span><\/a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/nav>\n\t\t\t\t\n\t\t\t\t<div class=\"ae-topbar-right\">\n\t\t\t\t\t<button type=\"button\" class=\"ae-icon-btn ae-global-search-btn\" title=\"Cerca ovunque (\/)\"><svg class=\"ae-ico ae-ico--search\" width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><circle cx=\"11\" cy=\"11\" r=\"7\"\/><path d=\"m21 21-4.5-4.5\"\/><\/svg><\/button>\n\t\t\t\t\t<button type=\"button\" class=\"ae-ask-btn\" data-ask-open title=\"Chiedi all&#039;assistente\"><svg class=\"ae-ico ae-ico--sparkle\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M12 3l1.9 5.1L19 10l-5.1 1.9L12 17l-1.9-5.1L5 10l5.1-1.9z\"\/><path d=\"M19 16l.8 2.2L22 19l-2.2.8L19 22l-.8-2.2L16 19l2.2-.8z\"\/><\/svg><span>Chiedi<\/span><\/button>\n\t\t\t\t\t<button type=\"button\" class=\"ae-icon-btn ae-page-print\" title=\"Report PDF di questa pagina\" aria-label=\"Report PDF di questa pagina\"><svg class=\"ae-ico ae-ico--stampa\" width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M6 9V3h12v6\"\/><path d=\"M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2\"\/><path d=\"M6 14h12v7H6z\"\/><\/svg><\/button>\n\t\t\t\t\t<button type=\"button\" class=\"ae-icon-btn ae-theme-toggle\" title=\"Tema chiaro\/scuro\"><svg class=\"ae-ico ae-ico--moon\" width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M20 14A8 8 0 1 1 10 4a7 7 0 0 0 10 10z\"\/><\/svg><\/button>\n\t\t\t\t\t<div class=\"ae-usermenu\">\n\t\t\t\t\t\t<button type=\"button\" class=\"ae-user-btn\">\n\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/secure.gravatar.com\/avatar\/7faa165d4f5f4eca719bfdb8f6c5532c29e423836d9833cba533108fd94b99ac?s=64&#038;d=mm&#038;r=g\" alt=\"\" width=\"30\" height=\"30\">\n\t\t\t\t\t\t\t<span>Ospite demo<\/span>\n\t\t\t\t\t\t<\/button>\n\t\t\t\t\t\t<div class=\"ae-usermenu-pop\" hidden>\n\t\t\t\t\t\t\t<a href=\"https:\/\/alterego360.it\/?page_id=15\">Il mio account<\/a>\n\t\t\t\t\t\t\t<a href=\"https:\/\/alterego360.it\/wp-login.php?action=logout&#038;redirect_to=https%3A%2F%2Falterego360.it%2F&#038;_wpnonce=406730acb7\">Esci<\/a>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/header>\n\t\t\t\n\t\t\t<main class=\"ae-main\">\t\t<section class=\"ae-visure\" data-visure data-root=\"https:\/\/alterego360.it\/index.php?rest_route=\/alter-ego\/v1\" data-nonce=\"7b16df625f\" data-cards=\"https:\/\/alterego360.it\/?page_id=8\" data-map=\"https:\/\/alterego360.it\/?page_id=10\" data-can=\"0\">\n\t\t\t<div class=\"ae-page-head\">\n\t\t\t\t<div>\n\t\t\t\t\t<h1>Visure immobili<\/h1>\n\t\t\t\t\t<p class=\"ae-sub\">Una scheda per ogni unit\u00e0 catastale, con la sigla provincia-comune-numero, un campo per ogni dato, gli aventi diritto con quota e le utenze agganciate. Ogni scheda va sulla mappa e il Patrimonio immobiliare fa una riga per avente diritto.<\/p>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\n\t\t\t<div class=\"ae-stats-grid\" data-slot=\"stats\"><\/div>\n\n\t\t\t\n\t\t\t<div class=\"ae-notice\" data-slot=\"msg\" hidden><\/div>\n\n\t\t\t<h2 class=\"ae-section-title\">Schede immobile<\/h2>\n\t\t\t<div class=\"ae-table-wrap\"><table class=\"ae-table ae-visure-table\" data-slot=\"immobili\"><thead><tr><th>Sigla<\/th><th>Scheda<\/th><th>Comune<\/th><th>Aventi diritto<\/th><th>Utenze<\/th><th>Mappa<\/th><\/tr><\/thead><tbody><\/tbody><\/table><\/div>\n\n\t\t\t<h2 class=\"ae-section-title\">Utenze e immobile<\/h2>\n\t\t\t<div class=\"ae-table-wrap\"><table class=\"ae-table ae-visure-table\" data-slot=\"utenze\"><thead><tr><th>Utenza<\/th><th>Intestatari<\/th><th>Immobile<\/th><\/tr><\/thead><tbody><\/tbody><\/table><\/div>\n\t\t<\/section>\n\t\t<style>\n\t\t\t.ae-visure-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-bottom: 18px; }\n\t\t\t.ae-visure-step { padding: 14px; border: 1px solid var(--ae-border, #e5e7eb); border-radius: 12px; background: var(--ae-surface, #fff); display: flex; flex-direction: column; gap: 8px; }\n\t\t\t.ae-visure-step h3 { margin: 0; font-size: 1rem; }\n\t\t\t.ae-visure-step textarea, .ae-visure-step input[type=file] { width: 100%; font: inherit; }\n\t\t\t.ae-visure-table { width: 100%; border-collapse: collapse; font-size: .85rem; }\n\t\t\t.ae-visure-table th, .ae-visure-table td { padding: 6px 8px; border-bottom: 1px solid var(--ae-border, #e5e7eb); text-align: left; vertical-align: top; }\n\t\t\t.ae-visure-table select { font: inherit; max-width: 320px; }\n\t\t\t.ae-visure .ae-tag { display: inline-block; padding: 1px 7px; border-radius: 999px; font-size: .75rem; background: color-mix(in srgb, var(--ae-accent) 12%, transparent); }\n\t\t\t.ae-visure .ae-ok { color: #15803d; } .ae-visure .ae-ko { color: #b91c1c; }\n\t\t\t.ae-btn--danger { border-color: #b91c1c; color: #b91c1c; }\n\t\t<\/style>\n\t\t<script>\n\t\t(function () {\n\t\t\tvar root = document.querySelector('[data-visure]');\n\t\t\tif (!root) { return; }\n\t\t\tvar REST = root.getAttribute('data-root').replace(\/\\\/$\/, ''), NONCE = root.getAttribute('data-nonce');\n\t\t\tvar CARDS = root.getAttribute('data-cards'), MAP = root.getAttribute('data-map'), CAN = root.getAttribute('data-can') === '1';\n\t\t\tfunction esc(s) { return String(s == null ? '' : s).replace(\/[&<>\"']\/g, function (c) { return { '&': '&amp;', '<': '&lt;', '>': '&gt;', '\"': '&quot;', \"'\": '&#39;' }[c]; }); }\n\t\t\tfunction api(method, path, body) {\n\t\t\t\treturn fetch(REST + path, { method: method, credentials: 'same-origin', headers: { 'Content-Type': 'application\/json', 'X-WP-Nonce': NONCE }, body: body ? JSON.stringify(body) : undefined })\n\t\t\t\t\t.then(function (r) { return r.json().then(function (j) { if (!r.ok || j.ok === false) { throw new Error(j.message || ('Errore ' + r.status)); } return j; }); });\n\t\t\t}\n\t\t\tvar $ = function (sel) { return root.querySelector(sel); };\n\t\t\tfunction msg(text, kind) { var m = $('[data-slot=msg]'); m.hidden = !text; m.className = 'ae-notice' + (kind ? ' ae-notice--' + kind : ''); m.innerHTML = text; }\n\t\t\tfunction stat(n, l, ok) { return '<div class=\"ae-stat\"><div><div class=\"ae-stat-n' + (ok === false ? ' ae-ko' : '') + '\">' + esc(n) + '<\/div><div class=\"ae-stat-l\">' + esc(l) + '<\/div><\/div><\/div>'; }\n\t\t\tvar immobili = [];\n\t\t\tfunction load() {\n\t\t\t\treturn api('GET', '\/visure\/status').then(function (s) {\n\t\t\t\t\timmobili = s.immobili_elenco || [];\n\t\t\t\t\t$('[data-slot=stats]').innerHTML = stat(s.immobili, 'Immobili in archivio') + stat(s.con_sigla + '\/' + s.immobili, 'Con sigla') + stat(s.geocodificati + '\/' + s.immobili, 'Sulla mappa', s.geocodificati === s.immobili) + stat(s.utenze_collegate + '\/' + s.utenze, 'Utenze agganciate', s.utenze_collegate === s.utenze);\n\t\t\t\t\tvar tb = $('[data-slot=immobili] tbody');\n\t\t\t\t\ttb.innerHTML = immobili.length ? immobili.map(function (c) {\n\t\t\t\t\t\treturn '<tr><td><span class=\"ae-tag\">' + esc(c.sigla || '\u2014') + '<\/span><\/td><td><a href=\"' + esc(CARDS) + '#\/card\/' + c.id + '\">' + esc(c.titolo) + '<\/a><\/td><td>' + esc(c.comune) + '<\/td><td>' + esc(c.aventi) + '<\/td><td>' + esc(c.utenze) + '<\/td><td>' + (c.geo ? '<a class=\"ae-ok\" href=\"' + esc(MAP) + '\">\u2713 sulla mappa<\/a>' : '<span class=\"ae-ko\">manca<\/span>') + '<\/td><\/tr>';\n\t\t\t\t\t}).join('') : '<tr><td colspan=\"6\" class=\"ae-muted\">Nessun immobile: importa le visure.<\/td><\/tr>';\n\t\t\t\t\treturn api('GET', '\/visure\/utenze');\n\t\t\t\t}).then(function (u) {\n\t\t\t\t\tvar tb = $('[data-slot=utenze] tbody');\n\t\t\t\t\tvar opts = function (sel, sug) {\n\t\t\t\t\t\treturn '<option value=\"0\">\u2014 nessuno \u2014<\/option>' + (u.immobili || []).map(function (i) { return '<option value=\"' + i.id + '\"' + (i.id === sel ? ' selected' : '') + '>' + esc((i.sigla ? i.sigla + ' \u00b7 ' : '') + i.titolo) + (i.id === sug && !sel ? ' (suggerito)' : '') + '<\/option>'; }).join('');\n\t\t\t\t\t};\n\t\t\t\t\ttb.innerHTML = (u.utenze || []).length ? u.utenze.map(function (x) {\n\t\t\t\t\t\treturn '<tr data-utenza=\"' + x.id + '\"><td><a href=\"' + esc(CARDS) + '#\/card\/' + x.id + '\">' + esc(x.titolo) + '<\/a>' + (x.pod ? '<br><small class=\"ae-muted\">' + esc(x.pod) + '<\/small>' : '') + '<\/td><td>' + esc((x.intestatari || []).join(', ')) + '<\/td><td>' + (CAN ? '<select data-assign>' + opts(x.immobile_id, x.suggerito) + '<\/select>' + (x.suggerito && !x.immobile_id ? ' <button type=\"button\" class=\"ae-btn ae-btn--sm\" data-use=\"' + x.suggerito + '\">usa suggerito<\/button>' : '') : esc(x.immobile_id || '\u2014')) + '<\/td><\/tr>';\n\t\t\t\t\t}).join('') : '<tr><td colspan=\"3\" class=\"ae-muted\">Nessuna scheda Utenza in archivio.<\/td><\/tr>';\n\t\t\t\t}).catch(function (e) { msg(esc(e.message), 'error'); });\n\t\t\t}\n\t\t\troot.addEventListener('change', function (ev) {\n\t\t\t\tvar sel = ev.target.closest('[data-assign]');\n\t\t\t\tif (!sel) { return; }\n\t\t\t\tvar tr = sel.closest('tr');\n\t\t\t\tapi('POST', '\/visure\/assign', { utenza_id: Number(tr.getAttribute('data-utenza')), immobile_id: Number(sel.value) })\n\t\t\t\t\t.then(function () { msg('Utenza agganciata.', 'ok'); return load(); })\n\t\t\t\t\t.catch(function (e) { msg(esc(e.message), 'error'); });\n\t\t\t});\n\t\t\troot.addEventListener('click', function (ev) {\n\t\t\t\tvar use = ev.target.closest('[data-use]');\n\t\t\t\tif (use) {\n\t\t\t\t\tvar tr = use.closest('tr');\n\t\t\t\t\tapi('POST', '\/visure\/assign', { utenza_id: Number(tr.getAttribute('data-utenza')), immobile_id: Number(use.getAttribute('data-use')) }).then(load).catch(function (e) { msg(esc(e.message), 'error'); });\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tvar b = ev.target.closest('[data-act]');\n\t\t\t\tif (!b) { return; }\n\t\t\t\tvar act = b.getAttribute('data-act');\n\t\t\t\tb.disabled = true;\n\t\t\t\tvar done = function () { b.disabled = false; };\n\t\t\t\tif (act === 'reset') {\n\t\t\t\t\tif (!window.confirm('Mandare nel cestino TUTTE le schede Immobile? Le utenze e le anagrafiche restano.')) { done(); return; }\n\t\t\t\t\tapi('POST', '\/visure\/reset').then(function (r) { msg('Eliminati ' + r.eliminati + ' immobili.', 'ok'); return load(); }).catch(function (e) { msg(esc(e.message), 'error'); }).then(done);\n\t\t\t\t} else if (act === 'import') {\n\t\t\t\t\tvar file = $('[data-slot=file]').files[0];\n\t\t\t\t\tvar run = function (txt) {\n\t\t\t\t\t\ttxt = (txt || '').trim();\n\t\t\t\t\t\tif (!txt) { msg('Carica un file o incolla il testo.', 'error'); done(); return; }\n\t\t\t\t\t\tvar body;\n\t\t\t\t\t\ttry { var j = JSON.parse(txt); body = { rows: Array.isArray(j) ? j : (j.rows || j.immobili || []) }; } catch (e) { body = { text: txt }; }\n\t\t\t\t\t\tmsg('Importazione in corso\u2026');\n\t\t\t\t\t\tapi('POST', '\/visure\/import', body).then(function (r) {\n\t\t\t\t\t\t\tmsg('Creati ' + r.creati + ', aggiornati ' + r.aggiornati + ', anagrafiche create ' + r.persone_create + ', collegamenti ' + r.collegamenti + '.' + (r.errori && r.errori.length ? '<br>' + r.errori.map(esc).join('<br>') : ''), r.errori && r.errori.length ? 'warn' : 'ok');\n\t\t\t\t\t\t\treturn load();\n\t\t\t\t\t\t}).catch(function (e) { msg(esc(e.message), 'error'); }).then(done);\n\t\t\t\t\t};\n\t\t\t\t\tif (file) { var fr = new FileReader(); fr.onload = function () { run(fr.result); }; fr.readAsText(file); } else { run($('[data-slot=text]').value); }\n\t\t\t\t} else if (act === 'geocode') {\n\t\t\t\t\tvar tot = 0;\n\t\t\t\t\tvar step = function () {\n\t\t\t\t\t\treturn api('POST', '\/visure\/geocode', { max: 3 }).then(function (r) {\n\t\t\t\t\t\t\ttot += r.fatti.length;\n\t\t\t\t\t\t\tmsg('Geocodificati ' + tot + (r.rimasti ? ', ne restano ' + r.rimasti + '\u2026' : '.') + (r.falliti.length ? '<br>Non trovati: ' + r.falliti.map(esc).join(', ') : ''), r.rimasti ? '' : 'ok');\n\t\t\t\t\t\t\tif (r.rimasti > 0 && (r.fatti.length || r.falliti.length)) { return step(); }\n\t\t\t\t\t\t});\n\t\t\t\t\t};\n\t\t\t\t\tstep().then(load).catch(function (e) { msg(esc(e.message), 'error'); }).then(done);\n\t\t\t\t} else if (act === 'autolink') {\n\t\t\t\t\tapi('POST', '\/visure\/autolink').then(function (r) { msg('Utenze collegate: ' + r.collegate + (r.elenco.length ? ' (' + r.elenco.map(esc).join(', ') + ')' : '') + '.', 'ok'); return load(); }).catch(function (e) { msg(esc(e.message), 'error'); }).then(done);\n\t\t\t\t}\n\t\t\t});\n\t\t\tload();\n\t\t})();\n\t\t<\/script>\n\t\t<\/main>\n\n\t\t\t\t\t<footer class=\"ae-footer\">\n\t\t\t<div class=\"ae-footer-inner\">\n\t\t\t\t<div class=\"ae-footer-col ae-footer-col--brand\">\n\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" class=\"ae-footer-logo\" src=\"https:\/\/alterego360.it\/wp-content\/plugins\/alter-ego\/assets\/img\/alter-ego-logo.png\" alt=\"ALTER EGO di Massimo Bedendo\" loading=\"lazy\">\n\t\t\t\t\t\t\t\t\t\t<p class=\"ae-footer-brand\">ALTER EGO di Massimo Bedendo<\/p>\n\t\t\t\t\t\t\t\t\t\t\t<p class=\"ae-footer-role\">System Engineer e consulente I.T.<\/p>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<address class=\"ae-footer-addr\">Via Marinetta 67<br>30015 Chioggia (VE) \u2013 Localit\u00e0 Sottomarina<\/address>\n\t\t\t\t\t\t\t\t\t<\/div>\n\n\t\t\t\t<div class=\"ae-footer-col\">\n\t\t\t\t\t<h4>Contatti<\/h4>\n\t\t\t\t\t\t\t\t\t\t\t<p>Tel. <a href=\"tel:+393357125781\">(+39) 335.7125781<\/a><\/p>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<p>Email <a href=\"mailto:info@bedendo.it\">info@bedendo.it<\/a><\/p>\n\t\t\t\t\t\t\t\t\t\t\t<p>Email <a href=\"mailto:info@adempimenti360.it\">info@adempimenti360.it<\/a><\/p>\n\t\t\t\t\t\t\t\t\t<\/div>\n\n\t\t\t\t<div class=\"ae-footer-col\">\n\t\t\t\t\t<h4>Dati fiscali<\/h4>\n\t\t\t\t\t\t\t\t\t\t\t<p>C.F.: <span class=\"ae-footer-mono\">BDNMSM66L23H620O<\/span><\/p>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<p>P.I.: <span class=\"ae-footer-mono\">IT 05006660277<\/span><\/p>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t\t<div class=\"ae-footer-bottom\">\n\t\t\t\t<span>\u00a9 2026 ALTER EGO di Massimo Bedendo<\/span>\n\t\t\t\t<span>Alter Ego v1.35.0<\/span>\n\t\t\t<\/div>\n\t\t<\/footer>\n\t\t\n\t\t\t<div class=\"ae-toasts\" aria-live=\"polite\"><\/div>\n\n\t\t\t<div class=\"ae-drawer\" hidden>\n\t\t\t\t<div class=\"ae-drawer-backdrop\"><\/div>\n\t\t\t\t<aside class=\"ae-drawer-panel\" role=\"dialog\" aria-modal=\"true\">\n\t\t\t\t\t<header class=\"ae-drawer-head\">\n\t\t\t\t\t\t<h2 class=\"ae-drawer-title\"><\/h2>\n\t\t\t\t\t\t<div class=\"ae-drawer-actions\"><\/div>\n\t\t\t\t\t\t<button type=\"button\" class=\"ae-icon-btn ae-drawer-print\" title=\"Stampa o salva in PDF\" aria-label=\"Stampa o salva in PDF\"><svg class=\"ae-ico ae-ico--stampa\" width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M6 9V3h12v6\"\/><path d=\"M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2\"\/><path d=\"M6 14h12v7H6z\"\/><\/svg><em>PDF<\/em><\/button>\n\t\t\t\t\t\t<button type=\"button\" class=\"ae-icon-btn ae-drawer-full\" aria-pressed=\"false\" title=\"Apri a tutto schermo\" aria-label=\"Apri a tutto schermo\"><span class=\"ae-full-on\"><svg class=\"ae-ico ae-ico--espandi\" width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M15 3h6v6\"\/><path d=\"M9 21H3v-6\"\/><path d=\"M21 3l-7 7\"\/><path d=\"M3 21l7-7\"\/><\/svg><em>Tutto schermo<\/em><\/span><span class=\"ae-full-off\"><svg class=\"ae-ico ae-ico--riduci\" width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M9 3v6H3\"\/><path d=\"M15 21v-6h6\"\/><path d=\"M3 9l7-7\"\/><path d=\"M21 15l-7 7\"\/><\/svg><em>Riduci<\/em><\/span><\/button>\n\t\t\t\t\t\t<button type=\"button\" class=\"ae-icon-btn ae-drawer-close\" title=\"Chiudi (Esc)\" aria-label=\"Chiudi\"><svg class=\"ae-ico ae-ico--x\" width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M6 6l12 12M18 6 6 18\"\/><\/svg><em>Chiudi<\/em><\/button>\n\t\t\t\t\t<\/header>\n\t\t\t\t\t<div class=\"ae-drawer-body\"><\/div>\n\t\t\t\t<\/aside>\n\t\t\t<\/div>\n\n\t\t\t<div class=\"ae-modal\" hidden>\n\t\t\t\t<div class=\"ae-modal-backdrop\"><\/div>\n\t\t\t\t<div class=\"ae-modal-panel\" role=\"dialog\" aria-modal=\"true\">\n\t\t\t\t\t<header class=\"ae-modal-head\">\n\t\t\t\t\t\t<h2 class=\"ae-modal-title\"><\/h2>\n\t\t\t\t\t\t<button type=\"button\" class=\"ae-icon-btn ae-modal-close\" aria-label=\"Chiudi\"><svg class=\"ae-ico ae-ico--x\" width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M6 6l12 12M18 6 6 18\"\/><\/svg><\/button>\n\t\t\t\t\t<\/header>\n\t\t\t\t\t<div class=\"ae-modal-body\"><\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\n\t\t\t<div class=\"ae-lightbox-layer\" hidden><img decoding=\"async\" src=\"\" alt=\"\"><\/div>\n\n\t\t\t<div class=\"ae-palette\" hidden>\n\t\t\t\t<div class=\"ae-palette-backdrop\"><\/div>\n\t\t\t\t<div class=\"ae-palette-panel\">\n\t\t\t\t\t<input type=\"text\" class=\"ae-palette-input\" placeholder=\"Cerca anagrafiche, schede, comandi\u2026\">\n\t\t\t\t\t<div class=\"ae-palette-results\"><\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div>\n\t\t\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":6,"menu_order":11,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-621","page","type-page","status-publish"],"_links":{"self":[{"href":"https:\/\/alterego360.it\/index.php?rest_route=\/wp\/v2\/pages\/621","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/alterego360.it\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/alterego360.it\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/alterego360.it\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/alterego360.it\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=621"}],"version-history":[{"count":0,"href":"https:\/\/alterego360.it\/index.php?rest_route=\/wp\/v2\/pages\/621\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/alterego360.it\/index.php?rest_route=\/wp\/v2\/pages\/6"}],"wp:attachment":[{"href":"https:\/\/alterego360.it\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=621"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}