var/cache/dev/twig/6f/6f9983222a0aca96eef74fc9910f3877.php line 55

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. use Twig\TemplateWrapper;
  15. /* @FOSUser/Registration/register.html.twig */
  16. class __TwigTemplate_5a9681538119642caf2f93d98b0ce963 extends Template
  17. {
  18. private Source $source;
  19. /**
  20. * @var array<string, Template>
  21. */
  22. private array $macros = [];
  23. public function __construct(Environment $env)
  24. {
  25. parent::__construct($env);
  26. $this->source = $this->getSourceContext();
  27. $this->blocks = [
  28. 'fos_user_content' => [$this, 'block_fos_user_content'],
  29. 'stylesheets' => [$this, 'block_stylesheets'],
  30. 'javascripts' => [$this, 'block_javascripts'],
  31. ];
  32. }
  33. protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  34. {
  35. // line 1
  36. return "@FOSUser/layout.html.twig";
  37. }
  38. protected function doDisplay(array $context, array $blocks = []): iterable
  39. {
  40. $macros = $this->macros;
  41. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  42. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@FOSUser/Registration/register.html.twig"));
  43. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  44. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@FOSUser/Registration/register.html.twig"));
  45. $this->parent = $this->load("@FOSUser/layout.html.twig", 1);
  46. yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  47. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  48. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  49. }
  50. // line 3
  51. /**
  52. * @return iterable<null|scalar|\Stringable>
  53. */
  54. public function block_fos_user_content(array $context, array $blocks = []): iterable
  55. {
  56. $macros = $this->macros;
  57. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  58. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "fos_user_content"));
  59. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  60. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "fos_user_content"));
  61. // line 4
  62. yield Twig\Extension\CoreExtension::include($this->env, $context, "@FOSUser/Registration/register_content.html.twig");
  63. yield "
  64. ";
  65. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  66. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  67. yield from [];
  68. }
  69. // line 7
  70. /**
  71. * @return iterable<null|scalar|\Stringable>
  72. */
  73. public function block_stylesheets(array $context, array $blocks = []): iterable
  74. {
  75. $macros = $this->macros;
  76. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  77. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
  78. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  79. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
  80. // line 8
  81. yield " <link rel=\"stylesheet\" href=\"";
  82. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/generated/living_styleguide.css"), "html", null, true);
  83. yield "\">
  84. <style>
  85. #reg-email-additional-note {
  86. color: #999;
  87. line-height: 1.2;
  88. }
  89. </style>
  90. ";
  91. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  92. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  93. yield from [];
  94. }
  95. // line 18
  96. /**
  97. * @return iterable<null|scalar|\Stringable>
  98. */
  99. public function block_javascripts(array $context, array $blocks = []): iterable
  100. {
  101. $macros = $this->macros;
  102. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  103. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
  104. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  105. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
  106. // line 19
  107. yield " <script>
  108. ";
  109. // line 20
  110. yield $this->extensions['App\Twig\AppExtension']->inlineJsWrapperBeginFunction();
  111. yield "
  112. jQuery('#fos_user_registration_form_email_second').bind('paste', function (e) {
  113. e.preventDefault();
  114. });
  115. jQuery('#fos_user_registration_form_email_second').parent().hide();
  116. if (jQuery('.invalid-feedback').length && jQuery('#mobile-only-visible').is(':visible')) {
  117. var mobileScrollMarker = document.getElementById('mobile-only-visible');
  118. mobileScrollMarker.scrollIntoView();
  119. }
  120. jQuery('#fos_user_registration_form_email_first').change(function() {
  121. jQuery('#fos_user_registration_form_email_second').val(\$(this).val());
  122. });
  123. ";
  124. // line 32
  125. yield $this->extensions['App\Twig\AppExtension']->inlineJsWrapperEndFunction();
  126. yield "
  127. </script>
  128. ";
  129. // line 34
  130. 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)) {
  131. // line 35
  132. yield "
  133. <!-- Criteo Product Tag -->
  134. <script>
  135. ";
  136. // line 38
  137. yield $this->extensions['App\Twig\AppExtension']->inlineJsWrapperBeginFunction();
  138. yield "
  139. if (typeof window.CCM === 'object') {
  140. const hasConsentForEmbedding = CCM.acceptedEmbeddings.some(embedding => {
  141. return embedding.name === 'Criteo';
  142. });
  143. if (hasConsentForEmbedding) {
  144. window.criteo_q = window.criteo_q || [];
  145. var deviceType = /iPad/.test(navigator.userAgent) ? \"t\" : /Mobile|iP(hone|od)|Android|BlackBerry|IEMobile|Silk/.test(navigator.userAgent) ? \"m\" : \"d\";
  146. window.criteo_q.push(
  147. {event: \"setAccount\", account: ";
  148. // line 48
  149. 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)) {
  150. yield "88703";
  151. } else {
  152. yield "88704";
  153. }
  154. yield "},
  155. {event: \"setEmail\", email: ";
  156. // line 49
  157. 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)))) {
  158. yield "\"";
  159. 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);
  160. yield "\", hash_method: \"sha256\"";
  161. } else {
  162. yield "\"\"";
  163. }
  164. yield "},
  165. {event: \"setSiteType\", type: deviceType},
  166. {event: \"viewItem\", item: \"1\" }
  167. );
  168. }
  169. }
  170. ";
  171. // line 55
  172. yield $this->extensions['App\Twig\AppExtension']->inlineJsWrapperEndFunction();
  173. yield "
  174. </script>
  175. <!-- END Criteo Product Tag -->
  176. ";
  177. }
  178. // line 59
  179. yield " ";
  180. 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")))) {
  181. // line 60
  182. yield " <!-- Hotjar Tracking Code for https://www.joboo.de -->
  183. <script>
  184. (function(h,o,t,j,a,r){
  185. h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};
  186. h._hjSettings={hjid:3825938,hjsv:6};
  187. a=o.getElementsByTagName('head')[0];
  188. r=o.createElement('script');r.async=1;
  189. r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;
  190. a.appendChild(r);
  191. })(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');
  192. </script>
  193. ";
  194. }
  195. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  196. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  197. yield from [];
  198. }
  199. /**
  200. * @codeCoverageIgnore
  201. */
  202. public function getTemplateName(): string
  203. {
  204. return "@FOSUser/Registration/register.html.twig";
  205. }
  206. /**
  207. * @codeCoverageIgnore
  208. */
  209. public function isTraitable(): bool
  210. {
  211. return false;
  212. }
  213. /**
  214. * @codeCoverageIgnore
  215. */
  216. public function getDebugInfo(): array
  217. {
  218. 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,);
  219. }
  220. public function getSourceContext(): Source
  221. {
  222. return new Source("{% extends '@FOSUser/layout.html.twig' %}
  223. {% block fos_user_content %}
  224. {{ include('@FOSUser/Registration/register_content.html.twig') }}
  225. {% endblock fos_user_content %}
  226. {% block stylesheets %}
  227. <link rel=\"stylesheet\" href=\"{{ asset('assets/generated/living_styleguide.css') }}\">
  228. <style>
  229. #reg-email-additional-note {
  230. color: #999;
  231. line-height: 1.2;
  232. }
  233. </style>
  234. {% endblock %}
  235. {% block javascripts %}
  236. <script>
  237. {{ inlineJsWrapperBegin() }}
  238. jQuery('#fos_user_registration_form_email_second').bind('paste', function (e) {
  239. e.preventDefault();
  240. });
  241. jQuery('#fos_user_registration_form_email_second').parent().hide();
  242. if (jQuery('.invalid-feedback').length && jQuery('#mobile-only-visible').is(':visible')) {
  243. var mobileScrollMarker = document.getElementById('mobile-only-visible');
  244. mobileScrollMarker.scrollIntoView();
  245. }
  246. jQuery('#fos_user_registration_form_email_first').change(function() {
  247. jQuery('#fos_user_registration_form_email_second').val(\$(this).val());
  248. });
  249. {{ inlineJsWrapperEnd() }}
  250. </script>
  251. {% if criteo_service.pageShouldContainCriteoCode(app.request, app.user) %}
  252. <!-- Criteo Product Tag -->
  253. <script>
  254. {{ inlineJsWrapperBegin() }}
  255. if (typeof window.CCM === 'object') {
  256. const hasConsentForEmbedding = CCM.acceptedEmbeddings.some(embedding => {
  257. return embedding.name === 'Criteo';
  258. });
  259. if (hasConsentForEmbedding) {
  260. window.criteo_q = window.criteo_q || [];
  261. var deviceType = /iPad/.test(navigator.userAgent) ? \"t\" : /Mobile|iP(hone|od)|Android|BlackBerry|IEMobile|Silk/.test(navigator.userAgent) ? \"m\" : \"d\";
  262. window.criteo_q.push(
  263. {event: \"setAccount\", account: {% if criteo_service.pageShouldContainCriteoJobseekerCode(app.request.uri) %}88703{% else %}88704{% endif %}},
  264. {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 %}},
  265. {event: \"setSiteType\", type: deviceType},
  266. {event: \"viewItem\", item: \"1\" }
  267. );
  268. }
  269. }
  270. {{ inlineJsWrapperEnd() }}
  271. </script>
  272. <!-- END Criteo Product Tag -->
  273. {% endif %}
  274. {% if app.environment == 'prod' and createWithRole == constant('App\\\\Entity\\\\User::ROLE_NAME_JOBOFFERER') %}
  275. <!-- Hotjar Tracking Code for https://www.joboo.de -->
  276. <script>
  277. (function(h,o,t,j,a,r){
  278. h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};
  279. h._hjSettings={hjid:3825938,hjsv:6};
  280. a=o.getElementsByTagName('head')[0];
  281. r=o.createElement('script');r.async=1;
  282. r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;
  283. a.appendChild(r);
  284. })(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');
  285. </script>
  286. {% endif %}
  287. {% endblock %}
  288. ", "@FOSUser/Registration/register.html.twig", "/workspace/backend-app/templates/bundles/FOSUserBundle/Registration/register.html.twig");
  289. }
  290. }