// source --> https://www.deinestadtklebt.de/wp-content/plugins/magic-tooltips-for-contact-form-7-pro/assets/js/custom.js?ver=1.0.64.098 
(function($, window, document) {

	var qtipEvents = {
		hide: function(event, api) {
			// prevent auto hide for youtube video
			// if(event.type == 'mouseout' && event.originalEvent && event.originalEvent.target && event.originalEvent.target.tagName == 'IFRAME') {
			// 	event.preventDefault();
			// }
			// else if(event.type == 'blur' && event.originalEvent && event.originalEvent.target && event.originalEvent.target.activeElement && event.originalEvent.target.activeElement.tagName == 'IFRAME') {
			// 	event.preventDefault();
			// }
			var mmtcc = $(event.currentTarget).closest('.mm-tooltip-cf7-container');
			if(mmtcc && mmtcc.hasClass && mmtcc.hasClass('mm-tooltip-pin-enabled')) {
				event.preventDefault();
			}
			// console.log('mmtcc', mmtcc, $(event.currentTarget), event);
		},
	};

	function mtfcf7p_get_tooltip_content(jqTip) {

		var html = jqTip.attr('id') ? $('#'+jqTip.attr('id')+'_content').html() : jqTip.html();
		if(jqTip && jqTip.attr('title')) {
			html = '<h6 class="mm-tooltip-title">'+ jqTip.attr('title')+'</h6><div class="mm-tooltip-content">'+html+'</div>';
			//<a class="close">×</a>
		} else {
			html = '<div class="mm-tooltip-content mm-no-title">'+html+'</div>';
		}
		html = html + '<div class="mm-tooltip-pin"><i class="fa fa-thumb-tack"></i><div>';
		return html;

	}

	function mtfcf7_init_close_button() {
		$(document).on('click', '.mm-tooltip-title .close', function(){
			$(this).closest('.qtip').hide();
		});
	}

	function mtfcf7_is_submit_button($that) {
		// console.log($that.closest('.mm-tooltip-cf7-li').length);
		// console.log($that.closest('.mm-tooltip-cf7-li').find('input[type="submit"]'))
		return $that.parent().find('input[type="submit"]').length > 0;
	}

	$(document).on('click', '.mm-tooltip-pin', function(){
		$(this).closest('.mm-tooltip-cf7-container').toggleClass('mm-tooltip-pin-enabled');
		// console.log($(this));
	});

	$(document).ready(function() {
		if(!window.mtfcf7p) return;
		var mobileDetect = {};
		!function(a){var b=/iPhone/i,c=/iPod/i,d=/iPad/i,e=/(?=.*\bAndroid\b)(?=.*\bMobile\b)/i,f=/Android/i,g=/(?=.*\bAndroid\b)(?=.*\bSD4930UR\b)/i,h=/(?=.*\bAndroid\b)(?=.*\b(?:KFOT|KFTT|KFJWI|KFJWA|KFSOWI|KFTHWI|KFTHWA|KFAPWI|KFAPWA|KFARWI|KFASWI|KFSAWI|KFSAWA)\b)/i,i=/Windows Phone/i,j=/(?=.*\bWindows\b)(?=.*\bARM\b)/i,k=/BlackBerry/i,l=/BB10/i,m=/Opera Mini/i,n=/(CriOS|Chrome)(?=.*\bMobile\b)/i,o=/(?=.*\bFirefox\b)(?=.*\bMobile\b)/i,p=new RegExp("(?:Nexus 7|BNTV250|Kindle Fire|Silk|GT-P1000)","i"),q=function(a,b){return a.test(b)},r=function(a){var r=a||navigator.userAgent,s=r.split("[FBAN");if("undefined"!=typeof s[1]&&(r=s[0]),s=r.split("Twitter"),"undefined"!=typeof s[1]&&(r=s[0]),this.apple={phone:q(b,r),ipod:q(c,r),tablet:!q(b,r)&&q(d,r),device:q(b,r)||q(c,r)||q(d,r)},this.amazon={phone:q(g,r),tablet:!q(g,r)&&q(h,r),device:q(g,r)||q(h,r)},this.android={phone:q(g,r)||q(e,r),tablet:!q(g,r)&&!q(e,r)&&(q(h,r)||q(f,r)),device:q(g,r)||q(h,r)||q(e,r)||q(f,r)},this.windows={phone:q(i,r),tablet:q(j,r),device:q(i,r)||q(j,r)},this.other={blackberry:q(k,r),blackberry10:q(l,r),opera:q(m,r),firefox:q(o,r),chrome:q(n,r),device:q(k,r)||q(l,r)||q(m,r)||q(o,r)||q(n,r)},this.seven_inch=q(p,r),this.any=this.apple.device||this.android.device||this.windows.device||this.other.device||this.seven_inch,this.phone=this.apple.phone||this.android.phone||this.windows.phone,this.tablet=this.apple.tablet||this.android.tablet||this.windows.tablet,"undefined"==typeof window)return this},s=function(){var a=new r;return a.Class=r,a};"undefined"!=typeof module&&module.exports&&"undefined"==typeof window?module.exports=r:"undefined"!=typeof module&&module.exports&&"undefined"!=typeof window?module.exports=s():"function"==typeof define&&define.amd?define("isMobile",[],a.isMobile=s()):a.isMobile=s()}(mobileDetect);
		
		var mtfcf7p_js_code = {};
		var mtfcf7p_css_code = '';

		if(mobileDetect.isMobile.phone) {
			if(mtfcf7p_settings.disable_on_mobile == '1') {
        return;
      }
			mtfcf7p_js_code = mtfcf7p.js_code_phone ? mtfcf7p.js_code_phone : mtfcf7p.js_code;
			mtfcf7p_css_code = mtfcf7p.css_code_phone ? mtfcf7p.css_code_phone : mtfcf7p.css_code;
		}
		else if(mobileDetect.isMobile.tablet) {
			if(mtfcf7p_settings.disable_on_tablet == '1') {
        return;
      }
			mtfcf7p_js_code = mtfcf7p.js_code_pad ? mtfcf7p.js_code_pad : mtfcf7p.js_code;
			mtfcf7p_css_code = mtfcf7p.css_code_pad ? mtfcf7p.css_code_pad : mtfcf7p.css_code;
		}
		else {
			if(mtfcf7p_settings.disable_on_pc == '1') {
        return;
      }
			mtfcf7p_js_code = mtfcf7p.js_code;
			mtfcf7p_css_code = mtfcf7p.css_code;
		}
		eval('var tooltip_code = ' + mtfcf7p_js_code);

		var $container = $('<style id="mtfcf7p-tooltip-css" type="text/css"></style>').appendTo("body");
	  $container.text(mtfcf7p_css_code+mtfcf7p_settings.custom_css);

	  

		window.mtfcf7_reinit_tooltip = function(){

			if(typeof(mtfcf7p_settings.is_valid_license_key)=='undefined') {
				// console.log('not mtfcf7p_settings found ');
				return;
			}
			// console.log('mtfcf7p_settings', mtfcf7p_settings);
			if(!(parseInt(mtfcf7p_settings.is_valid_license_key) == 1)) {
				return;
			}

			$('.wpcf7 tip').each(function(index) {
			  	$that = $(this);
			  	// console.log('mtfcf7p_settings', mtfcf7p_settings);
				$desc = mtfcf7p_get_tooltip_content($that);
				var extraHTML = '';
				var qm = mtfcf7p_settings.default_icon ? ' <i class="'+mtfcf7p_settings.default_icon+'"></i>' : ' <i class="fa fa-question-circle"></i>';
				var is_submit_button = mtfcf7_is_submit_button($that);
				var submit_button_mode = parseInt($that.attr('mode') || 1);
				// console.log('submit_button_mode', submit_button_mode);
				if((mtfcf7p_settings && mtfcf7p_settings.add_icon && submit_button_mode != 2) || (is_submit_button && submit_button_mode == 1) ){
					  extraHTML = qm;
					//   console.log('extraHTML', extraHTML);
			  	}
			  	// $parentHTML = $that.parent().html();
			  	// console.log('parentHTML', $parentHTML+"");
			  	// $parentHTML = $parentHTML.replace(/<br\s*\/?>\s*<tip>/gi,'<tip>');
			  	
				// $parentHTML = $parentHTML.replace('<tip>',extraHTML+'</label-magic>'+'<tip>');

				

				
				
				$parent = $that.parent();
				// console.log('.wpcf7 tip', $that, $desc, $parent);
				
				// console.log('desc', $desc, $that);
				if($desc.length > 0){
					// if($that.prev().is("label-magic")) return;
					if(!$parent.is("form") && $parent.find('label-magic').length > 0) return;
					// console.log('desc2', $desc, $that);
					if(mtfcf7p_settings && mtfcf7p_settings.mouse_over && !$parent.is("form")) {
						$parentHTML = $that.parent().html().replace('<tip',extraHTML+'</label-magic>'+'<tip');
						// console.log('$parentHTML', $parentHTML);
						$parent.html('<label-magic>'+$parentHTML);
						// console.log('$parent', $parent, $parent.parent());
						$that2 = $parent.find('label-magic');
					} else {
						$that2 = $('<label-magic>'+extraHTML+'</label-magic>').insertBefore($that);
					}
					
					// $parent.html('<label-magic>'+$parentHTML);
					
					// console.log('label-magic', $that2);
					if($that2.hasClass('mm-tooltip-cf7') || $that2.parent().hasClass('mm-tooltip-cf7-li')) {
						return;
					}
					// console.log('label-magic2', $that2, $that2.parent(), $that2.parent().prev(), $that2.parent().parent(), $that2.parent().parent().hasClass('first'));

					// if($that2.parent().parent().hasClass('first')) {
					// 	$that2.parent().remove();
					// }
					
					// console.log('label-magic', $that2);
					if(mtfcf7p_settings && !$parent.is("form") && (mtfcf7p_settings.mouse_over ||  mtfcf7p_settings.hover_input ||  mtfcf7p_settings.focus_input)) {
						$that2.parent().addClass('mm-tooltip-cf7-li');
					}
					

					if((mtfcf7p_settings && mtfcf7p_settings.mouse_over && submit_button_mode != 2) || (is_submit_button && submit_button_mode == 1)) {
						$that2.addClass('mm-tooltip-cf7');
					}

					if(mtfcf7p_settings && mtfcf7p_settings.add_underline && submit_button_mode != 2) {
						$that2.addClass('mm-tooltip-cf7-title-underline');
					}
				  	
					// console.log('is_submit_button', $that2, submit_button_mode, is_submit_button);
					if(is_submit_button && submit_button_mode == 2) { //.find('input[type="submit"]')
						$submit = $that2.closest('form').find('input[type="submit"]');
						$submit.addClass('mm-tooltip-submit');
						$submit.qtip($.extend({}, tooltip_code, {
							content: {
								text: $desc
							},
							show: 'hover',
							hide: {
								fixed: true,
								delay: 300
							},
							events: qtipEvents
						}));
						// console.log('$that2', $that2, $desc);

						// console.log('propertychange');
						// $(document).on('propertychange', '.mm-tooltip-cf7-li input[type="submit"]', function(e) {
						// 	console.log('propertychange', e);
						// 	// alert($(this).val());
						// });

						$(document).on('change', '.wpcf7-form-control input[name="your-consent"], .wpcf7-acceptance input', function(e) {
							if(!$that2.parent().find('input[type="submit"]').is( ':disabled' )) {
								// console.log('propertychange', 'enabled');
								$that2.parent().addClass('mm-tooltip-cf7-submit-enabled');
							} else {
								$that2.parent().removeClass('mm-tooltip-cf7-submit-enabled');
							}
							// console.log('propertychange', e);
							// alert($(this).val());
						});
						// $that2.parent().find('input[type="submit"]').bind("propertychange", function(e) {
						// 	console.log('propertychange', e);
						// 	// alert($(this).val());
						// });
					}
				  	// $that.html('<div class="'+ extraClass + '">' + $that.html()+'</div> <i class="fa fa-question-circle"></i>');
				}
			});
			
			// $('.gform_body .gfield').each(function(index) {
			// 	$that = $(this);
			//   	$that.find('input, select, textarea, .mtfcf7p_help').tooltipster({
	  //           	content: $that.find('.gfield_description').html()
	  //       	});
			// });
			//console.log('mtfcf7p',mtfcf7p);
			
			// if(mtfcf7p_settings && mtfcf7p_settings.mouse_over) {
				// console.log('.mm-tooltip-cf7');
				$('.mm-tooltip-cf7').each(function() { // Notice the .each() loop, discussed below
					// console.log('.mm-tooltip-cf7', $(this));
					$that = $(this);
					var tipHTML = mtfcf7p_get_tooltip_content($that.next());
					// console.log('tipHTML', $that.next(), tipHTML);
					$that.qtip($.extend({}, tooltip_code, {
						content: {
							text: tipHTML //.html() // Use the "div" element next to this for the content
						},
						show: 'hover',
						hide: {
							fixed: true,
							delay: 300
						},
						events: qtipEvents
					}));
				});
			// }



			if(mtfcf7p_settings && mtfcf7p_settings.focus_input ){
				$('.mm-tooltip-cf7-li input, .mm-tooltip-cf7-li textarea').each(function() { // Notice the .each() loop, discussed below
					$(this).qtip($.extend({}, tooltip_code, {
						content: {
							text: mtfcf7p_get_tooltip_content($(this).parents('.mm-tooltip-cf7-li').find('tip')) // Use the "div" element next to this for the content
						},
						show: 'focus',
						hide: 'unfocus',
						events: qtipEvents
					}));
					$(this).on('focus', function(){
						$(this).closest('.mm-tooltip-cf7-li').addClass('mm-tooltip-cf7-li-focus');
					}).on('blur', function(){
						$(this).closest('.mm-tooltip-cf7-li').removeClass('mm-tooltip-cf7-li-focus');
					});
				});
			}

			$('.wpcf7 input, .wpcf7 textarea').each(function(index) {
				$that = $(this);
				var placeholder = $that.attr('placeholder');
				// console.log('mcfcf711-placeholder', placeholder);
				if(placeholder && placeholder.indexOf('<tip>') >= 0) {
					var tooltipHTML2 = false;
					placeholder2 = placeholder.replace(/<tip>(.+?)<\/tip>/g, function(match, contents, offset, input_string)
					{
						tooltipHTML2 = contents; 
						// console.log('mcfcf711-tooltipHTML', tooltipHTML2);
						return " ";
					});

					if(tooltipHTML2) {
						$that.addClass('mtfcf7Input').attr('placeholder', placeholder2);
						$that.qtip($.extend({}, tooltip_code, {
							content: {
								text: tooltipHTML2 // Use the "div" element next to this for the content
							},
							show: 'hover',
							hide: {
								fixed: true,
								delay: 300
							},
							events: qtipEvents
						}));
					}
				}
			});

			if(typeof(wpcf7cf_forms)!=='undefined' && wpcf7cf_forms.length > 0) {
				for(var i=0; i < wpcf7cf_forms.length; i+=1) {
					if(typeof(wpcf7cf_forms[i].updateEventListeners) === 'function') {
						wpcf7cf_forms[i].updateEventListeners();
					}
				}
			}
		}

		mtfcf7_reinit_tooltip();
		mtfcf7_init_close_button();
	});

})(jQuery, window, document);
// source --> https://www.deinestadtklebt.de/wp-content/plugins/download-manager/assets/modal/wpdm-modal.min.js?ver=3.3.66 
var WPDMDialog=function($){"use strict";var icons={info:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><line x1="12" y1="16" x2="12" y2="12"></line><line x1="12" y1="8" x2="12.01" y2="8"></line></svg>',success:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"></path><polyline points="22 4 12 14.01 9 11.01"></polyline></svg>',warning:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"></path><line x1="12" y1="9" x2="12" y2="13"></line><line x1="12" y1="17" x2="12.01" y2="17"></line></svg>',danger:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><line x1="15" y1="9" x2="9" y2="15"></line><line x1="9" y1="9" x2="15" y2="15"></line></svg>',question:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"></path><line x1="12" y1="17" x2="12.01" y2="17"></line></svg>',close:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>'};var loadingSpinner='<div class="wpdm-dialog__loading"><div class="wpdm-dialog__spinner"><span></span></div><p class="wpdm-dialog__loading-text">Loading...</p></div>';function detectDarkMode(){if($("body").hasClass("wp-admin"))return"light-mode";if(typeof wpdm_js!=="undefined"&&wpdm_js.color_scheme){if(wpdm_js.color_scheme==="light")return"light-mode";if(wpdm_js.color_scheme==="dark")return"dark-mode"}var isLightMode=$("body").hasClass("light-mode")||$(".w3eden").hasClass("light-mode")||$("html").attr("data-theme")==="light"||$("body").attr("data-theme")==="light";var isDarkMode=$("body").hasClass("dark-mode")||$(".w3eden").hasClass("dark-mode")||$("html").hasClass("dark-mode")||$("body").hasClass("dark")||$("html").attr("data-theme")==="dark"||$("body").attr("data-theme")==="dark";if(isLightMode)return"light-mode";if(isDarkMode)return"dark-mode";return""}function escapeHtml(text){if(typeof text!=="string")return text;var map={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#039;"};return text.replace(/[&<>"']/g,function(m){return map[m]})}function uniqueId(){return"wpdm-dialog-"+Date.now()+"-"+Math.random().toString(36).substr(2,9)}function createDialogHtml(options){var id=options.id||uniqueId();var darkModeClass=detectDarkMode();var sizeClass=options.size?"wpdm-dialog--"+options.size:"";var showIcon=options.icon!==false;var iconType=options.type||"info";var html='<div class="wpdm-dialog-wrapper w3eden '+darkModeClass+'" id="'+id+'">';html+='<div class="wpdm-dialog-backdrop"></div>';html+='<div class="wpdm-dialog '+sizeClass+'" role="dialog" aria-modal="true" aria-labelledby="'+id+'-title">';if(options.closable!==false){html+='<button type="button" class="wpdm-dialog__close" aria-label="Close">'+icons.close+"</button>"}html+='<div class="wpdm-dialog__header">';if(showIcon){html+='<div class="wpdm-dialog__icon wpdm-dialog__icon--'+iconType+'">'+icons[iconType]+"</div>"}html+='<div class="wpdm-dialog__header-content">';html+='<h3 class="wpdm-dialog__title" id="'+id+'-title">'+escapeHtml(options.title)+"</h3>";if(options.subtitle){html+='<p class="wpdm-dialog__subtitle">'+escapeHtml(options.subtitle)+"</p>"}html+="</div>";html+="</div>";html+='<div class="wpdm-dialog__body">';if(options.message){html+='<p class="wpdm-dialog__message">'+(options.html?options.message:escapeHtml(options.message))+"</p>"}if(options.input){html+='<div class="wpdm-dialog__input-wrapper">';html+='<input type="'+(options.inputType||"text")+'" class="wpdm-dialog__input" placeholder="'+escapeHtml(options.placeholder||"")+'" value="'+escapeHtml(options.inputValue||"")+'">';html+="</div>"}if(options.content){html+=options.content}html+="</div>";if(options.buttons&&options.buttons.length>0){var footerClass=options.compactFooter?"wpdm-dialog__footer wpdm-dialog__footer--compact":"wpdm-dialog__footer";html+='<div class="'+footerClass+'">';options.buttons.forEach(function(btn,index){var btnClass="wpdm-dialog__btn wpdm-dialog__btn--"+(btn.type||"secondary");html+='<button type="button" class="'+btnClass+'" data-action="'+(btn.action||index)+'">'+escapeHtml(btn.text)+"</button>"});html+="</div>"}html+="</div>";html+="</div>";return html}function show(options){return new Promise(function(resolve){var html=createDialogHtml(options);var $dialog=$(html);$("body").append($dialog);var $wrapper=$dialog;var $input=$wrapper.find(".wpdm-dialog__input");var $buttons=$wrapper.find(".wpdm-dialog__btn");var $closeBtn=$wrapper.find(".wpdm-dialog__close");requestAnimationFrame(function(){$wrapper.addClass("wpdm-dialog-visible");if($input.length){$input.focus().select()}else if($buttons.length){$buttons.last().focus()}});function close(result){$wrapper.removeClass("wpdm-dialog-visible");$(document).off("keydown.wpdmDialog");setTimeout(function(){$wrapper.remove();resolve(result)},250)}$buttons.on("click",function(){var action=$(this).data("action");var inputValue=$input.length?$input.val():null;close({action:action,value:inputValue})});$closeBtn.on("click",function(){close({action:"close",value:null})});if(options.backdrop!=="static"){$wrapper.find(".wpdm-dialog-backdrop").on("click",function(){close({action:"backdrop",value:null})})}if(options.keyboard!==false){$(document).on("keydown.wpdmDialog",function(e){if(e.key==="Escape"){close({action:"escape",value:null})}})}if(options.input){$input.on("keydown",function(e){if(e.key==="Enter"){e.preventDefault();close({action:"confirm",value:$input.val()})}})}})}return{show:show,alert:function(title,message,options){options=options||{};options.buttons=options.buttons||[{text:options.buttonText||"OK",type:"primary",action:"ok"}];return show({title:title,message:message,type:options.type||"info",icon:options.icon,size:options.size||"sm",html:options.html,compactFooter:true,buttons:options.buttons,backdrop:"static",keyboard:true}).then(function(result){return result.action})},success:function(title,message,options){options=options||{};options.type="success";return this.alert(title,message,options)},warning:function(title,message,options){options=options||{};options.type="warning";return this.alert(title,message,options)},error:function(title,message,options){options=options||{};options.type="danger";return this.alert(title,message,options)},confirm:function(title,message,options){options=options||{};options.buttons=options.buttons||[{text:options.cancelText||"Cancel",type:"secondary",action:"cancel"},{text:options.confirmText||"Confirm",type:options.confirmType||"primary",action:"confirm"}];return show({title:title,message:message,type:options.type||"question",icon:options.icon,size:options.size||"sm",html:options.html,buttons:options.buttons,backdrop:options.backdrop||"static",keyboard:options.keyboard!==false}).then(function(result){return result.action==="confirm"})},confirmDelete:function(title,message,options){options=options||{};options.type="danger";options.confirmText=options.confirmText||"Delete";options.confirmType="danger";return this.confirm(title,message,options)},prompt:function(title,message,options){options=options||{};return show({title:title,message:message,type:options.type||"question",icon:options.icon,size:options.size||"md",input:true,inputType:options.inputType||"text",inputValue:options.inputValue||"",placeholder:options.placeholder||"",html:options.html,buttons:[{text:options.cancelText||"Cancel",type:"secondary",action:"cancel"},{text:options.confirmText||"Submit",type:"primary",action:"confirm"}],backdrop:options.backdrop||"static",keyboard:options.keyboard!==false}).then(function(result){return result.action==="confirm"?result.value:null})},ajax:function(title,urlOrOptions,options){options=options||{};var ajaxOptions=typeof urlOrOptions==="string"?{url:urlOrOptions}:urlOrOptions;return new Promise(function(resolve,reject){var dialogId=uniqueId();var darkModeClass=detectDarkMode();var sizeClass=options.size?"wpdm-dialog--"+options.size:"wpdm-dialog--md";var html='<div class="wpdm-dialog-wrapper w3eden '+darkModeClass+'" id="'+dialogId+'">';html+='<div class="wpdm-dialog-backdrop"></div>';html+='<div class="wpdm-dialog '+sizeClass+'" role="dialog" aria-modal="true" aria-labelledby="'+dialogId+'-title">';if(options.closable!==false){html+='<button type="button" class="wpdm-dialog__close" aria-label="Close">'+icons.close+"</button>"}html+='<div class="wpdm-dialog__header">';if(options.icon!==false){var iconType=options.type||"info";html+='<div class="wpdm-dialog__icon wpdm-dialog__icon--'+iconType+'">'+icons[iconType]+"</div>"}html+='<div class="wpdm-dialog__header-content">';html+='<h3 class="wpdm-dialog__title" id="'+dialogId+'-title">'+escapeHtml(title)+"</h3>";if(options.subtitle){html+='<p class="wpdm-dialog__subtitle">'+escapeHtml(options.subtitle)+"</p>"}html+="</div></div>";html+='<div class="wpdm-dialog__body wpdm-dialog__body--ajax">'+loadingSpinner+"</div>";html+='<div class="wpdm-dialog__footer wpdm-dialog__footer--hidden"></div>';html+="</div></div>";var $dialog=$(html);$("body").append($dialog);var $wrapper=$dialog;var $body=$wrapper.find(".wpdm-dialog__body");var $footer=$wrapper.find(".wpdm-dialog__footer");var $closeBtn=$wrapper.find(".wpdm-dialog__close");requestAnimationFrame(function(){$wrapper.addClass("wpdm-dialog-visible")});function close(result){$wrapper.removeClass("wpdm-dialog-visible");$(document).off("keydown.wpdmDialog");setTimeout(function(){$wrapper.remove();resolve(result)},250)}$closeBtn.on("click",function(){close({action:"close",data:null})});if(options.backdrop!=="static"){$wrapper.find(".wpdm-dialog-backdrop").on("click",function(){close({action:"backdrop",data:null})})}if(options.keyboard!==false){$(document).on("keydown.wpdmDialog",function(e){if(e.key==="Escape"){close({action:"escape",data:null})}})}$.ajax({url:ajaxOptions.url,method:ajaxOptions.method||"GET",data:ajaxOptions.data||{},dataType:ajaxOptions.dataType||"html",headers:ajaxOptions.headers||{},timeout:ajaxOptions.timeout||3e4}).done(function(response){var content=response;var buttons=options.buttons;var responseData=null;if(typeof response==="object"){responseData=response;content=response.content||response.html||response.body||"";if(response.buttons){buttons=response.buttons}}$body.removeClass("wpdm-dialog__body--ajax wpdm-dialog__body--loaded").html(content);requestAnimationFrame(function(){$body.addClass("wpdm-dialog__body--loaded")});if(buttons&&buttons.length>0){var footerHtml="";buttons.forEach(function(btn,index){var btnClass="wpdm-dialog__btn wpdm-dialog__btn--"+(btn.type||"secondary");footerHtml+='<button type="button" class="'+btnClass+'" data-action="'+(btn.action||index)+'">'+escapeHtml(btn.text)+"</button>"});$footer.html(footerHtml).removeClass("wpdm-dialog__footer--hidden");$footer.find(".wpdm-dialog__btn").on("click",function(){var action=$(this).data("action");close({action:action,data:responseData})})}if(typeof options.onLoad==="function"){options.onLoad($body,responseData)}}).fail(function(xhr,status,error){var errorHtml='<div class="wpdm-dialog__error">';errorHtml+='<div class="wpdm-dialog__error-icon">'+icons.danger+"</div>";errorHtml+='<p class="wpdm-dialog__error-message">'+escapeHtml(options.errorMessage||"Failed to load content. Please try again.")+"</p>";if(options.showRetry!==false){errorHtml+='<button type="button" class="wpdm-dialog__btn wpdm-dialog__btn--secondary wpdm-dialog__retry">Retry</button>'}errorHtml+="</div>";$body.removeClass("wpdm-dialog__body--ajax wpdm-dialog__body--loaded").html(errorHtml);requestAnimationFrame(function(){$body.addClass("wpdm-dialog__body--loaded")});$body.find(".wpdm-dialog__retry").on("click",function(){$body.addClass("wpdm-dialog__body--ajax").html(loadingSpinner);$.ajax({url:ajaxOptions.url,method:ajaxOptions.method||"GET",data:ajaxOptions.data||{},dataType:ajaxOptions.dataType||"html",headers:ajaxOptions.headers||{},timeout:ajaxOptions.timeout||3e4}).done(function(response){var content=response;if(typeof response==="object"){content=response.content||response.html||response.body||""}$body.removeClass("wpdm-dialog__body--ajax wpdm-dialog__body--loaded").html(content);requestAnimationFrame(function(){$body.addClass("wpdm-dialog__body--loaded")});if(typeof options.onLoad==="function"){options.onLoad($body,response)}}).fail(function(){$body.removeClass("wpdm-dialog__body--ajax wpdm-dialog__body--loaded").html(errorHtml);requestAnimationFrame(function(){$body.addClass("wpdm-dialog__body--loaded")})})});if(typeof options.onError==="function"){options.onError(xhr,status,error)}})})},load:function(title,url,options){return this.ajax(title,url,options)}}}(jQuery);jQuery(function($){if(typeof WPDM!=="undefined"){WPDM.dialog=WPDMDialog}});
// source --> https://www.deinestadtklebt.de/wp-content/plugins/download-manager/assets/js/wpdm.min.js?ver=91bcb40f4f1ef68e264248a4ff2d5caa 
(function($){$.fn.modal=function(option){var modal=this;var modalId=modal.attr("id");var $backdrop=null;if(option==="hide"){modal.removeClass("in show");$backdrop=$('.wpdm-modal-backdrop[data-modal="'+modalId+'"]');$backdrop.removeClass("in");setTimeout(function(){modal.css("display","none");$backdrop.remove();$("body").removeClass("modal-open").css("overflow","");modal.trigger("hidden.bs.modal")},250);$(document).off("keydown.wpdmModal");return modal}if(option==="show"||option===undefined){$("body").addClass("modal-open").css("overflow","hidden");$backdrop=$('<div class="modal-backdrop fade wpdm-modal-backdrop" data-modal="'+modalId+'"></div>');$("body").append($backdrop);modal.css({display:"block","z-index":1050});modal[0].offsetHeight;setTimeout(function(){$backdrop.addClass("in");modal.addClass("in show");modal.trigger("shown.bs.modal")},10);modal.find('[data-dismiss="modal"]').off("click.wpdmModal").on("click.wpdmModal",function(e){e.preventDefault();modal.modal("hide")});$backdrop.on("click",function(){if(!modal.data("backdrop")||modal.data("backdrop")!=="static"){modal.modal("hide")}});$(document).off("keydown.wpdmModal").on("keydown.wpdmModal",function(e){if(e.key==="Escape"&&modal.hasClass("in")){if(!modal.data("keyboard")||modal.data("keyboard")!==false){modal.modal("hide")}}})}if(option==="toggle"){if(modal.hasClass("in")){modal.modal("hide")}else{modal.modal("show")}}return modal};$.fn.tooltip=function(options){var settings=$.extend({background:"#333",color:"#fff",padding:"5px 10px",borderRadius:"4px",fontSize:"12px"},options);var $tooltip=$("<div class='simple-tooltip'></div>").css({position:"absolute",maxWidth:"200px",display:"none",zIndex:9999,background:settings.background,color:settings.color,padding:settings.padding,borderRadius:settings.borderRadius,fontSize:settings.fontSize,pointerEvents:"none"}).appendTo("body");return this.each(function(){var $elem=$(this);var title=$elem.attr("title");$elem.on("mouseenter",function(e){if(!title)return;$elem.data("tip-title",title).removeAttr("title");$tooltip.text(title).fadeIn(150);$tooltip.css({top:e.pageY+10,left:e.pageX+10})}).on("mousemove",function(e){$tooltip.css({top:e.pageY+10,left:e.pageX+10})}).on("mouseleave",function(){$tooltip.hide();$elem.attr("title",$elem.data("tip-title"))})})}})(jQuery);jQuery(function($){var $body=$("body");$body.on("click",'.w3eden [data-toggle="collapse"]',function(e){e.preventDefault();var target=$(this).attr("href")||$(this).data("target");$(target).slideToggle(200)});$body.on("click",'.w3eden [data-toggle="modal"], .w3eden[data-toggle="modal"]',function(e){e.preventDefault();var target=$(this).data("target");$(target).modal("show")});$body.on("click",'.w3eden [data-toggle="tab"]',function(e){e.preventDefault();var $this=$(this);var $container=$this.closest(".nav-tabs, .nav-pills");var target=$this.attr("href");$container.find('[data-toggle="tab"]').each(function(){var $tab=$(this);$tab.removeClass("active");$tab.parent("li").removeClass("active");var pane=$tab.attr("href");if(pane){$(pane).removeClass("active in")}});$this.addClass("active");$this.parent("li").addClass("active");if(target){$(target).addClass("active in")}$this.trigger("shown.bs.tab")});$body.on("click",'.w3eden [data-toggle="dropdown"]',function(e){e.preventDefault();e.stopPropagation();var $dropdown=$(this).closest(".dropdown, .btn-group");var isOpen=$dropdown.hasClass("open");$(".w3eden .dropdown, .w3eden .btn-group").removeClass("open");if(!isOpen){$dropdown.addClass("open")}});$(document).on("click",function(e){if(!$(e.target).closest(".dropdown, .btn-group").length){$(".w3eden .dropdown, .w3eden .btn-group").removeClass("open")}})});