<?php
use 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;
/* @FOSUser/Registration/register.html.twig */
class __TwigTemplate_5a9681538119642caf2f93d98b0ce963 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 = [
'fos_user_content' => [$this, 'block_fos_user_content'],
'stylesheets' => [$this, 'block_stylesheets'],
'javascripts' => [$this, 'block_javascripts'],
];
}
protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
{
// line 1
return "@FOSUser/layout.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", "@FOSUser/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", "@FOSUser/Registration/register.html.twig"));
$this->parent = $this->load("@FOSUser/layout.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 3
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_fos_user_content(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", "fos_user_content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "fos_user_content"));
// line 4
yield Twig\Extension\CoreExtension::include($this->env, $context, "@FOSUser/Registration/register_content.html.twig");
yield "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 7
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_stylesheets(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", "stylesheets"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
// line 8
yield " <link rel=\"stylesheet\" href=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/generated/living_styleguide.css"), "html", null, true);
yield "\">
<style>
#reg-email-additional-note {
color: #999;
line-height: 1.2;
}
</style>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 18
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_javascripts(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", "javascripts"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 19
yield " <script>
";
// line 20
yield $this->extensions['App\Twig\AppExtension']->inlineJsWrapperBeginFunction();
yield "
jQuery('#fos_user_registration_form_email_second').bind('paste', function (e) {
e.preventDefault();
});
jQuery('#fos_user_registration_form_email_second').parent().hide();
if (jQuery('.invalid-feedback').length && jQuery('#mobile-only-visible').is(':visible')) {
var mobileScrollMarker = document.getElementById('mobile-only-visible');
mobileScrollMarker.scrollIntoView();
}
jQuery('#fos_user_registration_form_email_first').change(function() {
jQuery('#fos_user_registration_form_email_second').val(\$(this).val());
});
";
// line 32
yield $this->extensions['App\Twig\AppExtension']->inlineJsWrapperEndFunction();
yield "
</script>
";
// line 34
if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, (isset($context["criteo_service"]) || array_key_exists("criteo_service", $context) ? $context["criteo_service"] : (function () { throw new RuntimeError('Variable "criteo_service" does not exist.', 34, $this->source); })()), "pageShouldContainCriteoCode", [CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 34, $this->source); })()), "request", [], "any", false, false, false, 34), CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 34, $this->source); })()), "user", [], "any", false, false, false, 34)], "method", false, false, false, 34)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 35
yield "
<!-- Criteo Product Tag -->
<script>
";
// line 38
yield $this->extensions['App\Twig\AppExtension']->inlineJsWrapperBeginFunction();
yield "
if (typeof window.CCM === 'object') {
const hasConsentForEmbedding = CCM.acceptedEmbeddings.some(embedding => {
return embedding.name === 'Criteo';
});
if (hasConsentForEmbedding) {
window.criteo_q = window.criteo_q || [];
var deviceType = /iPad/.test(navigator.userAgent) ? \"t\" : /Mobile|iP(hone|od)|Android|BlackBerry|IEMobile|Silk/.test(navigator.userAgent) ? \"m\" : \"d\";
window.criteo_q.push(
{event: \"setAccount\", account: ";
// line 48
if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, (isset($context["criteo_service"]) || array_key_exists("criteo_service", $context) ? $context["criteo_service"] : (function () { throw new RuntimeError('Variable "criteo_service" does not exist.', 48, $this->source); })()), "pageShouldContainCriteoJobseekerCode", [CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 48, $this->source); })()), "request", [], "any", false, false, false, 48), "uri", [], "any", false, false, false, 48)], "method", false, false, false, 48)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
yield "88703";
} else {
yield "88704";
}
yield "},
{event: \"setEmail\", email: ";
// line 49
if ((((CoreExtension::getAttribute($this->env, $this->source, ($context["app"] ?? null), "user", [], "any", true, true, false, 49) && !(null === CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 49, $this->source); })()), "user", [], "any", false, false, false, 49))) && CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["app"] ?? null), "user", [], "any", false, true, false, 49), "email", [], "any", true, true, false, 49)) && !(null === CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 49, $this->source); })()), "user", [], "any", false, false, false, 49), "email", [], "any", false, false, false, 49)))) {
yield "\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Twig\AppExtension']->sha256(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 49, $this->source); })()), "user", [], "any", false, false, false, 49), "email", [], "any", false, false, false, 49)), "html", null, true);
yield "\", hash_method: \"sha256\"";
} else {
yield "\"\"";
}
yield "},
{event: \"setSiteType\", type: deviceType},
{event: \"viewItem\", item: \"1\" }
);
}
}
";
// line 55
yield $this->extensions['App\Twig\AppExtension']->inlineJsWrapperEndFunction();
yield "
</script>
<!-- END Criteo Product Tag -->
";
}
// line 59
yield " ";
if (((CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 59, $this->source); })()), "environment", [], "any", false, false, false, 59) == "prod") && ((isset($context["createWithRole"]) || array_key_exists("createWithRole", $context) ? $context["createWithRole"] : (function () { throw new RuntimeError('Variable "createWithRole" does not exist.', 59, $this->source); })()) == Twig\Extension\CoreExtension::constant("App\\Entity\\User::ROLE_NAME_JOBOFFERER")))) {
// line 60
yield " <!-- Hotjar Tracking Code for https://www.joboo.de -->
<script>
(function(h,o,t,j,a,r){
h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};
h._hjSettings={hjid:3825938,hjsv:6};
a=o.getElementsByTagName('head')[0];
r=o.createElement('script');r.async=1;
r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;
a.appendChild(r);
})(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');
</script>
";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "@FOSUser/Registration/register.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 214 => 60, 211 => 59, 204 => 55, 189 => 49, 181 => 48, 168 => 38, 163 => 35, 161 => 34, 156 => 32, 141 => 20, 138 => 19, 125 => 18, 104 => 8, 91 => 7, 78 => 4, 65 => 3, 42 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% extends '@FOSUser/layout.html.twig' %}
{% block fos_user_content %}
{{ include('@FOSUser/Registration/register_content.html.twig') }}
{% endblock fos_user_content %}
{% block stylesheets %}
<link rel=\"stylesheet\" href=\"{{ asset('assets/generated/living_styleguide.css') }}\">
<style>
#reg-email-additional-note {
color: #999;
line-height: 1.2;
}
</style>
{% endblock %}
{% block javascripts %}
<script>
{{ inlineJsWrapperBegin() }}
jQuery('#fos_user_registration_form_email_second').bind('paste', function (e) {
e.preventDefault();
});
jQuery('#fos_user_registration_form_email_second').parent().hide();
if (jQuery('.invalid-feedback').length && jQuery('#mobile-only-visible').is(':visible')) {
var mobileScrollMarker = document.getElementById('mobile-only-visible');
mobileScrollMarker.scrollIntoView();
}
jQuery('#fos_user_registration_form_email_first').change(function() {
jQuery('#fos_user_registration_form_email_second').val(\$(this).val());
});
{{ inlineJsWrapperEnd() }}
</script>
{% if criteo_service.pageShouldContainCriteoCode(app.request, app.user) %}
<!-- Criteo Product Tag -->
<script>
{{ inlineJsWrapperBegin() }}
if (typeof window.CCM === 'object') {
const hasConsentForEmbedding = CCM.acceptedEmbeddings.some(embedding => {
return embedding.name === 'Criteo';
});
if (hasConsentForEmbedding) {
window.criteo_q = window.criteo_q || [];
var deviceType = /iPad/.test(navigator.userAgent) ? \"t\" : /Mobile|iP(hone|od)|Android|BlackBerry|IEMobile|Silk/.test(navigator.userAgent) ? \"m\" : \"d\";
window.criteo_q.push(
{event: \"setAccount\", account: {% if criteo_service.pageShouldContainCriteoJobseekerCode(app.request.uri) %}88703{% else %}88704{% endif %}},
{event: \"setEmail\", email: {% if app.user is defined and app.user is not null and app.user.email is defined and app.user.email is not null %}\"{{ app.user.email|sha256 }}\", hash_method: \"sha256\"{% else %}\"\"{% endif %}},
{event: \"setSiteType\", type: deviceType},
{event: \"viewItem\", item: \"1\" }
);
}
}
{{ inlineJsWrapperEnd() }}
</script>
<!-- END Criteo Product Tag -->
{% endif %}
{% if app.environment == 'prod' and createWithRole == constant('App\\\\Entity\\\\User::ROLE_NAME_JOBOFFERER') %}
<!-- Hotjar Tracking Code for https://www.joboo.de -->
<script>
(function(h,o,t,j,a,r){
h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};
h._hjSettings={hjid:3825938,hjsv:6};
a=o.getElementsByTagName('head')[0];
r=o.createElement('script');r.async=1;
r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;
a.appendChild(r);
})(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');
</script>
{% endif %}
{% endblock %}
", "@FOSUser/Registration/register.html.twig", "/workspace/backend-app/templates/bundles/FOSUserBundle/Registration/register.html.twig");
}
}