From 33a2b8a91fd64bc9e8d2339833e79a1a8ae1d233 Mon Sep 17 00:00:00 2001 From: Juan Jose Gonzalez Date: Sat, 11 Feb 2023 17:22:36 +0100 Subject: [PATCH] Discard changes in dist --- client/dist/js/CommentsInterface.js | 204 +--------------------------- client/dist/styles/comments.css | 3 +- 2 files changed, 2 insertions(+), 205 deletions(-) diff --git a/client/dist/js/CommentsInterface.js b/client/dist/js/CommentsInterface.js index 11db4de..f9ee4f6 100644 --- a/client/dist/js/CommentsInterface.js +++ b/client/dist/js/CommentsInterface.js @@ -1,203 +1 @@ -/******/ (function(modules) { // webpackBootstrap -/******/ // The module cache -/******/ var installedModules = {}; -/******/ -/******/ // The require function -/******/ function __webpack_require__(moduleId) { -/******/ -/******/ // Check if module is in cache -/******/ if(installedModules[moduleId]) { -/******/ return installedModules[moduleId].exports; -/******/ } -/******/ // Create a new module (and put it into the cache) -/******/ var module = installedModules[moduleId] = { -/******/ i: moduleId, -/******/ l: false, -/******/ exports: {} -/******/ }; -/******/ -/******/ // Execute the module function -/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); -/******/ -/******/ // Flag the module as loaded -/******/ module.l = true; -/******/ -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } -/******/ -/******/ -/******/ // expose the modules object (__webpack_modules__) -/******/ __webpack_require__.m = modules; -/******/ -/******/ // expose the module cache -/******/ __webpack_require__.c = installedModules; -/******/ -/******/ // identity function for calling harmony imports with the correct context -/******/ __webpack_require__.i = function(value) { return value; }; -/******/ -/******/ // define getter function for harmony exports -/******/ __webpack_require__.d = function(exports, name, getter) { -/******/ if(!__webpack_require__.o(exports, name)) { -/******/ Object.defineProperty(exports, name, { -/******/ configurable: false, -/******/ enumerable: true, -/******/ get: getter -/******/ }); -/******/ } -/******/ }; -/******/ -/******/ // getDefaultExport function for compatibility with non-harmony modules -/******/ __webpack_require__.n = function(module) { -/******/ var getter = module && module.__esModule ? -/******/ function getDefault() { return module['default']; } : -/******/ function getModuleExports() { return module; }; -/******/ __webpack_require__.d(getter, 'a', getter); -/******/ return getter; -/******/ }; -/******/ -/******/ // Object.prototype.hasOwnProperty.call -/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; -/******/ -/******/ // __webpack_public_path__ -/******/ __webpack_require__.p = ""; -/******/ -/******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = "./client/src/legacy/CommentsInterface.js"); -/******/ }) -/************************************************************************/ -/******/ ({ - -/***/ "./client/src/legacy/CommentsInterface.js": -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; -/* WEBPACK VAR INJECTION */(function(jQuery) { - -(function ($) { - $(function () { - $.validator.methods.url = function (value, element) { - return this.optional(element) || /^(?:(?:(?:https?|ftp):)?\/\/)?(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})).?)(?::\d{2,5})?(?:[/?#]\S*)?$/i.test(value); - }; - - $('.comments-holder-container form').each(function () { - $(this).validate({ - ignore: ':hidden', - - errorClass: "required", - - errorElement: "span", - - invalidHandler: function invalidHandler(form, validator) { - $('html, body').animate({ - scrollTop: $(validator.errorList[0].element).offset().top - 30 - }, 200); - }, - - errorPlacement: function errorPlacement(error, element) { - error.addClass('message').insertAfter(element); - } - }); - }); - - $(".comment").children('.info').not(window.document.location.hash).nextAll(".comment-replies-container").children(".comment-reply-form-holder").hide(); - - $(".comment").children(".comment-update-form-holder").hide(); - - $('.comments-holder').on('click', '.comment-reply-link', function (e) { - var allForms = $('.comment-reply-form-holder'); - var formID = '#' + $(this).attr('aria-controls'); - var form = $(formID).closest('.comment-reply-form-holder'); - - $(this).attr('aria-expanded', function (i, attr) { - return attr == 'true' ? 'false' : 'true'; - }); - - e.preventDefault(); - - if (form.is(':visible')) { - allForms.slideUp(); - } else { - allForms.not(form).slideUp(); - form.slideDown(); - } - }); - - $('.comments-holder').on('click', '.comment-update-link', function (e) { - var allForms = $('.comment-update-form-holder'); - var formID = '#' + $(this).attr('aria-controls'); - var form = $(formID).closest('.comment-update-form-holder'); - - $(this).attr('aria-expanded', function (i, attr) { - return attr == 'true' ? 'false' : 'true'; - }); - - e.preventDefault(); - - if (form.is(':visible')) { - allForms.slideUp(); - } else { - allForms.not(form).slideUp(); - form.slideDown(); - } - }); - - $('.comments-holder .comments-list').on('click', 'div.comment-moderation-options a', function (e) { - e.stopPropagation(); - - var link = $(this); - if (link.hasClass('delete')) { - var confirmationMsg = ss.i18n._t('CommentsInterface_singlecomment_ss.DELETE_CONFIRMATION'); - var confirmation = window.confirm(confirmationMsg); - if (!confirmation) { - e.preventDefault(); - return false; - } - } - var comment = link.parents('.comment:first'); - - $.ajax({ - url: $(this).attr('href'), - cache: false, - success: function success(html) { - if (link.hasClass('ham')) { - comment.html(html); - comment.removeClass('spam'); - } else if (link.hasClass('approve')) { - comment.html(html); - comment.removeClass('unmoderated'); - } else if (link.hasClass('delete')) { - comment.fadeOut(1000, function () { - comment.remove(); - - if ($('.comments-holder .comments-list').children().length === 0) { - $('.no-comments-yet').show(); - } - }); - } else if (link.hasClass('spam')) { - comment.html(html).addClass('spam'); - } - }, - failure: function failure(html) { - var errorMsg = ss.i18n._t('CommentsInterface_singlecomment_ss.AJAX_ERROR'); - alert(errorMsg); - } - }); - - e.preventDefault(); - }); - }); -})(jQuery); -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0))) - -/***/ }), - -/***/ 0: -/***/ (function(module, exports) { - -module.exports = jQuery; - -/***/ }) - -/******/ }); -//# sourceMappingURL=CommentsInterface.js.map +!function(){var t={9662:function(t,n,e){var r=e(614),o=e(6330),i=TypeError;t.exports=function(t){if(r(t))return t;throw i(o(t)+" is not a function")}},9670:function(t,n,e){var r=e(111),o=String,i=TypeError;t.exports=function(t){if(r(t))return t;throw i(o(t)+" is not an object")}},1318:function(t,n,e){var r=e(5656),o=e(1400),i=e(6244),u=function(t){return function(n,e,u){var c,a=r(n),f=i(a),s=o(u,f);if(t&&e!=e){for(;f>s;)if((c=a[s++])!=c)return!0}else for(;f>s;s++)if((t||s in a)&&a[s]===e)return t||s||0;return!t&&-1}};t.exports={includes:u(!0),indexOf:u(!1)}},4326:function(t,n,e){var r=e(1702),o=r({}.toString),i=r("".slice);t.exports=function(t){return i(o(t),8,-1)}},648:function(t,n,e){var r=e(1694),o=e(614),i=e(4326),u=e(5112)("toStringTag"),c=Object,a="Arguments"==i(function(){return arguments}());t.exports=r?i:function(t){var n,e,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,n){try{return t[n]}catch(t){}}(n=c(t),u))?e:a?i(n):"Object"==(r=i(n))&&o(n.callee)?"Arguments":r}},9920:function(t,n,e){var r=e(2597),o=e(3887),i=e(1236),u=e(3070);t.exports=function(t,n,e){for(var c=o(n),a=u.f,f=i.f,s=0;s0&&r[0]<4?1:+(r[0]+r[1])),!o&&u&&(!(r=u.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=u.match(/Chrome\/(\d+)/))&&(o=+r[1]),t.exports=o},748:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:function(t,n,e){var r=e(7854),o=e(1236).f,i=e(8880),u=e(8052),c=e(3072),a=e(9920),f=e(4705);t.exports=function(t,n){var e,s,l,p,v,d=t.target,m=t.global,h=t.stat;if(e=m?r:h?r[d]||c(d,{}):(r[d]||{}).prototype)for(s in n){if(p=n[s],l=t.dontCallGetSet?(v=o(e,s))&&v.value:e[s],!f(m?s:d+(h?".":"#")+s,t.forced)&&void 0!==l){if(typeof p==typeof l)continue;a(p,l)}(t.sham||l&&l.sham)&&i(p,"sham",!0),u(e,s,p,t)}}},7293:function(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}},4374:function(t,n,e){var r=e(7293);t.exports=!r((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},6916:function(t,n,e){var r=e(4374),o=Function.prototype.call;t.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},6530:function(t,n,e){var r=e(9781),o=e(2597),i=Function.prototype,u=r&&Object.getOwnPropertyDescriptor,c=o(i,"name"),a=c&&"something"===function(){}.name,f=c&&(!r||r&&u(i,"name").configurable);t.exports={EXISTS:c,PROPER:a,CONFIGURABLE:f}},1702:function(t,n,e){var r=e(4374),o=Function.prototype,i=o.call,u=r&&o.bind.bind(i,i);t.exports=r?u:function(t){return function(){return i.apply(t,arguments)}}},5005:function(t,n,e){var r=e(7854),o=e(614),i=function(t){return o(t)?t:void 0};t.exports=function(t,n){return arguments.length<2?i(r[t]):r[t]&&r[t][n]}},8173:function(t,n,e){var r=e(9662),o=e(8554);t.exports=function(t,n){var e=t[n];return o(e)?void 0:r(e)}},7854:function(t,n,e){var r=function(t){return t&&t.Math==Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof e.g&&e.g)||function(){return this}()||Function("return this")()},2597:function(t,n,e){var r=e(1702),o=e(7908),i=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,n){return i(o(t),n)}},3501:function(t){t.exports={}},490:function(t,n,e){var r=e(5005);t.exports=r("document","documentElement")},4664:function(t,n,e){var r=e(9781),o=e(7293),i=e(317);t.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},8361:function(t,n,e){var r=e(1702),o=e(7293),i=e(4326),u=Object,c=r("".split);t.exports=o((function(){return!u("z").propertyIsEnumerable(0)}))?function(t){return"String"==i(t)?c(t,""):u(t)}:u},2788:function(t,n,e){var r=e(1702),o=e(614),i=e(5465),u=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return u(t)}),t.exports=i.inspectSource},9909:function(t,n,e){var r,o,i,u=e(4811),c=e(7854),a=e(111),f=e(8880),s=e(2597),l=e(5465),p=e(6200),v=e(3501),d="Object already initialized",m=c.TypeError,h=c.WeakMap;if(u||l.state){var g=l.state||(l.state=new h);g.get=g.get,g.has=g.has,g.set=g.set,r=function(t,n){if(g.has(t))throw m(d);return n.facade=t,g.set(t,n),n},o=function(t){return g.get(t)||{}},i=function(t){return g.has(t)}}else{var y=p("state");v[y]=!0,r=function(t,n){if(s(t,y))throw m(d);return n.facade=t,f(t,y,n),n},o=function(t){return s(t,y)?t[y]:{}},i=function(t){return s(t,y)}}t.exports={set:r,get:o,has:i,enforce:function(t){return i(t)?o(t):r(t,{})},getterFor:function(t){return function(n){var e;if(!a(n)||(e=o(n)).type!==t)throw m("Incompatible receiver, "+t+" required");return e}}}},614:function(t,n,e){var r=e(4154),o=r.all;t.exports=r.IS_HTMLDDA?function(t){return"function"==typeof t||t===o}:function(t){return"function"==typeof t}},4705:function(t,n,e){var r=e(7293),o=e(614),i=/#|\.prototype\./,u=function(t,n){var e=a[c(t)];return e==s||e!=f&&(o(n)?r(n):!!n)},c=u.normalize=function(t){return String(t).replace(i,".").toLowerCase()},a=u.data={},f=u.NATIVE="N",s=u.POLYFILL="P";t.exports=u},8554:function(t){t.exports=function(t){return null==t}},111:function(t,n,e){var r=e(614),o=e(4154),i=o.all;t.exports=o.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:r(t)||t===i}:function(t){return"object"==typeof t?null!==t:r(t)}},1913:function(t){t.exports=!1},2190:function(t,n,e){var r=e(5005),o=e(614),i=e(7976),u=e(3307),c=Object;t.exports=u?function(t){return"symbol"==typeof t}:function(t){var n=r("Symbol");return o(n)&&i(n.prototype,c(t))}},6244:function(t,n,e){var r=e(7466);t.exports=function(t){return r(t.length)}},6339:function(t,n,e){var r=e(1702),o=e(7293),i=e(614),u=e(2597),c=e(9781),a=e(6530).CONFIGURABLE,f=e(2788),s=e(9909),l=s.enforce,p=s.get,v=String,d=Object.defineProperty,m=r("".slice),h=r("".replace),g=r([].join),y=c&&!o((function(){return 8!==d((function(){}),"length",{value:8}).length})),x=String(String).split("String"),b=t.exports=function(t,n,e){"Symbol("===m(v(n),0,7)&&(n="["+h(v(n),/^Symbol\(([^)]*)\)/,"$1")+"]"),e&&e.getter&&(n="get "+n),e&&e.setter&&(n="set "+n),(!u(t,"name")||a&&t.name!==n)&&(c?d(t,"name",{value:n,configurable:!0}):t.name=n),y&&e&&u(e,"arity")&&t.length!==e.arity&&d(t,"length",{value:e.arity});try{e&&u(e,"constructor")&&e.constructor?c&&d(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var r=l(t);return u(r,"source")||(r.source=g(x,"string"==typeof n?n:"")),t};Function.prototype.toString=b((function(){return i(this)&&p(this).source||f(this)}),"toString")},4758:function(t){var n=Math.ceil,e=Math.floor;t.exports=Math.trunc||function(t){var r=+t;return(r>0?e:n)(r)}},30:function(t,n,e){var r,o=e(9670),i=e(6048),u=e(748),c=e(3501),a=e(490),f=e(317),s=e(6200),l="prototype",p="script",v=s("IE_PROTO"),d=function(){},m=function(t){return"<"+p+">"+t+""},h=function(t){t.write(m("")),t.close();var n=t.parentWindow.Object;return t=null,n},g=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}var t,n,e;g="undefined"!=typeof document?document.domain&&r?h(r):(n=f("iframe"),e="java"+p+":",n.style.display="none",a.appendChild(n),n.src=String(e),(t=n.contentWindow.document).open(),t.write(m("document.F=Object")),t.close(),t.F):h(r);for(var o=u.length;o--;)delete g[l][u[o]];return g()};c[v]=!0,t.exports=Object.create||function(t,n){var e;return null!==t?(d[l]=o(t),e=new d,d[l]=null,e[v]=t):e=g(),void 0===n?e:i.f(e,n)}},6048:function(t,n,e){var r=e(9781),o=e(3353),i=e(3070),u=e(9670),c=e(5656),a=e(1956);n.f=r&&!o?Object.defineProperties:function(t,n){u(t);for(var e,r=c(n),o=a(n),f=o.length,s=0;f>s;)i.f(t,e=o[s++],r[e]);return t}},3070:function(t,n,e){var r=e(9781),o=e(4664),i=e(3353),u=e(9670),c=e(4948),a=TypeError,f=Object.defineProperty,s=Object.getOwnPropertyDescriptor,l="enumerable",p="configurable",v="writable";n.f=r?i?function(t,n,e){if(u(t),n=c(n),u(e),"function"==typeof t&&"prototype"===n&&"value"in e&&v in e&&!e[v]){var r=s(t,n);r&&r[v]&&(t[n]=e.value,e={configurable:p in e?e[p]:r[p],enumerable:l in e?e[l]:r[l],writable:!1})}return f(t,n,e)}:f:function(t,n,e){if(u(t),n=c(n),u(e),o)try{return f(t,n,e)}catch(t){}if("get"in e||"set"in e)throw a("Accessors not supported");return"value"in e&&(t[n]=e.value),t}},1236:function(t,n,e){var r=e(9781),o=e(6916),i=e(5296),u=e(9114),c=e(5656),a=e(4948),f=e(2597),s=e(4664),l=Object.getOwnPropertyDescriptor;n.f=r?l:function(t,n){if(t=c(t),n=a(n),s)try{return l(t,n)}catch(t){}if(f(t,n))return u(!o(i.f,t,n),t[n])}},8006:function(t,n,e){var r=e(6324),o=e(748).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},5181:function(t,n){n.f=Object.getOwnPropertySymbols},7976:function(t,n,e){var r=e(1702);t.exports=r({}.isPrototypeOf)},6324:function(t,n,e){var r=e(1702),o=e(2597),i=e(5656),u=e(1318).indexOf,c=e(3501),a=r([].push);t.exports=function(t,n){var e,r=i(t),f=0,s=[];for(e in r)!o(c,e)&&o(r,e)&&a(s,e);for(;n.length>f;)o(r,e=n[f++])&&(~u(s,e)||a(s,e));return s}},1956:function(t,n,e){var r=e(6324),o=e(748);t.exports=Object.keys||function(t){return r(t,o)}},5296:function(t,n){"use strict";var e={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!e.call({1:2},1);n.f=o?function(t){var n=r(this,t);return!!n&&n.enumerable}:e},2140:function(t,n,e){var r=e(6916),o=e(614),i=e(111),u=TypeError;t.exports=function(t,n){var e,c;if("string"===n&&o(e=t.toString)&&!i(c=r(e,t)))return c;if(o(e=t.valueOf)&&!i(c=r(e,t)))return c;if("string"!==n&&o(e=t.toString)&&!i(c=r(e,t)))return c;throw u("Can't convert object to primitive value")}},3887:function(t,n,e){var r=e(5005),o=e(1702),i=e(8006),u=e(5181),c=e(9670),a=o([].concat);t.exports=r("Reflect","ownKeys")||function(t){var n=i.f(c(t)),e=u.f;return e?a(n,e(t)):n}},2261:function(t,n,e){"use strict";var r,o,i=e(6916),u=e(1702),c=e(1340),a=e(7066),f=e(2999),s=e(2309),l=e(30),p=e(9909).get,v=e(9441),d=e(7168),m=s("native-string-replace",String.prototype.replace),h=RegExp.prototype.exec,g=h,y=u("".charAt),x=u("".indexOf),b=u("".replace),O=u("".slice),S=(o=/b*/g,i(h,r=/a/,"a"),i(h,o,"a"),0!==r.lastIndex||0!==o.lastIndex),w=f.BROKEN_CARET,j=void 0!==/()??/.exec("")[1];(S||j||w||v||d)&&(g=function(t){var n,e,r,o,u,f,s,v=this,d=p(v),E=c(t),I=d.raw;if(I)return I.lastIndex=v.lastIndex,n=i(g,I,E),v.lastIndex=I.lastIndex,n;var P=d.groups,C=w&&v.sticky,T=i(a,v),A=v.source,_=0,R=E;if(C&&(T=b(T,"y",""),-1===x(T,"g")&&(T+="g"),R=O(E,v.lastIndex),v.lastIndex>0&&(!v.multiline||v.multiline&&"\n"!==y(E,v.lastIndex-1))&&(A="(?: "+A+")",R=" "+R,_++),e=new RegExp("^(?:"+A+")",T)),j&&(e=new RegExp("^"+A+"$(?!\\s)",T)),S&&(r=v.lastIndex),o=i(h,C?e:v,R),C?o?(o.input=O(o.input,_),o[0]=O(o[0],_),o.index=v.lastIndex,v.lastIndex+=o[0].length):v.lastIndex=0:S&&o&&(v.lastIndex=v.global?o.index+o[0].length:r),j&&o&&o.length>1&&i(m,o[0],e,(function(){for(u=1;ub)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$c")}))},4488:function(t,n,e){var r=e(8554),o=TypeError;t.exports=function(t){if(r(t))throw o("Can't call method on "+t);return t}},6200:function(t,n,e){var r=e(2309),o=e(9711),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},5465:function(t,n,e){var r=e(7854),o=e(3072),i="__core-js_shared__",u=r[i]||o(i,{});t.exports=u},2309:function(t,n,e){var r=e(1913),o=e(5465);(t.exports=function(t,n){return o[t]||(o[t]=void 0!==n?n:{})})("versions",[]).push({version:"3.27.2",mode:r?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.27.2/LICENSE",source:"https://github.com/zloirock/core-js"})},6293:function(t,n,e){var r=e(7392),o=e(7293);t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},1400:function(t,n,e){var r=e(9303),o=Math.max,i=Math.min;t.exports=function(t,n){var e=r(t);return e<0?o(e+n,0):i(e,n)}},5656:function(t,n,e){var r=e(8361),o=e(4488);t.exports=function(t){return r(o(t))}},9303:function(t,n,e){var r=e(4758);t.exports=function(t){var n=+t;return n!=n||0===n?0:r(n)}},7466:function(t,n,e){var r=e(9303),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},7908:function(t,n,e){var r=e(4488),o=Object;t.exports=function(t){return o(r(t))}},7593:function(t,n,e){var r=e(6916),o=e(111),i=e(2190),u=e(8173),c=e(2140),a=e(5112),f=TypeError,s=a("toPrimitive");t.exports=function(t,n){if(!o(t)||i(t))return t;var e,a=u(t,s);if(a){if(void 0===n&&(n="default"),e=r(a,t,n),!o(e)||i(e))return e;throw f("Can't convert object to primitive value")}return void 0===n&&(n="number"),c(t,n)}},4948:function(t,n,e){var r=e(7593),o=e(2190);t.exports=function(t){var n=r(t,"string");return o(n)?n:n+""}},1694:function(t,n,e){var r={};r[e(5112)("toStringTag")]="z",t.exports="[object z]"===String(r)},1340:function(t,n,e){var r=e(648),o=String;t.exports=function(t){if("Symbol"===r(t))throw TypeError("Cannot convert a Symbol value to a string");return o(t)}},6330:function(t){var n=String;t.exports=function(t){try{return n(t)}catch(t){return"Object"}}},9711:function(t,n,e){var r=e(1702),o=0,i=Math.random(),u=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+u(++o+i,36)}},3307:function(t,n,e){var r=e(6293);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3353:function(t,n,e){var r=e(9781),o=e(7293);t.exports=r&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},4811:function(t,n,e){var r=e(7854),o=e(614),i=r.WeakMap;t.exports=o(i)&&/native code/.test(String(i))},5112:function(t,n,e){var r=e(7854),o=e(2309),i=e(2597),u=e(9711),c=e(6293),a=e(3307),f=r.Symbol,s=o("wks"),l=a?f.for||f:f&&f.withoutSetter||u;t.exports=function(t){return i(s,t)||(s[t]=c&&i(f,t)?f[t]:l("Symbol."+t)),s[t]}},4916:function(t,n,e){"use strict";var r=e(2109),o=e(2261);r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})}},n={};function e(r){var o=n[r];if(void 0!==o)return o.exports;var i=n[r]={exports:{}};return t[r](i,i.exports,e),i.exports}e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),function(){"use strict";var t;e(4916),(t=jQuery)((function(){t.validator.methods.url=function(t,n){return this.optional(n)||/^(?:(?:(?:https?|ftp):)?\/\/)?(?:(?:[^\]\[?\/<~#`!@$^&*()+=}|:";',>{ ]|%[0-9A-Fa-f]{2})+(?::(?:[^\]\[?\/<~#`!@$^&*()+=}|:";',>{ ]|%[0-9A-Fa-f]{2})*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u00a1-\uffff][a-z0-9\u00a1-\uffff_-]{0,62})?[a-z0-9\u00a1-\uffff]\.)+(?:[a-z\u00a1-\uffff]{2,}\.?))(?::\d{2,5})?(?:[/?#]\S*)?$/i.test(t)},t(".comments-holder-container form").each((function(){t(this).validate({ignore:":hidden",errorClass:"required",errorElement:"span",invalidHandler:function(n,e){t("html, body").animate({scrollTop:t(e.errorList[0].element).offset().top-30},200)},errorPlacement:function(t,n){t.addClass("message").insertAfter(n)}})})),t(".comment").children(".info").not(window.document.location.hash).nextAll(".comment-replies-container").children(".comment-reply-form-holder").hide(),t(".comments-holder").on("click",".comment-reply-link",(function(n){var e=t(".comment-reply-form-holder"),r="#".concat(t(this).attr("aria-controls")),o=t(r).closest(".comment-reply-form-holder");t(this).attr("aria-expanded",(function(t,n){return"true"===n?"false":"true"})),n.preventDefault(),o.is(":visible")?e.slideUp():(e.not(o).slideUp(),o.slideDown())})),t(".comments-holder .comments-list").on("click","div.comment-moderation-options a",(function(n){n.stopPropagation();var e=t(this);if(e.hasClass("delete")){var r=ss.i18n._t("CommentsInterface_singlecomment_ss.DELETE_CONFIRMATION");if(!window.confirm(r))return n.preventDefault(),!1}var o=e.parents(".comment:first");return t.ajax({url:t(this).attr("href"),cache:!1,success:function(n){e.hasClass("ham")?(o.html(n),o.removeClass("spam")):e.hasClass("approve")?(o.html(n),o.removeClass("unmoderated")):e.hasClass("delete")?o.fadeOut(1e3,(function(){o.remove(),0===t(".comments-holder .comments-list").children().length&&t(".no-comments-yet").show()})):e.hasClass("spam")&&o.html(n).addClass("spam")},failure:function(t){var n=ss.i18n._t("CommentsInterface_singlecomment_ss.AJAX_ERROR");alert(n)}}),n.preventDefault(),!1}))}))}()}(); \ No newline at end of file diff --git a/client/dist/styles/comments.css b/client/dist/styles/comments.css index 356ee9e..9cd28c9 100644 --- a/client/dist/styles/comments.css +++ b/client/dist/styles/comments.css @@ -1,2 +1 @@ -.comments-holder-container{clear:both}.comments-holder-container .field{clear:left}.comments-holder-container .author,.comments-holder-container .num{font-size:1.3em}.comments-holder-container .num{color:#999;margin-right:5px}.comments-holder-container .num-total{line-height:40px;margin-bottom:0}.comments-holder-container #moderated{border:1px solid #999;padding:20px;font-style:italic}.comments-holder-container .comments-list{margin:0}.comments-holder-container .comment-count{margin:15px 0}.comments-holder-container .commenting-area{margin-top:50px}.comments-holder-container .commenting-area label.left{font-weight:400}.comments-holder-container .commenting-rss-feed{margin-top:4em;text-align:right}.comments-holder-container .commenting-rss-feed .action-links{margin:20px 0 10px}.comments-holder-container .commenting-rss-feed .action-links li{display:inline;list-style-type:none;margin-left:20px}.comments-holder-container .commenting-rss-feed .action-links li:first-child{margin-left:0}.comments-holder-container .commenting-rss-feed .action-links li.comment-reply-action{float:right}.comments-holder-container .commenting-rss-feed .action-links a{background-image:none}.comments-holder-container .commenting-rss-feed .action-links a:first-letter{text-transform:capitalize}.comments-holder-container .no-comments-yet{display:inline-block;margin-top:10px}.comment{clear:both;list-style-type:none;overflow:hidden;padding:20px 0;position:relative}.comment.author-comment:after{content:"Author";float:right;position:absolute;top:1.5em;right:.5em;font-size:1em;font-weight:700}.comment.author-comment>.comment-text{border:1px solid blue}.comment.spam .comment-text{border:1px dashed orange}.comment img.gravatar{float:left;margin:20px;width:90px;height:90px;border:none}.comment .comment-text{background-color:#fff;border:1px solid #ddd;-webkit-box-shadow:none;box-shadow:none;margin:0;padding:0 20px;min-height:130px;white-space:pre;white-space:pre-wrap;white-space:pre-line;word-wrap:break-word}.comment .comment-text p:last-child{margin-bottom:0}.comment .comment-text.hasGravatar{padding:0 20px 0 130px;min-height:130px}.comment .date{font-size:16px}.comment .date:before{content:"\A0\A0\A0\A0"}.comment.unmoderated>.comment-text{border:1px solid #ff0}.comment .info{margin-bottom:10px}.comment.spam .comment{border:1px dashed orange;border-radius:4px;padding:2.5em 1em 1em}.comment .comment-replies-container{clear:both;padding-left:10px;margin:80px 0 0;border-left:1px dashed #999}.comment .comment-replies-container .comment-reply-form-holder{padding:0 10px}.comment .comment-replies-container .comment-replies-holder{padding:0 0 0 10px}.comments-list.root-level{margin-left:0}.comment-reply-link{float:right}.comment-moderation-options{float:left}.comment-action-links{margin:20px 0 10px}.comment-action-links a:not(:last-child){margin-right:12px}.commenting-rss-feed ul{list-style:none} -/*# sourceMappingURL=comments.css.map*/ +.comments-holder-container{clear:both}.comments-holder-container .field{clear:left}.comments-holder-container .num,.comments-holder-container .author{font-size:1.3em}.comments-holder-container .num{color:#999;margin-right:5px}.comments-holder-container .num-total{line-height:40px;margin-bottom:0}.comments-holder-container #moderated{border:solid #999 1px;padding:20px;font-style:italic}.comments-holder-container .comments-list{margin:0}.comments-holder-container .comment-count{margin:15px 0}.comments-holder-container .commenting-area{margin-top:50px}.comments-holder-container .commenting-area label.left{font-weight:normal}.comments-holder-container .commenting-rss-feed{margin-top:4em;text-align:right}.comments-holder-container .commenting-rss-feed .action-links{margin:20px 0 10px}.comments-holder-container .commenting-rss-feed .action-links li{display:inline;list-style-type:none;margin-left:20px}.comments-holder-container .commenting-rss-feed .action-links li:first-child{margin-left:0}.comments-holder-container .commenting-rss-feed .action-links li.comment-reply-action{float:right}.comments-holder-container .commenting-rss-feed .action-links a{background-image:none}.comments-holder-container .commenting-rss-feed .action-links a::first-letter{text-transform:capitalize}.comments-holder-container .no-comments-yet{display:inline-block;margin-top:10px}.comment{clear:both;list-style-type:none;overflow:hidden;padding:20px 0 20px 0;position:relative}.comment.author-comment:after{content:"Author";float:right;position:absolute;top:1.5em;right:.5em;font-size:1em;font-weight:bold}.comment.author-comment>.comment-text{border:1px solid blue}.comment.spam .comment-text{border:1px dashed orange}.comment img.gravatar{float:left;margin:20px;width:90px;height:90px;border:none}.comment .comment-text{background-color:#fff;border:1px solid #ddd;box-shadow:none;margin:0;padding:0 20px 0 20px;min-height:130px;white-space:pre;white-space:pre-wrap;white-space:pre-line;word-wrap:break-word}.comment .comment-text p:last-child{margin-bottom:0}.comment .comment-text.hasGravatar{padding:0 20px 0 130px;min-height:130px}.comment .date{font-size:16px}.comment .date:before{content:"    "}.comment.unmoderated>.comment-text{border:1px solid #ff0}.comment .info{margin-bottom:10px}.comment.spam .comment{border:1px dashed orange;border-radius:4px;padding:2.5em 1em 1em}.comment .comment-replies-container{clear:both;padding-left:10px;margin:80px 0 0 0;border-left:1px dashed #999}.comment .comment-replies-container .comment-reply-form-holder{padding:0 10px}.comment .comment-replies-container .comment-replies-holder{padding:0 0 0 10px}.comments-list.root-level{margin-left:0}.comment-reply-link{float:right}.comment-moderation-options{float:left}.comment-action-links{margin:20px 0 10px}.comment-action-links a:not(:last-child){margin-right:12px}.commenting-rss-feed ul{list-style:none}