var/cache/dev/twig/e6/e6183928edcb0341cfbdffd93e85c1f9.php line 57

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. /* Entry/index.twig */
  14. class __TwigTemplate_94679c1b840b8b51034bb42dd413b76a 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.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  28.         $this->checkSecurity();
  29.     }
  30.     protected function doGetParent(array $context)
  31.     {
  32.         // line 4
  33.         return "default_frame.twig";
  34.     }
  35.     protected function doDisplay(array $context, array $blocks = [])
  36.     {
  37.         $macros $this->macros;
  38.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  39.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Entry/index.twig"));
  40.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  41.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Entry/index.twig"));
  42.         // line 6
  43.         $context["body_class"] = "registration_page";
  44.         // line 8
  45.         $this->env->getRuntime("Symfony\\Component\\Form\\FormRenderer")->setTheme((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'8$this->source); })()), [=> "Form/form_div_layout.twig"], true);
  46.         // line 4
  47.         $this->parent $this->loadTemplate("default_frame.twig""Entry/index.twig"4);
  48.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  49.         
  50.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  51.         
  52.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  53.     }
  54.     // line 10
  55.     public function block_stylesheet($context, array $blocks = [])
  56.     {
  57.         $macros $this->macros;
  58.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  59.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  60.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  61.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  62.         // line 11
  63.         echo "<style>
  64.     #entry_company_name {
  65.         width: 100%;
  66.     }
  67.     .form_comments {
  68.         font-size: 12px;
  69.         color: #525263;
  70.         margin: 3px 0px 3px 0px;
  71.         font-weight: normal;
  72.         line-height: 2;
  73.     }
  74.     .ec-checkbox label {
  75.         font-weight: normal;
  76.     }
  77.     .ec-registerRole .ec-registerRole__actions {
  78.         text-align: left;
  79.         padding-top: 0px;
  80.     }
  81.     .related_line {
  82.         background-color: #F5F5F5;
  83.         padding: 16px 10px;
  84.         font-size: 14px;
  85.         margin: 12px 0px 24px 0px;
  86.     }
  87.     .progress_bar_step {
  88.         margin: 0 auto;
  89.         max-width: 280px;
  90.         padding: 18px 0;
  91.     }
  92.     @media only screen and (max-width: 767px) {
  93.         .progress_bar_step {
  94.             max-width: 230px;
  95.         }
  96.     }
  97. </style>
  98. ";
  99.         
  100.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  101.         
  102.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  103.     }
  104.     // line 50
  105.     public function block_javascript($context, array $blocks = [])
  106.     {
  107.         $macros $this->macros;
  108.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  109.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  110.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  111.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  112.         // line 51
  113.         echo "    <script>
  114.         \$(function() {
  115.             var userAgent = navigator.userAgent.toLowerCase();
  116.             var isInstagramOrFacebook = userAgent.includes(\"instagram\") || userAgent.includes(\"facebook\");
  117.              const passwordField = document.getElementById(\"entry_plain_password\");
  118.             const toggleLink = document.getElementById(\"show_password\");
  119.             if (passwordField && toggleLink) {
  120.                 toggleLink.addEventListener(\"click\", function(event) {
  121.                     event.preventDefault();
  122.                     if (passwordField.type === \"password\") {
  123.                         passwordField.type = \"text\";
  124.                         toggleLink.textContent = \"パスワードを非表示\";
  125.                     } else {
  126.                         passwordField.type = \"password\";
  127.                         toggleLink.textContent = \"パスワードを表示\";
  128.                     }
  129.                 });
  130.             }
  131.             var hasValue = false;
  132.             \$(\"input[type='text']\").each(function() {
  133.                 if (\$(this).val().trim() !== \"\") {
  134.                     hasValue = true;
  135.                     return false; // ループを抜ける
  136.                 }
  137.             });
  138.             ";
  139.         // line 81
  140.         $context["current_domain"] = twig_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.'81$this->source); })()), "request", [], "any"falsefalsetrue81), "getHost", [], "method"falsefalsetrue81);
  141.         // line 82
  142.         echo "
  143.             ";
  144.         // line 83
  145.         $context["is_prod"] = twig_in_filter("web-order.shikomel.com", (isset($context["current_domain"]) || array_key_exists("current_domain"$context) ? $context["current_domain"] : (function () { throw new RuntimeError('Variable "current_domain" does not exist.'83$this->source); })()));
  146.         // line 84
  147.         echo "            ";
  148.         $context["is_stg"] = twig_in_filter("web-order-stg.shikomel.com", (isset($context["current_domain"]) || array_key_exists("current_domain"$context) ? $context["current_domain"] : (function () { throw new RuntimeError('Variable "current_domain" does not exist.'84$this->source); })()));
  149.         // line 85
  150.         echo "
  151.             // 会員情報入力画面の表示イベント
  152.             ";
  153.         // line 87
  154.         if ((isset($context["is_prod"]) || array_key_exists("is_prod"$context) ? $context["is_prod"] : (function () { throw new RuntimeError('Variable "is_prod" does not exist.'87$this->source); })())) {
  155.             // line 88
  156.             echo "
  157.                 fbq('trackCustom', 'ce_show_entry', {
  158.                     content_type: \"ShowEntry\",
  159.                     value: 63
  160.                 });
  161.                 window.dataLayer.push({
  162.                     event: 'ce_show_entry',
  163.                     custom_event_name: 'ce_show_entry',
  164.                     custom_customer_id: '',
  165.                     custom_user_agent: \$(\"#user_agent\").val(),
  166.                     custom_is_ig: \$(\"#is_ig\").val(),
  167.                     custom_is_line: \$(\"#is_line\").val(),
  168.                     custom_referer: \$(\"#referer\").val(),
  169.                     custom_real_ip: \$(\"#real_ip\").val(),
  170.                 });
  171.                 _lt('send', 'cv', {
  172.                     type: 'ce_show_entry'
  173.                 },['d6fb195c-aa19-4109-8ea0-7b1d883fb349']);
  174.                 \$('#input_entry').click(function() {
  175.                     // 会員情報入力確定
  176.                     fbq('trackCustom', 'ce_inputed_entry', {
  177.                         content_type: \"InputedEntry\",
  178.                         value: 65
  179.                     });
  180.                     window.dataLayer.push({
  181.                         event: 'ce_inputed_entry',
  182.                         custom_event_name: 'ce_inputed_entry',
  183.                         custom_customer_id: '',
  184.                         custom_user_agent: \$(\"#user_agent\").val(),
  185.                         custom_is_ig: \$(\"#is_ig\").val(),
  186.                         custom_is_line: \$(\"#is_line\").val(),
  187.                         custom_referer: \$(\"#referer\").val(),
  188.                         custom_real_ip: \$(\"#real_ip\").val(),
  189.                     });
  190.                     _lt('send', 'cv', {
  191.                         type: 'ce_inputed_entry'
  192.                     },['d6fb195c-aa19-4109-8ea0-7b1d883fb349']);
  193.                 });
  194.             ";
  195.         }
  196.         // line 133
  197.         echo "
  198.             const requiredInputs = document.querySelectorAll(\"input[required]\");
  199.             const button = document.getElementById(\"submit_btn\");
  200.             const checkbox = document.getElementById(\"entry_user_policy_check\");
  201.             function toggleButton() {
  202.                 // 全ての input に値が入っているかチェック
  203.                 const allFilled = Array.from(requiredInputs).every(input => input.value.trim() !== \"\");
  204.                 const isCheckboxChecked = checkbox.checked;
  205.     
  206.                 if (allFilled && isCheckboxChecked) {
  207.                     button.classList.remove(\"disabled\"); // クラス削除で有効化
  208.                 } else {
  209.                     button.classList.add(\"disabled\"); // クラス追加で無効化
  210.                 }
  211.             }
  212.             // 全ての input にイベントリスナーを設定
  213.             requiredInputs.forEach(input => input.addEventListener(\"input\", toggleButton));
  214.             // 画面表示時に処理実行
  215.             toggleButton();
  216.         });
  217.     </script>
  218.     ";
  219.         // line 160
  220.         if ((isset($context["is_prod"]) || array_key_exists("is_prod"$context) ? $context["is_prod"] : (function () { throw new RuntimeError('Variable "is_prod" does not exist.'160$this->source); })())) {
  221.             // line 161
  222.             echo "    <!-- Ptengine Tag -->
  223.     <script src=\"https://js.ptengine.jp/21yt6a2v.js\">
  224.     </script>
  225.     <!-- End Ptengine Tag -->
  226.     ";
  227.         }
  228.         // line 166
  229.         echo "    
  230. ";
  231.         
  232.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  233.         
  234.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  235.     }
  236.     // line 169
  237.     public function block_main($context, array $blocks = [])
  238.     {
  239.         $macros $this->macros;
  240.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  241.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  242.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  243.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  244.         // line 170
  245.         echo "
  246.     <div class=\"ec-registerRole\">
  247.         <div class=\"ec-pageHeader\">
  248.             <h1 style=\"margin-top: 10px; margin-bottom: 10px; border-top: none; border-bottom: 1px solid #ccc;\">会員登録(無料)</h1>
  249.         </div>
  250.         <div class=\"progress_bar_step\">
  251.             <img src=\"";
  252.         // line 176
  253.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/common/entry_progress_step1.png""user_data"), "html"nulltrue);
  254.         echo "\">
  255.         </div>
  256.         <div class=\"ec-off1Grid\" style=\"max-width: 430px; margin: auto;\">
  257.             <div class=\"\">
  258.                 <form method=\"post\" action=\"";
  259.         // line 180
  260.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("entry");
  261.         echo "\" class=\"h-adr formByMailArea\" id=\"form\">
  262.                     ";
  263.         // line 181
  264.         if ((isset($context["isFromLine"]) || array_key_exists("isFromLine"$context) ? $context["isFromLine"] : (function () { throw new RuntimeError('Variable "isFromLine" does not exist.'181$this->source); })())) {
  265.             // line 182
  266.             echo "                    <div class=\"related_line\">
  267.                         LINEアカウントと連携しました。<br>
  268.                         会員登録完了で、クーポンを獲得できます。
  269.                     </div>
  270.                     ";
  271.         }
  272.         // line 187
  273.         echo "
  274.                     <span class=\"p-country-name\" style=\"display:none;\">Japan</span>
  275.                     ";
  276.         // line 189
  277.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.'189$this->source); })()), "_token", [], "any"falsefalsetrue189), 189$this->source), 'widget');
  278.         echo "
  279.                     <div class=\"\">
  280.                         <dl>
  281.                             <dt>
  282.                                 ";
  283.         // line 193
  284.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.'193$this->source); })()), "email", [], "any"falsefalsetrue193), 193$this->source), 'label', ["label_attr" => ["class" => "ec-label"], "label" => "メールアドレス"]);
  285.         echo "
  286.                             </dt>
  287.                             <dd>
  288.                                 <div class=\"ec-input";
  289.         // line 196
  290.         echo (($this->extensions['Eccube\Twig\Extension\EccubeExtension']->hasErrors($this->sandbox->ensureToStringAllowed(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.'196$this->source); })()), "email", [], "any"falsefalsetrue196), 196$this->source))) ? (" error") : (""));
  291.         echo "\">
  292.                                     ";
  293.         // line 197
  294.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.'197$this->source); })()), "email", [], "any"falsefalsetrue197), 197$this->source), 'widget', ["attr" => ["placeholder" => "shikomel-store@gmail.com"]]);
  295.         echo "
  296.                                     ";
  297.         // line 198
  298.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.'198$this->source); })()), "email", [], "any"falsefalsetrue198), 198$this->source), 'errors');
  299.         echo "
  300.                                 </div>
  301.                             </dd>
  302.                         </dl>
  303.                         ";
  304.         // line 203
  305.         if ((isset($context["isFromLine"]) || array_key_exists("isFromLine"$context) ? $context["isFromLine"] : (function () { throw new RuntimeError('Variable "isFromLine" does not exist.'203$this->source); })())) {
  306.             // line 204
  307.             echo "                        ";
  308.             // line 205
  309.             echo "                        ";
  310.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.'205$this->source); })()), "plain_password", [], "any"falsefalsetrue205), 205$this->source), 'widget', ["type" => "hidden""value" => (isset($context["dummyPass"]) || array_key_exists("dummyPass"$context) ? $context["dummyPass"] : (function () { throw new RuntimeError('Variable "dummyPass" does not exist.'205$this->source); })())]);
  311.             echo "
  312.                         ";
  313.         } else {
  314.             // line 207
  315.             echo "                        <dl>
  316.                             <dt>
  317.                                 ";
  318.             // line 209
  319.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.'209$this->source); })()), "plain_password", [], "any"falsefalsetrue209), 209$this->source), 'label', ["label_attr" => ["class" => "ec-label"], "label" => "パスワード"]);
  320.             echo "
  321.                                 <div class=\"form_comments\">";
  322.             // line 210
  323.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("半角英数記号%min%〜%max%文字", ["%min%" => twig_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.'210$this->source); })()), "eccube_password_min_len", [], "any"falsefalsetrue210), "%max%" => twig_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.'210$this->source); })()), "eccube_password_max_len", [], "any"falsefalsetrue210)]), "html"nulltrue);
  324.             echo "<div>
  325.                             </dt>
  326.                             <dd>
  327.                                 <div class=\"ec-input";
  328.             // line 213
  329.             echo (($this->extensions['Eccube\Twig\Extension\EccubeExtension']->hasErrors($this->sandbox->ensureToStringAllowed(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.'213$this->source); })()), "plain_password", [], "any"falsefalsetrue213), 213$this->source))) ? (" error") : (""));
  330.             echo "\">
  331.                                     ";
  332.             // line 214
  333.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.'214$this->source); })()), "plain_password", [], "any"falsefalsetrue214), 214$this->source), 'widget', ["attr" => ["placeholder" => ""], "type" => "password"]);
  334.             // line 217
  335.             echo "
  336.                                     <div style=\"text-align: right;\">
  337.                                         <a id=\"show_password\" href=\"#\" style=\"top: -5px; position: relative; font-size: 12px; color: #1F9FCB\">パスワードを表示</a>
  338.                                     </div>
  339.                                     ";
  340.             // line 221
  341.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.'221$this->source); })()), "plain_password", [], "any"falsefalsetrue221), 221$this->source), 'errors');
  342.             echo "
  343.                                 </div>
  344.                             </dd>
  345.                         </dl>
  346.                         ";
  347.         }
  348.         // line 226
  349.         echo "                        <dl>
  350.                             <dt>
  351.                                 ";
  352.         // line 228
  353.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.'228$this->source); })()), "company_name", [], "any"falsefalsetrue228), 228$this->source), 'label', ["label_attr" => ["class" => "ec-label"], "label" => "店舗名・事業者名"]);
  354.         echo "
  355.                                 <div class=\"form_comments\">当サイトは事業を営む企業、個人の方向けのサービスです。個人事業主の方は屋号または個人名をご入力ください。<div>
  356.                             </dt>
  357.                             <dd>
  358.                                 <div class=\"ec-halfInput";
  359.         // line 232
  360.         echo (($this->extensions['Eccube\Twig\Extension\EccubeExtension']->hasErrors($this->sandbox->ensureToStringAllowed(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.'232$this->source); })()), "company_name", [], "any"falsefalsetrue232), 232$this->source))) ? (" error") : (""));
  361.         echo "\">
  362.                                     ";
  363.         // line 233
  364.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.'233$this->source); })()), "company_name", [], "any"falsefalsetrue233), 233$this->source), 'widget', ["attr" => ["placeholder" => "株式会社シコメルキッチン"]]);
  365.         echo "
  366.                                     ";
  367.         // line 234
  368.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.'234$this->source); })()), "company_name", [], "any"falsefalsetrue234), 234$this->source), 'errors');
  369.         echo "
  370.                                 </div>
  371.                                 <div style=\"font-size: 16px; line-height: 1.5;\"></div>
  372.                             </dd>
  373.                         </dl>
  374.                     </div>
  375.                     <div class=\"ec-registerRole__actions\">
  376.                         <div class=\"ec-checkbox";
  377.         // line 241
  378.         echo (($this->extensions['Eccube\Twig\Extension\EccubeExtension']->hasErrors($this->sandbox->ensureToStringAllowed(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.'241$this->source); })()), "user_policy_check", [], "any"falsefalsetrue241), 241$this->source))) ? (" error") : (""));
  379.         echo "\">
  380.                             <label>
  381.                                 ";
  382.         // line 243
  383.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.'243$this->source); })()), "user_policy_check", [], "any"falsefalsetrue243), 243$this->source), 'widget');
  384.         echo "
  385.                                 ";
  386.         // line 244
  387.         echo "シコメルの<a class=\"ec-link\" href=\"https://shikomel.com/terms/\" target=\"_blank\">利用規約</a>に同意";
  388.         echo "
  389.                             </label>
  390.                             ";
  391.         // line 246
  392.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.'246$this->source); })()), "user_policy_check", [], "any"falsefalsetrue246), 246$this->source), 'errors');
  393.         echo "
  394.                         </div>
  395.                         <div>
  396.                             <button id=\"submit_btn\" class=\"ec-blockBtn--action disabled\" type=\"submit\" id=\"input_entry\" name=\"mode\" value=\"confirm\">";
  397.         // line 249
  398.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("確認へ進む"), "html"nulltrue);
  399.         echo "</button>
  400.                         </div>
  401.                     </div>
  402.                     ";
  403.         // line 254
  404.         echo "                    <input type=\"hidden\" id=\"entry_name_name01\" name=\"entry[name][name01]\" value=\"未入力\"/>
  405.                     <input type=\"hidden\" id=\"entry_name_name01\" name=\"entry[name][name02]\" value=\"未入力\"/>
  406.                     <input type=\"hidden\" id=\"entry_kana_kana01\" name=\"entry[kana][kana01]\" value=\"カナ\"/>
  407.                     <input type=\"hidden\" id=\"entry_kana_kana02\" name=\"entry[kana][kana02]\" value=\"カナ\"/>
  408.                     <input type=\"hidden\" id=\"entry_postal_code\" name=\"entry[postal_code]\" value=\"0000000\"/>
  409.                     <input type=\"hidden\" id=\"entry_address_pref\" name=\"entry[address][pref]\" value=\"13\"/>
  410.                     <input type=\"hidden\" id=\"entry_address_addr01\" name=\"entry[address][addr01]\" value=\"未入力\"/>
  411.                     <input type=\"hidden\" id=\"entry_address_addr02\" name=\"entry[address][addr02]\" value=\"未入力\"/>
  412.                     <input type=\"hidden\" id=\"entry_phone_number\" name=\"entry[phone_number]\" value=\"00000000000\"/>
  413.                 </form>
  414.             </div>
  415.         </div>
  416.     </div>
  417. ";
  418.         
  419.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  420.         
  421.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  422.     }
  423.     public function getTemplateName()
  424.     {
  425.         return "Entry/index.twig";
  426.     }
  427.     public function isTraitable()
  428.     {
  429.         return false;
  430.     }
  431.     public function getDebugInfo()
  432.     {
  433.         return array (  449 => 254,  442 => 249,  436 => 246,  431 => 244,  427 => 243,  422 => 241,  412 => 234,  408 => 233,  404 => 232,  397 => 228,  393 => 226,  385 => 221,  379 => 217,  377 => 214,  373 => 213,  367 => 210,  363 => 209,  359 => 207,  353 => 205,  351 => 204,  349 => 203,  341 => 198,  337 => 197,  333 => 196,  327 => 193,  320 => 189,  316 => 187,  309 => 182,  307 => 181,  303 => 180,  296 => 176,  288 => 170,  278 => 169,  267 => 166,  260 => 161,  258 => 160,  229 => 133,  182 => 88,  180 => 87,  176 => 85,  173 => 84,  171 => 83,  168 => 82,  166 => 81,  134 => 51,  124 => 50,  77 => 11,  67 => 10,  56 => 4,  54 => 8,  52 => 6,  39 => 4,);
  434.     }
  435.     public function getSourceContext()
  436.     {
  437.         return new Source("{#
  438. カスタマイズTwig
  439. #}
  440. {% extends 'default_frame.twig' %}
  441. {% set body_class = 'registration_page' %}
  442. {% form_theme form 'Form/form_div_layout.twig' %}
  443. {% block stylesheet %}
  444. <style>
  445.     #entry_company_name {
  446.         width: 100%;
  447.     }
  448.     .form_comments {
  449.         font-size: 12px;
  450.         color: #525263;
  451.         margin: 3px 0px 3px 0px;
  452.         font-weight: normal;
  453.         line-height: 2;
  454.     }
  455.     .ec-checkbox label {
  456.         font-weight: normal;
  457.     }
  458.     .ec-registerRole .ec-registerRole__actions {
  459.         text-align: left;
  460.         padding-top: 0px;
  461.     }
  462.     .related_line {
  463.         background-color: #F5F5F5;
  464.         padding: 16px 10px;
  465.         font-size: 14px;
  466.         margin: 12px 0px 24px 0px;
  467.     }
  468.     .progress_bar_step {
  469.         margin: 0 auto;
  470.         max-width: 280px;
  471.         padding: 18px 0;
  472.     }
  473.     @media only screen and (max-width: 767px) {
  474.         .progress_bar_step {
  475.             max-width: 230px;
  476.         }
  477.     }
  478. </style>
  479. {% endblock %}
  480. {% block javascript %}
  481.     <script>
  482.         \$(function() {
  483.             var userAgent = navigator.userAgent.toLowerCase();
  484.             var isInstagramOrFacebook = userAgent.includes(\"instagram\") || userAgent.includes(\"facebook\");
  485.              const passwordField = document.getElementById(\"entry_plain_password\");
  486.             const toggleLink = document.getElementById(\"show_password\");
  487.             if (passwordField && toggleLink) {
  488.                 toggleLink.addEventListener(\"click\", function(event) {
  489.                     event.preventDefault();
  490.                     if (passwordField.type === \"password\") {
  491.                         passwordField.type = \"text\";
  492.                         toggleLink.textContent = \"パスワードを非表示\";
  493.                     } else {
  494.                         passwordField.type = \"password\";
  495.                         toggleLink.textContent = \"パスワードを表示\";
  496.                     }
  497.                 });
  498.             }
  499.             var hasValue = false;
  500.             \$(\"input[type='text']\").each(function() {
  501.                 if (\$(this).val().trim() !== \"\") {
  502.                     hasValue = true;
  503.                     return false; // ループを抜ける
  504.                 }
  505.             });
  506.             {% set current_domain = app.request.getHost() %}
  507.             {% set is_prod = 'web-order.shikomel.com' in current_domain %}
  508.             {% set is_stg = 'web-order-stg.shikomel.com' in current_domain %}
  509.             // 会員情報入力画面の表示イベント
  510.             {% if is_prod %}
  511.                 fbq('trackCustom', 'ce_show_entry', {
  512.                     content_type: \"ShowEntry\",
  513.                     value: 63
  514.                 });
  515.                 window.dataLayer.push({
  516.                     event: 'ce_show_entry',
  517.                     custom_event_name: 'ce_show_entry',
  518.                     custom_customer_id: '',
  519.                     custom_user_agent: \$(\"#user_agent\").val(),
  520.                     custom_is_ig: \$(\"#is_ig\").val(),
  521.                     custom_is_line: \$(\"#is_line\").val(),
  522.                     custom_referer: \$(\"#referer\").val(),
  523.                     custom_real_ip: \$(\"#real_ip\").val(),
  524.                 });
  525.                 _lt('send', 'cv', {
  526.                     type: 'ce_show_entry'
  527.                 },['d6fb195c-aa19-4109-8ea0-7b1d883fb349']);
  528.                 \$('#input_entry').click(function() {
  529.                     // 会員情報入力確定
  530.                     fbq('trackCustom', 'ce_inputed_entry', {
  531.                         content_type: \"InputedEntry\",
  532.                         value: 65
  533.                     });
  534.                     window.dataLayer.push({
  535.                         event: 'ce_inputed_entry',
  536.                         custom_event_name: 'ce_inputed_entry',
  537.                         custom_customer_id: '',
  538.                         custom_user_agent: \$(\"#user_agent\").val(),
  539.                         custom_is_ig: \$(\"#is_ig\").val(),
  540.                         custom_is_line: \$(\"#is_line\").val(),
  541.                         custom_referer: \$(\"#referer\").val(),
  542.                         custom_real_ip: \$(\"#real_ip\").val(),
  543.                     });
  544.                     _lt('send', 'cv', {
  545.                         type: 'ce_inputed_entry'
  546.                     },['d6fb195c-aa19-4109-8ea0-7b1d883fb349']);
  547.                 });
  548.             {% endif %}
  549.             const requiredInputs = document.querySelectorAll(\"input[required]\");
  550.             const button = document.getElementById(\"submit_btn\");
  551.             const checkbox = document.getElementById(\"entry_user_policy_check\");
  552.             function toggleButton() {
  553.                 // 全ての input に値が入っているかチェック
  554.                 const allFilled = Array.from(requiredInputs).every(input => input.value.trim() !== \"\");
  555.                 const isCheckboxChecked = checkbox.checked;
  556.     
  557.                 if (allFilled && isCheckboxChecked) {
  558.                     button.classList.remove(\"disabled\"); // クラス削除で有効化
  559.                 } else {
  560.                     button.classList.add(\"disabled\"); // クラス追加で無効化
  561.                 }
  562.             }
  563.             // 全ての input にイベントリスナーを設定
  564.             requiredInputs.forEach(input => input.addEventListener(\"input\", toggleButton));
  565.             // 画面表示時に処理実行
  566.             toggleButton();
  567.         });
  568.     </script>
  569.     {% if is_prod %}
  570.     <!-- Ptengine Tag -->
  571.     <script src=\"https://js.ptengine.jp/21yt6a2v.js\">
  572.     </script>
  573.     <!-- End Ptengine Tag -->
  574.     {% endif %}
  575.     
  576. {% endblock javascript %}
  577. {% block main %}
  578.     <div class=\"ec-registerRole\">
  579.         <div class=\"ec-pageHeader\">
  580.             <h1 style=\"margin-top: 10px; margin-bottom: 10px; border-top: none; border-bottom: 1px solid #ccc;\">会員登録(無料)</h1>
  581.         </div>
  582.         <div class=\"progress_bar_step\">
  583.             <img src=\"{{ asset('assets/img/common/entry_progress_step1.png', 'user_data') }}\">
  584.         </div>
  585.         <div class=\"ec-off1Grid\" style=\"max-width: 430px; margin: auto;\">
  586.             <div class=\"\">
  587.                 <form method=\"post\" action=\"{{ url('entry') }}\" class=\"h-adr formByMailArea\" id=\"form\">
  588.                     {% if isFromLine %}
  589.                     <div class=\"related_line\">
  590.                         LINEアカウントと連携しました。<br>
  591.                         会員登録完了で、クーポンを獲得できます。
  592.                     </div>
  593.                     {% endif %}
  594.                     <span class=\"p-country-name\" style=\"display:none;\">Japan</span>
  595.                     {{ form_widget(form._token) }}
  596.                     <div class=\"\">
  597.                         <dl>
  598.                             <dt>
  599.                                 {{ form_label(form.email, 'メールアドレス', { 'label_attr': { 'class': 'ec-label' }}) }}
  600.                             </dt>
  601.                             <dd>
  602.                                 <div class=\"ec-input{{ has_errors(form.email) ? ' error' }}\">
  603.                                     {{ form_widget(form.email, { 'attr': { 'placeholder': 'shikomel-store@gmail.com' }}) }}
  604.                                     {{ form_errors(form.email) }}
  605.                                 </div>
  606.                             </dd>
  607.                         </dl>
  608.                         {% if isFromLine %}
  609.                         {# Line連携ログインの場合はパスワード共通のダミーを設定する #}
  610.                         {{ form_widget(form.plain_password, { type : 'hidden', value : dummyPass }) }}
  611.                         {% else %}
  612.                         <dl>
  613.                             <dt>
  614.                                 {{ form_label(form.plain_password, 'パスワード', { 'label_attr': {'class': 'ec-label' }}) }}
  615.                                 <div class=\"form_comments\">{{ '半角英数記号%min%〜%max%文字'|trans({ '%min%': eccube_config.eccube_password_min_len, '%max%': eccube_config.eccube_password_max_len }) }}<div>
  616.                             </dt>
  617.                             <dd>
  618.                                 <div class=\"ec-input{{ has_errors(form.plain_password) ? ' error' }}\">
  619.                                     {{ form_widget(form.plain_password, {
  620.                                         'attr': { 'placeholder': ''},
  621.                                         'type': 'password'
  622.                                     }) }}
  623.                                     <div style=\"text-align: right;\">
  624.                                         <a id=\"show_password\" href=\"#\" style=\"top: -5px; position: relative; font-size: 12px; color: #1F9FCB\">パスワードを表示</a>
  625.                                     </div>
  626.                                     {{ form_errors(form.plain_password) }}
  627.                                 </div>
  628.                             </dd>
  629.                         </dl>
  630.                         {% endif %}
  631.                         <dl>
  632.                             <dt>
  633.                                 {{ form_label(form.company_name, '店舗名・事業者名', { 'label_attr': { 'class': 'ec-label' }}) }}
  634.                                 <div class=\"form_comments\">当サイトは事業を営む企業、個人の方向けのサービスです。個人事業主の方は屋号または個人名をご入力ください。<div>
  635.                             </dt>
  636.                             <dd>
  637.                                 <div class=\"ec-halfInput{{ has_errors(form.company_name) ? ' error' }}\">
  638.                                     {{ form_widget(form.company_name, { 'attr': { 'placeholder': '株式会社シコメルキッチン' }}) }}
  639.                                     {{ form_errors(form.company_name) }}
  640.                                 </div>
  641.                                 <div style=\"font-size: 16px; line-height: 1.5;\"></div>
  642.                             </dd>
  643.                         </dl>
  644.                     </div>
  645.                     <div class=\"ec-registerRole__actions\">
  646.                         <div class=\"ec-checkbox{{ has_errors(form.user_policy_check) ? ' error' }}\">
  647.                             <label>
  648.                                 {{ form_widget(form.user_policy_check) }}
  649.                                 {{ 'シコメルの<a class=\"ec-link\" href=\"https://shikomel.com/terms/\" target=\"_blank\">利用規約</a>に同意'|raw }}
  650.                             </label>
  651.                             {{ form_errors(form.user_policy_check) }}
  652.                         </div>
  653.                         <div>
  654.                             <button id=\"submit_btn\" class=\"ec-blockBtn--action disabled\" type=\"submit\" id=\"input_entry\" name=\"mode\" value=\"confirm\">{{ '確認へ進む'|trans }}</button>
  655.                         </div>
  656.                     </div>
  657.                     {# 名前、住所等は購入時に入力してもらうように変更 #}
  658.                     <input type=\"hidden\" id=\"entry_name_name01\" name=\"entry[name][name01]\" value=\"未入力\"/>
  659.                     <input type=\"hidden\" id=\"entry_name_name01\" name=\"entry[name][name02]\" value=\"未入力\"/>
  660.                     <input type=\"hidden\" id=\"entry_kana_kana01\" name=\"entry[kana][kana01]\" value=\"カナ\"/>
  661.                     <input type=\"hidden\" id=\"entry_kana_kana02\" name=\"entry[kana][kana02]\" value=\"カナ\"/>
  662.                     <input type=\"hidden\" id=\"entry_postal_code\" name=\"entry[postal_code]\" value=\"0000000\"/>
  663.                     <input type=\"hidden\" id=\"entry_address_pref\" name=\"entry[address][pref]\" value=\"13\"/>
  664.                     <input type=\"hidden\" id=\"entry_address_addr01\" name=\"entry[address][addr01]\" value=\"未入力\"/>
  665.                     <input type=\"hidden\" id=\"entry_address_addr02\" name=\"entry[address][addr02]\" value=\"未入力\"/>
  666.                     <input type=\"hidden\" id=\"entry_phone_number\" name=\"entry[phone_number]\" value=\"00000000000\"/>
  667.                 </form>
  668.             </div>
  669.         </div>
  670.     </div>
  671. {% endblock %}""Entry/index.twig""/home/shikomel/shikomel.com/public_html/web-order-stg.shikomel.com/app/template/default/Entry/index.twig");
  672.     }
  673.     
  674.     public function checkSecurity()
  675.     {
  676.         static $tags = array("set" => 6"form_theme" => 8"if" => 87);
  677.         static $filters = array("escape" => 176"trans" => 210"raw" => 244);
  678.         static $functions = array("asset" => 176"url" => 180"form_widget" => 189"form_label" => 193"has_errors" => 196"form_errors" => 198);
  679.         try {
  680.             $this->sandbox->checkSecurity(
  681.                 ['set''form_theme''if'],
  682.                 ['escape''trans''raw'],
  683.                 ['asset''url''form_widget''form_label''has_errors''form_errors']
  684.             );
  685.         } catch (SecurityError $e) {
  686.             $e->setSourceContext($this->source);
  687.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  688.                 $e->setTemplateLine($tags[$e->getTagName()]);
  689.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  690.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  691.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  692.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  693.             }
  694.             throw $e;
  695.         }
  696.     }
  697. }