Page MenuHomeSoftware Heritage

mailmap.205670ba709e64406550.js
No OneTemporary

mailmap.205670ba709e64406550.js

/*! For license information please see mailmap.205670ba709e64406550.js.LICENSE.txt */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.swh=t():(e.swh=e.swh||{},e.swh.mailmap=t())}(self,(function(){return function(){var __webpack_modules__={87757:function(e,t,r){e.exports=r(35666)},59537:function(e,t,r){"use strict";r.d(t,{e_:function(){return o},ry:function(){return a}});r(87757);var n=r(31955);function a(e){if(!e.ok)throw e;return e}function o(e,t,r){return void 0===t&&(t={}),void 0===r&&(r=null),t["X-CSRFToken"]=n.Z.get("csrftoken"),fetch(e,{credentials:"include",headers:t,method:"POST",body:r})}},82409:function(module){module.exports=function anonymous(locals,escapeFn,include,rethrow){escapeFn=escapeFn||function(e){return null==e?"":String(e).replace(_MATCH_HTML,encode_char)};var _ENCODE_HTML_RULES={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&#34;","'":"&#39;"},_MATCH_HTML=/[&<>'"]/g;function encode_char(e){return _ENCODE_HTML_RULES[e]||e}var __output="";function __append(e){null!=e&&(__output+=e)}with(locals||{})__append('\n\n<form id="swh-mailmap-form" class="text-left">\n <div class="form-group">\n <label for="swh-mailmap-from-email">Email address</label>\n <input type="email" class="form-control" id="swh-mailmap-from-email" value="'),__append(escapeFn(email)),__append('"\n '),updateForm&&__append(' readonly="readonly" '),__append(' required>\n </div>\n <div class="form-group">\n <label for="swh-mailmap-display-name">Display name</label>\n <input class="form-control" id="swh-mailmap-display-name" value="'),__append(escapeFn(displayName)),__append('" placeholder="John Doe <jdoe@example.org>" required>\n </div>\n <div class="custom-control custom-checkbox">\n <input class="custom-control-input" type="checkbox" value="" id="swh-mailmap-display-name-activated"\n '),displayNameActivated&&__append(' checked="checked" '),__append('>\n <label class="custom-control-label pt-0" for="swh-mailmap-display-name-activated">Activate display name</label>\n </div>\n <div class="d-flex justify-content-center">\n <input id="swh-mailmap-form-submit" type="submit" value="'),__append(escapeFn(buttonText)),__append('">\n </div>\n</form>');return __output}},35666:function(e){var t=function(e){"use strict";var t,r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var o=t&&t.prototype instanceof h?t:h,i=Object.create(o.prototype),c=new O(n||[]);return a(i,"_invoke",{value:L(e,r,c)}),i}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var d="suspendedStart",f="executing",_="completed",m={};function h(){}function v(){}function y(){}var w={};l(w,i,(function(){return this}));var b=Object.getPrototypeOf,g=b&&b(b(N([])));g&&g!==r&&n.call(g,i)&&(w=g);var x=y.prototype=h.prototype=Object.create(w);function k(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function r(a,o,i,c){var u=p(e[a],e,o);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==typeof s&&n.call(s,"__await")?t.resolve(s.__await).then((function(e){r("next",e,i,c)}),(function(e){r("throw",e,i,c)})):t.resolve(s).then((function(e){l.value=e,i(l)}),(function(e){return r("throw",e,i,c)}))}c(u.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function L(e,t,r){var n=d;return function(a,o){if(n===f)throw new Error("Generator is already running");if(n===_){if("throw"===a)throw o;return q()}for(r.method=a,r.arg=o;;){var i=r.delegate;if(i){var c=j(i,r);if(c){if(c===m)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===d)throw n=_,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=f;var u=p(e,t,r);if("normal"===u.type){if(n=r.done?_:"suspendedYield",u.arg===m)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n=_,r.method="throw",r.arg=u.arg)}}}function j(e,r){var n=r.method,a=e.iterator[n];if(a===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var o=p(a,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,m;var i=o.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function N(e){if(e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,o=function r(){for(;++a<e.length;)if(n.call(e,a))return r.value=e[a],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}return{next:q}}function q(){return{value:t,done:!0}}return v.prototype=y,a(x,"constructor",{value:y,configurable:!0}),a(y,"constructor",{value:v,configurable:!0}),v.displayName=l(y,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,l(e,u,"GeneratorFunction")),e.prototype=Object.create(x),e},e.awrap=function(e){return{__await:e}},k(E.prototype),l(E.prototype,c,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,a,o){void 0===o&&(o=Promise);var i=new E(s(t,r,n,a),o);return e.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},k(x),l(x,u,"Generator"),l(x,i,(function(){return this})),l(x,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=N,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function a(n,a){return c.type="throw",c.arg=e,r.next=n,a&&(r.method="next",r.arg=t),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],c=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(u&&l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),T(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;T(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:N(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},15861:function(e,t,r){"use strict";function n(e,t,r,n,a,o,i){try{var c=e[o](i),u=c.value}catch(e){return void r(e)}c.done?t(u):Promise.resolve(u).then(n,a)}function a(e){return function(){var t=this,r=arguments;return new Promise((function(a,o){var i=e.apply(t,r);function c(e){n(i,a,o,c,u,"next",e)}function u(e){n(i,a,o,c,u,"throw",e)}c(void 0)}))}}r.d(t,{Z:function(){return a}})},31955:function(e,t){"use strict";function r(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}var n=function e(t,n){function a(e,a,o){if("undefined"!=typeof document){"number"==typeof(o=r({},n,o)).expires&&(o.expires=new Date(Date.now()+864e5*o.expires)),o.expires&&(o.expires=o.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var i="";for(var c in o)o[c]&&(i+="; "+c,!0!==o[c]&&(i+="="+o[c].split(";")[0]));return document.cookie=e+"="+t.write(a,e)+i}}return Object.create({set:a,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var r=document.cookie?document.cookie.split("; "):[],n={},a=0;a<r.length;a++){var o=r[a].split("="),i=o.slice(1).join("=");try{var c=decodeURIComponent(o[0]);if(n[c]=t.read(i,c),e===c)break}catch(e){}}return e?n[e]:n}},remove:function(e,t){a(e,"",r({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,r({},this.attributes,t))},withConverter:function(t){return e(r({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});t.Z=n}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](r,r.exports,__webpack_require__),r.exports}__webpack_require__.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=function(e,t){for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},__webpack_require__.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={},_global;return _global="undefined"!=typeof window?window:void 0!==__webpack_require__.g?__webpack_require__.g:"undefined"!=typeof self?self:{},_global.SENTRY_RELEASE={id:"0.2.10"},_global.SENTRY_RELEASES=_global.SENTRY_RELEASES||{},_global.SENTRY_RELEASES["swh-webapp@swh"]={id:"0.2.10"},function(){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{addNewMailmap:function(){return l},initMailmapUI:function(){return f},mailmapForm:function(){return c},updateMailmap:function(){return s}});var e,t=__webpack_require__(15861),r=__webpack_require__(87757),n=__webpack_require__.n(r),a=__webpack_require__(59537),o=__webpack_require__(82409),i=__webpack_require__.n(o);function c(e,t,r,n,a){return void 0===t&&(t=""),void 0===r&&(r=""),void 0===n&&(n=!1),void 0===a&&(a=!1),i()({buttonText:e,email:t,displayName:r,displayNameActivated:n,updateForm:a})}function u(r,o,i){swh.webapp.showModalHtml(r,o),$("#swh-mailmap-form").on("submit",function(){var r=(0,t.Z)(n().mark((function t(r){var o,c,u;return n().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r.preventDefault(),r.stopPropagation(),o={from_email:$("#swh-mailmap-from-email").val(),display_name:$("#swh-mailmap-display-name").val(),display_name_activated:$("#swh-mailmap-display-name-activated").prop("checked")},t.prev=3,t.next=6,(0,a.e_)(i,{"Content-Type":"application/json"},JSON.stringify(o));case 6:c=t.sent,$("#swh-web-modal-html").modal("hide"),(0,a.ry)(c),e.draw(),t.next=18;break;case 12:return t.prev=12,t.t0=t.catch(3),t.next=16,t.t0.text();case 16:u=t.sent,swh.webapp.showModalMessage("Error",u);case 18:case"end":return t.stop()}}),t,null,[[3,12]])})));return function(e){return r.apply(this,arguments)}}())}function l(){u("Add new mailmap",c("Add mailmap"),Urls.profile_mailmap_add())}function s(t){for(var r,n=e.rows().data(),a=0;a<n.length;++a){var o=n[a];if(o.id===t){r=o;break}}u("Update existing mailmap",c("Update mailmap",r.from_email,r.display_name,r.display_name_activated,!0),Urls.profile_mailmap_update())}var p='<i class="mdi mdi-check-bold" aria-hidden="true"></i>',d='<i class="mdi mdi-close-thick" aria-hidden="true"></i>';function f(){$(document).ready((function(){e=$("#swh-mailmaps-table").on("error.dt",(function(e,t,r,n){$("#swh-mailmaps-list-error").text("An error occurred while retrieving the mailmaps list"),console.log(n)})).DataTable({serverSide:!0,ajax:Urls.profile_mailmap_list_datatables(),columns:[{data:"from_email",name:"from_email",render:$.fn.dataTable.render.text()},{data:"from_email_verified",name:"from_email_verified",render:function(e,t,r){return e?p:d},className:"dt-center"},{data:"display_name",name:"display_name",render:$.fn.dataTable.render.text()},{data:"display_name_activated",name:"display_name_activated",render:function(e,t,r){return e?p:d},className:"dt-center"},{data:"last_update_date",name:"last_update_date",render:function(e,t,r){return"display"===t?new Date(e).toLocaleString():e}},{render:function(e,t,r){var n=new Date(r.last_update_date),a=new Date(r.mailmap_last_processing_date);return!a||a<n?d:p},className:"dt-center",orderable:!1},{render:function(e,t,r){return'<button class="btn btn-default"\n onclick="swh.mailmap.updateMailmap('+r.id+')">\n Edit\n </button>'},orderable:!1}],ordering:!0,searching:!0,searchDelay:1e3,scrollY:"50vh",scrollCollapse:!0})}))}}(),__webpack_exports__}()}));
//# sourceMappingURL=mailmap.205670ba709e64406550.js.map

File Metadata

Mime Type
text/plain
Expires
Wed, Jun 4, 7:22 PM (6 d, 3 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3368150

Event Timeline