function insertScript(t,e,n){const c=document.createElement("script");c.onload=e;for(let t in n)c.setAttribute(t,n[t]);c.src=t,document.head.appendChild(c)}function insertScripts(t,e){let n=t.length;t.forEach(t=>{insertScript(t,t=>{!--n&&e&&e()})})}function insertCSS(t,e){ajax_get({url:t,onsuccess:t=>{const n=document.createElement("style");n.innerText=t,document.head.appendChild(n),e&&e(t)}})}function insertCSSs(t,e){let n=t.length;t.forEach(t=>{insertCSS(t,t=>{!--n&&e&&e()})})}function baseLoadings(t,e="template.html"){insertScript(ASSET_URL+"js/vendor/ajax.min.js",n=>{ajax_get({url:ASSET_URL+e,onsuccess:e=>{document.getElementById("q-data-wrapper").innerHTML=e,t()}})})}function endSettings(){const t=document.getElementById("q-data-script");t&&t.remove()}const locals=["http://localhost","http://localhost:81"],u=document.currentScript.getAttribute("u"); const ASSET_URL=locals.includes(window.location.origin)?"http://localhost:81/data-viewer/viewer/otrf-carousel/assets/":"https://data-viewer.kiki.cards/viewer/otrf-carousel/assets/",clientLinks={"##LINK_1##":"https://osservatorioturismoveneto.it/hospitality-data-intelligence/","##LINK_2##":"https://osservatorioturismoveneto.it/sentiment-e-reputazione-online/","##LINK_3##":"https://osservatorioturismoveneto.it/scarica-i-dati-statistici/","##LINK_4##":"https://osservatorioturismoveneto.it/indicatori-arrivi-e-presenze/"};baseLoadings(s=>{const t=[ASSET_URL+"css/min/qcarousel.min.css",ASSET_URL+"css/min/summary_carousel.min.css"];insertCSSs(t,s=>{const t=[ASSET_URL+"js/min/qcarousel.min.js"];insertScripts(t,s=>{const t=document.getElementById("q-data-wrapper");let i=t.innerHTML;for(let s in clientLinks)i=i.replace(s,clientLinks[s]);t.innerHTML=i,insertScript(ASSET_URL+"js/min/summary_carousel.min.js",endSettings)})})});