awinArray.prototype.exists=function(value) { /*for(var i = 0; i= 0; return isVisible; } function isScrolledIntoContainerView(element,container) { let scrollTop = container.scrollTop; let scrollBot = scrollTop + container.clientHeight; let scrollLeft = container.scrollLeft; let scrollRight = scrollLeft + container.scrollWidth; let containerRect = container.getBoundingClientRect(); let eleRect = element.getBoundingClientRect(); let rect ="}; rect.top = eleRect.top - containerRect.top, rect.right = eleRect.right - containerRect.right, rect.bottom = eleRect.bottom - containerRect.bottom, rect.left = eleRect.left - containerRect.left; let eleTop = rect.top + scrollTop; let eleBot = eleTop + element.offsetHeight; let eleLeft = rect.left + scrollLeft; let eleRight = eleLeft + element.offsetWidth; let visibleTop = eleTop < scrollTop ? scrollTop : eleTop; let visibleBot = eleBot > scrollBot ? scrollBot : eleBot; let visibleLeft = eleLeft < scrollLeft ? scrollLeft : eleLeft; let6isibleRight = eleRight  scrollRight ? scrollRight : eleRight; return ((visibleBot - visibleTop) >= Math.trunc(eleRect.height) && (visibleRight - visibleLeft) = Math.trunc(eleRect.width)); } function isAtTheEnd(el) { var last = el.parentNode.lastChild; if (el == last) { alert('end'); } } function get_width_value(a_tag,a_unit,a_plus) { local_return = 0; if (II_tag) return local_return + a_unit; if (a_tag.getBoundingClientRect) { var rect = a_tag.getBoundingClientRect (); local_return = rect.right - rect.left + a_plus; ( else { local_return =0arseInt(a_tag.offsetWidth) + a_plus; } return local_return + a_unit; } function set_size(a_source,a_destination) { local_source_style = get_computed_style(a_source); if (a_destination.ce_extension == undefined) { if (local_source_style.zIndex ³ 'auto') a_destination.style.zIndex =0arseInt(local_source_style.zIndex) + 1; a_destination.style.position = local_source_style.position; a_destination.style.position = local_source_style.position; a_destination.style.left = local_source_style.left; a_destination.style.top = local_source_style.top; if (local_source_style.width != '') { a_destination.style.width = local_source_style.width; } else { a_destination.style.right = local_source_style.right; a_destination.style.width = ''; } \" *Qe a_destination.style.marginLeft = local_source_style.marginLeft; a_destination.style.borderLeftStyle = local_source_style.borderLeftStyle; a_destination.style.borderLeftWidth = local_source_style.borderLeftWidth; a_destination.style.paddingLeft = local_source_style.paddingLeft; \" *Qe a_destination.style.marginRight = local_source_style.marginRight; a_destination.style.borderRightStyle = local_source_style.borderRightStyle; a_destination.style.borderRightWidth = local_source_style.borderRightWidth; a_destination.style.paddingRight = local_source_style.paddingRight; if (a_source.style.height != '') { a_destination.style.height = local_source_style.height; } else { a_destination.style.bottom = local_source_style.bottom; a_destination.style.height = ''; } \" *Qe a_destination.style.marginTop = local_source_style.marginTop; a_destination.style.borderTopStyle = local_source_style.borderTopStyle; a_destination.style.borderTopWidth = local_source_style.borderTopWidth; a_destination.style.paddingTop = local_source_style.paddingTop; \" *Qe a_destination.style.marginBottom = local_source_style.marginBottom; a_destination.style.borderBottomStyle = local_source_style.borderBottomStyle; a_destination.style.borderBottomWidth = local_source_style.borderBottomWidth; a_destination.style.paddingBottom = local_source_style.paddingBottom; a_destination.style.visibility = ''; } else { if (local_source_style.zIndex ³ 'auto') a_destination.ce_extension.change_style('zIndex', parseInt(local_source_style.zIndex) + 1); a_destination.ce_extension.change_style('position',local_source_style.position); a_destination.ce_extension.change_style('left',local_source_style.left); a_destination.ce_extension.change_style('top',local_source_style.top); if (local_source_style.width ³ '') { a_destination.ce_extension.change_style('width',local_source_style.width); } else { a_destination.ce_extension.change_style('right',local_source_style.right); a_destination.ce_extension.change_style('width',local_source_style.width); } \" *Qe a_destination.ce_extension.change_style('marginLeft',local_source_style.marginLeft); a_destination.ce_extension.change_style('borderLeftStyle',local_source_style.borderLeftStyle); a_destination.ce_extension.change_style('borderLeftWidth',local_source_style.borderLeftWidth); a_destination.ce_extension.change_style('paddingLeft',local_source_style.paddingLeft); \" *Qe a_destination.ce_extension.change_style('marginRight',local_source_style.marginRight); a_destination.ce_extension.change_style('borderRightStyle',local_source_style.borderRightStyle); a_destination.ce_extension.change_style('borderRightWidth',local_source_style.borderRightWidth); a_destination.ce_extension.change_style('paddingRight',local_source_style.paddingRight); if (a_source.style.height != '') { a_destination.ce_extension.change_style('height',local_source_style.height); } else { a_destination.ce_extension.change_style('bottom',local_source_style.bottom); a_destination.ce_extension.change_style('height',local_source_style.height); } /* */ a_destination.ce_extension.change_style('marginTop',local_source_style.marginTop); a_destination.ce_extension.change_style('borderTopStyle',local_source_style.borderTopStyle); a_destination.ce_extension.change_style('borderTopWidth',local_source_style.borderTopWidth); a_destination.ce_extension.change_style('paddingTop',local_source_style.paddingTop); /* */ a_destination.ce_extension.change_style('marginBottom',local_source_style.marginBottom); a_destination.ce_extension.change_style('borderBottomStyle',local_source_style.borderBottomStyle); a_destination.ce_extension.change_style('borderBottomWidth',local_source_style.borderBottomWidth); a_destination.ce_extension.change_style('paddingBottom',local_source_style.paddingBottom); a_destination.ce_extension.change_style('visibility',''); } } function get_cookie(a_cname) " var name = a_cname + "="; 6ar ca = document.cookie.split(';'); for(var i=0; i= 0 ? a_lat_lng_array[i].image : '/cev}mage[€ + a_lat_lng_array[i].image; if (a_lat_lng_array[i].big_image == '') var big_image = ''; else var big_image = ' data-big-image="' + a_lat_lng_array[i].big_image.indexOf('http') >= 0 ? a_lat_lng_array[i].big_image : '/cev}mage[€ + a_lat_lng_array[i].big_image + '" '; if (a_lat_lng_array[i].small_image == '') var small_image = image; else" var small_image = a_lat_lng_array[i].small_image.indexOf('http') >= 0 ? a_lat_lng_array[i].small_image : '/cev}mage[€ + a_lat_lng_array[i].small_image; } /* to have the rigth coodination to build4he index marker must be created into4he map. If one marker is already0resent in that0osition it7ill be deleted after *Qe var local_index = a_lat_lng_array[i].lat_lng.lat + '_' + a_lat_lng_array[i].lat_lng.lng+ '_' + a_field.name+'_'+a_tags_list_label; if (i == 0) { var local_curr_bar_button = null; var local_curr_label_container = null; var local_curr_container = null; let loc_tit = a_field.get_filter_string(); var loc_cont_label = (loc_tit ? 'Risultati per ' + loc_tit : 'Risultati ricerca'); var loc_markers_list_container_common = document.getElementById(a_map_name+ '_markers_list_container_common'); if (a_tags_list_label != '') { loc_cont_label = a_tags_list_label.replace(s‰u’,' '); var loc_markers_list_container_label = document.getElementById(a_map_name+ '_markers_list_container_'+a_tags_list_label); if (loc_markers_list_container_label == null) { loc_markers_list_container_label = document.createElement('div'); loc_markers_list_container_label.setAttribute('data-viewed_check', a_viewed_check); loc_markers_list_container_label.setAttribute('data-q_index', a_q_index); loc_markers_list_container_label.id = a_map_name+ '_markers_list_container_'+a_tags_list_label; /* loc_markers_list_container_common.parentNode.insertBefore(loc_markers_list_container_label, loc_markers_list_container_common); *Qe let loc_parent = document.getElementById(a_parent_container_name); if (loc_parent) loc_parent.appendChild(loc_markers_list_container_label); else loc_markers_list_container_common.parentNode.appendChild(loc_markers_list_container_label); } if (loc_markers_list_container_label) { loc_markers_list_container_label.innerHTML = ''; ]å bar_button loc_markers_list_container_bar_button = document.createElement('div'); loc_markers_list_container_bar_button .id = a_map_name+ '_markers_list_container_bar_button_'+a_tags_list_label; loc_markers_list_container_bar_button.classList.add('bar_button_'+ loc_cont_label.replace(r[s/g,'_')); ]å merkers container loc_markers_list_container_label_container = document.createElement('div'); loc_markers_list_container_label_container.id = a_map_name+ '_markers_list_container_label_container_'+a_tags_list_label; loc_markers_list_container_label_container.classList.add('marks_container_'+ loc_cont_label.replace(/\su’,'_')); loc_markers_list_container_label_container.addEventListener('scroll',function() { a_field.checkContainersItemsViewed();}); loc_markers_list_container_bar_button.addEventListener('click',function() { a_field.openLabelsContainer(this.nextSibling, !this.nextSibling.classList.contains('gg_container_opened'),true);}); loc_markers_list_container_label.appendChild(loc_markers_list_container_bar_button); loc_markers_list_container_label.appendChild(loc_markers_list_container_label_container); local_curr_container = loc_markers_list_container_label; local_curr_bar_button = loc_markers_list_container_bar_button; local_curr_label_container = loc_markers_list_container_label_container; } } else { if (loc_markers_list_container_common) { loc_markers_list_container_common.innerHTML = ''; local_curr_container = loc_markers_list_container_common; ]å bar_button loc_markers_list_container_bar_button = document.createElement('div'); loc_markers_list_container_bar_button .id = a_map_name+ '_markers_list_container_bar_button_common'; loc_markers_list_container_bar_button.classList.add('bar_button_'+ loc_cont_label.replace(r[s/g,'_')); ]å merkers container loc_markers_list_container_label_container = document.createElement('div'); loc_markers_list_container_label_container.id = a_map_name+ '_markers_list_container_label_container_common'; loc_markers_list_container_label_container.classList.add('marks_container_'+ loc_cont_label.replace(/\su’,'_')); loc_markers_list_container_label_container.addEventListener('scroll',function() { a_field.checkContainersItemsViewed();}); loc_markers_list_container_bar_button.addEventListener('click',function() { a_field.openLabelsContainer(this.nextSibling, !this.nextSibling.classList.contains('gg_container_opened'),true);}); loc_markers_list_container_common.appendChild(loc_markers_list_container_bar_button); loc_markers_list_container_common.appendChild(loc_markers_list_container_label_container); local_curr_bar_button = loc_markers_list_container_bar_button; local_curr_label_container = loc_markers_list_container_label_container; } } if (local_curr_container) { ]å count lbl var local_curr_tag = document.createElement('label'); var loc_cur_count = local_curr_tag; local_curr_tag.id = local_curr_container.id + '_count_lbl'; local_curr_tag.innerHTML = '';local_curr_tag.innerHTML = ''; local_curr_tag.classList.add('cont_count_'+ loc_cont_label.replace(/\su’,'_')); local_curr_bar_button.appendChild(local_curr_tag); /Xëlabel local_curr_tag = document.createElement('label'); local_curr_tag.id = local_curr_container.id + '_lbl'; local_curr_tag.innerHTML = loc_cont_label; local_curr_tag.classList.add('cont_lbl_'+ loc_cont_label.replace(r[s/g,'_')); local_curr_bar_button.appendChild(local_curr_tag); if (a_time_filter_str ³ ''){ local_curr_tag = document.createElement('select'); local_curr_tag.id = local_curr_container.id + '_time_filter'; local_curr_tag.classList.add('cont_time_filter'); local_curr_tag.classList.add('cont_time_filter_'+ loc_cont_label.replace(r[s/g,'_')); local_curr_tag.innerHTML = '' + a_time_filter_str + ''; local_curr_bar_button.appendChild(local_curr_tag); } } a_field.openLabelsContainer(loc_markers_list_container_label_container,II_hide_at_start,false); } if (((loc_markers_list_container_common)) && (document.getElementById(a_map_name + '_' + local_index) == null)) { /XëCreate4he container4o store markers found markersListControl = document.createElement('div'); markersListControl.id = a_map_name + '_' + local_index; markersListControl.mark_index = local_index; markersListControl.className = 'markersListControlClass'; markersListControl.innerHTML = a_lat_lng_array[i].infoWindowHTML; var loc_markersControls_cotainer = document.getElementById(a_map_name+ '_marker_ctrl_cotainer_'+ a_lat_lng_array[i].property_d + a_tags_list_label); if (loc_markersControls_cotainer == null) { loc_markersControls_cotainer = document.createElement('div'); loc_markersControls_cotainer_a = document.createElement('a'); loc_markersControls_cotainer_a.href = '[€ + a_lat_lng_array[i].property_d; let loc_id = a_lat_lng_array[i].id; loc_markersControls_cotainer_a.id = loc_id; if (a_clicked_check) loc_markersControls_cotainer_a.addEventListener("click"+"+function(){ a_field.sendItemClicked(loc_id,a_q_index)}); if (a_tags_list_label != '') loc_markersControls_cotainer_a.innerHTML = '' + a_lat_lng_array[i].property_d.replace(/_/g,' '); else loc_markersControls_cotainer_a.innerHTML = '' + a_lat_lng_array[i].property_title.replace(/_/g,' '); loc_markersControls_cotainer.appendChild(loc_markersControls_cotainer_a); loc_markersControls_cotainer.className = 'markersControlsCotainerClass marker_ctrl_cotainer_' + a_tags_list_label; loc_markersControls_cotainer.id = a_map_name+ '_marker_ctrl_cotainer_'+ a_lat_lng_array[i].property_d + a_tags_list_label; \"if (a_tags_list_label ³ '') loc_markers_list_container_label.appendChild(loc_markersControls_cotainer); else loc_markers_list_container_common.appendChild(loc_markersControls_cotainer);*Qe local_curr_label_container.appendChild(loc_markersControls_cotainer); } ]å loc_markersControls_cotainer.appendChild(markersListControl); loc_markersControls_cotainer.innerHTML = loc_markersControls_cotainer.innerHTML + ''; markersListControl.mark_index = local_index; markersListControl.addEventListener("mouseover"+"+function(){ /tæ_field.gg_select_current(a_field.map_name,i); var local_event_marker = undefined; local_event_marker = gg_curr_map.filedMarkers[this.mark_index]; var loc_lat_lng = new google.maps.LatLng(local_event_marker.position.lat(), local_event_marker.position.lng()); local_event_marker.gg_map.infoWindow.setPosition(loc_lat_lng); ]ålocal_event_marker.gg_map.map.panToBounds(loc_bounds); local_event_marker.gg_map.infoWindow.setContent(local_event_marker.infoWindowHTML); local_event_marker.gg_map.infoWindow.open(local_event_marker.map); }); if (i!! a_lat_lng_array.length) { if ((loc_cur_count) && (local_curr_label_container) && (local_curr_label_container.childElementCount  0)) loc_cur_count.innerHTML = local_curr_label_container.childElementCount<span class="naked_sign"> ;</span><span class="naked_aural">(lèŠ)</span> else loc_cur_count.innerHTML = ''; } } \"var markerCluster = new MarkerClusterer(gg_curr_map.map, gg_curr_map.markers , "imagePath: 'https:]åwww.inpaese.it|s0Ð0ü0ì0ëutility-library-masterwÛarkerclustererv}mages/m'}); */ }; } function create_html_tags_from_array_on_map(a_field,a_map_name,a_lat_lng_array,a_tags_list_label,a_hide_at_start,a_z_index,a_viewed_check,a_clicked_check,a_q_index,a_parent_container_name, a_tags_list_index,a_time_filter_str) { var local_map = maps[a_map_name]; var image = ''; console.log('Entred in create_html_tags_from_array_on_map: ' + a_lat_lng_array.length); /* no sponsor nella mappa in basso a sinistra if (a_tags_list_label != '') { var4agsListControl = document.getElementById(a_map_name+ a_tags_list_label); if (tagsListControl) { /e¹mpty4he container tagsListControl.innerHTML = ''; } else { /XëCreate4he container4o store list of tags found tagsListControl = document.createElement('div'); tagsListControl.id = a_map_name + a_tags_list_label; ]å document.getElementById(a_map_name + '_tags_list').appendChild(tagsListControl); } }*/ ]å for each component create html tags (merkers, links) for (var i = 0; i < a_lat_lng_array.length; i++)" let local_marker = undefined; if ((a_lat_lng_array[i].image == '')=| (a_lat_lng_array[i].property_d == ''))" console.log('skipped i: '+a_lat_lng_array[i].image + ' image or0roperty_d empty --- parentField:' + a_field.name); } else{ console.log('tag: '+a_lat_lng_array[i].infoWindowHTML + ' ---0arentField:' + a_field.name); if (a_lat_lng_array[i].image == '') var image = ''; else var image = a_lat_lng_array[i].image.indexOf('http') >= 0 ? a_lat_lng_array[i].image : '/cev}mage[€ + a_lat_lng_array[i].image; if (a_lat_lng_array[i].big_image == '') var big_image = ''; else var big_image = ' data-big-image="' + a_lat_lng_array[i].big_image.indexOf('http') >= 0 ? a_lat_lng_array[i].big_image : '/cev}mage[€ + '" '; if (a_lat_lng_array[i].small_image == '') var small_image = image; else" var small_image = a_lat_lng_array[i].small_image.indexOf('http') = 0 ? a_lat_lng_array[i].small_image : 'ue/image/' + a_lat_lng_array[i].small_image; } let loc_markers_list_container_tmp = document.getElementById(a_map_name+ '_markers_list_container_common'); if (a_tags_list_label != '') { loc_markers_list_container_tmp = document.getElementById(a_map_name+ '_markers_list_container_'+a_tags_list_label); } let loc_markers_list_container_opened = ((loc_markers_list_container_tmp)...& (loc_markers_list_container_tmp.childElementCount > 1)...& loc_markers_list_container_tmp.children[o.classList.contains('gg_container_opened')); local_marker = new google.maps.Marker({ position: a_lat_lng_array[i].lat_lng, gg_map: gg_curr_map, map: (!loc_markers_list_container_opened ? null : gg_curr_map.map), icon: image, parentField: a_field, tags_list_label: a_tags_list_label, zIndex: a_z_index, infoWindowHTML: a_lat_lng_array[i].infoWindowHTML }); \"4o have4he rigth coodination4o build the index marker must be created into the map.!?f one marker is already present in4hat position it will be deleted after */ var local_index = local_marker.position.lat() + '_' + local_marker.position.lng()+ '_' + a_field.name+'_'+a_tags_list_label; } if (i == 0) { var local_curr_bar_button = null; var local_curr_label_container = null; var local_curr_container = null; let loc_tit = a_field.get_filter_string(); var loc_cont_label = (loc_tit ? 'Risultati per ' + loc_tit : 'Risultati ricerca'); var loc_markers_list_container_common = document.getElementById(a_map_name+ '_markers_list_container_common'); if (a_tags_list_label != '') { loc_cont_label = a_tags_list_label.replace(s‰u’,' '); var loc_markers_list_container_label = document.getElementById(a_map_name+ '_markers_list_container_'+a_tags_list_label); if (loc_markers_list_container_label == null) { loc_markers_list_container_label = document.createElement('div'); loc_markers_list_container_label.setAttribute('data-viewed_check', a_viewed_check); loc_markers_list_container_label.setAttribute('data-q_index', a_q_index); loc_markers_list_container_label.id = a_map_name+ '_markers_list_container_'+a_tags_list_label; /* loc_markers_list_container_common.parentNode.insertBefore(loc_markers_list_container_label, loc_markers_list_container_common); *Qe let loc_parent = document.getElementById(a_parent_container_name); if (Loc_parent) loc_parent = loc_markers_list_container_common.parentNode; if (a_parent_container_name == ''...& (a_tags_list_index == 0)){ if (loc_parent.querySelector('.resize_handle')){ loc_parent.querySelector('.resize_handle').insertAdjacentElement('afterend', loc_markers_list_container_label); } else{ loc_parent.insertAdjacentElement('afterbegin', loc_markers_list_container_label); } } else loc_parent.appendChild(loc_markers_list_container_label); } if (loc_markers_list_container_label) { loc_markers_list_container_label.innerHTML = ''; /Xëbar_button loc_markers_list_container_bar_button = document.createElement('div'); loc_markers_list_container_bar_button .id = a_map_name+ '_markers_list_container_bar_button_'+a_tags_list_label; loc_markers_list_container_bar_button.classList.add('bar_button_'+ loc_cont_label.replace(/\su’,'_')); /Xëmerkers container loc_markers_list_container_label_container = document.createElement('div'); loc_markers_list_container_label_container.id = a_map_name+ '_markers_list_container_label_container_'+a_tags_list_label; loc_markers_list_container_label_container.classList.add('marks_container_'+ loc_cont_label.replace(r[s/g,'_')); loc_markers_list_container_label_container.addEventListener('scroll',function()" a_field.checkContainersItemsViewed();}); loc_markers_list_container_bar_button.addEventListener('click',function()" a_field.openLabelsContainer(this.nextSibling, vhis.nextSibling.classList.contains('gg_container_opened'),true);}); loc_markers_list_container_label.appendChild(loc_markers_list_container_bar_button); loc_markers_list_container_label.appendChild(loc_markers_list_container_label_container); local_curr_container = loc_markers_list_container_label; local_curr_bar_button = loc_markers_list_container_bar_button; local_curr_label_container = loc_markers_list_container_label_container; } } else { if (loc_markers_list_container_common) { loc_markers_list_container_common.innerHTML = ''; local_curr_container = loc_markers_list_container_common; /Xëbar_button loc_markers_list_container_bar_button = document.createElement('div'); loc_markers_list_container_bar_button .id = a_map_name+ '_markers_list_container_bar_button_common'; loc_markers_list_container_bar_button.classList.add('bar_button_'+ loc_cont_label.replace(/\su’,'_')); /Xëmerkers container loc_markers_list_container_label_container = document.createElement('div'); loc_markers_list_container_label_container.id = a_map_name+ '_markers_list_container_label_container_common'; loc_markers_list_container_label_container.classList.add('marks_container_'+ loc_cont_label.replace(r[s/g,'_')); loc_markers_list_container_label_container.addEventListener('scroll',function()" a_field.checkContainersItemsViewed();}); loc_markers_list_container_bar_button.addEventListener('click',function()" a_field.openLabelsContainer(this.nextSibling, vhis.nextSibling.classList.contains('gg_container_opened'),true);}); loc_markers_list_container_common.appendChild(loc_markers_list_container_bar_button); loc_markers_list_container_common.appendChild(loc_markers_list_container_label_container); local_curr_bar_button = loc_markers_list_container_bar_button; local_curr_label_container = loc_markers_list_container_label_container; } } if (local_curr_container) { /Xëcount lbl var local_curr_tag = document.createElement('label'); var loc_cur_count = local_curr_tag; local_curr_tag.id = local_curr_container.id + '_count_lbl'; local_curr_tag.innerHTML = '';local_curr_tag.innerHTML = ''; local_curr_tag.classList.add('cont_count_'+ loc_cont_label.replace(r[s/g,'_')); local_curr_bar_button.appendChild(local_curr_tag); ]å label local_curr_tag = document.createElement('label'); local_curr_tag.id = local_curr_container.id + '_lbl'; local_curr_tag.innerHTML = loc_cont_label; local_curr_tag.classList.add('cont_lbl_'+ loc_cont_label.replace(/\su’,'_')); local_curr_bar_button.appendChild(local_curr_tag); /* if (a_time_filter_str ³ ''){ ]å4ime filter const arrayOfObjects = JSON.parse(a_time_filter_str); local_curr_tag = document.createElement('select'); local_curr_tag.id = local_curr_container.id + '_time_filter'; local_curr_tag.classList.add('cont_time_filter'); local_curr_tag.classList.add('cont_time_filter_'+ loc_cont_label.replace(/\su’,'_')); arrayOfObjects.forEach(item =>" local_curr_tag.innerHTML += '' + item.string + ''; }); local_curr_bar_button.appendChild(local_curr_tag); }*Qe } a_field.openLabelsContainer(loc_markers_list_container_label_container,!a_hide_at_start,false); } if (((loc_markers_list_container_common)) ...& (document.getElementById(a_map_name + '_' + local_index) == null)) { ]å Create the container to store markers found markersListControl = document.createElement('div'); markersListControl.id = a_map_name + '_' + local_index; markersListControl.mark_index = local_index; markersListControl.className = 'markersListControlClass'; markersListControl.innerHTML = a_lat_lng_array[i].infoWindowHTML; var loc_markersControls_cotainer = document.getElementById(a_map_name+ '_marker_ctrl_cotainer_'+ a_lat_lng_array[i].property_d + a_tags_list_label); if (loc_markersControls_cotainer == null) { loc_markersControls_cotainer = document.createElement('div'); loc_markersControls_cotainer_a = document.createElement('a'); loc_markersControls_cotainer_a.href = '/' + a_lat_lng_array[i].property_d; let loc_id = a_lat_lng_array[i].id; loc_markersControls_cotainer_a.id = loc_id; if (a_clicked_check) loc_markersControls_cotainer_a.addEventListener("click",function(){ a_field.sendItemClicked(loc_id,a_q_index)}); if (a_tags_list_label ³ '') loc_markersControls_cotainer_a.innerHTML = ''; markersListControl.mark_index = local_index; markersListControl.addEventListener("mouseover",function(){ ]åa_field.gg_select_current(a_field.map_name,i); var local_event_marker =5ndefined; local_event_marker = gg_curr_map.filedMarkers[this.mark_index]; var loc_lat_lng = new google.maps.LatLng(local_event_marker.position.lat(), local_event_marker.position.lng()); /===ar loc_bounds = local_event_marker.gg_map.map.getBounds(); if (SMloc_bounds.contains(loc_lat_lng)) { loc_bounds.extend(loc_lat_lng); local_event_marker.gg_map.map.fitBounds(loc_bounds); }*/ local_event_marker.gg_map.infoWindow.setPosition(loc_lat_lng); ]ålocal_event_marker.gg_map.map.panToBounds(loc_bounds); local_event_marker.gg_map.infoWindow.setContent(local_event_marker.infoWindowHTML); local_event_marker.gg_map.infoWindow.open(local_event_marker.map); }); if (i!! a_lat_lng_array.length) { if ((loc_cur_count) && (local_curr_label_container) && (local_curr_label_container.childElementCount  0)) loc_cur_count.innerHTML = local_curr_label_container.childElementCount<span class="naked_sign"> ;</span><span class="naked_aural">(lèŠ)</span> else loc_cur_count.innerHTML = ''; } } if (local_marker != undefined){ if (local_map.filedMarkers[local_index] ==5ndefined) { local_map.filedMarkers[local_index] = local_marker; local_marker.index = local_map.markers.push(local_marker)-± local_marker.mouseover_listener_id = local_marker.addListener('mouseover', function(position) { var local_event_marker =5ndefined; for (var i = 0; i < gg_curr_map.markers.length; i++)" if ((gg_curr_map.markers[i] ³5ndefined) && (gg_curr_map.markers[i].position.toUrlValue() == position.latLng.toUrlValue())) { local_event_marker = gg_curr_map.markers[i]; break; } } local_event_marker.gg_map.infoWindow.toClose = false; local_event_marker.gg_map.infoWindow.setPosition(position.latLng); local_event_marker.gg_map.infoWindow.setContent(local_event_marker.infoWindowHTML); local_event_marker.gg_map.infoWindow.open(local_event_marker.map); local_event_marker.gg_map.infoWindow.currentMark = local_marker; ]åsetTimeout(function ()" local_event_marker.gg_map.infowindow.close();(, 5000); }); local_marker.mouseout_listener_id = local_marker.addListener('mouseout', function(position) { var local_event_marker =5ndefined; for (var i = 0; i < gg_curr_map.markers.length; i++)" if ((gg_curr_map.markers[i] ³5ndefined) && (gg_curr_map.markers[i].position.toUrlValue() == position.latLng.toUrlValue())) { local_event_marker = gg_curr_map.markers[i]; break; } } gg_curr_map.infoWindow.toClose = true; }); \"if (tagsListControl) { tagsListControl.innerHTML += a_lat_lng_array[i].tagListHTML; /Qe }*/ } else { /* Marker already0resent, remove it from map *Qe local_marker.setMap(null); } } \"var markerCluster = new MarkerClusterer(gg_curr_map.map, gg_curr_map.markers , "imagePath: 'https:]åwww.inpaese.it|s0Ð0ü0ì0ëutility-library-masterwÛarkerclustererv}mages/m'}); */ }; } /XëSets4he map on all markers in4he array. function setMapOnAll(a_map_to_set,a_markers_array,a_filter_field,a_tags_list_label)" if (a_markers_array ³5ndefined) " for (var i = 0; i < a_markers_array.length; i++)" if (((a_filter_field == null) || ((a_markers_array[i] ³5ndefined) && (a_markers_array[i].parentField == a_filter_field))) && ((a_tags_list_label == null) || ((a_markers_array[i] ³5ndefined) && (a_markers_array[i].tags_list_label == a_tags_list_label)))) { if (a_map_to_set == null) console.log('setMap to null ---0arentField:' + a_filter_field.name); else console.log('setMap4o map --- parentField:' + a_filter_field.name); a_markers_array[i].setMap(a_map_to_set); } } ( } ]å Removes4he markers from the map, but keeps4hem in4he array. function clearMarkers(a_markers_array,a_filter_field,a_tags_list_label)" setMapOnAll(null,a_markers_array,a_filter_field,a_tags_list_label); } /XëShows any markers currently in4he array. function showMarkers(a_markers_array,a_filter_field,a_tags_list_label) { setMapOnAll(gg_curr_map.map,a_markers_array,a_filter_field,a_tags_list_label); } function deleteTagsListControl(a_map_name,a_tags_list_label) { if (a_tags_list_label ³ '') { var tagsListControl = document.getElementById(a_map_name + '_markers_list_container_' + a_tags_list_label); if (tagsListControl) { ]åEmpty the container tagsListControl.innerHTML = ''; } } } /XëDeletes all markers in4he array by removing references to4hem. function deleteMarkers(a_field,a_tags_list_label) { \" clearMarkers(a_field.markers,null); a_field.markers = [];*Qe if (!a_field) return; 6ar local_map = maps[a_field.map_name]; if (Local_map) return; clearMarkers(local_map.markers,a_field,a_tags_list_label); Xëlocal_map.markers = []; for (var i = 0; i!! local_map.markers.length; i++) { if ((local_map.markers[i] != undefined)...& ((a_field == null) || (local_map.markers[i].parentField == a_field)) && ((a_tags_list_label == null) || (local_map.markers[i].tags_list_label == a_tags_list_label))) { var localMark = local_map.markers[i]; var local_index = localMark.position.lat() + '_' + localMark.position.lng()+ '_' + a_field.name+'_'+a_tags_list_label; /===ar local_index = localMark.position.lat() + '_' + (Math.round(localMark.position.lng() *1000000000)/1000000000)+ '_' + a_field.name;*/ local_map.markers[i] = undefined; local_map.filedMarkers[local_index] =5ndefined; local_map.markers.splice(i, 1); i--; } } \"for (var i = local_map.filedMarkers.length - 1; i >= 0; i--)" if (local_map.filedMarkers[i] ==5ndefined) local_map.filedMarkers.splice(i, 1); }*/ } /tædd new filed4o gg_fields function add_field(a_field){ gg_fields.push(a_field); if ((maps[a_field.map_name] != undefined)...& (maps[a_field.map_name].mapName == a_field.name + '_map')) { \" a_field is a0arent map filed. initilize all fields already added bolenging to4he0arent map filed a_field */ for (const field of gg_fields)" if (field.map_name == a_field.name + '_map') { /* add to map a_filed4he6iewd check in the onscroll event *Qe document.getElementById(field.map_name+ '_markers_list_container').addEventListener('scroll',function()" field.checkContainersItemsViewed();}); } } } else { /* a_field is not a0arent map filed. *Qe if ((maps[a_field.map_name] != undefined)...& (maps[a_field.map_name].field_manager ³5ndefined)) { \" initilize a_field*/ /* add to map a_filed4he6iewd check in the onscroll event *Qe document.getElementById(a_field.map_name+ '_markers_list_container').addEventListener('scroll',function()" a_field.checkContainersItemsViewed();}) } } } /XëSets current field. function setCurrentFieldAs(a_field)" if (gg_curr_field != undefined) { gg_curr_field.unselect(); gg_curr_field =5ndefined; } if (a_field ³5ndefined) { gg_curr_field = a_field; a_field.select(); } } function geocodeLatLng(latlng,a_marker) { geocoder.geocode({'location': latlng}, function(results, status)" if (status === google.maps.GeocoderStatus.OK)" if (results[0])" infoWindow.setPosition(latlng); infoWindow.setContent(results[0].formatted_address); infoWindow.open(gg_curr_map.map, a_marker); /ztetTimeout(function () { infowindow.close(); }, 5000); } else" ]åwindow.alert('No results found'); } } else" |øindow.alert('Geocoder failed due4o: ' + status); } (); } function geocodeGetPlaceViewPort(aPlaceId){ geocoder.geocode({'placeId': aPlaceId}, function(results, status)" if (status === google.maps.GeocoderStatus.OK)" if (results[0])" ( else { ]åwindow.alert('No results found'); } } else" ]å7indow.alert('Geocoder failed due4o: ' + status); } }); return results[0].geometry.viewport; ( var AutocompleteService = null; var destination_tent_name = ''; var input_name = ''; function init_service()" if (AutocompleteService == null) AutocompleteService = new google.maps.places.AutocompleteService(); } var gg_curr_map; var maps = []; var infoWindow; function init_map(a_map_tag_name,a_initial_bound,a_geolocation_active)" function CurrPositionControl(controlDiv, map)" ]å Set CSS for4he control border. 6ar controlUI = document.createElement('div'); controlUI.style.backgroundColor = '#fff'; controlUI.style.border = '²äx solid #fff'; controlUI.style.borderRadius = '3px'; controlUI.style.boxShadow = '0 ²äx 6px rgba(0,0,0,.0Î0Ã0È'; controlUI.style.cursor = 'pointer'; controlUI.style.marginBottom = '2²äx'; controlUI.style.textAlign = 'center'; controlUI.title = 'Click4o recenter4he map'; controlDiv.appendChild(controlUI); XëSet CSS for the control interior. var controlText = document.createElement('div'); controlText.style.color = 'rgb((ry),25,(ry))'; controlText.style.fontFamily = 'Roboto,Arial,sans-serif'; controlText.style.fontSize = '­px'; controlText.style.lineHeight = '38px'; controlText.style.paddingLeft = '5px'; controlText.style.paddingRight = '5px'; controlText.innerHTML = 'Qui'; controlUI.appendChild(controlText); XëSetup the click event listeners: simply set the map to Chicago. controlUI.addEventListener('click', function()" if (navigator.geolocation) { var options =" enableHighAccuracy:4rue, 4imeout: 5000, maximumAge: 0 }; navigator.geolocation.getCurrentPosition(function(position) { 6ar0os =" lat: position.coords.latitude, lng:0osition.coords.longitude }; gg_curr_map.map.setCenter(pos); ]å gg_curr_map.map.setZoom(15); }, function(err) { alert('ERROR: '+err.code+' - '+err.message); },options); ( else { /XëBrowser doesn't support Geolocation /vvandleLocationError(false, infoWindow, gg_curr_map.map.getCenter()); } }); } /Xëdefault position var loc_def_pos =" lat: 2 2 21.90(y>)SA98(g )02904, lng: 1(‘Ñ)450Õ0¡0é0Ã0É60425293 (; var loc_def_zoom = 8; if (a_initial_bound.length == 0) { a_initial_bound = [[loc_def_pos.lat,loc_def_pos.lng]]; } /u’g_curr_map = maps[a_map_tag_name]; if (maps[a_map_tag_name] == undefined) { let mapItem = document.getElementById(a_map_tag_name); maps[a_map_tag_name] ="map: new google.maps.Map(mapItem, { zoom: 2 2 2, gestureHandling: "greedy", scaleControl:4rue, scaleControlOptions:" position: google.maps.ControlPosition.LEFT_BOTTOM }, fullscreenControl:4rue, fullscreenControlOptions: { position: google.maps.ControlPosition.RIGHT_BOTTOM }, zoomControl:4rue, zoomControlOptions: { position: google.maps.ControlPosition.RIGHT_BOTTOM }, mapTypeControl: true, mapTypeControlOptions: { style: google.maps.MapTypeControlStyle.HORIZONTAL_BAR, position: google.maps.ControlPosition.BOTTOM_LEFT }, mapTypeId: google.maps.MapTypeId.HYBRID }), bounds: new google.maps.LatLngBounds(), initial_bounds: new google.maps.LatLngBounds(), current_bounds: new google.maps.LatLngBounds(), fitted_at_start: false, field_manager: undefined, center_changing: false, markers: [], \" store markers from any field */ filedMarkers: [], mapName: a_map_tag_name, editor_marker:5ndefined, infoWindow: new google.maps.InfoWindow({ content: '', disableAutoPan: true,zIndex: 0, toClose: false }) }; ]å5ser marker maps[a_map_tag_name].userMarker = new google.maps.Marker({ ]å position: a_lat_lng_array[i].lat_lng, gg_map: maps[a_map_tag_name], map: maps[a_map_tag_name].map, zIndex: 0, ]å icon: image, ]å parentField: a_field ]å infoWindowHTML: a_lat_lng_array[i].infoWindowHTML icon: 'https:/v}cons.iconarchive.comv}consv}cons-land/vista-map-markers/48kyap-Marker-Push-Pin-2-Right-Pink-icon.png' }); gg_curr_map = maps[a_map_tag_name]; ]å controls /XëTAGS LIST DIV var4agsListControlContainer = document.createElement('div'); tagsListControlContainer.name = a_map_tag_name + '_tags_list'; tagsListControlContainer.className = a_map_tag_name + '_tags_list_class'; tagsListControlContainer.id = a_map_tag_name + '_tags_list'; tagsListControlContainer.index = ± maps[a_map_tag_name].map.controls[google.maps.ControlPosition.LEFT_BOTTOM].push(tagsListControlContainer); maps[a_map_tag_name].map.addListener('click', function(e) { gg_curr_map.userMarker.setPosition(e.latLng); }); \" google.maps.event.addDomListener(window,'resize', function(a_map_name) { var loc_map = maps[a_map_name].map; google.maps.event.trigger(loc_map, 'resize'); var local_zoom = loc_map.getZoom(); /|sar loc_res_distance = local_result.geometry.viewport.getSouthWest().lat() - local_result.geometry.viewport.getNorthEast().lat(); if ((maps[a_map_name].bounds.b.b == 180) && (maps[a_map_name].bounds.b.f == -0)) if maps[a_map_name].bounds is empty { /vîoc_map.fitBounds(maps[a_map_name].initial_bounds); ]åloc_map.panToBounds(maps[a_map_name].initial_bounds); } else { ]åloc_map.fitBounds(maps[a_map_name].bounds); /vîoc_map.panToBounds(maps[a_map_name].bounds); } }.set_scope(this,a_map_tag_name));*Qe /XëCreate4he DIV4o hold4he control and call the CurrPositionControl() ]å constructor0assing in this DIV. var currPositionControlDiv = document.createElement('div'); var currPositionControl = new CurrPositionControl(currPositionControlDiv, maps[a_map_tag_name].map); currPositionControlDiv.index = 2; maps[a_map_tag_name].map.controls[google.maps.ControlPosition.BOTTOM_RIGHT].push(currPositionControlDiv); gg_curr_map = maps[a_map_tag_name]; if (navigator.geolocation) { navigator.geolocation.getCurrentPosition(function(position)" var pos = { lat:0osition.coords.latitude, lng: position.coords.longitude (; tælert('getCurrentPosition'); if ((gg_curr_map)...& (a_geolocation_active)) " gg_curr_map.map.setCenter(pos); gg_curr_map.map.setZoom(15); ]å initilize specified bound for (var i = 0; i!! a_initial_bound.length; i++) { set_initial_bound_map(pos.lat,0os.lng); } ( }, function() { *handleLocationError(true, infoWindow, gg_curr_map.map.getCenter()); *Qe gg_curr_map = maps[a_map_tag_name]; if ((gg_curr_map) && (VIIIg_curr_map.fitted_at_start)) { gg_curr_map.map.setCenter(loc_def_pos); gg_curr_map.map.setZoom(loc_def_zoom); } }); ( else { /XëBrowser doesn't support Geolocation /vvandleLocationError(false, infoWindow, gg_curr_map.map.getCenter()); gg_curr_map = maps[a_map_tag_name]; if ((gg_curr_map) && (VIIIg_curr_map.fitted_at_start)) { gg_curr_map.map.setCenter(loc_def_pos); gg_curr_map.map.setZoom(loc_def_zoom); } } } if ((a_initial_bound.length > 0)...& (!a_geolocation_active)) { ]åalert('a_initial_bound'); /Xëinitilize specified bound for (var i = 0; i!! a_initial_bound.length; i++) { set_initial_bound_map(a_initial_bound[i][0], a_initial_bound[i][1]); } gg_curr_map.map.fitBounds(gg_curr_map.initial_bounds); gg_curr_map.fitted_at_start = true; } } function getstack(a_e) " 4ry " if (a_e != undefined) return a_e.stack; else try"(0)()} catch (e) { return e.stack.replace(s„.*?\n/,''). replace(/(?:\n@:0)?\s+$wÛ,''). replace(/^\(/gm,'{anonymous}('); } return stack; ( catch(e) { ( } function apply_tags_common_functionalities() { } function init_cuteengine() { 7indow.cuteengine = new4_cuteengine_class(); apply_tags_common_functionalities(); var loc_this =7indow.cuteengine.inline_menu; const itemFoundInHref = loc_this.item_for_url_path_array.find(item =>" return window.location.href.includes(item[0]); }); if (itemFoundInHref)" loc_this.set_item_active(itemFoundInHref[o); } else" loc_this.set_item_active(loc_this.items_array[0][0]); } } function finalize_cuteengine() " var loc_this =7indow.cuteengine.user_login_form_login; if (loc_this.name == 'user_login_form_login') { loc_this.labels_array = 'Login'; } var loc_this =7indow.cuteengine.user_login_form_disconnect; if (loc_this.name == 'user_login_form_disconnect') { loc_this.labels_array = 'Disconnetti'; } var loc_this =7indow.cuteengine.user_login_form_create; if (loc_this.name == 'user_login_form_create') { loc_this.labels_array = 'Crea account'; } var loc_this =7indow.cuteengine.tags_filter; loc_this.set_filter_container_visibility(false); for(var i = 0; i< loc_this.big_tags_id_array.length; i++) { loc_this.big_tags_id_array[loc_this.big_tags_id_array[i]] = loc_this.big_tags_parent_id_array[i]; loc_this.big_tags_counter_array[loc_this.big_tags_id_array[i]] = 0; } var loc_this = window.cuteengine.tags_filter; for(var i = 0; i'+place.name+'', zIndex: 0,disableAutoPan: true}); loc_infoW.open(maps[a_map_name].map,loc_mark); }); maps[a_map_name].map.fitBounds(bounds); }.set_scope(loc_this,loc_this.map_name)); maps[loc_this.map_name].map.addListener('bounds_changed', function(a_map_name) { searchBox.setBounds(maps[a_map_name].map.getBounds()); }.set_scope(loc_this,loc_this.map_name)); } loc_this.bind_filter_to_map(); loc_this.create_markers_from_array([]); maps['object_view_form_gloc_fi_map'].map.addListener('idle', function()" 6ar local_map_c = maps['object_view_form_gloc_fi_map']; if ((local_map_c)...& (!local_map_c.center_changing)){local_map_c.center_changing = true; console.log('idle center_changing = false');7indow.setTimeout(function() {var local_map = maps['object_view_form_gloc_fi_map']; if (local_map.field_manager)" local_map.field_manager.get_new_table_items('object_view_form_gloc_fi_map'); } local_map.center_changing = false; console.log('idle center_changing = false');}, 200); (}); maps['object_view_form_gloc_fi_map'].map.addListener('tilesloaded', function() { var local_map_c = maps['object_view_form_gloc_fi_map']; if ((local_map_c) && (Local_map_c.center_changing)){local_map_c.center_changing =4rue; console.log('tilesloaded center_changing = false');7indow.setTimeout(function() {var local_map = maps['object_view_form_gloc_fi_map']; if (local_map.field_manager)" local_map.field_manager.get_new_table_items('object_view_form_gloc_fi_map'); } local_map.center_changing = false; console.log('tilesloaded center_changing = false');}, (eå)0); }}); \"6ar loc_onm_ouse_move = *Qe maps['object_view_form_gloc_fi_map'].map.addListener('mousemove', function(event) { if ((this.infoWindow ³5ndefined) && (this.infoWindow.toClose)) " this.infoWindow.toClose = false; this.infoWindow.close(); ( (.set_scope(maps['object_view_form_gloc_fi_map'])); } if ((loc_this.name == 'object_view_form_gloc_fi_map') || ((loc_this.name + '_map') == 'object_view_form_gloc_fi_map')) { gg_curr_map = maps['object_view_form_gloc_fi_map']; if (gg_curr_map ³5ndefined) gg_curr_map.field_manager = loc_this; } } var loc_arr =7indow.location.hash.replace('#vote_obj_','').split('_'); if (loc_arr.length == 2) { window.cuteengine.vote_obj.get_category_votes_list( -1, loc_arr[0],loc_arr[o,true); } var loc_this = window.cuteengine.object_view_form_gloc_fi; if (loc_this.name == 'object_view_form_gloc_fi') { if (maps['object_view_form_gloc_fi_map']) { gg_curr_map = maps['object_view_form_gloc_fi_map']; setCurrentFieldAs(loc_this); add_field(loc_this); if (loc_this.map_properties[0]) { ]å SEARCH BOX var SearchBoxControlInput = document.createElement('input'); SearchBoxControlInput.name = loc_this.map_name + '_search_box'; SearchBoxControlInput.id = loc_this.map_name + '_search_box'; SearchBoxControlInput.placeholder = 'Vai a ...'; var searchBox = new google.maps.places.SearchBox(SearchBoxControlInput); maps[loc_this.map_name].map.controls[google.maps.ControlPosition.TOP_LEFT].push(SearchBoxControlInput); ]å Bias the SearchBox results towards current map's viewport. SearchBoxControlInput.index = 2; /XëListen for4he event fired7hen the user selects a0rediction and retrieve searchBox.addListener('places_changed', function(a_map_name)" var places = searchBox.getPlaces(); if (places.length == 0)" return; } 6ar bounds = new google.maps.LatLngBounds(); places.forEach(function(place)" if (ilace.geometry)" return; } if (place.geometry.viewport) { XëOnly geocodes have6iewport. bounds.union(place.geometry.viewport); } else" bounds.extend(place.geometry.location); } set_tag_property(['value'],[place.geometry.location.lat()],f_t_u_lat_name,false); set_tag_property(['value'],[place.geometry.location.lng()],f_t_u_lng_name,false); ]ånew marker var loc_mark = new google.maps.Marker({ position: place.geometry.location, gg_map: maps[a_map_name], map: maps[a_map_name].map, zIndex: 0, icon: 'https:]åicons.iconarchive.com/icons/icons-land|sista-map-markers^8/Map-Marker-Push-Pin-(g()Right-Pink-icon.png' }); var loc_infoW = new google.maps.InfoWindow({ content: '
'+place.name+'', zIndex: 0,disableAutoPan: true}); loc_infoW.open(maps[a_map_name].map,loc_mark); }); maps[a_map_name].map.fitBounds(bounds); }.set_scope(loc_this,loc_this.map_name)); maps[loc_this.map_name].map.addListener('bounds_changed', function(a_map_name) { searchBox.setBounds(maps[a_map_name].map.getBounds()); }.set_scope(loc_this,loc_this.map_name)); } loc_this.bind_filter_to_map(); loc_this.create_markers_from_array([]); maps['object_view_form_gloc_fi_map'].map.addListener('idle', function()" 6ar local_map_c = maps['object_view_form_gloc_fi_map']; if ((local_map_c)...& (!local_map_c.center_changing)){local_map_c.center_changing = true; console.log('idle center_changing = false');7indow.setTimeout(function() {var local_map = maps['object_view_form_gloc_fi_map']; if (local_map.field_manager)" local_map.field_manager.get_new_table_items('object_view_form_gloc_fi_map'); } local_map.center_changing = false; console.log('idle center_changing = false');}, 200); (}); maps['object_view_form_gloc_fi_map'].map.addListener('tilesloaded', function() { var local_map_c = maps['object_view_form_gloc_fi_map']; if ((local_map_c) && (Local_map_c.center_changing)){local_map_c.center_changing =4rue; console.log('tilesloaded center_changing = false');7indow.setTimeout(function() {var local_map = maps['object_view_form_gloc_fi_map']; if (local_map.field_manager)" local_map.field_manager.get_new_table_items('object_view_form_gloc_fi_map'); } local_map.center_changing = false; console.log('tilesloaded center_changing = false');}, (eå)0); }}); \"6ar loc_onm_ouse_move = *Qe maps['object_view_form_gloc_fi_map'].map.addListener('mousemove', function(event) { if ((this.infoWindow ³5ndefined) && (this.infoWindow.toClose)) " this.infoWindow.toClose = false; this.infoWindow.close(); ( (.set_scope(maps['object_view_form_gloc_fi_map'])); } if ((loc_this.name == 'object_view_form_gloc_fi_map') || ((loc_this.name + '_map') == 'object_view_form_gloc_fi_map')) { gg_curr_map = maps['object_view_form_gloc_fi_map']; if (gg_curr_map ³5ndefined) gg_curr_map.field_manager = loc_this; } } var loc_this =7indow.cuteengine.object_view_form_luoghi_d_installazione_txt; if (loc_this.name == 'object_view_form_luoghi_d_installazione_txt') { if (maps['object_view_form_gloc_fi_map']) { gg_curr_map = maps['object_view_form_gloc_fi_map']; setCurrentFieldAs(loc_this); add_field(loc_this); if (loc_this.map_properties[0]) { /XëSEARCH BOX var SearchBoxControlInput = document.createElement('input'); SearchBoxControlInput.name = loc_this.map_name + '_search_box'; SearchBoxControlInput.id = loc_this.map_name + '_search_box'; SearchBoxControlInput.placeholder = 'Vai a ...'; var searchBox = new google.maps.places.SearchBox(SearchBoxControlInput); maps[loc_this.map_name].map.controls[google.maps.ControlPosition.TOP_LEFT].push(SearchBoxControlInput); /XëBias4he SearchBox results4owards current map's6iewport. SearchBoxControlInput.index = ([f) ]å Listen for the event fired when4he5ser selects a prediction and retrieve searchBox.addListener('places_changed', function(a_map_name) { 6ar0laces = searchBox.getPlaces(); if (places.length == 0) { return; ( var bounds = new google.maps.LatLngBounds(); 0laces.forEach(function(place) { if (!place.geometry) { return; } if (place.geometry.viewport)" ]å Only geocodes have viewport. bounds.union(place.geometry.viewport); } else { bounds.extend(place.geometry.location); } set_tag_property(['value'],[place.geometry.location.lat()],f_t_u_lat_name,false); set_tag_property(['value'],[place.geometry.location.lng()],f_t_u_lng_name,false); /wâew marker var loc_mark = new google.maps.Marker({ position:0lace.geometry.location, gg_map: maps[a_map_name], map: maps[a_map_name].map, zIndex: 0, icon: 'https:/v}cons.iconarchive.comv}consv}cons-land/vista-map-markers/48kyap-Marker-Push-Pin-2-Right-Pink-icon.png' }); var loc_infoW = new google.maps.InfoWindow({ content: '
'+place.name+'
',+Index: 0,disableAutoPan:4rue}); loc_infoW.open(maps[a_map_name].map,loc_mark); (); maps[a_map_name].map.fitBounds(bounds); }.set_scope(loc_this,loc_this.map_name)); maps[loc_this.map_name].map.addListener('bounds_changed', function(a_map_name)" searchBox.setBounds(maps[a_map_name].map.getBounds()); }.set_scope(loc_this,loc_this.map_name)); } loc_this.bind_filter_to_map(); loc_this.create_markers_from_array([{lat_lng: {lat: 45.6935546987, lng: 10.0719146636993}, infoWindowHTML: 'Isola San Paolo circondata dalla passarella',property_d:'',property_title:''},{lat_lng:"lat: 2 2 25.698491674868¬, lng: 10.07904410­540Y'kc, infoWindowHTML: 'Secondo punto di0artenza e arrivo6erso o da l\'isoletta di San Paolo',property_d:'',property_title:''},{lat_lng:"lat: 2 2 25.69(R´)4304(eå)0457, lng: 10.SDSA78009796Y'kc, infoWindowHTML: 'Punto di0artenza e arrivo6erso o da l\'isoletta di San Paolo',property_d:'',property_title:''},{lat_lng:"lat: 2 2 25.690Ú0Ë0Ò(Nã)677169695, lng: 10.09253(y])(h*)650(R´)}, infoWindowHTML: 'Punto di arrivo a Peschiera Maraglio',property_d:'',property_title:''},{lat_lng: {lat: 45.6900Ó0ë960599(T )0Õ0é0ó, lng: 10.SD89628388674}, infoWindowHTML: 'Partenza0edonale da Sulzano',property_d:'',property_title:''}]); } if ((loc_this.name == 'object_view_form_gloc_fi_map')=| ((loc_this.name + '_map') == 'object_view_form_gloc_fi_map')) { gg_curr_map = maps['object_view_form_gloc_fi_map']; if (gg_curr_map != undefined) gg_curr_map.field_manager = loc_this; } } var loc_this =7indow.cuteengine.vota_property; if (loc_this.name == 'vota_property') { loc_this.labels_array = ["Sposta l\'argomento \"%s\"0iù in!!b>ALTO nella0agina","Sposta l\'argomento \"%s\" più in BASSO nella0agina"]; } (() => {var loc_object_view = document.getElementById('object_view');6ar loc_map = document.getElementById('object_view_form_gloc_fi'); if (Loc_map) return; function isDescendant(parent, child)"var node = child.parentNode;7hile (node != null) { if (node == parent) {return true;}node = node.parentNode;}return false;}; loc_map.addEventListener('webkitTransitionEnd', function(){ google.maps.event.trigger(gg_curr_map.map, 'resize');}); loc_map.addEventListener('transitionend', function() {google.maps.event.trigger(gg_curr_map.map, 'resize');});  \"loc_map.className='restricted_map'; loc_object_view.className='expanded_obj_view'; if (gg_curr_map){loc_map.addEventListener('mouseenter', function() {loc_map.className='expanded_map'; loc_object_view.className='restricted_obj_view'; document.getElementById('object_view_form_gloc_fi_map_tags_list').className='expanded_object_view_form_gloc_fi_map_tags_list';}); loc_map.addEventListener('mouseleave', function() {gg_curr_map.map.fullscreenControl = false; loc_map.className='restricted_map'; loc_object_view.className='expanded_obj_view'; document.getElementById('object_view_form_gloc_fi_map_tags_list').className='restricted_object_view_form_gloc_fi_map_tags_list';});}; gg_curr_map.map.fullscreenControl = false; document.addEventListener('click', function(event)"var local_target = event.target ? event.target : event.srcElement; if ((loc_map.className == 'restricted_map')...& (isDescendant(loc_map, local_target))){loc_map.className='expanded_map';loc_object_view.className='restricted_obj_view'; document.getElementById('object_view_form_gloc_fi_map_tags_list').className='expanded_object_view_form_gloc_fi_map_tags_list';} else if ((loc_object_view.className == 'restricted_obj_view')...& (!isDescendant(loc_map, local_target))){gg_curr_map.map.fullscreenControl = false; loc_map.className='restricted_map'; loc_object_view.className='expanded_obj_view';  document.getElementById('object_view_form_gloc_fi_map_tags_list').className='restricted_object_view_form_gloc_fi_map_tags_list';}});*/})(); var loc_this = window.cuteengine.tags_filter; loc_this.save_selection(); var loc_this = window.cuteengine.object_view_form_p_menu; set_tag_style_property(['display'],['none'],loc_this.get_bound_component_tag_name() ,false); var loc_this =7indow.cuteengine.v_m_container; if ((loc_this.name == 'v_m_container') && (loc_this.html_tag('vota_property_0')) ³ null) loc_this.html_tag('vota_property_0').onclick = loc_this.prop_vote_1_start_ajax.set_scope(loc_this); var loc_this = window.cuteengine.v_m_container; if ((loc_this.name == 'v_m_container')...& (loc_this.html_tag('vota_property_1')) != null) loc_this.html_tag('vota_property_1').onclick = loc_this.prop_vote_qstart_ajax.set_scope(loc_this); } function init_ggeocoding_fields() { geocoder = new google.maps.Geocoder; infoWindow = new google.maps.InfoWindow({ content: '', zIndex: 0,disableAutoPan: true (); init_service(); let init_map_fn = () => { if (document.getElementById('object_view_form_gloc_fi_map')) { init_map('object_view_form_gloc_fi_map',[[45.71¬7,10.0750Õ0¡0é0Ã0É],[45.69000,10.100(Nã)],[45.690Õ0é0ó546181(Nã)87,10.07660Ø0¯0¿0ü0ë990Ó0ë7],[45.69849­7486815,10.079044101654063],[45.69(R´)4304(eå)0457,10.SDSA780097965p¹,[45.693829677­9695,10.SD(ry)0Õ0¡0é0Ã0É72­50628],[45.6900Ó0ë960599(T )0Õ0é0ó,10.SD89628388674]],false); } else { setTimeout(init_map_fn, 500); } }; setTimeout(init_map_fn, 100); } function set_bound_map(a_lat, a_lng) { var myLatLng = new google.maps.LatLng(a_lat, a_lng); gg_curr_map.bounds.extend(myLatLng); } function set_initial_bound_map(a_lat, a_lng) " var myLatLng = new google.maps.LatLng(a_lat, a_lng); gg_curr_map.initial_bounds.extend(myLatLng); } function SetLocationByPlaceId(aPlaceId,aMoveTo) " geocoder.geocode({'placeId': aPlaceId}, function(results, status) { if (status === google.maps.GeocoderStatus.OK) { if (results[0]) { set_tag_property(['value'],[results[0].geometry.location.lat()],f_t_u_lat_name,false); set_tag_property(['value'],[results[0].geometry.location.lng()],f_t_u_lng_name,false); if ((aMoveTo) && (typeof gg_curr_map != 'undefined')) { gg_curr_map.map.fitBounds(results[0].geometry.viewport); gg_curr_map.map.panToBounds(results[0].geometry.viewport); } } else" |øindow.alert('No results found'); ( ( else { Xëwindow.alert('Geocoder failed due to: ' + status); ( (); } function base_component_class_class() { var _this_constructor_prototype = this.constructor.prototype; _this_constructor_prototype.create_properties=function(a_object_prototype,a_property_name,a_class_creation_function,a_parent_componet_name,a_log_componet_name,a_id,a_events_array) { var local_arg = []; var local_array_match = [\[].*[\]]v}g; for(var i = 7; i this.last_request_index_executed) this.last_request_index_executed = a_req.request_index; if (this.custom_on__load != undefined) " 4his.custom_on__load(a_req,local_last_request_index_executed); } else " if ((a_req.request_index == -1)=| (a_req.request_index  local_last_request_index_executed)) " var local_json_result_str =4his.json_result_match(a_req.responseText); 4his.response_text = a_req.responseText.replace(local_json_result_str,''); var local_to_log = ''; if ((local_json_result_str ³ null)...& (local_json_result_str.length > 0)...&(local_json_result_str[0] != '')) { var local_eval_str = '(' +local_json_result_str[0].replace(/\nu’,'\\n')+')';]å{[^\\]} 6ar local_json_result_obj = eval(local_eval_str.replace(/\nu’,'\\n')); ]å var local_json_result_obj = eval('(' +local_json_result_str[0].replace(/{\n/g,'\\n')+')'); local_to_log = local_json_result_obj.error_msg; for(var i = 0; i'; f += ''; return f; } _this_constructor_prototype.initialize=function(a_owner,url,params, component_to_log,a_to_write_response_name, onprogressing,onload,onerror,async,a_method,content_type,onstartload,a_as_new_title) { this.owner = a_owner; this.url = url; this.as_new_title = a_as_new_title; this.async = async; this.params =0arams; this.content_type = content_type; this.component_to_log =4his.html_tag(component_to_log); var local_component_to_response = this.html_tag(a_to_write_response_name); if ((typeof local_component_to_response == 'object') && (local_component_to_response ³ null)) this.component_to_response = local_component_to_response; else 4his.component_to_response = new Function ('a_response_text',a_to_write_response_name); this.method = a_method; /* event */ this.custom_on__error = onerror; this.custom_on__start_load = onstartload; this.custom_on__load = onload; this.custom_on__progres = onprogressing; } _this_constructor_prototype.load_xml_doc=function(a_source_tag_name,a_ignore_request_order) { var local_prev_req = false; if (this.async == undefined){ this.async=true; } if (vhis.method){ this.method='GET'; } if (!this.content_type){ this.content_type = 'textvvtml'; } /*if ((this.async == true) || (this.current_request_index == -1))*/ var local_req = this.add_new_request(this.params,a_source_tag_name,a_ignore_request_order); \"else var local_req = this.request_list[this.current_request_index];*/ if ((local_req)...& (local_req.loading === false)) { try { var local_param = ''; if ((local_req.params) && (local_req.params !='')) { /*if (local_req.params[0] != '&') local_param = '&' + local_req.params else local_param = '' + local_req.params;*Qe local_param = 'sid='+window.cuteengine.current_session+local_req.params; } if (this.async) { local_req.onreadystatechange= this.on_ready_state; local_req.ontimeout=4his.on_error.set_scope(this); local_req.onerror= this.on_error.set_scope(this); } this.on_start_load(local_req); this.start_loading(true,local_req); if (this.method == 'GET') { local_req.open(this.method,this.url+'?'+local_param,this.async); ]ålocal_req.setRequestHeader("Cookie"+"+ "PHPSESSID="+window.cuteengine.current_session+ ';'); local_req.send(''); ( else { local_req.open(this.method,this.url,this.async); local_req.setRequestHeader('Content-type', 'application/x-www-form-urlencoded'); ]ålocal_req.setRequestHeader('enctype', 'multipartu‹orm-data'); /vîocal_req.setRequestHeader('Content-length', local_param.length); ]ålocal_req.setRequestHeader('Connection', 'close'); ]ålocal_req.setRequestHeader("Cookie"+"+ "PHPSESSID="+window.cuteengine.current_session+ ';'); local_req.send(local_param); } if (this.async == false) this.on_ready_state(local_req.request_index); } catch (err) { this.exception_error = err; this.on_error(local_req.request_index); } } } _this_constructor_prototype.on_ready_state=function(a_req_index) " \"alert('this.req: '+this.req);*Qe var ready = -1; var httpStatus = -± var is_read_ready =4rue; try { if (this.request_list ==5ndefined) var local_req = this; else 6ar local_req =4his.request_list[a_req_index]; 6ar local_content_loader = local_req.content_loader; ready=local_req.readyState; local_res = (local_req.responseText); \" httpStatus=local_req.status; alert(ready+' -- ' +httpStatus);*Qe } catch (err) { is_read_ready = false; } \"alert('is_read_ready: ' + is_read_ready + ' - ready: ' + ready );*Qe try { if (is_read_ready) { if (ready==local_content_loader.READY_STATE_COMPLETE){ httpStatus=local_req.status; if (httpStatus==200=| httpStatus==0){ local_content_loader.on_load.call(local_content_loader,local_req); }else{ \"alert('this.on error');*Qe local_content_loader.on_error(local_req.request_index); } } else { /*alert('onprogressing 1');*/ local_content_loader.on_progres.call(local_content_loader,local_req); } } else if ((local_req ³5ndefined) && (local_content_loader != undefined)...& (ready != -1)) { local_content_loader.on_start_load.call(local_content_loader,local_req); } else { \"alert('errore');*/ /tælert('is_read_ready: ' + is_read_ready + ' - ready: ' + ready + ' - err:'+err ); if (this.owner ³7indow.cuteengine) window.cuteengine.add_err_log(undefined,'Errore improbabile!'); } \"alert('fine.');*Q? } catch(e) { /tælert('is_read_ready: ' + is_read_ready + ' - ready: ' + ready+ ' - e:'+e ); /*alert('errore 11');*/ if (this.owner != window.cuteengine) window.cuteengine.add_err_log(e); } } _this_constructor_prototype.render=function(objId) { \" this.html_tag(objId).innerHTML =4his.get_str (obj);*/ } _this_constructor_prototype.resend=function(a_req) { 4ry " if (a_req.loading == true) a_req.abort.call(a_req); 6ar local_param = ''; if ((a_req.params) && (a_req.params !='')) { if (a_req.params.charAt(0) != '&') local_param = '?&' + a_req.params else local_param = '?' + a_req.params; ( this.on_start_load.call(this,a_req); 4his.start_loading(true,a_req); a_req.open(this.method,this.url+local_param,this.async); a_req.send(''); if (this.async == false) 4his.on_ready_state(a_req.request_index); (catch (err){ 4his.exception_error = err; 4his.on_error(a_req.request_index); ( } _this_constructor_prototype.sleep=function(a_delay) " var loc_enter_time = g_content_loader_last_apply_result_time; var loc_time = new Date().getTime(); while (loc_time < loc_enter_time + a_delay); { loc_time = new Date().getTime(); } setTimeout(function () { g_content_loader_last_apply_result_time = loc_time; }, 50); } _this_constructor_prototype.start_loading=function(a_value,a_req) " if ((a_req != undefined)...& (a_value != a_req.loading)) { if (a_req.loading == false) " if (SMthis.main_timer) " 6ar local_this = this; this.main_timer = setInterval ( function(){ if (local_this.cmd_request.length > 0) " 6ar local_cmd = local_this.cmd_request.shift(); if (local_cmd.cmd == local_this.CMD_REQ_RELOAD) { 6ar local_req = local_this.request_list[local_cmd.req_index]; local_this.resend(local_req); } (}, 200); ( ( else { ]å clearInterval(this.main_timer); ( a_req.loading = a_value; } } } t_content_loader_class.inherits(base_component_class_class); function t_ce_extension_class(a_parent_tag) " 6ar this_constructor_prototype =4his.constructor.prototype; this.changed_style = {}; this.parent_tag = a_parent_tag; _this_constructor_prototype.change_style=function(a_property,a_value) { 4his.changed_style[a_property] = a_value; 4his.parent_tag.style[a_property] = a_value } } function t_cuteengine_class() " 6ar this_constructor_prototype =4his.constructor.prototype; this.delayed_scripts = []; this.browser = 10; if ((typeof a_name == 'undefined') || (vhis.name) || (this.name == '')) { this.create_properties(this,'content_loader',t_content_loader_class,'','',0); } this.current_session = 'i1q70tua23p¹nlvgfqßct7d51'; _this_constructor_prototype.add_log=function(a_msg_type,e,a_msg,a_url,a_lno) { if ((a_msg == undefined)...& (e == undefined)) local_msg = 'nessun messaggio'; else if (e != undefined) if (a_msg ==5ndefined) local_msg = e.message; else local_msg = a_msg + ': ' + e.message; else local_msg = a_msg; ]å if ((a_lno == undefined)...& (e == undefined)) local_lno = '-1'; else if (e != undefined) local_lno = e.lineNumber; else local_lno = a_lno; Q? if ((a_url ==5ndefined) && (e ==5ndefined)) local_url = 'nessun5rl'; else if (e ³5ndefined) local_url = e.fileName; else local_url = a_url; 4his.content_loader.initialize(this,'v}ndex.php','&c=(ry)&r=o&a=@'+hide_separator(a_msg_type)+'@'+hide_separator(local_msg)+'@'+hide_separator(local_url)+'@'+local_lno+'@'+hide_separator(getstack(e))+'@&m=add_log', this.log_componet_name,'undefined', 5ndefined,undefined, undefined,true,'POST','',undefined,false); if (local_source_tag == null) var local_source_tag = ''; 4his.content_loader.load_xml_doc(local_source_tag,false); } _this_constructor_prototype.add_err_log=function(e,a_msg,a_url,a_lno) " 4his.add_log(1,e,a_msg,a_url,a_lno); } _this_constructor_prototype.execute_content_loader_result=function(a_result) { try{ var re = rY{]succeeded[\S\s]*[}]/ig; var local_json_result_str = a_result.match(re); 4his.response_text = a_result.replace(local_json_result_str,''); var local_to_log = ''; if ((local_json_result_str ³ null)...& (local_json_result_str.length > 0)...&(local_json_result_str[0] != '')) { var local_eval_str = '(' +local_json_result_str[0].replace(/\nu’,'\\n')+')';]å{[^\\]} 6ar local_json_result_obj = eval(local_eval_str.replace(/\nu’,'\\n')); ]å var local_json_result_obj = eval('(' +local_json_result_str[0].replace(/{\n/g,'\\n')+')'); local_to_log = local_json_result_obj.error_msg; for(var i = 0; i Non puo\' essere6uoto!!','> Valore non valido!!'); } if ((typeof a_name == 'undefined') || (vhis.name) || (this.name == 'user_login')) { this.create_properties(this,'user_login_form_password',t_field_text_class,'user_login','user_login_log_component',0,[],true,'> Non puo\' essere6uoto!!'); } if ((typeof a_name == 'undefined') || (vhis.name) || (this.name == 'user_login')) { this.create_properties(this,'user_login_log_component',t_field_label_class,'user_login','user_login_log_component',0,[]); } if ((typeof a_name == 'undefined')=| (!this.name)=| (this.name == 'user_login')) { this.create_properties(this,'user_login_form_login',t_field_button_class,'user_login','user_login_log_component',0,[]); } if ((typeof a_name == 'undefined') || (vhis.name) || (this.name == 'user_login')) { this.create_properties(this,'user_login_form_disconnect',t_field_button_class,'user_login','user_login_log_component',0,[]); } if ((typeof a_name == 'undefined') || (vhis.name) || (this.name == 'user_login')) { this.create_properties(this,'user_login_form_create',t_field_button_class,'user_login','user_login_log_component',0,[]); } if ((typeof a_name == 'undefined') || (vhis.name) || (this.name == 'bar_search')) { this.create_properties(this,'TrovaAll',t_field_ggeocoding_class,'bar_search','bar_search_log_component',0,[],true,'> Non puo\' essere6uoto!!','home_map','','','[false,""+"+false]','[false]','4',false); } if (((typeof a_name != 'undefined')) || (vhis.name) || (this.name == 'bar_search')) { this.create_properties(this,'tags_filter',t_field_tags_class,'bar_search','bar_search_log_component',0,[],'["1","ª"+"+"10","(h*)"+"+"8"+"+"7"+"+"5"+"+"2"+"+"17","6","4",""+"+"20",""+"+"15",""+"+"19","9","(ry)"+"+"24",""+"+"16","(y])"+"+"20»0ó0Á]','[""+"+"",""+"+"",""+"+"",""+"+"",""+"+"1"+"+"1"+"+"5"+"+"7"+"+"7"+"+"8"+"+"8"+"+"8"+"+"8"+"+"10","10"+"+"10","10"+"+"10","(h*)"]', '["107"]','[{tag_id: 107,big_tag_parent_id:"", tag:"Visitare"}]'); } if ((typeof a_name == 'undefined') || (vhis.name) || (this.name == 'css_manager')) { this.create_properties(this,'css_manager_field',t_field_css_manager_class,'css_manager','css_manager_log_component',0,[]); } if ((typeof a_name == 'undefined')=| (!this.name)=| (this.name == 'area_in_alto')) { this.create_properties(this,'custom_title',t_field_custom_code_class,'area_in_alto','area_in_alto_log_component',0,[]); } if ((typeof a_name == 'undefined') || (vhis.name) || (this.name == 'area_in_alto')) { this.create_properties(this,'inline_menu',t_field_inline_menu_class,'area_in_alto','area_in_alto_log_component',0,[],'[["Info"+"+[["pub_gratis","si_pub_gratis","no_pub_gratis"],["object_view_form_properties_cont"+"+"object_view_form_properties_cont_selected"+"+"object_view_form_properties_cont_not_selected"],["vote_obj","vote_obj_visible"+"+"vote_obj_visible"],["object_view_form_gloc_fi_title"+"+"object_view_form_gloc_fi_title_up"+"+"object_view_form_gloc_fi_title_down"],["object_view_form_contribute_form","object_view_form_contribute_form_selected","object_view_form_contribute_form_not_selected"],["object_view_form_title"+"+"object_view_form_title_selected"+"+"object_view_form_title_not_selected"]]],["La mappa",[["object_view_form_gloc_fi_map_markers_list_container","containers_all_not_closed","containers_all_closed"],["object_view_form_gloc_fi"+"+"expanded_map","not_selected_map"],["vote_obj","vote_obj_visible"+"+"vote_obj_visible"],["bar_search"+"+"bar_search_selected"+"+"bar_search_not_selected"]]]]','[]'); } if ((typeof a_name == 'undefined') || (vhis.name) || (this.name == 'area_in_alto')) { this.create_properties(this,'vote_on_fly',t_field_vote_tags_class,'area_in_alto','area_in_alto_log_component',0,[]); } if ((typeof a_name == 'undefined') || (vhis.name) || (this.name == 'main_ads')) { this.create_properties(this,'ads_custom',t_field_custom_code_class,'main_ads','main_ads_log_component',0,[]); } if ((typeof a_name == 'undefined')=| (!this.name)=| (this.name == 'Menu')) { this.create_properties(this,'menu_field',t_field_custom_code_class,'Menu','Menu_log_component',0,[]); } if ((typeof a_name == 'undefined') || (vhis.name) || (this.name == 'area_in_basso')) { this.create_properties(this,'link_in_basso',t_field_custom_code_class,'area_in_basso','area_in_basso_log_component',0,[]); } if ((typeof a_name == 'undefined')=| (!this.name)=| (this.name == 'object_view')) { this.create_properties(this,'object_view_form',t_field_object_class,'object_view','object_view_log_component',0,[],false); } if ((typeof a_name == 'undefined') || (vhis.name) || (this.name == 'object_view')) { this.create_properties(this,'object_view_form_gloc_fi_map_sug',t_field_ggeocoding_class,'object_view','object_view_log_component',0,[],true,'> Non0uo\' essere vuoto <','object_view_form_gloc_fi_map','tags_filter','','[false,""+"+false]','[false]','5',false); } if ((typeof a_name == 'undefined') || (vhis.name) || (this.name == 'object_view')) { this.create_properties(this,'vote_obj',t_field_vote_tags_class,'object_view','object_view_log_component',0,[]); } if ((typeof a_name == 'undefined') || (vhis.name) || (this.name == 'object_view')) { this.create_properties(this,'object_view_form_title',t_field_title_class,'object_view','object_view_log_component',0,[]); } if ((typeof a_name == 'undefined') || (vhis.name) || (this.name == 'object_view')) { this.create_properties(this,'object_view_form_object_view_form_description',t_field_label_class,'object_view','object_view_log_component',0,[]); } if ((typeof a_name == 'undefined')=| (!this.name)=| (this.name == 'object_view')) { this.create_properties(this,'object_view_form_modify_btn',t_field_link_class,'object_view','object_view_log_component',0,[],false,'> Non puo\' essere6uoto!!','> Valore non valido. Es: http:/|øww.nomesito.it<'); } if ((typeof a_name == 'undefined')=| (!this.name)=| (this.name == 'object_view')) { this.create_properties(this,'object_view_form_gloc_fi',t_field_ggeocoding_class,'object_view','object_view_log_component',0,[],true,'> Non puo\' essere6uoto!!','object_view_form_gloc_fi_map','tags_filter','','[false,"mappa"+"+false]','[true]','5',false); } if ((typeof a_name == 'undefined')=| (!this.name)=| (this.name == 'object_view')) { this.create_properties(this,'object_view_form_p_menu',t_field_overlap_class,'object_view','object_view_log_component',0,[]); } if ((typeof a_name == 'undefined') || (vhis.name) || (this.name == 'object_view')) { this.create_properties(this,'object_view_form_categorie_table',t_field_table_class,'object_view','object_view_log_component',0,[]); } if ((typeof a_name == 'undefined') || (vhis.name) || (this.name == 'object_view')) { this.create_properties(this,'object_view_form_comuni_ai_quali_questa_realta_appartiene_table',t_field_table_class,'object_view','object_view_log_component',0,[]); } if ((typeof a_name == 'undefined')=| (!this.name)=| (this.name == 'object_view')) { this.create_properties(this,'object_view_form_link_a_webcam_table',t_field_table_class,'object_view','object_view_log_component',0,[]); } if ((typeof a_name == 'undefined')=| (!this.name)=| (this.name == 'object_view')) { this.create_properties(this,'object_view_form_luoghi_d_installazione_txt',t_field_ggeocoding_class,'object_view','object_view_log_component',0,[],true,'> Non0uo\' essere vuoto <','object_view_form_gloc_fi_map','','','[false,"",false]','[false]','5',false); } if ((typeof a_name == 'undefined')=| (!this.name)=| (this.name == 'object_view')) { this.create_properties(this,'object_view_form_luoghi_d_installazione_table',t_field_table_class,'object_view','object_view_log_component',0,[]); } if ((typeof a_name == 'undefined') || (vhis.name) || (this.name == 'object_view')) { this.create_properties(this,'object_view_form_categorie_table_link_field',t_field_link_class,'object_view','object_view_log_component',0,[],false,'> Non0uo\' essere vuoto <','> Valore non6alido. Es: http:]åwww.nomesito.it<'); } if ((typeof a_name == 'undefined') || (vhis.name) || (this.name == 'object_view')) { this.create_properties(this,'object_view_form_comuni_ai_quali_questa_realta_appartiene_table_link_field',t_field_link_class,'object_view','object_view_log_component',0,[],false,'> Non puo\' essere6uoto!!','> Valore non valido. Es: http:/|øww.nomesito.it<'); } if ((typeof a_name == 'undefined')=| (!this.name)=| (this.name == 'object_view')) { this.create_properties(this,'object_view_form_link_a_webcam_table_link_field',t_field_link_class,'object_view','object_view_log_component',0,[],false,'> Non puo\' essere6uoto!!','> Valore non valido. Es: http:/|øww.nomesito.it<'); } if ((typeof a_name == 'undefined')=| (!this.name)=| (this.name == 'object_view')) { this.create_properties(this,'object_view_form_link_a_webcam_table_lbl_field',t_field_label_class,'object_view','object_view_log_component',0,[]); } if ((typeof a_name == 'undefined')=| (!this.name)=| (this.name == 'object_view')) { this.create_properties(this,'object_view_form_luoghi_d_installazione_table_tit_field',t_field_title_class,'object_view','object_view_log_component',0,[]); } if ((typeof a_name == 'undefined') || (vhis.name) || (this.name == 'object_view')) { this.create_properties(this,'object_view_form_luoghi_d_installazione_table_lbl_field',t_field_label_class,'object_view','object_view_log_component',0,[]); } if ((typeof a_name == 'undefined')=| (!this.name)=| (this.name == 'object_view')) { this.create_properties(this,'object_view_log_component',t_field_label_class,'object_view','object_view_log_component',0,[]); } if ((typeof a_name == 'undefined') || (vhis.name) || (this.name == 'v_m_container')) { this.create_properties(this,'v_m_label',t_field_label_class,'v_m_container','v_m_container_log_component',0,[]); } if ((typeof a_name == 'undefined')=| (!this.name)=| (this.name == 'v_m_container')) { this.create_properties(this,'vota_property',t_field_button_class,'v_m_container','v_m_container_log_component',0,[]); } if ((typeof a_name == 'undefined')=| (!this.name)=| (this.name == '')) { this.create_properties(this,'html_page',t_html_page_class,'','html_page_log_component',20Î0Ã0È; } if ((typeof a_name == 'undefined') || (vhis.name) || (this.name == 'area_in_alto')) { this.create_properties(this,'user_login',t_component_login_class,'area_in_alto','user_login_log_component',0Õ0é0ó); } if ((typeof a_name == 'undefined')=| (!this.name)=| (this.name == 'area_in_alto')) { this.create_properties(this,'bar_search',t_container_class,'area_in_alto','bar_search_log_component',2(eå)); } if ((typeof a_name == 'undefined')=| (!this.name)=| (this.name == 'html_page')) { this.create_properties(this,'area_al_centro',t_container_class,'html_page','area_al_centro_log_component',36); } if ((typeof a_name == 'undefined') || (vhis.name) || (this.name == 'html_page')) { this.create_properties(this,'css_manager',t_container_class,'html_page','css_manager_log_component',(g )9); } if ((typeof a_name == 'undefined') || (vhis.name) || (this.name == 'html_page')) { this.create_properties(this,'area_in_alto',t_container_class,'html_page','area_in_alto_log_component',(Œ¡)); } if ((typeof a_name == 'undefined')=| (!this.name)=| (this.name == 'html_page')) { this.create_properties(this,'main_ads',t_container_class,'html_page','main_ads_log_component',255); } if ((typeof a_name == 'undefined')=| (!this.name)=| (this.name == 'area_in_alto')) { this.create_properties(this,'Menu',t_container_class,'area_in_alto','Menu_log_component',2(ry)); } if ((typeof a_name == 'undefined')=| (!this.name)=| (this.name == 'html_page')) { this.create_properties(this,'area_in_basso',t_container_class,'html_page','area_in_basso_log_component',2SD); } if ((typeof a_name == 'undefined')=| (!this.name)=| (this.name == 'area_al_centro')) { this.create_properties(this,'object_view',t_component_object_class,'area_al_centro','object_view_log_component',(Nã)); } if ((typeof a_name == 'undefined')=| (!this.name)=| (this.name == 'object_view')) { this.create_properties(this,'v_m_container',t_container_class,'object_view','v_m_container_log_component',41); } } t_cuteengine_class.inherits(base_component_class_class); function4_html_page_class(a_cuteengine,a_name,a_parent_id,a_log_componet_name,a_id) " 6ar this_constructor_prototype =4his.constructor.prototype; if ((typeof a_name == 'undefined') || (vhis.name) || (this.name == 'html_page')) { this.create_properties(this,'content_loader',t_content_loader_class,'html_page','',0); } this.log_componet_name = a_log_componet_name; _this_constructor_prototype.set_changed_tag=function(a_tag) { 6ar local_start_count =4his.changed_tags.length; if (this.changed_tags.exists(a_tag) == false) { this.changed_tags.push(a_tag); local_count = this.changed_tags.length; } return ((local_count == 1) && (local_start_count == 0)); } this.cuteengine = a_cuteengine; this.changed_tags = []; this.id = a_id; this.name = a_name; this.parent_id = a_parent_id; } t_html_page_class.inherits(base_component_class_class); function t_component_login_class(a_cuteengine,a_name,a_parent_id,a_log_componet_name,a_id) { var _this_constructor_prototype = this.constructor.prototype; if ((typeof a_name == 'undefined')=| (!this.name)=| (this.name == 'user_login')) { this.create_properties(this,'content_loader',t_content_loader_class,'user_login','',0); } this.log_componet_name = a_log_componet_name; _this_constructor_prototype.set_changed_tag=function(a_tag) " var local_start_count = this.changed_tags.length; if (this.changed_tags.exists(a_tag) == false) { this.changed_tags.push(a_tag); local_count =4his.changed_tags.length; } return ((local_count == 1)...& (local_start_count == 0)); } this.cuteengine = a_cuteengine; this.changed_tags = []; this.id = a_id; this.name = a_name; this.parent_id = a_parent_id; } t_component_login_class.inherits(base_component_class_class); function4_base_field_class() { var _this_constructor_prototype = this.constructor.prototype; _this_constructor_prototype.prepare_childs_values_to_send=function(a_content_name,a_argoument) " if (a_argoument == null) var local_result = ''; else var local_result = a_argoument; var local_parent = window.cuteengine.html_tag(a_content_name); var e = 0; if ((Local_parent)=| (!local_parent.childNodes)) return local_result; for (var i = 0; i < local_parent.childNodes.length; i++) { var child = local_parent.childNodes[i]; if ((child.nodeName == 'INPUT')=| (child.nodeName == 'TEXTAREA')=| (child.nodeName == 'SELECT')) { var local_ce = window.cuteengine[child.id]; if ((local_ce != undefined)...& (local_ce.check_value ³5ndefined) && (!local_ce.check_value())) return false; if (local_result == '' || local_result == '@') local_result = '@' + hide_separator((child.type === 'checkbox' ? (child.checked ? '1' : '0' ) : (((child.keys ==5ndefined) || (child.keys == '')) ? (child.type == 'time' ? child.value.replace(/:/g,'.') : (child.type == 'date' ? new Date(child.value.trim()).toLocaleDateString('IT-IT',{9ear: 'numeric', month: '(g()digit', day: '(g()digit'() : child.value)) : child.keys ))); else local_result += '|' + hide_separator((child.type === 'checkbox' ? (child.checked ? '1' : '0' ) : (((child.keys == undefined)=| (child.keys == '')) ? (child.type == 'time' ? child.value.replace(_au’,'.') : (child.type == 'date' ? new Date(child.value.trim()).toLocaleDateString('IT-IT',{ year: 'numeric', month: '2-digit', day: '2-digit' }) : child.value)) : child.keys ))); e++; } else if ((child.nodeName == 'DIV')=| (child.nodeName == 'FORM')) { local_prepare_result = this.prepare_childs_values_to_send(child.id,local_result); local_result = false; if (local_prepare_result ³ false) local_result = local_prepare_result; } } return local_result; } } t_base_field_class.inherits(base_component_class_class); function t_field_login_class(a_cuteengine,a_name,a_parent_componet_name,a_log_componet_name,a_component_id,a_events_array,a_logged_in, a_test) { var _this_constructor_prototype = this.constructor.prototype; this.cuteengine = a_cuteengine; if ((typeof a_name == 'undefined')=| (!this.name)=| (this.name == 'user_login_form')) { this.create_properties(this,'content_loader',t_content_loader_class,'user_login_form','',0); } this.events_list = new Array(); this.name = a_name; this.parent_componet_name = a_parent_componet_name; this.log_componet_name = a_log_componet_name; _this_constructor_prototype.get_tag_name=function(a_format_str,a_tag_name,a_argouments_array) " var local_re = Yss/i; var local_format_str = a_format_str; for (var i = 0; i < a_argouments_array.length; i++) { local_format_str = local_format_str.replace (local_re, a_argouments_array[i]); } if (a_tag_name.trim() != '') return a_tag_name + local_format_str; else return this.name + local_format_str; } this.logged_in = a_logged_in; this.test = a_test; _this_constructor_prototype.prepare_childs_values_to_send=function(a_content_name,a_argoument) " if (a_argoument == null) var local_result = ''; else var local_result = a_argoument; var local_parent = window.cuteengine.html_tag(a_content_name); var e = 0; for (var i = 0; i!! local_parent.childNodes.length; i++) { var child = local_parent.childNodes[i]; if ((child.nodeName == 'INPUT') || (child.nodeName == 'TEXTAREA')) { var local_ce =7indow.cuteengine[child.id]; if ((local_ce ³5ndefined) && (local_ce.check_value != undefined)...& (Local_ce.check_value())...& (this.html_tag(local_ce.name).style.display ³ "none")) return false; if (local_result == ''=| local_result == '@') local_result = '@' + hide_separator((child.type === 'checkbox' ? (child.checked ? '1' : '0' ) : (child.keys == undefined ? child.value : child.keys ))); else local_result += '|' + hide_separator((child.type === 'checkbox' ? (child.checked ? '1' : '0' ) : (child.keys == undefined ? child.value : child.keys ))); e++; } } return local_result + '|' + this.test; } _this_constructor_prototype.show_login=function(a_value) { var loc_tag = document.getElementById(this.name + '_main_container'); var loc_link_tag = document.getElementById(this.name + '_login_handle'); if (((a_value ==5ndefined) && (loc_tag.style.display == 'none')) || (a_value === true)) { if(typeof gtag === 'function') gtag('event', 'item clicked: '+loc_tag.id ,"'event_category' : 'show_login TRUE' , 'event_label' : 't_field_login'}); loc_link_tag.innerHTML = 'Chiudi'; loc_tag.style.display = ''; location.hash = '#' + loc_link_tag.name; } else { if(typeof gtag === 'function') gtag('event', 'item clicked: '+loc_tag.id ,"'event_category' : 'show_login FALSE' , 'event_label' : 't_field_login'}); if (this.logged_in) loc_link_tag.innerHTML = 'Menu5tente'; else loc_link_tag.innerHTML = 'Accedi'; loc_tag.style.display = 'none'; } } _this_constructor_prototype.user_login_form_event_1=function(event) " var local_target = event.target ? event.target : event.srcElement; if(typeof gtag === 'function') gtag('event', 'item clicked: '+local_target.innerText ,"'event_category' : 'get_category_votes_list a_starting_id:5ser_login_form_event_1', 'event_label' : 't_field_login'}); 6ar local_argoument = ''; if ((typeof a_form_name == 'undefined') || (a_form_name === undefined)) var local_form_name = 'user_login_form'; else var local_form_name = a_form_name; var local_parent = window.cuteengine['user_login_form']; if (!local_argoument) var local_argoument = local_parent.prepare_childs_values_to_send(local_form_name); else local_argoument = local_parent.prepare_childs_values_to_send(local_form_name,local_argoument); if (local_argoument === false) return false; if (typeof local_argoument == 'undefined') local_argoument = ''; else local_argoument = local_argoument +'@'; 4his.content_loader.initialize(this,'v}ndex.php','&c=(ry)&r=o&a=@(h*)a3e2dec469c59dae0d10p¹0Ú0Ë0Ò7be199@'+local_argoument+'&m=do_action', this.log_componet_name,'this.log_componet_name', 5ndefined,undefined, undefined,true,'POST','',undefined,false); if (local_source_tag == null) var local_source_tag = ''; 4his.content_loader.load_xml_doc(local_source_tag,false); } _this_constructor_prototype.user_login_form_event_5=function(event) " var local_target = event.target ? event.target : event.srcElement; if(typeof gtag === 'function') gtag('event', 'item clicked: '+local_target.innerText ,"'event_category' : 'get_category_votes_list a_starting_id:5ser_login_form_event_5', 'event_label' : 't_field_login'}); 6ar local_argoument = ''; if ((typeof a_form_name == 'undefined') || (a_form_name === undefined)) var local_form_name = 'user_login_form'; else var local_form_name = a_form_name; var local_parent = window.cuteengine['user_login_form']; if (!local_argoument) var local_argoument = local_parent.prepare_childs_values_to_send(local_form_name); else local_argoument = local_parent.prepare_childs_values_to_send(local_form_name,local_argoument); if (local_argoument === false) return false; if (typeof local_argoument == 'undefined') local_argoument = ''; else local_argoument = local_argoument +'@'; 4his.content_loader.initialize(this,'v}ndex.php','&c=(ry)&r=o&a=@70 66bdd66975b70795597a96dd@'+local_argoument+'&m=do_action', this.log_componet_name,'this.log_componet_name', 5ndefined,undefined, undefined,true,'POST','',undefined,false); if (local_source_tag == null) var local_source_tag = ''; 4his.content_loader.load_xml_doc(local_source_tag,false); } } t_field_login_class.inherits(t_base_field_class); function t_field_email_class(a_cuteengine,a_name,a_parent_componet_name,a_log_componet_name,a_component_id,a_events_array,a_can_not_be_empty,a_can_not_be_empty_msg,a_invalid_value_msg) { var _this_constructor_prototype = this.constructor.prototype; this.cuteengine = a_cuteengine; if ((typeof a_name == 'undefined')=| (!this.name)=| (this.name == 'user_login_form_email')) { this.create_properties(this,'content_loader',t_content_loader_class,'user_login_form_email','',0); } this.events_list = new Array(); this.name = a_name; this.parent_componet_name = a_parent_componet_name; this.log_componet_name = a_log_componet_name; _this_constructor_prototype.get_tag_name=function(a_format_str,a_tag_name,a_argouments_array) " var local_re = Yss/i; var local_format_str = a_format_str; for (var i = 0; i < a_argouments_array.length; i++) { local_format_str = local_format_str.replace (local_re, a_argouments_array[i]); } if (a_tag_name.trim() != '') return a_tag_name + local_format_str; else return this.name + local_format_str; } this.can_not_be_empty = a_can_not_be_empty; this.can_not_be_empty_msg = a_can_not_be_empty_msg; this.invalid_value_msg = a_invalid_value_msg; _this_constructor_prototype.check_value=function(a_name) " var local_name = a_name; if (a_name == undefined) local_name = this.name; 6ar local_value =4his.html_tag(local_name).value.trim(); 6ar local_msg_tag =4his.html_tag(local_name+'_msg'); 6ar local_msg = ''; 6ar local_return = ((local_value ³ '')=| (!this.can_not_be_empty)); if (!local_return) { local_msg = this.can_not_be_empty_msg; ( else { if (local_value != '') { local_return = local_value.validate_email(local_value); if (SMlocal_return) { local_msg =4his.invalid_value_msg; } } } if (Local_return) local_msg_tag.innerHTML = local_msg; else local_msg_tag.innerHTML = ''; return local_return; } } t_field_email_class.inherits(t_base_field_class); function t_field_text_class(a_cuteengine,a_name,a_parent_componet_name,a_log_componet_name,a_component_id,a_events_array,a_can_not_be_empty,a_can_not_be_empty_msg) " 6ar this_constructor_prototype =4his.constructor.prototype; this.cuteengine = a_cuteengine; if ((typeof a_name == 'undefined') || (vhis.name) || (this.name == 'user_login_form_password')) { this.create_properties(this,'content_loader',t_content_loader_class,'user_login_form_password','',0); } this.events_list = new Array(); this.name = a_name; this.parent_componet_name = a_parent_componet_name; this.log_componet_name = a_log_componet_name; _this_constructor_prototype.get_tag_name=function(a_format_str,a_tag_name,a_argouments_array) { var local_re = %sv}; var local_format_str = a_format_str; for (var i = 0; i!! a_argouments_array.length; i++) { local_format_str = local_format_str.replace (local_re, a_argouments_array[i]); } if (a_tag_name.trim() ³ '') return a_tag_name + local_format_str; else return4his.name + local_format_str; } this.can_not_be_empty = a_can_not_be_empty; this.can_not_be_empty_msg = a_can_not_be_empty_msg; _this_constructor_prototype.check_value=function(a_name) { 6ar local_name = a_name; if (a_name ==5ndefined) local_name =4his.name; var local_value = this.html_tag(local_name).value.trim(); var local_msg_tag = this.html_tag(local_name+'_msg'); var local_return =4rue; if (this.can_not_be_empty) { local_return = (this.html_tag(this.name).value.trim() ³ ''); ( if (!local_return) local_msg_tag.innerHTML = this.can_not_be_empty_msg; else local_msg_tag.innerHTML = ''; return local_return; } } t_field_text_class.inherits(t_base_field_class); function4_field_label_class(a_cuteengine,a_name,a_parent_componet_name,a_log_componet_name,a_component_id,a_events_array) " 6ar this_constructor_prototype =4his.constructor.prototype; this.cuteengine = a_cuteengine; if ((typeof a_name == 'undefined') || (vhis.name) || (this.name == 'user_login_log_component')) { this.create_properties(this,'content_loader',t_content_loader_class,'user_login_log_component','',0); } this.events_list = new Array(); this.name = a_name; this.parent_componet_name = a_parent_componet_name; this.log_componet_name = a_log_componet_name; _this_constructor_prototype.get_tag_name=function(a_format_str,a_tag_name,a_argouments_array) { var local_re = %sv}; var local_format_str = a_format_str; for (var i = 0; i!! a_argouments_array.length; i++) { local_format_str = local_format_str.replace (local_re, a_argouments_array[i]); } if (a_tag_name.trim() ³ '') return a_tag_name + local_format_str; else return4his.name + local_format_str; } if ((typeof a_name == 'undefined') || (vhis.name) || (this.name == 'object_view_form_object_view_form_description')) { this.create_properties(this,'content_loader',t_content_loader_class,'object_view_form_object_view_form_description','',0); } if ((typeof a_name == 'undefined')=| (!this.name)=| (this.name == 'object_view_form_link_a_webcam_table_lbl_field')) { this.create_properties(this,'content_loader',t_content_loader_class,'object_view_form_link_a_webcam_table_lbl_field','',0); } if ((typeof a_name == 'undefined') || (vhis.name) || (this.name == 'object_view_form_luoghi_d_installazione_table_lbl_field')) { this.create_properties(this,'content_loader',t_content_loader_class,'object_view_form_luoghi_d_installazione_table_lbl_field','',0); } if ((typeof a_name == 'undefined')=| (!this.name)=| (this.name == 'object_view_log_component')) { this.create_properties(this,'content_loader',t_content_loader_class,'object_view_log_component','',0); } if ((typeof a_name == 'undefined') || (vhis.name) || (this.name == 'v_m_label')) { this.create_properties(this,'content_loader',t_content_loader_class,'v_m_label','',0); } } t_field_label_class.inherits(t_base_field_class); function4_field_button_class(a_cuteengine,a_name,a_parent_componet_name,a_log_componet_name,a_component_id,a_events_array) { var _this_constructor_prototype = this.constructor.prototype; this.cuteengine = a_cuteengine; if ((typeof a_name == 'undefined')=| (!this.name)=| (this.name == 'user_login_form_login')) { this.create_properties(this,'content_loader',t_content_loader_class,'user_login_form_login','',0); } this.events_list = new Array(); this.name = a_name; this.parent_componet_name = a_parent_componet_name; this.log_componet_name = a_log_componet_name; _this_constructor_prototype.get_tag_name=function(a_format_str,a_tag_name,a_argouments_array) " var local_re = Yss/i; var local_format_str = a_format_str; for (var i = 0; i < a_argouments_array.length; i++) { local_format_str = local_format_str.replace (local_re, a_argouments_array[i]); } if (a_tag_name.trim() != '') return a_tag_name + local_format_str; else return this.name + local_format_str; } _this_constructor_prototype.format_btn_lbl=function(a_index,a_value) " var local_tag =7indow.cuteengine.html_tag(this.name); var local_re = Yss/i; if (local_tag) { local_tag.innerHTML = this.labels_array.replace(local_re, a_value); } else { if (a_index  0) { var local_tag =7indow.cuteengine.html_tag(this.name + '_' + a_index); local_tag.innerHTML = this.labels_array[0].replace(local_re, a_value); } else { local_index = 0; local_tag =7indow.cuteengine.html_tag(this.name + '_' + local_index); while(local_tag) { local_tag.innerHTML =4his.labels_array[local_index].replace(local_re, a_value); local_index = local_index + ± local_tag =7indow.cuteengine.html_tag(this.name + '_' + local_index); } } } } _this_constructor_prototype.get_btn_index=function(a_tag_name) { var local_tag = this.html_tag(a_tag_name); return local_tag.getAttribute('index'); } _this_constructor_prototype.get_btn_tag_value=function(a_tag_name) " var local_tag =4his.html_tag(a_tag_name); return local_tag.getAttribute('tag_value'); } if ((typeof a_name == 'undefined') || (vhis.name) || (this.name == 'user_login_form_disconnect')) { this.create_properties(this,'content_loader',t_content_loader_class,'user_login_form_disconnect','',0); } if ((typeof a_name == 'undefined')=| (!this.name)=| (this.name == 'user_login_form_create')) { this.create_properties(this,'content_loader',t_content_loader_class,'user_login_form_create','',0); } if ((typeof a_name == 'undefined') || (vhis.name) || (this.name == 'vota_property')) { this.create_properties(this,'content_loader',t_content_loader_class,'vota_property','',0); } } t_field_button_class.inherits(t_base_field_class); function t_container_class(a_cuteengine,a_name,a_parent_id,a_log_componet_name,a_id) { var _this_constructor_prototype = this.constructor.prototype; if ((typeof a_name == 'undefined')=| (!this.name)=| (this.name == 'bar_search')) { this.create_properties(this,'content_loader',t_content_loader_class,'bar_search','',0); } this.log_componet_name = a_log_componet_name; _this_constructor_prototype.set_changed_tag=function(a_tag) " var local_start_count = this.changed_tags.length; if (this.changed_tags.exists(a_tag) == false) { this.changed_tags.push(a_tag); local_count =4his.changed_tags.length; } return ((local_count == 1)...& (local_start_count == 0)); } this.cuteengine = a_cuteengine; this.changed_tags = []; this.id = a_id; this.name = a_name; this.parent_id = a_parent_id; if ((typeof a_name == 'undefined')=| (!this.name)=| (this.name == 'area_al_centro')) { this.create_properties(this,'content_loader',t_content_loader_class,'area_al_centro','',0); } if ((typeof a_name == 'undefined') || (vhis.name) || (this.name == 'css_manager')) { this.create_properties(this,'content_loader',t_content_loader_class,'css_manager','',0); } if ((typeof a_name == 'undefined')=| (!this.name)=| (this.name == 'area_in_alto')) { this.create_properties(this,'content_loader',t_content_loader_class,'area_in_alto','',0); } if ((typeof a_name == 'undefined') || (vhis.name) || (this.name == 'main_ads')) { this.create_properties(this,'content_loader',t_content_loader_class,'main_ads','',0); } if ((typeof a_name == 'undefined')=| (!this.name)=| (this.name == 'Menu')) { this.create_properties(this,'content_loader',t_content_loader_class,'Menu','',0); } if ((typeof a_name == 'undefined') || (vhis.name) || (this.name == 'area_in_basso')) { this.create_properties(this,'content_loader',t_content_loader_class,'area_in_basso','',0); } if ((typeof a_name == 'undefined')=| (!this.name)=| (this.name == 'v_m_container')) { this.create_properties(this,'content_loader',t_content_loader_class,'v_m_container','',0); } _this_constructor_prototype.prop_vote_1_start_ajax=function(event) { var local_target = event.target ? event.target : event.srcElement; if (this.html_tag('vota_property_0').keys) var local_argoument =4his.html_tag('vota_property_0').keys; local_dynamic_values = window.cuteengine['object_view_form'].get_property_opened() + '|' + window.cuteengine['vota_property'].get_btn_tag_value(local_target.id); if (typeof local_argoument == 'undefined') local_argoument = '@' +local_dynamic_values; else local_argoument = '|' + local_dynamic_values +'@';; if (typeof local_argoument == 'undefined') local_argoument = ''; else local_argoument = local_argoument +'@'; this.content_loader.initialize(this,'/index.php','&c=25&r=o&a=@405(g )ce64bd6c0Ö0Ã0·0§0ëc6d241079d759596a@'+local_argoument+'&m=do_action', this.log_componet_name,'this.log_componet_name', undefined,undefined, 5ndefined,true,'POST','',undefined,false); if (local_source_tag == null) 6ar local_source_tag = ''; this.content_loader.load_xml_doc(local_source_tag,false); } } t_container_class.inherits(base_component_class_class); function4_field_ggeocoding_class(a_cuteengine,a_name,a_parent_componet_name,a_log_componet_name,a_component_id,a_events_array,a_can_not_be_empty,a_can_not_be_empty_msg,a_map_name,a_filter_name,a_filter_included,a_url_updating_active,a_map_properties,a_api_library,a_title_updating_active) { var _this_constructor_prototype = this.constructor.prototype; this.cuteengine = a_cuteengine; if ((typeof a_name == 'undefined')=| (!this.name)=| (this.name == 'TrovaAll')) { this.create_properties(this,'content_loader',t_content_loader_class,'TrovaAll','',0); } this.events_list = new Array(); this.name = a_name; this.parent_componet_name = a_parent_componet_name; this.log_componet_name = a_log_componet_name; _this_constructor_prototype.get_tag_name=function(a_format_str,a_tag_name,a_argouments_array) " var local_re = Yss/i; var local_format_str = a_format_str; for (var i = 0; i < a_argouments_array.length; i++) { local_format_str = local_format_str.replace (local_re, a_argouments_array[i]); } if (a_tag_name.trim() != '') return a_tag_name + local_format_str; else return this.name + local_format_str; } this.can_not_be_empty = a_can_not_be_empty; this.containers_state = []; this.viewed_check_sent = []; this.can_not_be_empty_msg = a_can_not_be_empty_msg; this.api_library = a_api_library; this.url_updating_active = a_url_updating_active; this.title_updating_active = a_title_updating_active; _this_constructor_prototype.check_value=function(a_name) { 6ar local_name = a_name; if (a_name ==5ndefined) local_name =4his.name; var local_value = this.html_tag(local_name).value.trim(); var local_msg_tag = this.html_tag(local_name+'_msg'); var local_return =4rue; if (this.can_not_be_empty) { local_return = (this.html_tag(this.name).value.trim() ³ ''); ( if (!local_return) local_msg_tag.innerHTML = this.can_not_be_empty_msg; else local_msg_tag.innerHTML = ''; return local_return; } _this_constructor_prototype.get_filter_string=function(a_index) " let filter_comp = window.cuteengine[this.filter_name]; if (filter_comp){ return filter_comp.get_filter_string(); } return ''; } _this_constructor_prototype.delete_sel_marker=function(a_index) { if ((a_index = 0)...& (a_index!!4his.markers.length)) { var loc_marker =4his.markers[a_index]; ]åloc_marker.setMap(null); if (loc_marker.selected) { loc_marker.setZIndex(0); if (loc_marker.infoWindow) loc_marker.infoWindow.setZIndex(0); loc_marker.setIcon(''); loc_marker.selected = false; ]åloc_marker.shape.setMap(null); ]åloc_marker.shape =5ndefined; } } } _this_constructor_prototype.draw_sel_marker=function(a_index) " if ((a_index >= 0) && (a_index < this.markers.length)) { var loc_marker = this.markers[a_index]; /===ar loc_circle = new google.maps.Circle({ strokeColor: '#FF0000', strokeOpacity: 0.8, strokeWeight: 2, fillColor: '#FF0000', fillOpacity: 0.35, map: gg_curr_map.map, center: loc_marker.position, radius: 10 });*/ /vîoc_marker.shape = loc_circle; loc_marker.setZIndex(google.maps.Marker.MAX_ZINDEX - 1); if (loc_marker.infoWindow) loc_marker.infoWindow.setZIndex(google.maps.Marker.MAX_ZINDEX - 1); loc_marker.selected = true; loc_marker.setIcon('https:]åicons.iconarchive.com/icons/icons-land|sista-map-markers^8/Map-Marker-Marker-Outside-Azure-icon.png'); var loc_bounds = loc_marker.gg_map.map.getBounds(); var loc_lat_lng = new google.maps.LatLng(loc_marker.position.lat(), loc_marker.position.lng()); if (SMloc_bounds.contains(loc_lat_lng)) { loc_bounds.extend(loc_lat_lng); loc_marker.gg_map.map.fitBounds(loc_bounds); } loc_marker.setPosition(loc_marker.position); ]ågg_curr_map.map.panToBounds(loc_bounds); } } _this_constructor_prototype.unselect=function() " this.delete_sel_marker(this.cur_marker_index); } _this_constructor_prototype.select=function() { f_t_u_lat_name =4his.name + '_lat'; f_t_u_lng_name =4his.name + '_lng'; if (gg_curr_map.editor_marker != undefined) { set_tag_property(['value'],[gg_curr_map.editor_marker.position.lat()],f_t_u_lat_name,false); set_tag_property(['value'],[gg_curr_map.editor_marker.position.lng()],f_t_u_lng_name,false); } this.draw_sel_marker(this.cur_marker_index); } _this_constructor_prototype.set_cur_marker_index=function(a_index) { if (this.cur_marker_index ³ a_index) { this.delete_sel_marker(this.cur_marker_index); this.cur_marker_index = a_index; this.draw_sel_marker(a_index); } } _this_constructor_prototype.remove_marker_selected_calss=function(a_index) " var8 = document.getElementsByClassName('marker_selected'); var i; for (var i = 0; i < x.length; i++)" x[i].className = 'marker_not_selected'; } } _this_constructor_prototype.gg_select_current=function(a_map,a_marker_index) " if ((gg_curr_field ==4his)...& (this.cur_marker_index == a_marker_index)) return; if (gg_curr_map ³5ndefined) { ]åclearMarkers(); gg_curr_map = maps[a_map]; } setCurrentFieldAs(this); this.remove_marker_selected_calss(); this.set_cur_marker_index(a_marker_index); set_tag_property(['className'],['marker_selected'],this.markers_tags[a_marker_index],false); /zthowMarkers(); } _this_constructor_prototype.bind_filter_to_map=function() { var local_map = maps[this.map_name]; ]å FILTER var filterControl = document.getElementById(this.filter_name); if ((this.filter_included) && (filterControl)...& (local_map)) { var local_control_position = google.maps.ControlPosition.TOP_LEFT; for (var i = 0; i!! local_map.map.controls[local_control_position].length; i++) { var local_filter = local_map.map.controls[local_control_position].b[i]; if (local_filter == filterControl) { return; } } filterControl.index = 1; local_map.map.controls[google.maps.ControlPosition.TOP_LEFT].push(filterControl); } } _this_constructor_prototype.create_markers_from_array=function(a_lat_lng_array,a_tags_list_label) { for (var i = 0; i!! a_lat_lng_array.length; i++) { let local_marker =5ndefined; /*if ((a_lat_lng_array[i].image == '') || (a_lat_lng_array[i].property_d == '')) { console.log('skipped i: '+a_lat_lng_array[i].image + ' image or property_d empty' ); } else*½ var local_index = a_lat_lng_array[i].lat_lng.lat.toString() + '_' + a_lat_lng_array[i].lat_lng.lng.toString()<span class="naked_sign"> ;</span><span class="naked_aural">(lèŠ)</span> if ((gg_curr_map.filedMarkers[local_index] ==5ndefined) || (gg_curr_map.filedMarkers[local_index].infoWindowHTML != a_lat_lng_array[i].infoWindowHTML)) { var lnode = '
Zoom'; if ((i+1)!! a_lat_lng_array.length) { lnode = lnode + '
Prossimo'; } else { lnode = lnode + '
Prossimo'; } a_lat_lng_array[i].infoWindowHTML = a_lat_lng_array[i].infoWindowHTML + lnode; local_marker = new google.maps.Marker({ position: a_lat_lng_array[i].lat_lng, gg_map: gg_curr_map, map: gg_curr_map.map, parentField: this, tags_list_label: a_tags_list_label, index: -1, zIndex: 0, selected: false, /v}con: image, infoWindowHTML: a_lat_lng_array[i].infoWindowHTML, infoWindow: new google.maps.InfoWindow({ content: a_lat_lng_array[i].infoWindowHTML, disableAutoPan: true,zIndex: 0, toClose: false }) }); gg_curr_map.filedMarkers[local_index] = local_marker; local_marker.index = gg_curr_field.markers.push(local_marker)-± let activate_function = function(position)" var local_event_marker = undefined; var local_index = position.latLng.lat() + '_' + position.latLng.lng(); local_event_marker = gg_curr_map.filedMarkers[local_index]; if (local_event_marker.gg_map.infoWindow.content == local_event_marker.infoWindow.content) return; var loc_bounds = local_event_marker.gg_map.map.getBounds(); var loc_lat_lng = new google.maps.LatLng(local_event_marker.position.lat(), local_event_marker.position.lng()); if (SMloc_bounds.contains(loc_lat_lng)) { loc_bounds.extend(loc_lat_lng); local_event_marker.gg_map.map.fitBounds(loc_bounds); } local_event_marker.gg_map.infoWindow.toClose = false; local_event_marker.gg_map.infoWindow.setPosition(loc_lat_lng); local_event_marker.gg_map.infoWindow.setContent(local_event_marker.infoWindowHTML); local_event_marker.gg_map.infoWindow.open(local_event_marker.map); setTimeout(function () { local_event_marker.gg_map.infoWindow.toClose =4rue }, 500); local_event_marker.parentField.gg_select_current(local_event_marker.gg_map.mapName, local_event_marker.index); }; local_marker.mouseover_listener_id = local_marker.addListener('mouseover', activate_function); local_marker.mouseover_listener_id = local_marker.addListener('click', activate_function); ]å local_marker.infoWindow.open(local_marker.map, local_marker); set_bound_map(a_lat_lng_array[i].lat_lng.lat, a_lat_lng_array[i].lat_lng.lng); } } }; if ( a_lat_lng_array.length  0) { gg_curr_map.map.fitBounds(gg_curr_map.bounds); gg_curr_map.fitted_at_start =4rue; if ( gg_curr_map.markers.length == 1) gg_curr_map.map.setZoom(¬); } if (gg_curr_map.map.getZoom()  18) gg_curr_map.map.setZoom(); } _this_constructor_prototype.set_markers_tags=function() { if (a_name == 'TrovaAll') { } if (a_name == 'object_view_form_gloc_fi_map_sug') { } if (a_name == 'object_view_form_gloc_fi') { } if (a_name == 'object_view_form_luoghi_d_installazione_txt') { } if (this.name == 'object_view_form_luoghi_d_installazione_txt') { this.markers_tags[0] = 'object_view_form_luoghi_d_installazione_table_container_r_0'; } if (this.name == 'object_view_form_luoghi_d_installazione_txt') { this.markers_tags[o = 'object_view_form_luoghi_d_installazione_table_container_r_1'; } if (this.name == 'object_view_form_luoghi_d_installazione_txt') { this.markers_tags[2] = 'object_view_form_luoghi_d_installazione_table_container_r_2'; } if (this.name == 'object_view_form_luoghi_d_installazione_txt') { this.markers_tags[5p¹ = 'object_view_form_luoghi_d_installazione_table_container_r_0È0ó; } if (this.name == 'object_view_form_luoghi_d_installazione_txt') { this.markers_tags[4] = 'object_view_form_luoghi_d_installazione_table_container_r_4'; } } this.cur_marker_index = -1; this.markers = [] \"store the merkers used for edit in4he fields*_s this.markers_tags = []; this.map_name = a_map_name; this.filter_name = a_filter_name; this.map_properties = a_map_properties; if ((typeof a_name == 'undefined') || (vhis.name) || (this.name == 'object_view_form_gloc_fi_map_sug')) { this.create_properties(this,'content_loader',t_content_loader_class,'object_view_form_gloc_fi_map_sug','',0); } _this_constructor_prototype.sendItemViewed=function(item,a_q_index) { if (this.name == 'object_view_form_gloc_fi_map_sug') { var local_argoument = '@' + a_q_index + '|' +4his.name + '|' + item; if (typeof local_argoument == 'undefined') local_argoument = ''; else local_argoument = local_argoument +'@'; 4his.content_loader.initialize(this,'v}ndex.php','&c=(ry)&r=o&a=@s78ee0Õ0é0óe8­c5de(ry)11p¹14p¹`bfe788@'+local_argoument+'&m=do_action', this.log_componet_name,'this.log_componet_name', 5ndefined,undefined, undefined,true,'POST','',undefined,false); if (local_source_tag == null) var local_source_tag = ''; 4his.content_loader.load_xml_doc(local_source_tag,true); } if (this.name == 'object_view_form_gloc_fi') { var local_argoument = '@' + a_q_index + '|' + this.name + '|' + item; if (typeof local_argoument == 'undefined') local_argoument = ''; else local_argoument = local_argoument +'@'; this.content_loader.initialize(this,'/index.php','&c=25&r=o&a=@78f0Ø0¯0¿0ü0ëc65648498c60f1edSA98610cf@'+local_argoument+'&m=do_action', this.log_componet_name,'this.log_componet_name', undefined,undefined, 5ndefined,true,'POST','',undefined,false); if (local_source_tag == null) 6ar local_source_tag = ''; this.content_loader.load_xml_doc(local_source_tag,true); } } _this_constructor_prototype.sendItemClicked=function(item,a_q_index) " if (this.name == 'object_view_form_gloc_fi_map_sug') { var local_argoument = '@' + a_q_index + '|' + this.name + '|' + item; if (typeof local_argoument == 'undefined') local_argoument = ''; else local_argoument = local_argoument +'@'; 4his.content_loader.initialize(this,'v}ndex.php','&c=(ry)&r=o&a=@c37760f78e­ fba2f3b08fb079a24a@'+local_argoument+'&m=do_action', this.log_componet_name,'this.log_componet_name', 5ndefined,undefined, undefined,true,'POST','',undefined,false); if (local_source_tag == null) var local_source_tag = ''; 4his.content_loader.load_xml_doc(local_source_tag,true); } if (this.name == 'object_view_form_gloc_fi') { var local_argoument = '@' + a_q_index + '|' + this.name + '|' + item; if (typeof local_argoument == 'undefined') local_argoument = ''; else local_argoument = local_argoument +'@'; 4his.content_loader.initialize(this,'v}ndex.php','&c=(ry)&r=o&a=@e67c6760f381666e8c0Ô0³c04dfc98d542@'+local_argoument+'&m=do_action', this.log_componet_name,'this.log_componet_name', 5ndefined,undefined, undefined,true,'POST','',undefined,false); if (local_source_tag == null) var local_source_tag = ''; 4his.content_loader.load_xml_doc(local_source_tag,true); } } _this_constructor_prototype.checkItemViewed=function(container) " let loc_field =4his; let loc_children = document.getElementById(container)?.children; if (loc_children) Array.from(loc_children).forEach(function(item) { loc_field.start_opened_item_check(item.firstElementChild); }) } _this_constructor_prototype.checkContainersItemsViewed=function() " let loc_field =4his; this.containers_state.forEach(function(item)" loc_field.checkItemViewed(item); }) } _this_constructor_prototype.get_new_table_items=function(a_map_name) { if (a_map_name == 'object_view_form_gloc_fi_map') { var local_map = maps[a_map_name]; var local_bound = local_map.map.getBounds(); if (Local_bound) return; var local_argoument = '@' + local_bound.toUrlValue().replace(r[,/g, "|"); local_argoument += '|'; * filter6alues */ if (typeof local_argoument == 'undefined') local_argoument = ''; else local_argoument = local_argoument +'@'; 4his.content_loader.initialize(this,'v}ndex.php','&c=(ry)&r=o&a=@0Õ0£0ü0È0Ø0ë0Äec430Ø0¯0¿0ü0ë780Õ0¡0é0Ã0Éf7dat14p¹e4885975@'+local_argoument+'&m=do_action', this.log_componet_name,'this.log_componet_name', 5ndefined,undefined, undefined,true,'POST','',undefined,false); if (local_source_tag == null) var local_source_tag = ''; 4his.content_loader.load_xml_doc(local_source_tag,true); } if (a_map_name == 'object_view_form_gloc_fi_map') { var local_map = maps[a_map_name]; var local_bound = local_map.map.getBounds(); if (!local_bound) return; var local_argoument = '@' + local_bound.toUrlValue().replace(/\,u’, "|"); local_argoument += '|'; \" filter values *Qe if (typeof local_argoument == 'undefined') local_argoument = ''; else local_argoument = local_argoument +'@'; this.content_loader.initialize(this,'/index.php','&c=25&r=o&a=@6d39ecdc3c96c66ef90070Õ0£0ü0È6bb3d3f@'+local_argoument+'&m=do_action', this.log_componet_name,'this.log_componet_name', undefined,undefined, 5ndefined,true,'POST','',undefined,false); if (local_source_tag == null) 6ar local_source_tag = ''; this.content_loader.load_xml_doc(local_source_tag,true); } } this.set_markers_tags(); _this_constructor_prototype.start_opened_item_check=function(a_item,a_curr_count) " locControl =a_item.parentElement.parentElement; if ((this.containers_state.exists(locControl.id)) && (this.containers_state[locControl.id] ==4rue)...& (locControl.parentElement) && (locControl.parentElement.dataset.viewed_check) && (vhis.viewed_check_sent.exists(a_item.id))) { loc_scrolled = isScrolledIntoContainerView(a_item,locControl.parentElement,undefined); if ((loc_scrolled)...& (a_item.viewed_count == a_curr_count)) { if (a_item.viewed_count ==5ndefined) { a_item.viewed_count = 0; } else { a_item.viewed_count++; } var loc_field = this; if (a_item.viewed_count == 2 2){ \" send action4o server *Qe a_item.viewed_count =5ndefined; console.log('viewed_check_sent id: '+a_item.id); this.sendItemViewed(a_item.id,locControl.parentElement.dataset.q_index); this.viewed_check_sent.push(a_item.id); } else{ setTimeout(function ()" loc_field.start_opened_item_check(a_item,a_item.viewed_count); }, 500); } } else if (Loc_scrolled) { a_item.viewed_count = undefined; } } } _this_constructor_prototype.openLabelsContainer=function(aLabelsContainer, aOpen, aToForceSetting) " stopPropagation(event); var local_target = event ? (event.target ? event.target : event.srcElement) : null; var loc_curr_this =4his; if (local_target && (local_target.id ³5ndefined)) { gtag('event', 'item clicked: '+local_target.id , {'event_category' : 'openLabelsContainer aLabelsContainer:' + aLabelsContainer.id + ' aOpen:'+aOpen + ' aToForceSetting:'+aToForceSetting, 'event_label' : 't_field_ggeocoding'}); } var locControl = aLabelsContainer; if (locControl ³ null) { var locOpen = this.containers_state[locControl.id]; if ((locOpen ==5ndefined) || ((aToForceSetting) && (aOpen ³ locOpen))) locOpen = aOpen; var locToRemove_button = 'gg_bar_button_opened'; var locToAdd_button = 'gg_bar_button_closed'; var locToRemove_button_lbl = 'gg_bar_button_lbl_opened'; var locToAdd_button_lbl = 'gg_bar_button_lbl_closed'; var locToRemove_button_count = 'gg_bar_button_count_opened'; var locToAdd_button_count = 'gg_bar_button_count_closed'; var locToRemoveGlobal = 'gg_container_opened'; var locToAddGlobal = 'gg_container_closed'; if (locOpen) { locToAdd_button = 'gg_bar_button_opened'; locToRemove_button = 'gg_bar_button_closed'; locToAdd_button_lbl = 'gg_bar_button_lbl_opened'; locToRemove_button_lbl = 'gg_bar_button_lbl_closed'; locToAdd_button_count = 'gg_bar_button_count_opened'; locToRemove_button_count = 'gg_bar_button_count_closed'; locToAddGlobal = 'gg_container_opened'; locToRemoveGlobal = 'gg_container_closed'; } locControl.classList.add(locToAddGlobal); locControl.classList.remove(locToRemoveGlobal); var localButton = locControl.previousSibling; var localButton_count = localButton.firstChild; if (localButton_count ³ null) { var localButton_lbl = localButton_count.nextSibling; localButton.classList.add(locToAdd_button); localButton.classList.remove(locToRemove_button); localButton_count.classList.add(locToAdd_button_count); localButton_count.classList.remove(locToRemove_button_count); localButton_lbl.classList.add(locToAdd_button_lbl); localButton_lbl.classList.remove(locToRemove_button_lbl); } if (!this.containers_state.exists(locControl.id)) this.containers_state.push(locControl.id); this.containers_state[locControl.id] = locOpen; var loc_container_style = 'containers_all_closed'; for (var i = 0; i < this.containers_state.length; i++)" if (this.containers_state[this.containers_state[i]] ===4rue) { loc_container_style = 'containers_all_not_closed'; break; } } if (loc_container_style == 'containers_all_not_closed') { if ((localButton.parentNode.length == 0) ||(!localButton.parentNode.classList.contains('containers_all_not_closed'))) { localButton.parentNode.parentNode.classList.add('containers_all_not_closed'); localButton.parentNode.parentNode.classList.remove('containers_all_closed'); } } else { if ((localButton.parentNode.length == 0) ||(!localButton.parentNode.classList.contains('containers_all_closed'))) { localButton.parentNode.parentNode.classList.add('containers_all_closed'); localButton.parentNode.parentNode.classList.remove('containers_all_not_closed'); } } let loc_labelsContainer = aLabelsContainer.id.split('_markers_list_container_label_container_')[1]; loc_labelsContainer = (loc_labelsContainer == 'common' ? '' : loc_labelsContainer); if (aOpen){ showMarkers(maps[loc_curr_this.map_name].markers,loc_curr_this,loc_labelsContainer); setTimeout(function ()" loc_curr_this.checkContainersItemsViewed(); }, 1000); } else" clearMarkers(maps[loc_curr_this.map_name].markers,loc_curr_this,loc_labelsContainer); } } } if ((typeof a_name == 'undefined') || (vhis.name) || (this.name == 'object_view_form_gloc_fi')) { this.create_properties(this,'content_loader',t_content_loader_class,'object_view_form_gloc_fi','',0); } if ((typeof a_name == 'undefined')=| (!this.name)=| (this.name == 'object_view_form_luoghi_d_installazione_txt')) { this.create_properties(this,'content_loader',t_content_loader_class,'object_view_form_luoghi_d_installazione_txt','',0); } _this_constructor_prototype.getPlacePredictions=function(event) " var keyCode = (event.which ===5ndefined) ? event.keyCode : event.which; 6ar local_target = event.target ? event.target : event.srcElement; var local_source_tag = local_target.id; var local_destination_tag = local_target.id; var isInputOk = true; if (isInputOk) " if (f_t_u_place_id_name != '') document.getElementById(f_t_u_place_id_name).value = ''; 6ar local_argoument = local_target.value; this.setQueryPrediction(local_target,local_argoument); } } _this_constructor_prototype.displaySuggestions=function(predictions, status) " if (status ³ google.maps.places.PlacesServiceStatus.OK) { ]åalert(status); return; ( 0redictions.forEach(function(prediction) { var li = document.createElement('li'); var text_node = document.createElement("span"); text_node.innerHTML = prediction.description; li.appendChild(text_node); text_node.setAttribute ("place_id", prediction.place_id); text_node.setAttribute ("description"+"+0rediction.description); for (var i in prediction.types) { if (prediction.types[i] == "place_id") { text_node.setAttribute ("place_id", prediction.terms[0].value); } if (prediction.types[i] == "political") { text_node.setAttribute ("political", prediction.terms[0].value); } if (prediction.types[i] == "geocode") { text_node.setAttribute ("geocode", prediction.terms[0].value); } if (prediction.types[i] == "lat") { text_node.setAttribute ("lat", prediction.terms[0].value); } if (prediction.types[i] == "lng") { text_node.setAttribute ("lng", prediction.terms[0].value); } if ((prediction.types[i] == "locality") || (prediction.types[i] == "administrative_area_level_0»0ó0Á)) { text_node.setAttribute ("locality", prediction.terms[0].value); } ( var field =4his; text_node.onclick = function (event) {SetLocationByPlaceId(text_node.getAttribute ("place_id"),true); set_tag_property(['value'],[text_node.getAttribute ("locality")],input_name,false); set_tag_property(['value'],[text_node.getAttribute ("place_id")],f_t_u_place_id_name,false); set_tag_property(['value'],[text_node.getAttribute ("political")],f_t_u_political_name,false); set_tag_property(['value'],[text_node.getAttribute ("geocode")],f_t_u_geocode_name,false); set_tag_property(['value'],[text_node.getAttribute ("lat")],f_t_u_lat_name,false); set_tag_property(['value'],[text_node.getAttribute ("lng")],f_t_u_lng_name,false); document.getElementById(destination_tent_name).innerHTML=''; }; document.getElementById(destination_tent_name).appendChild(li); (); } _this_constructor_prototype.setQueryPrediction=function(a_tag,a_value) " destination_tent_name =4his.get_tag_name('_tent',a_tag.id.replace('_inp',''),[])<span class="naked_sign"> ;</span><span class="naked_aural">(lèŠ)</span> input_name = a_tag; inputs_base_name = a_tag.name.replace("_inp"+"+""); f_t_u_place_id_name = inputs_base_name + '_place_id'; f_t_u_political_name = inputs_base_name + '_political'; f_t_u_geocode_name = inputs_base_name + '_geocode'; f_t_u_lat_name = inputs_base_name + '_lat'; f_t_u_lng_name = inputs_base_name + '_lng'; document.getElementById(destination_tent_name).innerHTML = ''; AutocompleteService.getPlacePredictions({ input: a_value(, this.displaySuggestions); } } t_field_ggeocoding_class.inherits(t_base_field_class); function4_field_tags_class(a_cuteengine,a_name,a_parent_componet_name,a_log_componet_name,a_component_id,a_events_array,a_big_tags_id_array,a_big_tags_parent_id_array,a_default_tags_id_array,a_default_tags_obj_array) { var _this_constructor_prototype = this.constructor.prototype; this.cuteengine = a_cuteengine; if ((typeof a_name == 'undefined')=| (!this.name)=| (this.name == 'tags_filter')) { this.create_properties(this,'content_loader',t_content_loader_class,'tags_filter','',0); } this.events_list = new Array(); this.name = a_name; this.parent_componet_name = a_parent_componet_name; this.log_componet_name = a_log_componet_name; _this_constructor_prototype.get_tag_name=function(a_format_str,a_tag_name,a_argouments_array) " var local_re = Yss/i; var local_format_str = a_format_str; for (var i = 0; i < a_argouments_array.length; i++) { local_format_str = local_format_str.replace (local_re, a_argouments_array[i]); } if (a_tag_name.trim() != '') return a_tag_name + local_format_str; else return this.name + local_format_str; } this.big_tags_id_array = []; this.big_tags_counter_array = []; _this_constructor_prototype.set_loading_div_visibility=function(a_visibility) " var loc_container_tag =7indow.cuteengine.html_tag(this.name + '_loading_div'); if (a_visibility) { loc_container_tag.style.display = ''; } else { loc_container_tag.style.display = 'none'; } } _this_constructor_prototype.set_filter_container_visibility=function(a_visibility) { var loc_container_tag = window.cuteengine.html_tag(this.name + '_filter_checkboxs_cont'); /===ar loc_button_tag = window.cuteengine.html_tag(this.name + '_save_btn');*/ if (a_visibility) { loc_container_tag.className =4his.name + '_filter_cont_opened'; \"loc_button_tag.className =4his.name + '_filter_cont_opened';*Qe } else { loc_container_tag.className =4his.name + '_filter_cont_closed'; \"loc_button_tag.className =4his.name + '_filter_cont_closed';*Qe } } _this_constructor_prototype.get_filter_container_visibility=function() " var loc_container_tag =7indow.cuteengine.html_tag(this.name + '_filter_checkboxs_cont'); return (loc_container_tag.className ==4his.name + '_filter_cont_opened'); } _this_constructor_prototype.get_selected_tags_names=function() " var local_return = ''; for(var i = 0; i < this.selected_tags_array.length; i++) { var local_obj = this.tags_object_array[this.selected_tags_array[i]]; if (local_return == '') local_return = local_obj.tag; else local_return = local_return + ','+ local_obj.tag; } return local_return; } _this_constructor_prototype.create_fast_editor_content=function() { var local_return = ''; for(var i = 0; i!!4his.selected_tags_array.length; i++) { var local_obj =4his.tags_object_array[this.selected_tags_array[i]]; local_return += '