var/cache/dev/twig/65/65de88374badc1fbf6c990623603f8401cf8516ffd555aadc43874cd83d7f505.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. /* Product/detail.twig */
  14. class __TwigTemplate_1a8be2a379e942e52c57060d1f0531441b95e3e28a6a63a8c96dee9262514e7e 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.             'stylesheet' => [$this'block_stylesheet'],
  24.             'javascript' => [$this'block_javascript'],
  25.             'main' => [$this'block_main'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 11
  31.         return "default_frame.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Product/detail.twig"));
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Product/detail.twig"));
  40.         // line 13
  41.         $context["body_class"] = "product_page";
  42.         // line 11
  43.         $this->parent $this->loadTemplate("default_frame.twig""Product/detail.twig"11);
  44.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  45.         
  46.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  47.         
  48.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  49.     }
  50.     // line 15
  51.     public function block_stylesheet($context, array $blocks = [])
  52.     {
  53.         $macros $this->macros;
  54.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  55.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  56.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  57.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  58.         // line 16
  59.         echo "    <style>
  60.         .slick-slider {
  61.             margin-bottom: 30px;
  62.         }
  63.         .slick-dots {
  64.             position: absolute;
  65.             bottom: -45px;
  66.             display: block;
  67.             width: 100%;
  68.             padding: 0;
  69.             list-style: none;
  70.             text-align: center;
  71.         }
  72.         .slick-dots li {
  73.             position: relative;
  74.             display: inline-block;
  75.             width: 20px;
  76.             height: 20px;
  77.             margin: 0 5px;
  78.             padding: 0;
  79.             cursor: pointer;
  80.         }
  81.         .slick-dots li button {
  82.             font-size: 0;
  83.             line-height: 0;
  84.             display: block;
  85.             width: 20px;
  86.             height: 20px;
  87.             padding: 5px;
  88.             cursor: pointer;
  89.             color: transparent;
  90.             border: 0;
  91.             outline: none;
  92.             background: transparent;
  93.         }
  94.         .slick-dots li button:hover,
  95.         .slick-dots li button:focus {
  96.             outline: none;
  97.         }
  98.         .slick-dots li button:hover:before,
  99.         .slick-dots li button:focus:before {
  100.             opacity: 1;
  101.         }
  102.         .slick-dots li button:before {
  103.             content: \" \";
  104.             line-height: 20px;
  105.             position: absolute;
  106.             top: 0;
  107.             left: 0;
  108.             width: 12px;
  109.             height: 12px;
  110.             text-align: center;
  111.             opacity: .25;
  112.             background-color: black;
  113.             border-radius: 50%;
  114.         }
  115.         .slick-dots li.slick-active button:before {
  116.             opacity: .75;
  117.             background-color: black;
  118.         }
  119.         .slick-dots li button.thumbnail img {
  120.             width: 0;
  121.             height: 0;
  122.         }
  123.     </style>
  124. ";
  125.         
  126.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  127.         
  128.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  129.     }
  130.     // line 95
  131.     public function block_javascript($context, array $blocks = [])
  132.     {
  133.         $macros $this->macros;
  134.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  135.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  136.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  137.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  138.         // line 96
  139.         echo "    <script>
  140.         eccube.classCategories = ";
  141.         // line 97
  142.         echo $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getClassCategoriesAsJson((isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'97$this->source); })()));
  143.         echo ";
  144.         // 規格2に選択肢を割り当てる。
  145.         function fnSetClassCategories(form, classcat_id2_selected) {
  146.             var \$form = \$(form);
  147.             var product_id = \$form.find('input[name=product_id]').val();
  148.             var \$sele1 = \$form.find('select[name=classcategory_id1]');
  149.             var \$sele2 = \$form.find('select[name=classcategory_id2]');
  150.             eccube.setClassCategories(\$form, product_id, \$sele1, \$sele2, classcat_id2_selected);
  151.         }
  152.         ";
  153.         // line 108
  154.         if (twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id2", [], "any"truetruefalse108)) {
  155.             // line 109
  156.             echo "        fnSetClassCategories(
  157.             \$('#form1'), ";
  158.             // line 110
  159.             echo json_encode(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'110$this->source); })()), "classcategory_id2", [], "any"falsefalsefalse110), "vars", [], "any"falsefalsefalse110), "value", [], "any"falsefalsefalse110));
  160.             echo "
  161.         );
  162.         ";
  163.         } elseif (twig_get_attribute($this->env$this->source,         // line 112
  164. ($context["form"] ?? null), "classcategory_id1", [], "any"truetruefalse112)) {
  165.             // line 113
  166.             echo "        eccube.checkStock(\$('#form1'), ";
  167.             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.'113$this->source); })()), "id", [], "any"falsefalsefalse113), "html"nulltrue);
  168.             echo ", ";
  169.             echo json_encode(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'113$this->source); })()), "classcategory_id1", [], "any"falsefalsefalse113), "vars", [], "any"falsefalsefalse113), "value", [], "any"falsefalsefalse113));
  170.             echo ", null);
  171.         ";
  172.         }
  173.         // line 115
  174.         echo "    </script>
  175.     <script>
  176.         \$(function() {
  177.             // bfcache無効化
  178.             \$(window).bind('pageshow', function(event) {
  179.                 if (event.originalEvent.persisted) {
  180.                     location.reload(true);
  181.                 }
  182.             });
  183.             // Core Web Vital の Cumulative Layout Shift(CLS)対策のため
  184.             // img タグに width, height が付与されている.
  185.             // 630px 未満の画面サイズでは縦横比が壊れるための対策
  186.             // see https://github.com/EC-CUBE/ec-cube/pull/5023
  187.             \$('.ec-grid2__cell').hide();
  188.             var removeSize = function () {
  189.                 \$('.slide-item').height('');
  190.                 \$('.slide-item img')
  191.                     .removeAttr('width')
  192.                     .removeAttr('height')
  193.                     .removeAttr('style');
  194.             };
  195.             var slickInitial = function(slick) {
  196.                 \$('.ec-grid2__cell').fadeIn(1500);
  197.                 var baseHeight = \$(slick.target).height();
  198.                 var baseWidth = \$(slick.target).width();
  199.                 var rate = baseWidth / baseHeight;
  200.                 \$('.slide-item').height(baseHeight * rate); // 余白を削除する
  201.                 // transform を使用することでCLSの影響を受けないようにする
  202.                 \$('.slide-item img')
  203.                     .css(
  204.                         {
  205.                             'transform-origin': 'top left',
  206.                             'transform': 'scaleY(' + rate + ')',
  207.                             'transition': 'transform .1s'
  208.                         }
  209.                     );
  210.                 // 正しいサイズに近くなったら属性を解除する
  211.                 setTimeout(removeSize, 500);
  212.             };
  213.             \$('.item_visual').on('init', slickInitial);
  214.             // リサイズ時は CLS の影響を受けないため属性を解除する
  215.             \$(window).resize(removeSize);
  216.             \$('.item_visual').slick({
  217.                 dots: false,
  218.                 arrows: false,
  219.                 responsive: [{
  220.                     breakpoint: 768,
  221.                     settings: {
  222.                         dots: true
  223.                     }
  224.                 }]
  225.             });
  226.             \$('.slideThumb').on('click', function() {
  227.                 var index = \$(this).attr('data-index');
  228.                 \$('.item_visual').slick('slickGoTo', index, false);
  229.             })
  230.         });
  231.     </script>
  232.     <script>
  233.         \$(function() {
  234.             \$('.add-cart').on('click', function(event) {
  235.                 ";
  236.         // line 179
  237.         if (twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id1", [], "any"truetruefalse179)) {
  238.             // line 180
  239.             echo "                // 規格1フォームの必須チェック
  240.                 if (\$('#classcategory_id1').val() == '__unselected' || \$('#classcategory_id1').val() == '') {
  241.                     \$('#classcategory_id1')[0].setCustomValidity('";
  242.             // line 182
  243.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("項目が選択されていません"), "html"nulltrue);
  244.             echo "');
  245.                     return true;
  246.                 } else {
  247.                     \$('#classcategory_id1')[0].setCustomValidity('');
  248.                 }
  249.                 ";
  250.         }
  251.         // line 188
  252.         echo "
  253.                 ";
  254.         // line 189
  255.         if (twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id2", [], "any"truetruefalse189)) {
  256.             // line 190
  257.             echo "                // 規格2フォームの必須チェック
  258.                 if (\$('#classcategory_id2').val() == '__unselected' || \$('#classcategory_id2').val() == '') {
  259.                     \$('#classcategory_id2')[0].setCustomValidity('";
  260.             // line 192
  261.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("項目が選択されていません"), "html"nulltrue);
  262.             echo "');
  263.                     return true;
  264.                 } else {
  265.                     \$('#classcategory_id2')[0].setCustomValidity('');
  266.                 }
  267.                 ";
  268.         }
  269.         // line 198
  270.         echo "
  271.                 // 個数フォームのチェック
  272.                 if (\$('#quantity').val() < 1) {
  273.                     \$('#quantity')[0].setCustomValidity('";
  274.         // line 201
  275.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("1以上で入力してください。"), "html"nulltrue);
  276.         echo "');
  277.                     return true;
  278.                 } else {
  279.                     \$('#quantity')[0].setCustomValidity('');
  280.                 }
  281.                 event.preventDefault();
  282.                 \$form = \$('#form1');
  283.                 \$.ajax({
  284.                     url: \$form.attr('action'),
  285.                     type: \$form.attr('method'),
  286.                     data: \$form.serialize(),
  287.                     dataType: 'json',
  288.                     beforeSend: function(xhr, settings) {
  289.                         // Buttonを無効にする
  290.                         \$('.add-cart').prop('disabled', true);
  291.                     }
  292.                 }).done(function(data) {
  293.                     // レスポンス内のメッセージをalertで表示
  294.                     \$.each(data.messages, function() {
  295.                         \$('#ec-modal-header').text(this);
  296.                     });
  297.                     \$('.ec-modal').show()
  298.                     // カートブロックを更新する
  299.                     \$.ajax({
  300.                         url: \"";
  301.         // line 228
  302.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("block_cart");
  303.         echo "\",
  304.                         type: 'GET',
  305.                         dataType: 'html'
  306.                     }).done(function(html) {
  307.                         \$('.ec-headerRole__cart').html(html);
  308.                     });
  309.                 }).fail(function(data) {
  310.                     alert('";
  311.         // line 235
  312.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートへの追加に失敗しました。"), "html"nulltrue);
  313.         echo "');
  314.                 }).always(function(data) {
  315.                     // Buttonを有効にする
  316.                     \$('.add-cart').prop('disabled', false);
  317.                 });
  318.             });
  319.         });
  320.         \$('.ec-modal-wrap').on('click', function(e) {
  321.             // モーダル内の処理は外側にバブリングさせない
  322.             e.stopPropagation();
  323.         });
  324.         \$('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function() {
  325.             \$('.ec-modal').hide()
  326.         });
  327.     </script>
  328.     <script type=\"application/ld+json\">
  329.     {
  330.         \"@context\": \"https://schema.org/\",
  331.         \"@type\": \"Product\",
  332.         \"name\": \"";
  333.         // line 255
  334.         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.'255$this->source); })()), "name", [], "any"falsefalsefalse255), "html"nulltrue);
  335.         echo "\",
  336.         \"image\": [
  337.             ";
  338.         // line 257
  339.         $context['_parent'] = $context;
  340.         $context['_seq'] = twig_ensure_traversable(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.'257$this->source); })()), "ProductImage", [], "any"falsefalsefalse257));
  341.         $context['_iterated'] = false;
  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["img"]) {
  356.             // line 258
  357.             echo "                \"";
  358.             echo twig_escape_filter($this->envtwig_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.'258$this->source); })()), "request", [], "any"falsefalsefalse258), "schemeAndHttpHost", [], "any"falsefalsefalse258), "html"nulltrue);
  359.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($context["img"], "save_image"), "html"nulltrue);
  360.             echo "\"";
  361.             if ( !twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse258)) {
  362.                 echo ",";
  363.             }
  364.             // line 259
  365.             echo "
  366.             ";
  367.             $context['_iterated'] = true;
  368.             ++$context['loop']['index0'];
  369.             ++$context['loop']['index'];
  370.             $context['loop']['first'] = false;
  371.             if (isset($context['loop']['length'])) {
  372.                 --$context['loop']['revindex0'];
  373.                 --$context['loop']['revindex'];
  374.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  375.             }
  376.         }
  377.         if (!$context['_iterated']) {
  378.             // line 261
  379.             echo "                \"";
  380.             echo twig_escape_filter($this->envtwig_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.'261$this->source); })()), "request", [], "any"falsefalsefalse261), "schemeAndHttpHost", [], "any"falsefalsefalse261), "html"nulltrue);
  381.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['Eccube\Twig\Extension\EccubeExtension']->getNoImageProduct(""), "save_image"), "html"nulltrue);
  382.             echo "\"
  383.             ";
  384.         }
  385.         $_parent $context['_parent'];
  386.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['img'], $context['_parent'], $context['loop']);
  387.         $context array_intersect_key($context$_parent) + $_parent;
  388.         // line 263
  389.         echo "        ],
  390.         \"description\": \"";
  391.         // line 264
  392.         echo twig_escape_filter($this->envtwig_slice($this->envtwig_replace_filter(((twig_get_attribute($this->env$this->source, ($context["Product"] ?? null), "description_list", [], "any"truetruefalse264)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source, ($context["Product"] ?? null), "description_list", [], "any"falsefalsefalse264), 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.'264$this->source); })()), "description_detail", [], "any"falsefalsefalse264))) : (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.'264$this->source); })()), "description_detail", [], "any"falsefalsefalse264))), ["
  393. => """ " => ""]), 0300), "html"nulltrue);
  394.         echo "\",
  395.         ";
  396.         // line 265
  397.         if (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.'265$this->source); })()), "code_min", [], "any"falsefalsefalse265)) {
  398.             // line 266
  399.             echo "        \"sku\": \"";
  400.             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.'266$this->source); })()), "code_min", [], "any"falsefalsefalse266), "html"nulltrue);
  401.             echo "\",
  402.         ";
  403.         }
  404.         // line 268
  405.         echo "        \"offers\": {
  406.             \"@type\": \"Offer\",
  407.             \"url\": \"";
  408.         // line 270
  409.         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.'270$this->source); })()), "id", [], "any"falsefalsefalse270)]), "html"nulltrue);
  410.         echo "\",
  411.             \"priceCurrency\": \"";
  412.         // line 271
  413.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["eccube_config"]) || array_key_exists("eccube_config"$context) ? $context["eccube_config"] : (function () { throw new RuntimeError('Variable "eccube_config" does not exist.'271$this->source); })()), "currency", [], "any"falsefalsefalse271), "html"nulltrue);
  414.         echo "\",
  415.             \"price\": ";
  416.         // line 272
  417.         ((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.'272$this->source); })()), "getPrice02IncTaxMin", [], "any"falsefalsefalse272)) ? (print (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.'272$this->source); })()), "getPrice02IncTaxMin", [], "any"falsefalsefalse272), "html"nulltrue))) : (print (0)));
  418.         echo ",
  419.             \"availability\": \"";
  420.         // line 273
  421.         echo ((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.'273$this->source); })()), "stock_find", [], "any"falsefalsefalse273)) ? ("InStock") : ("OutOfStock"));
  422.         echo "\"
  423.         }
  424.     }
  425.     </script>
  426. ";
  427.         
  428.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  429.         
  430.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  431.     }
  432.     // line 279
  433.     public function block_main($context, array $blocks = [])
  434.     {
  435.         $macros $this->macros;
  436.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  437.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  438.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  439.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  440.         // line 280
  441.         echo "    <div class=\"ec-productRole\">
  442.         <div class=\"ec-grid2\">
  443.             <div class=\"ec-grid2__cell\">
  444.                 <div class=\"ec-sliderItemRole\">
  445.                     <div class=\"item_visual\">
  446.                         ";
  447.         // line 286
  448.         $context['_parent'] = $context;
  449.         $context['_seq'] = twig_ensure_traversable(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.'286$this->source); })()), "ProductImage", [], "any"falsefalsefalse286));
  450.         $context['_iterated'] = false;
  451.         $context['loop'] = [
  452.           'parent' => $context['_parent'],
  453.           'index0' => 0,
  454.           'index'  => 1,
  455.           'first'  => true,
  456.         ];
  457.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  458.             $length count($context['_seq']);
  459.             $context['loop']['revindex0'] = $length 1;
  460.             $context['loop']['revindex'] = $length;
  461.             $context['loop']['length'] = $length;
  462.             $context['loop']['last'] = === $length;
  463.         }
  464.         foreach ($context['_seq'] as $context["_key"] => $context["ProductImage"]) {
  465.             // line 287
  466.             echo "                            <div class=\"slide-item\"><img src=\"";
  467.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($context["ProductImage"], "save_image"), "html"nulltrue);
  468.             echo "\" alt=\"";
  469.             ((twig_get_attribute($this->env$this->source$context["loop"], "first", [], "any"falsefalsefalse287)) ? (print (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.'287$this->source); })()), "name", [], "any"falsefalsefalse287), "html"nulltrue))) : (print ("")));
  470.             echo "\" width=\"550\" height=\"550\"";
  471.             if ((twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse287) > 1)) {
  472.                 echo " loading=\"lazy\"";
  473.             }
  474.             echo "></div>
  475.                         ";
  476.             $context['_iterated'] = true;
  477.             ++$context['loop']['index0'];
  478.             ++$context['loop']['index'];
  479.             $context['loop']['first'] = false;
  480.             if (isset($context['loop']['length'])) {
  481.                 --$context['loop']['revindex0'];
  482.                 --$context['loop']['revindex'];
  483.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  484.             }
  485.         }
  486.         if (!$context['_iterated']) {
  487.             // line 289
  488.             echo "                            <div class=\"slide-item\"><img src=\"";
  489.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['Eccube\Twig\Extension\EccubeExtension']->getNoImageProduct(""), "save_image"), "html"nulltrue);
  490.             echo "\" alt=\"";
  491.             ((twig_get_attribute($this->env$this->source$context["loop"], "first", [], "any"falsefalsefalse289)) ? (print (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.'289$this->source); })()), "name", [], "any"falsefalsefalse289), "html"nulltrue))) : (print ("")));
  492.             echo "\" width=\"550\" height=\"550\"></div>
  493.                         ";
  494.         }
  495.         $_parent $context['_parent'];
  496.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ProductImage'], $context['_parent'], $context['loop']);
  497.         $context array_intersect_key($context$_parent) + $_parent;
  498.         // line 291
  499.         echo "                    </div>
  500.                     <div class=\"item_nav\">
  501.                         ";
  502.         // line 293
  503.         $context['_parent'] = $context;
  504.         $context['_seq'] = twig_ensure_traversable(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.'293$this->source); })()), "ProductImage", [], "any"falsefalsefalse293));
  505.         $context['loop'] = [
  506.           'parent' => $context['_parent'],
  507.           'index0' => 0,
  508.           'index'  => 1,
  509.           'first'  => true,
  510.         ];
  511.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  512.             $length count($context['_seq']);
  513.             $context['loop']['revindex0'] = $length 1;
  514.             $context['loop']['revindex'] = $length;
  515.             $context['loop']['length'] = $length;
  516.             $context['loop']['last'] = === $length;
  517.         }
  518.         foreach ($context['_seq'] as $context["_key"] => $context["ProductImage"]) {
  519.             // line 294
  520.             echo "                            <div class=\"slideThumb\" data-index=\"";
  521.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["loop"], "index0", [], "any"falsefalsefalse294), "html"nulltrue);
  522.             echo "\"><img src=\"";
  523.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($context["ProductImage"], "save_image"), "html"nulltrue);
  524.             echo "\" alt=\"\" width=\"133\" height=\"133\" loading=\"lazy\"></div>
  525.                         ";
  526.             ++$context['loop']['index0'];
  527.             ++$context['loop']['index'];
  528.             $context['loop']['first'] = false;
  529.             if (isset($context['loop']['length'])) {
  530.                 --$context['loop']['revindex0'];
  531.                 --$context['loop']['revindex'];
  532.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  533.             }
  534.         }
  535.         $_parent $context['_parent'];
  536.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ProductImage'], $context['_parent'], $context['loop']);
  537.         $context array_intersect_key($context$_parent) + $_parent;
  538.         // line 296
  539.         echo "                    </div>
  540.                 </div>
  541.             </div>
  542.             <div class=\"ec-grid2__cell\">
  543.                 <div class=\"ec-productRole__profile\">
  544.                     ";
  545.         // line 302
  546.         echo "                    <div class=\"ec-productRole__title\">
  547.                         <h2 class=\"ec-headingTitle\">";
  548.         // line 303
  549.         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.'303$this->source); })()), "name", [], "any"falsefalsefalse303), "html"nulltrue);
  550.         echo "</h2>
  551.                     </div>
  552.                     ";
  553.         // line 306
  554.         echo "                    <ul class=\"ec-productRole__tags\">
  555.                         ";
  556.         // line 307
  557.         $context['_parent'] = $context;
  558.         $context['_seq'] = twig_ensure_traversable(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.'307$this->source); })()), "Tags", [], "any"falsefalsefalse307));
  559.         foreach ($context['_seq'] as $context["_key"] => $context["Tag"]) {
  560.             // line 308
  561.             echo "                            <li class=\"ec-productRole__tag tag_";
  562.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Tag"], "id", [], "any"falsefalsefalse308), "html"nulltrue);
  563.             echo "\">";
  564.             echo twig_escape_filter($this->env$context["Tag"], "html"nulltrue);
  565.             echo "</li>
  566.                         ";
  567.         }
  568.         $_parent $context['_parent'];
  569.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Tag'], $context['_parent'], $context['loop']);
  570.         $context array_intersect_key($context$_parent) + $_parent;
  571.         // line 310
  572.         echo "                    </ul>
  573.                     
  574.                     ";
  575.         // line 313
  576.         echo "                    ";
  577.         if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_USER")) {
  578.             // line 314
  579.             echo "                        ";
  580.             // line 315
  581.             echo "                        ";
  582.             if (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.'315$this->source); })()), "hasProductClass", [], "any"falsefalsefalse315)) {
  583.                 // line 316
  584.                 echo "<div class=\"ec-productRole__priceRegular\">
  585.                                 ";
  586.                 // line 317
  587.                 if (( !(null === 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.'317$this->source); })()), "getPrice01Min", [], "any"falsefalsefalse317)) && (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.'317$this->source); })()), "getPrice01IncTaxMin", [], "any"falsefalsefalse317) == 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.'317$this->source); })()), "getPrice01IncTaxMax", [], "any"falsefalsefalse317)))) {
  588.                     // line 318
  589.                     echo "                                    <span class=\"ec-productRole__priceRegularPrice\">";
  590.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("通常価格"), "html"nulltrue);
  591.                     echo ":<span class=\"price01-default\">";
  592.                     echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(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.'318$this->source); })()), "getPrice01IncTaxMin", [], "any"falsefalsefalse318)), "html"nulltrue);
  593.                     echo "</span></span>
  594.                                     <span class=\"ec-productRole__priceRegularTax\">";
  595.                     // line 319
  596.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("税込"), "html"nulltrue);
  597.                     echo "</span>
  598.                                 ";
  599.                 } elseif (( !(null === twig_get_attribute($this->env$this->source,                 // line 320
  600. (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'320$this->source); })()), "getPrice01Min", [], "any"falsefalsefalse320)) &&  !(null === 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.'320$this->source); })()), "getPrice01Max", [], "any"falsefalsefalse320)))) {
  601.                     // line 321
  602.                     echo "                                    <span class=\"ec-productRole__priceRegularPrice\">";
  603.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("通常価格"), "html"nulltrue);
  604.                     echo ":<span class=\"price01-default\">";
  605.                     echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(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.'321$this->source); })()), "getPrice01IncTaxMin", [], "any"falsefalsefalse321)), "html"nulltrue);
  606.                     echo "~ ";
  607.                     echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(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.'321$this->source); })()), "getPrice01IncTaxMax", [], "any"falsefalsefalse321)), "html"nulltrue);
  608.                     echo "</span></span>
  609.                                     <span class=\"ec-productRole__priceRegularTax\">";
  610.                     // line 322
  611.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("税込"), "html"nulltrue);
  612.                     echo "</span>
  613.                                 ";
  614.                 }
  615.                 // line 324
  616.                 echo "                            </div>
  617.                         ";
  618.             } else {
  619.                 // line 326
  620.                 echo "                            ";
  621.                 if ( !(null === 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.'326$this->source); })()), "getPrice01Max", [], "any"falsefalsefalse326))) {
  622.                     // line 327
  623.                     echo "                                <span class=\"ec-productRole__priceRegularPrice\">";
  624.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("通常価格"), "html"nulltrue);
  625.                     echo ":";
  626.                     echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(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.'327$this->source); })()), "getPrice01IncTaxMin", [], "any"falsefalsefalse327)), "html"nulltrue);
  627.                     echo "</span>
  628.                                 <span class=\"ec-productRole__priceRegularTax\">";
  629.                     // line 328
  630.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("税込"), "html"nulltrue);
  631.                     echo "</span>
  632.                             ";
  633.                 }
  634.                 // line 330
  635.                 echo "                        ";
  636.             }
  637.             // line 331
  638.             echo "                        ";
  639.             // line 332
  640.             echo "                        <div class=\"ec-productRole__price\">
  641.                             ";
  642.             // line 333
  643.             if (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.'333$this->source); })()), "hasProductClass", [], "any"falsefalsefalse333)) {
  644.                 // line 334
  645.                 if ((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.'334$this->source); })()), "getPrice02IncTaxMin", [], "any"falsefalsefalse334) == 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.'334$this->source); })()), "getPrice02IncTaxMax", [], "any"falsefalsefalse334))) {
  646.                     // line 335
  647.                     echo "                                    <div class=\"ec-price\">
  648.                                         <span class=\"ec-price__price price02-default\">";
  649.                     // line 336
  650.                     echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(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.'336$this->source); })()), "getPrice02IncTaxMin", [], "any"falsefalsefalse336)), "html"nulltrue);
  651.                     echo "</span>
  652.                                         <span class=\"ec-price__tax\">";
  653.                     // line 337
  654.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("税込"), "html"nulltrue);
  655.                     echo "</span>
  656.                                     </div>
  657.                                 ";
  658.                 } else {
  659.                     // line 340
  660.                     echo "                                    <div class=\"ec-price\">
  661.                                         <span class=\"ec-price__price price02-default\">";
  662.                     // line 341
  663.                     echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(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.'341$this->source); })()), "getPrice02IncTaxMin", [], "any"falsefalsefalse341)), "html"nulltrue);
  664.                     echo " ~ ";
  665.                     echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(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.'341$this->source); })()), "getPrice02IncTaxMax", [], "any"falsefalsefalse341)), "html"nulltrue);
  666.                     echo "</span>
  667.                                         <span class=\"ec-price__tax\">";
  668.                     // line 342
  669.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("税込"), "html"nulltrue);
  670.                     echo "</span>
  671.                                     </div>
  672.                                 ";
  673.                 }
  674.                 // line 345
  675.                 echo "                            ";
  676.             } else {
  677.                 // line 346
  678.                 echo "                                ";
  679.                 $context["getPrice02NoTaxMin"] = ceil((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.'346$this->source); })()), "getPrice02IncTaxMin", [], "any"falsefalsefalse346) / 1.100000000000000088817841970012523233890533447265625));
  680.                 // line 347
  681.                 echo "                                <div class=\"ec-price\">
  682.                                     <span class=\"ec-price__price\">";
  683.                 // line 348
  684.                 echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(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.'348$this->source); })()), "getPrice02IncTaxMin", [], "any"falsefalsefalse348)), "html"nulltrue);
  685.                 echo "</span>
  686.                                     <span class=\"ec-price__tax\">";
  687.                 // line 349
  688.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("税込"), "html"nulltrue);
  689.                 echo "</span>
  690.                                     <span class=\"ec-price__price\">";
  691.                 // line 350
  692.                 echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter((isset($context["getPrice02NoTaxMin"]) || array_key_exists("getPrice02NoTaxMin"$context) ? $context["getPrice02NoTaxMin"] : (function () { throw new RuntimeError('Variable "getPrice02NoTaxMin" does not exist.'350$this->source); })())), "html"nulltrue);
  693.                 echo "</span>
  694.                                     <span class=\"ec-price__tax\">";
  695.                 // line 351
  696.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("税抜"), "html"nulltrue);
  697.                 echo "</span>
  698.                                 </div>
  699.                             ";
  700.             }
  701.             // line 354
  702.             echo "                        </div>
  703.                     ";
  704.             // line 356
  705.             echo "                    ";
  706.         } else {
  707.             // line 357
  708.             echo "                        <div class=\"ec-productRole__priceRegular\">
  709.                             <span class=\"ec-productRole__priceRegularPrice\">";
  710.             // line 358
  711.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("通常価格"), "html"nulltrue);
  712.             echo ":<span class=\"price01-default\"></span></span>
  713.                         </div>
  714.                         ";
  715.             // line 361
  716.             echo "                        <div class=\"ec-productRole__price\">
  717.                             <div class=\"ec-price\">
  718.                                 <span class=\"ec-price__price price02-default\">お問い合わせ下さい</span>
  719.                             </div>
  720.                         </div>
  721.                     ";
  722.         }
  723.         // line 367
  724.         echo "                    ";
  725.         // line 368
  726.         echo "                    ";
  727.         if ( !twig_test_empty(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.'368$this->source); })()), "code_min", [], "any"falsefalsefalse368))) {
  728.             // line 369
  729.             echo "                        <div class=\"ec-productRole__code\">
  730.                             ";
  731.             // line 370
  732.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("在庫数"), "html"nulltrue);
  733.             echo ": 
  734.                             <span class=\"product-code-default\">
  735.                                 ";
  736.             // line 372
  737.             $context['_parent'] = $context;
  738.             $context['_seq'] = twig_ensure_traversable(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.'372$this->source); })()), "ProductClasses", [], "any"falsefalsefalse372));
  739.             foreach ($context['_seq'] as $context["_key"] => $context["productClass"]) {
  740.                 // line 373
  741.                 echo "                                    ";
  742.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["productClass"], "getSaleLimit", [], "method"falsefalsefalse373), "html"nulltrue);
  743.                 echo "
  744.                                 ";
  745.             }
  746.             $_parent $context['_parent'];
  747.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['productClass'], $context['_parent'], $context['loop']);
  748.             $context array_intersect_key($context$_parent) + $_parent;
  749.             // line 375
  750.             echo "                            </span>
  751.                         </div>
  752.                     ";
  753.         }
  754.         // line 378
  755.         echo "                    ";
  756.         // line 379
  757.         echo "                    ";
  758.         if ( !twig_test_empty(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.'379$this->source); })()), "code_min", [], "any"falsefalsefalse379))) {
  759.             // line 380
  760.             echo "                        <div class=\"ec-productRole__code\">
  761.                             ";
  762.             // line 381
  763.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("商品コード"), "html"nulltrue);
  764.             echo ": <span class=\"product-code-default\">";
  765.             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.'381$this->source); })()), "code_min", [], "any"falsefalsefalse381), "html"nulltrue);
  766.             if ((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.'381$this->source); })()), "code_min", [], "any"falsefalsefalse381) != 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.'381$this->source); })()), "code_max", [], "any"falsefalsefalse381))) {
  767.                 echo " ~ ";
  768.                 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.'381$this->source); })()), "code_max", [], "any"falsefalsefalse381), "html"nulltrue);
  769.             }
  770.             echo "</span>
  771.                         </div>
  772.                     ";
  773.         }
  774.         // line 384
  775.         echo "                    ";
  776.         // line 385
  777.         echo "                    ";
  778.         if ( !twig_test_empty(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.'385$this->source); })()), "ProductCategories", [], "any"falsefalsefalse385))) {
  779.             // line 386
  780.             echo "                        <div class=\"ec-productRole__category\">
  781.                             <div>";
  782.             // line 387
  783.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("関連カテゴリ"), "html"nulltrue);
  784.             echo "</div>
  785.                             ";
  786.             // line 388
  787.             $context['_parent'] = $context;
  788.             $context['_seq'] = twig_ensure_traversable(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.'388$this->source); })()), "ProductCategories", [], "any"falsefalsefalse388));
  789.             foreach ($context['_seq'] as $context["_key"] => $context["ProductCategory"]) {
  790.                 // line 389
  791.                 echo "                                <ul>
  792.                                     <li>
  793.                                         ";
  794.                 // line 391
  795.                 $context['_parent'] = $context;
  796.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["ProductCategory"], "Category", [], "any"falsefalsefalse391), "path", [], "any"falsefalsefalse391));
  797.                 $context['loop'] = [
  798.                   'parent' => $context['_parent'],
  799.                   'index0' => 0,
  800.                   'index'  => 1,
  801.                   'first'  => true,
  802.                 ];
  803.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  804.                     $length count($context['_seq']);
  805.                     $context['loop']['revindex0'] = $length 1;
  806.                     $context['loop']['revindex'] = $length;
  807.                     $context['loop']['length'] = $length;
  808.                     $context['loop']['last'] = === $length;
  809.                 }
  810.                 foreach ($context['_seq'] as $context["_key"] => $context["Category"]) {
  811.                     // line 392
  812.                     echo "                                            <a href=\"";
  813.                     echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
  814.                     echo "?category_id=";
  815.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Category"], "id", [], "any"falsefalsefalse392), "html"nulltrue);
  816.                     echo "\">";
  817.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Category"], "name", [], "any"falsefalsefalse392), "html"nulltrue);
  818.                     echo "</a>";
  819.                     if ((twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse392) == false)) {
  820.                         // line 393
  821.                         echo "                                            <span>></span>";
  822.                     }
  823.                     ++$context['loop']['index0'];
  824.                     ++$context['loop']['index'];
  825.                     $context['loop']['first'] = false;
  826.                     if (isset($context['loop']['length'])) {
  827.                         --$context['loop']['revindex0'];
  828.                         --$context['loop']['revindex'];
  829.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  830.                     }
  831.                 }
  832.                 $_parent $context['_parent'];
  833.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Category'], $context['_parent'], $context['loop']);
  834.                 $context array_intersect_key($context$_parent) + $_parent;
  835.                 // line 395
  836.                 echo "                                    </li>
  837.                                 </ul>
  838.                             ";
  839.             }
  840.             $_parent $context['_parent'];
  841.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ProductCategory'], $context['_parent'], $context['loop']);
  842.             $context array_intersect_key($context$_parent) + $_parent;
  843.             // line 398
  844.             echo "                        </div>
  845.                     ";
  846.         }
  847.         // line 400
  848.         echo "                    ";
  849.         if (((twig_date_format_filter($this->env"now""H") > 11) && (twig_date_format_filter($this->env"now""H") < 19))) {
  850.             // line 401
  851.             echo "                    ";
  852.         } else {
  853.             // line 402
  854.             echo "                        <p style=\"margin-top:20px;\">ご注文の受付は<span style=\"font-weight:bold;color:#ff0000;\">11時から19時まで</span>となっており、19時以降の注文の受付はできかねます。<br>
  855.                         翌11時より改めてご注文手続きをしていただきますようよろしくお願いいたします。</p>
  856.                     ";
  857.         }
  858.         // line 405
  859.         echo "
  860.                     ";
  861.         // line 407
  862.         echo "                    ";
  863.         if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_USER")) {
  864.             // line 408
  865.             echo "                    <form action=\"";
  866.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_add_cart", ["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.'408$this->source); })()), "id", [], "any"falsefalsefalse408)]), "html"nulltrue);
  867.             echo "\" method=\"post\" id=\"form1\" name=\"form1\">
  868.                         ";
  869.             // line 409
  870.             if (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.'409$this->source); })()), "stock_find", [], "any"falsefalsefalse409)) {
  871.                 // line 410
  872.                 echo "                            <div class=\"ec-productRole__actions\">
  873.                                 ";
  874.                 // line 411
  875.                 if (twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id1", [], "any"truetruefalse411)) {
  876.                     // line 412
  877.                     echo "                                    <div class=\"ec-select\">
  878.                                         ";
  879.                     // line 413
  880.                     echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'413$this->source); })()), "classcategory_id1", [], "any"falsefalsefalse413), 'row');
  881.                     echo "
  882.                                         ";
  883.                     // line 414
  884.                     echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'414$this->source); })()), "classcategory_id1", [], "any"falsefalsefalse414), 'errors');
  885.                     echo "
  886.                                     </div>
  887.                                     ";
  888.                     // line 416
  889.                     if (twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id2", [], "any"truetruefalse416)) {
  890.                         // line 417
  891.                         echo "                                        <div class=\"ec-select\">
  892.                                             ";
  893.                         // line 418
  894.                         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'418$this->source); })()), "classcategory_id2", [], "any"falsefalsefalse418), 'row');
  895.                         echo "
  896.                                             ";
  897.                         // line 419
  898.                         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'419$this->source); })()), "classcategory_id2", [], "any"falsefalsefalse419), 'errors');
  899.                         echo "
  900.                                         </div>
  901.                                     ";
  902.                     }
  903.                     // line 422
  904.                     echo "                                ";
  905.                 }
  906.                 // line 423
  907.                 echo "                                <div class=\"ec-numberInput\"><span>";
  908.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("数量"), "html"nulltrue);
  909.                 echo "</span>
  910.                                     ";
  911.                 // line 424
  912.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'424$this->source); })()), "quantity", [], "any"falsefalsefalse424), 'widget');
  913.                 echo "
  914.                                     ";
  915.                 // line 425
  916.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'425$this->source); })()), "quantity", [], "any"falsefalsefalse425), 'errors');
  917.                 echo "
  918.                                 </div>
  919.                             </div>
  920.                             <div class=\"ec-productRole__btn\">
  921.                                 <button type=\"submit\" class=\"ec-blockBtn--action add-cart\">
  922.                                     ";
  923.                 // line 430
  924.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートに入れる"), "html"nulltrue);
  925.                 echo "
  926.                                 </button>
  927.                             </div>
  928.                         ";
  929.             } else {
  930.                 // line 434
  931.                 echo "                            <div class=\"ec-productRole__btn\">
  932.                                 <button type=\"button\" class=\"ec-blockBtn--action\" disabled=\"disabled\">
  933.                                     ";
  934.                 // line 436
  935.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ただいま品切れ中です。"), "html"nulltrue);
  936.                 echo "
  937.                                 </button>
  938.                             </div>
  939.                         ";
  940.             }
  941.             // line 440
  942.             echo "
  943.                         ";
  944.             // line 441
  945.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'441$this->source); })()), 'rest');
  946.             echo "
  947.                     </form>
  948.                     ";
  949.         } else {
  950.             // line 444
  951.             echo "                    <div class=\"mt-3\"></div>
  952.                     ";
  953.         }
  954.         // line 446
  955.         echo "                    
  956.                     <div class=\"ec-modal\">
  957.                         <div class=\"ec-modal-overlay\">
  958.                             <div class=\"ec-modal-wrap\">
  959.                                 <span class=\"ec-modal-close\"><span class=\"ec-icon\"><img src=\"";
  960.         // line 450
  961.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/cross-dark.svg"), "html"nulltrue);
  962.         echo "\" alt=\"\"/></span></span>
  963.                                 <div id=\"ec-modal-header\" class=\"text-center\">";
  964.         // line 451
  965.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートに追加しました。"), "html"nulltrue);
  966.         echo "</div>
  967.                                 <div class=\"ec-modal-box\">
  968.                                     <div class=\"ec-role\">
  969.                                         <span class=\"ec-inlineBtn--cancel\">";
  970.         // line 454
  971.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お買い物を続ける"), "html"nulltrue);
  972.         echo "</span>
  973.                                         <a href=\"";
  974.         // line 455
  975.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cart");
  976.         echo "\" class=\"ec-inlineBtn--action\">";
  977.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートへ進む"), "html"nulltrue);
  978.         echo "</a>
  979.                                     </div>
  980.                                 </div>
  981.                             </div>
  982.                         </div>
  983.                     </div>
  984.                     ";
  985.         // line 461
  986.         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.'461$this->source); })()), "option_favorite_product", [], "any"falsefalsefalse461)) {
  987.             // line 462
  988.             echo "                        <form action=\"";
  989.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_add_favorite", ["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.'462$this->source); })()), "id", [], "any"falsefalsefalse462)]), "html"nulltrue);
  990.             echo "\" method=\"post\">
  991.                             <div class=\"ec-productRole__btn\">
  992.                                 ";
  993.             // line 464
  994.             if (((isset($context["is_favorite"]) || array_key_exists("is_favorite"$context) ? $context["is_favorite"] : (function () { throw new RuntimeError('Variable "is_favorite" does not exist.'464$this->source); })()) == false)) {
  995.                 // line 465
  996.                 echo "                                    <button type=\"submit\" id=\"favorite\" class=\"ec-blockBtn--cancel\">
  997.                                         ";
  998.                 // line 466
  999.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お気に入りに追加"), "html"nulltrue);
  1000.                 echo "
  1001.                                     </button>
  1002.                                 ";
  1003.             } else {
  1004.                 // line 469
  1005.                 echo "                                    <button type=\"submit\" id=\"favorite\" class=\"ec-blockBtn--cancel\"
  1006.                                             disabled=\"disabled\">";
  1007.                 // line 470
  1008.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お気に入りに追加済です。"), "html"nulltrue);
  1009.                 echo "
  1010.                                     </button>
  1011.                                 ";
  1012.             }
  1013.             // line 473
  1014.             echo "                            </div>
  1015.                         </form>
  1016.                     ";
  1017.         }
  1018.         // line 476
  1019.         echo "                    <div class=\"ec-productRole__description\">";
  1020.         echo twig_nl2br(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.'476$this->source); })()), "description_detail", [], "any"falsefalsefalse476));
  1021.         echo "
  1022.                     </div>
  1023.                 </div>
  1024.             </div>
  1025.         </div>
  1026.         ";
  1027.         // line 481
  1028.         if (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.'481$this->source); })()), "freearea", [], "any"falsefalsefalse481)) {
  1029.             // line 482
  1030.             echo "             <div class=\"ec-productRole__description\">
  1031.                  ";
  1032.             // line 483
  1033.             echo twig_include($this->env$contexttwig_template_from_string($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.'483$this->source); })()), "freearea", [], "any"falsefalsefalse483)));
  1034.             echo "
  1035.             </div>
  1036.         ";
  1037.         }
  1038.         // line 486
  1039.         echo "    </div>
  1040. ";
  1041.         
  1042.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  1043.         
  1044.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  1045.     }
  1046.     public function getTemplateName()
  1047.     {
  1048.         return "Product/detail.twig";
  1049.     }
  1050.     public function isTraitable()
  1051.     {
  1052.         return false;
  1053.     }
  1054.     public function getDebugInfo()
  1055.     {
  1056.         return array (  1085 => 486,  1079 => 483,  1076 => 482,  1074 => 481,  1065 => 476,  1060 => 473,  1054 => 470,  1051 => 469,  1045 => 466,  1042 => 465,  1040 => 464,  1034 => 462,  1032 => 461,  1021 => 455,  1017 => 454,  1011 => 451,  1007 => 450,  1001 => 446,  997 => 444,  991 => 441,  988 => 440,  981 => 436,  977 => 434,  970 => 430,  962 => 425,  958 => 424,  953 => 423,  950 => 422,  944 => 419,  940 => 418,  937 => 417,  935 => 416,  930 => 414,  926 => 413,  923 => 412,  921 => 411,  918 => 410,  916 => 409,  911 => 408,  908 => 407,  905 => 405,  900 => 402,  897 => 401,  894 => 400,  890 => 398,  882 => 395,  867 => 393,  858 => 392,  841 => 391,  837 => 389,  833 => 388,  829 => 387,  826 => 386,  823 => 385,  821 => 384,  809 => 381,  806 => 380,  803 => 379,  801 => 378,  796 => 375,  787 => 373,  783 => 372,  778 => 370,  775 => 369,  772 => 368,  770 => 367,  762 => 361,  757 => 358,  754 => 357,  751 => 356,  748 => 354,  742 => 351,  738 => 350,  734 => 349,  730 => 348,  727 => 347,  724 => 346,  721 => 345,  715 => 342,  709 => 341,  706 => 340,  700 => 337,  696 => 336,  693 => 335,  691 => 334,  689 => 333,  686 => 332,  684 => 331,  681 => 330,  676 => 328,  669 => 327,  666 => 326,  662 => 324,  657 => 322,  648 => 321,  646 => 320,  642 => 319,  635 => 318,  633 => 317,  630 => 316,  627 => 315,  625 => 314,  622 => 313,  618 => 310,  607 => 308,  603 => 307,  600 => 306,  595 => 303,  592 => 302,  585 => 296,  566 => 294,  549 => 293,  545 => 291,  534 => 289,  512 => 287,  494 => 286,  486 => 280,  476 => 279,  461 => 273,  457 => 272,  453 => 271,  449 => 270,  445 => 268,  439 => 266,  437 => 265,  432 => 264,  429 => 263,  419 => 261,  405 => 259,  397 => 258,  379 => 257,  374 => 255,  351 => 235,  341 => 228,  311 => 201,  306 => 198,  297 => 192,  293 => 190,  291 => 189,  288 => 188,  279 => 182,  275 => 180,  273 => 179,  207 => 115,  199 => 113,  197 => 112,  192 => 110,  189 => 109,  187 => 108,  173 => 97,  170 => 96,  160 => 95,  73 => 16,  63 => 15,  52 => 11,  50 => 13,  37 => 11,);
  1057.     }
  1058.     public function getSourceContext()
  1059.     {
  1060.         return new Source("{#
  1061. This file is part of EC-CUBE
  1062. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  1063. http://www.ec-cube.co.jp/
  1064. For the full copyright and license information, please view the LICENSE
  1065. file that was distributed with this source code.
  1066. #}
  1067. {% extends 'default_frame.twig' %}
  1068. {% set body_class = 'product_page' %}
  1069. {% block stylesheet %}
  1070.     <style>
  1071.         .slick-slider {
  1072.             margin-bottom: 30px;
  1073.         }
  1074.         .slick-dots {
  1075.             position: absolute;
  1076.             bottom: -45px;
  1077.             display: block;
  1078.             width: 100%;
  1079.             padding: 0;
  1080.             list-style: none;
  1081.             text-align: center;
  1082.         }
  1083.         .slick-dots li {
  1084.             position: relative;
  1085.             display: inline-block;
  1086.             width: 20px;
  1087.             height: 20px;
  1088.             margin: 0 5px;
  1089.             padding: 0;
  1090.             cursor: pointer;
  1091.         }
  1092.         .slick-dots li button {
  1093.             font-size: 0;
  1094.             line-height: 0;
  1095.             display: block;
  1096.             width: 20px;
  1097.             height: 20px;
  1098.             padding: 5px;
  1099.             cursor: pointer;
  1100.             color: transparent;
  1101.             border: 0;
  1102.             outline: none;
  1103.             background: transparent;
  1104.         }
  1105.         .slick-dots li button:hover,
  1106.         .slick-dots li button:focus {
  1107.             outline: none;
  1108.         }
  1109.         .slick-dots li button:hover:before,
  1110.         .slick-dots li button:focus:before {
  1111.             opacity: 1;
  1112.         }
  1113.         .slick-dots li button:before {
  1114.             content: \" \";
  1115.             line-height: 20px;
  1116.             position: absolute;
  1117.             top: 0;
  1118.             left: 0;
  1119.             width: 12px;
  1120.             height: 12px;
  1121.             text-align: center;
  1122.             opacity: .25;
  1123.             background-color: black;
  1124.             border-radius: 50%;
  1125.         }
  1126.         .slick-dots li.slick-active button:before {
  1127.             opacity: .75;
  1128.             background-color: black;
  1129.         }
  1130.         .slick-dots li button.thumbnail img {
  1131.             width: 0;
  1132.             height: 0;
  1133.         }
  1134.     </style>
  1135. {% endblock %}
  1136. {% block javascript %}
  1137.     <script>
  1138.         eccube.classCategories = {{ class_categories_as_json(Product)|raw }};
  1139.         // 規格2に選択肢を割り当てる。
  1140.         function fnSetClassCategories(form, classcat_id2_selected) {
  1141.             var \$form = \$(form);
  1142.             var product_id = \$form.find('input[name=product_id]').val();
  1143.             var \$sele1 = \$form.find('select[name=classcategory_id1]');
  1144.             var \$sele2 = \$form.find('select[name=classcategory_id2]');
  1145.             eccube.setClassCategories(\$form, product_id, \$sele1, \$sele2, classcat_id2_selected);
  1146.         }
  1147.         {% if form.classcategory_id2 is defined %}
  1148.         fnSetClassCategories(
  1149.             \$('#form1'), {{ form.classcategory_id2.vars.value|json_encode|raw }}
  1150.         );
  1151.         {% elseif form.classcategory_id1 is defined %}
  1152.         eccube.checkStock(\$('#form1'), {{ Product.id }}, {{ form.classcategory_id1.vars.value|json_encode|raw }}, null);
  1153.         {% endif %}
  1154.     </script>
  1155.     <script>
  1156.         \$(function() {
  1157.             // bfcache無効化
  1158.             \$(window).bind('pageshow', function(event) {
  1159.                 if (event.originalEvent.persisted) {
  1160.                     location.reload(true);
  1161.                 }
  1162.             });
  1163.             // Core Web Vital の Cumulative Layout Shift(CLS)対策のため
  1164.             // img タグに width, height が付与されている.
  1165.             // 630px 未満の画面サイズでは縦横比が壊れるための対策
  1166.             // see https://github.com/EC-CUBE/ec-cube/pull/5023
  1167.             \$('.ec-grid2__cell').hide();
  1168.             var removeSize = function () {
  1169.                 \$('.slide-item').height('');
  1170.                 \$('.slide-item img')
  1171.                     .removeAttr('width')
  1172.                     .removeAttr('height')
  1173.                     .removeAttr('style');
  1174.             };
  1175.             var slickInitial = function(slick) {
  1176.                 \$('.ec-grid2__cell').fadeIn(1500);
  1177.                 var baseHeight = \$(slick.target).height();
  1178.                 var baseWidth = \$(slick.target).width();
  1179.                 var rate = baseWidth / baseHeight;
  1180.                 \$('.slide-item').height(baseHeight * rate); // 余白を削除する
  1181.                 // transform を使用することでCLSの影響を受けないようにする
  1182.                 \$('.slide-item img')
  1183.                     .css(
  1184.                         {
  1185.                             'transform-origin': 'top left',
  1186.                             'transform': 'scaleY(' + rate + ')',
  1187.                             'transition': 'transform .1s'
  1188.                         }
  1189.                     );
  1190.                 // 正しいサイズに近くなったら属性を解除する
  1191.                 setTimeout(removeSize, 500);
  1192.             };
  1193.             \$('.item_visual').on('init', slickInitial);
  1194.             // リサイズ時は CLS の影響を受けないため属性を解除する
  1195.             \$(window).resize(removeSize);
  1196.             \$('.item_visual').slick({
  1197.                 dots: false,
  1198.                 arrows: false,
  1199.                 responsive: [{
  1200.                     breakpoint: 768,
  1201.                     settings: {
  1202.                         dots: true
  1203.                     }
  1204.                 }]
  1205.             });
  1206.             \$('.slideThumb').on('click', function() {
  1207.                 var index = \$(this).attr('data-index');
  1208.                 \$('.item_visual').slick('slickGoTo', index, false);
  1209.             })
  1210.         });
  1211.     </script>
  1212.     <script>
  1213.         \$(function() {
  1214.             \$('.add-cart').on('click', function(event) {
  1215.                 {% if form.classcategory_id1 is defined %}
  1216.                 // 規格1フォームの必須チェック
  1217.                 if (\$('#classcategory_id1').val() == '__unselected' || \$('#classcategory_id1').val() == '') {
  1218.                     \$('#classcategory_id1')[0].setCustomValidity('{{ '項目が選択されていません'|trans }}');
  1219.                     return true;
  1220.                 } else {
  1221.                     \$('#classcategory_id1')[0].setCustomValidity('');
  1222.                 }
  1223.                 {% endif %}
  1224.                 {% if form.classcategory_id2 is defined %}
  1225.                 // 規格2フォームの必須チェック
  1226.                 if (\$('#classcategory_id2').val() == '__unselected' || \$('#classcategory_id2').val() == '') {
  1227.                     \$('#classcategory_id2')[0].setCustomValidity('{{ '項目が選択されていません'|trans }}');
  1228.                     return true;
  1229.                 } else {
  1230.                     \$('#classcategory_id2')[0].setCustomValidity('');
  1231.                 }
  1232.                 {% endif %}
  1233.                 // 個数フォームのチェック
  1234.                 if (\$('#quantity').val() < 1) {
  1235.                     \$('#quantity')[0].setCustomValidity('{{ '1以上で入力してください。'|trans }}');
  1236.                     return true;
  1237.                 } else {
  1238.                     \$('#quantity')[0].setCustomValidity('');
  1239.                 }
  1240.                 event.preventDefault();
  1241.                 \$form = \$('#form1');
  1242.                 \$.ajax({
  1243.                     url: \$form.attr('action'),
  1244.                     type: \$form.attr('method'),
  1245.                     data: \$form.serialize(),
  1246.                     dataType: 'json',
  1247.                     beforeSend: function(xhr, settings) {
  1248.                         // Buttonを無効にする
  1249.                         \$('.add-cart').prop('disabled', true);
  1250.                     }
  1251.                 }).done(function(data) {
  1252.                     // レスポンス内のメッセージをalertで表示
  1253.                     \$.each(data.messages, function() {
  1254.                         \$('#ec-modal-header').text(this);
  1255.                     });
  1256.                     \$('.ec-modal').show()
  1257.                     // カートブロックを更新する
  1258.                     \$.ajax({
  1259.                         url: \"{{ url('block_cart') }}\",
  1260.                         type: 'GET',
  1261.                         dataType: 'html'
  1262.                     }).done(function(html) {
  1263.                         \$('.ec-headerRole__cart').html(html);
  1264.                     });
  1265.                 }).fail(function(data) {
  1266.                     alert('{{ 'カートへの追加に失敗しました。'|trans }}');
  1267.                 }).always(function(data) {
  1268.                     // Buttonを有効にする
  1269.                     \$('.add-cart').prop('disabled', false);
  1270.                 });
  1271.             });
  1272.         });
  1273.         \$('.ec-modal-wrap').on('click', function(e) {
  1274.             // モーダル内の処理は外側にバブリングさせない
  1275.             e.stopPropagation();
  1276.         });
  1277.         \$('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function() {
  1278.             \$('.ec-modal').hide()
  1279.         });
  1280.     </script>
  1281.     <script type=\"application/ld+json\">
  1282.     {
  1283.         \"@context\": \"https://schema.org/\",
  1284.         \"@type\": \"Product\",
  1285.         \"name\": \"{{ Product.name }}\",
  1286.         \"image\": [
  1287.             {% for img in Product.ProductImage %}
  1288.                 \"{{ app.request.schemeAndHttpHost }}{{ asset(img, 'save_image') }}\"{% if not loop.last %},{% endif %}
  1289.             {% else %}
  1290.                 \"{{ app.request.schemeAndHttpHost }}{{ asset(''|no_image_product, 'save_image') }}\"
  1291.             {% endfor %}
  1292.         ],
  1293.         \"description\": \"{{ Product.description_list | default(Product.description_detail) | replace({'\\n': '', '\\r': ''}) | slice(0,300) }}\",
  1294.         {% if Product.code_min %}
  1295.         \"sku\": \"{{ Product.code_min }}\",
  1296.         {% endif %}
  1297.         \"offers\": {
  1298.             \"@type\": \"Offer\",
  1299.             \"url\": \"{{ url('product_detail', {'id': Product.id}) }}\",
  1300.             \"priceCurrency\": \"{{ eccube_config.currency }}\",
  1301.             \"price\": {{ Product.getPrice02IncTaxMin ? Product.getPrice02IncTaxMin : 0}},
  1302.             \"availability\": \"{{ Product.stock_find ? \"InStock\" : \"OutOfStock\" }}\"
  1303.         }
  1304.     }
  1305.     </script>
  1306. {% endblock %}
  1307. {% block main %}
  1308.     <div class=\"ec-productRole\">
  1309.         <div class=\"ec-grid2\">
  1310.             <div class=\"ec-grid2__cell\">
  1311.                 <div class=\"ec-sliderItemRole\">
  1312.                     <div class=\"item_visual\">
  1313.                         {% for ProductImage in Product.ProductImage %}
  1314.                             <div class=\"slide-item\"><img src=\"{{ asset(ProductImage, 'save_image') }}\" alt=\"{{ loop.first ? Product.name : '' }}\" width=\"550\" height=\"550\"{% if loop.index > 1 %} loading=\"lazy\"{% endif %}></div>
  1315.                         {% else %}
  1316.                             <div class=\"slide-item\"><img src=\"{{ asset(''|no_image_product, 'save_image') }}\" alt=\"{{ loop.first ? Product.name : '' }}\" width=\"550\" height=\"550\"></div>
  1317.                         {% endfor %}
  1318.                     </div>
  1319.                     <div class=\"item_nav\">
  1320.                         {% for ProductImage in Product.ProductImage %}
  1321.                             <div class=\"slideThumb\" data-index=\"{{ loop.index0 }}\"><img src=\"{{ asset(ProductImage, 'save_image') }}\" alt=\"\" width=\"133\" height=\"133\" loading=\"lazy\"></div>
  1322.                         {% endfor %}
  1323.                     </div>
  1324.                 </div>
  1325.             </div>
  1326.             <div class=\"ec-grid2__cell\">
  1327.                 <div class=\"ec-productRole__profile\">
  1328.                     {# 商品名 #}
  1329.                     <div class=\"ec-productRole__title\">
  1330.                         <h2 class=\"ec-headingTitle\">{{ Product.name }}</h2>
  1331.                     </div>
  1332.                     {# タグ #}
  1333.                     <ul class=\"ec-productRole__tags\">
  1334.                         {% for Tag in Product.Tags %}
  1335.                             <li class=\"ec-productRole__tag tag_{{ Tag.id }}\">{{ Tag }}</li>
  1336.                         {% endfor %}
  1337.                     </ul>
  1338.                     
  1339.                     {# ログイン中 #}
  1340.                     {% if is_granted('ROLE_USER') %}
  1341.                         {# 通常価格 #}
  1342.                         {% if Product.hasProductClass -%}
  1343.                             <div class=\"ec-productRole__priceRegular\">
  1344.                                 {% if Product.getPrice01Min is not null and Product.getPrice01IncTaxMin == Product.getPrice01IncTaxMax %}
  1345.                                     <span class=\"ec-productRole__priceRegularPrice\">{{ '通常価格'|trans }}:<span class=\"price01-default\">{{ Product.getPrice01IncTaxMin|price }}</span></span>
  1346.                                     <span class=\"ec-productRole__priceRegularTax\">{{ '税込'|trans }}</span>
  1347.                                 {% elseif Product.getPrice01Min is not null and Product.getPrice01Max is not null %}
  1348.                                     <span class=\"ec-productRole__priceRegularPrice\">{{ '通常価格'|trans }}:<span class=\"price01-default\">{{ Product.getPrice01IncTaxMin|price }}~ {{ Product.getPrice01IncTaxMax|price }}</span></span>
  1349.                                     <span class=\"ec-productRole__priceRegularTax\">{{ '税込'|trans }}</span>
  1350.                                 {% endif %}
  1351.                             </div>
  1352.                         {% else %}
  1353.                             {% if Product.getPrice01Max is not null %}
  1354.                                 <span class=\"ec-productRole__priceRegularPrice\">{{ '通常価格'|trans }}:{{ Product.getPrice01IncTaxMin|price }}</span>
  1355.                                 <span class=\"ec-productRole__priceRegularTax\">{{ '税込'|trans }}</span>
  1356.                             {% endif %}
  1357.                         {% endif %}
  1358.                         {# 販売価格 #}
  1359.                         <div class=\"ec-productRole__price\">
  1360.                             {% if Product.hasProductClass -%}
  1361.                                 {% if Product.getPrice02IncTaxMin == Product.getPrice02IncTaxMax %}
  1362.                                     <div class=\"ec-price\">
  1363.                                         <span class=\"ec-price__price price02-default\">{{ Product.getPrice02IncTaxMin|price }}</span>
  1364.                                         <span class=\"ec-price__tax\">{{ '税込'|trans }}</span>
  1365.                                     </div>
  1366.                                 {% else %}
  1367.                                     <div class=\"ec-price\">
  1368.                                         <span class=\"ec-price__price price02-default\">{{ Product.getPrice02IncTaxMin|price }} ~ {{ Product.getPrice02IncTaxMax|price }}</span>
  1369.                                         <span class=\"ec-price__tax\">{{ '税込'|trans }}</span>
  1370.                                     </div>
  1371.                                 {% endif %}
  1372.                             {% else %}
  1373.                                 {% set getPrice02NoTaxMin = ceil(Product.getPrice02IncTaxMin / 1.1) %}
  1374.                                 <div class=\"ec-price\">
  1375.                                     <span class=\"ec-price__price\">{{ Product.getPrice02IncTaxMin|price }}</span>
  1376.                                     <span class=\"ec-price__tax\">{{ '税込'|trans }}</span>
  1377.                                     <span class=\"ec-price__price\">{{ getPrice02NoTaxMin|price }}</span>
  1378.                                     <span class=\"ec-price__tax\">{{ '税抜'|trans }}</span>
  1379.                                 </div>
  1380.                             {% endif %}
  1381.                         </div>
  1382.                     {#ログイン前#}
  1383.                     {% else %}
  1384.                         <div class=\"ec-productRole__priceRegular\">
  1385.                             <span class=\"ec-productRole__priceRegularPrice\">{{ '通常価格'|trans }}:<span class=\"price01-default\"></span></span>
  1386.                         </div>
  1387.                         {# 販売価格 #}
  1388.                         <div class=\"ec-productRole__price\">
  1389.                             <div class=\"ec-price\">
  1390.                                 <span class=\"ec-price__price price02-default\">お問い合わせ下さい</span>
  1391.                             </div>
  1392.                         </div>
  1393.                     {% endif %}
  1394.                     {# 在庫数 #}
  1395.                     {% if Product.code_min is not empty %}
  1396.                         <div class=\"ec-productRole__code\">
  1397.                             {{ '在庫数'|trans }}: 
  1398.                             <span class=\"product-code-default\">
  1399.                                 {% for productClass in Product.ProductClasses %}
  1400.                                     {{ productClass.getSaleLimit() }}
  1401.                                 {% endfor %}
  1402.                             </span>
  1403.                         </div>
  1404.                     {% endif %}
  1405.                     {# 商品コード #}
  1406.                     {% if Product.code_min is not empty %}
  1407.                         <div class=\"ec-productRole__code\">
  1408.                             {{ '商品コード'|trans }}: <span class=\"product-code-default\">{{ Product.code_min }}{% if Product.code_min != Product.code_max %} ~ {{ Product.code_max }}{% endif %}</span>
  1409.                         </div>
  1410.                     {% endif %}
  1411.                     {# 関連カテゴリ #}
  1412.                     {% if Product.ProductCategories is not empty %}
  1413.                         <div class=\"ec-productRole__category\">
  1414.                             <div>{{ '関連カテゴリ'|trans }}</div>
  1415.                             {% for ProductCategory in Product.ProductCategories %}
  1416.                                 <ul>
  1417.                                     <li>
  1418.                                         {% for Category in ProductCategory.Category.path %}
  1419.                                             <a href=\"{{ url('product_list') }}?category_id={{ Category.id }}\">{{ Category.name }}</a> {%- if loop.last == false %}
  1420.                                             <span>></span>{% endif -%}
  1421.                                         {% endfor %}
  1422.                                     </li>
  1423.                                 </ul>
  1424.                             {% endfor %}
  1425.                         </div>
  1426.                     {% endif %}
  1427.                     {% if \"now\"|date(\"H\") > 11 and \"now\"|date(\"H\") < 19 %}
  1428.                     {% else %}
  1429.                         <p style=\"margin-top:20px;\">ご注文の受付は<span style=\"font-weight:bold;color:#ff0000;\">11時から19時まで</span>となっており、19時以降の注文の受付はできかねます。<br>
  1430.                         翌11時より改めてご注文手続きをしていただきますようよろしくお願いいたします。</p>
  1431.                     {% endif %}
  1432.                     {# ログイン中 #}
  1433.                     {% if is_granted('ROLE_USER') %}
  1434.                     <form action=\"{{ url('product_add_cart', {id:Product.id}) }}\" method=\"post\" id=\"form1\" name=\"form1\">
  1435.                         {% if Product.stock_find %}
  1436.                             <div class=\"ec-productRole__actions\">
  1437.                                 {% if form.classcategory_id1 is defined %}
  1438.                                     <div class=\"ec-select\">
  1439.                                         {{ form_row(form.classcategory_id1) }}
  1440.                                         {{ form_errors(form.classcategory_id1) }}
  1441.                                     </div>
  1442.                                     {% if form.classcategory_id2 is defined %}
  1443.                                         <div class=\"ec-select\">
  1444.                                             {{ form_row(form.classcategory_id2) }}
  1445.                                             {{ form_errors(form.classcategory_id2) }}
  1446.                                         </div>
  1447.                                     {% endif %}
  1448.                                 {% endif %}
  1449.                                 <div class=\"ec-numberInput\"><span>{{ '数量'|trans }}</span>
  1450.                                     {{ form_widget(form.quantity) }}
  1451.                                     {{ form_errors(form.quantity) }}
  1452.                                 </div>
  1453.                             </div>
  1454.                             <div class=\"ec-productRole__btn\">
  1455.                                 <button type=\"submit\" class=\"ec-blockBtn--action add-cart\">
  1456.                                     {{ 'カートに入れる'|trans }}
  1457.                                 </button>
  1458.                             </div>
  1459.                         {% else %}
  1460.                             <div class=\"ec-productRole__btn\">
  1461.                                 <button type=\"button\" class=\"ec-blockBtn--action\" disabled=\"disabled\">
  1462.                                     {{ 'ただいま品切れ中です。'|trans }}
  1463.                                 </button>
  1464.                             </div>
  1465.                         {% endif %}
  1466.                         {{ form_rest(form) }}
  1467.                     </form>
  1468.                     {% else %}
  1469.                     <div class=\"mt-3\"></div>
  1470.                     {% endif %}
  1471.                     
  1472.                     <div class=\"ec-modal\">
  1473.                         <div class=\"ec-modal-overlay\">
  1474.                             <div class=\"ec-modal-wrap\">
  1475.                                 <span class=\"ec-modal-close\"><span class=\"ec-icon\"><img src=\"{{ asset('assets/icon/cross-dark.svg') }}\" alt=\"\"/></span></span>
  1476.                                 <div id=\"ec-modal-header\" class=\"text-center\">{{ 'カートに追加しました。'|trans }}</div>
  1477.                                 <div class=\"ec-modal-box\">
  1478.                                     <div class=\"ec-role\">
  1479.                                         <span class=\"ec-inlineBtn--cancel\">{{ 'お買い物を続ける'|trans }}</span>
  1480.                                         <a href=\"{{ url('cart') }}\" class=\"ec-inlineBtn--action\">{{ 'カートへ進む'|trans }}</a>
  1481.                                     </div>
  1482.                                 </div>
  1483.                             </div>
  1484.                         </div>
  1485.                     </div>
  1486.                     {% if BaseInfo.option_favorite_product %}
  1487.                         <form action=\"{{ url('product_add_favorite', {id:Product.id}) }}\" method=\"post\">
  1488.                             <div class=\"ec-productRole__btn\">
  1489.                                 {% if is_favorite == false %}
  1490.                                     <button type=\"submit\" id=\"favorite\" class=\"ec-blockBtn--cancel\">
  1491.                                         {{ 'お気に入りに追加'|trans }}
  1492.                                     </button>
  1493.                                 {% else %}
  1494.                                     <button type=\"submit\" id=\"favorite\" class=\"ec-blockBtn--cancel\"
  1495.                                             disabled=\"disabled\">{{ 'お気に入りに追加済です。'|trans }}
  1496.                                     </button>
  1497.                                 {% endif %}
  1498.                             </div>
  1499.                         </form>
  1500.                     {% endif %}
  1501.                     <div class=\"ec-productRole__description\">{{ Product.description_detail|raw|nl2br }}
  1502.                     </div>
  1503.                 </div>
  1504.             </div>
  1505.         </div>
  1506.         {% if Product.freearea %}
  1507.              <div class=\"ec-productRole__description\">
  1508.                  {{ include(template_from_string(Product.freearea)) }}
  1509.             </div>
  1510.         {% endif %}
  1511.     </div>
  1512. {% endblock %}""Product/detail.twig""/home/wai2cojp/sysdemo.pro/public_html/kinpara.sysdemo.pro/shop/app/template/default/Product/detail.twig");
  1513.     }
  1514. }