var/cache/dev/twig/a9/a930134d6fda2870d0ca187448de873e.php line 54

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. /* /recurrent_jobs_search/form.html.twig */
  16. class __TwigTemplate_c833a8e149f345016ae4d28984b1ca0f 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. 'main_content' => [$this, 'block_main_content'],
  29. 'javascripts' => [$this, 'block_javascripts'],
  30. ];
  31. }
  32. protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  33. {
  34. // line 1
  35. return "/base.html.twig";
  36. }
  37. protected function doDisplay(array $context, array $blocks = []): iterable
  38. {
  39. $macros = $this->macros;
  40. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  41. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "/recurrent_jobs_search/form.html.twig"));
  42. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  43. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "/recurrent_jobs_search/form.html.twig"));
  44. $this->parent = $this->load("/base.html.twig", 1);
  45. yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  46. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  47. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  48. }
  49. // line 2
  50. /**
  51. * @return iterable<null|scalar|\Stringable>
  52. */
  53. public function block_main_content(array $context, array $blocks = []): iterable
  54. {
  55. $macros = $this->macros;
  56. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  57. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main_content"));
  58. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  59. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main_content"));
  60. // line 3
  61. yield "
  62. ";
  63. // line 4
  64. if ((($tmp = !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.', 4, $this->source); })()), "user", [], "any", false, false, false, 4)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  65. // line 5
  66. yield " ";
  67. if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, (isset($context["feature_flag_service"]) || array_key_exists("feature_flag_service", $context) ? $context["feature_flag_service"] : (function () { throw new RuntimeError('Variable "feature_flag_service" does not exist.', 5, $this->source); })()), "featureEnabledForRequest", [Twig\Extension\CoreExtension::constant("App\\Service\\FeatureFlagService::FEATURE_REGISTER_VIA_GOOGLE_IDENTITY"), 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.', 5, $this->source); })()), "request", [], "any", false, false, false, 5)], "method", false, false, false, 5)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  68. // line 6
  69. yield " ";
  70. // line 7
  71. yield " <div id=\"g_id_onload\"
  72. data-client_id=\"788335927892-ttc3saqioltf5ng0plia8l3635mp3lbr.apps.googleusercontent.com\"
  73. data-context=\"signin\"
  74. data-login_uri=\"";
  75. // line 10
  76. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::replace($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("returnurls.google.identity.gsi.jobseeker"), ["http" => "https"]), "html", null, true);
  77. yield "\"
  78. data-close_on_tap_outside=\"true\"
  79. >
  80. </div>
  81. ";
  82. }
  83. // line 15
  84. yield " ";
  85. }
  86. // line 16
  87. yield "
  88. ";
  89. // line 17
  90. if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, (isset($context["feature_flag_service"]) || array_key_exists("feature_flag_service", $context) ? $context["feature_flag_service"] : (function () { throw new RuntimeError('Variable "feature_flag_service" does not exist.', 17, $this->source); })()), "featureEnabledForRequest", [Twig\Extension\CoreExtension::constant("App\\Service\\FeatureFlagService::FEATURE_REGISTER_VIA_GOOGLE_IDENTITY"), 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.', 17, $this->source); })()), "request", [], "any", false, false, false, 17)], "method", false, false, false, 17)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  91. // line 18
  92. yield " ";
  93. // line 19
  94. yield " <script src=\"https://accounts.google.com/gsi/client\" async defer></script>
  95. ";
  96. }
  97. // line 21
  98. yield "
  99. ";
  100. // line 22
  101. $context["resultPage"] = false;
  102. // line 23
  103. yield " <div class=\"jtw-form-card\">";
  104. yield Twig\Extension\CoreExtension::include($this->env, $context, "/recurrent_jobs_search/_includes/form.html.twig");
  105. yield "</div>
  106. ";
  107. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  108. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  109. yield from [];
  110. }
  111. // line 27
  112. /**
  113. * @return iterable<null|scalar|\Stringable>
  114. */
  115. public function block_javascripts(array $context, array $blocks = []): iterable
  116. {
  117. $macros = $this->macros;
  118. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  119. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
  120. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  121. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
  122. // line 28
  123. yield " ";
  124. yield Twig\Extension\CoreExtension::include($this->env, $context, "/recurrent_jobs_search/_includes/form_javascript.html.twig");
  125. yield "
  126. ";
  127. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  128. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  129. yield from [];
  130. }
  131. /**
  132. * @codeCoverageIgnore
  133. */
  134. public function getTemplateName(): string
  135. {
  136. return "/recurrent_jobs_search/form.html.twig";
  137. }
  138. /**
  139. * @codeCoverageIgnore
  140. */
  141. public function isTraitable(): bool
  142. {
  143. return false;
  144. }
  145. /**
  146. * @codeCoverageIgnore
  147. */
  148. public function getDebugInfo(): array
  149. {
  150. return array ( 147 => 28, 134 => 27, 119 => 23, 117 => 22, 114 => 21, 110 => 19, 108 => 18, 106 => 17, 103 => 16, 100 => 15, 92 => 10, 87 => 7, 85 => 6, 82 => 5, 80 => 4, 77 => 3, 64 => 2, 41 => 1,);
  151. }
  152. public function getSourceContext(): Source
  153. {
  154. return new Source("{% extends '/base.html.twig' %}
  155. {% block main_content %}
  156. {% if not app.user %}
  157. {% if feature_flag_service.featureEnabledForRequest(constant('App\\\\Service\\\\FeatureFlagService::FEATURE_REGISTER_VIA_GOOGLE_IDENTITY'), app.request) %}
  158. {# Google Identity - GSI - One Tap widget DOM element #}
  159. <div id=\"g_id_onload\"
  160. data-client_id=\"788335927892-ttc3saqioltf5ng0plia8l3635mp3lbr.apps.googleusercontent.com\"
  161. data-context=\"signin\"
  162. data-login_uri=\"{{ url('returnurls.google.identity.gsi.jobseeker')|replace({'http': 'https'}) }}\"
  163. data-close_on_tap_outside=\"true\"
  164. >
  165. </div>
  166. {% endif %}
  167. {% endif %}
  168. {% if feature_flag_service.featureEnabledForRequest(constant('App\\\\Service\\\\FeatureFlagService::FEATURE_REGISTER_VIA_GOOGLE_IDENTITY'), app.request) %}
  169. {# Google Identity - GSI - One Tap widget client-side code #}
  170. <script src=\"https://accounts.google.com/gsi/client\" async defer></script>
  171. {% endif %}
  172. {% set resultPage = false %}
  173. <div class=\"jtw-form-card\">{{ include('/recurrent_jobs_search/_includes/form.html.twig') }}</div>
  174. {% endblock %}
  175. {% block javascripts %}
  176. {{ include('/recurrent_jobs_search/_includes/form_javascript.html.twig') }}
  177. {% endblock %}
  178. ", "/recurrent_jobs_search/form.html.twig", "/workspace/backend-app/templates/recurrent_jobs_search/form.html.twig");
  179. }
  180. }