var/cache/dev/twig/29/2980f7376f6a429e54ec9dd3e3f586753e47b5679ec986795ebcaf23cd63264a.php line 38

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. /* __string_template__b007d99c5a06f3a55fe3398e26a2d94fe2fca0c3d6f1ce26a736d74aace3f580 */
  14. class __TwigTemplate_62ca7fa2e1f861d66d0566caf808832a394b433cb34cb89784386885272d1694 extends \Eccube\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.             'main' => [$this'block_main'],
  24.         ];
  25.     }
  26.     protected function doGetParent(array $context)
  27.     {
  28.         // line 11
  29.         return "default_frame.twig";
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = [])
  32.     {
  33.         $macros $this->macros;
  34.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""__string_template__b007d99c5a06f3a55fe3398e26a2d94fe2fca0c3d6f1ce26a736d74aace3f580"));
  36.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""__string_template__b007d99c5a06f3a55fe3398e26a2d94fe2fca0c3d6f1ce26a736d74aace3f580"));
  38.         // line 13
  39.         $context["body_class"] = "cart_page cart";
  40.         // line 11
  41.         $this->parent $this->loadTemplate("default_frame.twig""__string_template__b007d99c5a06f3a55fe3398e26a2d94fe2fca0c3d6f1ce26a736d74aace3f580"11);
  42.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  43.         
  44.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  45.         
  46.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  47.     }
  48.     // line 15
  49.     public function block_main($context, array $blocks = [])
  50.     {
  51.         $macros $this->macros;
  52.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  53.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  54.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  55.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  56.         // line 16
  57.         echo "
  58.     <div class=\"ec-role\">
  59.         <div class=\"ec-pageHeader\">
  60.             <h1>";
  61.         // line 19
  62.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ショッピングカート"), "html"nulltrue);
  63.         echo "</h1>
  64.         </div>
  65.     </div>
  66.     <div class=\"ec-cartRole\">
  67.         <div class=\"ec-cartRole__progress\">
  68.             <ul class=\"ec-progress\">
  69.                 ";
  70.         // line 26
  71.         $context["step"] = 1;
  72.         // line 27
  73.         echo "                <li class=\"ec-progress__item is-complete\">
  74.                     <div class=\"ec-progress__number\">";
  75.         // line 28
  76.         echo twig_escape_filter($this->env, (isset($context["step"]) || array_key_exists("step"$context) ? $context["step"] : (function () { throw new RuntimeError('Variable "step" does not exist.'28$this->source); })()), "html"nulltrue);
  77.         $context["step"] = ((isset($context["step"]) || array_key_exists("step"$context) ? $context["step"] : (function () { throw new RuntimeError('Variable "step" does not exist.'28$this->source); })()) + 1);
  78.         // line 29
  79.         echo "                    </div>
  80.                     <div class=\"ec-progress__label\">";
  81.         // line 30
  82.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートの商品"), "html"nulltrue);
  83.         echo "
  84.                     </div>
  85.                 </li>
  86.                 ";
  87.         // line 33
  88.         if (($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_USER") == false)) {
  89.             // line 34
  90.             echo "                    <li class=\"ec-progress__item\">
  91.                         <div class=\"ec-progress__number\">";
  92.             // line 35
  93.             echo twig_escape_filter($this->env, (isset($context["step"]) || array_key_exists("step"$context) ? $context["step"] : (function () { throw new RuntimeError('Variable "step" does not exist.'35$this->source); })()), "html"nulltrue);
  94.             $context["step"] = ((isset($context["step"]) || array_key_exists("step"$context) ? $context["step"] : (function () { throw new RuntimeError('Variable "step" does not exist.'35$this->source); })()) + 1);
  95.             // line 36
  96.             echo "                        </div>
  97.                         <div class=\"ec-progress__label\">";
  98.             // line 37
  99.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お客様情報"), "html"nulltrue);
  100.             echo "
  101.                         </div>
  102.                     </li>
  103.                 ";
  104.         }
  105.         // line 41
  106.         echo "                <li class=\"ec-progress__item\">
  107.                     <div class=\"ec-progress__number\">";
  108.         // line 42
  109.         echo twig_escape_filter($this->env, (isset($context["step"]) || array_key_exists("step"$context) ? $context["step"] : (function () { throw new RuntimeError('Variable "step" does not exist.'42$this->source); })()), "html"nulltrue);
  110.         $context["step"] = ((isset($context["step"]) || array_key_exists("step"$context) ? $context["step"] : (function () { throw new RuntimeError('Variable "step" does not exist.'42$this->source); })()) + 1);
  111.         // line 43
  112.         echo "                    </div>
  113.                     <div class=\"ec-progress__label\">";
  114.         // line 44
  115.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ご注文手続き"), "html"nulltrue);
  116.         echo "
  117.                     </div>
  118.                 </li>
  119.                 <li class=\"ec-progress__item\">
  120.                     <div class=\"ec-progress__number\">";
  121.         // line 48
  122.         echo twig_escape_filter($this->env, (isset($context["step"]) || array_key_exists("step"$context) ? $context["step"] : (function () { throw new RuntimeError('Variable "step" does not exist.'48$this->source); })()), "html"nulltrue);
  123.         $context["step"] = ((isset($context["step"]) || array_key_exists("step"$context) ? $context["step"] : (function () { throw new RuntimeError('Variable "step" does not exist.'48$this->source); })()) + 1);
  124.         // line 49
  125.         echo "                    </div>
  126.                     <div class=\"ec-progress__label\">";
  127.         // line 50
  128.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ご注文内容確認"), "html"nulltrue);
  129.         echo "
  130.                     </div>
  131.                 </li>
  132.                 <li class=\"ec-progress__item\">
  133.                     <div class=\"ec-progress__number\">";
  134.         // line 54
  135.         echo twig_escape_filter($this->env, (isset($context["step"]) || array_key_exists("step"$context) ? $context["step"] : (function () { throw new RuntimeError('Variable "step" does not exist.'54$this->source); })()), "html"nulltrue);
  136.         $context["step"] = ((isset($context["step"]) || array_key_exists("step"$context) ? $context["step"] : (function () { throw new RuntimeError('Variable "step" does not exist.'54$this->source); })()) + 1);
  137.         // line 55
  138.         echo "                    </div>
  139.                     <div class=\"ec-progress__label\">";
  140.         // line 56
  141.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("完了"), "html"nulltrue);
  142.         echo "
  143.                     </div>
  144.                 </li>
  145.             </ul>
  146.         </div>
  147.         ";
  148.         // line 61
  149.         $context["productStr"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'61$this->source); })()), "session", [], "any"falsefalsefalse61), "flashbag", [], "any"falsefalsefalse61), "get", [=> "eccube.front.request.product"], "method"falsefalsefalse61);
  150.         // line 62
  151.         echo "        ";
  152.         $context['_parent'] = $context;
  153.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'62$this->source); })()), "session", [], "any"falsefalsefalse62), "flashbag", [], "any"falsefalsefalse62), "get", [=> "eccube.front.request.error"], "method"falsefalsefalse62));
  154.         $context['loop'] = [
  155.           'parent' => $context['_parent'],
  156.           'index0' => 0,
  157.           'index'  => 1,
  158.           'first'  => true,
  159.         ];
  160.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  161.             $length count($context['_seq']);
  162.             $context['loop']['revindex0'] = $length 1;
  163.             $context['loop']['revindex'] = $length;
  164.             $context['loop']['length'] = $length;
  165.             $context['loop']['last'] = === $length;
  166.         }
  167.         foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
  168.             // line 63
  169.             echo "            ";
  170.             $context["idx"] = twig_get_attribute($this->env$this->source$context["loop"], "index0", [], "any"falsefalsefalse63);
  171.             // line 64
  172.             echo "            <div class=\"ec-cartRole__error\">
  173.                 <div class=\"ec-alert-warning\">
  174.                     <div class=\"ec-alert-warning__icon\"><img src=\"";
  175.             // line 66
  176.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/exclamation-white.svg"), "html"nulltrue);
  177.             echo "\"></div>
  178.                     <div class=\"ec-alert-warning__text\">
  179.                         ";
  180.             // line 68
  181.             if (twig_get_attribute($this->env$this->source, ($context["productStr"] ?? null), (isset($context["idx"]) || array_key_exists("idx"$context) ? $context["idx"] : (function () { throw new RuntimeError('Variable "idx" does not exist.'68$this->source); })()), [], "array"truetruefalse68)) {
  182.                 // line 69
  183.                 echo "                            ";
  184.                 echo twig_nl2br(twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($context["error"], ["%product%" => twig_get_attribute($this->env$this->source, (isset($context["productStr"]) || array_key_exists("productStr"$context) ? $context["productStr"] : (function () { throw new RuntimeError('Variable "productStr" does not exist.'69$this->source); })()), (isset($context["idx"]) || array_key_exists("idx"$context) ? $context["idx"] : (function () { throw new RuntimeError('Variable "idx" does not exist.'69$this->source); })()), [], "array"falsefalsefalse69)]), "html"nulltrue));
  185.                 echo "
  186.                         ";
  187.             } else {
  188.                 // line 71
  189.                 echo "                            ";
  190.                 echo twig_nl2br(twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($context["error"]), "html"nulltrue));
  191.                 echo "
  192.                         ";
  193.             }
  194.             // line 73
  195.             echo "                    </div>
  196.                 </div>
  197.             </div>
  198.         ";
  199.             ++$context['loop']['index0'];
  200.             ++$context['loop']['index'];
  201.             $context['loop']['first'] = false;
  202.             if (isset($context['loop']['length'])) {
  203.                 --$context['loop']['revindex0'];
  204.                 --$context['loop']['revindex'];
  205.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  206.             }
  207.         }
  208.         $_parent $context['_parent'];
  209.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
  210.         $context array_intersect_key($context$_parent) + $_parent;
  211.         // line 77
  212.         echo "        ";
  213.         $context['_parent'] = $context;
  214.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'77$this->source); })()), "session", [], "any"falsefalsefalse77), "flashbag", [], "any"falsefalsefalse77), "get", [=> "eccube.front.cart.error"], "method"falsefalsefalse77));
  215.         foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
  216.             // line 78
  217.             echo "            <div class=\"ec-cartRole__error\">
  218.                 <div class=\"ec-alert-warning\">
  219.                     <div class=\"ec-alert-warning__icon\"><img src=\"";
  220.             // line 80
  221.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/exclamation-white.svg"), "html"nulltrue);
  222.             echo "\"></div>
  223.                     <div class=\"ec-alert-warning__text\">
  224.                         ";
  225.             // line 82
  226.             echo twig_nl2br(twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($context["error"]), "html"nulltrue));
  227.             echo "
  228.                     </div>
  229.                 </div>
  230.             </div>
  231.         ";
  232.         }
  233.         $_parent $context['_parent'];
  234.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
  235.         $context array_intersect_key($context$_parent) + $_parent;
  236.         // line 87
  237.         echo "        ";
  238.         if (((isset($context["totalQuantity"]) || array_key_exists("totalQuantity"$context) ? $context["totalQuantity"] : (function () { throw new RuntimeError('Variable "totalQuantity" does not exist.'87$this->source); })()) > 0)) {
  239.             // line 88
  240.             echo "            <div class=\"ec-cartRole__totalText\">
  241.                 <p>
  242.                     ";
  243.             // line 90
  244.             echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("商品の合計金額は「<strong>%price%</strong>」です。", ["%price%" => $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter((isset($context["totalPrice"]) || array_key_exists("totalPrice"$context) ? $context["totalPrice"] : (function () { throw new RuntimeError('Variable "totalPrice" does not exist.'90$this->source); })()))]);
  245.             echo "
  246.                 </p>
  247.             </div>
  248.             ";
  249.             // line 93
  250.             if ((twig_length_filter($this->env, (isset($context["Carts"]) || array_key_exists("Carts"$context) ? $context["Carts"] : (function () { throw new RuntimeError('Variable "Carts" does not exist.'93$this->source); })())) > 1)) {
  251.                 // line 94
  252.                 echo "                <div class=\"ec-cartRole__error\">
  253.                     <div class=\"ec-alert-warning\">
  254.                         <div class=\"ec-alert-warning__text\">
  255.                             ";
  256.                 // line 97
  257.                 echo twig_nl2br(twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("同時購入できない商品がカートに含まれています。"), "html"nulltrue));
  258.                 echo "
  259.                         </div>
  260.                     </div>
  261.                 </div>
  262.             ";
  263.             }
  264.             // line 102
  265.             echo "
  266.             <form name=\"form\" id=\"form_cart\" class=\"ec-cartRole\" method=\"post\" action=\"";
  267.             // line 103
  268.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cart");
  269.             echo "\">
  270.                 ";
  271.             // line 105
  272.             $context['_parent'] = $context;
  273.             $context['_seq'] = twig_ensure_traversable((isset($context["Carts"]) || array_key_exists("Carts"$context) ? $context["Carts"] : (function () { throw new RuntimeError('Variable "Carts" does not exist.'105$this->source); })()));
  274.             $context['loop'] = [
  275.               'parent' => $context['_parent'],
  276.               'index0' => 0,
  277.               'index'  => 1,
  278.               'first'  => true,
  279.             ];
  280.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  281.                 $length count($context['_seq']);
  282.                 $context['loop']['revindex0'] = $length 1;
  283.                 $context['loop']['revindex'] = $length;
  284.                 $context['loop']['length'] = $length;
  285.                 $context['loop']['last'] = === $length;
  286.             }
  287.             foreach ($context['_seq'] as $context["CartIndex"] => $context["Cart"]) {
  288.                 // line 106
  289.                 echo "                    ";
  290.                 $context["cartKey"] = twig_get_attribute($this->env$this->source$context["Cart"], "cart_key", [], "any"falsefalsefalse106);
  291.                 // line 107
  292.                 echo "                    ";
  293.                 $context['_parent'] = $context;
  294.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'107$this->source); })()), "session", [], "any"falsefalsefalse107), "flashbag", [], "any"falsefalsefalse107), "get", [=> (("eccube.front.cart." . (isset($context["cartKey"]) || array_key_exists("cartKey"$context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.'107$this->source); })())) . ".request.error")], "method"falsefalsefalse107));
  295.                 foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
  296.                     // line 108
  297.                     echo "                        <div class=\"ec-cartRole__error\">
  298.                             <div class=\"ec-alert-warning\">
  299.                                 <div class=\"ec-alert-warning__icon\"><img src=\"";
  300.                     // line 110
  301.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/exclamation-white.svg"), "html"nulltrue);
  302.                     echo "\"></div>
  303.                                 <div class=\"ec-alert-warning__text\">
  304.                                     ";
  305.                     // line 112
  306.                     echo twig_nl2br(twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($context["error"]), "html"nulltrue));
  307.                     echo "
  308.                                 </div>
  309.                             </div>
  310.                         </div>
  311.                     ";
  312.                 }
  313.                 $_parent $context['_parent'];
  314.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
  315.                 $context array_intersect_key($context$_parent) + $_parent;
  316.                 // line 117
  317.                 echo "
  318.                     <div class=\"ec-cartRole__cart\">
  319.                         <div class=\"ec-cartTable\">
  320.                             <ol class=\"ec-cartHeader\">
  321.                                 <li class=\"ec-cartHeader__label\">";
  322.                 // line 121
  323.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("削除"), "html"nulltrue);
  324.                 echo "</li>
  325.                                 <li class=\"ec-cartHeader__label\">";
  326.                 // line 122
  327.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("商品内容"), "html"nulltrue);
  328.                 echo "</li>
  329.                                 <li class=\"ec-cartHeader__label\">";
  330.                 // line 123
  331.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("数量"), "html"nulltrue);
  332.                 echo "</li>
  333.                                 <li class=\"ec-cartHeader__label\">";
  334.                 // line 124
  335.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("小計"), "html"nulltrue);
  336.                 echo "</li>
  337.                             </ol>
  338.                             ";
  339.                 // line 126
  340.                 $context['_parent'] = $context;
  341.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["Cart"], "CartItems", [], "any"falsefalsefalse126));
  342.                 $context['loop'] = [
  343.                   'parent' => $context['_parent'],
  344.                   'index0' => 0,
  345.                   'index'  => 1,
  346.                   'first'  => true,
  347.                 ];
  348.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  349.                     $length count($context['_seq']);
  350.                     $context['loop']['revindex0'] = $length 1;
  351.                     $context['loop']['revindex'] = $length;
  352.                     $context['loop']['length'] = $length;
  353.                     $context['loop']['last'] = === $length;
  354.                 }
  355.                 foreach ($context['_seq'] as $context["_key"] => $context["CartItem"]) {
  356.                     // line 127
  357.                     echo "                                ";
  358.                     $context["ProductClass"] = twig_get_attribute($this->env$this->source$context["CartItem"], "ProductClass", [], "any"falsefalsefalse127);
  359.                     // line 128
  360.                     echo "                                ";
  361.                     $context["Product"] = twig_get_attribute($this->env$this->source, (isset($context["ProductClass"]) || array_key_exists("ProductClass"$context) ? $context["ProductClass"] : (function () { throw new RuntimeError('Variable "ProductClass" does not exist.'128$this->source); })()), "Product", [], "any"falsefalsefalse128);
  362.                     // line 129
  363.                     echo "                                <ul class=\"ec-cartRow\">
  364.                                     <li class=\"ec-cartRow__delColumn\">
  365.                                         <a href=\"";
  366.                     // line 131
  367.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("productoption_cart_handle_item", ["operation" => "remove""cartItemId" => twig_get_attribute($this->env$this->source$context["CartItem"], "id", [], "any"falsefalsefalse131)]), "html"nulltrue);
  368.                     echo "\" ";
  369.                     echo $this->extensions['Eccube\Twig\Extension\CsrfExtension']->getCsrfTokenForAnchor();
  370.                     echo " class=\"ec-icon\" data-method=\"put\" data-message=\"カートから商品を削除してもよろしいですか?\">
  371.                                             <img src=\"";
  372.                     // line 132
  373.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/cross.svg"), "html"nulltrue);
  374.                     echo "\" alt=\"delete\">
  375.                                         </a>
  376.                                     </li>
  377.                                     <li class=\"ec-cartRow__contentColumn\">
  378.                                         <div class=\"ec-cartRow__img\">
  379.                                             <a target=\"_blank\" href=\"";
  380.                     // line 137
  381.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_detail", ["id" => twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'137$this->source); })()), "id", [], "any"falsefalsefalse137)]), "html"nulltrue);
  382.                     echo "\">
  383.                                                 <img src=\"";
  384.                     // line 138
  385.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['Eccube\Twig\Extension\EccubeExtension']->getNoImageProduct(twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'138$this->source); })()), "MainListImage", [], "any"falsefalsefalse138)), "save_image"), "html"nulltrue);
  386.                     echo "\" alt=\"";
  387.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'138$this->source); })()), "name", [], "any"falsefalsefalse138), "html"nulltrue);
  388.                     echo "\"/>
  389.                                             </a>
  390.                                         </div>
  391.                                         <div class=\"ec-cartRow__summary\">
  392.                                             <div class=\"ec-cartRow__name\">
  393.                                                 <a target=\"_blank\" href=\"";
  394.                     // line 143
  395.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_detail", ["id" => twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'143$this->source); })()), "id", [], "any"falsefalsefalse143)]), "html"nulltrue);
  396.                     echo "\">";
  397.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'143$this->source); })()), "name", [], "any"falsefalsefalse143), "html"nulltrue);
  398.                     echo "</a>
  399.                                                 ";
  400.                     // line 144
  401.                     if ((twig_get_attribute($this->env$this->source, (isset($context["ProductClass"]) || array_key_exists("ProductClass"$context) ? $context["ProductClass"] : (function () { throw new RuntimeError('Variable "ProductClass" does not exist.'144$this->source); })()), "ClassCategory1", [], "any"falsefalsefalse144) && twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["ProductClass"]) || array_key_exists("ProductClass"$context) ? $context["ProductClass"] : (function () { throw new RuntimeError('Variable "ProductClass" does not exist.'144$this->source); })()), "ClassCategory1", [], "any"falsefalsefalse144), "id", [], "any"falsefalsefalse144))) {
  402.                         // line 145
  403.                         echo "                                                    <br>";
  404.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["ProductClass"]) || array_key_exists("ProductClass"$context) ? $context["ProductClass"] : (function () { throw new RuntimeError('Variable "ProductClass" does not exist.'145$this->source); })()), "ClassCategory1", [], "any"falsefalsefalse145), "ClassName", [], "any"falsefalsefalse145), "name", [], "any"falsefalsefalse145), "html"nulltrue);
  405.                         echo ":";
  406.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["ProductClass"]) || array_key_exists("ProductClass"$context) ? $context["ProductClass"] : (function () { throw new RuntimeError('Variable "ProductClass" does not exist.'145$this->source); })()), "ClassCategory1", [], "any"falsefalsefalse145), "html"nulltrue);
  407.                         echo "
  408.                                                 ";
  409.                     }
  410.                     // line 147
  411.                     echo "                                                ";
  412.                     if ((twig_get_attribute($this->env$this->source, (isset($context["ProductClass"]) || array_key_exists("ProductClass"$context) ? $context["ProductClass"] : (function () { throw new RuntimeError('Variable "ProductClass" does not exist.'147$this->source); })()), "ClassCategory2", [], "any"falsefalsefalse147) && twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["ProductClass"]) || array_key_exists("ProductClass"$context) ? $context["ProductClass"] : (function () { throw new RuntimeError('Variable "ProductClass" does not exist.'147$this->source); })()), "ClassCategory2", [], "any"falsefalsefalse147), "id", [], "any"falsefalsefalse147))) {
  413.                         // line 148
  414.                         echo "                                                    <br>";
  415.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["ProductClass"]) || array_key_exists("ProductClass"$context) ? $context["ProductClass"] : (function () { throw new RuntimeError('Variable "ProductClass" does not exist.'148$this->source); })()), "ClassCategory2", [], "any"falsefalsefalse148), "ClassName", [], "any"falsefalsefalse148), "name", [], "any"falsefalsefalse148), "html"nulltrue);
  416.                         echo ":";
  417.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["ProductClass"]) || array_key_exists("ProductClass"$context) ? $context["ProductClass"] : (function () { throw new RuntimeError('Variable "ProductClass" does not exist.'148$this->source); })()), "ClassCategory2", [], "any"falsefalsefalse148), "html"nulltrue);
  418.                         echo "
  419.                                                 ";
  420.                     }
  421.                     // line 150
  422.                     echo "                                            ";
  423.                     echo twig_include($this->env$context"@ProductOption42/default/Cart/cart_option.twig");
  424.                     echo "</div>
  425.                                             <div class=\"ec-cartRow__unitPrice\">";
  426.                     // line 151
  427.                     echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["CartItem"], "price", [], "any"falsefalsefalse151)), "html"nulltrue);
  428.                     echo "</div>
  429.                                             <div class=\"ec-cartRow__sutbtotalSP\">";
  430.                     // line 152
  431.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("小計:"), "html"nulltrue);
  432.                     echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["CartItem"], "total_price", [], "any"falsefalsefalse152)), "html"nulltrue);
  433.                     echo "</div>
  434.                                         </div>
  435.                                     </li>
  436.                                     <li class=\"ec-cartRow__amountColumn\">
  437.                                         <div class=\"ec-cartRow__amount\">";
  438.                     // line 156
  439.                     echo twig_escape_filter($this->envtwig_number_format_filter($this->envtwig_get_attribute($this->env$this->source$context["CartItem"], "quantity", [], "any"falsefalsefalse156)), "html"nulltrue);
  440.                     echo "</div>
  441.                                         <div class=\"ec-cartRow__amountSP\">";
  442.                     // line 157
  443.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("数量:"), "html"nulltrue);
  444.                     echo twig_escape_filter($this->envtwig_number_format_filter($this->envtwig_get_attribute($this->env$this->source$context["CartItem"], "quantity", [], "any"falsefalsefalse157)), "html"nulltrue);
  445.                     echo "</div>
  446.                                         <div class=\"ec-cartRow__amountUpDown\">
  447.                                             ";
  448.                     // line 159
  449.                     if ((twig_get_attribute($this->env$this->source$context["CartItem"], "quantity", [], "any"falsefalsefalse159) > 1)) {
  450.                         // line 160
  451.                         echo "                                                <a href=\"";
  452.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("productoption_cart_handle_item", ["operation" => "down""cartItemId" => twig_get_attribute($this->env$this->source$context["CartItem"], "id", [], "any"falsefalsefalse160)]), "html"nulltrue);
  453.                         echo "\" ";
  454.                         echo $this->extensions['Eccube\Twig\Extension\CsrfExtension']->getCsrfTokenForAnchor();
  455.                         echo " class=\"ec-cartRow__amountDownButton load-overlay\" data-method=\"put\" data-confirm=\"false\">
  456.                                                     <span class=\"ec-cartRow__amountDownButton__icon\"><img src=\"";
  457.                         // line 161
  458.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/minus-dark.svg"), "html"nulltrue);
  459.                         echo "\" alt=\"reduce\"></span>
  460.                                                 </a>
  461.                                             ";
  462.                     } else {
  463.                         // line 164
  464.                         echo "                                                <div class=\"ec-cartRow__amountDownButtonDisabled\">
  465.                                                     <span class=\"ec-cartRow__amountDownButton__icon\"><img src=\"";
  466.                         // line 165
  467.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/minus.svg"), "html"nulltrue);
  468.                         echo "\" alt=\"reduce\"></span>
  469.                                                 </div>
  470.                                             ";
  471.                     }
  472.                     // line 168
  473.                     echo "                                            <a href=\"";
  474.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("productoption_cart_handle_item", ["operation" => "up""cartItemId" => twig_get_attribute($this->env$this->source$context["CartItem"], "id", [], "any"falsefalsefalse168)]), "html"nulltrue);
  475.                     echo "\" ";
  476.                     echo $this->extensions['Eccube\Twig\Extension\CsrfExtension']->getCsrfTokenForAnchor();
  477.                     echo " class=\"ec-cartRow__amountUpButton load-overlay\" data-method=\"put\" data-confirm=\"false\">
  478.                                                 <span class=\"ec-cartRow__amountUpButton__icon\"><img src=\"";
  479.                     // line 169
  480.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/plus-dark.svg"), "html"nulltrue);
  481.                     echo "\" alt=\"increase\"></span>
  482.                                             </a>
  483.                                         </div>
  484.                                     </li>
  485.                                     <li class=\"ec-cartRow__subtotalColumn\">
  486.                                         <div class=\"ec-cartRow__sutbtotal\">";
  487.                     // line 174
  488.                     echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["CartItem"], "total_price", [], "any"falsefalsefalse174)), "html"nulltrue);
  489.                     echo "</div>
  490.                                     </li>
  491.                                 </ul>
  492.                             ";
  493.                     ++$context['loop']['index0'];
  494.                     ++$context['loop']['index'];
  495.                     $context['loop']['first'] = false;
  496.                     if (isset($context['loop']['length'])) {
  497.                         --$context['loop']['revindex0'];
  498.                         --$context['loop']['revindex'];
  499.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  500.                     }
  501.                 }
  502.                 $_parent $context['_parent'];
  503.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['CartItem'], $context['_parent'], $context['loop']);
  504.                 $context array_intersect_key($context$_parent) + $_parent;
  505.                 // line 178
  506.                 echo "                        </div>
  507.                     </div>
  508.                     <div class=\"ec-cartRole__progress\">
  509.                         ";
  510.                 // line 181
  511.                 if ((twig_get_attribute($this->env$this->source, (isset($context["BaseInfo"]) || array_key_exists("BaseInfo"$context) ? $context["BaseInfo"] : (function () { throw new RuntimeError('Variable "BaseInfo" does not exist.'181$this->source); })()), "delivery_free_amount", [], "any"falsefalsefalse181) && twig_get_attribute($this->env$this->source, (isset($context["BaseInfo"]) || array_key_exists("BaseInfo"$context) ? $context["BaseInfo"] : (function () { throw new RuntimeError('Variable "BaseInfo" does not exist.'181$this->source); })()), "delivery_free_quantity", [], "any"falsefalsefalse181))) {
  512.                     // line 182
  513.                     echo "                            <br/>
  514.                             ";
  515.                     // line 183
  516.                     if (twig_get_attribute($this->env$this->source, (isset($context["is_delivery_free"]) || array_key_exists("is_delivery_free"$context) ? $context["is_delivery_free"] : (function () { throw new RuntimeError('Variable "is_delivery_free" does not exist.'183$this->source); })()), (isset($context["cartKey"]) || array_key_exists("cartKey"$context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.'183$this->source); })()), [], "array"falsefalsefalse183)) {
  517.                         // line 184
  518.                         echo "                                ";
  519.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("現在送料無料です。"), "html"nulltrue);
  520.                         echo "
  521.                             ";
  522.                     } else {
  523.                         // line 186
  524.                         echo "                                ";
  525.                         echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("あと「<strong>%price%</strong>」または「<strong>%quantity%個</strong>」のお買い上げで<strong class=\"ec-color-red\">送料無料</strong>になります。", ["%price%" => $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source, (isset($context["least"]) || array_key_exists("least"$context) ? $context["least"] : (function () { throw new RuntimeError('Variable "least" does not exist.'186$this->source); })()), (isset($context["cartKey"]) || array_key_exists("cartKey"$context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.'186$this->source); })()), [], "array"falsefalsefalse186)), "%quantity%" => twig_number_format_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["quantity"]) || array_key_exists("quantity"$context) ? $context["quantity"] : (function () { throw new RuntimeError('Variable "quantity" does not exist.'186$this->source); })()), (isset($context["cartKey"]) || array_key_exists("cartKey"$context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.'186$this->source); })()), [], "array"falsefalsefalse186))]);
  526.                         echo "
  527.                             ";
  528.                     }
  529.                     // line 188
  530.                     echo "                        ";
  531.                 } elseif (twig_get_attribute($this->env$this->source, (isset($context["BaseInfo"]) || array_key_exists("BaseInfo"$context) ? $context["BaseInfo"] : (function () { throw new RuntimeError('Variable "BaseInfo" does not exist.'188$this->source); })()), "delivery_free_amount", [], "any"falsefalsefalse188)) {
  532.                     // line 189
  533.                     echo "                            <br/>
  534.                             ";
  535.                     // line 190
  536.                     if (twig_get_attribute($this->env$this->source, (isset($context["is_delivery_free"]) || array_key_exists("is_delivery_free"$context) ? $context["is_delivery_free"] : (function () { throw new RuntimeError('Variable "is_delivery_free" does not exist.'190$this->source); })()), (isset($context["cartKey"]) || array_key_exists("cartKey"$context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.'190$this->source); })()), [], "array"falsefalsefalse190)) {
  537.                         // line 191
  538.                         echo "                                ";
  539.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("現在送料無料です。"), "html"nulltrue);
  540.                         echo "
  541.                             ";
  542.                     } else {
  543.                         // line 193
  544.                         echo "                                ";
  545.                         echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("あと「<strong>%price%</strong>」のお買い上げで<strong class=\"ec-color-red\">送料無料</strong>になります。", ["%price%" => $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source, (isset($context["least"]) || array_key_exists("least"$context) ? $context["least"] : (function () { throw new RuntimeError('Variable "least" does not exist.'193$this->source); })()), (isset($context["cartKey"]) || array_key_exists("cartKey"$context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.'193$this->source); })()), [], "array"falsefalsefalse193))]);
  546.                         echo "
  547.                             ";
  548.                     }
  549.                     // line 195
  550.                     echo "                        ";
  551.                 } elseif (twig_get_attribute($this->env$this->source, (isset($context["BaseInfo"]) || array_key_exists("BaseInfo"$context) ? $context["BaseInfo"] : (function () { throw new RuntimeError('Variable "BaseInfo" does not exist.'195$this->source); })()), "delivery_free_quantity", [], "any"falsefalsefalse195)) {
  552.                     // line 196
  553.                     echo "                            <br/>
  554.                             ";
  555.                     // line 197
  556.                     if (twig_get_attribute($this->env$this->source, (isset($context["is_delivery_free"]) || array_key_exists("is_delivery_free"$context) ? $context["is_delivery_free"] : (function () { throw new RuntimeError('Variable "is_delivery_free" does not exist.'197$this->source); })()), (isset($context["cartKey"]) || array_key_exists("cartKey"$context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.'197$this->source); })()), [], "array"falsefalsefalse197)) {
  557.                         // line 198
  558.                         echo "                                ";
  559.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("現在送料無料です。"), "html"nulltrue);
  560.                         echo "
  561.                             ";
  562.                     } else {
  563.                         // line 200
  564.                         echo "                                ";
  565.                         echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("あと「<strong>%quantity%個</strong>」のお買い上げで<strong class=\"ec-color-red\">送料無料</strong>になります。", ["%quantity%" => twig_number_format_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["quantity"]) || array_key_exists("quantity"$context) ? $context["quantity"] : (function () { throw new RuntimeError('Variable "quantity" does not exist.'200$this->source); })()), (isset($context["cartKey"]) || array_key_exists("cartKey"$context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.'200$this->source); })()), [], "array"falsefalsefalse200))]);
  566.                         echo "
  567.                             ";
  568.                     }
  569.                     // line 202
  570.                     echo "                        ";
  571.                 }
  572.                 // line 203
  573.                 echo "                    </div>
  574.                     <div class=\"ec-cartRole__actions\">
  575.                         <div class=\"ec-cartRole__total\">";
  576.                 // line 205
  577.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("合計:"), "html"nulltrue);
  578.                 echo "<span class=\"ec-cartRole__totalAmount\">";
  579.                 echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["Cart"], "totalPrice", [], "any"falsefalsefalse205)), "html"nulltrue);
  580.                 echo "</span>
  581.                         </div>
  582.                         <a class=\"ec-blockBtn--action\" href=\"";
  583.                 // line 207
  584.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("cart_buystep", ["cart_key" => (isset($context["cartKey"]) || array_key_exists("cartKey"$context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.'207$this->source); })())]), "html"nulltrue);
  585.                 echo "\">";
  586.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("レジに進む"), "html"nulltrue);
  587.                 echo "</a>
  588.                         ";
  589.                 // line 208
  590.                 if (twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse208)) {
  591.                     // line 209
  592.                     echo "                            <a class=\"ec-blockBtn--cancel\" href=\"";
  593.                     echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("homepage");
  594.                     echo "\">";
  595.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お買い物を続ける"), "html"nulltrue);
  596.                     echo "</a>
  597.                         ";
  598.                 }
  599.                 // line 211
  600.                 echo "                    </div>
  601.                 ";
  602.                 ++$context['loop']['index0'];
  603.                 ++$context['loop']['index'];
  604.                 $context['loop']['first'] = false;
  605.                 if (isset($context['loop']['length'])) {
  606.                     --$context['loop']['revindex0'];
  607.                     --$context['loop']['revindex'];
  608.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  609.                 }
  610.             }
  611.             $_parent $context['_parent'];
  612.             unset($context['_seq'], $context['_iterated'], $context['CartIndex'], $context['Cart'], $context['_parent'], $context['loop']);
  613.             $context array_intersect_key($context$_parent) + $_parent;
  614.             // line 213
  615.             echo "            </form>
  616.         ";
  617.         } else {
  618.             // line 215
  619.             echo "            ";
  620.             $context['_parent'] = $context;
  621.             $context['_seq'] = twig_ensure_traversable((isset($context["Carts"]) || array_key_exists("Carts"$context) ? $context["Carts"] : (function () { throw new RuntimeError('Variable "Carts" does not exist.'215$this->source); })()));
  622.             foreach ($context['_seq'] as $context["CartIndex"] => $context["Cart"]) {
  623.                 // line 216
  624.                 echo "                ";
  625.                 $context["cartKey"] = twig_get_attribute($this->env$this->source$context["Cart"], "cart_key", [], "any"falsefalsefalse216);
  626.                 // line 217
  627.                 echo "                ";
  628.                 $context['_parent'] = $context;
  629.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'217$this->source); })()), "session", [], "any"falsefalsefalse217), "flashbag", [], "any"falsefalsefalse217), "get", [=> (("eccube.front.cart." . (isset($context["cartKey"]) || array_key_exists("cartKey"$context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.'217$this->source); })())) . ".request.error")], "method"falsefalsefalse217));
  630.                 foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
  631.                     // line 218
  632.                     echo "                    <div class=\"ec-cartRole__error\">
  633.                         <div class=\"ec-alert-warning\">
  634.                             <div class=\"ec-alert-warning__icon\"><img src=\"";
  635.                     // line 220
  636.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/exclamation-white.svg"), "html"nulltrue);
  637.                     echo "\"></div>
  638.                             <div class=\"ec-alert-warning__text\">
  639.                                 ";
  640.                     // line 222
  641.                     echo twig_nl2br(twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($context["error"]), "html"nulltrue));
  642.                     echo "
  643.                             </div>
  644.                         </div>
  645.                     </div>
  646.                 ";
  647.                 }
  648.                 $_parent $context['_parent'];
  649.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
  650.                 $context array_intersect_key($context$_parent) + $_parent;
  651.                 // line 227
  652.                 echo "            ";
  653.             }
  654.             $_parent $context['_parent'];
  655.             unset($context['_seq'], $context['_iterated'], $context['CartIndex'], $context['Cart'], $context['_parent'], $context['loop']);
  656.             $context array_intersect_key($context$_parent) + $_parent;
  657.             // line 228
  658.             echo "            <div class=\"ec-role\">
  659.                 <div class=\"ec-off3Grid\">
  660.                     <div class=\"ec-off3Grid__cell\">
  661.                         <div class=\"ec-alert-warning\">
  662.                             <div class=\"ec-alert-warning__icon\"><img src=\"";
  663.             // line 232
  664.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/exclamation-white.svg"), "html"nulltrue);
  665.             echo "\"></div>
  666.                             <div class=\"ec-alert-warning__text\">";
  667.             // line 233
  668.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("現在カート内に商品はございません。"), "html"nulltrue);
  669.             echo "</div>
  670.                         </div>
  671.                     </div>
  672.                 </div>
  673.             </div>
  674.         ";
  675.         }
  676.         // line 239
  677.         echo "    </div>
  678. <script>
  679. (function() {
  680.     'use strict';
  681.     
  682.     // カート操作の連打防止
  683.     let isProcessing = false;
  684.     let processingTimeout = null;
  685.     
  686.     document.addEventListener('DOMContentLoaded', function() {
  687.         // カート内の数量増減・削除ボタンのフォーム送信を監視
  688.         const cartForms = document.querySelectorAll('form[action*=\"productoption_cart_handle_item\"]');
  689.         
  690.         cartForms.forEach(function(form) {
  691.             form.addEventListener('submit', function(e) {
  692.                 // 処理中の場合は送信をキャンセル
  693.                 if (isProcessing) {
  694.                     e.preventDefault();
  695.                     e.stopPropagation();
  696.                     return false;
  697.                 }
  698.                 
  699.                 // 処理中フラグを立てる
  700.                 isProcessing = true;
  701.                 
  702.                 // ボタンを無効化して視覚的フィードバック
  703.                 const submitButton = form.querySelector('button[type=\"submit\"]');
  704.                 if (submitButton) {
  705.                     submitButton.disabled = true;
  706.                     submitButton.style.opacity = '0.5';
  707.                     submitButton.style.cursor = 'not-allowed';
  708.                 }
  709.                 
  710.                 // 3秒後にリセット(念のためのフェイルセーフ)
  711.                 if (processingTimeout) {
  712.                     clearTimeout(processingTimeout);
  713.                 }
  714.                 processingTimeout = setTimeout(function() {
  715.                     isProcessing = false;
  716.                     if (submitButton) {
  717.                         submitButton.disabled = false;
  718.                         submitButton.style.opacity = '';
  719.                         submitButton.style.cursor = '';
  720.                     }
  721.                 }, 3000);
  722.             });
  723.         });
  724.         
  725.         // ページ遷移前にフラグをリセット
  726.         window.addEventListener('beforeunload', function() {
  727.             isProcessing = false;
  728.             if (processingTimeout) {
  729.                 clearTimeout(processingTimeout);
  730.             }
  731.         });
  732.     });
  733. })();
  734. </script>
  735. ";
  736.         
  737.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  738.         
  739.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  740.     }
  741.     public function getTemplateName()
  742.     {
  743.         return "__string_template__b007d99c5a06f3a55fe3398e26a2d94fe2fca0c3d6f1ce26a736d74aace3f580";
  744.     }
  745.     public function isTraitable()
  746.     {
  747.         return false;
  748.     }
  749.     public function getDebugInfo()
  750.     {
  751.         return array (  693 => 239,  684 => 233,  680 => 232,  674 => 228,  668 => 227,  657 => 222,  652 => 220,  648 => 218,  643 => 217,  640 => 216,  635 => 215,  631 => 213,  616 => 211,  608 => 209,  606 => 208,  600 => 207,  593 => 205,  589 => 203,  586 => 202,  580 => 200,  574 => 198,  572 => 197,  569 => 196,  566 => 195,  560 => 193,  554 => 191,  552 => 190,  549 => 189,  546 => 188,  540 => 186,  534 => 184,  532 => 183,  529 => 182,  527 => 181,  522 => 178,  504 => 174,  496 => 169,  489 => 168,  483 => 165,  480 => 164,  474 => 161,  467 => 160,  465 => 159,  459 => 157,  455 => 156,  447 => 152,  443 => 151,  438 => 150,  430 => 148,  427 => 147,  419 => 145,  417 => 144,  411 => 143,  401 => 138,  397 => 137,  389 => 132,  383 => 131,  379 => 129,  376 => 128,  373 => 127,  356 => 126,  351 => 124,  347 => 123,  343 => 122,  339 => 121,  333 => 117,  322 => 112,  317 => 110,  313 => 108,  308 => 107,  305 => 106,  288 => 105,  283 => 103,  280 => 102,  272 => 97,  267 => 94,  265 => 93,  259 => 90,  255 => 88,  252 => 87,  241 => 82,  236 => 80,  232 => 78,  227 => 77,  210 => 73,  204 => 71,  198 => 69,  196 => 68,  191 => 66,  187 => 64,  184 => 63,  166 => 62,  164 => 61,  156 => 56,  153 => 55,  150 => 54,  143 => 50,  140 => 49,  137 => 48,  130 => 44,  127 => 43,  124 => 42,  121 => 41,  114 => 37,  111 => 36,  108 => 35,  105 => 34,  103 => 33,  97 => 30,  94 => 29,  91 => 28,  88 => 27,  86 => 26,  76 => 19,  71 => 16,  61 => 15,  50 => 11,  48 => 13,  35 => 11,);
  752.     }
  753.     public function getSourceContext()
  754.     {
  755.         return new Source("{#
  756. This file is part of EC-CUBE
  757. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  758. http://www.ec-cube.co.jp/
  759. For the full copyright and license information, please view the LICENSE
  760. file that was distributed with this source code.
  761. #}
  762. {% extends 'default_frame.twig' %}
  763. {% set body_class = 'cart_page cart' %}
  764. {% block main %}
  765.     <div class=\"ec-role\">
  766.         <div class=\"ec-pageHeader\">
  767.             <h1>{{ 'ショッピングカート'|trans }}</h1>
  768.         </div>
  769.     </div>
  770.     <div class=\"ec-cartRole\">
  771.         <div class=\"ec-cartRole__progress\">
  772.             <ul class=\"ec-progress\">
  773.                 {% set step = 1 %}
  774.                 <li class=\"ec-progress__item is-complete\">
  775.                     <div class=\"ec-progress__number\">{{ step }}{% set step = step + 1 %}
  776.                     </div>
  777.                     <div class=\"ec-progress__label\">{{ 'カートの商品'|trans }}
  778.                     </div>
  779.                 </li>
  780.                 {% if is_granted('ROLE_USER') == false %}
  781.                     <li class=\"ec-progress__item\">
  782.                         <div class=\"ec-progress__number\">{{ step }}{% set step = step + 1 %}
  783.                         </div>
  784.                         <div class=\"ec-progress__label\">{{ 'お客様情報'|trans }}
  785.                         </div>
  786.                     </li>
  787.                 {% endif %}
  788.                 <li class=\"ec-progress__item\">
  789.                     <div class=\"ec-progress__number\">{{ step }}{% set step = step + 1 %}
  790.                     </div>
  791.                     <div class=\"ec-progress__label\">{{ 'ご注文手続き'|trans }}
  792.                     </div>
  793.                 </li>
  794.                 <li class=\"ec-progress__item\">
  795.                     <div class=\"ec-progress__number\">{{ step }}{% set step = step + 1 %}
  796.                     </div>
  797.                     <div class=\"ec-progress__label\">{{ 'ご注文内容確認'|trans }}
  798.                     </div>
  799.                 </li>
  800.                 <li class=\"ec-progress__item\">
  801.                     <div class=\"ec-progress__number\">{{ step }}{% set step = step + 1 %}
  802.                     </div>
  803.                     <div class=\"ec-progress__label\">{{ '完了'|trans }}
  804.                     </div>
  805.                 </li>
  806.             </ul>
  807.         </div>
  808.         {% set productStr = app.session.flashbag.get('eccube.front.request.product') %}
  809.         {% for error in app.session.flashbag.get('eccube.front.request.error') %}
  810.             {% set idx = loop.index0 %}
  811.             <div class=\"ec-cartRole__error\">
  812.                 <div class=\"ec-alert-warning\">
  813.                     <div class=\"ec-alert-warning__icon\"><img src=\"{{ asset('assets/icon/exclamation-white.svg') }}\"></div>
  814.                     <div class=\"ec-alert-warning__text\">
  815.                         {% if productStr[idx] is defined %}
  816.                             {{ error|trans({'%product%':productStr[idx]})|nl2br }}
  817.                         {% else %}
  818.                             {{ error|trans|nl2br }}
  819.                         {% endif %}
  820.                     </div>
  821.                 </div>
  822.             </div>
  823.         {% endfor %}
  824.         {% for error in app.session.flashbag.get('eccube.front.cart.error') %}
  825.             <div class=\"ec-cartRole__error\">
  826.                 <div class=\"ec-alert-warning\">
  827.                     <div class=\"ec-alert-warning__icon\"><img src=\"{{ asset('assets/icon/exclamation-white.svg') }}\"></div>
  828.                     <div class=\"ec-alert-warning__text\">
  829.                         {{ error|trans|nl2br }}
  830.                     </div>
  831.                 </div>
  832.             </div>
  833.         {% endfor %}
  834.         {% if totalQuantity > 0 %}
  835.             <div class=\"ec-cartRole__totalText\">
  836.                 <p>
  837.                     {{ '商品の合計金額は「<strong>%price%</strong>」です。'|trans({ '%price%': totalPrice|price })|raw }}
  838.                 </p>
  839.             </div>
  840.             {% if Carts|length > 1 %}
  841.                 <div class=\"ec-cartRole__error\">
  842.                     <div class=\"ec-alert-warning\">
  843.                         <div class=\"ec-alert-warning__text\">
  844.                             {{ '同時購入できない商品がカートに含まれています。'|trans|nl2br }}
  845.                         </div>
  846.                     </div>
  847.                 </div>
  848.             {% endif %}
  849.             <form name=\"form\" id=\"form_cart\" class=\"ec-cartRole\" method=\"post\" action=\"{{ url('cart') }}\">
  850.                 {% for CartIndex,Cart in Carts %}
  851.                     {% set cartKey = Cart.cart_key %}
  852.                     {% for error in app.session.flashbag.get('eccube.front.cart.' ~ cartKey ~ '.request.error') %}
  853.                         <div class=\"ec-cartRole__error\">
  854.                             <div class=\"ec-alert-warning\">
  855.                                 <div class=\"ec-alert-warning__icon\"><img src=\"{{ asset('assets/icon/exclamation-white.svg') }}\"></div>
  856.                                 <div class=\"ec-alert-warning__text\">
  857.                                     {{ error|trans|nl2br }}
  858.                                 </div>
  859.                             </div>
  860.                         </div>
  861.                     {% endfor %}
  862.                     <div class=\"ec-cartRole__cart\">
  863.                         <div class=\"ec-cartTable\">
  864.                             <ol class=\"ec-cartHeader\">
  865.                                 <li class=\"ec-cartHeader__label\">{{ '削除'|trans }}</li>
  866.                                 <li class=\"ec-cartHeader__label\">{{ '商品内容'|trans }}</li>
  867.                                 <li class=\"ec-cartHeader__label\">{{ '数量'|trans }}</li>
  868.                                 <li class=\"ec-cartHeader__label\">{{ '小計'|trans }}</li>
  869.                             </ol>
  870.                             {% for CartItem in Cart.CartItems %}
  871.                                 {% set ProductClass = CartItem.ProductClass %}
  872.                                 {% set Product = ProductClass.Product %}
  873.                                 <ul class=\"ec-cartRow\">
  874.                                     <li class=\"ec-cartRow__delColumn\">
  875.                                         <a href=\"{{ url('productoption_cart_handle_item', {'operation': 'remove', 'cartItemId': CartItem.id }) }}\" {{ csrf_token_for_anchor() }} class=\"ec-icon\" data-method=\"put\" data-message=\"カートから商品を削除してもよろしいですか?\">
  876.                                             <img src=\"{{ asset('assets/icon/cross.svg') }}\" alt=\"delete\">
  877.                                         </a>
  878.                                     </li>
  879.                                     <li class=\"ec-cartRow__contentColumn\">
  880.                                         <div class=\"ec-cartRow__img\">
  881.                                             <a target=\"_blank\" href=\"{{ url('product_detail', {id : Product.id} ) }}\">
  882.                                                 <img src=\"{{ asset(Product.MainListImage|no_image_product, 'save_image') }}\" alt=\"{{ Product.name }}\"/>
  883.                                             </a>
  884.                                         </div>
  885.                                         <div class=\"ec-cartRow__summary\">
  886.                                             <div class=\"ec-cartRow__name\">
  887.                                                 <a target=\"_blank\" href=\"{{ url('product_detail', {id : Product.id} ) }}\">{{ Product.name }}</a>
  888.                                                 {% if ProductClass.ClassCategory1 and ProductClass.ClassCategory1.id %}
  889.                                                     <br>{{ ProductClass.ClassCategory1.ClassName.name }}:{{ ProductClass.ClassCategory1 }}
  890.                                                 {% endif %}
  891.                                                 {% if ProductClass.ClassCategory2 and ProductClass.ClassCategory2.id %}
  892.                                                     <br>{{ ProductClass.ClassCategory2.ClassName.name }}:{{ ProductClass.ClassCategory2 }}
  893.                                                 {% endif %}
  894.                                             {{ include('@ProductOption42/default/Cart/cart_option.twig') }}</div>
  895.                                             <div class=\"ec-cartRow__unitPrice\">{{ CartItem.price|price }}</div>
  896.                                             <div class=\"ec-cartRow__sutbtotalSP\">{{ '小計:'|trans }}{{ CartItem.total_price|price }}</div>
  897.                                         </div>
  898.                                     </li>
  899.                                     <li class=\"ec-cartRow__amountColumn\">
  900.                                         <div class=\"ec-cartRow__amount\">{{ CartItem.quantity|number_format }}</div>
  901.                                         <div class=\"ec-cartRow__amountSP\">{{ '数量:'|trans }}{{ CartItem.quantity|number_format }}</div>
  902.                                         <div class=\"ec-cartRow__amountUpDown\">
  903.                                             {% if CartItem.quantity > 1 %}
  904.                                                 <a href=\"{{ url('productoption_cart_handle_item', {'operation': 'down', 'cartItemId': CartItem.id}) }}\" {{ csrf_token_for_anchor() }} class=\"ec-cartRow__amountDownButton load-overlay\" data-method=\"put\" data-confirm=\"false\">
  905.                                                     <span class=\"ec-cartRow__amountDownButton__icon\"><img src=\"{{ asset('assets/icon/minus-dark.svg') }}\" alt=\"reduce\"></span>
  906.                                                 </a>
  907.                                             {% else %}
  908.                                                 <div class=\"ec-cartRow__amountDownButtonDisabled\">
  909.                                                     <span class=\"ec-cartRow__amountDownButton__icon\"><img src=\"{{ asset('assets/icon/minus.svg') }}\" alt=\"reduce\"></span>
  910.                                                 </div>
  911.                                             {% endif %}
  912.                                             <a href=\"{{ url('productoption_cart_handle_item', {'operation': 'up', 'cartItemId': CartItem.id}) }}\" {{ csrf_token_for_anchor() }} class=\"ec-cartRow__amountUpButton load-overlay\" data-method=\"put\" data-confirm=\"false\">
  913.                                                 <span class=\"ec-cartRow__amountUpButton__icon\"><img src=\"{{ asset('assets/icon/plus-dark.svg') }}\" alt=\"increase\"></span>
  914.                                             </a>
  915.                                         </div>
  916.                                     </li>
  917.                                     <li class=\"ec-cartRow__subtotalColumn\">
  918.                                         <div class=\"ec-cartRow__sutbtotal\">{{ CartItem.total_price|price }}</div>
  919.                                     </li>
  920.                                 </ul>
  921.                             {% endfor %}
  922.                         </div>
  923.                     </div>
  924.                     <div class=\"ec-cartRole__progress\">
  925.                         {% if BaseInfo.delivery_free_amount and BaseInfo.delivery_free_quantity %}
  926.                             <br/>
  927.                             {% if is_delivery_free[cartKey] %}
  928.                                 {{ '現在送料無料です。'|trans }}
  929.                             {% else %}
  930.                                 {{ 'あと「<strong>%price%</strong>」または「<strong>%quantity%個</strong>」のお買い上げで<strong class=\"ec-color-red\">送料無料</strong>になります。'|trans({ '%price%': least[cartKey]|price, '%quantity%': quantity[cartKey]|number_format })|raw }}
  931.                             {% endif %}
  932.                         {% elseif BaseInfo.delivery_free_amount %}
  933.                             <br/>
  934.                             {% if is_delivery_free[cartKey] %}
  935.                                 {{ '現在送料無料です。'|trans }}
  936.                             {% else %}
  937.                                 {{ 'あと「<strong>%price%</strong>」のお買い上げで<strong class=\"ec-color-red\">送料無料</strong>になります。'|trans({ '%price%': least[cartKey]|price })|raw }}
  938.                             {% endif %}
  939.                         {% elseif BaseInfo.delivery_free_quantity %}
  940.                             <br/>
  941.                             {% if is_delivery_free[cartKey] %}
  942.                                 {{ '現在送料無料です。'|trans }}
  943.                             {% else %}
  944.                                 {{ 'あと「<strong>%quantity%個</strong>」のお買い上げで<strong class=\"ec-color-red\">送料無料</strong>になります。'|trans({ '%quantity%': quantity[cartKey]|number_format })|raw }}
  945.                             {% endif %}
  946.                         {% endif %}
  947.                     </div>
  948.                     <div class=\"ec-cartRole__actions\">
  949.                         <div class=\"ec-cartRole__total\">{{ '合計:'|trans }}<span class=\"ec-cartRole__totalAmount\">{{ Cart.totalPrice|price }}</span>
  950.                         </div>
  951.                         <a class=\"ec-blockBtn--action\" href=\"{{ path('cart_buystep', {'cart_key':cartKey}) }}\">{{ 'レジに進む'|trans }}</a>
  952.                         {% if loop.last %}
  953.                             <a class=\"ec-blockBtn--cancel\" href=\"{{ path('homepage') }}\">{{ 'お買い物を続ける'|trans }}</a>
  954.                         {% endif %}
  955.                     </div>
  956.                 {% endfor %}
  957.             </form>
  958.         {% else %}
  959.             {% for CartIndex,Cart in Carts %}
  960.                 {% set cartKey = Cart.cart_key %}
  961.                 {% for error in app.session.flashbag.get('eccube.front.cart.' ~ cartKey ~ '.request.error') %}
  962.                     <div class=\"ec-cartRole__error\">
  963.                         <div class=\"ec-alert-warning\">
  964.                             <div class=\"ec-alert-warning__icon\"><img src=\"{{ asset('assets/icon/exclamation-white.svg') }}\"></div>
  965.                             <div class=\"ec-alert-warning__text\">
  966.                                 {{ error|trans|nl2br }}
  967.                             </div>
  968.                         </div>
  969.                     </div>
  970.                 {% endfor %}
  971.             {% endfor %}
  972.             <div class=\"ec-role\">
  973.                 <div class=\"ec-off3Grid\">
  974.                     <div class=\"ec-off3Grid__cell\">
  975.                         <div class=\"ec-alert-warning\">
  976.                             <div class=\"ec-alert-warning__icon\"><img src=\"{{ asset('assets/icon/exclamation-white.svg') }}\"></div>
  977.                             <div class=\"ec-alert-warning__text\">{{ '現在カート内に商品はございません。'|trans }}</div>
  978.                         </div>
  979.                     </div>
  980.                 </div>
  981.             </div>
  982.         {% endif %}
  983.     </div>
  984. <script>
  985. (function() {
  986.     'use strict';
  987.     
  988.     // カート操作の連打防止
  989.     let isProcessing = false;
  990.     let processingTimeout = null;
  991.     
  992.     document.addEventListener('DOMContentLoaded', function() {
  993.         // カート内の数量増減・削除ボタンのフォーム送信を監視
  994.         const cartForms = document.querySelectorAll('form[action*=\"productoption_cart_handle_item\"]');
  995.         
  996.         cartForms.forEach(function(form) {
  997.             form.addEventListener('submit', function(e) {
  998.                 // 処理中の場合は送信をキャンセル
  999.                 if (isProcessing) {
  1000.                     e.preventDefault();
  1001.                     e.stopPropagation();
  1002.                     return false;
  1003.                 }
  1004.                 
  1005.                 // 処理中フラグを立てる
  1006.                 isProcessing = true;
  1007.                 
  1008.                 // ボタンを無効化して視覚的フィードバック
  1009.                 const submitButton = form.querySelector('button[type=\"submit\"]');
  1010.                 if (submitButton) {
  1011.                     submitButton.disabled = true;
  1012.                     submitButton.style.opacity = '0.5';
  1013.                     submitButton.style.cursor = 'not-allowed';
  1014.                 }
  1015.                 
  1016.                 // 3秒後にリセット(念のためのフェイルセーフ)
  1017.                 if (processingTimeout) {
  1018.                     clearTimeout(processingTimeout);
  1019.                 }
  1020.                 processingTimeout = setTimeout(function() {
  1021.                     isProcessing = false;
  1022.                     if (submitButton) {
  1023.                         submitButton.disabled = false;
  1024.                         submitButton.style.opacity = '';
  1025.                         submitButton.style.cursor = '';
  1026.                     }
  1027.                 }, 3000);
  1028.             });
  1029.         });
  1030.         
  1031.         // ページ遷移前にフラグをリセット
  1032.         window.addEventListener('beforeunload', function() {
  1033.             isProcessing = false;
  1034.             if (processingTimeout) {
  1035.                 clearTimeout(processingTimeout);
  1036.             }
  1037.         });
  1038.     });
  1039. })();
  1040. </script>
  1041. {% endblock %}
  1042. ""__string_template__b007d99c5a06f3a55fe3398e26a2d94fe2fca0c3d6f1ce26a736d74aace3f580""");
  1043.     }
  1044. }