All of their challenges solves, attempts, awards, and unlocked hints will also be deleted!\".format(\"\" + (0, _utils.htmlEntities)(member_name) + \"\", \"\" + (0, _utils.htmlEntities)(TEAM_NAME) + \"\"),\n success: function success() {\n _CTFd.default.fetch(\"/api/v1/teams/\" + TEAM_ID + \"/members\", {\n method: \"DELETE\",\n body: JSON.stringify(params)\n }).then(function (response) {\n return response.json();\n }).then(function (response) {\n if (response.success) {\n row.remove();\n }\n });\n }\n });\n });\n (0, _jquery.default)(\".delete-team\").click(function (e) {\n (0, _ezq.ezQuery)({\n title: \"Delete Team\",\n body: \"Are you sure you want to delete {0}\".format(\"\" + (0, _utils.htmlEntities)(TEAM_NAME) + \"\"),\n success: function success() {\n _CTFd.default.fetch(\"/api/v1/teams/\" + TEAM_ID, {\n method: \"DELETE\"\n }).then(function (response) {\n return response.json();\n }).then(function (response) {\n if (response.success) {\n window.location = _CTFd.default.config.urlRoot + \"/admin/teams\";\n }\n });\n }\n });\n });\n (0, _jquery.default)(\".delete-submission\").click(function (e) {\n e.preventDefault();\n var submission_id = (0, _jquery.default)(this).attr(\"submission-id\");\n var submission_type = (0, _jquery.default)(this).attr(\"submission-type\");\n var submission_challenge = (0, _jquery.default)(this).attr(\"submission-challenge\");\n var body = \"Are you sure you want to delete {0} submission from {1} for {2}?\".format((0, _utils.htmlEntities)(submission_type), (0, _utils.htmlEntities)(TEAM_NAME), (0, _utils.htmlEntities)(submission_challenge));\n var row = (0, _jquery.default)(this).parent().parent();\n (0, _ezq.ezQuery)({\n title: \"Delete Submission\",\n body: body,\n success: function success() {\n _CTFd.default.fetch(\"/api/v1/submissions/\" + submission_id, {\n method: \"DELETE\",\n credentials: \"same-origin\",\n headers: {\n Accept: \"application/json\",\n \"Content-Type\": \"application/json\"\n }\n }).then(function (response) {\n return response.json();\n }).then(function (response) {\n if (response.success) {\n row.remove();\n }\n });\n }\n });\n });\n (0, _jquery.default)(\".delete-award\").click(function (e) {\n e.preventDefault();\n var award_id = (0, _jquery.default)(this).attr(\"award-id\");\n var award_name = (0, _jquery.default)(this).attr(\"award-name\");\n var body = \"Are you sure you want to delete the {0} award from {1}?\".format((0, _utils.htmlEntities)(award_name), (0, _utils.htmlEntities)(TEAM_NAME));\n var row = (0, _jquery.default)(this).parent().parent();\n (0, _ezq.ezQuery)({\n title: \"Delete Award\",\n body: body,\n success: function success() {\n _CTFd.default.fetch(\"/api/v1/awards/\" + award_id, {\n method: \"DELETE\",\n credentials: \"same-origin\",\n headers: {\n Accept: \"application/json\",\n \"Content-Type\": \"application/json\"\n }\n }).then(function (response) {\n return response.json();\n }).then(function (response) {\n if (response.success) {\n row.remove();\n }\n });\n }\n });\n });\n (0, _jquery.default)(\"#team-info-create-form\").submit(createTeam);\n (0, _jquery.default)(\"#team-info-edit-form\").submit(updateTeam);\n var type, id, name, account_id;\n var _window$stats_data = window.stats_data;\n type = _window$stats_data.type;\n id = _window$stats_data.id;\n name = _window$stats_data.name;\n account_id = _window$stats_data.account_id;\n createGraphs(type, id, name, account_id);\n setInterval(function () {\n updateGraphs(type, id, name, account_id);\n }, 300000);\n});\n\n//# sourceURL=webpack:///./CTFd/themes/admin/assets/js/pages/team.js?");
/***/ })
diff --git a/CTFd/themes/admin/static/js/pages/team.min.js b/CTFd/themes/admin/static/js/pages/team.min.js
index 69169e2..2fc528b 100644
--- a/CTFd/themes/admin/static/js/pages/team.min.js
+++ b/CTFd/themes/admin/static/js/pages/team.min.js
@@ -1 +1 @@
-!function(l){function e(e){for(var t,o,n=e[0],s=e[1],a=e[2],i=0,r=[];i #results").empty(),Object.keys(s.errors).forEach(function(e,t){(0,i.default)("#team-info-form > #results").append((0,d.ezBadge)({type:"error",body:s.errors[e]}));var o=(0,i.default)("#team-info-form").find("input[name={0}]".format(e)),n=(0,i.default)(o);n.addClass("input-filled-invalid"),n.removeClass("input-filled-valid")})})}function m(e){e.preventDefault();var t=(0,i.default)("#team-info-edit-form").serializeJSON(!0);r.default.fetch("/api/v1/teams/"+TEAM_ID,{method:"PATCH",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(t)}).then(function(e){return e.json()}).then(function(s){s.success?window.location.reload():((0,i.default)("#team-info-form > #results").empty(),Object.keys(s.errors).forEach(function(e,t){(0,i.default)("#team-info-form > #results").append((0,d.ezBadge)({type:"error",body:s.errors[e]}));var o=(0,i.default)("#team-info-form").find("input[name={0}]".format(e)),n=(0,i.default)(o);n.addClass("input-filled-invalid"),n.removeClass("input-filled-valid")}))})}var p={team:[function(e){return r.default.api.get_team_solves({teamId:e})},function(e){return r.default.api.get_team_fails({teamId:e})},function(e){return r.default.api.get_team_awards({teamId:e})}],user:[function(e){return r.default.api.get_user_solves({userId:e})},function(e){return r.default.api.get_user_fails({userId:e})},function(e){return r.default.api.get_user_awards({userId:e})}]};(0,i.default)(function(){var e,t,o,n;(0,i.default)("#team-captain-form").submit(function(e){e.preventDefault();var t=(0,i.default)("#team-captain-form").serializeJSON(!0);r.default.fetch("/api/v1/teams/"+TEAM_ID,{method:"PATCH",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(t)}).then(function(e){return e.json()}).then(function(s){s.success?window.location.reload():((0,i.default)("#team-captain-form > #results").empty(),Object.keys(s.errors).forEach(function(e,t){(0,i.default)("#team-captain-form > #results").append((0,d.ezBadge)({type:"error",body:s.errors[e]}));var o=(0,i.default)("#team-captain-form").find("select[name={0}]".format(e)),n=(0,i.default)(o);n.addClass("input-filled-invalid"),n.removeClass("input-filled-valid")}))})}),(0,i.default)(".edit-team").click(function(e){(0,i.default)("#team-info-edit-modal").modal("toggle")}),(0,i.default)(".edit-captain").click(function(e){(0,i.default)("#team-captain-modal").modal("toggle")}),(0,i.default)(".award-team").click(function(e){(0,i.default)("#team-award-modal").modal("toggle")}),(0,i.default)("#user-award-form").submit(function(e){e.preventDefault();var t=(0,i.default)("#user-award-form").serializeJSON(!0);t.user_id=(0,i.default)("#award-member-input").val(),(0,i.default)("#user-award-form > #results").empty(),t.user_id?(t.user_id=parseInt(t.user_id),r.default.fetch("/api/v1/awards",{method:"POST",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(t)}).then(function(e){return e.json()}).then(function(s){s.success?window.location.reload():((0,i.default)("#user-award-form > #results").empty(),Object.keys(s.errors).forEach(function(e,t){(0,i.default)("#user-award-form > #results").append((0,d.ezBadge)({type:"error",body:s.errors[e]}));var o=(0,i.default)("#user-award-form").find("input[name={0}]".format(e)),n=(0,i.default)(o);n.addClass("input-filled-invalid"),n.removeClass("input-filled-valid")}))})):(0,i.default)("#user-award-form > #results").append((0,d.ezBadge)({type:"error",body:"Please select a team member"}))}),(0,i.default)(".delete-member").click(function(e){e.preventDefault();var t=(0,i.default)(this).attr("member-id"),o=(0,i.default)(this).attr("member-name"),n={user_id:t},s=(0,i.default)(this).parent().parent();(0,d.ezQuery)({title:"Remove Member",body:"Are you sure you want to remove {0} from {1}?
All of their challenges solves, attempts, awards, and unlocked hints will also be deleted!".format(""+(0,l.htmlEntities)(o)+"",""+(0,l.htmlEntities)(TEAM_NAME)+""),success:function(){r.default.fetch("/api/v1/teams/"+TEAM_ID+"/members",{method:"DELETE",body:JSON.stringify(n)}).then(function(e){return e.json()}).then(function(e){e.success&&s.remove()})}})}),(0,i.default)(".delete-team").click(function(e){(0,d.ezQuery)({title:"Delete Team",body:"Are you sure you want to delete {0}".format(""+(0,l.htmlEntities)(TEAM_NAME)+""),success:function(){r.default.fetch("/api/v1/teams/"+TEAM_ID,{method:"DELETE"}).then(function(e){return e.json()}).then(function(e){e.success&&(window.location=r.default.config.urlRoot+"/admin/teams")})}})}),(0,i.default)(".delete-submission").click(function(e){e.preventDefault();var t=(0,i.default)(this).attr("submission-id"),o=(0,i.default)(this).attr("submission-type"),n=(0,i.default)(this).attr("submission-challenge"),s="Are you sure you want to delete {0} submission from {1} for {2}?".format((0,l.htmlEntities)(o),(0,l.htmlEntities)(TEAM_NAME),(0,l.htmlEntities)(n)),a=(0,i.default)(this).parent().parent();(0,d.ezQuery)({title:"Delete Submission",body:s,success:function(){r.default.fetch("/api/v1/submissions/"+t,{method:"DELETE",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"}}).then(function(e){return e.json()}).then(function(e){e.success&&a.remove()})}})}),(0,i.default)(".delete-award").click(function(e){e.preventDefault();var t=(0,i.default)(this).attr("award-id"),o=(0,i.default)(this).attr("award-name"),n="Are you sure you want to delete the {0} award from {1}?".format((0,l.htmlEntities)(o),(0,l.htmlEntities)(TEAM_NAME)),s=(0,i.default)(this).parent().parent();(0,d.ezQuery)({title:"Delete Award",body:n,success:function(){r.default.fetch("/api/v1/awards/"+t,{method:"DELETE",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"}}).then(function(e){return e.json()}).then(function(e){e.success&&s.remove()})}})}),(0,i.default)("#team-info-create-form").submit(a),(0,i.default)("#team-info-edit-form").submit(m);var s=window.stats_data;e=s.type,t=s.id,o=s.name,n=s.account_id,function(t,o,n,s){var e=u(p[t],3),a=e[0],i=e[1],r=e[2];Promise.all([a(s),i(s),r(s)]).then(function(e){(0,c.createGraph)("score_graph","#score-graph",e,t,o,n,s),(0,c.createGraph)("category_breakdown","#categories-pie-graph",e,t,o,n,s),(0,c.createGraph)("solve_percentages","#keys-pie-graph",e,t,o,n,s)})}(e,t,o,n),setInterval(function(){!function(t,o,n,s){var e=u(p[t],3),a=e[0],i=e[1],r=e[2];Promise.all([a(s),i(s),r(s)]).then(function(e){(0,c.updateGraph)("score_graph","#score-graph",e,t,o,n,s),(0,c.updateGraph)("category_breakdown","#categories-pie-graph",e,t,o,n,s),(0,c.updateGraph)("solve_percentages","#keys-pie-graph",e,t,o,n,s)})}(e,t,o,n)},3e5)})},"./CTFd/themes/admin/assets/js/styles.js":function(e,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,o("./node_modules/bootstrap/dist/js/bootstrap.bundle.js");var n,s=(n=o("./node_modules/jquery/dist/jquery.js"))&&n.__esModule?n:{default:n};t.default=function(){(0,s.default)(":input").each(function(){(0,s.default)(this).data("initial",(0,s.default)(this).val())}),(0,s.default)(".form-control").bind({focus:function(){(0,s.default)(this).addClass("input-filled-valid")},blur:function(){""===(0,s.default)(this).val()&&(0,s.default)(this).removeClass("input-filled-valid")}}),(0,s.default)(".modal").on("show.bs.modal",function(e){(0,s.default)(".form-control").each(function(){(0,s.default)(this).val()&&(0,s.default)(this).addClass("input-filled-valid")})}),(0,s.default)(function(){(0,s.default)(".form-control").each(function(){(0,s.default)(this).val()&&(0,s.default)(this).addClass("input-filled-valid")}),(0,s.default)("tr[data-href]").click(function(){if(!getSelection().toString()){var e=(0,s.default)(this).attr("data-href");e&&(window.location=e)}return!1}),(0,s.default)("tr[data-href] a, tr[data-href] button").click(function(e){(0,s.default)(this).attr("data-dismiss")||e.stopPropagation()}),(0,s.default)('[data-toggle="tooltip"]').tooltip()})}},"./CTFd/themes/core/assets/js/CTFd.js":function(e,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=d(o("./CTFd/themes/core/assets/js/fetch.js")),s=d(o("./CTFd/themes/core/assets/js/config.js")),a=o("./CTFd/themes/core/assets/js/api.js");o("./CTFd/themes/core/assets/js/patch.js");var i=d(o("./node_modules/markdown-it/index.js")),r=d(o("./node_modules/jquery/dist/jquery.js")),l=d(o("./CTFd/themes/core/assets/js/ezq.js"));function d(e){return e&&e.__esModule?e:{default:e}}function c(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var u=new a.API("/"),m={},p={ezq:l.default},f={$:r.default,markdown:function(e){var t=function(t){for(var e=1;e
All of their challenges solves, attempts, awards, and unlocked hints will also be deleted!".format(""+(0,l.htmlEntities)(o)+"",""+(0,l.htmlEntities)(TEAM_NAME)+""),success:function(){r.default.fetch("/api/v1/teams/"+TEAM_ID+"/members",{method:"DELETE",body:JSON.stringify(n)}).then(function(e){return e.json()}).then(function(e){e.success&&s.remove()})}})}),(0,i.default)(".delete-team").click(function(e){(0,d.ezQuery)({title:"Delete Team",body:"Are you sure you want to delete {0}".format(""+(0,l.htmlEntities)(TEAM_NAME)+""),success:function(){r.default.fetch("/api/v1/teams/"+TEAM_ID,{method:"DELETE"}).then(function(e){return e.json()}).then(function(e){e.success&&(window.location=r.default.config.urlRoot+"/admin/teams")})}})}),(0,i.default)(".delete-submission").click(function(e){e.preventDefault();var t=(0,i.default)(this).attr("submission-id"),o=(0,i.default)(this).attr("submission-type"),n=(0,i.default)(this).attr("submission-challenge"),s="Are you sure you want to delete {0} submission from {1} for {2}?".format((0,l.htmlEntities)(o),(0,l.htmlEntities)(TEAM_NAME),(0,l.htmlEntities)(n)),a=(0,i.default)(this).parent().parent();(0,d.ezQuery)({title:"Delete Submission",body:s,success:function(){r.default.fetch("/api/v1/submissions/"+t,{method:"DELETE",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"}}).then(function(e){return e.json()}).then(function(e){e.success&&a.remove()})}})}),(0,i.default)(".delete-award").click(function(e){e.preventDefault();var t=(0,i.default)(this).attr("award-id"),o=(0,i.default)(this).attr("award-name"),n="Are you sure you want to delete the {0} award from {1}?".format((0,l.htmlEntities)(o),(0,l.htmlEntities)(TEAM_NAME)),s=(0,i.default)(this).parent().parent();(0,d.ezQuery)({title:"Delete Award",body:n,success:function(){r.default.fetch("/api/v1/awards/"+t,{method:"DELETE",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"}}).then(function(e){return e.json()}).then(function(e){e.success&&s.remove()})}})}),(0,i.default)("#team-info-create-form").submit(a),(0,i.default)("#team-info-edit-form").submit(m);var s=window.stats_data;e=s.type,t=s.id,o=s.name,n=s.account_id,function(t,o,n,s){var e=u(p[t],3),a=e[0],i=e[1],r=e[2];Promise.all([a(s),i(s),r(s)]).then(function(e){(0,c.createGraph)("score_graph","#score-graph",e,t,o,n,s),(0,c.createGraph)("category_breakdown","#categories-pie-graph",e,t,o,n,s),(0,c.createGraph)("solve_percentages","#keys-pie-graph",e,t,o,n,s)})}(e,t,o,n),setInterval(function(){!function(t,o,n,s){var e=u(p[t],3),a=e[0],i=e[1],r=e[2];Promise.all([a(s),i(s),r(s)]).then(function(e){(0,c.updateGraph)("score_graph","#score-graph",e,t,o,n,s),(0,c.updateGraph)("category_breakdown","#categories-pie-graph",e,t,o,n,s),(0,c.updateGraph)("solve_percentages","#keys-pie-graph",e,t,o,n,s)})}(e,t,o,n)},3e5)})},"./CTFd/themes/admin/assets/js/styles.js":function(e,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,o("./node_modules/bootstrap/dist/js/bootstrap.bundle.js");var n,s=(n=o("./node_modules/jquery/dist/jquery.js"))&&n.__esModule?n:{default:n};t.default=function(){(0,s.default)(":input").each(function(){(0,s.default)(this).data("initial",(0,s.default)(this).val())}),(0,s.default)(".form-control").bind({focus:function(){(0,s.default)(this).addClass("input-filled-valid")},blur:function(){""===(0,s.default)(this).val()&&(0,s.default)(this).removeClass("input-filled-valid")}}),(0,s.default)(".modal").on("show.bs.modal",function(e){(0,s.default)(".form-control").each(function(){(0,s.default)(this).val()&&(0,s.default)(this).addClass("input-filled-valid")})}),(0,s.default)(function(){(0,s.default)(".form-control").each(function(){(0,s.default)(this).val()&&(0,s.default)(this).addClass("input-filled-valid")}),(0,s.default)("tr[data-href]").click(function(){if(!getSelection().toString()){var e=(0,s.default)(this).attr("data-href");e&&(window.location=e)}return!1}),(0,s.default)("tr[data-href] a, tr[data-href] button").click(function(e){(0,s.default)(this).attr("data-dismiss")||e.stopPropagation()}),(0,s.default)('[data-toggle="tooltip"]').tooltip()})}},"./CTFd/themes/core/assets/js/CTFd.js":function(e,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=d(o("./CTFd/themes/core/assets/js/fetch.js")),s=d(o("./CTFd/themes/core/assets/js/config.js")),a=o("./CTFd/themes/core/assets/js/api.js");o("./CTFd/themes/core/assets/js/patch.js");var i=d(o("./node_modules/markdown-it/index.js")),r=d(o("./node_modules/jquery/dist/jquery.js")),l=d(o("./CTFd/themes/core/assets/js/ezq.js"));function d(e){return e&&e.__esModule?e:{default:e}}function c(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var u=new a.API("/"),m={},p={ezq:l.default},f={$:r.default,markdown:function(e){var t=function(t){for(var e=1;e