var/cache/dev/twig/74/74ac7dfac934408105e2635b3af20eef.php line 115
<?phpuse Twig\Environment;use Twig\Error\LoaderError;use Twig\Error\RuntimeError;use Twig\Extension\CoreExtension;use Twig\Extension\SandboxExtension;use Twig\Markup;use Twig\Sandbox\SecurityError;use Twig\Sandbox\SecurityNotAllowedTagError;use Twig\Sandbox\SecurityNotAllowedFilterError;use Twig\Sandbox\SecurityNotAllowedFunctionError;use Twig\Source;use Twig\Template;use Twig\TemplateWrapper;/* registration/register.html.twig */class __TwigTemplate_2214d2f4fdd30f8bc09929f1ac491629 extends Template{private Source $source;/*** @var array<string, Template>*/private array $macros = [];public function __construct(Environment $env){parent::__construct($env);$this->source = $this->getSourceContext();$this->blocks = ['title' => [$this, 'block_title'],'body' => [$this, 'block_body'],];}protected function doGetParent(array $context): bool|string|Template|TemplateWrapper{// line 1return "base.html.twig";}protected function doDisplay(array $context, array $blocks = []): iterable{$macros = $this->macros;$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "registration/register.html.twig"));$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "registration/register.html.twig"));// line 2$macros["inputMacro"] = $this->macros["inputMacro"] = $this->load("macros/form-input.html.twig", 2)->unwrap();// line 3$macros["docUpload"] = $this->macros["docUpload"] = $this->load("macros/doc-upload.html.twig", 3)->unwrap();// line 1$this->parent = $this->load("base.html.twig", 1);yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);}// line 5/*** @return iterable<null|scalar|\Stringable>*/public function block_title(array $context, array $blocks = []): iterable{$macros = $this->macros;$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));yield "Register";$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);yield from [];}// line 7/*** @return iterable<null|scalar|\Stringable>*/public function block_body(array $context, array $blocks = []): iterable{$macros = $this->macros;$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));// line 8yield " <div class=\"w-full max-w-screen-2xl py-16 mx-auto px-6\"><h1 class=\"md:text-4xl text-3xl font-bold text-gray-800 text-center\">Membership Application Form</h1><p class=\"text-lg text-gray-800 text-center my-5\">Please fill up the form below to apply for membership.</p><div class=\"w-full max-w-lg mx-auto my-5 py-5\">";// line 16yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["registrationForm"]) || array_key_exists("registrationForm", $context) ? $context["registrationForm"] : (function () { throw new RuntimeError('Variable "registrationForm" does not exist.', 16, $this->source); })()), 'form_start', ["attr" => ["autocomplete" => "off", "id" => "js-registration_form"]]);yield "<div class=\"w-full flex flex-col gap-4\"><h3 class=\"text-base text-gray-800 font-semibold mb-2\">Gender</h3><div class=\"grid lg:grid-cols-3 gap-3\"><div class=\"lg:col-span-2\"><div class=\"w-full flex md:flex-row flex-col md:items-center mb-4 gap-3\"><div class=\"inline-flex items-center gap-x-2\"><inputid=\"male\"name=\"";// line 27yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\FormExtension']->getFieldName(CoreExtension::getAttribute($this->env, $this->source, (isset($context["registrationForm"]) || array_key_exists("registrationForm", $context) ? $context["registrationForm"] : (function () { throw new RuntimeError('Variable "registrationForm" does not exist.', 27, $this->source); })()), "gender", [], "any", false, false, false, 27)), "html", null, true);yield "\"value=\"M\"type=\"radio\"class=\"inline-blockw-4h-4roundedaccent-brandborder-brandfocus:ring-0active:ring-0\"required><labelfor=\"male\"class=\"grow ml-2 font-normal text-gray-700 cursor-pointer text-base\">Male</label></div><div class=\"inline-flex items-center gap-x-2\"><inputid=\"female\"name=\"";// line 52yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\FormExtension']->getFieldName(CoreExtension::getAttribute($this->env, $this->source, (isset($context["registrationForm"]) || array_key_exists("registrationForm", $context) ? $context["registrationForm"] : (function () { throw new RuntimeError('Variable "registrationForm" does not exist.', 52, $this->source); })()), "gender", [], "any", false, false, false, 52)), "html", null, true);yield "\"value=\"F\"type=\"radio\"class=\"inline-blockw-4h-4roundedaccent-brandborder-brandfocus:ring-0active:ring-0\"required><labelfor=\"female\"class=\"grow ml-2 font-normal text-gray-700 cursor-pointer text-base\">Female</label></div><div class=\"inline-flex items-center gap-x-2\"><inputid=\"other\"name=\"";// line 77yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\FormExtension']->getFieldName(CoreExtension::getAttribute($this->env, $this->source, (isset($context["registrationForm"]) || array_key_exists("registrationForm", $context) ? $context["registrationForm"] : (function () { throw new RuntimeError('Variable "registrationForm" does not exist.', 77, $this->source); })()), "gender", [], "any", false, false, false, 77)), "html", null, true);yield "\"value=\"O\"type=\"radio\"class=\"inline-blockw-4h-4roundedaccent-brandborder-brandfocus:ring-0active:ring-0\"required><labelfor=\"other\"class=\"grow ml-2 font-normal text-gray-700 cursor-pointer text-base\">Other</label></div></div>";// line 100yield $macros["inputMacro"]->getTemplateForMacro("macro_input", $context, 100, $this->getSourceContext())->macro_input(...[$this->extensions['Symfony\Bridge\Twig\Extension\FormExtension']->getFieldName(CoreExtension::getAttribute($this->env, $this->source, // line 102(isset($context["registrationForm"]) || array_key_exists("registrationForm", $context) ? $context["registrationForm"] : (function () { throw new RuntimeError('Variable "registrationForm" does not exist.', 102, $this->source); })()), "email", [], "any", false, false, false, 102)), $this->extensions['Symfony\Bridge\Twig\Extension\FormExtension']->getFieldValue(CoreExtension::getAttribute($this->env, $this->source, // line 103(isset($context["registrationForm"]) || array_key_exists("registrationForm", $context) ? $context["registrationForm"] : (function () { throw new RuntimeError('Variable "registrationForm" does not exist.', 103, $this->source); })()), "email", [], "any", false, false, false, 103)), $this->extensions['Symfony\Bridge\Twig\Extension\FormExtension']->getFieldLabel(CoreExtension::getAttribute($this->env, $this->source, // line 104(isset($context["registrationForm"]) || array_key_exists("registrationForm", $context) ? $context["registrationForm"] : (function () { throw new RuntimeError('Variable "registrationForm" does not exist.', 104, $this->source); })()), "email", [], "any", false, false, false, 104)), "email", true, true, false, "email"]);// line 111yield "";// line 112yield $macros["inputMacro"]->getTemplateForMacro("macro_input", $context, 112, $this->getSourceContext())->macro_input(...[$this->extensions['Symfony\Bridge\Twig\Extension\FormExtension']->getFieldName(CoreExtension::getAttribute($this->env, $this->source, // line 114(isset($context["registrationForm"]) || array_key_exists("registrationForm", $context) ? $context["registrationForm"] : (function () { throw new RuntimeError('Variable "registrationForm" does not exist.', 114, $this->source); })()), "phoneNo", [], "any", false, false, false, 114)), $this->extensions['Symfony\Bridge\Twig\Extension\FormExtension']->getFieldValue(CoreExtension::getAttribute($this->env, $this->source, // line 115(isset($context["registrationForm"]) || array_key_exists("registrationForm", $context) ? $context["registrationForm"] : (function () { throw new RuntimeError('Variable "registrationForm" does not exist.', 115, $this->source); })()), "phoneNo", [], "any", false, false, false, 115)), "Phone No.", "tel", true, false, false, "phone"]);// line 123yield "</div><div class=\"lg:col-span-1 flex lg:justify-end\">";// line 126yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["uploadForm"]) || array_key_exists("uploadForm", $context) ? $context["uploadForm"] : (function () { throw new RuntimeError('Variable "uploadForm" does not exist.', 126, $this->source); })()), 'form_start', ["attr" => ["id" => "profile-image"]]);// line 131yield "<div class=\"w-36 h-36 rounded-lg bg-gray-100 relative overflow-hidden\"><div class=\"profile-img-result absolute w-full h-full bg-gray-100 inline-flex items-center justify-center\"><svg xmlns=\"http://www.w3.org/2000/svg\" class=\"w-8 h-8 fill-gray-400\" viewBox=\"0 0 24 24\"><path d=\"M19,4h-.508L16.308,1.168A3.023,3.023,0,0,0,13.932,0H10.068A3.023,3.023,0,0,0,7.692,1.168L5.508,4H5A5.006,5.006,0,0,0,0,9V19a5.006,5.006,0,0,0,5,5H19a5.006,5.006,0,0,0,5-5V9A5.006,5.006,0,0,0,19,4ZM9.276,2.39A1.006,1.006,0,0,1,10.068,2h3.864a1.008,1.008,0,0,1,.792.39L15.966,4H8.034ZM22,19a3,3,0,0,1-3,3H5a3,3,0,0,1-3-3V9A3,3,0,0,1,5,6H19a3,3,0,0,1,3,3Z\"/><path d=\"M12,8a6,6,0,1,0,6,6A6.006,6.006,0,0,0,12,8Zm0,10a4,4,0,1,1,4-4A4,4,0,0,1,12,18Z\"/></svg></div><div class=\"relative opacity-0 w-full h-full\"><input type=\"file\" id=\"profile-image-input\" name=\"";// line 140yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\FormExtension']->getFieldName(CoreExtension::getAttribute($this->env, $this->source, (isset($context["uploadForm"]) || array_key_exists("uploadForm", $context) ? $context["uploadForm"] : (function () { throw new RuntimeError('Variable "uploadForm" does not exist.', 140, $this->source); })()), "media", [], "any", false, false, false, 140)), "html", null, true);yield "\" accept=\".png,.jpg,.jpeg\" class=\"block opacity-0 w-full h-full cursor-pointer py-2\" /></div><div class=\"absolute w-full py-1.5 text-xs text-center bottom-0 bg-black text-white\">Upload</div></div>";// line 146yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["uploadForm"]) || array_key_exists("uploadForm", $context) ? $context["uploadForm"] : (function () { throw new RuntimeError('Variable "uploadForm" does not exist.', 146, $this->source); })()), 'form_end');yield "</div></div><div class=\"grid lg:grid-cols-2 gap-3\"><div class=\"lg:col-span-1\">";// line 151yield $macros["inputMacro"]->getTemplateForMacro("macro_input", $context, 151, $this->getSourceContext())->macro_input(...[$this->extensions['Symfony\Bridge\Twig\Extension\FormExtension']->getFieldName(CoreExtension::getAttribute($this->env, $this->source, // line 153(isset($context["registrationForm"]) || array_key_exists("registrationForm", $context) ? $context["registrationForm"] : (function () { throw new RuntimeError('Variable "registrationForm" does not exist.', 153, $this->source); })()), "firstName", [], "any", false, false, false, 153)), $this->extensions['Symfony\Bridge\Twig\Extension\FormExtension']->getFieldValue(CoreExtension::getAttribute($this->env, $this->source, // line 154(isset($context["registrationForm"]) || array_key_exists("registrationForm", $context) ? $context["registrationForm"] : (function () { throw new RuntimeError('Variable "registrationForm" does not exist.', 154, $this->source); })()), "firstName", [], "any", false, false, false, 154)), $this->extensions['Symfony\Bridge\Twig\Extension\FormExtension']->getFieldLabel(CoreExtension::getAttribute($this->env, $this->source, // line 155(isset($context["registrationForm"]) || array_key_exists("registrationForm", $context) ? $context["registrationForm"] : (function () { throw new RuntimeError('Variable "registrationForm" does not exist.', 155, $this->source); })()), "firstName", [], "any", false, false, false, 155)), "text", true, false, false, "fname"]);// line 162yield "</div><div class=\"lg:col-span-1\">";// line 165yield $macros["inputMacro"]->getTemplateForMacro("macro_input", $context, 165, $this->getSourceContext())->macro_input(...[$this->extensions['Symfony\Bridge\Twig\Extension\FormExtension']->getFieldName(CoreExtension::getAttribute($this->env, $this->source, // line 167(isset($context["registrationForm"]) || array_key_exists("registrationForm", $context) ? $context["registrationForm"] : (function () { throw new RuntimeError('Variable "registrationForm" does not exist.', 167, $this->source); })()), "lastName", [], "any", false, false, false, 167)), $this->extensions['Symfony\Bridge\Twig\Extension\FormExtension']->getFieldValue(CoreExtension::getAttribute($this->env, $this->source, // line 168(isset($context["registrationForm"]) || array_key_exists("registrationForm", $context) ? $context["registrationForm"] : (function () { throw new RuntimeError('Variable "registrationForm" does not exist.', 168, $this->source); })()), "lastName", [], "any", false, false, false, 168)), $this->extensions['Symfony\Bridge\Twig\Extension\FormExtension']->getFieldLabel(CoreExtension::getAttribute($this->env, $this->source, // line 169(isset($context["registrationForm"]) || array_key_exists("registrationForm", $context) ? $context["registrationForm"] : (function () { throw new RuntimeError('Variable "registrationForm" does not exist.', 169, $this->source); })()), "lastName", [], "any", false, false, false, 169)), "text", true, false, false, "lname"]);// line 176yield "</div></div><div class=\"grid lg:grid-cols-3 gap-3\"><div class=\"lg:col-span-1\">";// line 182yield $macros["inputMacro"]->getTemplateForMacro("macro_input", $context, 182, $this->getSourceContext())->macro_input(...[$this->extensions['Symfony\Bridge\Twig\Extension\FormExtension']->getFieldName(CoreExtension::getAttribute($this->env, $this->source, // line 184(isset($context["registrationForm"]) || array_key_exists("registrationForm", $context) ? $context["registrationForm"] : (function () { throw new RuntimeError('Variable "registrationForm" does not exist.', 184, $this->source); })()), "houseNumber", [], "any", false, false, false, 184)), $this->extensions['Symfony\Bridge\Twig\Extension\FormExtension']->getFieldValue(CoreExtension::getAttribute($this->env, $this->source, // line 185(isset($context["registrationForm"]) || array_key_exists("registrationForm", $context) ? $context["registrationForm"] : (function () { throw new RuntimeError('Variable "registrationForm" does not exist.', 185, $this->source); })()), "houseNumber", [], "any", false, false, false, 185)), "House Number", "text", true, false, false, "houseNumber"]);// line 193yield "</div><div class=\"lg:col-span-1\">";// line 196yield $macros["inputMacro"]->getTemplateForMacro("macro_input", $context, 196, $this->getSourceContext())->macro_input(...[$this->extensions['Symfony\Bridge\Twig\Extension\FormExtension']->getFieldName(CoreExtension::getAttribute($this->env, $this->source, // line 198(isset($context["registrationForm"]) || array_key_exists("registrationForm", $context) ? $context["registrationForm"] : (function () { throw new RuntimeError('Variable "registrationForm" does not exist.', 198, $this->source); })()), "street", [], "any", false, false, false, 198)), $this->extensions['Symfony\Bridge\Twig\Extension\FormExtension']->getFieldValue(CoreExtension::getAttribute($this->env, $this->source, // line 199(isset($context["registrationForm"]) || array_key_exists("registrationForm", $context) ? $context["registrationForm"] : (function () { throw new RuntimeError('Variable "registrationForm" does not exist.', 199, $this->source); })()), "street", [], "any", false, false, false, 199)), "Street", "text", true, false, false, "street"]);// line 207yield "</div><div class=\"lg:col-span-1\">";// line 210yield $macros["inputMacro"]->getTemplateForMacro("macro_input", $context, 210, $this->getSourceContext())->macro_input(...[$this->extensions['Symfony\Bridge\Twig\Extension\FormExtension']->getFieldName(CoreExtension::getAttribute($this->env, $this->source, // line 212(isset($context["registrationForm"]) || array_key_exists("registrationForm", $context) ? $context["registrationForm"] : (function () { throw new RuntimeError('Variable "registrationForm" does not exist.', 212, $this->source); })()), "postCode", [], "any", false, false, false, 212)), $this->extensions['Symfony\Bridge\Twig\Extension\FormExtension']->getFieldValue(CoreExtension::getAttribute($this->env, $this->source, // line 213(isset($context["registrationForm"]) || array_key_exists("registrationForm", $context) ? $context["registrationForm"] : (function () { throw new RuntimeError('Variable "registrationForm" does not exist.', 213, $this->source); })()), "postCode", [], "any", false, false, false, 213)), "postCode", "text", true, false, false, "postCode"]);// line 221yield "</div></div>";// line 225yield $macros["inputMacro"]->getTemplateForMacro("macro_input", $context, 225, $this->getSourceContext())->macro_input(...[$this->extensions['Symfony\Bridge\Twig\Extension\FormExtension']->getFieldName(CoreExtension::getAttribute($this->env, $this->source, // line 227(isset($context["registrationForm"]) || array_key_exists("registrationForm", $context) ? $context["registrationForm"] : (function () { throw new RuntimeError('Variable "registrationForm" does not exist.', 227, $this->source); })()), "plainPassword", [], "any", false, false, false, 227)), $this->extensions['Symfony\Bridge\Twig\Extension\FormExtension']->getFieldValue(CoreExtension::getAttribute($this->env, $this->source, // line 228(isset($context["registrationForm"]) || array_key_exists("registrationForm", $context) ? $context["registrationForm"] : (function () { throw new RuntimeError('Variable "registrationForm" does not exist.', 228, $this->source); })()), "plainPassword", [], "any", false, false, false, 228)), "Password", "password", true, false, false, "password"]);// line 236yield "<div class=\"w-full flex items-center mt-4 mb-8\"><inputid=\"agree\"name=\"";// line 243yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\FormExtension']->getFieldName(CoreExtension::getAttribute($this->env, $this->source, (isset($context["registrationForm"]) || array_key_exists("registrationForm", $context) ? $context["registrationForm"] : (function () { throw new RuntimeError('Variable "registrationForm" does not exist.', 243, $this->source); })()), "agreeTerms", [], "any", false, false, false, 243)), "html", null, true);yield "\"value=\"";// line 244yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\FormExtension']->getFieldValue(CoreExtension::getAttribute($this->env, $this->source, (isset($context["registrationForm"]) || array_key_exists("registrationForm", $context) ? $context["registrationForm"] : (function () { throw new RuntimeError('Variable "registrationForm" does not exist.', 244, $this->source); })()), "agreeTerms", [], "any", false, false, false, 244)), "html", null, true);yield "\"type=\"checkbox\"class=\"inline-blockw-4h-4roundedaccent-brandborder-brandfocus:ring-0active:ring-0\"required><labelfor=\"agree\"class=\"grow ml-2 font-normal text-gray-700 cursor-pointer text-base\">Agree</label></div><input type=\"hidden\" name=\"imageType\" value=\"LG\"><input type=\"hidden\" name=\"imageMetadata\" class=\"metadata-profile\"><div class=\"w-full text-center mt-4\"><buttontype=\"submit\"class=\"nextrounded-fullbg-transparentborderborder-brandpx-12py-3inline-flexitems-centerjustify-centertext-basegroupfont-semiboldtransition-allduration-500relativeoverflow-hiddenafter:content=['']after:w-0after:h-fullafter:absoluteafter:blockafter:inset-0hover:after:w-fullafter:transition-allafter:duration-500after:bg-brandafter:text-white\"><span class=\"z-10 group-hover:text-white text-brand transition-all duration-700\">Submit</span></button></div></div>";// line 307yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["registrationForm"]) || array_key_exists("registrationForm", $context) ? $context["registrationForm"] : (function () { throw new RuntimeError('Variable "registrationForm" does not exist.', 307, $this->source); })()), 'form_end');yield "</div></div><script>function registerUser(){const registrationForm = document.querySelector('#js-registration_form');const registrationFormData = new FormData(registrationForm);\$.ajax({url: '";// line 316yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_register");yield "',method: 'POST',data: registrationFormData,processData: false,contentType: false,success: function(r) {const response = JSON.parse(r)if (response.status =='success'){console.log(response)} else {return displayToast(response.message, 'error', 3000)}},error: function (e) {const error = JSON.parse(e)return displayToast(error.message, 'error', 3000)}});}document.getElementById(\"profile-image-input\").onchange = function(){const uploadedImage = URL.createObjectURL(this.files[0])const formData = new FormData()formData.append('mediaType', 'LG')formData.append('upload_form[media]', this.files[0], this.files[0].name)formData.append('upload_form[_token]', \$('#upload_form__token').val())\$('.profile-img-result').html(`<img src=\"\${uploadedImage}\" class=\"w-full h-full object-cover object-center\">`)\$.ajax({url: '";// line 349yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("image_upload_post");yield "',method: 'POST',data: formData,processData: false,contentType: false,success: function(r) {const response = JSON.parse(r)\$('.metadata-profile').val(response.imageMetadataUid)},error: function (e) {const error = JSON.parse(e)return displayToast(error.message, 'error', 3000)}})}</script>";$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);yield from [];}/*** @codeCoverageIgnore*/public function getTemplateName(): string{return "registration/register.html.twig";}/*** @codeCoverageIgnore*/public function isTraitable(): bool{return false;}/*** @codeCoverageIgnore*/public function getDebugInfo(): array{return array ( 440 => 349, 404 => 316, 392 => 307, 326 => 244, 322 => 243, 313 => 236, 311 => 228, 310 => 227, 309 => 225, 303 => 221, 301 => 213, 300 => 212, 299 => 210, 294 => 207, 292 => 199, 291 => 198, 290 => 196, 285 => 193, 283 => 185, 282 => 184, 281 => 182, 273 => 176, 271 => 169, 270 => 168, 269 => 167, 268 => 165, 263 => 162, 261 => 155, 260 => 154, 259 => 153, 258 => 151, 250 => 146, 241 => 140, 230 => 131, 228 => 126, 223 => 123, 221 => 115, 220 => 114, 219 => 112, 216 => 111, 214 => 104, 213 => 103, 212 => 102, 211 => 100, 185 => 77, 157 => 52, 129 => 27, 115 => 16, 105 => 8, 92 => 7, 69 => 5, 58 => 1, 56 => 3, 54 => 2, 41 => 1,);}public function getSourceContext(): Source{return new Source("{% extends 'base.html.twig' %}{% import \"macros/form-input.html.twig\" as inputMacro %}{% import 'macros/doc-upload.html.twig' as docUpload %}{% block title %}Register{% endblock %}{% block body %}<div class=\"w-full max-w-screen-2xl py-16 mx-auto px-6\"><h1 class=\"md:text-4xl text-3xl font-bold text-gray-800 text-center\">Membership Application Form</h1><p class=\"text-lg text-gray-800 text-center my-5\">Please fill up the form below to apply for membership.</p><div class=\"w-full max-w-lg mx-auto my-5 py-5\">{{ form_start(registrationForm, { 'attr': {'autocomplete': 'off','id':'js-registration_form'}}) }}<div class=\"w-full flex flex-col gap-4\"><h3 class=\"text-base text-gray-800 font-semibold mb-2\">Gender</h3><div class=\"grid lg:grid-cols-3 gap-3\"><div class=\"lg:col-span-2\"><div class=\"w-full flex md:flex-row flex-col md:items-center mb-4 gap-3\"><div class=\"inline-flex items-center gap-x-2\"><inputid=\"male\"name=\"{{ field_name(registrationForm.gender) }}\"value=\"M\"type=\"radio\"class=\"inline-blockw-4h-4roundedaccent-brandborder-brandfocus:ring-0active:ring-0\"required><labelfor=\"male\"class=\"grow ml-2 font-normal text-gray-700 cursor-pointer text-base\">Male</label></div><div class=\"inline-flex items-center gap-x-2\"><inputid=\"female\"name=\"{{ field_name(registrationForm.gender) }}\"value=\"F\"type=\"radio\"class=\"inline-blockw-4h-4roundedaccent-brandborder-brandfocus:ring-0active:ring-0\"required><labelfor=\"female\"class=\"grow ml-2 font-normal text-gray-700 cursor-pointer text-base\">Female</label></div><div class=\"inline-flex items-center gap-x-2\"><inputid=\"other\"name=\"{{ field_name(registrationForm.gender) }}\"value=\"O\"type=\"radio\"class=\"inline-blockw-4h-4roundedaccent-brandborder-brandfocus:ring-0active:ring-0\"required><labelfor=\"other\"class=\"grow ml-2 font-normal text-gray-700 cursor-pointer text-base\">Other</label></div></div>{{ inputMacro.input(field_name(registrationForm.email),field_value(registrationForm.email),field_label(registrationForm.email),'email',true,true,false,'email')}}{{ inputMacro.input(field_name(registrationForm.phoneNo),field_value(registrationForm.phoneNo),'Phone No.','tel',true,false,false,'phone')}}</div><div class=\"lg:col-span-1 flex lg:justify-end\">{{ form_start(uploadForm,{'attr': {'id': 'profile-image'}})}}<div class=\"w-36 h-36 rounded-lg bg-gray-100 relative overflow-hidden\"><div class=\"profile-img-result absolute w-full h-full bg-gray-100 inline-flex items-center justify-center\"><svg xmlns=\"http://www.w3.org/2000/svg\" class=\"w-8 h-8 fill-gray-400\" viewBox=\"0 0 24 24\"><path d=\"M19,4h-.508L16.308,1.168A3.023,3.023,0,0,0,13.932,0H10.068A3.023,3.023,0,0,0,7.692,1.168L5.508,4H5A5.006,5.006,0,0,0,0,9V19a5.006,5.006,0,0,0,5,5H19a5.006,5.006,0,0,0,5-5V9A5.006,5.006,0,0,0,19,4ZM9.276,2.39A1.006,1.006,0,0,1,10.068,2h3.864a1.008,1.008,0,0,1,.792.39L15.966,4H8.034ZM22,19a3,3,0,0,1-3,3H5a3,3,0,0,1-3-3V9A3,3,0,0,1,5,6H19a3,3,0,0,1,3,3Z\"/><path d=\"M12,8a6,6,0,1,0,6,6A6.006,6.006,0,0,0,12,8Zm0,10a4,4,0,1,1,4-4A4,4,0,0,1,12,18Z\"/></svg></div><div class=\"relative opacity-0 w-full h-full\"><input type=\"file\" id=\"profile-image-input\" name=\"{{ field_name(uploadForm.media) }}\" accept=\".png,.jpg,.jpeg\" class=\"block opacity-0 w-full h-full cursor-pointer py-2\" /></div><div class=\"absolute w-full py-1.5 text-xs text-center bottom-0 bg-black text-white\">Upload</div></div>{{ form_end(uploadForm) }}</div></div><div class=\"grid lg:grid-cols-2 gap-3\"><div class=\"lg:col-span-1\">{{ inputMacro.input(field_name(registrationForm.firstName),field_value(registrationForm.firstName),field_label(registrationForm.firstName),'text',true,false,false,'fname')}}</div><div class=\"lg:col-span-1\">{{ inputMacro.input(field_name(registrationForm.lastName),field_value(registrationForm.lastName),field_label(registrationForm.lastName),'text',true,false,false,'lname')}}</div></div><div class=\"grid lg:grid-cols-3 gap-3\"><div class=\"lg:col-span-1\">{{ inputMacro.input(field_name(registrationForm.houseNumber),field_value(registrationForm.houseNumber),'House Number','text',true,false,false,'houseNumber')}}</div><div class=\"lg:col-span-1\">{{ inputMacro.input(field_name(registrationForm.street),field_value(registrationForm.street),'Street','text',true,false,false,'street')}}</div><div class=\"lg:col-span-1\">{{ inputMacro.input(field_name(registrationForm.postCode),field_value(registrationForm.postCode),'postCode','text',true,false,false,'postCode')}}</div></div>{{ inputMacro.input(field_name(registrationForm.plainPassword),field_value(registrationForm.plainPassword),'Password','password',true,false,false,'password')}}<div class=\"w-full flex items-center mt-4 mb-8\"><inputid=\"agree\"name=\"{{ field_name(registrationForm.agreeTerms) }}\"value=\"{{ field_value(registrationForm.agreeTerms) }}\"type=\"checkbox\"class=\"inline-blockw-4h-4roundedaccent-brandborder-brandfocus:ring-0active:ring-0\"required><labelfor=\"agree\"class=\"grow ml-2 font-normal text-gray-700 cursor-pointer text-base\">Agree</label></div><input type=\"hidden\" name=\"imageType\" value=\"LG\"><input type=\"hidden\" name=\"imageMetadata\" class=\"metadata-profile\"><div class=\"w-full text-center mt-4\"><buttontype=\"submit\"class=\"nextrounded-fullbg-transparentborderborder-brandpx-12py-3inline-flexitems-centerjustify-centertext-basegroupfont-semiboldtransition-allduration-500relativeoverflow-hiddenafter:content=['']after:w-0after:h-fullafter:absoluteafter:blockafter:inset-0hover:after:w-fullafter:transition-allafter:duration-500after:bg-brandafter:text-white\"><span class=\"z-10 group-hover:text-white text-brand transition-all duration-700\">Submit</span></button></div></div>{{ form_end(registrationForm) }}</div></div><script>function registerUser(){const registrationForm = document.querySelector('#js-registration_form');const registrationFormData = new FormData(registrationForm);\$.ajax({url: '{{ path('app_register') }}',method: 'POST',data: registrationFormData,processData: false,contentType: false,success: function(r) {const response = JSON.parse(r)if (response.status =='success'){console.log(response)} else {return displayToast(response.message, 'error', 3000)}},error: function (e) {const error = JSON.parse(e)return displayToast(error.message, 'error', 3000)}});}document.getElementById(\"profile-image-input\").onchange = function(){const uploadedImage = URL.createObjectURL(this.files[0])const formData = new FormData()formData.append('mediaType', 'LG')formData.append('upload_form[media]', this.files[0], this.files[0].name)formData.append('upload_form[_token]', \$('#upload_form__token').val())\$('.profile-img-result').html(`<img src=\"\${uploadedImage}\" class=\"w-full h-full object-cover object-center\">`)\$.ajax({url: '{{ path('image_upload_post') }}',method: 'POST',data: formData,processData: false,contentType: false,success: function(r) {const response = JSON.parse(r)\$('.metadata-profile').val(response.imageMetadataUid)},error: function (e) {const error = JSON.parse(e)return displayToast(error.message, 'error', 3000)}})}</script>{% endblock %}", "registration/register.html.twig", "/home/u642250512/domains/demo.onld.co.uk/public_html/templates/registration/register.html.twig");}}