{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/z3Gx202t5DIOTe5Bhe36/GJyzMOTJMS08VRuehSsZ/augiA20Il.js"],
  "sourcesContent": ["// Generated by Framer (5eef525)\nexport default function metadata(params,activeLocale){return{bodyClassName:\"framer-body-augiA20Il\",breakpoints:[{hash:\"72rtr7\",mediaQuery:\"(min-width: 1231px)\"},{hash:\"931ii8\",mediaQuery:\"(min-width: 992px) and (max-width: 1230px)\"},{hash:\"17whj41\",mediaQuery:\"(min-width: 620px) and (max-width: 991px)\"},{hash:\"jdjfwr\",mediaQuery:\"(max-width: 619px)\"}],customHTMLBodyEnd:'<script>\\ndocument.addEventListener(\\'DOMContentLoaded\\', function() {\\n    // Ensure the button with the correct class is selected\\n    const buttons = document.querySelectorAll(\\'button\\');\\n    console.log(buttons)\\n    const button = buttons[buttons.length - 1];  // Get the last button in the NodeList\\n    button.addEventListener(\\'click\\', function() {\\n        // Retrieve values from the input elements\\n        const inputs = document.querySelectorAll(\\'.framer-form-input\\');\\n        console.log(button)\\n        console.log(inputs)\\n        // Check if there are at least three input elements\\n        if (inputs.length >= 3) {\\n            const input1 = inputs[0].value;\\n            const input2 = inputs[1].value;\\n            const input3 = inputs[2].value;\\n             // Email validation\\n            const emailPattern = /^[^\\\\s@]+@[^\\\\s@]+\\\\.[^\\\\s@]+$/;\\n            if (!emailPattern.test(input2)) {\\n                console.error(\\'Invalid email address\\');\\n                alert(\\'Please enter a valid email address.\\');\\n                return;\\n            }\\n            console.log(inputs)\\n            // Prepare the email text\\n            const emailText = `${input1} \u5148\u751F/\u5C0F\u59D0\uFF0C\u5728 framer \u8868\u55AE\u4E2D\uFF0C\u8A62\u554F\uFF1A${input3}\\\\n\u8ACB\u56DE\u4FE1\uFF1A${input2}`;\\n            \\n            // Send the POST request to Mailgun API\\n            fetch(\"https://api.mailgun.net/v3/sandboxc12692fcc94a4e29afd31daeccd4b60b.mailgun.org/messages\", {\\n                method: \"POST\",\\n                headers: {\\n                    \"Authorization\": \"Basic \" + btoa(\"api:e8d1313a4722609496fb7e033a4bc7de-afce6020-69286e73\"),\\n                    \"Content-Type\": \"application/x-www-form-urlencoded\"\\n                },\\n                body: new URLSearchParams({\\n                    from: \"Emergence Website <mailgun@sandboxc12692fcc94a4e29afd31daeccd4b60b.mailgun.org>\",\\n                    to: \"jade.tao@emergence.today\",\\n                    subject: \"\u5B98\u7DB2\u6536\u5230\u65B0\u8A0A\u606F\",\\n                    text: emailText\\n                })\\n            })\\n            .then(response => response.json())\\n            .then(data => {\\n                console.log(data);\\n                // Change the <p> tag text inside the button to \"SUCCESSFUL\"\\n                const buttonText = button.querySelector(\\'p\\');\\n                if (buttonText) {\\n                    buttonText.textContent = \"SENT!\";\\n                }\\n                button.disabled = true;\\n            })\\n            .catch(error => console.error(\\'Error:\\', error));\\n        } else {\\n            console.error(\\'Not enough input elements with the class .framer-form-input\\');\\n        }\\n    });\\n});\\n</script>',description:\"\u6E67\u73FE\u667A\u5EAB\u81F4\u529B\u65BC\u70BA\u6BCF\u4F4D\u4F01\u696D\u5DE5\u4F5C\u8005\u63D0\u4F9B\u667A\u80FD\u4EE3\u7406\u4EBA\uFF0C\u89E3\u6C7A\u4EBA\u529B\u8CC7\u6E90\u74F6\u9838\uFF0C\u63A8\u52D5\u4F01\u696D\u7121\u9650\u6210\u9577\u3002\",elements:{CwAgAJ_ly:\"hero\",scWONZDtL:\"hero-heading\",X21m2gcRN:\"hero-1\"},framerSearch:{index:true},robots:\"max-image-preview:large\",serializationId:\"framer-lKW23\",socialImage:\"https://framerusercontent.com/assets/3U3VXcKQJ0SfhbysTMdJC9pHWy4.png\",title:\"\u6E67\u73FE\u667A\u5EAB  \u958B\u555F\u60A8\u5C0DAI\u7684\u60F3\u50CF\",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": "yCAAAA,IACe,SAARC,EAA0BC,EAAOC,EAAa,CAAC,MAAM,CAAC,cAAc,wBAAwB,YAAY,CAAC,CAAC,KAAK,SAAS,WAAW,qBAAqB,EAAE,CAAC,KAAK,SAAS,WAAW,4CAA4C,EAAE,CAAC,KAAK,UAAU,WAAW,2CAA2C,EAAE,CAAC,KAAK,SAAS,WAAW,oBAAoB,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,YAAgmF,YAAY,yPAA4C,SAAS,CAAC,UAAU,OAAO,UAAU,eAAe,UAAU,QAAQ,EAAE,aAAa,CAAC,MAAM,EAAI,EAAE,OAAO,0BAA0B,gBAAgB,eAAe,YAAY,uEAAuE,MAAM,yEAAkB,SAAS,oBAAoB,CAAE,CAAQ,IAAMC,EAAgB,EACz0GC,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": ["init_shims", "metadata", "params", "activeLocale", "metadataVersion", "__FramerMetadata__"]
}
