2 lines
5.7 KiB
JavaScript
2 lines
5.7 KiB
JavaScript
(()=>{"use strict";var t,e={1630:(t,e,r)=>{r(1058),r(9826),r(4678);var n=r(9755),o=r.n(n);function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?c(t):e}function c(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function l(t){var e="function"==typeof Map?new Map:void 0;return(l=function(t){if(null===t||(r=t,-1===Function.toString.call(r).indexOf("[native code]")))return t;var r;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return f(t,arguments,d(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),p(n,t)})(t)}function f(t,e,r){return(f=s()?Reflect.construct:function(t,e,r){var n=[null];n.push.apply(n,e);var o=new(Function.bind.apply(t,n));return r&&p(o,r.prototype),o}).apply(null,arguments)}function s(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function p(t,e){return(p=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function d(t){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function h(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}r(2222),r(8304),r(489),r(2772),r(1539),r(9714),r(2419),r(6992),r(1532),r(8783),r(3948),r(2526),r(1817),r(2165);var y=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&p(t,e)}(o,t);var e,r,n=(e=o,r=s(),function(){var t,n=d(e);if(r){var o=d(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return u(this,t)});function o(){var t;a(this,o);for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return h(c(t=n.call.apply(n,[this].concat(r))),"name","NotNullExpected"),t}return o}(l(TypeError));function b(t){if(null==t)throw new y;return t}o()((function(){var t=o()("#amount"),e=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(b(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)),e.val(p),t.val(100*parseFloat(b(f.val()))),13===r.which&&window.submitAction(),!1})),o()(".btn_half").on("click",(function(){var t=o()(this).closest(".input_form"),r=parseInt(t.data("crewtype")),n=t.find(".form_double:eq(0)"),i=Math.round(leadership/2);return e.val(r),n.val(i).change(),!1})),o()(".btn_fill").on("click",(function(){var t=o()(this).closest(".input_form"),r=parseInt(t.data("crewtype")),n=t.find(".form_double:eq(0)"),i=Math.ceil((100*leadership-currentCrew)/100);return r!=currentCrewType&&(i=leadership),e.val(r),n.val(i).change(),!1})),o()(".btn_full").on("click",(function(){var t=o()(this).closest(".input_form"),r=parseInt(t.data("crewtype")),n=t.find(".form_double:eq(0)"),i=fullLeadership+15;return e.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");e.val(n),t.val(100*parseFloat(b(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(t){var o=r[t];if(void 0!==o)return o.exports;var i=r[t]={id:t,loaded:!1,exports:{}};return e[t].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.m=e,t=[],n.O=(e,r,o,i)=>{if(!r){var a=1/0;for(f=0;f<t.length;f++){for(var[r,o,i]=t[f],u=!0,c=0;c<r.length;c++)(!1&i||a>=i)&&Object.keys(n.O).every((t=>n.O[t](r[c])))?r.splice(c--,1):(u=!1,i<a&&(a=i));if(u){t.splice(f--,1);var l=o();void 0!==l&&(e=l)}}return e}i=i||0;for(var f=t.length;f>0&&t[f-1][2]>i;f--)t[f]=t[f-1];t[f]=[r,o,i]},n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),n.j=796,(()=>{var t={796:0};n.O.j=e=>0===t[e];var e=(e,r)=>{var o,i,[a,u,c]=r,l=0;if(a.some((e=>0!==t[e]))){for(o in u)n.o(u,o)&&(n.m[o]=u[o]);if(c)var f=c(n)}for(e&&e(r);l<a.length;l++)i=a[l],n.o(t,i)&&t[i]&&t[i][0](),t[a[l]]=0;return n.O(f)},r=self.webpackChunkhidche_lib=self.webpackChunkhidche_lib||[];r.forEach(e.bind(null,0)),r.push=e.bind(null,r.push.bind(r))})();var o=n.O(void 0,[216],(()=>n(1630)));o=n.O(o)})();
|
|
//# sourceMappingURL=recruitCrewForm.js.map
|