{"version":3,"file":"Email_Sign_Up.0GiD2nvC.mjs","names":[],"sources":["https:/framerusercontent.com/modules/mt3U1RQLTOaR2MFMBi1k/Vhh43mHXCP8Rd4ztSHl1/Email_Sign_Up.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";const FORM_HTML=`\n<div id=\"sib-form-container\" class=\"sib-form-container\">\n  <div id=\"sib-container\" class=\"sib-container--large sib-container--vertical\" style=\"max-width:540px; text-align:center; background-color:rgba(255,255,255,1); border-width:1px; border-style:solid; border-color:#C0CCD9; border-radius:3px; direction:ltr\">\n    <form id=\"sib-form\" method=\"POST\" action=\"https://db4fb5af.sibforms.com/serve/MUIFAFbBqmr2nRCErWqnCc4M8mjRO3pvq5e46S1cmNbtNUytjLCHk-iFOFhm6bSwZad_br5heSkwPcimkEn8CR4od6SV_F_nNRUhTToJOMOwnyJ4s2f4FRKnlYYUuQIXQ2fFRikEmt1s_VQuC5jC3jHd1exjodM_UQCX2mYr-bJSNZCqkuSLoOrxoMoz2tkufwYhE3krkwtseDU2tw==\" data-type=\"subscription\">\n      <div style=\"padding: 8px 0;\">\n        <div class=\"sib-input sib-form-block\">\n          <div class=\"form__entry entry_block\">\n            <div class=\"form__label-row \">\n              <div class=\"entry__field\">\n                <input class=\"input\" type=\"text\" id=\"EMAIL\" name=\"EMAIL\" autocomplete=\"off\" value=\"\" placeholder=\"your@email.com\" data-required=\"true\" required />\n              </div>\n            </div>\n            <label class=\"entry__error entry__error--primary\" style=\"font-family:Helvetica, sans-serif; font-size:16px; text-align:left; color:#661d1d; background-color:#ffeded; border-color:#ff4949; border-radius:3px;\"></label>\n          </div>\n        </div>\n      </div>\n      <div style=\"padding: 8px 0;\">\n        <div class=\"sib-captcha sib-form-block\">\n          <div class=\"form__entry entry_block\">\n            <div class=\"form__label-row \">\n              <div class=\"g-recaptcha sib-visible-recaptcha\" id=\"sib-captcha\" data-sitekey=\"6Lft3HctAAAAANGsF3O46Z0wXFcAsgdE98_J1tjD\" data-callback=\"handleCaptchaResponse\" style=\"direction:ltr\"></div>\n            </div>\n            <label class=\"entry__error entry__error--primary\" style=\"font-family:Helvetica, sans-serif; font-size:16px; text-align:left; color:#661d1d; background-color:#ffeded; border-color:#ff4949; border-radius:3px;\"></label>\n          </div>\n        </div>\n      </div>\n      <div style=\"padding: 8px 0;\">\n        <div class=\"sib-form-block\" style=\"text-align: left\">\n          <button class=\"sib-form-block__button sib-form-block__button-with-loader\" style=\"font-family:Helvetica, sans-serif; font-size:16px; font-weight:700; text-align:left; color:#FFFFFF; background-color:#2d5bff; border-width:0px; border-radius:3px;\" form=\"sib-form\" type=\"submit\">\n            <svg class=\"icon clickable__icon progress-indicator__icon sib-hide-loader-icon\" viewBox=\"0 0 512 512\">\n              <path d=\"M460.116 373.846l-20.823-12.022c-5.541-3.199-7.54-10.159-4.663-15.874 30.137-59.886 28.343-131.652-5.386-189.946-33.641-58.394-94.896-95.833-161.827-99.676C261.028 55.961 256 50.751 256 44.352V20.309c0-6.904 5.808-12.337 12.703-11.982 83.556 4.306 160.163 50.864 202.11 123.677 42.063 72.696 44.079 162.316 6.031 236.832-3.14 6.148-10.75 8.461-16.728 5.01z\"/>\n            </svg>\n            SIGN UP\n          </button>\n        </div>\n      </div>\n      <div style=\"padding: 8px 0;\">\n        <div class=\"sib-form-block\" style=\"font-family:Helvetica, sans-serif; font-size:10px; font-style:italic; text-align:left; color:#3C4858; background-color:transparent; text-align:left\">\n          <div class=\"sib-text-form-block\">\n            <p>By signing up, you agree to receive emails from Astine Vinyl and can unsubscribe anytime. See our <a target=\"_blank\" href=\"https://astinevinyl.com/privacypolicy\" rel=\"nofollow noopener\">Privacy Policy</a> for details.</p>\n          </div>\n        </div>\n      </div>\n      <input type=\"text\" name=\"email_address_check\" value=\"\" class=\"input--hidden\">\n      <input type=\"hidden\" name=\"locale\" value=\"en\">\n    </form>\n  </div>\n</div>\n`;function loadScriptOnce(src,attrs={}){if(document.querySelector(`script[src=\"${src}\"]`))return;const script=document.createElement(\"script\");script.src=src;Object.entries(attrs).forEach(([k,v])=>script.setAttribute(k,v));document.body.appendChild(script);}function loadStylesheetOnce(href){if(document.querySelector(`link[href=\"${href}\"]`))return;const link=document.createElement(\"link\");link.rel=\"stylesheet\";link.href=href;document.head.appendChild(link);}export default function BrevoSignupForm(){useEffect(()=>{// @ts-ignore\nwindow.REQUIRED_CODE_ERROR_MESSAGE=\"Please choose a country code\";// @ts-ignore\nwindow.LOCALE=\"en\";// @ts-ignore\nwindow.EMAIL_INVALID_MESSAGE=window.SMS_INVALID_MESSAGE=\"The information provided is invalid. Please review the field format and try again.\";// @ts-ignore\nwindow.REQUIRED_ERROR_MESSAGE=\"This field cannot be left blank. \";// @ts-ignore\nwindow.GENERIC_INVALID_MESSAGE=\"The information provided is invalid. Please review the field format and try again.\";// @ts-ignore\nwindow.INVALID_NUMBER=\"The information provided is invalid. Please review the field format and try again.\";// @ts-ignore\nwindow.INVALID_DATE=\"Please enter a valid date\";// @ts-ignore\nwindow.REQUIRED_MULTISELECT_MESSAGE=\"Please select at least 1 option\";// @ts-ignore\nwindow.AUTOHIDE=false;// NOTE: main.js is intentionally NOT loaded here.\n// main.js hijacks the form submit for AJAX handling, which prevents\n// the normal POST-and-redirect that Brevo's \"redirect to URL\" setting relies on.\n// Leaving it out lets the form submit natively and redirect to /subscribed.\nloadStylesheetOnce(\"https://sibforms.com/forms/end-form/build/sib-styles.css\");// Explicit reCAPTCHA render\nif(!document.querySelector('script[src*=\"recaptcha/api.js\"]')){const script=document.createElement(\"script\");script.src=\"https://www.google.com/recaptcha/api.js?onload=onRecaptchaLoad&render=explicit\";script.async=true;script.defer=true;// @ts-ignore\nwindow.onRecaptchaLoad=function(){// @ts-ignore\nif(window.grecaptcha&&document.getElementById(\"sib-captcha\")){// @ts-ignore\nwindow.grecaptcha.render(\"sib-captcha\",{sitekey:\"6Lft3HctAAAAANGsF3O46Z0wXFcAsgdE98_J1tjD\",callback:()=>{const event=new Event(\"captchaChange\");document.getElementById(\"sib-captcha\")?.dispatchEvent(event);}});}};document.body.appendChild(script);}},[]);return /*#__PURE__*/_jsx(\"div\",{className:\"sib-form\",style:{textAlign:\"center\",backgroundColor:\"#EFF2F7\",width:\"100%\",height:\"100%\"},dangerouslySetInnerHTML:{__html:FORM_HTML}});}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"BrevoSignupForm\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Email_Sign_Up.map"],"mappings":"2HAgDkQ,SAAS,EAAmB,EAAK,CAAC,GAAG,SAAS,cAAc,cAAc,EAAK,GAAG,EAAE,OAAO,IAAM,EAAK,SAAS,cAAc,MAAM,EAAE,EAAK,IAAI,aAAa,EAAK,KAAK,EAAK,SAAS,KAAK,YAAY,CAAI,CAAE,CAAC,SAAwB,GAAiB,CAiBzP,OAjB0P,MAAc,CAcrgB,GAbA,EAAO,4BAA4B,+BACnC,EAAO,OAAO,KACd,EAAO,sBAAsB,EAAO,oBAAoB,qFACxD,EAAO,uBAAuB,oCAC9B,EAAO,wBAAwB,qFAC/B,EAAO,eAAe,qFACtB,EAAO,aAAa,4BACpB,EAAO,6BAA6B,kCACpC,EAAO,SAAS,GAIhB,EAAmB,0DAA0D,EAC1E,CAAC,SAAS,cAAc,iCAAiC,EAAE,CAAC,IAAM,EAAO,SAAS,cAAc,QAAQ,EAAE,EAAO,IAAI,iFAAiF,EAAO,MAAM,GAAK,EAAO,MAAM,GACxO,EAAO,gBAAgB,UAAU,CAC9B,EAAO,YAAY,SAAS,eAAe,aAAa,GAC3D,EAAO,WAAW,OAAO,cAAc,CAAC,QAAQ,2CAA2C,aAAa,CAAC,IAAM,EAAM,IAAI,MAAM,eAAe,EAAE,SAAS,eAAe,aAAa,CAAC,EAAE,cAAc,CAAK,CAAE,CAAC,CAAC,CAAG,EAAE,SAAS,KAAK,YAAY,CAAM,CAAE,CAAC,EAAE,CAAC,CAAC,EAAsB,EAAK,MAAM,CAAC,UAAU,WAAW,MAAM,CAAC,UAAU,SAAS,gBAAgB,UAAU,MAAM,OAAO,OAAO,MAAM,EAAE,wBAAwB,CAAC,OAAO,CAAS,CAAC,CAAC,CAAE,uBAjErY,IAA6B,EAAO,EAAU"}