{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/pWZKJKltPuQifIJpj8v3/5KgnFNTIfD3WNZkSJLJR/rufuEpLZZ.js"],
  "sourcesContent": ["// Generated by Framer (dc3a148)\nimport siteMetadata from\"https://framerusercontent.com/modules/7ca9XFINi4uKLoQJRLfi/7rBrq6RUrrnWpPwcqNeg/siteMetadata.js\";export default function metadata(params,activeLocale){return{breakpoints:[{hash:\"1yllzc\",mediaQuery:\"(min-width: 750px)\"},{hash:\"oewgp9\",mediaQuery:\"(max-width: 749.98px)\"}],customHTMLBodyEnd:\"<script>\\n// Sofort beim Laden versuchen, Google Maps zu initialisieren\\n(function() {\\n  if (window.googleMapsLoaded) return;\\n  window.googleMapsLoaded = true;\\n  \\n  // Callback-Funktion definieren\\n  window.initGooglePlaces = function() {\\n    function setupAutocomplete() {\\n      document.querySelectorAll('input[name=\\\"adresse\\\"]:not([data-places-setup])').forEach(field => {\\n        field.setAttribute('data-places-setup', 'true');\\n        \\n        const autocomplete = new google.maps.places.Autocomplete(field, {\\n          types: ['address'],\\n          componentRestrictions: { country: 'de' }\\n        });\\n        \\n        autocomplete.addListener('place_changed', function() {\\n          const place = autocomplete.getPlace();\\n          if (!place.geometry) return;\\n          \\n          // Vollst\\xe4ndige Adresse speichern\\n          field.dataset.fullAddress = place.formatted_address;\\n          \\n          // Adresskomponenten extrahieren\\n          let plz = '', stadt = '', strasse = '', hausnummer = '';\\n          \\n          place.address_components.forEach(component => {\\n            const type = component.types[0];\\n            if (type === 'postal_code') {\\n              plz = component.long_name;\\n            } else if (type === 'locality' || type === 'postal_town') {\\n              stadt = component.long_name;\\n            } else if (type === 'route') {\\n              strasse = component.long_name;\\n            } else if (type === 'street_number') {\\n              hausnummer = component.long_name;\\n            }\\n          });\\n          \\n          // Felder ausf\\xfcllen\\n          function fillField(name, value) {\\n            const targetField = document.querySelector(`input[name=\\\"${name}\\\"]`);\\n            if (targetField && value) {\\n              targetField.value = value;\\n              targetField.dispatchEvent(new Event('input', { bubbles: true }));\\n              targetField.dispatchEvent(new Event('change', { bubbles: true }));\\n            }\\n          }\\n          \\n          fillField('plz', plz);\\n          fillField('stadt', stadt);\\n          fillField('strasse', strasse);\\n          fillField('hausnummer', hausnummer);\\n        });\\n      });\\n    }\\n    \\n    // Sofort einrichten\\n    setupAutocomplete();\\n    \\n    // Observer f\\xfcr dynamisch hinzugef\\xfcgte Felder\\n    if (!window.placesObserver) {\\n      window.placesObserver = new MutationObserver(setupAutocomplete);\\n      window.placesObserver.observe(document.body, { childList: true, subtree: true });\\n    }\\n  };\\n  \\n  // Google Maps Script laden\\n  if (!document.querySelector('script[src*=\\\"maps.googleapis.com\\\"]')) {\\n    const script = document.createElement('script');\\n    script.src = 'https://maps.googleapis.com/maps/api/js?key=AIzaSyDn-FAYJu3m7LCVix3CGs4y-8yC9S41yQs&libraries=places&callback=initGooglePlaces';\\n    script.async = true;\\n    script.defer = true;\\n    document.head.appendChild(script);\\n  } else if (typeof google !== 'undefined' && google.maps && google.maps.places) {\\n    // Falls Google Maps bereits geladen ist\\n    window.initGooglePlaces();\\n  }\\n  \\n  // CSS f\\xfcr das Dropdown\\n  if (!document.querySelector('style[data-places-css]')) {\\n    const style = document.createElement('style');\\n    style.setAttribute('data-places-css', 'true');\\n    style.textContent = '.pac-container{z-index:10000000!important;background:white!important;border:1px solid #ddd!important;border-radius:4px!important;box-shadow:0 2px 10px rgba(0,0,0,.2)!important;margin-top:5px!important}.pac-item{padding:8px 15px!important;cursor:pointer!important}.pac-item:hover{background-color:#f5f5f5!important}';\\n    document.head.appendChild(style);\\n  }\\n})();\\n\\n// Backup f\\xfcr wiederholte Besuche - alle 2 Sekunden pr\\xfcfen\\nsetInterval(function() {\\n  if (typeof google !== 'undefined' && google.maps && google.maps.places) {\\n    const unsetupFields = document.querySelectorAll('input[name=\\\"adresse\\\"]:not([data-places-setup])');\\n    if (unsetupFields.length > 0 && window.initGooglePlaces) {\\n      window.initGooglePlaces();\\n    }\\n  }\\n}, 2000);\\n</script>\",customHTMLHeadStart:\"  \",description:siteMetadata(params,activeLocale).description,elements:{},robots:\"max-image-preview:large\",serializationId:\"framer-kpqH0\",title:siteMetadata(params,activeLocale).title||\"Anmeldung Hauptformular\",viewport:\"width=device-width\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],
  "mappings": "yCACyI,SAARA,EAA0BC,EAAOC,EAAa,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,KAAK,SAAS,WAAW,oBAAoB,EAAE,CAAC,KAAK,SAAS,WAAW,uBAAuB,CAAC,EAAE,kBAAkB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,YAAmiI,oBAAoB,KAAK,YAAYF,EAAaC,EAAOC,CAAY,EAAE,YAAY,SAAS,CAAC,EAAE,OAAO,0BAA0B,gBAAgB,eAAe,MAAMF,EAAaC,EAAOC,CAAY,EAAE,OAAO,0BAA0B,SAAS,oBAAoB,CAAE,CAAQ,IAAMC,EAAgB,EACrnJC,EAAqB,CAAC,QAAU,CAAC,QAAU,CAAC,KAAO,WAAW,YAAc,CAAC,sBAAwB,GAAG,CAAC,EAAE,gBAAkB,CAAC,KAAO,WAAW,YAAc,CAAC,sBAAwB,GAAG,CAAC,EAAE,mBAAqB,CAAC,KAAO,UAAU,CAAC,CAAC",
  "names": ["metadata", "params", "activeLocale", "metadataVersion", "__FramerMetadata__"]
}
