{const urlParameters = new URL(window.location.href).searchParams;const isStagingFromLink = urlParameters.get('d21_widgets_staging');const isStagingBackEnd = true;if ((isStagingFromLink && isStagingBackEnd) || !isStagingFromLink) {const locale = document.querySelector('html').getAttribute('lang') || 'de-DE';const localeLoader = document.createElement('script');localeLoader.id = 'd21-locale';localeLoader.type = 'application/json';document.head.appendChild(localeLoader);fetch('https://js-sdk-staging.dirs21.de/locale/' + locale + "?version=IBE").then(async (x) => { x.json().then(t => document.querySelector('#d21-locale').innerHTML = JSON.stringify(t)); });const styles = document.createElement('style');styles.type = 'text/css';styles.id = 'd21-widget-style';styles.textContent = ``;document.head.appendChild(styles);sessionStorage.setItem('d21_config', '{"General":{"Directory":"/gut-am-seede/","IsGroup":false,"ShouldOpenInNewTab":false,"CustomDomain":null,"ShouldWaitUntilDocumentReady":false,"UseShadowDOM":false,"Theme":{"Light":{"PrimaryColor":"#8464aa","SecondaryColor":"#8464aa","BorderRadius":0.5,"Font":{"Default":"Montserrat","Decorative":"Montserrat","Body":"Montserrat"},"LogoUri":"/images/92373/wort-bildmarke-gut-am-see.png.png"},"Dark":{"PrimaryColor":"#2563eb","SecondaryColor":"#132228","BorderRadius":0.5,"Font":{"Default":"Rubik","Decorative":"Rubik","Body":"Rubik"},"LogoUri":null}},"Preselect":{"LOS":2,"Adults":2,"Children":[]},"ProductLimit":10,"HideChildrenInput":false,"ExchangeRates":{},"StyleConfig":{"CustomStyles":null,"UseCustomStyles":false}},"Properties":[{"WidgetId":"0944ad62-4384-4088-85ac-a08ad01ccec3","WidgetType":"quickbook","Description":"Default QuickBook","DisplayTheme":"Light","IsCenteredAutomatically":false,"IsPrimaryConfig":true,"Fields":{"IsHorizontal":true,"IsJustButton":false,"HasSmallSearchButton":false,"HasDropdownsOnTop":false,"InputMode":"CheckInAndNights","Filter":"NoFilter","PreselectedRoom":null,"HasSlimMode":false,"OccupancyDiffersFromIBE":false,"CustomLos":0,"CustomOccupancyAdults":0,"CustomOccupancyChildren":[],"MaximumPersons":0,"MinimumPersons":1,"HasPromotionCode":false,"ExtraField":"None","PreselectedProperties":[],"CustomStyles":"","UseCustomStyles":false},"WidgetProperties":{}},{"WidgetId":"fdc426ec-4fc8-444a-8ec6-cb9806cb08a4","WidgetType":"roomList","Description":"Default QuickBook","DisplayTheme":"Light","IsCenteredAutomatically":false,"IsPrimaryConfig":true,"Fields":{"UseFilter":false,"UseCalendar":true,"HasGroupFilter":false,"GroupFilter":"NoFilter","HasFilterPrice":false,"FilterMinimumPrice":0.0,"FilterMaximumPrice":0.0,"FilterPriceLap":5.0,"HasHotelFilter":false,"PreselectedHotels":[],"FixedPrice":[{"_uuid":"28c60d52-d264-4967-81b3-b090a3dff69f","IsActive":false,"MinPrice":null,"Name":"Doppelzimmer Classic NaturNah"},{"_uuid":"23b383ee-9fed-454f-838f-3530b8c5e019","IsActive":false,"MinPrice":null,"Name":"Doppelzimmer Deluxe NaturNah"},{"_uuid":"a68fc2e2-f9b2-4230-8fc7-9149d84c4c4c","IsActive":false,"MinPrice":null,"Name":"Suite NaturNah"},{"_uuid":"40c91527-22ab-4586-851e-8ebcccfde2b4","IsActive":false,"MinPrice":null,"Name":"Doppelzimmer Junior NaturNah"},{"_uuid":"2ed56252-b3b2-453d-afaa-1a619136c715","IsActive":false,"MinPrice":null,"Name":"Studio NaturNah"},{"_uuid":"d69b8246-0e3c-42fc-bcc9-0a606d953b2a","IsActive":false,"MinPrice":null,"Name":"Junior Suite NaturNah"},{"_uuid":"88f59c3f-4a07-4a2e-bc6a-4dd5d87e3c55","IsActive":false,"MinPrice":null,"Name":"Doppelzimmer Classic zur Einzelnutzung"},{"_uuid":"5d4e6dee-8e98-4fd7-bd3d-a9f94683d2b3","IsActive":false,"MinPrice":null,"Name":"DoppelzimmerJunior zur Einzelnutzung "},{"_uuid":"42efe458-f4ac-4a67-a213-679cef0a7071","IsActive":false,"MinPrice":null,"Name":"Doppelzimmer Deluxe NaturNah zur Einzelnutzung"},{"_uuid":"a73af66f-f57f-69fa-9776-0f9b9546fb4b","IsActive":false,"MinPrice":null,"Name":"Einzelzimmer Deluxe NaturNah"}],"HasOccupancyFilter":false,"FilterOccupancy":null,"HasPromotionCode":false,"Build":"","UsePages":false,"ItemsPerPage":0,"IncludedProducts":{"IsForAll":false,"Items":[]},"CustomStyles":"","UseCustomStyles":false},"WidgetProperties":{}},{"WidgetId":"3444922d-88a7-4e4a-a21b-a4b49db30eb7","WidgetType":"packageList","Description":"Default QuickBook","DisplayTheme":"Light","IsCenteredAutomatically":false,"IsPrimaryConfig":true,"Fields":{"UseFilter":false,"UseCalendar":true,"HasGroupFilter":false,"GroupFilter":"NoFilter","HasFilterPrice":false,"FilterMinimumPrice":0.0,"FilterMaximumPrice":0.0,"FilterPriceLap":5.0,"HasHotelFilter":false,"PreselectedHotels":[],"HasCategoryFilter":false,"PreselectedCategories":[],"HasLosFilter":false,"FilterLos":null,"HasPromotionCode":false,"Build":"","UsePages":false,"ItemsPerPage":0,"IncludedProducts":{"IsForAll":false,"Items":[]},"CustomStyles":"","UseCustomStyles":false},"WidgetProperties":null},{"WidgetId":"42158159-fe47-462b-a4f1-8c07f554a307","WidgetType":"voucherShop","Description":"Default QuickBook","DisplayTheme":"Light","IsCenteredAutomatically":false,"IsPrimaryConfig":true,"Fields":{"UseFilter":false,"Build":"","UsePages":false,"ItemsPerPage":0,"IncludedProducts":{"IsForAll":false,"Items":[]},"CustomStyles":"","UseCustomStyles":false},"WidgetProperties":null},{"WidgetId":"501a8fbc-7a5f-a802-7ac6-f147e8a73b0a","WidgetType":"availabilityCalendar","Description":"","DisplayTheme":"Light","IsCenteredAutomatically":true,"IsPrimaryConfig":false,"Fields":{"CustomLos":1,"HasAdditionalRow":true,"HasDoubleView":false,"HasPromotionCode":false,"ProductIds":["23b383ee-9fed-454f-838f-3530b8c5e019"],"TariffIds":[],"CustomStyles":"","UseCustomStyles":false},"WidgetProperties":{}}]}');sessionStorage.setItem('d21_uuid', 'ad3678fc-0cb1-4742-8392-10798afb54e1');const d21_css = document.createElement('link');d21_css.href = 'https://v5-staging.widgets.dirs21.de/style.css?v=1.0.95';d21_css.rel = 'stylesheet';document.head.appendChild(d21_css);const quickbook = document.createElement('script');quickbook.src = 'https://v5-staging.widgets.dirs21.de/quickbook.js?v=1.0.95';quickbook.async = true;quickbook.type = 'module';quickbook.defer = true;document.body.appendChild(quickbook);if (Array.from(document.querySelectorAll('.d21-roomList, #d21-roomList')).length > 0) { const roomList = document.createElement('script'); roomList.src = 'https://v5-staging.widgets.dirs21.de/roomList.js?v=1.0.95'; roomList.async = true; roomList.type = 'module'; roomList.defer = true; document.body.appendChild(roomList);}if (Array.from(document.querySelectorAll('.d21-packageList, #d21-packageList, #d21-widgets-packages')).length > 0) { const packageList = document.createElement('script'); packageList.src = 'https://v5-staging.widgets.dirs21.de/packageList.js?v=1.0.95'; packageList.async = true; packageList.type = 'module'; packageList.defer = true; document.body.appendChild(packageList);}if (Array.from(document.querySelectorAll('.d21-availabilityCalendar, .d21-smallAvailabilityCalendar, #d21-bigAvailabilityCalendar, .d21-roomAvailability')).length > 0) { const availabilityCalendar = document.createElement('script'); availabilityCalendar.src = 'https://v5-staging.widgets.dirs21.de/availabilityCalendar.js?v=1.0.95'; availabilityCalendar.async = true; availabilityCalendar.type = 'module'; availabilityCalendar.defer = true; document.body.appendChild(availabilityCalendar);}if (Array.from(document.querySelectorAll('.d21-voucherShop')).length > 0) { const voucherShop = document.createElement('script'); voucherShop.src = 'https://v5-staging.widgets.dirs21.de/voucherShop.js?v=1.0.95'; voucherShop.async = true; voucherShop.type = 'module'; voucherShop.defer = true; document.body.appendChild(voucherShop);}} else { const scriptElement = document.querySelector("script[src*='ad3678fc-0cb1-4742-8392-10798afb54e1']"); let src = scriptElement.src; src = src.replace('js-sdk.dirs21.de', 'js-sdk-staging.dirs21.de'); src = src.replace('&?', '?'); src = src.replace('?&', '?'); scriptElement.remove(); const newScript = document.createElement('script'); newScript.src = src; document.body.appendChild(newScript); let labelStaging = document.createElement('div'); labelStaging.innerHTML = 'Staging'; labelStaging.classList.add('d21-label-staging-mode'); document.body.appendChild(labelStaging);}}