var/cache/dev/twig/92/92dbeaf1467d9dc88376fc548d42e6d9.php line 53

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* __string_template__cc189af43b48ccfbef70241bf20f6bfe */
  14. class __TwigTemplate_ffe8cc58f683cca0a01479b13554667d 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_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""__string_template__cc189af43b48ccfbef70241bf20f6bfe"));
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""__string_template__cc189af43b48ccfbef70241bf20f6bfe"));
  40.         // line 13
  41.         $context["body_class"] = "product_page";
  42.         // line 11
  43.         $this->parent $this->loadTemplate("default_frame.twig""__string_template__cc189af43b48ccfbef70241bf20f6bfe"11);
  44.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  45.         
  46.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  47.         
  48.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  49.     }
  50.     // line 15
  51.     public function block_stylesheet($context, array $blocks = [])
  52.     {
  53.         $macros $this->macros;
  54.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  55.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  56.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  57.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_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_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  127.         
  128.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  129.     }
  130.     // line 95
  131.     public function block_javascript($context, array $blocks = [])
  132.     {
  133.         $macros $this->macros;
  134.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  135.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  136.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  137.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_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_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  429.         
  430.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  431.     }
  432.     // line 279
  433.     public function block_main($context, array $blocks = [])
  434.     {
  435.         $macros $this->macros;
  436.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  437.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  438.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  439.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_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 "                        <div class=\"sp\"></div>
  573.                     </ul>
  574.                     
  575.                    
  576.                     ";
  577.         // line 315
  578.         echo "                    ";
  579.         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)) {
  580.             // line 316
  581.             echo "<div class=\"ec-productRole__priceRegular\">
  582.                             ";
  583.             // line 317
  584.             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)))) {
  585.                 // line 318
  586.                 echo "                                <span class=\"ec-productRole__priceRegularPrice\">";
  587.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("通常価格"), "html"nulltrue);
  588.                 echo ":<span class=\"price01-default\">";
  589.                 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);
  590.                 echo "</span></span>
  591.                                 <span class=\"ec-productRole__priceRegularTax\">";
  592.                 // line 319
  593.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("税込"), "html"nulltrue);
  594.                 echo "</span>
  595.                             ";
  596.             } elseif (( !(null === twig_get_attribute($this->env$this->source,             // line 320
  597. (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)))) {
  598.                 // line 321
  599.                 echo "                                <span class=\"ec-productRole__priceRegularPrice\">";
  600.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("通常価格"), "html"nulltrue);
  601.                 echo ":<span class=\"price01-default\">";
  602.                 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);
  603.                 echo "~ ";
  604.                 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);
  605.                 echo "</span></span>
  606.                                 <span class=\"ec-productRole__priceRegularTax\">";
  607.                 // line 322
  608.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("税込"), "html"nulltrue);
  609.                 echo "</span>
  610.                             ";
  611.             }
  612.             // line 324
  613.             echo "                        </div>
  614.                     ";
  615.         } else {
  616.             // line 326
  617.             echo "                        ";
  618.             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))) {
  619.                 // line 327
  620.                 echo "                            <span class=\"ec-productRole__priceRegularPrice\">";
  621.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("通常価格"), "html"nulltrue);
  622.                 echo ":";
  623.                 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);
  624.                 echo "</span>
  625.                             <span class=\"ec-productRole__priceRegularTax\">";
  626.                 // line 328
  627.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("税込"), "html"nulltrue);
  628.                 echo "</span>
  629.                         ";
  630.             }
  631.             // line 330
  632.             echo "                    ";
  633.         }
  634.         // line 331
  635.         echo "                    ";
  636.         // line 332
  637.         echo "                    <div class=\"ec-productRole__price\">
  638.                         ";
  639.         // line 333
  640.         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)) {
  641.             // line 334
  642.             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))) {
  643.                 // line 335
  644.                 echo "                                <div class=\"ec-price\">
  645.                                     <span class=\"ec-price__price price02-default\">";
  646.                 // line 336
  647.                 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);
  648.                 echo "</span>
  649.                                     <span class=\"ec-price__tax\">";
  650.                 // line 337
  651.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("税込"), "html"nulltrue);
  652.                 echo "</span>
  653.                                 </div>
  654.                             ";
  655.             } else {
  656.                 // line 340
  657.                 echo "                                <div class=\"ec-price\">
  658.                                     <span class=\"ec-price__price price02-default\">";
  659.                 // line 341
  660.                 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);
  661.                 echo " ~ ";
  662.                 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);
  663.                 echo "</span>
  664.                                     <span class=\"ec-price__tax\">";
  665.                 // line 342
  666.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("税込"), "html"nulltrue);
  667.                 echo "</span>
  668.                                 </div>
  669.                             ";
  670.             }
  671.             // line 345
  672.             echo "                        ";
  673.         } else {
  674.             // line 346
  675.             echo "                            <div class=\"ec-price\">
  676.                                 <span class=\"ec-price__price\">";
  677.             // line 347
  678.             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.'347$this->source); })()), "getPrice02IncTaxMin", [], "any"falsefalsefalse347)), "html"nulltrue);
  679.             echo "</span>
  680.                                 <span class=\"ec-price__tax\">";
  681.             // line 348
  682.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("税込"), "html"nulltrue);
  683.             echo "</span>
  684.                             </div>
  685.                         ";
  686.         }
  687.         // line 351
  688.         echo "                    </div>
  689.                     
  690.                     
  691.                     
  692.                     <form action=\"";
  693.         // line 356
  694.         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.'356$this->source); })()), "id", [], "any"falsefalsefalse356)]), "html"nulltrue);
  695.         echo "\" method=\"post\" id=\"form1\" name=\"form1\">
  696.                         ";
  697.         // line 357
  698.         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.'357$this->source); })()), "stock_find", [], "any"falsefalsefalse357)) {
  699.             // line 358
  700.             echo "                            <div class=\"ec-productRole__actions\">
  701.                                 ";
  702.             // line 359
  703.             if (twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id1", [], "any"truetruefalse359)) {
  704.                 // line 360
  705.                 echo "                                    <div class=\"ec-select\">
  706.                                         ";
  707.                 // line 361
  708.                 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.'361$this->source); })()), "classcategory_id1", [], "any"falsefalsefalse361), 'row');
  709.                 echo "
  710.                                         ";
  711.                 // line 362
  712.                 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.'362$this->source); })()), "classcategory_id1", [], "any"falsefalsefalse362), 'errors');
  713.                 echo "
  714.                                     </div>
  715.                                     ";
  716.                 // line 364
  717.                 if (twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id2", [], "any"truetruefalse364)) {
  718.                     // line 365
  719.                     echo "                                        <div class=\"ec-select\">
  720.                                             ";
  721.                     // line 366
  722.                     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.'366$this->source); })()), "classcategory_id2", [], "any"falsefalsefalse366), 'row');
  723.                     echo "
  724.                                             ";
  725.                     // line 367
  726.                     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.'367$this->source); })()), "classcategory_id2", [], "any"falsefalsefalse367), 'errors');
  727.                     echo "
  728.                                         </div>
  729.                                     ";
  730.                 }
  731.                 // line 370
  732.                 echo "                                ";
  733.             }
  734.             // line 371
  735.             echo "                                ";
  736.             echo $this->extensions['Eccube\Twig\Extension\IgnoreTwigSandboxErrorExtension']->twig_include($this->env$context"Product/option.twig");
  737.             echo "<div class=\"ec-numberInput\"><span>";
  738.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("数量"), "html"nulltrue);
  739.             echo "</span>
  740.                                     ";
  741.             // line 372
  742.             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.'372$this->source); })()), "quantity", [], "any"falsefalsefalse372), 'widget');
  743.             echo "
  744.                                     ";
  745.             // line 373
  746.             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.'373$this->source); })()), "quantity", [], "any"falsefalsefalse373), 'errors');
  747.             echo "
  748.                                 </div>
  749.                             </div>
  750.                             <div class=\"ec-productRole__btn\">
  751.                                 <button type=\"submit\" class=\"ec-blockBtn--action add-cart\">
  752.                                     ";
  753.             // line 378
  754.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートに入れる"), "html"nulltrue);
  755.             echo "
  756.                                 </button>
  757.                             </div>
  758.                         ";
  759.         } else {
  760.             // line 382
  761.             echo "                            <div class=\"ec-productRole__btn\">
  762.                                 <button type=\"button\" class=\"ec-blockBtn--action\" disabled=\"disabled\">
  763.                                     ";
  764.             // line 384
  765.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("SOLD OUT"), "html"nulltrue);
  766.             echo "
  767.                                 </button>
  768.                             </div>
  769.                         ";
  770.         }
  771.         // line 388
  772.         echo "
  773.                         ";
  774.         // line 389
  775.         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.'389$this->source); })()), 'rest');
  776.         echo "
  777.                     </form>
  778.                     
  779.                     
  780.             
  781.                     
  782.                     ";
  783.         // line 395
  784.         echo $this->extensions['Eccube\Twig\Extension\IgnoreTwigSandboxErrorExtension']->twig_include($this->env$context"Product/option_description.twig");
  785.         echo "<div class=\"ec-modal\">
  786.                         <div class=\"ec-modal-overlay\">
  787.                             <div class=\"ec-modal-wrap\">
  788.                                 <span class=\"ec-modal-close\"><span class=\"ec-icon\"><img src=\"";
  789.         // line 398
  790.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/cross-dark.svg"), "html"nulltrue);
  791.         echo "\" alt=\"\"/></span></span>
  792.                                 <div id=\"ec-modal-header\" class=\"text-center\">";
  793.         // line 399
  794.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートに追加しました。"), "html"nulltrue);
  795.         echo "</div>
  796.                                 <div class=\"ec-modal-box\">
  797.                                     <div class=\"ec-role\">
  798.                                         <span class=\"ec-inlineBtn--cancel\">";
  799.         // line 402
  800.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お買い物を続ける"), "html"nulltrue);
  801.         echo "</span>
  802.                                         <a href=\"";
  803.         // line 403
  804.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cart");
  805.         echo "\" class=\"ec-inlineBtn--action\">";
  806.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートへ進む"), "html"nulltrue);
  807.         echo "</a>
  808.                                     </div>
  809.                                 </div>
  810.                             </div>
  811.                         </div>
  812.                     </div>
  813.                     
  814.                     
  815.                     
  816.                     
  817.                     
  818.                     
  819.                     
  820.                     ";
  821.         // line 416
  822.         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.'416$this->source); })()), "option_favorite_product", [], "any"falsefalsefalse416)) {
  823.             // line 417
  824.             echo "                        <form action=\"";
  825.             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.'417$this->source); })()), "id", [], "any"falsefalsefalse417)]), "html"nulltrue);
  826.             echo "\" method=\"post\">
  827.                             <div class=\"ec-productRole__btn\">
  828.                                 ";
  829.             // line 419
  830.             if (((isset($context["is_favorite"]) || array_key_exists("is_favorite"$context) ? $context["is_favorite"] : (function () { throw new RuntimeError('Variable "is_favorite" does not exist.'419$this->source); })()) == false)) {
  831.                 // line 420
  832.                 echo "                                    <button type=\"submit\" id=\"favorite\" class=\"ec-blockBtn--cancel\">
  833.                                         ";
  834.                 // line 421
  835.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お気に入りに追加"), "html"nulltrue);
  836.                 echo "
  837.                                     </button>
  838.                                 ";
  839.             } else {
  840.                 // line 424
  841.                 echo "                                    <button type=\"submit\" id=\"favorite\" class=\"ec-blockBtn--cancel\"
  842.                                             disabled=\"disabled\">";
  843.                 // line 425
  844.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お気に入りに追加済です。"), "html"nulltrue);
  845.                 echo "
  846.                                     </button>
  847.                                 ";
  848.             }
  849.             // line 428
  850.             echo "                            </div>
  851.                         </form>
  852.                     ";
  853.         }
  854.         // line 431
  855.         echo "                    
  856.                     
  857.                     
  858.               
  859.                     
  860.                     
  861.                     <div class=\"ec-productRole__description\">";
  862.         // line 437
  863.         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.'437$this->source); })()), "description_detail", [], "any"falsefalsefalse437));
  864.         echo "
  865.                     </div>
  866.                     
  867.                     
  868.         
  869.                     
  870.                     
  871.                     
  872.                       ";
  873.         // line 446
  874.         echo "                    ";
  875.         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.'446$this->source); })()), "code_min", [], "any"falsefalsefalse446))) {
  876.             // line 447
  877.             echo "                        <div class=\"ec-productRole__code\">
  878.                             ";
  879.             // line 448
  880.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("商品コード"), "html"nulltrue);
  881.             echo ": <span class=\"product-code-default\">";
  882.             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.'448$this->source); })()), "code_min", [], "any"falsefalsefalse448), "html"nulltrue);
  883.             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.'448$this->source); })()), "code_min", [], "any"falsefalsefalse448) != 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.'448$this->source); })()), "code_max", [], "any"falsefalsefalse448))) {
  884.                 echo " ~ ";
  885.                 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.'448$this->source); })()), "code_max", [], "any"falsefalsefalse448), "html"nulltrue);
  886.             }
  887.             echo "</span>
  888.                         </div>
  889.                     ";
  890.         }
  891.         // line 451
  892.         echo "                    
  893.                    
  894.                     
  895.                     
  896.                     
  897.                     ";
  898.         // line 457
  899.         echo "                    ";
  900.         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.'457$this->source); })()), "ProductCategories", [], "any"falsefalsefalse457))) {
  901.             // line 458
  902.             echo "                        <div class=\"ec-productRole__category\">
  903.                             <div>";
  904.             // line 459
  905.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("関連カテゴリ"), "html"nulltrue);
  906.             echo "</div>
  907.                             ";
  908.             // line 460
  909.             $context['_parent'] = $context;
  910.             $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.'460$this->source); })()), "ProductCategories", [], "any"falsefalsefalse460));
  911.             foreach ($context['_seq'] as $context["_key"] => $context["ProductCategory"]) {
  912.                 // line 461
  913.                 echo "                                <ul>
  914.                                     <li>
  915.                                         ";
  916.                 // line 463
  917.                 $context['_parent'] = $context;
  918.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["ProductCategory"], "Category", [], "any"falsefalsefalse463), "path", [], "any"falsefalsefalse463));
  919.                 $context['loop'] = [
  920.                   'parent' => $context['_parent'],
  921.                   'index0' => 0,
  922.                   'index'  => 1,
  923.                   'first'  => true,
  924.                 ];
  925.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  926.                     $length count($context['_seq']);
  927.                     $context['loop']['revindex0'] = $length 1;
  928.                     $context['loop']['revindex'] = $length;
  929.                     $context['loop']['length'] = $length;
  930.                     $context['loop']['last'] = === $length;
  931.                 }
  932.                 foreach ($context['_seq'] as $context["_key"] => $context["Category"]) {
  933.                     // line 464
  934.                     echo "                                            <a href=\"";
  935.                     echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
  936.                     echo "?category_id=";
  937.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Category"], "id", [], "any"falsefalsefalse464), "html"nulltrue);
  938.                     echo "\">";
  939.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Category"], "name", [], "any"falsefalsefalse464), "html"nulltrue);
  940.                     echo "</a>";
  941.                     if ((twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse464) == false)) {
  942.                         // line 465
  943.                         echo "                                            <span>></span>";
  944.                     }
  945.                     ++$context['loop']['index0'];
  946.                     ++$context['loop']['index'];
  947.                     $context['loop']['first'] = false;
  948.                     if (isset($context['loop']['length'])) {
  949.                         --$context['loop']['revindex0'];
  950.                         --$context['loop']['revindex'];
  951.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  952.                     }
  953.                 }
  954.                 $_parent $context['_parent'];
  955.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Category'], $context['_parent'], $context['loop']);
  956.                 $context array_intersect_key($context$_parent) + $_parent;
  957.                 // line 467
  958.                 echo "                                    </li>
  959.                                 </ul>
  960.                             ";
  961.             }
  962.             $_parent $context['_parent'];
  963.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ProductCategory'], $context['_parent'], $context['loop']);
  964.             $context array_intersect_key($context$_parent) + $_parent;
  965.             // line 470
  966.             echo "                        </div>
  967.                     ";
  968.         }
  969.         // line 472
  970.         echo "                    <div class=\"sp40\"></div>
  971.                     ";
  972.         // line 474
  973.         echo "                 <!-- <div class=\"giftBarBar\"><a href=\"https://tpscoco.com/user_data/gift\"><img src=\"//tpscoco.com/common/img/gift/gift_img.jpg\" width=\"100%\" alt=\"\" class=\"linkimg\"/></a></div>-->
  974.                     
  975.                     
  976.                 </div>
  977.             </div>
  978.         </div>
  979.         ";
  980.         // line 480
  981.         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.'480$this->source); })()), "freearea", [], "any"falsefalsefalse480)) {
  982.             // line 481
  983.             echo "             <div class=\"ec-productRole__description\">
  984.                  ";
  985.             // line 482
  986.             echo $this->extensions['Eccube\Twig\Extension\IgnoreTwigSandboxErrorExtension']->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.'482$this->source); })()), "freearea", [], "any"falsefalsefalse482)));
  987.             echo "
  988.             </div>
  989.         ";
  990.         }
  991.         // line 485
  992.         echo "        
  993.                         
  994.         
  995.         
  996.         
  997.     </div>
  998. ";
  999.         
  1000.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  1001.         
  1002.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  1003.     }
  1004.     public function getTemplateName()
  1005.     {
  1006.         return "__string_template__cc189af43b48ccfbef70241bf20f6bfe";
  1007.     }
  1008.     public function isTraitable()
  1009.     {
  1010.         return false;
  1011.     }
  1012.     public function getDebugInfo()
  1013.     {
  1014.         return array (  1039 => 485,  1033 => 482,  1030 => 481,  1028 => 480,  1020 => 474,  1017 => 472,  1013 => 470,  1005 => 467,  990 => 465,  981 => 464,  964 => 463,  960 => 461,  956 => 460,  952 => 459,  949 => 458,  946 => 457,  939 => 451,  927 => 448,  924 => 447,  921 => 446,  910 => 437,  902 => 431,  897 => 428,  891 => 425,  888 => 424,  882 => 421,  879 => 420,  877 => 419,  871 => 417,  869 => 416,  851 => 403,  847 => 402,  841 => 399,  837 => 398,  831 => 395,  822 => 389,  819 => 388,  812 => 384,  808 => 382,  801 => 378,  793 => 373,  789 => 372,  782 => 371,  779 => 370,  773 => 367,  769 => 366,  766 => 365,  764 => 364,  759 => 362,  755 => 361,  752 => 360,  750 => 359,  747 => 358,  745 => 357,  741 => 356,  734 => 351,  728 => 348,  724 => 347,  721 => 346,  718 => 345,  712 => 342,  706 => 341,  703 => 340,  697 => 337,  693 => 336,  690 => 335,  688 => 334,  686 => 333,  683 => 332,  681 => 331,  678 => 330,  673 => 328,  666 => 327,  663 => 326,  659 => 324,  654 => 322,  645 => 321,  643 => 320,  639 => 319,  632 => 318,  630 => 317,  627 => 316,  624 => 315,  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,);
  1015.     }
  1016.     public function getSourceContext()
  1017.     {
  1018.         return new Source("{#
  1019. This file is part of EC-CUBE
  1020. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  1021. http://www.ec-cube.co.jp/
  1022. For the full copyright and license information, please view the LICENSE
  1023. file that was distributed with this source code.
  1024. #}
  1025. {% extends 'default_frame.twig' %}
  1026. {% set body_class = 'product_page' %}
  1027. {% block stylesheet %}
  1028.     <style>
  1029.         .slick-slider {
  1030.             margin-bottom: 30px;
  1031.         }
  1032.         .slick-dots {
  1033.             position: absolute;
  1034.             bottom: -45px;
  1035.             display: block;
  1036.             width: 100%;
  1037.             padding: 0;
  1038.             list-style: none;
  1039.             text-align: center;
  1040.         }
  1041.         .slick-dots li {
  1042.             position: relative;
  1043.             display: inline-block;
  1044.             width: 20px;
  1045.             height: 20px;
  1046.             margin: 0 5px;
  1047.             padding: 0;
  1048.             cursor: pointer;
  1049.         }
  1050.         .slick-dots li button {
  1051.             font-size: 0;
  1052.             line-height: 0;
  1053.             display: block;
  1054.             width: 20px;
  1055.             height: 20px;
  1056.             padding: 5px;
  1057.             cursor: pointer;
  1058.             color: transparent;
  1059.             border: 0;
  1060.             outline: none;
  1061.             background: transparent;
  1062.         }
  1063.         .slick-dots li button:hover,
  1064.         .slick-dots li button:focus {
  1065.             outline: none;
  1066.         }
  1067.         .slick-dots li button:hover:before,
  1068.         .slick-dots li button:focus:before {
  1069.             opacity: 1;
  1070.         }
  1071.         .slick-dots li button:before {
  1072.             content: \" \";
  1073.             line-height: 20px;
  1074.             position: absolute;
  1075.             top: 0;
  1076.             left: 0;
  1077.             width: 12px;
  1078.             height: 12px;
  1079.             text-align: center;
  1080.             opacity: .25;
  1081.             background-color: black;
  1082.             border-radius: 50%;
  1083.         }
  1084.         .slick-dots li.slick-active button:before {
  1085.             opacity: .75;
  1086.             background-color: black;
  1087.         }
  1088.         .slick-dots li button.thumbnail img {
  1089.             width: 0;
  1090.             height: 0;
  1091.         }
  1092.     </style>
  1093. {% endblock %}
  1094. {% block javascript %}
  1095.     <script>
  1096.         eccube.classCategories = {{ class_categories_as_json(Product)|raw }};
  1097.         // 規格2に選択肢を割り当てる。
  1098.         function fnSetClassCategories(form, classcat_id2_selected) {
  1099.             var \$form = \$(form);
  1100.             var product_id = \$form.find('input[name=product_id]').val();
  1101.             var \$sele1 = \$form.find('select[name=classcategory_id1]');
  1102.             var \$sele2 = \$form.find('select[name=classcategory_id2]');
  1103.             eccube.setClassCategories(\$form, product_id, \$sele1, \$sele2, classcat_id2_selected);
  1104.         }
  1105.         {% if form.classcategory_id2 is defined %}
  1106.         fnSetClassCategories(
  1107.             \$('#form1'), {{ form.classcategory_id2.vars.value|json_encode|raw }}
  1108.         );
  1109.         {% elseif form.classcategory_id1 is defined %}
  1110.         eccube.checkStock(\$('#form1'), {{ Product.id }}, {{ form.classcategory_id1.vars.value|json_encode|raw }}, null);
  1111.         {% endif %}
  1112.     </script>
  1113.     <script>
  1114.         \$(function() {
  1115.             // bfcache無効化
  1116.             \$(window).bind('pageshow', function(event) {
  1117.                 if (event.originalEvent.persisted) {
  1118.                     location.reload(true);
  1119.                 }
  1120.             });
  1121.             // Core Web Vital の Cumulative Layout Shift(CLS)対策のため
  1122.             // img タグに width, height が付与されている.
  1123.             // 630px 未満の画面サイズでは縦横比が壊れるための対策
  1124.             // see https://github.com/EC-CUBE/ec-cube/pull/5023
  1125.             \$('.ec-grid2__cell').hide();
  1126.             var removeSize = function () {
  1127.                 \$('.slide-item').height('');
  1128.                 \$('.slide-item img')
  1129.                     .removeAttr('width')
  1130.                     .removeAttr('height')
  1131.                     .removeAttr('style');
  1132.             };
  1133.             var slickInitial = function(slick) {
  1134.                 \$('.ec-grid2__cell').fadeIn(1500);
  1135.                 var baseHeight = \$(slick.target).height();
  1136.                 var baseWidth = \$(slick.target).width();
  1137.                 var rate = baseWidth / baseHeight;
  1138.                 \$('.slide-item').height(baseHeight * rate); // 余白を削除する
  1139.                 // transform を使用することでCLSの影響を受けないようにする
  1140.                 \$('.slide-item img')
  1141.                     .css(
  1142.                         {
  1143.                             'transform-origin': 'top left',
  1144.                             'transform': 'scaleY(' + rate + ')',
  1145.                             'transition': 'transform .1s'
  1146.                         }
  1147.                     );
  1148.                 // 正しいサイズに近くなったら属性を解除する
  1149.                 setTimeout(removeSize, 500);
  1150.             };
  1151.             \$('.item_visual').on('init', slickInitial);
  1152.             // リサイズ時は CLS の影響を受けないため属性を解除する
  1153.             \$(window).resize(removeSize);
  1154.             \$('.item_visual').slick({
  1155.                 dots: false,
  1156.                 arrows: false,
  1157.                 responsive: [{
  1158.                     breakpoint: 768,
  1159.                     settings: {
  1160.                         dots: true
  1161.                     }
  1162.                 }]
  1163.             });
  1164.             \$('.slideThumb').on('click', function() {
  1165.                 var index = \$(this).attr('data-index');
  1166.                 \$('.item_visual').slick('slickGoTo', index, false);
  1167.             })
  1168.         });
  1169.     </script>
  1170.     <script>
  1171.         \$(function() {
  1172.             \$('.add-cart').on('click', function(event) {
  1173.                 {% if form.classcategory_id1 is defined %}
  1174.                 // 規格1フォームの必須チェック
  1175.                 if (\$('#classcategory_id1').val() == '__unselected' || \$('#classcategory_id1').val() == '') {
  1176.                     \$('#classcategory_id1')[0].setCustomValidity('{{ '項目が選択されていません'|trans }}');
  1177.                     return true;
  1178.                 } else {
  1179.                     \$('#classcategory_id1')[0].setCustomValidity('');
  1180.                 }
  1181.                 {% endif %}
  1182.                 {% if form.classcategory_id2 is defined %}
  1183.                 // 規格2フォームの必須チェック
  1184.                 if (\$('#classcategory_id2').val() == '__unselected' || \$('#classcategory_id2').val() == '') {
  1185.                     \$('#classcategory_id2')[0].setCustomValidity('{{ '項目が選択されていません'|trans }}');
  1186.                     return true;
  1187.                 } else {
  1188.                     \$('#classcategory_id2')[0].setCustomValidity('');
  1189.                 }
  1190.                 {% endif %}
  1191.                 // 個数フォームのチェック
  1192.                 if (\$('#quantity').val() < 1) {
  1193.                     \$('#quantity')[0].setCustomValidity('{{ '1以上で入力してください。'|trans }}');
  1194.                     return true;
  1195.                 } else {
  1196.                     \$('#quantity')[0].setCustomValidity('');
  1197.                 }
  1198.                 event.preventDefault();
  1199.                 \$form = \$('#form1');
  1200.                 \$.ajax({
  1201.                     url: \$form.attr('action'),
  1202.                     type: \$form.attr('method'),
  1203.                     data: \$form.serialize(),
  1204.                     dataType: 'json',
  1205.                     beforeSend: function(xhr, settings) {
  1206.                         // Buttonを無効にする
  1207.                         \$('.add-cart').prop('disabled', true);
  1208.                     }
  1209.                 }).done(function(data) {
  1210.                     // レスポンス内のメッセージをalertで表示
  1211.                     \$.each(data.messages, function() {
  1212.                         \$('#ec-modal-header').text(this);
  1213.                     });
  1214.                     \$('.ec-modal').show()
  1215.                     // カートブロックを更新する
  1216.                     \$.ajax({
  1217.                         url: \"{{ url('block_cart') }}\",
  1218.                         type: 'GET',
  1219.                         dataType: 'html'
  1220.                     }).done(function(html) {
  1221.                         \$('.ec-headerRole__cart').html(html);
  1222.                     });
  1223.                 }).fail(function(data) {
  1224.                     alert('{{ 'カートへの追加に失敗しました。'|trans }}');
  1225.                 }).always(function(data) {
  1226.                     // Buttonを有効にする
  1227.                     \$('.add-cart').prop('disabled', false);
  1228.                 });
  1229.             });
  1230.         });
  1231.         \$('.ec-modal-wrap').on('click', function(e) {
  1232.             // モーダル内の処理は外側にバブリングさせない
  1233.             e.stopPropagation();
  1234.         });
  1235.         \$('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function() {
  1236.             \$('.ec-modal').hide()
  1237.         });
  1238.     </script>
  1239.     <script type=\"application/ld+json\">
  1240.     {
  1241.         \"@context\": \"https://schema.org/\",
  1242.         \"@type\": \"Product\",
  1243.         \"name\": \"{{ Product.name }}\",
  1244.         \"image\": [
  1245.             {% for img in Product.ProductImage %}
  1246.                 \"{{ app.request.schemeAndHttpHost }}{{ asset(img, 'save_image') }}\"{% if not loop.last %},{% endif %}
  1247.             {% else %}
  1248.                 \"{{ app.request.schemeAndHttpHost }}{{ asset(''|no_image_product, 'save_image') }}\"
  1249.             {% endfor %}
  1250.         ],
  1251.         \"description\": \"{{ Product.description_list | default(Product.description_detail) | replace({'\\n': '', '\\r': ''}) | slice(0,300) }}\",
  1252.         {% if Product.code_min %}
  1253.         \"sku\": \"{{ Product.code_min }}\",
  1254.         {% endif %}
  1255.         \"offers\": {
  1256.             \"@type\": \"Offer\",
  1257.             \"url\": \"{{ url('product_detail', {'id': Product.id}) }}\",
  1258.             \"priceCurrency\": \"{{ eccube_config.currency }}\",
  1259.             \"price\": {{ Product.getPrice02IncTaxMin ? Product.getPrice02IncTaxMin : 0}},
  1260.             \"availability\": \"{{ Product.stock_find ? \"InStock\" : \"OutOfStock\" }}\"
  1261.         }
  1262.     }
  1263.     </script>
  1264. {% endblock %}
  1265. {% block main %}
  1266.     <div class=\"ec-productRole\">
  1267.         <div class=\"ec-grid2\">
  1268.             <div class=\"ec-grid2__cell\">
  1269.                 <div class=\"ec-sliderItemRole\">
  1270.                     <div class=\"item_visual\">
  1271.                         {% for ProductImage in Product.ProductImage %}
  1272.                             <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>
  1273.                         {% else %}
  1274.                             <div class=\"slide-item\"><img src=\"{{ asset(''|no_image_product, 'save_image') }}\" alt=\"{{ loop.first ? Product.name : '' }}\" width=\"550\" height=\"550\"></div>
  1275.                         {% endfor %}
  1276.                     </div>
  1277.                     <div class=\"item_nav\">
  1278.                         {% for ProductImage in Product.ProductImage %}
  1279.                             <div class=\"slideThumb\" data-index=\"{{ loop.index0 }}\"><img src=\"{{ asset(ProductImage, 'save_image') }}\" alt=\"\" width=\"133\" height=\"133\" loading=\"lazy\"></div>
  1280.                         {% endfor %}
  1281.                     </div>
  1282.                 </div>
  1283.             </div>
  1284.             <div class=\"ec-grid2__cell\">
  1285.                 <div class=\"ec-productRole__profile\">
  1286.                     {# 商品名 #}
  1287.                     <div class=\"ec-productRole__title\">
  1288.                         <h2 class=\"ec-headingTitle\">{{ Product.name }}</h2>
  1289.                     </div>
  1290.                     {# タグ #}
  1291.                     <ul class=\"ec-productRole__tags\">
  1292.                         {% for Tag in Product.Tags %}
  1293.                             <li class=\"ec-productRole__tag tag_{{ Tag.id }}\">{{ Tag }}</li>
  1294.                         {% endfor %}
  1295.                         <div class=\"sp\"></div>
  1296.                     </ul>
  1297.                     
  1298.                    
  1299.                     {# 通常価格 #}
  1300.                     {% if Product.hasProductClass -%}
  1301.                         <div class=\"ec-productRole__priceRegular\">
  1302.                             {% if Product.getPrice01Min is not null and Product.getPrice01IncTaxMin == Product.getPrice01IncTaxMax %}
  1303.                                 <span class=\"ec-productRole__priceRegularPrice\">{{ '通常価格'|trans }}:<span class=\"price01-default\">{{ Product.getPrice01IncTaxMin|price }}</span></span>
  1304.                                 <span class=\"ec-productRole__priceRegularTax\">{{ '税込'|trans }}</span>
  1305.                             {% elseif Product.getPrice01Min is not null and Product.getPrice01Max is not null %}
  1306.                                 <span class=\"ec-productRole__priceRegularPrice\">{{ '通常価格'|trans }}:<span class=\"price01-default\">{{ Product.getPrice01IncTaxMin|price }}~ {{ Product.getPrice01IncTaxMax|price }}</span></span>
  1307.                                 <span class=\"ec-productRole__priceRegularTax\">{{ '税込'|trans }}</span>
  1308.                             {% endif %}
  1309.                         </div>
  1310.                     {% else %}
  1311.                         {% if Product.getPrice01Max is not null %}
  1312.                             <span class=\"ec-productRole__priceRegularPrice\">{{ '通常価格'|trans }}:{{ Product.getPrice01IncTaxMin|price }}</span>
  1313.                             <span class=\"ec-productRole__priceRegularTax\">{{ '税込'|trans }}</span>
  1314.                         {% endif %}
  1315.                     {% endif %}
  1316.                     {# 販売価格 #}
  1317.                     <div class=\"ec-productRole__price\">
  1318.                         {% if Product.hasProductClass -%}
  1319.                             {% if Product.getPrice02IncTaxMin == Product.getPrice02IncTaxMax %}
  1320.                                 <div class=\"ec-price\">
  1321.                                     <span class=\"ec-price__price price02-default\">{{ Product.getPrice02IncTaxMin|price }}</span>
  1322.                                     <span class=\"ec-price__tax\">{{ '税込'|trans }}</span>
  1323.                                 </div>
  1324.                             {% else %}
  1325.                                 <div class=\"ec-price\">
  1326.                                     <span class=\"ec-price__price price02-default\">{{ Product.getPrice02IncTaxMin|price }} ~ {{ Product.getPrice02IncTaxMax|price }}</span>
  1327.                                     <span class=\"ec-price__tax\">{{ '税込'|trans }}</span>
  1328.                                 </div>
  1329.                             {% endif %}
  1330.                         {% else %}
  1331.                             <div class=\"ec-price\">
  1332.                                 <span class=\"ec-price__price\">{{ Product.getPrice02IncTaxMin|price }}</span>
  1333.                                 <span class=\"ec-price__tax\">{{ '税込'|trans }}</span>
  1334.                             </div>
  1335.                         {% endif %}
  1336.                     </div>
  1337.                     
  1338.                     
  1339.                     
  1340.                     <form action=\"{{ url('product_add_cart', {id:Product.id}) }}\" method=\"post\" id=\"form1\" name=\"form1\">
  1341.                         {% if Product.stock_find %}
  1342.                             <div class=\"ec-productRole__actions\">
  1343.                                 {% if form.classcategory_id1 is defined %}
  1344.                                     <div class=\"ec-select\">
  1345.                                         {{ form_row(form.classcategory_id1) }}
  1346.                                         {{ form_errors(form.classcategory_id1) }}
  1347.                                     </div>
  1348.                                     {% if form.classcategory_id2 is defined %}
  1349.                                         <div class=\"ec-select\">
  1350.                                             {{ form_row(form.classcategory_id2) }}
  1351.                                             {{ form_errors(form.classcategory_id2) }}
  1352.                                         </div>
  1353.                                     {% endif %}
  1354.                                 {% endif %}
  1355.                                 {{ include('Product/option.twig') }}<div class=\"ec-numberInput\"><span>{{ '数量'|trans }}</span>
  1356.                                     {{ form_widget(form.quantity) }}
  1357.                                     {{ form_errors(form.quantity) }}
  1358.                                 </div>
  1359.                             </div>
  1360.                             <div class=\"ec-productRole__btn\">
  1361.                                 <button type=\"submit\" class=\"ec-blockBtn--action add-cart\">
  1362.                                     {{ 'カートに入れる'|trans }}
  1363.                                 </button>
  1364.                             </div>
  1365.                         {% else %}
  1366.                             <div class=\"ec-productRole__btn\">
  1367.                                 <button type=\"button\" class=\"ec-blockBtn--action\" disabled=\"disabled\">
  1368.                                     {{ 'SOLD OUT'|trans }}
  1369.                                 </button>
  1370.                             </div>
  1371.                         {% endif %}
  1372.                         {{ form_rest(form) }}
  1373.                     </form>
  1374.                     
  1375.                     
  1376.             
  1377.                     
  1378.                     {{ include('Product/option_description.twig') }}<div class=\"ec-modal\">
  1379.                         <div class=\"ec-modal-overlay\">
  1380.                             <div class=\"ec-modal-wrap\">
  1381.                                 <span class=\"ec-modal-close\"><span class=\"ec-icon\"><img src=\"{{ asset('assets/icon/cross-dark.svg') }}\" alt=\"\"/></span></span>
  1382.                                 <div id=\"ec-modal-header\" class=\"text-center\">{{ 'カートに追加しました。'|trans }}</div>
  1383.                                 <div class=\"ec-modal-box\">
  1384.                                     <div class=\"ec-role\">
  1385.                                         <span class=\"ec-inlineBtn--cancel\">{{ 'お買い物を続ける'|trans }}</span>
  1386.                                         <a href=\"{{ url('cart') }}\" class=\"ec-inlineBtn--action\">{{ 'カートへ進む'|trans }}</a>
  1387.                                     </div>
  1388.                                 </div>
  1389.                             </div>
  1390.                         </div>
  1391.                     </div>
  1392.                     
  1393.                     
  1394.                     
  1395.                     
  1396.                     
  1397.                     
  1398.                     
  1399.                     {% if BaseInfo.option_favorite_product %}
  1400.                         <form action=\"{{ url('product_add_favorite', {id:Product.id}) }}\" method=\"post\">
  1401.                             <div class=\"ec-productRole__btn\">
  1402.                                 {% if is_favorite == false %}
  1403.                                     <button type=\"submit\" id=\"favorite\" class=\"ec-blockBtn--cancel\">
  1404.                                         {{ 'お気に入りに追加'|trans }}
  1405.                                     </button>
  1406.                                 {% else %}
  1407.                                     <button type=\"submit\" id=\"favorite\" class=\"ec-blockBtn--cancel\"
  1408.                                             disabled=\"disabled\">{{ 'お気に入りに追加済です。'|trans }}
  1409.                                     </button>
  1410.                                 {% endif %}
  1411.                             </div>
  1412.                         </form>
  1413.                     {% endif %}
  1414.                     
  1415.                     
  1416.                     
  1417.               
  1418.                     
  1419.                     
  1420.                     <div class=\"ec-productRole__description\">{{ Product.description_detail|raw|nl2br }}
  1421.                     </div>
  1422.                     
  1423.                     
  1424.         
  1425.                     
  1426.                     
  1427.                     
  1428.                       {# 商品コード #}
  1429.                     {% if Product.code_min is not empty %}
  1430.                         <div class=\"ec-productRole__code\">
  1431.                             {{ '商品コード'|trans }}: <span class=\"product-code-default\">{{ Product.code_min }}{% if Product.code_min != Product.code_max %} ~ {{ Product.code_max }}{% endif %}</span>
  1432.                         </div>
  1433.                     {% endif %}
  1434.                     
  1435.                    
  1436.                     
  1437.                     
  1438.                     
  1439.                     {# 関連カテゴリ #}
  1440.                     {% if Product.ProductCategories is not empty %}
  1441.                         <div class=\"ec-productRole__category\">
  1442.                             <div>{{ '関連カテゴリ'|trans }}</div>
  1443.                             {% for ProductCategory in Product.ProductCategories %}
  1444.                                 <ul>
  1445.                                     <li>
  1446.                                         {% for Category in ProductCategory.Category.path %}
  1447.                                             <a href=\"{{ url('product_list') }}?category_id={{ Category.id }}\">{{ Category.name }}</a> {%- if loop.last == false %}
  1448.                                             <span>></span>{% endif -%}
  1449.                                         {% endfor %}
  1450.                                     </li>
  1451.                                 </ul>
  1452.                             {% endfor %}
  1453.                         </div>
  1454.                     {% endif %}
  1455.                     <div class=\"sp40\"></div>
  1456.                     {# GIFT #}
  1457.                  <!-- <div class=\"giftBarBar\"><a href=\"https://tpscoco.com/user_data/gift\"><img src=\"//tpscoco.com/common/img/gift/gift_img.jpg\" width=\"100%\" alt=\"\" class=\"linkimg\"/></a></div>-->
  1458.                     
  1459.                     
  1460.                 </div>
  1461.             </div>
  1462.         </div>
  1463.         {% if Product.freearea %}
  1464.              <div class=\"ec-productRole__description\">
  1465.                  {{ include(template_from_string(Product.freearea)) }}
  1466.             </div>
  1467.         {% endif %}
  1468.         
  1469.                         
  1470.         
  1471.         
  1472.         
  1473.     </div>
  1474. {% endblock %}""__string_template__cc189af43b48ccfbef70241bf20f6bfe""");
  1475.     }
  1476. }