(function () {
var id = "157ede5e2d60eb59e707273d01889a735659e1b7",
wHTML = '',
baseURL = 'https://www.psicologi-italia.it/',
imgsPath = 'images/app_js_widget',
canonical = 'https://www.psicologi-italia.it/paziente/api/appuntamenti/alessandra-testi';
maxHeight = '40';
skinType = 'light';
widgetPos = 'fixed';
widgetAimg = '1';
wTarget = "_blank";
wD = {"value":"2","label":"Prenota ora il tuo appuntamento","text":"Prenota ora il tuo appuntamento","linkTo":"canonical","image":"ico.png","class":"light","maxWidth":"305","extra":null};
var init = function () {
var wPOs = (widgetPos!="") ? 'position:'+widgetPos+';' : '',
wPad = (widgetAimg!=1) ? 'padding-right:15px !important;':'',
wWidth = (widgetPos=='relative') ? 'max-width:'+wD.maxWidth+'px;' :'',
wStyle = (widgetPos!=""||widgetAimg==1) ? 'style="'+wPOs+''+wPad+''+wWidth+'"' : '',
wHTML = '';
let isWidget = document.getElementById("WidgetAppId_" + id);
var widget = (isWidget)?isWidget:document.createElement("iframe");
widget.id = "WidgetAppId_" + id;
widget.style = " max-height:"+maxHeight+"px;position:"+widgetPos+";z-index: 99;border: none;margin: 0 auto;display: lock; bottom: 0px;right: 0px;width: 100%;";
widget.setAttribute("scrolling","no");
widget.setAttribute("referrerpolicy","no-referrer-when-downgrade");
item.appendChild(widget);
var psiCssElement = document.createElement("link");
psiCssElement.type = "text/css";
psiCssElement.rel = "stylesheet";
psiCssElement.id = "WidgetCSS_" + id;
psiCssElement.href = baseURL + "css/legacy_widget_style.css?v=1743731589";
var doc = document.getElementById("WidgetAppId_" + id).contentWindow.document;
doc.open();
doc.write('' + wHTML + '');
doc.head.appendChild(psiCssElement);
doc.close();
};
init();
})();