<?php 
 
use Twig\Environment; 
use Twig\Error\LoaderError; 
use Twig\Error\RuntimeError; 
use Twig\Extension\SandboxExtension; 
use Twig\Markup; 
use Twig\Sandbox\SecurityError; 
use Twig\Sandbox\SecurityNotAllowedTagError; 
use Twig\Sandbox\SecurityNotAllowedFilterError; 
use Twig\Sandbox\SecurityNotAllowedFunctionError; 
use Twig\Source; 
use Twig\Template; 
 
/* Slivki/mobile/popup/add_comment_popup.html.twig */ 
class __TwigTemplate_d4947399e7cb9c39468dbe13ee773ef803ad9966a071589a762520fd50236a66 extends Template 
{ 
    private $source; 
    private $macros = []; 
 
    public function __construct(Environment $env) 
    { 
        parent::__construct($env); 
 
        $this->source = $this->getSourceContext(); 
 
        $this->parent = false; 
 
        $this->blocks = [ 
        ]; 
    } 
 
    protected function doDisplay(array $context, array $blocks = []) 
    { 
        $macros = $this->macros; 
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"]; 
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Slivki/mobile/popup/add_comment_popup.html.twig")); 
 
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"]; 
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Slivki/mobile/popup/add_comment_popup.html.twig")); 
 
        // line 1 
        echo "<div id=\"addVoteBox\" class=\"new-popup modal fade sf-font\"> 
"; 
        // line 3 
        echo "    <div class=\"modal-dialog m-0 modal-dialog-centered\"> 
        <div class=\"modal-content\"> 
            <button class=\"close\" data-dismiss=\"modal\"></button> 
            "; 
        // line 6 
        if ((twig_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.', 6, $this->source); })()), "user", [], "any", false, false, false, 6) && array_key_exists("offer", $context))) { 
            // line 7 
            echo "                "; 
            $context["splitTotalCodesCountByUser"] = twig_get_attribute($this->env, $this->source, twig_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.', 7, $this->source); })()), "user", [], "any", false, false, false, 7), "getCodesCountByOffer", [0 => (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 7, $this->source); })())], "method", false, false, false, 7); 
            // line 8 
            echo "                <div class=\"modal-title\">"; 
            echo (((1 === twig_compare((isset($context["splitTotalCodesCountByUser"]) || array_key_exists("splitTotalCodesCountByUser", $context) ? $context["splitTotalCodesCountByUser"] : (function () { throw new RuntimeError('Variable "splitTotalCodesCountByUser" does not exist.', 8, $this->source); })()), 0))) ? ("Оцените акцию и оставьте свой отзыв") : ("Оставьте свой отзыв")); 
            echo "</div> 
            "; 
        } 
        // line 10 
        echo "            <div class=\"addVoteBox message w-100\"> 
                <div id=\"addCommentPopupBoxContainer\" style=\"display:none;\"> </div> 
                <div class=\"addVoteBoxContent\"> 
                    "; 
        // line 13 
        if ((twig_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.', 13, $this->source); })()), "user", [], "any", false, false, false, 13) && array_key_exists("offer", $context))) { 
            // line 14 
            echo "                        "; 
            $context["splitTotalCodesCountByUser"] = twig_get_attribute($this->env, $this->source, twig_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.', 14, $this->source); })()), "user", [], "any", false, false, false, 14), "getCodesCountByOffer", [0 => (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 14, $this->source); })())], "method", false, false, false, 14); 
            // line 15 
            echo "                        "; 
            if ((1 === twig_compare((isset($context["splitTotalCodesCountByUser"]) || array_key_exists("splitTotalCodesCountByUser", $context) ? $context["splitTotalCodesCountByUser"] : (function () { throw new RuntimeError('Variable "splitTotalCodesCountByUser" does not exist.', 15, $this->source); })()), 0))) { 
                // line 16 
                echo "                            <div class=\"rating\" title=\"\"> 
                                <ul id=\"rateForm\" class=\"rating--stars js-stars\"> 
                                    "; 
                // line 18 
                $context['_parent'] = $context; 
                $context['_seq'] = twig_ensure_traversable(range(1, 5)); 
                foreach ($context['_seq'] as $context["_key"] => $context["i"]) { 
                    // line 19 
                    echo "                                        <li data-id=\""; 
                    echo twig_escape_filter($this->env, $context["i"], "html", null, true); 
                    echo "\"><span></span></li> 
                                    "; 
                } 
                $_parent = $context['_parent']; 
                unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']); 
                $context = array_intersect_key($context, $_parent) + $_parent; 
                // line 21 
                echo "                                </ul> 
                                <input id=\"actionRating\" type=\"hidden\" value=\"0\" name=\"actionRating\"> 
                            </div> 
                        "; 
            } 
            // line 25 
            echo "                    "; 
        } 
        // line 26 
        echo "                    <input id=\"parentCommentId\" type=\"hidden\" name=\"parentVoteId\" value=\"\"> 
                    <div class=\"addVoteTextField\"> 
                        <textarea id=\"comment\" class=\"form-element slivki-comment-editor-textarea w-100\" name=\"comment\"></textarea> 
                    </div> 
 
                    <div class=\"clearfix my-3\"></div> 
                    <div class=\"clearfix\"></div> 
                    <div class=\"add-vote-box-bottom\"> 
                        <div class=\"vote-container\"> 
                            <div id=\"deleteButtonPopup\" class=\"d-none\" style=\"position: absolute; left: 67%; z-index: 9; width: 30px; height: 30px; font-size: 21px; top: -11px; background: #6748e5; display: flex ; border-radius: 23px; margin: 0; color: white; align-items: center; justify-content: center;\">x</div> 
                            <div id=\"recordingsList\" style=\"width: 72%;\"></div> 
                        </div> 
                        <div class=\"comment-ajax-upload-image-controls\"> 
                            <div class=\"formWrapper\"> 
                                <div class=\"addMediaTitle\">Добавить фото:</div> 
                                <div id=\"ajaxImageSubmit\" class=\"d-inline-block align-middle\"><i class=\"h2 slivki-icon-photo-add\"></i></div> 
                            </div> 
                            <div class=\"clear\"></div> 
                            <form id=\"imageUploadForm\" class=\"uploadForm d-none\" enctype=\"multipart/form-data\" method=\"post\"> 
                                <input id=\"imageSelect\" type=\"file\" name=\"uploadFile\"> 
                                <input type=\"hidden\" value=\"uploadFile\" name=\"actionRequest\"> 
                                <input type=\"hidden\" value=\"voteImage\" name=\"fileKey\"> 
                            </form> 
                        </div> 
                        <img style=\"display: none;\" class=\"ajaxLoader\" src=\"/images/ajax_loading.gif\" alt=\"Загрузка...\"> 
                        <div class=\"clearfix\"></div> 
                        <div class=\"uploadedImagePreview\" style=\"display: none;\"></div> 
                        <div class=\"clearfix\"></div> 
 
                        "; 
        // line 55 
        if ($this->env->getRuntime('Slivki\Twig\ServerFeatureStateTwigRuntime')->isServerFeatureEnabled(twig_constant("Slivki\\Enum\\SwitcherFeatures::VOICE_MESSAGES"))) { 
            // line 56 
            echo "                            <div class=\"record-button-container\"> 
                                <span id=\"timer\" style=\"text-align: center; margin-top: 10px\">00:00</span> <!-- Секундомер --> 
                                <button type=\"button\" id=\"recordButton\" class=\"record-button\"><img src=\"/images/mic.svg\" /></button> 
                            </div> 
                            <input type=\"file\" name=\"voice_message\" id=\"voiceMessageInput\" accept=\"audio/*\" style=\"display:none;\"> 
                        "; 
        } 
        // line 62 
        echo "                        <div class=\"field field-checkbox mt-3\"> 
                            <input type=\"checkbox\" name=\"allowToContact\" id=\"allowToContact\"> 
                            <label for=\"allowToContact\">Разрешаю компании связаться со мной</label> 
                        </div> 
                        <div> 
                            <div class=\"publish\">Опубликовать</div> 
                        </div> 
                    </div> 
                </div> 
            </div> 
        </div> 
    </div> 
</div>"; 
         
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof); 
 
         
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof); 
 
    } 
 
    public function getTemplateName() 
    { 
        return "Slivki/mobile/popup/add_comment_popup.html.twig"; 
    } 
 
    public function isTraitable() 
    { 
        return false; 
    } 
 
    public function getDebugInfo() 
    { 
        return array (  142 => 62,  134 => 56,  132 => 55,  101 => 26,  98 => 25,  92 => 21,  83 => 19,  79 => 18,  75 => 16,  72 => 15,  69 => 14,  67 => 13,  62 => 10,  56 => 8,  53 => 7,  51 => 6,  46 => 3,  43 => 1,); 
    } 
 
    public function getSourceContext() 
    { 
        return new Source("<div id=\"addVoteBox\" class=\"new-popup modal fade sf-font\"> 
{#    <input id=\"slivkiSmileList\" type=\"hidden\" value=\"{{ constant('Slivki\\\\Entity\\\\Comment::SMILE_LIST')|join(',') }}\"/>#} 
    <div class=\"modal-dialog m-0 modal-dialog-centered\"> 
        <div class=\"modal-content\"> 
            <button class=\"close\" data-dismiss=\"modal\"></button> 
            {% if app.user and offer is defined %} 
                {% set splitTotalCodesCountByUser = app.user.getCodesCountByOffer(offer) %} 
                <div class=\"modal-title\">{{ splitTotalCodesCountByUser > 0 ? 'Оцените акцию и оставьте свой отзыв' : 'Оставьте свой отзыв' }}</div> 
            {% endif %} 
            <div class=\"addVoteBox message w-100\"> 
                <div id=\"addCommentPopupBoxContainer\" style=\"display:none;\"> </div> 
                <div class=\"addVoteBoxContent\"> 
                    {% if app.user and offer is defined %} 
                        {% set splitTotalCodesCountByUser = app.user.getCodesCountByOffer(offer) %} 
                        {% if splitTotalCodesCountByUser > 0 %} 
                            <div class=\"rating\" title=\"\"> 
                                <ul id=\"rateForm\" class=\"rating--stars js-stars\"> 
                                    {% for i in 1..5 %} 
                                        <li data-id=\"{{ i }}\"><span></span></li> 
                                    {% endfor %} 
                                </ul> 
                                <input id=\"actionRating\" type=\"hidden\" value=\"0\" name=\"actionRating\"> 
                            </div> 
                        {% endif %} 
                    {% endif %} 
                    <input id=\"parentCommentId\" type=\"hidden\" name=\"parentVoteId\" value=\"\"> 
                    <div class=\"addVoteTextField\"> 
                        <textarea id=\"comment\" class=\"form-element slivki-comment-editor-textarea w-100\" name=\"comment\"></textarea> 
                    </div> 
 
                    <div class=\"clearfix my-3\"></div> 
                    <div class=\"clearfix\"></div> 
                    <div class=\"add-vote-box-bottom\"> 
                        <div class=\"vote-container\"> 
                            <div id=\"deleteButtonPopup\" class=\"d-none\" style=\"position: absolute; left: 67%; z-index: 9; width: 30px; height: 30px; font-size: 21px; top: -11px; background: #6748e5; display: flex ; border-radius: 23px; margin: 0; color: white; align-items: center; justify-content: center;\">x</div> 
                            <div id=\"recordingsList\" style=\"width: 72%;\"></div> 
                        </div> 
                        <div class=\"comment-ajax-upload-image-controls\"> 
                            <div class=\"formWrapper\"> 
                                <div class=\"addMediaTitle\">Добавить фото:</div> 
                                <div id=\"ajaxImageSubmit\" class=\"d-inline-block align-middle\"><i class=\"h2 slivki-icon-photo-add\"></i></div> 
                            </div> 
                            <div class=\"clear\"></div> 
                            <form id=\"imageUploadForm\" class=\"uploadForm d-none\" enctype=\"multipart/form-data\" method=\"post\"> 
                                <input id=\"imageSelect\" type=\"file\" name=\"uploadFile\"> 
                                <input type=\"hidden\" value=\"uploadFile\" name=\"actionRequest\"> 
                                <input type=\"hidden\" value=\"voteImage\" name=\"fileKey\"> 
                            </form> 
                        </div> 
                        <img style=\"display: none;\" class=\"ajaxLoader\" src=\"/images/ajax_loading.gif\" alt=\"Загрузка...\"> 
                        <div class=\"clearfix\"></div> 
                        <div class=\"uploadedImagePreview\" style=\"display: none;\"></div> 
                        <div class=\"clearfix\"></div> 
 
                        {% if isServerFeatureEnabled(constant('Slivki\\\\Enum\\\\SwitcherFeatures::VOICE_MESSAGES')) %} 
                            <div class=\"record-button-container\"> 
                                <span id=\"timer\" style=\"text-align: center; margin-top: 10px\">00:00</span> <!-- Секундомер --> 
                                <button type=\"button\" id=\"recordButton\" class=\"record-button\"><img src=\"/images/mic.svg\" /></button> 
                            </div> 
                            <input type=\"file\" name=\"voice_message\" id=\"voiceMessageInput\" accept=\"audio/*\" style=\"display:none;\"> 
                        {% endif %} 
                        <div class=\"field field-checkbox mt-3\"> 
                            <input type=\"checkbox\" name=\"allowToContact\" id=\"allowToContact\"> 
                            <label for=\"allowToContact\">Разрешаю компании связаться со мной</label> 
                        </div> 
                        <div> 
                            <div class=\"publish\">Опубликовать</div> 
                        </div> 
                    </div> 
                </div> 
            </div> 
        </div> 
    </div> 
</div>", "Slivki/mobile/popup/add_comment_popup.html.twig", "/mnt/data/virtwww/test1/templates/Slivki/mobile/popup/add_comment_popup.html.twig"); 
    } 
}