Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 6683 | Autoría | Comparar con el anterior | Ultima modificación | Ver Log |

<?php

use LeadersLinked\Model\ContentReaction;

$acl            = $this->viewModel()->getRoot()->getVariable('acl');
$currentUser    = $this->currentUserHelper();
$roleName       = $currentUser->getUserTypeId();

$routeQuestions     = $this->url('my-coach/questions');
$routeQuestionAdd   = $this->url('my-coach/questions/add');
$allowQuestionAdd   = $acl->isAllowed($roleName, 'my-coach/questions/add') ? 1 : 0;




$this->inlineScript()->appendFile($this->basePath('vendors/ckeditor/ckeditor.js'));

$this->headLink()->appendStylesheet($this->basePath('vendors/nprogress/nprogress.css'));
$this->inlineScript()->appendFile($this->basePath('vendors/nprogress/nprogress.js'));

$this->headLink()->appendStylesheet($this->basePath('vendors/select2/css/select2.min.css'));
$this->headLink()->appendStylesheet($this->basePath('vendors/select2-bootstrap4-theme/select2-bootstrap4.min.css'));
$this->inlineScript()->appendFile($this->basePath('vendors/select2/js/select2.min.js'));

$this->inlineScript()->appendFile($this->basePath('vendors/bootstrap-confirmation/dist/bootstrap-confirmation.js'));
$this->inlineScript()->appendFile($this->basePath('vendors/jsrender/jsrender.min.js'));


$this->inlineScript()->appendFile($this->basePath('vendors/jquery-validation/jquery.validate.js'));
$this->inlineScript()->appendFile($this->basePath('vendors/jquery-validation/additional-methods.js'));
$this->inlineScript()->appendFile($this->basePath('vendors/jquery-validation/localization/messages_es.js'));

$this->inlineScript()->captureStart();
echo <<<JS

jQuery( document ).ready(function( $ ) {

    $.fn.confirmationAnswers = function() {

        $('button.btn-my-coach-delete-answer').confirmation({
            rootSelector: 'button.btn-my-coach-delete-answer',
            title : 'LABEL_ARE_YOU_SURE',
            singleton : true,
            btnOkLabel: 'LABEL_YES',
            btnCancelLabel: 'LABEL_NO',
            onConfirm: function(value) {
                var action = $(this).data('link');
                var question = $(this).data('question');
                var answer = $(this).data('answer');
    

                NProgress.start();
                $.ajax({
                    'dataType'  : 'json',
                    'accept'    : 'application/json',
                    'method'    : 'post',
                    'url'       :  action,
                }).done(function(response) {
                    if(response['success']) {

                        $('#row-' + answer).remove();

                        $('#answers-' + question).html(response['data']['total_answers']);
                        $('#my-coach-question-answer-count-answers').html(response['data']['total_answers'] + ' LABEL_MY_COACH_ANSWERS');

                        $('#reactions-' + question).html( response['data']['total_reactions']);
                        $('#my-coach-question-answer-count-reactions').html( response['data']['total_reactions'] + ' LABEL_MY_COACH_REACTIONS');

                        $('#comments-' + question).html(response['data']['total_comments']);
                        $('#my-coach-question-answer-count-comments').html(response['data']['total_comments'] + ' LABEL_COMMENTS');

                    } else {
                        $.fn.showError(response['data']);
                    }
                }).fail(function( jqXHR, textStatus, errorThrown) {
                    $.fn.showError(textStatus);
                }).always(function() {
                    NProgress.done();
                });
                       
                return false;
            },
        });
    }


    $.fn.reloadAnswers = function() {

        var action = $('#row-view').data('link-answers');

        NProgress.start();
        $.ajax({
            'dataType'  : 'json',
            'accept'    : 'application/json',
            'method'    : 'get',
            'url'       : action,
        }).done(function(response) {
            if(response['success']) {
                $('#my-coach-question-answers-list').empty();
                if(response['data']['items'].length > 0) {
                    $( "#my-coach-question-answers-list" ).html(
                                $( "#answerTemplate" ).render( response['data']['items'] )
                        );
                }   
                $.fn.confirmationAnswers();

               
 
            } else {
                $.fn.showError(response['data']);
            } 
        }).fail(function( jqXHR, textStatus, errorThrown) {
            $.fn.showError(textStatus);
        }).always(function() {
            NProgress.done();
        });

    }

    $.fn.reload = function() {

        NProgress.start();
        $.ajax({
            'dataType'  : 'json',
            'accept'    : 'application/json',
            'method'    : 'get',
            'url'       :  '$routeQuestions',
            'data'      : {
                'search' : $('#form-filter #search').val(),
                'category_id' : $('li.my-coach-category-li-selected > a.my-coach-category-a').data('uuid') ,

            } 
        }).done(function(response) {
            if(response['success']) {
                $('#my-coach-record-list').empty();


                if(response['data']['items'].length > 0) {



                    $( "#my-coach-record-list" ).html(
                                $( "#recordTemplate" ).render( response['data']['items'] )
                        );
                } else {
                    var html = '<div class="company-title"><div class="widget widget-jobs"><div class="sd-title">ERROR_NO_RECORD_MATCHED_YOUR_QUERY</div></div></div>';
                    $( "#my-coach-record-list" ).html(html);
                }     


                $('button.btn-my-coach-delete-question').confirmation({
                    rootSelector: 'button.btn-my-coach-delete-question',
                    title : 'LABEL_ARE_YOU_SURE',
                    singleton : true,
                    btnOkLabel: 'LABEL_YES',
                    btnCancelLabel: 'LABEL_NO',
                    onConfirm: function(value) {
                        var action = $(this).data('link');
                        NProgress.start();
                        $.ajax({
                            'dataType'  : 'json',
                            'accept'    : 'application/json',
                            'method'    : 'post',
                            'url'       :  action,
                        }).done(function(response) {
                            if(response['success']) {
                                $.fn.showSuccess(response['data']);

                                $.fn.reload();
                            } else {
                                $.fn.showError(response['data']);
                            }
                        }).fail(function( jqXHR, textStatus, errorThrown) {
                            $.fn.showError(textStatus);
                        }).always(function() {
                            NProgress.done();
                        });
                       
                        return false;
                    },
                });
 
            } else {
                $.fn.showError(response['data']);
            } 
        }).fail(function( jqXHR, textStatus, errorThrown) {
            $.fn.showError(textStatus);
        }).always(function() {
            NProgress.done();
        });

    }


    $.validator.setDefaults({
        debug: true,
        highlight: function(element) {
            $(element).addClass('is-invalid');
        },
        unhighlight: function(element) {
            $(element).removeClass('is-invalid');
        },
        errorElement: 'span',
        errorClass: 'error invalid-feedback',
        errorPlacement: function(error, element) {
            if(element.parent('.btn-file').length) {
                error.insertAfter(element.parent().parent());
            } else if(element.parent('.toggle').length) {
                error.insertAfter(element.parent().parent());
            } else {
                error.insertAfter(element.parent());
            }
        }
    });
    

    $.fn.showFormErrorValidator = function(fieldname, errors) {
        var field = $(fieldname);
        if(field) {
            $(field).addClass('is-invalid');
    

            var error = $('<span id="' + fieldname +'-error" class="error invalid-feedback">' + errors + '</div>');
            if(element.parent('.btn-file').length) {
                error.insertAfter(element.parent().parent());
            } else if(element.parent('.toggle').length) {
                error.insertAfter(element.parent().parent());
            } else {
                error.insertAfter(element.parent());
            }
        }
    };

    var validatorQuestion = $('#form-question').validate({
        debug: true,
        onclick: false,
        onkeyup: false,
        ignore: [],
        rules: {
            'category_id': {
                required: true,
            },
            'title': {
                required: true,
                maxlength: 128,
            },
            'description': {
                updateCkeditor:function() {
                        CKEDITOR.instances.description_question.updateElement();
                },
                
                required: true
            },
          
        },
        submitHandler: function(form)
        {


                        NProgress.start();
            $.ajax({
                'dataType'  : 'json',
                'accept'    : 'application/json',
                'method'    : 'post',
                'url'       :  $('#form-question').attr('action'),
                'data'      :  $('#form-question').serialize(),

            }).done(function(response) {

                                if(response['success']) {
            
                    $('#modal-question').modal('hide');

                    $.fn.showSuccess(response['data']);
                    $.fn.reload();

            

                } else {
                    validatorQuestion.resetForm();
                    if(jQuery.type(response['data']) == 'string') {
                        $.fn.showError(response['data']);
                    } else  {
                        $.each(response['data'], function( fieldname, errors ) {
                            $.fn.showFormErrorValidator('#form-question #' + fieldname, errors);
                        });
                    }
                }
            }).fail(function( jqXHR, textStatus, errorThrown) {
                $.fn.showError(textStatus);
            }).always(function() {
                NProgress.done();
            });
            return false;
        },
        invalidHandler: function(form, validator) {
            
        }
    });

    var  validatorAnswer = $('#form-answer').validate({
        debug: true,
        onclick: false,
        onkeyup: false,
        ignore: [],
        rules: {
            'description': {
                updateCkeditor:function() {
                        CKEDITOR.instances.description_answer.updateElement();
                },
                
                required: true
            },
          
        },
        submitHandler: function(form)
        {
            

                        NProgress.start();
            $.ajax({
                'dataType'  : 'json',
                'accept'    : 'application/json',
                'method'    : 'post',
                'url'       :  $('#form-answer').attr('action'),
                'data'      :  $('#form-answer').serialize(),

            }).done(function(response) {
                                if(response['success']) {
                    var method = $('#form-answer').data('method');  
                    var answer = $('#form-answer').data('answer');  


                    $('#modal-answer').modal('hide');
    
                    if(method == 'add') {
                        var uuid = $('#row-view').data('question-uuid');
                        $('#answers-' + uuid).html(response['data']['answers']);
                        $('#my-coach-question-answer-count-answers').html(response['data']['answers'] + ' LABEL_MY_COACH_ANSWERS');
                        $('#my-coach-question-answers-list').prepend(
                            $('#answerTemplate').render(response['data']['item'])
                        );
                        $.fn.confirmationAnswers()
                    } else {
                        $('#answer-text-' + answer).empty();
                        $('#answer-text-' + answer).html(response['data']['description']);
                    }
                } else {
                    validatorAnswer.resetForm();
                    if(jQuery.type(response['data']) == 'string') {
                        $.fn.showError(response['data']);
                    } else  {
                        $.each(response['data'], function( fieldname, errors ) {
                            $.fn.showFormErrorValidator('#form-answer #' + fieldname, errors);
                        });
                    }
                }
            }).fail(function( jqXHR, textStatus, errorThrown) {
                $.fn.showError(textStatus);
            }).always(function() {
                NProgress.done();
            });
            return false;
        },
        invalidHandler: function(form, validator) {
            
        }
    });


    $('a.my-coach-category-a').click(function(e) {
        e.preventDefault();


        $('li.my-coach-category-li').removeClass('my-coach-category-li-selected');
        $(this).closest('li.my-coach-category-li').addClass('my-coach-category-li-selected');

        $.fn.reload();
    });

    $('body').on('click', 'button.btn-my-coach-edit', function(e) {
        e.preventDefault();
        var action = $(this).data('link');
        NProgress.start();
        $.ajax({
            'dataType'  : 'json',
            'accept'    : 'application/json',
            'method'    : 'get',
            'url'       :  action,
        }).done(function(response) {
            if(response['success']) {

                $('#form-question').attr('action', action);
                $('#form-question #category_id').val(response['data']['category_id']).trigger('change');
                $('#form-question #title').val(response['data']['title']);
                CKEDITOR.instances.description_question.setData(response['data']['description']);
        
                $('#modal-question').modal('show');
            } else {
                $.fn.showError(response['data']);
            }
        }).fail(function( jqXHR, textStatus, errorThrown) {
            $.fn.showError(textStatus);
        }).always(function() {
            NProgress.done();
        });

    });


    $('#form-filter #search').keyup(function(e) {

        e.preventDefault();

        $.fn.reload();
    })

    $('button.btn-search').click(function(e) {
        e.preventDefault();

        $.fn.reload();
    });

    $('#my-coach-add-question').click(function(e) {
        e.preventDefault();

        $('#form-question').attr('action', '$routeQuestionAdd');
        $('#form-question #title').val('');
        $('#form-question #category_id').val('').trigger('change');
        CKEDITOR.instances.description_question.setData('');
     
        $('#modal-question').modal('show');
    });

    $('#form-question #category_id').select2({
        theme: 'bootstrap4'
    })

    $('button.btn-cancel').click(function(e) {
        e.preventDefault();


        $('#modal-question').modal('hide');
        $('#modal-answer').modal('hide');
    });

    $('#my-coach-question-answer-btn-delete').confirmation({
        rootSelector: 'button.my-coach-question-answer-btn-delete',
        title : 'LABEL_ARE_YOU_SURE',
        singleton : true,
        btnOkLabel: 'LABEL_YES',
        btnCancelLabel: 'LABEL_NO',
        onConfirm: function(value) {
            var action = $(this).data('link');
            var uuid = $(this).data('question-uuid');
               
            NProgress.start();
            $.ajax({
                'dataType'  : 'json',
                'accept'    : 'application/json',
                'method'    : 'post',
                'url'       :  action,
            }).done(function(response) {
                if(response['success']) {
                    $.fn.showSuccess(response['data']);

                    var uuid = $('#row-view').data('question-uuid');
                    var key = 'my-coach-record-card-question-' + uuid;
                    $('#' + key).remove();

                    $('#row-view').hide();

                    $('#my-coach-add-question').show();
                    $('#row-list').show();

                
               
                } else {
                    $.fn.showError(response['data']);
                }
            }).fail(function( jqXHR, textStatus, errorThrown) {
                $.fn.showError(textStatus);
            }).always(function() {
                NProgress.done();
            });
                       
            return false;
        },
    });
    

    $('body').on('click', 'button.btn-my-coach-edit-view', function(e) {
        e.preventDefault();
        var action = $(this).data('link');

        NProgress.start();
        $.ajax({
            'dataType'  : 'json',
            'accept'    : 'application/json',
            'method'    : 'get',
            'url'       :  action,
        }).done(function(response) {
            if(response['success']) {
                $('#row-view').data('link-answers', response['data']['link_answers']);
                $('#row-view').data('question-uuid', response['data']['uuid']);


                if(!response['data']['link_answers_add']) {
                    $('#my-coach-question-answer-btn-answer').hide();
                } else {
                    $('#my-coach-question-answer-btn-answer').data('link', response['data']['link_answers_add']); 
                    $('#my-coach-question-answer-btn-answer').show();    
                }

                if(!response['data']['link_delete']) {
                    $('#my-coach-question-answer-btn-delete').hide();
                } else {
                    $('#my-coach-question-answer-btn-delete').data('link', response['data']['link_delete']); 
                    $('#my-coach-question-answer-btn-delete').show();
                }

                $('#my-coach-question-user-image').attr('src', response['data']['user_image']);
                $('#my-coach-question-user-name').html(response['data']['user_name']);
                $('#my-coach-question-title').html(response['data']['title']);
                $('#my-coach-question-description').html(response['data']['description'].replace('<p>',''));

                $('#my-coach-answer-categories').empty();
                $.each(response['data']['categories'], function(key, value) {

                    var li = $('<li>');
                    li.text(value.category).appendTo('#my-coach-answer-categories')
                });

                $('#my-coach-question-answer-question-date').append(response['data']['added_on']);
                $('#my-coach-question-answer-last-date').append(response['data']['last_answer_on']);
                $('#my-coach-question-answer-count-answers').html(response['data']['answers'] + ' LABEL_MY_COACH_ANSWERS');
                $('#my-coach-question-answer-count-reactions').html(response['data']['reactions'] + ' LABEL_MY_COACH_REACTIONS');
                $('#my-coach-question-answer-count-views').html(response['data']['views'] + ' LABEL_MY_COACH_VIEWS');
                $('#my-coach-question-answer-count-comments').html(response['data']['comments'] + ' LABEL_COMMENTS');

                $('#views-' + response['data']['uuid']).html( response['data']['views'] );


                $('#my-coach-add-question').hide();
                $('#row-list').hide();
                $('#row-view').show();

                $.fn.reloadAnswers();

            } else {
                $.fn.showError(response['data']);
            }
        }).fail(function( jqXHR, textStatus, errorThrown) {
            $.fn.showError(textStatus);
        }).always(function() {
            NProgress.done();
        });
    });

    $('#my-coach-question-answer-btn-back').click(function(e) {
        e.preventDefault();
     
        $('#my-coach-add-question').show();
        $('#row-view').hide();
        $('#row-list').show();
                
    });

    /****** RESPUESTAS ******/

    $('body').on('click', 'button.btn-my-coach-edit-answer', function(e) {
        e.preventDefault();
        var action = $(this).data('link');
        var answer = $(this).data('answer');
        NProgress.start();
        $.ajax({
            'dataType'  : 'json',
            'accept'    : 'application/json',
            'method'    : 'get',
            'url'       :  action,
        }).done(function(response) {
            if(response['success']) {

                $('#modal-answer-title').html('LABEL_MY_COACH_ANSWER_EDIT');
                $('#form-answer').attr('action', action );
                $('#form-answer').data('method','edit');  
                $('#form-answer').data('answer', answer);  
                CKEDITOR.instances.description_answer.setData(response['data']['description']);
                validatorAnswer.resetForm();
             
                $('#modal-answer').modal('show');
            } else {
                $.fn.showError(response['data']);
            }
        }).fail(function( jqXHR, textStatus, errorThrown) {
            $.fn.showError(textStatus);
        }).always(function() {
            NProgress.done();
        });

    });


    $('#my-coach-question-answer-btn-answer').click(function(e) {
        e.preventDefault();
        console.log('agregar respuesta link = ' + $(this).data('link') );

        $('#modal-answer-title').html('LABEL_MY_COACH_ANSWER_ADD');
        $('#form-answer').attr('action', $(this).data('link') );
        $('#form-answer').data('method','add'); 
        $('#form-answer').data('answer', '');   
        CKEDITOR.instances.description_answer.setData('');
        validatorAnswer.resetForm();
     
        $('#modal-answer').modal('show');
    });

    $('body').on('click', 'a.btn-comment-trash', function(e) {
        e.preventDefault();
        var action = $(this).data('link');
        var unique = $(this).data('comment-unique');
        var answer_uuid = $(this).data('answer-uuid');
        var question_uuid = $('#row-view').data('question-uuid');



        NProgress.start();
        $.ajax({
            'dataType'  : 'json',
            'accept'    : 'application/json',
            'method'    : 'post',
            'url'       :  action,
        }).done(function(response) {
            if(response['success']) {
                $('div.comment-' + unique).remove();

                //Listado de la respuesta
                $('#answer-total-comment-' + answer_uuid).html( response['data']['total_comments_answer'] + ' LABEL_COMMENTS');

                //Encabezado pregunta del view
                $('#my-coach-question-answer-count-comments').html( response['data']['total_comments_question'] + ' LABEL_COMMENTS');
                
                //Listado de preguntas
                $('#comments-' + question_uuid).html( response['data']['total_comments_question'] );


            } else {
                $.fn.showError(response['data']);
            }
        }).fail(function( jqXHR, textStatus, errorThrown) {
            $.fn.showError(textStatus);
        }).always(function() {
            NProgress.done();
        });

    });

    $('body').on('submit', 'form.feedCommentContainer', function(e) {
        e.preventDefault();

        var action          = $(this).attr('action');
        var answer_uuid     = $(this).data('answer');
        var question_uuid   = $('#row-view').data('question-uuid');
        var form_id         = $(this).attr('id');

        var comment = $('#' + form_id + ' #comment').val().trim();
        if(comment.length == 0) {
            return;
        }

        NProgress.start();
        $.ajax({
            'dataType'  : 'json',
            'accept'    : 'application/json',
            'method'    : 'post',
            'url'       : action,
            'data'      : $(this).serialize()

        }).done(function(response) {
                  if(response['success']) {
            $('#' + form_id + ' #comment').val('');
            $('#comment-list-' + answer_uuid).prepend(
                $( "#commentTemplate" ).render( response['data']['item'] )
            );

            //Listado de la respuesta
            $('#answer-total-comment-' + answer_uuid).html( response['data']['total_comments_answer'] + ' LABEL_COMMENTS');

            //Encabezado pregunta del view
            $('#my-coach-question-answer-count-comments').html( response['data']['total_comments_question'] + ' LABEL_COMMENTS');
                
            //Listado de preguntas
            $('#comments-' + question_uuid).html( response['data']['total_comments_question'] );

          } else {
            $.fn.showError(textStatus);
          }

        }).fail(function( jqXHR, textStatus, errorThrown) {
            $.fn.showError(textStatus);
        }).always(function() {
            NProgress.done();
        });
        return false;

    });

  $('body').on('click', 'button.btn-save-reaction', function(e) {
        e.preventDefault();
        var reaction = $(this).data('reaction');
        var action = $(this).data('link');
        var answer_uuid = $(this).data('answer');
        var question_uuid   = $('#row-view').data('question-uuid');

        NProgress.start();
        $.ajax({
            'dataType'  : 'json',
            'accept'    : 'application/json',
            'method'    : 'post',
            'url'       :  action,
            'data'      : {
                'reaction' : reaction
            }
        }).done(function(response) {
            if(response['success']) {

                $('#reactions-' + question_uuid).html(response['data']['total_reactions_question']) ; 
                $('#my-coach-question-answer-count-reactions').html(response['data']['total_reactions_question'] + ' LABEL_MY_COACH_REACTIONS') ; 
                $('#answer-total-reactions-' + answer_uuid).html(response['data']['total_reactions_answer'] + ' LABEL_REACTIONS') ; 

                $('#' + 'current-reaction-' + answer_uuid).data('reaction', response['data']['reaction']);
                $('#' + 'current-reaction-' + answer_uuid).html(
                    $('#reactionTemplate').render({reaction: reaction})
                );
            } else {
                $.fn.showError(response['data']);
            }
        }).fail(function( jqXHR, textStatus, errorThrown) {
            $.fn.showError(textStatus);
        }).always(function() {
            NProgress.done();
        });

    });

    $('body').on('click', 'button.reaction-btn', function(e) {
        e.preventDefault();
        var reaction = $(this).data('reaction');

        if(!reaction) return 
        var action = $(this).data('link');

        var answer_uuid = $(this).data('answer');
        var question_uuid   = $('#row-view').data('question-uuid');

        NProgress.start();
        $.ajax({
            'dataType'  : 'json',
            'accept'    : 'application/json',
            'method'    : 'post',
            'url'       :  action,
        }).done(function(response) {
            if(response['success']) {
                $('#' + 'current-reaction-' + answer_uuid).data('reaction', response['data']['reaction']);
                $('#' + 'current-reaction-' + answer_uuid).html(
                    $('#reactionTemplate').render({reaction: ''})
                );

                $('#reactions-' + question_uuid).html(response['data']['total_reactions_question']) ; 
                $('#my-coach-question-answer-count-reactions').html(response['data']['total_reactions_question'] + ' LABEL_MY_COACH_REACTIONS') ; 
                $('#answer-total-reactions-' + answer_uuid).html(response['data']['total_reactions_answer'] + ' LABEL_REACTIONS'); 
    
            } else {
                $.fn.showError(response['data']);
            }
        }).fail(function( jqXHR, textStatus, errorThrown) {
            $.fn.showError(textStatus);
        }).always(function() {
            NProgress.done();
        });
    });

    let isMouseHover;

    $('body').on('mouseover', '#reaction-container', function(e) {
        isMouseHover = true;
        
        setTimeout(() => $(e.target).find('.reactions').addClass('active'), 500);
    });
    
    $('body').on('mouseout', '#reaction-container', function(e) {
        isMouseHover = false;

        setTimeout(() => !isMouseHover && $('.reactions').removeClass('active'), 500);
    });

    $('#paginator-process-comm').click(function(e) {
        e.preventDefault();

        var next_page = $(this).data('next-page');
        $.fn.reload(false, next_page);
        
    });

    $.fn.reload()

    CKEDITOR.replace('description_question',{
        toolbar: [
                    { name: 'editing', items: ['Scayt'] },
                    { name: 'links', items: ['Link', 'Unlink'] },
                    { name: 'paragraph', items: ['NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', 'Blockquote'] },
                    { name: 'basicstyles', items: ['Bold', 'Italic', 'Strike', 'RemoveFormat'] },
                    '/',
                    { name: 'insert', items: ['Image', 'Table', 'HorizontalRule', 'SpecialChar'] },
                    { name: 'styles', items: ['Styles', 'Format'] },
                    { name: 'tools', items: ['Maximize'] }
                ],
                removePlugins: 'elementspath,Anchor',
                heigth: 100
    });

    CKEDITOR.replace('description_answer',{
        toolbar: [
                    { name: 'editing', items: ['Scayt'] },
                    { name: 'links', items: ['Link', 'Unlink'] },
                    { name: 'paragraph', items: ['NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', 'Blockquote'] },
                    { name: 'basicstyles', items: ['Bold', 'Italic', 'Strike', 'RemoveFormat'] },
                    '/',
                    { name: 'insert', items: ['Image', 'Table', 'HorizontalRule', 'SpecialChar'] },
                    { name: 'styles', items: ['Styles', 'Format'] },
                    { name: 'tools', items: ['Maximize'] }
                ],
                removePlugins: 'elementspath,Anchor',
                heigth: 100
    }); 
});
JS;

$this->inlineScript()->captureEnd();
$this->headLink()->appendStylesheet('/look-and-field/my-coach.css');
$this->headLink()->appendStylesheet('/react-bundles/dashboard/linkedin/main.css');
?>

<section class="container px-0 d-flex flex-column gap-3">
    <div class="company-title">
        <h1 class="title">LABEL_MY_COACH</h1>
        <?php if ($allowQuestionAdd) : ?>
            <h2 class="title cursor-pointer" id="my-coach-add-question">
                LABEL_MY_COACH_QUESTION_ADD
            </h2>
        <?php endif; ?>

    </div>

    <div class="row gap-3" id="row-list">
        <div class="my-coach-category-list col-12 col-md-3">
            <ul>
                <li class="my-coach-category-li my-coach-category-li-selected">
                    <a class="my-coach-category-a" href="" data-uuid="">LABEL_MY_COACH_CATEGORY_ALL</a>
                </li>
                <?php
                foreach ($categories as $uuid => $name) :
                ?>
                    <li class="my-coach-category-li">
                        <a class="my-coach-category-a" href="" data-uuid="<?php echo $uuid ?>"><?php echo $name ?></a>
                    </li>

                <?php endforeach; ?>
            </ul>
        </div>


        <div class="col px-0">
            <div class="search-box">
                <form id="form-filter" name="form-filter">
                    <input type="text" name="search" id="search" class="form-control"><button class="btn btn-search">LABEL_SEARCH</button>
                </form>
            </div>

            <div id="my-coach-record-list" class="my-coach-record-list mt-3 ">
            </div>

            <div id="my-coach-pagination">
            </div>

        </div>
    </div>


    <div id="row-view" class="my-coach-answers-list" style="display: none">
        <div class="my-coach-record-card-container col-md-8 mx-auto">
            <div class="my-coach-record-card-details">
                <div class="my-coach-record-card-resume">
                    <img id="my-coach-question-user-image" src="" />
                    <p id="my-coach-question-user-name"></p>
                </div>
                <ul id="my-coach-answer-categories" class="my-coach-record-card-categories">
                </ul>
            </div>

            <h2 id="my-coach-question-title"></h2>

            <div class="d-flex flex-wrap align-items-center justify-content-between mb-3">
                <span id="my-coach-question-answer-question-date">LABEL_MY_COACH_QUESTION </span>
                <span id="my-coach-question-answer-last-date">LABEL_MY_COACH_LAST_ANSWER </span>
            </div>

            <p id="my-coach-question-description"></p>

            <div class="my-coach-record-card-info">
                <span id="my-coach-question-answer-count-answers"></span>
                <span id="my-coach-question-answer-count-reactions"></span>
                <span id="my-coach-question-answer-count-views"></span>
                <span id="my-coach-question-answer-count-comments"></span>
            </div>

            <div class="my-coach-record-card-actions">
                <button class="feed__share-option" id="my-coach-question-answer-btn-back"> <i class="fa fa-chevron-left" aria-hidden="true"></i> LABEL_BACK </button>
                <button class="feed__share-option" id="my-coach-question-answer-btn-answer"> <i class="fa fa-pencil" aria-hidden="true"></i> LABEL_REPLY </button>
                <button class="feed__share-option" id="my-coach-question-answer-btn-delete"> <i class="fa fa-trash" aria-hidden="true"></i> LABEL_DELETE </button>
            </div>
        </div>

        <div id="my-coach-question-answers-list" class="my-coach-answers-list">
        </div>
    </div>
</section>


<!-- The Modal -->
<div class="modal" id="modal-question">
    <div class="modal-dialog  modal-lg">
        <div class="modal-content">

            <!-- Modal Header -->
            <div class="modal-header">
                <h4 class="modal-title h4">LABEL_TOPIC_TO_WORK</h4>
                <button type="button" class="close" data-dismiss="modal">&times;</button>
            </div>

            <!-- Modal body -->
            <div class="modal-body">
                <?php
                $form = $this->formQuestion;
                $form->setAttributes([
                    'method'    => 'post',
                    'name'      => 'form-questiom',
                    'id'        => 'form-question'
                ]);

                $form->prepare();
                echo $this->form()->openTag($form);
                ?>
                <div class="form-group">
                    <?php
                    $element = $form->get('title');
                    $element->setOptions(['label' => 'LABEL_TITLE']);
                    $element->setAttributes(['class' => 'form-control']);

                    echo $this->formLabel($element);
                    echo $this->formText($element);
                    ?>
                </div>
                <div class="form-group">
                    <?php
                    $element = $form->get('description');
                    $element->setOptions(['label' => 'LABEL_DESCRIPTION']);
                    $element->setAttributes(['class' => 'form-control', 'id' => 'description_question']);

                    echo $this->formLabel($element);
                    echo $this->formTextArea($element);
                    ?>
                </div>
                <div class="form-group">
                    <?php

                    $element = $form->get('category_id');
                    $element->setOptions(['label' => 'LABEL_CATEGORY']);

                    echo $this->formLabel($element);
                    echo $this->formSelect($element);
                    ?>
                </div>
                <div class="text-right">
                    <button type="submit" class="btn btn-primary">LABEL_SAVE</button>
                    <button type="button" class="btn btn-light btn-cancel">LABEL_CANCEL</button>
                </div>
                <?php echo $this->form()->closeTag($form); ?>
            </div>


        </div>
    </div>
</div>

<div class="modal" id="modal-answer">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">

            <!-- Modal Header -->
            <div class="modal-header">
                <h4 class="modal-title h4" id="modal-answer-title"></h4>
                <button type="button" class="close" data-dismiss="modal">&times;</button>
            </div>

            <!-- Modal body -->
            <div class="modal-body">
                <?php
                $form = $this->formAnswer;
                $form->setAttributes([
                    'method'    => 'post',
                    'name'      => 'form-answer',
                    'id'        => 'form-answer',
                ]);

                $form->prepare();
                echo $this->form()->openTag($form);
                ?>
                <div class="form-group">
                    <?php
                    $element = $form->get('description');
                    $element->setOptions(['label' => 'LABEL_TEXT']);
                    $element->setAttributes(['class' => 'form-control', 'id' => 'description_answer']);

                    echo $this->formLabel($element);
                    echo $this->formTextArea($element);
                    ?>
                </div>
                <div class="text-right">
                    <button type="submit" class="btn btn-primary">LABEL_SAVE</button>
                    <button type="button" class="btn btn-light btn-cancel">LABEL_CANCEL</button>
                </div>
                <?php echo $this->form()->closeTag($form); ?>
            </div>


        </div>
    </div>
</div>

<script id="answerTemplate" type="text/x-jsrender">
    <div class="my-coach-record-card-container col-md-8 mx-auto" id="row-{{:uuid}}">
            <div class="my-coach-record-card-details">
                <div class="my-coach-record-card-resume">
                    <img src="{{:user_image}}" />
                    <p>{{:user_name}}</p>
                </div>
                <div class="my-coach-record-card-info">
                    <span>LABEL_PUBLISHED LABEL_AGO_SMALL {{:time_elapsed}}</span> 
                    <span id="answer-total-comment-{{:uuid}}">{{:total_comments}} LABEL_COMMENTS</span>
                    <span id="answer-total-reactions-{{:uuid}}">{{:total_reactions}} LABEL_REACTIONS</span>  
                </div>
            </div>

            <div id="answer-text-{{:uuid}}" >{{:text}}</div> 

            <div class="my-coach-record-card-actions">  
                {{if link_edit }}
                <button data-link="{{>link_edit}}" data-answer="{{:uuid}}" class="btn btn-my-coach-edit-answer feed__share-option"> <i class="fa fa-pencil" aria-hidden="true"></i> LABEL_EDIT </button>
                {{/if}}

                {{if link_delete }}
                <button data-link="{{>link_delete}}" data-question="{{:question_uuid}}" data-answer="{{:uuid}}" class="btn btn-my-coach-delete-answer feed__share-option"> <i class="fa fa-trash" aria-hidden="true"></i> LABEL_DELETE </button>
                {{/if}}       
                
                <div class="position-relative feed__share-option" id="reaction-container">
                    <button class="btn reaction-btn p-0" data-answer="{{:uuid}}" data-link="{{:link_reaction_delete}}" data-reaction="{{:reaction}}" id="current-reaction-{{:uuid}}">
                        {{if reaction === '<?php echo ContentReaction::REACTION_FUN ?>'}}
                        <svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewBox="0 0 24 24" data-testid="EmojiEmotionsIcon" style="color: rgb(255, 127, 80);">
                            <path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM8.5 8c.83 0 1.5.67 1.5 1.5S9.33 11 8.5 11 7 10.33 7 9.5 7.67 8 8.5 8zM12 18c-2.28 0-4.22-1.66-5-4h10c-.78 2.34-2.72 4-5 4zm3.5-7c-.83 0-1.5-.67-1.5-1.5S14.67 8 15.5 8s1.5.67 1.5 1.5-.67 1.5-1.5 1.5z"></path>
                        </svg>
                        LABEL_REACTION_FUN
                        {{/if}}
    
                        {{if reaction === '<?php echo ContentReaction::REACTION_INTEREST ?>'}}
                        <svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewBox="0 0 24 24" data-testid="TungstenIcon" style="color: rgb(245, 187, 92);transform: rotate(180deg);">
                            <path d="M11 19h2v3h-2zm-9-8h3v2H2zm17 0h3v2h-3zm-3.106 6.8014 1.4072-1.4071 2.1213 2.1213-1.4071 1.4071zm-11.3099.7071 2.1214-2.1213 1.4071 1.4072-2.1213 2.1213zM15 8.02V3H9v5.02c-1.21.92-2 2.35-2 3.98 0 2.76 2.24 5 5 5s5-2.24 5-5c0-1.63-.79-3.06-2-3.98zM11 5h2v2.1c-.32-.06-.66-.1-1-.1s-.68.04-1 .1V5z"></path>
                        </svg>
                        LABEL_REACTION_INTEREST
                        {{/if}}


                        {{if reaction === '<?php echo ContentReaction::REACTION_LOVE ?>'}}
                        <svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewBox="0 0 24 24" data-testid="FavoriteTwoToneIcon" style="color: rgb(223, 112, 77);">
                            <path d="M16.5 5c-1.54 0-3.04.99-3.56 2.36h-1.87C10.54 5.99 9.04 5 7.5 5 5.5 5 4 6.5 4 8.5c0 2.89 3.14 5.74 7.9 10.05l.1.1.1-.1C16.86 14.24 20 11.39 20 8.5c0-2-1.5-3.5-3.5-3.5z" opacity=".3"></path>
                            <path d="M16.5 3c-1.74 0-3.41.81-4.5 2.09C10.91 3.81 9.24 3 7.5 3 4.42 3 2 5.42 2 8.5c0 3.78 3.4 6.86 8.55 11.54L12 21.35l1.45-1.32C18.6 15.36 22 12.28 22 8.5 22 5.42 19.58 3 16.5 3zm-4.4 15.55-.1.1-.1-.1C7.14 14.24 4 11.39 4 8.5 4 6.5 5.5 5 7.5 5c1.54 0 3.04.99 3.57 2.36h1.87C13.46 5.99 14.96 5 16.5 5c2 0 3.5 1.5 3.5 3.5 0 2.89-3.14 5.74-7.9 10.05z"></path>
                        </svg>
                        LABEL_REACTION_LOVE
                        {{/if}}


                        {{if reaction === '<?php echo ContentReaction::REACTION_RECOMMENDED ?>'}}
                        <svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewBox="0 0 24 24" data-testid="RecommendIcon" style="color: rgb(116, 5, 249);">
                            <path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm6 9.8a.9.9 0 0 1-.1.5l-2.1 4.9a1.34 1.34 0 0 1-1.3.8H9a2 2 0 0 1-2-2v-5a1.28 1.28 0 0 1 .4-1L12 5l.69.69a1.08 1.08 0 0 1 .3.7v.2L12.41 10H17a1 1 0 0 1 1 1z"></path>
                        </svg>
                        LABEL_REACTION_RECOMMENDED
                        {{/if}}

                        {{if reaction === '<?php echo ContentReaction::REACTION_SUPPORT ?>'}}
                        <svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewBox="0 0 24 24" data-testid="VolunteerActivismIcon" style="color: rgb(100, 149, 237);">
                            <path d="M1 11h4v11H1zm15-7.75C16.65 2.49 17.66 2 18.7 2 20.55 2 22 3.45 22 5.3c0 2.27-2.91 4.9-6 7.7-3.09-2.81-6-5.44-6-7.7C10 3.45 11.45 2 13.3 2c1.04 0 2.05.49 2.7 1.25zM20 17h-7l-2.09-.73.33-.94L13 16h2.82c.65 0 1.18-.53 1.18-1.18 0-.49-.31-.93-.77-1.11L8.97 11H7v9.02L14 22l8.01-3c-.01-1.1-.9-2-2.01-2z"></path>
                        </svg>
                        LABEL_REACTION_SUPPORT
                        {{/if}}

                        {{if reaction === ''}}
                        <svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewBox="0 0 24 24" data-testid="RecommendIcon" style="color: gray;">
                            <path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm6 9.8a.9.9 0 0 1-.1.5l-2.1 4.9a1.34 1.34 0 0 1-1.3.8H9a2 2 0 0 1-2-2v-5a1.28 1.28 0 0 1 .4-1L12 5l.69.69a1.08 1.08 0 0 1 .3.7v.2L12.41 10H17a1 1 0 0 1 1 1z"></path>
                        </svg>
                        LABEL_REACTION_UNSET
                        {{/if}}


                    </button>                   
                    <div class="reactions">
                        <button class="btn-save-reaction" data-link="{{:link_save_reaction}}" data-reaction="<?php echo ContentReaction::REACTION_RECOMMENDED ?>" title="LABEL_REACTION_RECOMMENDED" data-answer="{{:uuid}}">
                            <svg xmlns="http://www.w3.org/2000/svg" class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" version="1.1" viewBox="0 0 100 100" xml:space="preserve">
                                <path d="M71.6 57.78l-18.57-2.85a4.425 4.425 0 01-3.7-5.04 4.425 4.425 0 015.04-3.7l18.47 1.13c2.41.37 4.16 4.35 3.79 6.76a4.416 4.416 0 01-5.03 3.7zM69 68.57l-18.22-3.81c-2.37-.49-3.88-2.81-3.39-5.18.49-2.37 2.81-3.88 5.18-3.39l18.65 3.24c2.37.49 3.45 3.38 2.95 5.74-.48 2.37-2.8 3.89-5.17 3.4zM66.41 79.29l-17.86-4.44a4.327 4.327 0 01-3.35-5.11 4.327 4.327 0 015.11-3.35l17.99 3.76c2.34.49 3.83 2.78 3.35 5.11-.49 2.34-2.9 4.52-5.24 4.03zM60.56 89.05l-14.42-4.82c-2.18-.58-3.49-2.82-2.91-5 .58-2.18 2.82-3.49 5-2.91l15.9 4.15c2.18.58 3.49 2.82 2.91 5-.58 2.19-4.3 4.16-6.48 3.58z" class="st0"></path>
                                <path d="M63.3 24.36c-.54-.8-2.31-2.51-3.33-1.04l-.61.89c-2.4 3.48-5.53 6.4-9.18 8.53-2.94 1.72-6.05 3.53-6.6 3.81-.57.29-4.94 3.59-8.96 6.66-4.28 3.27-14.92 5.05-14.92 5.05v28.86h2.98c3.69 0 7.34.83 10.67 2.44l7.94 3.83c.6.29 1.22-.34.93-.94-.01-.02-.02-.03-.02-.05a5.86 5.86 0 01-.56-2.95c.17-2.4 1.7-4.3 3.7-5.11a5.96 5.96 0 01-1.33-6.22c.35-.95.94-1.8 1.71-2.46.5-.42 1.05-.75 1.63-.99-.44-.45-.81-.98-1.1-1.57-.45-.91-.65-1.93-.58-2.94A5.976 5.976 0 0149.38 55a5.947 5.947 0 01-1.33-6.21c.35-.97.95-1.83 1.74-2.49 1.43-1.2 3.07-1.48 4.85-1.42l2.22.15 3.53-4.36c1.26-1.44 2.27-3.07 3.02-4.83l.48-1.14c1.42-3.35 1.2-7.17-.59-10.34zM6.19 80.62h8.67c1.76 0 3.19-1.43 3.19-3.19V48.26c0-1.76-1.43-3.19-3.19-3.19H6.19C4.43 45.07 3 46.5 3 48.26v29.17a3.18 3.18 0 003.19 3.19z" class="st0"></path>
                                <g>
                                    <path d="M83.93 38.06v.59c0 .97-.79 1.75-1.75 1.75h-.04c-.97 0-1.75-.78-1.75-1.75v-.59c.05.01.1.01.16.01h3.23c.04-.01.1-.01.15-.01z" class="st4"></path>
                                    <path d="M82.17 41.19h-.04c-1.4 0-2.54-1.14-2.54-2.54v-.59a.797.797 0 01.9-.79h3.34c.23-.03.45.04.62.19.17.15.27.37.27.6v.59c0 1.4-1.14 2.54-2.55 2.54zm-.97-2.34c.1.43.48.75.94.75h.04c.46 0 .84-.32.94-.75H81.2z" class="st5"></path>
                                    <path d="M88.87 25.23a7.483 7.483 0 00-2.78 5.8v1.26h-7.87v-1.21c0-2.24-.96-4.4-2.71-5.79a10.617 10.617 0 01-4.01-8.33c0-5.99 4.94-10.83 10.97-10.65 5.53.15 10.08 4.62 10.33 10.14.17 3.54-1.41 6.73-3.93 8.78z" class="st6"></path>
                                    <path d="M86.09 33.08h-7.87c-.44 0-.79-.35-.79-.79v-1.21c0-2.03-.9-3.97-2.41-5.17a11.4 11.4 0 01-4.31-8.95c0-6.42 5.32-11.62 11.78-11.44 5.96.17 10.83 4.96 11.1 10.91.17 3.67-1.37 7.1-4.22 9.43-1.58 1.29-2.49 3.18-2.49 5.19v1.26c0 .42-.35.77-.79.77zm-7.08-1.58h6.29v-.47c0-2.49 1.12-4.82 3.07-6.41 2.46-2 3.79-4.96 3.64-8.13-.23-5.12-4.43-9.25-9.56-9.4-5.56-.16-10.16 4.33-10.16 9.86 0 3.02 1.35 5.83 3.71 7.72 1.91 1.52 3.01 3.86 3.01 6.41v.42z" class="st5"></path>
                                    <path d="M78.22 32.29H86.09V35.23H78.22z" class="st4"></path>
                                    <path d="M78.22 36.03a.787.787 0 01-.79-.79v-2.95c0-.44.35-.79.79-.79h7.87c.44 0 .79.35.79.79v2.94c0 .44-.35.79-.79.79l-7.87.01zm.79-2.95v1.37h6.29v-1.36h-6.29z" class="st5"></path>
                                    <g>
                                        <path d="M86.09 35.24v.51c0 1.23-.95 2.23-2.16 2.31-.05.01-.1.01-.16.01h-3.23c-.05 0-.11 0-.16-.01a2.31 2.31 0 01-2.16-2.31v-.51h7.87z" class="st4"></path>
                                        <path d="M83.77 38.85h-3.23c-.08 0-.16 0-.23-.01a3.11 3.11 0 01-2.88-3.1v-.51c0-.44.35-.79.79-.79h7.87a.787.787 0 01.79.79v.51a3.11 3.11 0 01-2.88 3.1c-.07.01-.15.01-.23.01zm-4.73-2.82c.13.67.7 1.19 1.4 1.24.02 0 .04 0 .06.01h3.34c.74-.05 1.32-.57 1.44-1.25h-6.24z" class="st5"></path>
                                    </g>
                                    <g>
                                        <path d="M83.93 33.08c-.44 0-.79-.34-.79-.78v-.03c0-3.96.47-7.93 1.39-11.78l.78-3.28-1.42.54c-.25.09-.53.06-.74-.1l-1.45-1.06a.785.785 0 01-.17-1.1c.26-.35.75-.43 1.1-.17l1.11.81 2.41-.91c.27-.1.58-.05.8.15.22.19.31.49.25.78l-1.13 4.72c-.89 3.74-1.35 7.58-1.35 11.42 0 .42-.36.79-.79.79z" class="st5"></path>
                                    </g>
                                    <g>
                                        <path d="M80.39 33.08c-.44 0-.79-.34-.79-.78v-.03c0-3.84-.45-7.68-1.35-11.42l-1.13-4.72a.8.8 0 01.25-.78c.22-.19.53-.25.8-.15l2.41.91 1.11-.81c.35-.26.85-.18 1.1.17.26.35.18.85-.17 1.1l-1.45 1.06c-.22.16-.5.2-.74.1L79 17.21l.78 3.28c.92 3.85 1.39 7.82 1.39 11.78.01.44-.34.81-.78.81z" class="st5"></path>
                                    </g>
                                    <g>
                                        <path d="M73.69 3.15L74 5.41a3.84 3.84 0 003.29 3.29l2.26.31-2.27.33a3.85 3.85 0 00-3.25 3.25l-.33 2.27-.33-2.27a3.85 3.85 0 00-3.25-3.25l-2.27-.33 2.24-.28a3.842 3.842 0 003.33-3.33l.27-2.25z" class="st7"></path>
                                        <path d="M73.69 15.53c-.33 0-.6-.24-.65-.56l-.33-2.27a3.182 3.182 0 00-2.7-2.7l-2.27-.33a.65.65 0 01-.56-.66c0-.33.25-.61.58-.65L70 8.08a3.184 3.184 0 002.76-2.76l.28-2.24c.04-.33.32-.57.65-.58.33 0 .61.24.65.57l.31 2.26a3.203 3.203 0 002.73 2.73l2.26.31c.32.04.57.32.57.65s-.24.61-.56.65l-2.28.33a3.182 3.182 0 00-2.7 2.7l-.33 2.27c-.05.32-.33.56-.65.56zm-2.3-6.49a4.51 4.51 0 012.3 2.33 4.443 4.443 0 012.33-2.34 4.544 4.544 0 01-2.31-2.28 4.545 4.545 0 01-2.32 2.29z" class="st5"></path>
                                    </g>
                                </g>
                            </svg>
                        </button>
                        <button class="btn-save-reaction" data-link="{{:link_save_reaction}}" data-reaction="<?php echo ContentReaction::REACTION_SUPPORT ?>" title="LABEL_REACTION_SUPPORT" data-answer="{{:uuid}}">
                            <svg xmlns="http://www.w3.org/2000/svg" class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" version="1.1" viewBox="0 0 100 100" xml:space="preserve"><text class="st28 st29" transform="translate(5.947 -6.888)">No es interesante</text><path d="M38.99 53.99c-.15-1.18.1-2.23.7-2.98.19-.24.44-.42.7-.58-.67-.49-1.18-1.25-1.27-2.54 0-.07.01-.15.01-.22-1.15 1.09-2.41 1.89-3.75 2.28-.05.02-.11.02-.16.02a.581.581 0 01-.16-1.14c2.34-.68 3.99-2.54 4.97-3.98 0 0 .01 0 .01-.01a.55.55 0 01.07-.09c.46-.48 1.05-.73 1.68-.73.13 0 .26.02.39.02-.14-.2-.26-.42-.35-.66-.45-1.2-.2-2.51.64-3.36.79-.79 2.03-.93 3.11-1.06.32-.04.62-.07.87-.12 1.63-.31 3.33-.61 5.06-.91 2.56-.44 5.16-.83 7.75-1.21.72-.61 1.21-1.41 1.23-2.07.01-.4-.15-.75-.48-1.06-.76-.69-1.95-.45-3.09-.22-.23.05-.46.09-.68.13-2.11.35-4.03.63-6.02.48-1.56-.12-3.08-.54-4.55-.94-.48-.13-.95-.26-1.42-.38-2.63-.66-5-.44-7.69.7-1.64.69-3.24 1.58-4.79 2.44-1.03.57-2.1 1.16-3.18 1.7-3.27 1.62-6.58 2.5-10.1 3.44l-.25.07c-4.51 1.2-9.12 2.24-13.71 3.08-.04.01-.07 0-.11.01-2.29.45-2.97 5.23-1.65 9.33 1.25 3.88 4.38 7.13 6.68 6.64 2.63-.56 5.06-1.94 7.48-3.04 2.21-1.01 4.5-2.06 6.86-2.85 2.57-.86 5.27-.79 7.22.21.35.18.67.4.98.61l.08.06c2.5 1.72 5.3 3.63 8.37 4.38-.13-.95.1-1.92.6-2.67-1.04-.55-1.87-1.38-2.05-2.78z" class="st30"></path><path d="M96.7 44.83c-.04 0-.06.03-.1.02-2.16-.42-4.42-.78-6.6-1.13-5.02-.81-10.21-1.65-15.03-3.26-.86-.29-1.75-.62-2.62-.94-3.38-1.25-6.87-2.55-10.24-2.07-3.47.49-6.97 1.04-10.42 1.63-1.72.3-3.42.6-5.04.91-.3.06-.62.09-.95.13-.9.1-1.92.22-2.42.73-.52.52-.67 1.35-.38 2.12.25.66.77 1.08 1.38 1.12.05 0 .08.04.12.06 2 .07 4.01.13 6 .28.32.02.56.3.54.63-.02.32-.3.56-.63.54-2.84-.21-5.71-.35-8.55-.39-.31 0-.57.11-.81.36l-.03.03c-.44.49-.7 1.35-.64 2.22.12 1.77 1.21 2.08 2.87 2.35 2.21.37 7.21.87 7.26.87.32.03.56.32.52.64-.03.3-.28.53-.58.53h-.06c-.21-.02-5.09-.51-7.34-.88-.34-.06-.73-.12-1.12-.23-.01 0-.01.01-.01.01-.51.05-.92.27-1.22.64-.4.5-.56 1.25-.45 2.11.22 1.77 2.03 2.29 4.02 2.69l.4.08c1.64.35 6.25.83 6.3.83.32.03.55.32.52.64-.03.3-.28.52-.58.52h-.06c-.19-.02-4.72-.49-6.43-.85l-.39-.08c-.54-.11-1.19-.25-1.84-.47-.58.65-.77 1.86-.37 2.74.57 1.27 1.78 1.5 3.05 1.74.15.03.3.06.44.09 1.64.33 6.74 1.82 10.73 3 .31.09.49.42.39.73-.08.25-.31.42-.56.42-.06 0-.11-.01-.17-.02-3.28-.98-5.92-1.74-7.81-2.26 1.29 1.42 2.74 2.99 4.25 3.64 2.73 1.17 5.44-.43 8.06-1.97.23-.14.47-.27.69-.41l10.37-6.03c.11-.06.22-.13.33-.2.7-.42 1.42-.86 2.35-.81 1.58.08 3.22.77 4.8 1.43.74.31 1.43.6 2.09.82 2.59.86 7.49 2.38 7.49 2.38 1.74.56 6.21-2.87 8.26-7.33 2.08-4.46 1.69-9.95.22-10.35z" class="st0"></path></svg>
                        </button>
                        <button class="btn-save-reaction" data-link="{{:link_save_reaction}}" data-reaction="<?php echo ContentReaction::REACTION_LOVE ?>" title="LABEL_REACTION_LOVE" data-answer="{{:uuid}}">
                            <svg xmlns="http://www.w3.org/2000/svg" class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" version="1.1" viewBox="0 0 100 100" xml:space="preserve"><path d="M87.42 17.46c-9.63-9.63-25.25-9.63-34.88 0L50 20.01l-2.55-2.55c-9.63-9.63-25.25-9.63-34.88 0-9.63 9.63-9.63 25.25 0 34.88l2.55 2.55L50 89.76l34.88-34.88 2.55-2.55c9.62-9.62 9.62-25.24-.01-34.87z" class="st0"></path><path d="M87.42 17.46c-9.63-9.63-25.25-9.63-34.88 0L50 20.01l-2.55-2.55c-9.63-9.63-25.25-9.63-34.88 0-9.63 9.63-9.63 25.25 0 34.88l2.55 2.55L50 89.76l34.88-34.88 2.55-2.55c9.62-9.62 9.62-25.24-.01-34.87z" class="st1"></path><path d="M88.62 51.04c.65-.75 1.25-1.53 1.8-2.33L66.57 20.82l-.19 1.75-3.11 5.89-8.34 3.43-7 11.81-11.2-5.17-1.22-1.4s-4.07 4.84-4.83 5.25c-.76.42-6.28 17.8-6.28 17.8l9.42 13.39L50 89.76l23.11-23.11 11.76-11.76 2.55-2.55c.39-.39.75-.79 1.11-1.19l.09-.11z" class="st2"></path><path d="M72.43 44.43l-13.11-2.01a3.121 3.121 0 11.95-6.17l13.05.8c1.7.26 2.94 3.07 2.68 4.77a3.136 3.136 0 01-3.57 2.61zM70.6 52.05l-12.87-2.69A3.092 3.092 0 0159 43.31l13.17 2.29c1.67.35 2.44 2.38 2.09 4.06a3.092 3.092 0 01-3.66 2.39zM68.77 59.62l-12.62-3.14a3.042 3.042 0 01-2.36-3.61 3.042 3.042 0 013.61-2.36l12.7 2.65c1.65.34 2.71 1.96 2.36 3.61-.34 1.66-2.04 3.2-3.69 2.85zM64.64 66.52l-10.19-3.4a2.887 2.887 0 011.48-5.58l11.23 2.93c1.54.41 2.46 1.99 2.05 3.53-.41 1.53-3.03 2.92-4.57 2.52z" class="st3"></path><path d="M66.57 20.82c-.38-.56-1.63-1.77-2.35-.73l-.43.63a20.198 20.198 0 01-6.49 6.02c-2.07 1.21-4.27 2.49-4.66 2.69-.4.21-3.49 2.54-6.33 4.71-3.03 2.31-10.53 3.56-10.53 3.56v20.39h2.11c2.61 0 5.18.59 7.53 1.72l5.61 2.7c.42.2.86-.24.65-.66-.01-.01-.01-.02-.02-.04-.31-.65-.45-1.37-.4-2.08.12-1.7 1.2-3.03 2.62-3.61a4.19 4.19 0 01-.94-4.39c.24-.67.66-1.27 1.21-1.73.35-.3.74-.53 1.15-.7a4.43 4.43 0 01-.78-1.11c-.31-.64-.46-1.36-.41-2.08a4.195 4.195 0 012.62-3.64 4.209 4.209 0 01-.94-4.38c.25-.68.67-1.29 1.23-1.76 1.01-.85 2.17-1.05 3.43-1.01l1.57.1 2.49-3.08c.89-1.02 1.61-2.17 2.13-3.41l.34-.81c1.01-2.36.86-5.06-.41-7.3zM25.81 60.56h6.97c1.01 0 1.83-.82 1.83-1.83V37.28c0-1.01-.82-1.83-1.83-1.83h-6.97c-1.01 0-1.83.82-1.83 1.83v21.45c0 1.01.82 1.83 1.83 1.83z" class="st3"></path></svg>
                        </button>
                        <button class="btn-save-reaction" data-link="{{:link_save_reaction}}" data-reaction="<?php echo ContentReaction::REACTION_INTEREST ?>" title="LABEL_REACTION_INTEREST" data-answer="{{:uuid}}">
                            <svg xmlns="http://www.w3.org/2000/svg" class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" version="1.1" viewBox="0 0 100 100" xml:space="preserve"><path d="M71.16 62.65V63c0 .58-.47 1.05-1.05 1.05h-.02c-.58 0-1.05-.47-1.05-1.05v-.35h2.03c.03.01.06.01.09 0z" class="st4"></path><path d="M70.11 64.54h-.02c-.84 0-1.53-.69-1.53-1.53v-.35a.468.468 0 01.54-.47h2.01c.14-.02.27.02.37.11.1.09.16.22.16.36v.35c0 .84-.69 1.53-1.53 1.53zm-.59-1.41c.06.26.29.45.57.45h.02c.28 0 .51-.19.57-.45h-1.16z" class="st5"></path><path d="M74.14 54.93a4.509 4.509 0 00-1.67 3.49v.76h-4.74v-.73c0-1.35-.58-2.65-1.63-3.49a6.42 6.42 0 01-2.41-5.02c0-3.6 2.97-6.52 6.6-6.41 3.33.1 6.07 2.79 6.22 6.11.1 2.14-.85 4.06-2.37 5.29z" class="st6"></path><path d="M72.47 59.66h-4.74a.48.48 0 01-.48-.48v-.73c0-1.22-.54-2.39-1.45-3.11a6.859 6.859 0 01-2.59-5.39c0-3.87 3.2-7 7.09-6.89 3.59.1 6.52 2.99 6.68 6.57.1 2.21-.82 4.28-2.54 5.67-.95.77-1.5 1.91-1.5 3.12v.76c0 .27-.21.48-.47.48zm-4.26-.95h3.78v-.29c0-1.5.67-2.9 1.85-3.86a5.902 5.902 0 002.19-4.89c-.14-3.08-2.67-5.57-5.76-5.66-3.34-.09-6.11 2.6-6.11 5.94 0 1.82.81 3.51 2.24 4.65 1.15.92 1.81 2.32 1.81 3.86v.25z" class="st5"></path><path d="M67.73 59.19H72.47V60.96H67.73z" class="st4"></path><path d="M67.73 61.43a.476.476 0 01-.48-.48v-1.77c0-.26.21-.48.48-.48h4.74c.26 0 .48.21.48.48v1.77c0 .26-.21.48-.48.48h-4.74zm.48-1.77v.82h3.78v-.82h-3.78z" class="st5"></path><g><path d="M72.47 60.96v.31c0 .74-.57 1.34-1.3 1.39H69.05a1.39 1.39 0 01-1.3-1.39v-.3l4.72-.01z" class="st4"></path><path d="M71.07 63.13h-1.94c-.05 0-.09 0-.14-.01-.97-.07-1.73-.89-1.73-1.87v-.3c0-.26.21-.48.48-.48h4.74a.476.476 0 01.48.48v.31c0 .98-.76 1.8-1.73 1.87h-.16zm-2.85-1.7c.08.4.42.72.84.75h2.05a.94.94 0 00.87-.75h-3.76z" class="st5"></path></g><g><path d="M71.16 59.66c-.26 0-.48-.2-.48-.47v-.02c0-2.39.28-4.77.84-7.09l.48-1.97-.86.32c-.15.06-.32.03-.45-.06l-.87-.64a.467.467 0 01-.1-.66c.15-.21.45-.26.66-.1l.67.49 1.45-.55a.47.47 0 01.48.09c.13.12.19.3.15.47l-.68 2.84a29.46 29.46 0 00-.81 6.87c0 .26-.21.48-.48.48z" class="st5"></path></g><g><path d="M69.03 59.66c-.26 0-.48-.2-.48-.47v-.02c0-2.31-.27-4.62-.81-6.87l-.68-2.84c-.04-.17.02-.35.15-.47a.47.47 0 01.48-.09l1.45.55.67-.49c.21-.16.51-.11.66.1.15.21.11.51-.1.66l-.87.64c-.13.09-.3.12-.45.06l-.86-.32.47 1.97c.56 2.32.84 4.71.84 7.09.01.28-.2.5-.47.5z" class="st5"></path></g><g><path d="M65 41.65l.19 1.35c.14 1.03.95 1.84 1.98 1.98l1.36.19-1.37.2c-1.01.15-1.81.94-1.96 1.96L65 48.7l-.2-1.37a2.323 2.323 0 00-1.96-1.96l-1.37-.2 1.35-.17c1.05-.13 1.87-.96 2.01-2.01l.17-1.34z" class="st7"></path><path d="M65 49.09a.39.39 0 01-.39-.34l-.2-1.37c-.12-.85-.78-1.5-1.62-1.62l-1.37-.2a.398.398 0 01.01-.79l1.35-.17a1.91 1.91 0 001.66-1.66l.17-1.35c.03-.2.19-.35.39-.35s.37.15.39.34l.19 1.36c.12.85.79 1.53 1.64 1.64l1.36.19c.2.03.34.19.34.39s-.14.37-.34.39l-1.37.2c-.85.12-1.5.78-1.62 1.62l-.2 1.37a.39.39 0 01-.39.35zm-1.38-3.9c.62.28 1.11.78 1.38 1.4.27-.63.77-1.14 1.4-1.41-.62-.27-1.12-.76-1.39-1.37a2.75 2.75 0 01-1.39 1.38z" class="st5"></path></g><path d="M69.57 37.28c-8.37 0-15.19 6.81-15.19 15.19s6.81 15.19 15.19 15.19 15.19-6.81 15.19-15.19-6.81-15.19-15.19-15.19zm0 29c-7.62 0-13.82-6.2-13.82-13.82s6.2-13.82 13.82-13.82 13.82 6.2 13.82 13.82-6.19 13.82-13.82 13.82z" class="st22"></path><path d="M35.81 50.46c8.66 0 15.7-7.04 15.7-15.7v-8.15c1.22-1.26 7.48-8.03 8.74-15.64.16-.94-.17-1.89-.88-2.52-.7-.63-1.65-.85-2.56-.6-3.81 1.04-11.58 2.8-20.9 2.8h-.11c-1.55 0-3.07.22-4.51.66-.72.22-1.43.48-2.11.8a15.589 15.589 0 00-3.21 2.01 15.815 15.815 0 00-2.67 2.74c-.61.81-1.14 1.66-1.59 2.56-.33.67-.61 1.37-.85 2.09-.46 1.43-.72 2.94-.75 4.48-.01.12-.01.24-.01.35v8.42c.02 8.66 7.06 15.7 15.71 15.7zm0-1.36c-7.9 0-14.33-6.43-14.33-14.34v-7.74h28.67v7.74c0 7.91-6.43 14.34-14.34 14.34z" class="st0"></path><path d="M34.48 46.84c2.16.59 4.49-.03 6.08-1.6.38-.37.38-.99.01-1.37a.975.975 0 00-1.37-.01 4.38 4.38 0 01-4.22 1.11 4.37 4.37 0 01-3.07-3.1.973.973 0 00-1.18-.69c-.52.14-.82.67-.69 1.18a6.337 6.337 0 004.44 4.48z" class="st22"></path><path d="M48.52 55.5c-.21-.16-.42-.32-.64-.48-3.52-2.56-7.69-3.92-12.06-3.92s-8.54 1.35-12.07 3.91a20.631 20.631 0 00-8.51 16.66V84.5c0 4.27 3.48 7.75 7.75 7.75h25.66c4.27 0 7.75-3.47 7.75-7.75V71.67c0-5.49-2.14-10.66-6.03-14.55-.58-.57-1.2-1.12-1.85-1.62zm-12.7 23.36l-4.57-9.75 4.57-13.09 4.56 13.1-4.56 9.74zm5.39-11.5l-4.75-13.62a.69.69 0 00-.64-.46c-.29 0-.55.18-.64.46l-4.75 13.62-5.41-11.56c3.19-2.18 6.92-3.33 10.81-3.33s7.62 1.15 10.81 3.34l-5.43 11.55z" class="st0"></path><g><path d="M48.91 30.61c-.29-.47-2.56-.26-5.85-.33-3.29-.07-5.48.4-7.31.33-1.83-.07-5.12-.33-7.23-.33-3.24 0-5.51.09-5.68.16-.27.13-.47.89.13 1.41.37.31.62.62 1.17 2.34.55 1.72 1.39 4.9 5.04 4.86 3.65-.04 4.71-2.96 4.97-4.27.26-1.32 1.21-2.01 1.53-2.01s1.13-.22 1.61 1.86c.47 2.08 1.94 4.53 5.37 4.46 3.43-.07 4.64-4.05 4.82-5.33.18-1.28 1.04-1.66 1.24-1.86.21-.22.54-.73.19-1.29zm-19.55 7.93c-4.96.11-4.67-6.5-4.23-6.85.42-.34 3.04-.27 4.34-.27 1.3 0 3.92.01 4.23.42.35.45.62 6.59-4.34 6.7zm12.95.04c-4.96-.11-4.69-6.25-4.34-6.7.32-.41 2.93-.42 4.23-.42s3.92-.07 4.34.27c.44.35.73 6.96-4.23 6.85z" class="0"></path><path d="M42.31 38.54c-4.96-.11-4.69-6.25-4.34-6.7.32-.41 2.93-.42 4.23-.42s3.92-.07 4.34.27c.44.35.73 6.96-4.23 6.85zM29.41 38.54c-4.96-.11-4.69-6.25-4.34-6.7.32-.41 2.93-.42 4.23-.42 1.3 0 3.92-.07 4.34.27.44.35.73 6.96-4.23 6.85z" class="st3"></path></g></svg>
                        </button>
                        <button class="btn-save-reaction" data-link="{{:link_save_reaction}}" data-reaction="<?php echo ContentReaction::REACTION_FUN ?>" title="LABEL_REACTION_FUN" data-answer="{{:uuid}}">
                            <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" version="1.1" viewBox="0 0 100 100" xml:space="preserve"><g><defs><ellipse id="SVGID_00000127751164164416277760000017379854605069759882_" cx="49.6" cy="50" rx="41.88" ry="41.88" transform="rotate(-45.001 49.602 50)"></ellipse></defs><use fill="#3C5A9A" overflow="visible" xlink:href="#SVGID_00000127751164164416277760000017379854605069759882_"></use><clipPath id="SVGID_00000145779529853686429170000009984758207159936896_"><use overflow="visible" xlink:href="#SVGID_00000127751164164416277760000017379854605069759882_"></use></clipPath><g clip-path="url(#SVGID_00000145779529853686429170000009984758207159936896_)"><ellipse cx="49.5" cy="50" class="st0" rx="41.88" ry="41.88" transform="rotate(-22.5 49.494 49.998)"></ellipse></g></g><path d="M76.75 51.56c0 1.4-.15 2.8-.46 4.13-2.31 10.42-13.31 18.33-26.5 18.33s-24.19-7.9-26.53-18.33c-.3-1.34-.46-2.74-.46-4.13 0-1.91.3-3.77.82-5.56 6.84 4.1 16.32 6.63 26.78 6.63 9.94 0 18.9-2.28 25.68-6.02.46 1.58.67 3.25.67 4.95z" class="st15"></path><path d="M76.75 51.56c0 1.4-.15 2.8-.46 4.13-2.31 10.42-13.31 18.33-26.5 18.33s-24.19-7.9-26.53-18.33c-.3-1.34-.46-2.74-.46-4.13 0-.61.03-1.19.09-1.76.06.82.18 1.67.36 2.46C25.6 62.68 36.6 70.59 49.79 70.59s24.19-7.9 26.5-18.33c.18-.85.33-1.7.36-2.58.07.6.1 1.24.1 1.88z" class="st10"></path><path d="M76.75 51.56c0 1.4-.15 2.8-.46 4.13-6.81 4.01-16.14 6.47-26.5 6.47S30.1 59.7 23.26 55.69c-.3-1.34-.46-2.74-.46-4.13 0-1.91.3-3.77.82-5.56 6.84 4.1 16.32 6.63 26.78 6.63 9.94 0 18.9-2.28 25.68-6.02.46 1.58.67 3.25.67 4.95zM80.63 40c-.56-.15-1.03-.58-1.2-1.17-2.74-9.02-12.82-9.36-13.24-9.37-.99-.03-1.72-.82-1.7-1.77.02-.96.81-1.72 1.77-1.7 4.49.08 13.72 2.66 16.5 11.83.28.92-.24 1.89-1.16 2.17-.33.09-.66.09-.97.01z" class="st3"></path><path d="M82.56 39.25c-.02-.16-.04-.31-.09-.44-2.77-9.18-12.01-11.75-16.49-11.84-.6-.01-1.13.29-1.47.77l-.02-.04c.03-.98.81-1.73 1.76-1.71 4.49.06 13.73 2.66 16.5 11.81.17.49.08 1.04-.19 1.45z" class="st3"></path><g><path d="M17.61 40c.56-.15 1.03-.58 1.2-1.17 2.74-9.02 12.82-9.36 13.24-9.37.99-.03 1.72-.82 1.7-1.77-.02-.96-.81-1.72-1.77-1.7-4.49.08-13.72 2.66-16.5 11.83-.28.92.24 1.89 1.16 2.17.33.09.66.09.97.01z" class="st3"></path><path d="M15.68 39.25c.02-.16.04-.31.09-.44 2.77-9.18 12.01-11.75 16.49-11.84.6-.01 1.13.29 1.47.77l.02-.04c-.03-.98-.81-1.73-1.76-1.71-4.49.06-13.73 2.66-16.5 11.81-.16.49-.07 1.04.19 1.45z" class="st3"></path></g><g><path d="M55.85 42.27c.69-2.02 2.12-3.64 3.85-4.85 1.74-1.24 3.93-1.95 6.2-2.02 2.25.01 4.56.61 6.29 1.95 1.8 1.21 3.07 2.97 3.79 4.92-2.05-.61-3.7-1.34-5.35-1.73-1.61-.47-3.14-.63-4.65-.6-3.06-.02-6.2 1.02-10.13 2.33z" class="st3"></path><path d="M75.97 42.26c-.34-.11-.68-.23-1.02-.3-.64-1.14-1.59-2.16-2.77-2.96-1.71-1.33-4.02-1.93-6.29-1.93-2.24.08-4.43.76-6.18 2.01-1.1.76-2.12 1.71-2.8 2.84-.34.11-.68.23-1.06.34.68-2.01 2.12-3.64 3.86-4.85 1.74-1.25 3.94-1.97 6.18-2.01 2.27 0 4.58.61 6.29 1.93 1.82 1.22 3.07 2.96 3.79 4.93z" class="st3"></path><g><path d="M42.93 42.27c-.69-2.02-2.12-3.64-3.85-4.85-1.74-1.24-3.93-1.95-6.2-2.02-2.25.01-4.56.61-6.29 1.95-1.8 1.21-3.07 2.97-3.79 4.92 2.05-.61 3.7-1.34 5.35-1.73 1.61-.47 3.14-.63 4.65-.6 3.06-.02 6.19 1.02 10.13 2.33z" class="st3"></path><path d="M22.8 42.26c.34-.11.68-.23 1.02-.3.64-1.14 1.59-2.16 2.77-2.96 1.71-1.33 4.02-1.93 6.29-1.93 2.24.08 4.43.76 6.18 2.01 1.1.76 2.12 1.71 2.8 2.84.34.11.68.23 1.06.34-.68-2.01-2.12-3.64-3.86-4.85-1.74-1.25-3.94-1.97-6.18-2.01-2.27 0-4.58.61-6.29 1.93-1.82 1.22-3.07 2.96-3.79 4.93z" class="st3"></path></g></g><g><path d="M25.86 63.51c-3.38 5.33-10.09 7.14-14.98 4.04-4.89-3.1-6.12-9.94-2.74-15.27s19.54-13.9 20.74-13.14c1.21.77.36 19.04-3.02 24.37z" class="st29"></path><path d="M25.86 63.51c-3.38 5.33-10.09 7.14-14.98 4.04-4.89-3.1-6.11-9.94-2.74-15.27.16-.26.35-.52.57-.77-2.64 5.16-1.26 11.33 3.32 14.23 4.58 2.9 10.75 1.52 14.29-3.08-.15.31-.3.59-.46.85z" class="st30"></path><path d="M25.86 63.5c-.21.33-.44.66-.68.95 3-6.21 3.69-22.78 2.55-23.5-1.15-.73-15.83 6.98-20.16 12.34.16-.34.36-.68.57-1.02 3.38-5.33 19.53-13.9 20.74-13.13 1.19.76.36 19.03-3.02 24.36z" class="st31"></path><g><path d="M73.35 63.51c3.38 5.33 10.09 7.14 14.98 4.04 4.89-3.1 6.12-9.94 2.74-15.27s-19.54-13.9-20.74-13.14c-1.21.77-.36 19.04 3.02 24.37z" class="st29"></path><path d="M73.35 63.51c3.38 5.33 10.09 7.14 14.98 4.04 4.89-3.1 6.11-9.94 2.74-15.27-.16-.26-.35-.52-.57-.77 2.64 5.16 1.26 11.33-3.32 14.23-4.58 2.9-10.75 1.52-14.29-3.08.14.31.3.59.46.85z" class="st30"></path><path d="M73.34 63.5c.21.33.44.66.68.95-3-6.21-3.69-22.78-2.55-23.5 1.15-.73 15.83 6.98 20.16 12.34-.16-.34-.36-.68-.57-1.02-3.38-5.33-19.53-13.9-20.74-13.13-1.19.76-.35 19.03 3.02 24.36z" class="st31"></path></g></g></svg>
                        </button>
                    </div>
                </div>
            </div>

            <div class="comments-container mt-2 show">
                <form class="feedCommentContainer"  id="form-comment-{{:uuid}}" class="form-comment-{{:uuid}}" action="{{:link_add_comment}}" data-answer="{{:uuid}}">
                    <input class="commentInput" type="text" name="comment" id="comment" maxlength="256" placeholder="LABEL_WRITE_A_COMMENT">
                    <button class="btn btn-primary" type="submit">LABEL_SEND</button>
                </form>
                <ul id="comment-list-{{:uuid}}" class="comment-list">
                    {{for comments}}

                    <li>
                        <div class="comment-container">
                               <div class="comment-content comment-{{:unique}}" >
                                   <div class="info">
                                    <a href="{{>user_url}}">
                                        <h3>{{>user_name}}</h3>
                                    </a>
                                    <span>
                                        {{>time_elapsed}}
                                        {{if link_delete}}
                                        <a href="#" class="btn-comment-trash" data-link="{{:link_delete}}" data-comment-unique="{{>unique}}" data-answer-uuid="{{>answer_uuid}}">
                                        <i class="fa fa-trash"></i>
                                        </a> 
                                        {{/if}}
                                    </span>
                                </div>            
                                        <p>{{>comment}}</p>
                                  </div>
                           </div>
                    </li>


                    {{/for}}
                </ul>

            </div>
    </div>
</script>

<script id="reactionTemplate" type="text/x-jsrender">
    {{if reaction === '<?php echo ContentReaction::REACTION_FUN ?>'}}
    <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" version="1.1" viewBox="0 0 100 100" xml:space="preserve">
        <g>
            <defs>
                <ellipse id="SVGID_00000127751164164416277760000017379854605069759882_" cx="49.6" cy="50" rx="41.88" ry="41.88" transform="rotate(-45.001 49.602 50)"></ellipse>
            </defs>
            <use fill="#3C5A9A" overflow="visible" xlink:href="#SVGID_00000127751164164416277760000017379854605069759882_"></use>
            <clipPath id="SVGID_00000145779529853686429170000009984758207159936896_">
                <use overflow="visible" xlink:href="#SVGID_00000127751164164416277760000017379854605069759882_"></use>
            </clipPath>
            <g clip-path="url(#SVGID_00000145779529853686429170000009984758207159936896_)">
                <ellipse cx="49.5" cy="50" class="st0" rx="41.88" ry="41.88" transform="rotate(-22.5 49.494 49.998)"></ellipse>
            </g>
        </g>
        <path d="M76.75 51.56c0 1.4-.15 2.8-.46 4.13-2.31 10.42-13.31 18.33-26.5 18.33s-24.19-7.9-26.53-18.33c-.3-1.34-.46-2.74-.46-4.13 0-1.91.3-3.77.82-5.56 6.84 4.1 16.32 6.63 26.78 6.63 9.94 0 18.9-2.28 25.68-6.02.46 1.58.67 3.25.67 4.95z" class="st15"></path>
        <path d="M76.75 51.56c0 1.4-.15 2.8-.46 4.13-2.31 10.42-13.31 18.33-26.5 18.33s-24.19-7.9-26.53-18.33c-.3-1.34-.46-2.74-.46-4.13 0-.61.03-1.19.09-1.76.06.82.18 1.67.36 2.46C25.6 62.68 36.6 70.59 49.79 70.59s24.19-7.9 26.5-18.33c.18-.85.33-1.7.36-2.58.07.6.1 1.24.1 1.88z" class="st10"></path>
        <path d="M76.75 51.56c0 1.4-.15 2.8-.46 4.13-6.81 4.01-16.14 6.47-26.5 6.47S30.1 59.7 23.26 55.69c-.3-1.34-.46-2.74-.46-4.13 0-1.91.3-3.77.82-5.56 6.84 4.1 16.32 6.63 26.78 6.63 9.94 0 18.9-2.28 25.68-6.02.46 1.58.67 3.25.67 4.95zM80.63 40c-.56-.15-1.03-.58-1.2-1.17-2.74-9.02-12.82-9.36-13.24-9.37-.99-.03-1.72-.82-1.7-1.77.02-.96.81-1.72 1.77-1.7 4.49.08 13.72 2.66 16.5 11.83.28.92-.24 1.89-1.16 2.17-.33.09-.66.09-.97.01z" class="st3"></path>
        <path d="M82.56 39.25c-.02-.16-.04-.31-.09-.44-2.77-9.18-12.01-11.75-16.49-11.84-.6-.01-1.13.29-1.47.77l-.02-.04c.03-.98.81-1.73 1.76-1.71 4.49.06 13.73 2.66 16.5 11.81.17.49.08 1.04-.19 1.45z" class="st3"></path>
        <g>
            <path d="M17.61 40c.56-.15 1.03-.58 1.2-1.17 2.74-9.02 12.82-9.36 13.24-9.37.99-.03 1.72-.82 1.7-1.77-.02-.96-.81-1.72-1.77-1.7-4.49.08-13.72 2.66-16.5 11.83-.28.92.24 1.89 1.16 2.17.33.09.66.09.97.01z" class="st3"></path>
            <path d="M15.68 39.25c.02-.16.04-.31.09-.44 2.77-9.18 12.01-11.75 16.49-11.84.6-.01 1.13.29 1.47.77l.02-.04c-.03-.98-.81-1.73-1.76-1.71-4.49.06-13.73 2.66-16.5 11.81-.16.49-.07 1.04.19 1.45z" class="st3"></path>
        </g>
        <g>
            <path d="M55.85 42.27c.69-2.02 2.12-3.64 3.85-4.85 1.74-1.24 3.93-1.95 6.2-2.02 2.25.01 4.56.61 6.29 1.95 1.8 1.21 3.07 2.97 3.79 4.92-2.05-.61-3.7-1.34-5.35-1.73-1.61-.47-3.14-.63-4.65-.6-3.06-.02-6.2 1.02-10.13 2.33z" class="st3"></path>
            <path d="M75.97 42.26c-.34-.11-.68-.23-1.02-.3-.64-1.14-1.59-2.16-2.77-2.96-1.71-1.33-4.02-1.93-6.29-1.93-2.24.08-4.43.76-6.18 2.01-1.1.76-2.12 1.71-2.8 2.84-.34.11-.68.23-1.06.34.68-2.01 2.12-3.64 3.86-4.85 1.74-1.25 3.94-1.97 6.18-2.01 2.27 0 4.58.61 6.29 1.93 1.82 1.22 3.07 2.96 3.79 4.93z" class="st3"></path>
            <g>
                <path d="M42.93 42.27c-.69-2.02-2.12-3.64-3.85-4.85-1.74-1.24-3.93-1.95-6.2-2.02-2.25.01-4.56.61-6.29 1.95-1.8 1.21-3.07 2.97-3.79 4.92 2.05-.61 3.7-1.34 5.35-1.73 1.61-.47 3.14-.63 4.65-.6 3.06-.02 6.19 1.02 10.13 2.33z" class="st3"></path>
                <path d="M22.8 42.26c.34-.11.68-.23 1.02-.3.64-1.14 1.59-2.16 2.77-2.96 1.71-1.33 4.02-1.93 6.29-1.93 2.24.08 4.43.76 6.18 2.01 1.1.76 2.12 1.71 2.8 2.84.34.11.68.23 1.06.34-.68-2.01-2.12-3.64-3.86-4.85-1.74-1.25-3.94-1.97-6.18-2.01-2.27 0-4.58.61-6.29 1.93-1.82 1.22-3.07 2.96-3.79 4.93z" class="st3"></path>
            </g>
        </g>
        <g>
            <path d="M25.86 63.51c-3.38 5.33-10.09 7.14-14.98 4.04-4.89-3.1-6.12-9.94-2.74-15.27s19.54-13.9 20.74-13.14c1.21.77.36 19.04-3.02 24.37z" class="st29"></path>
            <path d="M25.86 63.51c-3.38 5.33-10.09 7.14-14.98 4.04-4.89-3.1-6.11-9.94-2.74-15.27.16-.26.35-.52.57-.77-2.64 5.16-1.26 11.33 3.32 14.23 4.58 2.9 10.75 1.52 14.29-3.08-.15.31-.3.59-.46.85z" class="st30"></path>
            <path d="M25.86 63.5c-.21.33-.44.66-.68.95 3-6.21 3.69-22.78 2.55-23.5-1.15-.73-15.83 6.98-20.16 12.34.16-.34.36-.68.57-1.02 3.38-5.33 19.53-13.9 20.74-13.13 1.19.76.36 19.03-3.02 24.36z" class="st31"></path>
            <g>
                <path d="M73.35 63.51c3.38 5.33 10.09 7.14 14.98 4.04 4.89-3.1 6.12-9.94 2.74-15.27s-19.54-13.9-20.74-13.14c-1.21.77-.36 19.04 3.02 24.37z" class="st29"></path>
                <path d="M73.35 63.51c3.38 5.33 10.09 7.14 14.98 4.04 4.89-3.1 6.11-9.94 2.74-15.27-.16-.26-.35-.52-.57-.77 2.64 5.16 1.26 11.33-3.32 14.23-4.58 2.9-10.75 1.52-14.29-3.08.14.31.3.59.46.85z" class="st30"></path>
                <path d="M73.34 63.5c.21.33.44.66.68.95-3-6.21-3.69-22.78-2.55-23.5 1.15-.73 15.83 6.98 20.16 12.34-.16-.34-.36-.68-.57-1.02-3.38-5.33-19.53-13.9-20.74-13.13-1.19.76-.35 19.03 3.02 24.36z" class="st31"></path>
            </g>
        </g>
    </svg>
    LABEL_REACTION_FUN
    {{/if}}

    {{if reaction === '<?php echo ContentReaction::REACTION_INTEREST ?>'}}
    <svg xmlns="http://www.w3.org/2000/svg" class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" version="1.1" viewBox="0 0 100 100" xml:space="preserve">
        <path d="M71.16 62.65V63c0 .58-.47 1.05-1.05 1.05h-.02c-.58 0-1.05-.47-1.05-1.05v-.35h2.03c.03.01.06.01.09 0z" class="st4"></path>
        <path d="M70.11 64.54h-.02c-.84 0-1.53-.69-1.53-1.53v-.35a.468.468 0 01.54-.47h2.01c.14-.02.27.02.37.11.1.09.16.22.16.36v.35c0 .84-.69 1.53-1.53 1.53zm-.59-1.41c.06.26.29.45.57.45h.02c.28 0 .51-.19.57-.45h-1.16z" class="st5"></path>
        <path d="M74.14 54.93a4.509 4.509 0 00-1.67 3.49v.76h-4.74v-.73c0-1.35-.58-2.65-1.63-3.49a6.42 6.42 0 01-2.41-5.02c0-3.6 2.97-6.52 6.6-6.41 3.33.1 6.07 2.79 6.22 6.11.1 2.14-.85 4.06-2.37 5.29z" class="st6"></path>
        <path d="M72.47 59.66h-4.74a.48.48 0 01-.48-.48v-.73c0-1.22-.54-2.39-1.45-3.11a6.859 6.859 0 01-2.59-5.39c0-3.87 3.2-7 7.09-6.89 3.59.1 6.52 2.99 6.68 6.57.1 2.21-.82 4.28-2.54 5.67-.95.77-1.5 1.91-1.5 3.12v.76c0 .27-.21.48-.47.48zm-4.26-.95h3.78v-.29c0-1.5.67-2.9 1.85-3.86a5.902 5.902 0 002.19-4.89c-.14-3.08-2.67-5.57-5.76-5.66-3.34-.09-6.11 2.6-6.11 5.94 0 1.82.81 3.51 2.24 4.65 1.15.92 1.81 2.32 1.81 3.86v.25z" class="st5"></path>
        <path d="M67.73 59.19H72.47V60.96H67.73z" class="st4"></path>
        <path d="M67.73 61.43a.476.476 0 01-.48-.48v-1.77c0-.26.21-.48.48-.48h4.74c.26 0 .48.21.48.48v1.77c0 .26-.21.48-.48.48h-4.74zm.48-1.77v.82h3.78v-.82h-3.78z" class="st5"></path>
        <g>
            <path d="M72.47 60.96v.31c0 .74-.57 1.34-1.3 1.39H69.05a1.39 1.39 0 01-1.3-1.39v-.3l4.72-.01z" class="st4"></path>
            <path d="M71.07 63.13h-1.94c-.05 0-.09 0-.14-.01-.97-.07-1.73-.89-1.73-1.87v-.3c0-.26.21-.48.48-.48h4.74a.476.476 0 01.48.48v.31c0 .98-.76 1.8-1.73 1.87h-.16zm-2.85-1.7c.08.4.42.72.84.75h2.05a.94.94 0 00.87-.75h-3.76z" class="st5"></path>
        </g>
        <g>
            <path d="M71.16 59.66c-.26 0-.48-.2-.48-.47v-.02c0-2.39.28-4.77.84-7.09l.48-1.97-.86.32c-.15.06-.32.03-.45-.06l-.87-.64a.467.467 0 01-.1-.66c.15-.21.45-.26.66-.1l.67.49 1.45-.55a.47.47 0 01.48.09c.13.12.19.3.15.47l-.68 2.84a29.46 29.46 0 00-.81 6.87c0 .26-.21.48-.48.48z" class="st5"></path>
        </g>
        <g>
            <path d="M69.03 59.66c-.26 0-.48-.2-.48-.47v-.02c0-2.31-.27-4.62-.81-6.87l-.68-2.84c-.04-.17.02-.35.15-.47a.47.47 0 01.48-.09l1.45.55.67-.49c.21-.16.51-.11.66.1.15.21.11.51-.1.66l-.87.64c-.13.09-.3.12-.45.06l-.86-.32.47 1.97c.56 2.32.84 4.71.84 7.09.01.28-.2.5-.47.5z" class="st5"></path>
        </g>
        <g>
            <path d="M65 41.65l.19 1.35c.14 1.03.95 1.84 1.98 1.98l1.36.19-1.37.2c-1.01.15-1.81.94-1.96 1.96L65 48.7l-.2-1.37a2.323 2.323 0 00-1.96-1.96l-1.37-.2 1.35-.17c1.05-.13 1.87-.96 2.01-2.01l.17-1.34z" class="st7"></path>
            <path d="M65 49.09a.39.39 0 01-.39-.34l-.2-1.37c-.12-.85-.78-1.5-1.62-1.62l-1.37-.2a.398.398 0 01.01-.79l1.35-.17a1.91 1.91 0 001.66-1.66l.17-1.35c.03-.2.19-.35.39-.35s.37.15.39.34l.19 1.36c.12.85.79 1.53 1.64 1.64l1.36.19c.2.03.34.19.34.39s-.14.37-.34.39l-1.37.2c-.85.12-1.5.78-1.62 1.62l-.2 1.37a.39.39 0 01-.39.35zm-1.38-3.9c.62.28 1.11.78 1.38 1.4.27-.63.77-1.14 1.4-1.41-.62-.27-1.12-.76-1.39-1.37a2.75 2.75 0 01-1.39 1.38z" class="st5"></path>
        </g>
        <path d="M69.57 37.28c-8.37 0-15.19 6.81-15.19 15.19s6.81 15.19 15.19 15.19 15.19-6.81 15.19-15.19-6.81-15.19-15.19-15.19zm0 29c-7.62 0-13.82-6.2-13.82-13.82s6.2-13.82 13.82-13.82 13.82 6.2 13.82 13.82-6.19 13.82-13.82 13.82z" class="st22"></path>
        <path d="M35.81 50.46c8.66 0 15.7-7.04 15.7-15.7v-8.15c1.22-1.26 7.48-8.03 8.74-15.64.16-.94-.17-1.89-.88-2.52-.7-.63-1.65-.85-2.56-.6-3.81 1.04-11.58 2.8-20.9 2.8h-.11c-1.55 0-3.07.22-4.51.66-.72.22-1.43.48-2.11.8a15.589 15.589 0 00-3.21 2.01 15.815 15.815 0 00-2.67 2.74c-.61.81-1.14 1.66-1.59 2.56-.33.67-.61 1.37-.85 2.09-.46 1.43-.72 2.94-.75 4.48-.01.12-.01.24-.01.35v8.42c.02 8.66 7.06 15.7 15.71 15.7zm0-1.36c-7.9 0-14.33-6.43-14.33-14.34v-7.74h28.67v7.74c0 7.91-6.43 14.34-14.34 14.34z" class="st0"></path>
        <path d="M34.48 46.84c2.16.59 4.49-.03 6.08-1.6.38-.37.38-.99.01-1.37a.975.975 0 00-1.37-.01 4.38 4.38 0 01-4.22 1.11 4.37 4.37 0 01-3.07-3.1.973.973 0 00-1.18-.69c-.52.14-.82.67-.69 1.18a6.337 6.337 0 004.44 4.48z" class="st22"></path>
        <path d="M48.52 55.5c-.21-.16-.42-.32-.64-.48-3.52-2.56-7.69-3.92-12.06-3.92s-8.54 1.35-12.07 3.91a20.631 20.631 0 00-8.51 16.66V84.5c0 4.27 3.48 7.75 7.75 7.75h25.66c4.27 0 7.75-3.47 7.75-7.75V71.67c0-5.49-2.14-10.66-6.03-14.55-.58-.57-1.2-1.12-1.85-1.62zm-12.7 23.36l-4.57-9.75 4.57-13.09 4.56 13.1-4.56 9.74zm5.39-11.5l-4.75-13.62a.69.69 0 00-.64-.46c-.29 0-.55.18-.64.46l-4.75 13.62-5.41-11.56c3.19-2.18 6.92-3.33 10.81-3.33s7.62 1.15 10.81 3.34l-5.43 11.55z" class="st0"></path>
        <g>
            <path d="M48.91 30.61c-.29-.47-2.56-.26-5.85-.33-3.29-.07-5.48.4-7.31.33-1.83-.07-5.12-.33-7.23-.33-3.24 0-5.51.09-5.68.16-.27.13-.47.89.13 1.41.37.31.62.62 1.17 2.34.55 1.72 1.39 4.9 5.04 4.86 3.65-.04 4.71-2.96 4.97-4.27.26-1.32 1.21-2.01 1.53-2.01s1.13-.22 1.61 1.86c.47 2.08 1.94 4.53 5.37 4.46 3.43-.07 4.64-4.05 4.82-5.33.18-1.28 1.04-1.66 1.24-1.86.21-.22.54-.73.19-1.29zm-19.55 7.93c-4.96.11-4.67-6.5-4.23-6.85.42-.34 3.04-.27 4.34-.27 1.3 0 3.92.01 4.23.42.35.45.62 6.59-4.34 6.7zm12.95.04c-4.96-.11-4.69-6.25-4.34-6.7.32-.41 2.93-.42 4.23-.42s3.92-.07 4.34.27c.44.35.73 6.96-4.23 6.85z" class="0"></path>
            <path d="M42.31 38.54c-4.96-.11-4.69-6.25-4.34-6.7.32-.41 2.93-.42 4.23-.42s3.92-.07 4.34.27c.44.35.73 6.96-4.23 6.85zM29.41 38.54c-4.96-.11-4.69-6.25-4.34-6.7.32-.41 2.93-.42 4.23-.42 1.3 0 3.92-.07 4.34.27.44.35.73 6.96-4.23 6.85z" class="st3"></path>
        </g>
    </svg>
    LABEL_REACTION_INTEREST
    {{/if}}


    {{if reaction === '<?php echo ContentReaction::REACTION_LOVE ?>'}}
    <svg xmlns="http://www.w3.org/2000/svg" class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" version="1.1" viewBox="0 0 100 100" xml:space="preserve">
        <path d="M87.42 17.46c-9.63-9.63-25.25-9.63-34.88 0L50 20.01l-2.55-2.55c-9.63-9.63-25.25-9.63-34.88 0-9.63 9.63-9.63 25.25 0 34.88l2.55 2.55L50 89.76l34.88-34.88 2.55-2.55c9.62-9.62 9.62-25.24-.01-34.87z" class="st0"></path>
        <path d="M87.42 17.46c-9.63-9.63-25.25-9.63-34.88 0L50 20.01l-2.55-2.55c-9.63-9.63-25.25-9.63-34.88 0-9.63 9.63-9.63 25.25 0 34.88l2.55 2.55L50 89.76l34.88-34.88 2.55-2.55c9.62-9.62 9.62-25.24-.01-34.87z" class="st1"></path>
        <path d="M88.62 51.04c.65-.75 1.25-1.53 1.8-2.33L66.57 20.82l-.19 1.75-3.11 5.89-8.34 3.43-7 11.81-11.2-5.17-1.22-1.4s-4.07 4.84-4.83 5.25c-.76.42-6.28 17.8-6.28 17.8l9.42 13.39L50 89.76l23.11-23.11 11.76-11.76 2.55-2.55c.39-.39.75-.79 1.11-1.19l.09-.11z" class="st2"></path>
        <path d="M72.43 44.43l-13.11-2.01a3.121 3.121 0 11.95-6.17l13.05.8c1.7.26 2.94 3.07 2.68 4.77a3.136 3.136 0 01-3.57 2.61zM70.6 52.05l-12.87-2.69A3.092 3.092 0 0159 43.31l13.17 2.29c1.67.35 2.44 2.38 2.09 4.06a3.092 3.092 0 01-3.66 2.39zM68.77 59.62l-12.62-3.14a3.042 3.042 0 01-2.36-3.61 3.042 3.042 0 013.61-2.36l12.7 2.65c1.65.34 2.71 1.96 2.36 3.61-.34 1.66-2.04 3.2-3.69 2.85zM64.64 66.52l-10.19-3.4a2.887 2.887 0 011.48-5.58l11.23 2.93c1.54.41 2.46 1.99 2.05 3.53-.41 1.53-3.03 2.92-4.57 2.52z" class="st3"></path>
        <path d="M66.57 20.82c-.38-.56-1.63-1.77-2.35-.73l-.43.63a20.198 20.198 0 01-6.49 6.02c-2.07 1.21-4.27 2.49-4.66 2.69-.4.21-3.49 2.54-6.33 4.71-3.03 2.31-10.53 3.56-10.53 3.56v20.39h2.11c2.61 0 5.18.59 7.53 1.72l5.61 2.7c.42.2.86-.24.65-.66-.01-.01-.01-.02-.02-.04-.31-.65-.45-1.37-.4-2.08.12-1.7 1.2-3.03 2.62-3.61a4.19 4.19 0 01-.94-4.39c.24-.67.66-1.27 1.21-1.73.35-.3.74-.53 1.15-.7a4.43 4.43 0 01-.78-1.11c-.31-.64-.46-1.36-.41-2.08a4.195 4.195 0 012.62-3.64 4.209 4.209 0 01-.94-4.38c.25-.68.67-1.29 1.23-1.76 1.01-.85 2.17-1.05 3.43-1.01l1.57.1 2.49-3.08c.89-1.02 1.61-2.17 2.13-3.41l.34-.81c1.01-2.36.86-5.06-.41-7.3zM25.81 60.56h6.97c1.01 0 1.83-.82 1.83-1.83V37.28c0-1.01-.82-1.83-1.83-1.83h-6.97c-1.01 0-1.83.82-1.83 1.83v21.45c0 1.01.82 1.83 1.83 1.83z" class="st3"></path>
    </svg>
    LABEL_REACTION_LOVE
    {{/if}}


    {{if reaction === '<?php echo ContentReaction::REACTION_RECOMMENDED ?>'}}
    <svg xmlns="http://www.w3.org/2000/svg" class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" version="1.1" viewBox="0 0 100 100" xml:space="preserve">
        <path d="M71.6 57.78l-18.57-2.85a4.425 4.425 0 01-3.7-5.04 4.425 4.425 0 015.04-3.7l18.47 1.13c2.41.37 4.16 4.35 3.79 6.76a4.416 4.416 0 01-5.03 3.7zM69 68.57l-18.22-3.81c-2.37-.49-3.88-2.81-3.39-5.18.49-2.37 2.81-3.88 5.18-3.39l18.65 3.24c2.37.49 3.45 3.38 2.95 5.74-.48 2.37-2.8 3.89-5.17 3.4zM66.41 79.29l-17.86-4.44a4.327 4.327 0 01-3.35-5.11 4.327 4.327 0 015.11-3.35l17.99 3.76c2.34.49 3.83 2.78 3.35 5.11-.49 2.34-2.9 4.52-5.24 4.03zM60.56 89.05l-14.42-4.82c-2.18-.58-3.49-2.82-2.91-5 .58-2.18 2.82-3.49 5-2.91l15.9 4.15c2.18.58 3.49 2.82 2.91 5-.58 2.19-4.3 4.16-6.48 3.58z" class="st0"></path>
        <path d="M63.3 24.36c-.54-.8-2.31-2.51-3.33-1.04l-.61.89c-2.4 3.48-5.53 6.4-9.18 8.53-2.94 1.72-6.05 3.53-6.6 3.81-.57.29-4.94 3.59-8.96 6.66-4.28 3.27-14.92 5.05-14.92 5.05v28.86h2.98c3.69 0 7.34.83 10.67 2.44l7.94 3.83c.6.29 1.22-.34.93-.94-.01-.02-.02-.03-.02-.05a5.86 5.86 0 01-.56-2.95c.17-2.4 1.7-4.3 3.7-5.11a5.96 5.96 0 01-1.33-6.22c.35-.95.94-1.8 1.71-2.46.5-.42 1.05-.75 1.63-.99-.44-.45-.81-.98-1.1-1.57-.45-.91-.65-1.93-.58-2.94A5.976 5.976 0 0149.38 55a5.947 5.947 0 01-1.33-6.21c.35-.97.95-1.83 1.74-2.49 1.43-1.2 3.07-1.48 4.85-1.42l2.22.15 3.53-4.36c1.26-1.44 2.27-3.07 3.02-4.83l.48-1.14c1.42-3.35 1.2-7.17-.59-10.34zM6.19 80.62h8.67c1.76 0 3.19-1.43 3.19-3.19V48.26c0-1.76-1.43-3.19-3.19-3.19H6.19C4.43 45.07 3 46.5 3 48.26v29.17a3.18 3.18 0 003.19 3.19z" class="st0"></path>
        <g>
            <path d="M83.93 38.06v.59c0 .97-.79 1.75-1.75 1.75h-.04c-.97 0-1.75-.78-1.75-1.75v-.59c.05.01.1.01.16.01h3.23c.04-.01.1-.01.15-.01z" class="st4"></path>
            <path d="M82.17 41.19h-.04c-1.4 0-2.54-1.14-2.54-2.54v-.59a.797.797 0 01.9-.79h3.34c.23-.03.45.04.62.19.17.15.27.37.27.6v.59c0 1.4-1.14 2.54-2.55 2.54zm-.97-2.34c.1.43.48.75.94.75h.04c.46 0 .84-.32.94-.75H81.2z" class="st5"></path>
            <path d="M88.87 25.23a7.483 7.483 0 00-2.78 5.8v1.26h-7.87v-1.21c0-2.24-.96-4.4-2.71-5.79a10.617 10.617 0 01-4.01-8.33c0-5.99 4.94-10.83 10.97-10.65 5.53.15 10.08 4.62 10.33 10.14.17 3.54-1.41 6.73-3.93 8.78z" class="st6"></path>
            <path d="M86.09 33.08h-7.87c-.44 0-.79-.35-.79-.79v-1.21c0-2.03-.9-3.97-2.41-5.17a11.4 11.4 0 01-4.31-8.95c0-6.42 5.32-11.62 11.78-11.44 5.96.17 10.83 4.96 11.1 10.91.17 3.67-1.37 7.1-4.22 9.43-1.58 1.29-2.49 3.18-2.49 5.19v1.26c0 .42-.35.77-.79.77zm-7.08-1.58h6.29v-.47c0-2.49 1.12-4.82 3.07-6.41 2.46-2 3.79-4.96 3.64-8.13-.23-5.12-4.43-9.25-9.56-9.4-5.56-.16-10.16 4.33-10.16 9.86 0 3.02 1.35 5.83 3.71 7.72 1.91 1.52 3.01 3.86 3.01 6.41v.42z" class="st5"></path>
            <path d="M78.22 32.29H86.09V35.23H78.22z" class="st4"></path>
            <path d="M78.22 36.03a.787.787 0 01-.79-.79v-2.95c0-.44.35-.79.79-.79h7.87c.44 0 .79.35.79.79v2.94c0 .44-.35.79-.79.79l-7.87.01zm.79-2.95v1.37h6.29v-1.36h-6.29z" class="st5"></path>
            <g>
                <path d="M86.09 35.24v.51c0 1.23-.95 2.23-2.16 2.31-.05.01-.1.01-.16.01h-3.23c-.05 0-.11 0-.16-.01a2.31 2.31 0 01-2.16-2.31v-.51h7.87z" class="st4"></path>
                <path d="M83.77 38.85h-3.23c-.08 0-.16 0-.23-.01a3.11 3.11 0 01-2.88-3.1v-.51c0-.44.35-.79.79-.79h7.87a.787.787 0 01.79.79v.51a3.11 3.11 0 01-2.88 3.1c-.07.01-.15.01-.23.01zm-4.73-2.82c.13.67.7 1.19 1.4 1.24.02 0 .04 0 .06.01h3.34c.74-.05 1.32-.57 1.44-1.25h-6.24z" class="st5"></path>
            </g>
            <g>
                <path d="M83.93 33.08c-.44 0-.79-.34-.79-.78v-.03c0-3.96.47-7.93 1.39-11.78l.78-3.28-1.42.54c-.25.09-.53.06-.74-.1l-1.45-1.06a.785.785 0 01-.17-1.1c.26-.35.75-.43 1.1-.17l1.11.81 2.41-.91c.27-.1.58-.05.8.15.22.19.31.49.25.78l-1.13 4.72c-.89 3.74-1.35 7.58-1.35 11.42 0 .42-.36.79-.79.79z" class="st5"></path>
            </g>
            <g>
                <path d="M80.39 33.08c-.44 0-.79-.34-.79-.78v-.03c0-3.84-.45-7.68-1.35-11.42l-1.13-4.72a.8.8 0 01.25-.78c.22-.19.53-.25.8-.15l2.41.91 1.11-.81c.35-.26.85-.18 1.1.17.26.35.18.85-.17 1.1l-1.45 1.06c-.22.16-.5.2-.74.1L79 17.21l.78 3.28c.92 3.85 1.39 7.82 1.39 11.78.01.44-.34.81-.78.81z" class="st5"></path>
            </g>
            <g>
                <path d="M73.69 3.15L74 5.41a3.84 3.84 0 003.29 3.29l2.26.31-2.27.33a3.85 3.85 0 00-3.25 3.25l-.33 2.27-.33-2.27a3.85 3.85 0 00-3.25-3.25l-2.27-.33 2.24-.28a3.842 3.842 0 003.33-3.33l.27-2.25z" class="st7"></path>
                <path d="M73.69 15.53c-.33 0-.6-.24-.65-.56l-.33-2.27a3.182 3.182 0 00-2.7-2.7l-2.27-.33a.65.65 0 01-.56-.66c0-.33.25-.61.58-.65L70 8.08a3.184 3.184 0 002.76-2.76l.28-2.24c.04-.33.32-.57.65-.58.33 0 .61.24.65.57l.31 2.26a3.203 3.203 0 002.73 2.73l2.26.31c.32.04.57.32.57.65s-.24.61-.56.65l-2.28.33a3.182 3.182 0 00-2.7 2.7l-.33 2.27c-.05.32-.33.56-.65.56zm-2.3-6.49a4.51 4.51 0 012.3 2.33 4.443 4.443 0 012.33-2.34 4.544 4.544 0 01-2.31-2.28 4.545 4.545 0 01-2.32 2.29z" class="st5"></path>
            </g>
        </g>
    </svg>
    LABEL_REACTION_RECOMMENDED
    {{/if}}

    {{if reaction === '<?php echo ContentReaction::REACTION_SUPPORT ?>'}}
    <svg xmlns="http://www.w3.org/2000/svg" class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" version="1.1" viewBox="0 0 100 100" xml:space="preserve"><text class="st28 st29" transform="translate(5.947 -6.888)">No es interesante</text>
        <path d="M38.99 53.99c-.15-1.18.1-2.23.7-2.98.19-.24.44-.42.7-.58-.67-.49-1.18-1.25-1.27-2.54 0-.07.01-.15.01-.22-1.15 1.09-2.41 1.89-3.75 2.28-.05.02-.11.02-.16.02a.581.581 0 01-.16-1.14c2.34-.68 3.99-2.54 4.97-3.98 0 0 .01 0 .01-.01a.55.55 0 01.07-.09c.46-.48 1.05-.73 1.68-.73.13 0 .26.02.39.02-.14-.2-.26-.42-.35-.66-.45-1.2-.2-2.51.64-3.36.79-.79 2.03-.93 3.11-1.06.32-.04.62-.07.87-.12 1.63-.31 3.33-.61 5.06-.91 2.56-.44 5.16-.83 7.75-1.21.72-.61 1.21-1.41 1.23-2.07.01-.4-.15-.75-.48-1.06-.76-.69-1.95-.45-3.09-.22-.23.05-.46.09-.68.13-2.11.35-4.03.63-6.02.48-1.56-.12-3.08-.54-4.55-.94-.48-.13-.95-.26-1.42-.38-2.63-.66-5-.44-7.69.7-1.64.69-3.24 1.58-4.79 2.44-1.03.57-2.1 1.16-3.18 1.7-3.27 1.62-6.58 2.5-10.1 3.44l-.25.07c-4.51 1.2-9.12 2.24-13.71 3.08-.04.01-.07 0-.11.01-2.29.45-2.97 5.23-1.65 9.33 1.25 3.88 4.38 7.13 6.68 6.64 2.63-.56 5.06-1.94 7.48-3.04 2.21-1.01 4.5-2.06 6.86-2.85 2.57-.86 5.27-.79 7.22.21.35.18.67.4.98.61l.08.06c2.5 1.72 5.3 3.63 8.37 4.38-.13-.95.1-1.92.6-2.67-1.04-.55-1.87-1.38-2.05-2.78z" class="st30"></path>
        <path d="M96.7 44.83c-.04 0-.06.03-.1.02-2.16-.42-4.42-.78-6.6-1.13-5.02-.81-10.21-1.65-15.03-3.26-.86-.29-1.75-.62-2.62-.94-3.38-1.25-6.87-2.55-10.24-2.07-3.47.49-6.97 1.04-10.42 1.63-1.72.3-3.42.6-5.04.91-.3.06-.62.09-.95.13-.9.1-1.92.22-2.42.73-.52.52-.67 1.35-.38 2.12.25.66.77 1.08 1.38 1.12.05 0 .08.04.12.06 2 .07 4.01.13 6 .28.32.02.56.3.54.63-.02.32-.3.56-.63.54-2.84-.21-5.71-.35-8.55-.39-.31 0-.57.11-.81.36l-.03.03c-.44.49-.7 1.35-.64 2.22.12 1.77 1.21 2.08 2.87 2.35 2.21.37 7.21.87 7.26.87.32.03.56.32.52.64-.03.3-.28.53-.58.53h-.06c-.21-.02-5.09-.51-7.34-.88-.34-.06-.73-.12-1.12-.23-.01 0-.01.01-.01.01-.51.05-.92.27-1.22.64-.4.5-.56 1.25-.45 2.11.22 1.77 2.03 2.29 4.02 2.69l.4.08c1.64.35 6.25.83 6.3.83.32.03.55.32.52.64-.03.3-.28.52-.58.52h-.06c-.19-.02-4.72-.49-6.43-.85l-.39-.08c-.54-.11-1.19-.25-1.84-.47-.58.65-.77 1.86-.37 2.74.57 1.27 1.78 1.5 3.05 1.74.15.03.3.06.44.09 1.64.33 6.74 1.82 10.73 3 .31.09.49.42.39.73-.08.25-.31.42-.56.42-.06 0-.11-.01-.17-.02-3.28-.98-5.92-1.74-7.81-2.26 1.29 1.42 2.74 2.99 4.25 3.64 2.73 1.17 5.44-.43 8.06-1.97.23-.14.47-.27.69-.41l10.37-6.03c.11-.06.22-.13.33-.2.7-.42 1.42-.86 2.35-.81 1.58.08 3.22.77 4.8 1.43.74.31 1.43.6 2.09.82 2.59.86 7.49 2.38 7.49 2.38 1.74.56 6.21-2.87 8.26-7.33 2.08-4.46 1.69-9.95.22-10.35z" class="st0"></path>
    </svg>
    LABEL_REACTION_SUPPORT
    {{/if}}

    {{if reaction === ''}}
    <svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewBox="0 0 24 24" data-testid="RecommendIcon" style="color: gray;">
        <path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm6 9.8a.9.9 0 0 1-.1.5l-2.1 4.9a1.34 1.34 0 0 1-1.3.8H9a2 2 0 0 1-2-2v-5a1.28 1.28 0 0 1 .4-1L12 5l.69.69a1.08 1.08 0 0 1 .3.7v.2L12.41 10H17a1 1 0 0 1 1 1z"></path>
    </svg>
    LABEL_REACTION_UNSET
    {{/if}}
</script>

<script id="commentTemplate" type="text/x-jsrender">
    <li>
        <div class="comment-container">
                <div class="comment-content comment-{{:unique}}" >
                    <div class="info">
                    <a href="{{>user_url}}">
                        <h3>{{>user_name}}</h3>
                    </a>
                    <span>
                        {{>time_elapsed}}
                        {{if link_delete}}
                        <a href="#" class="btn-comment-trash" data-link="{{:link_delete}}" data-comment-unique="{{>unique}}"  data-answer-uuid="{{>answer_uuid}}">
                            <i class="fa fa-trash"></i>
                        </a> 
                        {{/if}}
                    </span>
                </div>            
                      <p>{{>comment}}</p>
                  </div>
           </div>
    </li>
</script>

<script id="recordTemplate" type="text/x-jsrender">
    <div class="my-coach-record-card-container col" id="my-coach-record-card-question-{{:uuid}}">
        <div class="my-coach-record-card-details"> 
            <div class="my-coach-record-card-resume" >
                <img class="my_coach_question_detail_user_image" src="{{:user_image}}" />
                <p class="my_coach_question_detail_user_name">{{:user_name}}</p>
            </div>     
            <ul class="my-coach-record-card-categories">
                {{for categories}}
                <li>{{:category}}</li>
                {{/for}}
            </ul>
        </div>
        <h2>{{>title}}</h2>
        <span>LABEL_MY_COACH_QUESTION {{:added_on}}</span>  
        <p class="my-3">{{>description}}</p> 
        <div class="my-coach-record-card-info mb-2">
            <span id="answers-{{:uuid}}">{{:answers}} LABEL_MY_COACH_ANSWERS</span>
            <span id="reactions-{{:uuid}}">{{:reactions}} LABEL_MY_COACH_REACTIONS</span>
            <span id="views-{{:uuid}}">{{:views}} LABEL_MY_COACH_VIEWS</span>
            <span id="comments-{{:uuid}}">{{:comments}} LABEL_COMMENTS</span>     
        </div>
        <div class="my-coach-record-card-actions">
            <button data-link="{{:link_view}}" class="btn feed__share-option btn-my-coach-edit-view"> <i class="fa fa-external-link" aria-hidden="true"></i> LABEL_VIEW </button>

            {{if link_edit }}
            <button data-link="{{>link_edit}}" class="btn feed__share-option btn-my-coach-edit"> <i class="fa fa-pencil" aria-hidden="true"></i> LABEL_EDIT </button>
            {{/if}}
            {{if link_delete }}
            <button data-link="{{>link_delete}}" class="btn feed__share-option btn-my-coach-delete-question"> <i class="fa fa-trash" aria-hidden="true"></i> LABEL_DELETE </button>
            {{/if}}
        </div>
    </div>
</script>