{"version":3,"file":"shared-lib.Cy0VUXOg.mjs","names":[],"sources":["https:/framerusercontent.com/modules/A0kKqJSA7pp8S8MkdDEb/aGy8EWu4thqwH9kT1NOS/siteMetadata.js"],"sourcesContent":["// Generated by Framer (114679e)\nexport default function metadata(params,activeLocale){return{customHTMLBodyEnd:\"<script>\\n  // Wait for full page load\\n  window.addEventListener('load', () => {\\n    const form = document.querySelector('.framer-1e87ugi');\\n\\n    if (!form) {\\n      console.log('Form not found!');\\n      return;\\n    }\\n\\n    // On form submit\\n    form.addEventListener('submit', function (e) {\\n      e.preventDefault();\\n\\n      const hubspotEndpoint = 'https://api.hsforms.com/submissions/v3/integration/submit/40811284/bd683639-6f4e-49db-87e6-ba9d24a60748';\\n\\n      // Prepare form data with correct field names\\n      const data = {\\n        fields: [\\n          { name: 'firstname', value: form.FirstName.value },\\n          { name: 'lastname', value: form.LastName.value },\\n          { name: 'email', value: form.Email.value },\\n          { name: 'phone', value: form.PhoneNumber.value },\\n          { name: 'accredited_investor', value: form.AccreditedInvestor.value }\\n        ],\\n        context: {\\n          pageUri: window.location.href,\\n          pageName: document.title\\n        }\\n      };\\n\\n      // Send form data to HubSpot\\n      fetch(hubspotEndpoint, {\\n        method: 'POST',\\n        headers: { 'Content-Type': 'application/json' },\\n        body: JSON.stringify(data)\\n      })\\n      .then(response => {\\n        if (!response.ok) throw new Error('Failed to submit form');\\n        return response.json();\\n      })\\n      .then(() => {\\n        form.reset(); // Clear form after successful submit\\n        console.log('Successfully sent to HubSpot!');\\n        // Changes text content of Button\\n            const submitButton = form.querySelector('button[type=\\\"submit\\\"').querySelector('.framer-text');\\n            if (submitButton) {\\n              submitButton.textContent = \\\"Success!\\\";\\n            }\\n            window.location.href = \\\"/thank-you\\\";\\n      })\\n      .catch(err => {\\n        console.error('Error sending to HubSpot:', err);\\n      });\\n    });\\n  });\\n</script>\\n\\n<script>\\n  // Wait for full page load\\n  window.addEventListener('load', () => {\\n    const triggerBtn = document.querySelector('.framer-zaN1G.framer-FpPCF.framer-rp8Oz.framer-kb9n0n.framer-v-1y15u7i.framer-nrxpyn');\\n\\n\\n    if (!triggerBtn) {\\n      console.error('Trigger button not found!');\\n      return;\\n    }\\n\\n    // Wait for button click that injects the form into the DOM\\n    triggerBtn.addEventListener('click', () => {\\n      // Slight delay to ensure form is added to DOM\\n      setTimeout(() => {\\n        const form = document.querySelector('.framer-a9rwk');\\n\\n        if (!form) {\\n          console.error('Form not found after button click!');\\n          return;\\n        }\\n\\n        // Prevent multiple listeners\\n        if (form.dataset.bound) return;\\n        form.dataset.bound = true;\\n\\n        // On form submit\\n        form.addEventListener('submit', function (e) {\\n          e.preventDefault();\\n\\n          const hubspotEndpoint = 'https://api.hsforms.com/submissions/v3/integration/submit/40811284/de9b8d7c-3fad-481f-adb0-89bcab13de02';\\n\\n          // Prepare only required fields\\n          const data = {\\n            fields: [\\n              { name: 'firstname', value: form.FirstName.value },\\n              { name: 'lastname', value: form.LastName.value },\\n              { name: 'email', value: form.Email.value },\\n              { name: 'phone', value: form.PhoneNumber.value }\\n            ],\\n            context: {\\n              pageUri: window.location.href,\\n              pageName: document.title\\n            }\\n          };\\n\\n          // Send form data to HubSpot\\n          fetch(hubspotEndpoint, {\\n            method: 'POST',\\n            headers: { 'Content-Type': 'application/json' },\\n            body: JSON.stringify(data)\\n          })\\n          .then(response => {\\n            if (!response.ok) throw new Error('Failed to submit form');\\n            return response.json();\\n          })\\n          .then(() => {\\n            form.reset(); // Clear form after successful submit\\n            console.log('Successfully sent to HubSpot!');\\n            // Changes text content of Button\\n            const submitButton = form.querySelector('button[type=\\\"submit\\\"').querySelector('.framer-text');\\n            if (submitButton) {\\n              submitButton.textContent = \\\"Success!\\\";\\n            }\\n            window.location.href = \\\"/thank-you\\\";\\n\\n          })\\n          .catch(err => {\\n            console.error('Error sending to HubSpot:', err);\\n          });\\n        });\\n      }, 300); // Delay may be adjusted if form loads slowly\\n    });\\n  });\\n</script>\\n\",description:\"Experienced Partners in Alternative Investments\\nWe structure and manage private investment opportunities designed to preserve and grow capital over time.\\n\",favicon:\"https://framerusercontent.com/assets/VMZG4dg7dYvpxG22EYkoypPv9BA.png\",robots:\"max-image-preview:large\",socialImage:\"https://framerusercontent.com/assets/hSQpVPM2IFMyyf2LMr1D9Vwz4c.png\",title:\"Vintage Capital\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"2DACA,SAAwB,EAAS,EAAO,EAAa,CAAC,MAAM,CAAC,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAi+I,YAAY;;EAA+J,QAAQ,uEAAuE,OAAO,0BAA0B,YAAY,sEAAsE,MAAM,kBAAkB"}