(()=>{"use strict";var e,t={3904:(e,t,r)=>{r(1058),r(9826),r(4678);var n=r(9755),o=r.n(n);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:"";return a(this,o),y(s(e=n.call(this,t)),"name","RuntimeError"),e.message=t,e}return t=o,(r=[{key:"toString",value:function(){return this.message?this.name+": "+this.message:this.name}}])&&u(t.prototype,r),o}(p(Error)));function w(e){if(null==e)throw new m;return e}o()((function(){var e=o()("#amount"),t=o()("#crewType");o()(".form_double").on("keyup change",(function(r){var n,i,a,u,c,l,f=o()(this),s=f.parents(".input_form"),p=parseInt(s.data("crewtype"));return n=p,i=o()("#crewType{0}".format(n)),a=parseInt(w(i.find(".form_double").val())),u=i.data("cost"),c=i.find(".form_cost"),l=a*u,is모병&&(l*=2),c.val(Math.round(l)),t.val(p),e.val(100*parseFloat(w(f.val()))),13===r.which&&window.submitAction(),!1})),o()(".btn_half").on("click",(function(){var e=o()(this).closest(".input_form"),r=parseInt(e.data("crewtype")),n=e.find(".form_double:eq(0)"),i=Math.round(leadership/2);return t.val(r),n.val(i).change(),!1})),o()(".btn_fill").on("click",(function(){var e=o()(this).closest(".input_form"),r=parseInt(e.data("crewtype")),n=e.find(".form_double:eq(0)"),i=Math.ceil((100*leadership-currentCrew)/100);return r!=currentCrewType&&(i=leadership),t.val(r),n.val(i).change(),!1})),o()(".btn_full").on("click",(function(){var e=o()(this).closest(".input_form"),r=parseInt(e.data("crewtype")),n=e.find(".form_double:eq(0)"),i=fullLeadership+15;return t.val(r),n.val(i).change(),!1})),o()(".submit_btn").on("click",(function(){var r=o()(this).closest("tr").find(".input_form"),n=parseInt(r.data("crewtype")),i=r.find(".form_double");t.val(n),e.val(100*parseFloat(w(i.val()))),window.submitAction()})),o()(".btn_fill").click(),o()("#show_unavailable_troops").change((function(){o()("#show_unavailable_troops").is(":checked")?o()(".show_default_false").show():o()(".show_default_false").hide()})),o()(".show_default_false").hide()}))}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var i=r[e]={id:e,loaded:!1,exports:{}};return t[e].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.m=t,e=[],n.O=(t,r,o,i)=>{if(!r){var a=1/0;for(f=0;f=i)&&Object.keys(n.O).every((e=>n.O[e](r[c])))?r.splice(c--,1):(u=!1,i0&&e[f-1][2]>i;f--)e[f]=e[f-1];e[f]=[r,o,i]},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),n.j=796,(()=>{var e={796:0};n.O.j=t=>0===e[t];var t=(t,r)=>{var o,i,[a,u,c]=r,l=0;for(o in u)n.o(u,o)&&(n.m[o]=u[o]);if(c)var f=c(n);for(t&&t(r);ln(3904)));o=n.O(o)})(); //# sourceMappingURL=recruitCrewForm.js.map