// source --> https://immo-kirberg.de/wp-content/cache/autoptimize/autoptimize_single_4d392c6df34bc0ca26fbbe5d89cf0983.php?ver=6.8 
(function($){'use strict';var owl;var owl;$(document).ready(function(){jQuery(".vr-mode-title").hide();owl=$(".vrowl-carousel").owlCarousel({margin:20,autoWidth:true,});$('button.owl-next').on('click',function(){owl.trigger('next.owl.carousel');});$('button.owl-prev').on('click',function(){owl.trigger('prev.owl.carousel');});});$('.customNextBtn').on('click',function(){owl.trigger('next.owl.carousel');});$('.owl-prev').on('click',function(){owl.trigger.prev();});})(jQuery);function wpvrhotspot(hotSpotDiv,hotspotData){let args=hotspotData.on_click_content;if(args){var target=hotSpotDiv.target;var idgetter=jQuery(target).parent().parent().attr('id');var pano_id=idgetter.replace('pano','');var music=jQuery('#vrAudio'+pano_id).attr('data-autoplay');var player=jQuery('#audio_control'+pano_id).attr('data-play');if(music=="on"){jQuery('#vrAudio'+pano_id).get(0).pause();jQuery('.wpvrvolumeicon'+pano_id).removeClass('fas fa-volume-up');jQuery('.wpvrvolumeicon'+pano_id).addClass('fas fa-volume-mute');}
else{if(player=='on'){jQuery('#vrAudio'+pano_id).get(0).pause();jQuery('.wpvrvolumeicon'+pano_id).removeClass('fas fa-volume-up');jQuery('.wpvrvolumeicon'+pano_id).addClass('fas fa-volume-mute');}}
var argst=args.replace(/\\/g,'');jQuery(document).ready(function($){var div=document.createElement('div');div.innerHTML=argst.trim();if($(div).find('.fluentform').length){var id=$(div).find('.fluentform form').attr('data-form_id');var form_class='.fluentform_wrapper_'+id+':first';$(hotSpotDiv.target).parent().siblings('.wpvr-hotspot-tweak-contents-wrapper').find('.ff-message-success, .ff-errors-in-stack').show();$(hotSpotDiv.target).parent().siblings('.wpvr-hotspot-tweak-contents-wrapper').find('.fluentform').hide();$(hotSpotDiv.target).parent().siblings('.wpvr-hotspot-tweak-contents-wrapper').find(form_class).show();$(hotSpotDiv.target).parent().siblings('.wpvr-hotspot-tweak-contents-wrapper').fadeToggle();$(div).find('.fluentform').show();}else{$(hotSpotDiv.target).parent().siblings(".custom-ifram-wrapper").find('.custom-ifram').html(argst);$(hotSpotDiv.target).parent().siblings(".custom-ifram-wrapper").fadeToggle();$('.wpvr-product-container p.add_to_cart_inline a.button').wrap('<span class="wpvr-cart-wrap"></span>');$('.wpvr-product-container p.add_to_cart_inline a.button').attr("target","_blank");}
$(hotSpotDiv.target).parent().parent(".pano-wrap").toggleClass("show-modal");if($('.rtec').length&&!$('.rtec').hasClass('rtec-initialized')){rtecInit();}});}
jQuery.ajax({url:wpvrAnalyticsObj.ajaxUrl,type:"POST",data:{action:"store_scene_hotspot_data",scene_id:hotspotData.scene_id,tour_id:hotspotData.tour_id,type:'hotspot',hotspot_id:hotspotData.hotspot_id||"",user_agent:navigator.userAgent,device_type:getDeviceType()||"desktop",nonce:wpvrAnalyticsObj.nonce,session_id:wpvrAnalyticsObj.session_id,},success:function(response){},error:function(error){}});}
function wpvrtooltip(hotSpotDiv,args){hotSpotDiv.classList.add('custom-tooltip');var span=document.createElement('span');args=args.replace(/\\/g,"");span.innerHTML=args;hotSpotDiv.appendChild(span);span.style.marginLeft=-(span.scrollWidth-hotSpotDiv.offsetWidth)/2+'px';span.style.marginTop=-span.scrollHeight-12+'px';}
jQuery(document).ready(function($){$(".cross").on("click",function(e){e.preventDefault();var pano_id=$(this).attr('data-id');$(this).parent('.wpvr-hotspot-tweak-contents-wrapper').find('.ff-message-success, .ff-errors-in-stack').hide();$(this).parent('.wpvr-hotspot-tweak-contents-wrapper').fadeOut();$(this).parent(".custom-ifram-wrapper").fadeOut();$(this).parents(".pano-wrap").removeClass("show-modal");$('.vr-iframe').attr('src','');if($('#wpvr-video').length!=0){$('#wpvr-video').get(0).pause();}});$(".elementor-tab-title").on("click",function(e){$('audio').each(function(){$(this).get(0).pause();});});});jQuery(document).ready(function($){$('.cp-logo-ctrl').on('click',function(){$(this).toggleClass('show');});$('.vrbounce').on('click',function(){window.dispatchEvent(new Event('resize'));});});jQuery(document).ready(function($){$('#player_audio').on('click',function(){if(this.paused==false){this.pause();alert('music paused');}else{this.play();alert('music playing');}});});jQuery(document).ready(function($){if(typeof wpvr_public!="undefined"){var notice_active=wpvr_public.notice_active;var notice=wpvr_public.notice;if(notice_active=="true"){if(!$.cookie("wpvr_mobile_notice")){if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)){if($(".pano-wrap")[0]){$('body').append("<div class='wpvr-mobile-notice'><p>"+notice+"</p> <span class='notice-close'><i class='fa fa-times'></i></span></div>");}}}}
$('.wpvr-mobile-notice .notice-close').on('click',function(){$('.wpvr-mobile-notice').fadeOut();$.cookie('wpvr_mobile_notice','true');});}});function getDeviceType(){const userAgent=navigator.userAgent.toLowerCase();if(/mobile|android|iphone|ipod|blackberry|iemobile|opera mini/i.test(userAgent)){return"mobile";}
else if(/tablet|ipad/i.test(userAgent)){return"tablet";}
else{return"desktop";}};