var/cache/dev/twig/0a/0ad8066fe1185f7bb6393947312bf7a9.php line 40

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* @SyliusShop/login.html.twig */
  14. class __TwigTemplate_9186cc626477175e41a86bd70591fe16 extends \Twig\Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'title' => [$this'block_title'],
  24.             'content' => [$this'block_content'],
  25.             'javascripts' => [$this'block_javascripts'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 1
  31.         return "@SyliusShop/layout.html.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SyliusShop/login.html.twig"));
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SyliusShop/login.html.twig"));
  40.         // line 3
  41.         $this->env->getRuntime("Symfony\\Component\\Form\\FormRenderer")->setTheme((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'3$this->source); })()), [=> "@SyliusShop/Form/theme.html.twig"], true);
  42.         // line 1
  43.         $this->parent $this->loadTemplate("@SyliusShop/layout.html.twig""@SyliusShop/login.html.twig"1);
  44.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  45.         
  46.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  47.         
  48.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  49.     }
  50.     // line 5
  51.     public function block_title($context, array $blocks = [])
  52.     {
  53.         $macros $this->macros;
  54.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  55.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  56.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  57.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  58.         // line 6
  59.         echo "\t";
  60.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.customer_login"), "html"nulltrue);
  61.         echo "
  62. \t|
  63. \t";
  64.         // line 8
  65.         $this->displayParentBlock("title"$context$blocks);
  66.         echo "
  67. ";
  68.         
  69.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  70.         
  71.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  72.     }
  73.     // line 11
  74.     public function block_content($context, array $blocks = [])
  75.     {
  76.         $macros $this->macros;
  77.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  78.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  79.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  80.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  81.         // line 12
  82.         echo "\t<div class=\"login-page-container\">
  83. \t\t";
  84.         // line 14
  85.         echo "\t\t<div id=\"ai-search-limit-message\" style=\"display: none; margin-bottom: 2rem;\">
  86. \t\t\t";
  87.         // line 15
  88.         $this->loadTemplate("Context/Shop/AISearch/_rate_limit_error.html.twig""@SyliusShop/login.html.twig"15)->display($context);
  89.         // line 16
  90.         echo "\t\t</div>
  91. \t\t<div class=\"ui container\">
  92. \t\t\t<div class=\"ui padded segment login-page-content\">
  93. \t\t\t\t<div
  94. \t\t\t\t\tid=\"login-wizard\" class=\"login-form-wrapper\">
  95. \t\t\t\t\t";
  96.         // line 22
  97.         echo "\t\t\t\t\t<div class=\"step-login\">
  98. \t\t\t\t\t\t<h1 class=\"ui header center aligned\">
  99. \t\t\t\t\t\t\t<div class=\"content\">
  100. \t\t\t\t\t\t\t\t";
  101.         // line 25
  102.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.registered_users"), "html"nulltrue);
  103.         echo "
  104. \t\t\t\t\t\t\t</div>
  105. \t\t\t\t\t\t</h1>
  106. \t\t\t\t\t\t<div class=\"form-container\">
  107. \t\t\t\t\t\t\t";
  108.         // line 30
  109.         $this->loadTemplate("@SyliusShop/Login/_login.html.twig""@SyliusShop/login.html.twig"30)->display($context);
  110.         // line 31
  111.         echo "\t\t\t\t\t\t</div>
  112. \t\t\t\t\t\t<div class=\"login-navigation\">
  113. \t\t\t\t\t\t\t<div class=\"ui horizontal divider\">";
  114.         // line 34
  115.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.account.store_page.or"), "html"nulltrue);
  116.         echo "</div>
  117. \t\t\t\t\t\t\t<div class=\"text-center\">
  118. \t\t\t\t\t\t\t\t<a href=\"#\" id=\"no-account-link\">
  119. \t\t\t\t\t\t\t\t\t<i class=\"signup icon\" style=\"height: auto;\"></i>
  120. \t\t\t\t\t\t\t\t\t";
  121.         // line 38
  122.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.no_account"), "html"nulltrue);
  123.         echo "
  124. \t\t\t\t\t\t\t\t</a>
  125. \t\t\t\t\t\t\t</div>
  126. \t\t\t\t\t\t</div>
  127. \t\t\t\t\t</div>
  128. \t\t\t\t\t";
  129.         // line 45
  130.         echo "\t\t\t\t\t<div class=\"step-search\">
  131. \t\t\t\t\t\t<div
  132. \t\t\t\t\t\t\tclass=\"content\">
  133. \t\t\t\t\t\t\t";
  134.         // line 49
  135.         echo "\t\t\t\t\t\t\t<div class=\"sub header\">";
  136.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.login.company_lookup_subtitle"), "html"nulltrue);
  137.         echo "</div>
  138. \t\t\t\t\t\t</div>
  139. \t\t\t\t\t\t<div class=\"company-search-container\">
  140. \t\t\t\t\t\t\t<div class=\"ui input\">
  141. \t\t\t\t\t\t\t<input type=\"text\" id=\"company-search-input\"
  142. \t\t\t\t\t\t\t\tplaceholder=\"";
  143.         // line 55
  144.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.login.search_company_placeholder"), "html"nulltrue);
  145.         echo "\"
  146. \t\t\t\t\t\t\t\tautocomplete=\"off\"
  147. \t\t\t\t\t\t\t\tdata-show-not-listed=\"true\"
  148. \t\t\t\t\t\t\t\tdata-autocomplete-not-listed=\"";
  149.         // line 58
  150.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.organization_autocomplete.not_listed"), "html"nulltrue);
  151.         echo "\"
  152. \t\t\t\t\t\t\t\tdata-autocomplete-searching=\"";
  153.         // line 59
  154.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.organization_autocomplete.searching"), "html"nulltrue);
  155.         echo "\"
  156. \t\t\t\t\t\t\t\tdata-autocomplete-error=\"";
  157.         // line 60
  158.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.organization_autocomplete.error"), "html"nulltrue);
  159.         echo "\"
  160. \t\t\t\t\t\t\t\tdata-redirect-pattern=\"";
  161.         // line 61
  162.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_shop_business_development_vendors");
  163.         echo "\"
  164. \t\t\t\t\t\t\t\tdata-join-or-claim-pattern=\"";
  165.         // line 62
  166.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("bitbag_organization_shop_user_request_join_or_claim", ["uuid" => "__ORG_UUID__"]);
  167.         echo "\"
  168. \t\t\t\t\t\t\t\t>
  169. \t\t\t\t\t\t\t</div>
  170. \t\t\t\t\t\t</div>
  171. \t\t\t\t\t</div>
  172. \t\t\t\t\t";
  173.         // line 69
  174.         echo "\t\t\t\t\t<div class=\"step-register\">
  175. \t\t\t\t\t\t<div class=\"sub header\">
  176. \t\t\t\t\t\t\t";
  177.         // line 71
  178.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.login.main_interest_title"), "html"nulltrue);
  179.         echo "
  180. \t\t\t\t\t\t</div>
  181. \t\t\t\t\t\t<div class=\"register-options\">
  182. \t\t\t\t\t\t\t<a href=\"";
  183.         // line 75
  184.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_shop_business_development_buyers");
  185.         echo "#bd-register-form\" class=\"register-option\">
  186. \t\t\t\t\t\t\t\t<img class=\"icon icon-black\" src=\"";
  187.         // line 76
  188.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/shop/images/shopping_cart.svg""shop"), "html"nulltrue);
  189.         echo "\" alt=\"Shopping cart\">
  190. \t\t\t\t\t\t\t\t<span>";
  191.         // line 77
  192.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.login.search_buy_products"), "html"nulltrue);
  193.         echo "</span>
  194. \t\t\t\t\t\t\t</a>
  195. \t\t\t\t\t\t\t<a href=\"";
  196.         // line 80
  197.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_shop_business_development_vendors");
  198.         echo "#bd-register-form\" class=\"register-option\">
  199. \t\t\t\t\t\t\t\t<img class=\"icon\" src=\"";
  200.         // line 81
  201.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/shop/images/storefront.svg""shop"), "html"nulltrue);
  202.         echo "\" alt=\"Storefront\">
  203. \t\t\t\t\t\t\t\t<span>";
  204.         // line 82
  205.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.login.present_sell_products"), "html"nulltrue);
  206.         echo "</span>
  207. \t\t\t\t\t\t\t</a>
  208. \t\t\t\t\t\t</div>
  209. \t\t\t\t\t</div>
  210. \t\t\t\t</div>
  211. \t\t\t</div>
  212. \t\t</div>
  213. \t</div>
  214. ";
  215.         
  216.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  217.         
  218.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  219.     }
  220.     // line 92
  221.     public function block_javascripts($context, array $blocks = [])
  222.     {
  223.         $macros $this->macros;
  224.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  225.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  226.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  227.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  228.         // line 93
  229.         echo "\t";
  230.         $this->displayParentBlock("javascripts"$context$blocks);
  231.         echo "
  232. \t<script>
  233. \t\t// Check if user was redirected from AI search due to rate limit
  234. \t\tdocument.addEventListener('DOMContentLoaded', function() {
  235. \t\t\tconst aiSearchLimitReached = sessionStorage.getItem('ai_search_limit_reached');
  236. \t\t\tif (aiSearchLimitReached === 'true') {
  237. \t\t\t\t// Show the message by changing display style
  238. \t\t\t\tconst messageElement = document.getElementById('ai-search-limit-message');
  239. \t\t\t\tif (messageElement) {
  240. \t\t\t\t\tmessageElement.style.display = 'block';
  241. \t\t\t\t\t// Scroll to message
  242. \t\t\t\t\tmessageElement.scrollIntoView({ behavior: 'smooth', block: 'center' });
  243. \t\t\t\t}
  244. \t\t\t\t// Clear the flag
  245. \t\t\t\tsessionStorage.removeItem('ai_search_limit_reached');
  246. \t\t\t}
  247. \t\t});
  248. \t</script>
  249. ";
  250.         
  251.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  252.         
  253.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  254.     }
  255.     public function getTemplateName()
  256.     {
  257.         return "@SyliusShop/login.html.twig";
  258.     }
  259.     public function isTraitable()
  260.     {
  261.         return false;
  262.     }
  263.     public function getDebugInfo()
  264.     {
  265.         return array (  260 => 93,  250 => 92,  231 => 82,  227 => 81,  223 => 80,  217 => 77,  213 => 76,  209 => 75,  202 => 71,  198 => 69,  189 => 62,  185 => 61,  181 => 60,  177 => 59,  173 => 58,  167 => 55,  157 => 49,  152 => 45,  143 => 38,  136 => 34,  131 => 31,  129 => 30,  121 => 25,  116 => 22,  109 => 16,  107 => 15,  104 => 14,  101 => 12,  91 => 11,  79 => 8,  73 => 6,  63 => 5,  52 => 1,  50 => 3,  37 => 1,);
  266.     }
  267.     public function getSourceContext()
  268.     {
  269.         return new Source("{% extends '@SyliusShop/layout.html.twig' %}
  270. {% form_theme form '@SyliusShop/Form/theme.html.twig' %}
  271. {% block title %}
  272. \t{{ 'sylius.ui.customer_login'|trans }}
  273. \t|
  274. \t{{ parent() }}
  275. {% endblock %}
  276. {% block content %}
  277. \t<div class=\"login-page-container\">
  278. \t\t{# AI Search Limit Message - reuse existing template #}
  279. \t\t<div id=\"ai-search-limit-message\" style=\"display: none; margin-bottom: 2rem;\">
  280. \t\t\t{% include 'Context/Shop/AISearch/_rate_limit_error.html.twig' %}
  281. \t\t</div>
  282. \t\t<div class=\"ui container\">
  283. \t\t\t<div class=\"ui padded segment login-page-content\">
  284. \t\t\t\t<div
  285. \t\t\t\t\tid=\"login-wizard\" class=\"login-form-wrapper\">
  286. \t\t\t\t\t{# Step 1: Login Form #}
  287. \t\t\t\t\t<div class=\"step-login\">
  288. \t\t\t\t\t\t<h1 class=\"ui header center aligned\">
  289. \t\t\t\t\t\t\t<div class=\"content\">
  290. \t\t\t\t\t\t\t\t{{ 'app.ui.registered_users'|trans }}
  291. \t\t\t\t\t\t\t</div>
  292. \t\t\t\t\t\t</h1>
  293. \t\t\t\t\t\t<div class=\"form-container\">
  294. \t\t\t\t\t\t\t{% include '@SyliusShop/Login/_login.html.twig' %}
  295. \t\t\t\t\t\t</div>
  296. \t\t\t\t\t\t<div class=\"login-navigation\">
  297. \t\t\t\t\t\t\t<div class=\"ui horizontal divider\">{{ 'app.ui.account.store_page.or'|trans }}</div>
  298. \t\t\t\t\t\t\t<div class=\"text-center\">
  299. \t\t\t\t\t\t\t\t<a href=\"#\" id=\"no-account-link\">
  300. \t\t\t\t\t\t\t\t\t<i class=\"signup icon\" style=\"height: auto;\"></i>
  301. \t\t\t\t\t\t\t\t\t{{ 'app.ui.no_account'|trans }}
  302. \t\t\t\t\t\t\t\t</a>
  303. \t\t\t\t\t\t\t</div>
  304. \t\t\t\t\t\t</div>
  305. \t\t\t\t\t</div>
  306. \t\t\t\t\t{# Step 2: Company Search #}
  307. \t\t\t\t\t<div class=\"step-search\">
  308. \t\t\t\t\t\t<div
  309. \t\t\t\t\t\t\tclass=\"content\">
  310. \t\t\t\t\t\t\t{# {{ 'app.ui.login.company_lookup_title'|trans }} #}
  311. \t\t\t\t\t\t\t<div class=\"sub header\">{{ 'app.ui.login.company_lookup_subtitle'|trans }}</div>
  312. \t\t\t\t\t\t</div>
  313. \t\t\t\t\t\t<div class=\"company-search-container\">
  314. \t\t\t\t\t\t\t<div class=\"ui input\">
  315. \t\t\t\t\t\t\t<input type=\"text\" id=\"company-search-input\"
  316. \t\t\t\t\t\t\t\tplaceholder=\"{{ 'app.ui.login.search_company_placeholder'|trans }}\"
  317. \t\t\t\t\t\t\t\tautocomplete=\"off\"
  318. \t\t\t\t\t\t\t\tdata-show-not-listed=\"true\"
  319. \t\t\t\t\t\t\t\tdata-autocomplete-not-listed=\"{{ 'app.ui.organization_autocomplete.not_listed'|trans }}\"
  320. \t\t\t\t\t\t\t\tdata-autocomplete-searching=\"{{ 'app.ui.organization_autocomplete.searching'|trans }}\"
  321. \t\t\t\t\t\t\t\tdata-autocomplete-error=\"{{ 'app.ui.organization_autocomplete.error'|trans }}\"
  322. \t\t\t\t\t\t\t\tdata-redirect-pattern=\"{{ path('app_shop_business_development_vendors') }}\"
  323. \t\t\t\t\t\t\t\tdata-join-or-claim-pattern=\"{{ url('bitbag_organization_shop_user_request_join_or_claim', {'uuid': '__ORG_UUID__'}) }}\"
  324. \t\t\t\t\t\t\t\t>
  325. \t\t\t\t\t\t\t</div>
  326. \t\t\t\t\t\t</div>
  327. \t\t\t\t\t</div>
  328. \t\t\t\t\t{# Step 3: Registration Options #}
  329. \t\t\t\t\t<div class=\"step-register\">
  330. \t\t\t\t\t\t<div class=\"sub header\">
  331. \t\t\t\t\t\t\t{{ 'app.ui.login.main_interest_title'|trans }}
  332. \t\t\t\t\t\t</div>
  333. \t\t\t\t\t\t<div class=\"register-options\">
  334. \t\t\t\t\t\t\t<a href=\"{{ path('app_shop_business_development_buyers') }}#bd-register-form\" class=\"register-option\">
  335. \t\t\t\t\t\t\t\t<img class=\"icon icon-black\" src=\"{{ asset('build/shop/images/shopping_cart.svg', 'shop') }}\" alt=\"Shopping cart\">
  336. \t\t\t\t\t\t\t\t<span>{{ 'app.ui.login.search_buy_products'|trans }}</span>
  337. \t\t\t\t\t\t\t</a>
  338. \t\t\t\t\t\t\t<a href=\"{{ path('app_shop_business_development_vendors') }}#bd-register-form\" class=\"register-option\">
  339. \t\t\t\t\t\t\t\t<img class=\"icon\" src=\"{{ asset('build/shop/images/storefront.svg', 'shop') }}\" alt=\"Storefront\">
  340. \t\t\t\t\t\t\t\t<span>{{ 'app.ui.login.present_sell_products'|trans }}</span>
  341. \t\t\t\t\t\t\t</a>
  342. \t\t\t\t\t\t</div>
  343. \t\t\t\t\t</div>
  344. \t\t\t\t</div>
  345. \t\t\t</div>
  346. \t\t</div>
  347. \t</div>
  348. {% endblock %}
  349. {% block javascripts %}
  350. \t{{ parent() }}
  351. \t<script>
  352. \t\t// Check if user was redirected from AI search due to rate limit
  353. \t\tdocument.addEventListener('DOMContentLoaded', function() {
  354. \t\t\tconst aiSearchLimitReached = sessionStorage.getItem('ai_search_limit_reached');
  355. \t\t\tif (aiSearchLimitReached === 'true') {
  356. \t\t\t\t// Show the message by changing display style
  357. \t\t\t\tconst messageElement = document.getElementById('ai-search-limit-message');
  358. \t\t\t\tif (messageElement) {
  359. \t\t\t\t\tmessageElement.style.display = 'block';
  360. \t\t\t\t\t// Scroll to message
  361. \t\t\t\t\tmessageElement.scrollIntoView({ behavior: 'smooth', block: 'center' });
  362. \t\t\t\t}
  363. \t\t\t\t// Clear the flag
  364. \t\t\t\tsessionStorage.removeItem('ai_search_limit_reached');
  365. \t\t\t}
  366. \t\t});
  367. \t</script>
  368. {% endblock %}
  369. ""@SyliusShop/login.html.twig""/srv/open_marketplace/templates/bundles/SyliusShopBundle/login.html.twig");
  370.     }
  371. }