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AO,CAACiB,OAAT,CAFpC,0GAMMjB,OAAO,CAACqB,WAAR,GAAsBD,OAAO,CAACpB,OAAD,EAAU,IAAV,CANnC,0CA1BxB,gJAsC+BA,OAAO,CAACsB,UAtCvC,sCAuCmBtB,OAAO,CAACuB,IAvC3B,wIA4CevB,OAAO,CAACwB,OA5CvB,4CA+CQxB,OAAO,CAAC7C,KAAR,IAAiB,CAAjB,IAAsB6C,OAAO,CAAC7C,KAAR,IAAiB,CAAvC,gNAK4B6C,OAAO,CAACG,EALpC,kDAMsBH,OAAO,CAAC7C,KAAR,GAAgB,CANtC,8DAOmC6C,OAAO,CAACiB,OAAR,GAAkBjB,OAAO,CAACiB,OAAR,CAAgBC,IAAlC,GAAyClB,OAAO,CAACqB,WAPpF,kGAYE,EA3DV,mCA+DI,CAACrB,OAAO,CAAC7C,KAAR,IAAiB,CAAjB,IAAsB6C,OAAO,CAAC7C,KAAR,IAAiB,CAAxC,KAA8C6C,OAAO,CAACmE,cAAR,GAAyB,CAAvE,8PAMyB7B,kBANzB,uDAOgCtC,OAAO,CAACG,EAPxC,0DAQmCH,OAAO,CAAC7C,KAAR,GAAgB,CARnD,2DASoC6C,OAAO,CAACmE,cAT5C,4DAUqCnE,OAAO,CAAC8C,QAAR,CAAiBb,MAVtD,oRAkBE,EAjFN;AAoFH;;;;;;UC/OD;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;;;;;;;;ACtBA;AACA;AACA;AACA;AACA;AAGAmC,mBAAO,CAAC,6DAAD,CAAP;;AAEAA,mBAAO,CAAC,2EAAD,CAAP,C","sources":["webpack:///./themes/html/assets/js/add_comment.js","webpack:///./themes/html/assets/js/load_more_comments.js","webpack:///webpack/bootstrap","webpack:///./themes/html/assets/js/app.js"],"sourcesContent":["\nvar trans = window.blog_translation;\nvar defaultImage = window.defaultImage;\n\n$(document).on('click', '.comment-reply-btn', function(e) {\n e.preventDefault();\n var self = $(this),\n commentId = self.data('comment-id'),\n replyTo = self.attr('data-reply-to'),\n level = self.attr('data-level'),\n respond = $('#respond');\n\n self.parents('#comment-' + commentId).append(respond);\n var form = $('#commentform'),\n cancelReply = $('#reply-title .cancel-comment-reply-link'),\n titleReplyTo = $('#reply-title .text-title');\n\n $('html, body').animate({scrollTop: respond.offset().top - 150}, 500)\n $('#comment_content').focus();\n \n cancelReply.show();\n titleReplyTo.text(replyTo);\n form.attr('data-comment-id', commentId);\n form.attr('data-level', level);\n});\n\n\n$(document).on('click', '.cancel-comment-reply-link', function(e) {\n e.preventDefault();\n var respond = $('#respond'),\n form = $('#commentform'),\n cancelReply = $('#reply-title .cancel-comment-reply-link'),\n titleReplyTo = $('#reply-title .text-title');\n\n $('#parent-respond').append(respond);\n cancelReply.hide();\n titleReplyTo.text('Leave a Reply');\n form.removeAttr('data-comment-id');\n form.attr('data-level', 1);\n});\n\n\n\n$('#commentform').on('submit', function(e) {\n e.preventDefault();\n var form = $(this),\n formData = new FormData(form[0]),\n url = form.attr('action'),\n postId = form.attr('data-post-id'),\n commentId = form.attr('data-comment-id'),\n level = form.attr('data-level'),\n authorpage = form.attr('data-author-page'),\n commentAuthorCookies = form.attr('data-comment-author-cookies') ? JSON.parse(form.attr('data-comment-author-cookies')) : null,\n authId = form.data('auth-id'),\n comments_list_level1 = $('.comments_list.level1'),\n comments_list_level2 = $('.comments_list.level2'),\n comments_list_level3 = $('.comments_list.level3'),\n addCommentEle = level == 1 ? comments_list_level1 : (level == 2 ? comments_list_level2 : comments_list_level3),\n isReply = level == 1 || level == 2 ? true : false,\n commentLevel = level == 1 ? 2 : (level == 2 ? 3 : null),\n btnSubmit = form.find('.form-submit .btn-submit'),\n loadingIcon = btnSubmit.find('.loading-icon'),\n commentCountShow = $('#comment_count_show');\n\n if (level != 1) {\n addCommentEle = addCommentEle.filter(`[data-comment-id=\"${commentId}\"]`);\n }\n \n formData.append('post_id', postId);\n if (commentId) {\n formData.append('parent_id', commentId);\n }\n\n\n $.ajax({\n url: url,\n data: formData,\n dataType: 'json',\n 'method': 'POST',\n processData: false,\n contentType: false,\n cache: false,\n\n beforeSend: function(data) {\n btnSubmit.addClass('disabled');\n loadingIcon.removeClass('hide-load');\n },\n\n success: function(data) {\n btnSubmit.removeClass('disabled');\n loadingIcon.addClass('hide-load');\n\n var comment = data.comment;\n addCommentEle.append(newComment(comment, authorpage, isReply, commentLevel));\n var commentEle = $(`#div-comment-${comment.id}`);\n setTimeout(function () {\n commentEle.addClass('comment-added-animate');\n setTimeout(function () {\n commentEle.removeClass('comment-added-animate');\n }, 3000);\n }, 200);\n\n resetFormComment(form);\n $('.cancel-comment-reply-link').click();\n commentCountShow.text(parseInt(commentCountShow.text()) + 1);\n toggleAlertError();\n handleErrorsValidation();\n },\n\n error: function(error) {\n btnSubmit.removeClass('disabled');\n loadingIcon.addClass('hide-load');\n \n if (error && error.status) {\n if (error.status == 500) {\n toggleAlertError('Server Error!');\n } else if (error.status == 422) {\n handleErrorsValidation(error.responseJSON.errors)\n } else if (error.status == 404) {\n toggleAlertError('Request not found!');\n } else if (error.status == 401) {\n window.location.reload();\n }\n }\n },\n });\n\n});\n\n\n\n\nfunction newComment(comment, authorpage, isReply, commentLevel) {\n return `\n
  • \n
    \n ${\n comment.approved == 0 ?\n `
    \n
    \n Waiting for approval\n
    \n
    ` \n : \n ''\n }\n \n
    \n

    ${comment.content}

    \n
    \n\n ${\n isReply ? \n ``\n : ''\n }\n ${ commentLevel ? `
      ` : '' }\n\n
      \n
    1. \n `;\n}\n\nfunction youAuth(creator, creator_cookie = false) {\n let you = false;\n if (creator_cookie) {\n you = creator.author_email == (window.commentAuthorCookies ? window.commentAuthorCookies.author_email : null);\n } else {\n if (window.authId) {\n you = creator.id == window.authId;\n }\n }\n return you ? ' (' + trans.you + ')' : '';\n}\n\nwindow.youAuth = youAuth;\n\n\nfunction resetFormComment(form) {\n var data = new FormData(form[0]),\n comment_cookies = data.get('comment_cookies');\n if (comment_cookies) {\n form.find('#comment_content').val('');\n } else {\n form.find('#comment_content').val('');\n form.find('#comment_author_name').val('');\n form.find('#comment_author_email').val('');\n form.find('#comment_author_website').val('');\n }\n}\n\n\nfunction handleErrorsValidation(errors = {}) {\n var keys = ['content', 'author_name', 'author_email', 'author_website'];\n for (let i = 0; i < keys.length; i++) {\n let fieldName = keys[i];\n if (errors[fieldName]) {\n $(`[name=\"${fieldName}\"]`).addClass('is-invalid').next('.invalid-feedback').text(errors[fieldName]);\n $(`.label_${fieldName}`).addClass('label-is-invalid');\n } else {\n $(`[name=\"${fieldName}\"]`).removeClass('is-invalid').next('.invalid-feedback').text('');\n $(`.label_${fieldName}`).removeClass('label-is-invalid');\n }\n }\n}\n\nfunction toggleAlertError(message = null) {\n var alertError = $('#alert-error-new-comment'),\n status = message != null ? 'show' : 'hide';\n if (status == 'show') {\n alertError.removeClass('hide');\n alertError.find('.text-error').text(message);\n } else {\n alertError.addClass('hide');\n alertError.find('.text-error').text('');\n }\n}","\n\nvar youAuth = window.youAuth;\nvar trans = window.blog_translation;\nvar defaultImage = window.defaultImage;\nvar urlLoadMoreReplies = window.urlLoadMoreReplies;\n\n$('#get_prev_comment_btn').on('click', function(e) {\n e.preventDefault();\n\n var self = $(this),\n url = self.attr('data-url'),\n postId = self.attr('data-post-id'),\n commentsCount = self.data('comments-count'),\n commentsOffset = self.attr('data-comments-offset'),\n commentsList = $('.comments_list.level1'),\n // loading = $('.comments-loading');\n loading = self.find('.loading-icon');\n\n\n var data = {\n post_id: postId,\n comments_offset: commentsOffset\n };\n\n $.ajax({\n url: url,\n data: data,\n headers: {\n 'X-CSRF-TOKEN': $('meta[name=\"csrf-token\"]').attr('content')\n },\n dataType: 'json',\n 'method': 'POST',\n cache: false,\n\n beforeSend: function(data) {\n self.addClass('disabled')\n loading.removeClass('hide-load');\n },\n\n success: function(data) {\n self.removeClass('disabled')\n loading.addClass('hide-load');\n let comments = data.comments;\n \n for (let i = 0; i < comments.length; i++) {\n var comment = comments[i];\n commentsList.prepend(newComment(comment));\n commentsList.find(`.div-comment-${comment.id}`).addClass('comment-added-animate');\n }\n setTimeout(function () {\n commentsList.find('.comment-body').removeClass('comment-added-animate')\n }, 700);\n var comments_count_ele = commentsList.children('li.comment').length;\n self.attr('data-comments-offset', comments_count_ele);\n if (comments_count_ele == commentsCount) {\n self.remove();\n }\n }\n });\n\n \n});\n\n\n\n$(document).on('click', '.get-prev-replies-btn', function(e) {\n e.preventDefault();\n\n var self = $(this),\n url = self.attr('data-url'),\n commentId = self.attr('data-comment-id'),\n commentsCount = self.data('comments-count'),\n level = self.data('replies-level'),\n commentsOffset = self.attr('data-comments-offset'),\n commentsList = $(`#comment-${commentId} > .comments_list.level${level}`),\n loading = self.find('.loading-icon');\n\n\n var data = {\n comment_id: commentId,\n level: level,\n comments_offset: commentsOffset\n };\n\n $.ajax({\n url: url,\n data: data,\n headers: {\n 'X-CSRF-TOKEN': $('meta[name=\"csrf-token\"]').attr('content')\n },\n dataType: 'json',\n 'method': 'POST',\n cache: false,\n\n beforeSend: function(data) {\n self.addClass('disabled')\n loading.removeClass('hide-load');\n },\n\n success: function(data) {\n self.removeClass('disabled')\n loading.addClass('hide-load');\n let replies = data.comments;\n\n for (let i = 0; i < replies.length; i++) {\n var reply = replies[i];\n commentsList.prepend(newReplies(reply));\n commentsList.find(`.div-comment-${reply.id}`).addClass('comment-added-animate');\n }\n setTimeout(function () {\n commentsList.find('.comment-body').removeClass('comment-added-animate')\n }, 700);\n var comments_count_ele = commentsList.children('li.comment').length;\n self.attr('data-comments-offset', comments_count_ele);\n if (comments_count_ele == commentsCount) {\n self.remove();\n }\n }\n });\n});\n\n\nfunction newComment(comment) {\n var list = `
    2. `;\n list += commentArticle(comment);\n list += `${newSubComments(comment)}
    3. `;\n console.log(list)\n return list;\n}\n\n\nfunction newSubComments(parent_comment) {\n var revevedComments = parent_comment.comments.reverse();\n var childrenComments = parent_comment.level != 3 ? `
        ` : '';\n for (let i = 0; i < revevedComments.length; i++) {\n var comment = revevedComments[i];\n childrenComments += `
      1. `;\n childrenComments += commentArticle(comment);\n childrenComments += `${ newSubComments(comment) }
      2. `;\n }\n childrenComments += parent_comment.level != 3 ? `
      ` : '';\n return childrenComments;\n}\n\n\nfunction newReplies(parent_reply) {\n var resultReply = `
    4. `;\n resultReply += commentArticle(parent_reply);\n resultReply += `${ newSubComments(parent_reply) }
    5. `;\n return resultReply;\n}\n\n\nfunction commentArticle(comment) {\n return `\n
      \n ${\n comment.approved == 0 ?\n `
      \n
      \n Waiting for approval\n
      \n
      ` \n : \n ''\n }\n \n
      \n

      ${ comment.content }

      \n
      \n ${\n comment.level == 1 || comment.level == 2 ?\n `
      \n \n Reply\n \n
      ` \n : ''\n }\n
      \n ${\n (comment.level == 1 || comment.level == 2) && comment.comments_count > 3 ?\n `
      \n \n View previous replies\n \n \n \n \n
      `\n : ''\n }\n `;\n}","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","/**\n * First we will load all of this project's JavaScript dependencies which\n * includes Vue and other libraries. It is a great starting point when\n * building robust, powerful web applications using Vue and Laravel.\n */\n\n\nrequire('./add_comment')\n\nrequire('./load_more_comments')"],"names":["trans","window","blog_translation","defaultImage","$","document","on","e","preventDefault","self","commentId","data","replyTo","attr","level","respond","parents","append","form","cancelReply","titleReplyTo","animate","scrollTop","offset","top","focus","show","text","hide","removeAttr","formData","FormData","url","postId","authorpage","commentAuthorCookies","JSON","parse","authId","comments_list_level1","comments_list_level2","comments_list_level3","addCommentEle","isReply","commentLevel","btnSubmit","find","loadingIcon","commentCountShow","filter","ajax","dataType","processData","contentType","cache","beforeSend","addClass","removeClass","success","comment","newComment","commentEle","id","setTimeout","resetFormComment","click","parseInt","toggleAlertError","handleErrorsValidation","error","status","responseJSON","errors","location","reload","approved","creator","name","avatar_image","youAuth","author_name","created_at","date","content","creator_cookie","you","author_email","comment_cookies","get","val","keys","i","length","fieldName","next","message","alertError","urlLoadMoreReplies","commentsCount","commentsOffset","commentsList","loading","post_id","comments_offset","headers","comments","prepend","comments_count_ele","children","remove","comment_id","replies","reply","newReplies","list","commentArticle","newSubComments","console","log","parent_comment","revevedComments","reverse","childrenComments","parent_reply","resultReply","author_page","comments_count","require"],"sourceRoot":""}