Files
core/hwe/js/betting.js
T
2021-08-21 20:38:24 +09:00

2 lines
7.9 KiB
JavaScript

(()=>{"use strict";var t,e={502:(t,e,r)=>{r(5666),r(1058),r(1539),r(8674);var n=r(9755),o=r.n(n),a=r(9669),u=r.n(a),i=r(1584),c=r.n(i),l=r(1763),f=r.n(l),s=r(7037),p=r.n(s),y=r(1469),h=r.n(y);function v(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=b(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,u=!0,i=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return u=t.done,t},e:function(t){i=!0,a=t},f:function(){try{u||null==r.return||r.return()}finally{if(i)throw a}}}}function b(t,e){if(t){if("string"==typeof t)return d(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?d(t,e):void 0}}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function m(t){for(var e=new FormData,r=function(t){if(p()(t))return t;if(f()(t))return t.toString();if(c()(t))return t?"true":"false";throw new TypeError("지원하지 않는 formData Type")},n=0,o=Object.entries(t);n<o.length;n++){var a=(m=o[n],g=2,function(t){if(Array.isArray(t))return t}(m)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a=[],u=!0,i=!1;try{for(r=r.call(t);!(u=(n=r.next()).done)&&(a.push(n.value),!e||a.length!==e);u=!0);}catch(t){i=!0,o=t}finally{try{u||null==r.return||r.return()}finally{if(i)throw o}}return a}}(m,g)||b(m,g)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=a[0],i=a[1];if(h()(i)){var l,s="".concat(u,"[]"),y=v(i);try{for(y.s();!(l=y.n()).done;){var d=l.value;e.append(s,r(d))}}catch(t){y.e(t)}finally{y.f()}}else e.append(u,r(i))}var m,g;return e}function g(t){return(g="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 w(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function O(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function j(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&&k(t,e)}function S(t){var e=T();return function(){var r,n=E(t);if(e){var o=E(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return x(this,r)}}function x(t,e){return!e||"object"!==g(e)&&"function"!=typeof e?_(t):e}function _(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function P(t){var e="function"==typeof Map?new Map:void 0;return(P=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 R(t,arguments,E(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),k(n,t)})(t)}function R(t,e,r){return(R=T()?Reflect.construct:function(t,e,r){var n=[null];n.push.apply(n,e);var o=new(Function.bind.apply(t,n));return r&&k(o,r.prototype),o}).apply(null,arguments)}function T(){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 k(t,e){return(k=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function E(t){return(E=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function A(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}r(9714),r(9720),r(2526),r(1817),r(2165),r(6992),r(8783),r(3948),r(7042),r(1038),r(2222),r(8304),r(489),r(2772),r(2419),r(1532);var I=function(t){j(r,t);var e=S(r);function r(){var t;w(this,r);for(var n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];return A(_(t=e.call.apply(e,[this].concat(o))),"name","NotNullExpected"),t}return r}(function(t){j(o,t);var e,r,n=S(o);function o(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return w(this,o),A(_(t=n.call(this,e)),"name","RuntimeError"),t.message=e,t}return e=o,(r=[{key:"toString",value:function(){return this.message?this.name+": "+this.message:this.name}}])&&O(e.prototype,r),o}(P(Error)));function M(t){if(null==t)throw new I;return t}function C(t,e,r,n,o,a,u){try{var i=t[a](u),c=i.value}catch(t){return void r(t)}i.done?e(c):Promise.resolve(c).then(n,o)}o()((function(t){u().defaults.headers.common["X-Requested-With"]="XMLHttpRequest",t(".submitBtn").on("click",function(){var e,r=(e=regeneratorRuntime.mark((function e(r){var n,o,a,i,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r.preventDefault(),n=t(this),o=parseInt(n.data("target")),a=parseInt(M(t("#target_".concat(o)).val())),e.prev=4,e.next=7,u()({url:"j_betting.php",responseType:"json",method:"post",data:m({target:o,amount:a})});case 7:c=e.sent,i=c.data,e.next=17;break;case 11:return e.prev=11,e.t0=e.catch(4),console.error(e.t0),alert("에러: ".concat(e.t0)),location.reload(),e.abrupt("return");case 17:if(i.result){e.next=21;break}return alert("베팅을 실패했습니다: ".concat(i.reason)),location.reload(),e.abrupt("return");case 21:return location.reload(),e.abrupt("return");case 23:case"end":return e.stop()}}),e,this,[[4,11]])})),function(){var t=this,r=arguments;return new Promise((function(n,o){var a=e.apply(t,r);function u(t){C(a,n,o,u,i,"next",t)}function i(t){C(a,n,o,u,i,"throw",t)}u(void 0)}))});return function(t){return r.apply(this,arguments)}}())}))}},r={};function n(t){var o=r[t];if(void 0!==o)return o.exports;var a=r[t]={id:t,loaded:!1,exports:{}};return e[t].call(a.exports,a,a.exports,n),a.loaded=!0,a.exports}n.m=e,t=[],n.O=(e,r,o,a)=>{if(!r){var u=1/0;for(f=0;f<t.length;f++){for(var[r,o,a]=t[f],i=!0,c=0;c<r.length;c++)(!1&a||u>=a)&&Object.keys(n.O).every((t=>n.O[t](r[c])))?r.splice(c--,1):(i=!1,a<u&&(u=a));if(i){t.splice(f--,1);var l=o();void 0!==l&&(e=l)}}return e}a=a||0;for(var f=t.length;f>0&&t[f-1][2]>a;f--)t[f]=t[f-1];t[f]=[r,o,a]},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=375,(()=>{var t={375:0};n.O.j=e=>0===t[e];var e=(e,r)=>{var o,a,[u,i,c]=r,l=0;for(o in i)n.o(i,o)&&(n.m[o]=i[o]);if(c)var f=c(n);for(e&&e(r);l<u.length;l++)a=u[l],n.o(t,a)&&t[a]&&t[a][0](),t[u[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(502)));o=n.O(o)})();
//# sourceMappingURL=betting.js.map