/**
* @package DPCalendar
* @copyright Digital Peak GmbH. <https://www.digital-peak.com>
* @license https://www.gnu.org/licenses/gpl-3.0.html GNU/GPL
*/
!function(){"use strict";document.addEventListener("DOMContentLoaded",(function(){loadDPAssets(["/com_dpcalendar/js/dpcalendar/dpcalendar.js"]),[].slice.call(document.querySelectorAll(".com-dpcalendar-location__map .dp-map")).forEach((function(e){"IntersectionObserver"in window!=0?new IntersectionObserver((function(n,a){n.forEach((function(n){n.isIntersecting&&(a.unobserve(e),loadDPAssets(["/com_dpcalendar/js/dpcalendar/map.js"],(function(){return DPCalendar.Map.create(e)})))}))})).observe(e):loadDPAssets(["/com_dpcalendar/js/dpcalendar/map.js"],(function(){return DPCalendar.Map.create(e)}))})),document.querySelector(".com-dpcalendar-location__resource")&&loadDPAssets(["/com_dpcalendar/js/dpcalendar/calendar.js"])}))}();