parcelRequire=function(e,r,t,n){var i,o="function"==typeof parcelRequire&&parcelRequire,u="function"==typeof require&&require;function f(t,n){if(!r[t]){if(!e[t]){var i="function"==typeof parcelRequire&&parcelRequire;if(!n&&i)return i(t,!0);if(o)return o(t,!0);if(u&&"string"==typeof t)return u(t);var c=new Error("Cannot find module '"+t+"'");throw c.code="MODULE_NOT_FOUND",c}p.resolve=function(r){return e[t][1][r]||r},p.cache={};var l=r[t]=new f.Module(t);e[t][0].call(l.exports,p,l,l.exports,this)}return r[t].exports;function p(e){return f(p.resolve(e))}}f.isParcelRequire=!0,f.Module=function(e){this.id=e,this.bundle=f,this.exports={}},f.modules=e,f.cache=r,f.parent=o,f.register=function(r,t){e[r]=[function(e,r){r.exports=t},{}]};for(var c=0;c<t.length;c++)try{f(t[c])}catch(e){i||(i=e)}if(t.length){var l=f(t[t.length-1]);"object"==typeof exports&&"undefined"!=typeof module?module.exports=l:"function"==typeof define&&define.amd?define(function(){return l}):n&&(this[n]=l)}if(parcelRequire=f,i)throw i;return f}({"ar93":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;const e={pl_PL:{rename:"Zmień",name:"Nazwa"},en_DK:{rename:"Rename",name:"Name"}};var a=()=>e[window.game_data.locale]||e.en_DK;exports.default=a;
},{}],"oUdd":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=e=>new Promise(t=>setTimeout(t,e));exports.default=e;
},{}],"XXZR":[function(require,module,exports) {
"use strict";var e=n(require("./i18n/commandRenamer")),t=n(require("./utils/wait"));function n(e){return e&&e.__esModule?e:{default:e}}const c=(0,e.default)(),r=async e=>{e.preventDefault();const n=e.target[0].value;if(!n)return;const c=document.querySelectorAll("#incomings_table input:checked");e.target[1].disabled=!0;for(let r=0;r<c.length;r++){const e=c[r];if("select_all"===e.id)continue;e.parentElement.querySelector(".rename-icon").click(),await(0,t.default)(20);const o=e.parentElement.querySelector(".quickedit-edit");o.querySelector("input").value=n,o.querySelector('input[type="button"]').click(),await(0,t.default)(350)}e.target[1].disabled=!1},o=()=>{const e='\n    <input type="text" placeholder="'.concat(c.name,'" />\n    <button type="submit">').concat(c.rename,"</button>\n  "),t=document.createElement("form");t.innerHTML=e,t.addEventListener("submit",r),document.querySelector("#paged_view_content").insertBefore(t,document.querySelector("#incomings_form"))};!async function(){try{o()}catch(e){console.log("command renamer",e)}}();
},{"./i18n/commandRenamer":"ar93","./utils/wait":"oUdd"}]},{},["XXZR"], null)