(()=>{"use strict";var t,e={9754:(t,e,n)=>{function r(t){return(r="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 o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){return!e||"object"!==r(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 a(t){var e="function"==typeof Map?new Map:void 0;return(a=function(t){if(null===t||(n=t,-1===Function.toString.call(n).indexOf("[native code]")))return t;var n;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,r)}function r(){return u(t,arguments,f(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),s(r,t)})(t)}function u(t,e,n){return(u=l()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var o=new(Function.bind.apply(t,r));return n&&s(o,n.prototype),o}).apply(null,arguments)}function l(){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 s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function p(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n(4916),n(5306),n(2479),n(1539),n(9714),n(1058),n(6992),n(189),n(8783),n(3948),n(4723),n(7042),n(9826),n(3123),n(3210),n(1038),n(2526),n(1817),n(2165),n(2222),n(8304),n(489),n(2772),n(2419),n(1532);var d=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&&s(t,e)}(a,t);var e,n,r=(e=a,n=l(),function(){var t,r=f(e);if(n){var o=f(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return i(this,t)});function a(){var t;o(this,a);for(var e=arguments.length,n=new Array(e),i=0;i0&&void 0!==arguments[0]?arguments[0]:"";return O(this,c),E(x(t=i.call(this,e)),"name","RuntimeError"),t.message=e,t}return r=c,(o=[{key:"toString",value:function(){return this.message?this.name+": "+this.message:this.name}}])&&j(r.prototype,o),c}(S(Error));function C(t,e,n,r,o,i,c){try{var a=t[i](c),u=a.value}catch(t){return void n(t)}a.done?e(u):Promise.resolve(u).then(r,o)}function F(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function c(t){C(i,r,o,c,a,"next",t)}function a(t){C(i,r,o,c,a,"throw",t)}c(void 0)}))}}b()((function(t){t("#btnLeaveTroop").click((function(){return!!confirm("정말 부대를 탈퇴하시겠습니까?")&&(t.post({url:"j_troop.php",dataType:"json",data:{action:"부대탈퇴"}}).then((function(t){console.log(t),t.result||(alert(t.reason),location.reload()),location.reload()}),m),!1)})),t("#btnCreateTroop").click((function(){return t.post({url:"j_troop.php",dataType:"json",data:{action:"부대창설",name:t("#nameplate").val()}}).then((function(t){console.log(t),t.result||(alert(t.reason),location.reload()),location.reload()}),m),!1})),t("#btnChangeTroopName").click((function(){return t.post({url:"j_troop.php",dataType:"json",data:{action:"부대변경",name:t("#nameplate").val()}}).then((function(t){console.log(t),t.result||(alert(t.reason),location.reload()),location.reload()}),m),!1})),t("#btnKickTroop").click((function(){return t.post({url:"j_troop.php",dataType:"json",data:{action:"부대추방",gen:t("#genNo").val()}}).then((function(t){console.log(t),t.result||(alert(t.reason),location.reload()),location.reload()}),m),!1})),t("#btnJoinTroop").click((function(){return t.post({url:"j_troop.php",dataType:"json",data:{action:"부대가입",troop:t(".troopId:checked").val()}}).then((function(t){console.log(t),t.result||(alert(t.reason),location.reload()),location.reload()}),m),!1})),function(t){var e,n={},r=(e=document.location.pathname).substring(0,e.lastIndexOf("/")),o=t("
이 름통무지자 금군 량도시병 종병 사훈련사기명 령삭턴
");o.find("thead td"),o.css("width","960px").css("margin","0").css("padding","0").css("left","50%").css("margin-left","-480px"),o.hide();var i=function(){var e=F(regeneratorRuntime.mark((function e(){var i,c,a,u;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={},(i=t("#on_mover .content")).html(""),e.next=5,g().get("".concat(r,"/b_genList.php"),{responseType:"text"});case 5:c=e.sent,a=c.data;try{u=t(a),function(){var e=void 0;if(u.each((function(){if("general_list"==t(this).attr("id"))return e=t(this),!1})),void 0===e)throw new M;return e}().find("tbody > tr").each((function(){var e=t(this),r=e.children(".i_troop");if("-"!=t.trim(r.text())){r.remove();var o=parseInt(e.data("general-id"));n[o]=e,e.hide(),i.append(e)}})),t(".troopUser").hover((function(){var e=t(this),r=e.closest("tr"),i=parseInt(e.data("general-id"));console.log(i);var c=h(r.offset()).top+h(r.outerHeight());o.css("top",c),n[i].show(),o.show()}),(function(){var e=t(this),r=parseInt(e.data("general-id"));n[r].hide(),o.hide()}))}catch(t){console.log(t)}case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),c=t("table:eq(0) td:eq(0)");c.find("br:last").remove();var a=t('');a.click(F(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,i();case 2:case"end":return t.stop()}}),t)})))),c.append(a),window.userList=n,t("body").append(o)}(t)}))}},n={};function r(t){var o=n[t];if(void 0!==o)return o.exports;var i=n[t]={id:t,loaded:!1,exports:{}};return e[t].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.m=e,t=[],r.O=(e,n,o,i)=>{if(!n){var c=1/0;for(s=0;s=i)&&Object.keys(r.O).every((t=>r.O[t](n[u])))?n.splice(u--,1):(a=!1,i0&&t[s-1][2]>i;s--)t[s]=t[s-1];t[s]=[n,o,i]},r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),r.j=48,(()=>{var t={48:0};r.O.j=e=>0===t[e];var e=(e,n)=>{var o,i,[c,a,u]=n,l=0;if(c.some((e=>0!==t[e]))){for(o in a)r.o(a,o)&&(r.m[o]=a[o]);if(u)var s=u(r)}for(e&&e(n);lr(9754)));o=r.O(o)})(); //# sourceMappingURL=troop.js.map