text: (window.webpackJsonp=window.webpackJsonp||[]).push([[0],{"./CTFd/themes/admin/assets/js/components/comments/CommentBox.vue":function(e,t,s){s.r(t);var n,i=s("./CTFd/themes/admin/assets/js/components/comments/CommentBox.vue?vue&type=template&id=1fd2c08a&scoped=true&"),a=s("./CTFd/themes/admin/assets/js/components/comments/CommentBox.vue?vue&type=script&lang=js&");for(n in a)"default"!==n&&function(e){s.d(t,e,function(){return a[e]})}(n);s("./CTFd/themes/admin/assets/js/components/comments/CommentBox.vue?vue&type=style&index=0&id=1fd2c08a&scoped=true&lang=css&");var o=s("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),l=Object(o.a)(a.default,i.a,i.b,!1,null,"1fd2c08a",null);l.options.__file="CTFd/themes/admin/assets/js/components/comments/CommentBox.vue",t.default=l.exports},"./CTFd/themes/admin/assets/js/components/comments/CommentBox.vue?vue&type=script&lang=js&":function(e,t,s){s.r(t);var n,i=s("./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./CTFd/themes/admin/assets/js/components/comments/CommentBox.vue?vue&type=script&lang=js&"),a=s.n(i);for(n in i)"default"!==n&&function(e){s.d(t,e,function(){return i[e]})}(n);t.default=a.a},"./CTFd/themes/admin/assets/js/components/comments/CommentBox.vue?vue&type=style&index=0&id=1fd2c08a&scoped=true&lang=css&":function(e,t,s){var n=s("./node_modules/vue-style-loader/index.js!./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/vue-loader/lib/index.js?!./CTFd/themes/admin/assets/js/components/comments/CommentBox.vue?vue&type=style&index=0&id=1fd2c08a&scoped=true&lang=css&");s.n(n).a},"./CTFd/themes/admin/assets/js/components/comments/CommentBox.vue?vue&type=template&id=1fd2c08a&scoped=true&":function(e,t,s){function n(){var s=this,e=s.$createElement,n=s._self._c||e;return n("div",[n("div",{staticClass:"row mb-3"},[n("div",{staticClass:"col-md-12"},[n("div",{staticClass:"comment"},[n("textarea",{directives:[{name:"model",rawName:"v-model.lazy",value:s.comment,expression:"comment",modifiers:{lazy:!0}}],staticClass:"form-control mb-2",attrs:{rows:"2",id:"comment-input",placeholder:"Add comment"},domProps:{value:s.comment},on:{change:function(e){s.comment=e.target.value}}}),s._v(" "),n("button",{staticClass:"btn btn-sm btn-success btn-outlined float-right",attrs:{type:"submit"},on:{click:function(e){return s.submitComment()}}},[s._v("\n          Comment\n        ")])])])]),s._v(" "),1<s.pages?n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-12"},[n("div",{staticClass:"text-center"},[n("button",{staticClass:"btn btn-link p-0",attrs:{type:"button",disabled:!s.prev},on:{click:function(e){return s.prevPage()}}},[s._v("\n          <<<\n        ")]),s._v(" "),n("button",{staticClass:"btn btn-link p-0",attrs:{type:"button",disabled:!s.next},on:{click:function(e){return s.nextPage()}}},[s._v("\n          >>>\n        ")])])]),s._v(" "),n("div",{staticClass:"col-md-12"},[n("div",{staticClass:"text-center"},[n("small",{staticClass:"text-muted"},[s._v("Page "+s._s(s.page)+" of "+s._s(s.total)+" comments")])])])]):s._e(),s._v(" "),n("div",{staticClass:"comments"},[n("transition-group",{attrs:{name:"comment-card"}},s._l(s.comments,function(t){return n("div",{key:t.id,staticClass:"comment-card card mb-2"},[n("div",{staticClass:"card-body pl-0 pb-0 pt-2 pr-2"},[n("button",{staticClass:"close float-right",attrs:{type:"button","aria-label":"Close"},on:{click:function(e){return s.deleteComment(t.id)}}},[n("span",{attrs:{"aria-hidden":"true"}},[s._v("×")])])]),s._v(" "),n("div",{staticClass:"card-body"},[n("div",{staticClass:"card-text",domProps:{innerHTML:s._s(t.html)}}),s._v(" "),n("small",{staticClass:"text-muted float-left"},[n("span",[n("a",{attrs:{href:s.urlRoot+"/admin/users/"+t.author_id}},[s._v(s._s(t.author.name))])])]),s._v(" "),n("small",{staticClass:"text-muted float-right"},[n("span",{staticClass:"float-right"},[s._v(s._s(s.toLocalTime(t.date)))])])])])}),0)],1),s._v(" "),1<s.pages?n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-12"},[n("div",{staticClass:"text-center"},[n("button",{staticClass:"btn btn-link p-0",attrs:{type:"button",disabled:!s.prev},on:{click:function(e){return s.prevPage()}}},[s._v("\n          <<<\n        ")]),s._v(" "),n("button",{staticClass:"btn btn-link p-0",attrs:{type:"button",disabled:!s.next},on:{click:function(e){return s.nextPage()}}},[s._v("\n          >>>\n        ")])])]),s._v(" "),n("div",{staticClass:"col-md-12"},[n("div",{staticClass:"text-center"},[n("small",{staticClass:"text-muted"},[s._v("Page "+s._s(s.page)+" of "+s._s(s.total)+" comments")])])])]):s._e()])}var i=[];n._withStripped=!0,s.d(t,"a",function(){return n}),s.d(t,"b",function(){return i})},"./CTFd/themes/admin/assets/js/components/configs/fields/Field.vue":function(e,t,s){s.r(t);var n,i=s("./CTFd/themes/admin/assets/js/components/configs/fields/Field.vue?vue&type=template&id=30e0f744&scoped=true&"),a=s("./CTFd/themes/admin/assets/js/components/configs/fields/Field.vue?vue&type=script&lang=js&");for(n in a)"default"!==n&&function(e){s.d(t,e,function(){return a[e]})}(n);var o=s("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),l=Object(o.a)(a.default,i.a,i.b,!1,null,"30e0f744",null);l.options.__file="CTFd/themes/admin/assets/js/components/configs/fields/Field.vue",t.default=l.exports},"./CTFd/themes/admin/assets/js/components/configs/fields/Field.vue?vue&type=script&lang=js&":function(e,t,s){s.r(t);var n,i=s("./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./CTFd/themes/admin/assets/js/components/configs/fields/Field.vue?vue&type=script&lang=js&"),a=s.n(i);for(n in i)"default"!==n&&function(e){s.d(t,e,function(){return i[e]})}(n);t.default=a.a},"./CTFd/themes/admin/assets/js/components/configs/fields/Field.vue?vue&type=template&id=30e0f744&scoped=true&":function(e,t,s){function n(){var o=this,e=o.$createElement,t=o._self._c||e;return t("div",{staticClass:"border-bottom"},[t("div",[t("button",{staticClass:"close float-right",attrs:{type:"button","aria-label":"Close"},on:{click:function(e){return o.deleteField()}}},[t("span",{attrs:{"aria-hidden":"true"}},[o._v("×")])])]),o._v(" "),t("div",{staticClass:"row"},[t("div",{staticClass:"col-md-3"},[t("div",{staticClass:"form-group"},[t("label",[o._v("Field Type")]),o._v(" "),t("select",{directives:[{name:"model",rawName:"v-model.lazy",value:o.field.field_type,expression:"field.field_type",modifiers:{lazy:!0}}],staticClass:"form-control custom-select",on:{change:function(e){var t=Array.prototype.filter.call(e.target.options,function(e){return e.selected}).map(function(e){return"_value"in e?e._value:e.value});o.$set(o.field,"field_type",e.target.multiple?t:t[0])}}},[t("option",{attrs:{value:"text"}},[o._v("Text Field")]),o._v(" "),t("option",{attrs:{value:"boolean"}},[o._v("Checkbox")])]),o._v(" "),t("small",{staticClass:"form-text text-muted"},[o._v("Type of field shown to the user")])])]),o._v(" "),t("div",{staticClass:"col-md-9"},[t("div",{staticClass:"form-group"},[t("label",[o._v("Field Name")]),o._v(" "),t("input",{directives:[{name:"model",rawName:"v-model.lazy",value:o.field.name,expression:"field.name",modifiers:{lazy:!0}}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:o.field.name},on:{change:function(e){return o.$set(o.field,"name",e.target.value)}}}),o._v(" "),t("small",{staticClass:"form-text text-muted"},[o._v("Field name")])])]),o._v(" "),t("div",{staticClass:"col-md-12"},[t("div",{staticClass:"form-group"},[t("label",[o._v("Field Description")]),o._v(" "),t("input",{directives:[{name:"model",rawName:"v-model.lazy",value:o.field.description,expression:"field.description",modifiers:{lazy:!0}}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:o.field.description},on:{change:function(e){return o.$set(o.field,"description",e.target.value)}}}),o._v(" "),t("small",{staticClass:"form-text text-muted",attrs:{id:"emailHelp"}},[o._v("Field Description")])])]),o._v(" "),t("div",{staticClass:"col-md-12"},[t("div",{staticClass:"form-check"},[t("label",{staticClass:"form-check-label"},[t("input",{directives:[{name:"model",rawName:"v-model.lazy",value:o.field.editable,expression:"field.editable",modifiers:{lazy:!0}}],staticClass:"form-check-input",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(o.field.editable)?-1<o._i(o.field.editable,null):o.field.editable},on:{change:function(e){var t,s,n=o.field.editable,i=e.target,a=!!i.checked;Array.isArray(n)?(t=null,s=o._i(n,t),i.checked?s<0&&o.$set(o.field,"editable",n.concat([t])):-1<s&&o.$set(o.field,"editable",n.slice(0,s).concat(n.slice(s+1)))):o.$set(o.field,"editable",a)}}}),o._v("\n          Editable by user in profile\n        ")])]),o._v(" "),t("div",{staticClass:"form-check"},[t("label",{staticClass:"form-check-label"},[t("input",{directives:[{name:"model",rawName:"v-model.lazy",value:o.field.required,expression:"field.required",modifiers:{lazy:!0}}],staticClass:"form-check-input",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(o.field.required)?-1<o._i(o.field.required,null):o.field.required},on:{change:function(e){var t,s,n=o.field.required,i=e.target,a=!!i.checked;Array.isArray(n)?(t=null,s=o._i(n,t),i.checked?s<0&&o.$set(o.field,"required",n.concat([t])):-1<s&&o.$set(o.field,"required",n.slice(0,s).concat(n.slice(s+1)))):o.$set(o.field,"required",a)}}}),o._v("\n          Required on registration\n        ")])]),o._v(" "),t("div",{staticClass:"form-check"},[t("label",{staticClass:"form-check-label"},[t("input",{directives:[{name:"model",rawName:"v-model.lazy",value:o.field.public,expression:"field.public",modifiers:{lazy:!0}}],staticClass:"form-check-input",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(o.field.public)?-1<o._i(o.field.public,null):o.field.public},on:{change:function(e){var t,s,n=o.field.public,i=e.target,a=!!i.checked;Array.isArray(n)?(t=null,s=o._i(n,t),i.checked?s<0&&o.$set(o.field,"public",n.concat([t])):-1<s&&o.$set(o.field,"public",n.slice(0,s).concat(n.slice(s+1)))):o.$set(o.field,"public",a)}}}),o._v("\n          Shown on public profile\n        ")])])])]),o._v(" "),t("div",{staticClass:"row pb-3"},[t("div",{staticClass:"col-md-12"},[t("div",{staticClass:"d-block"},[t("button",{staticClass:"btn btn-sm btn-success btn-outlined float-right",attrs:{type:"button"},on:{click:function(e){return o.saveField()}}},[o._v("\n          Save\n        ")])])])])])}var i=[];n._withStripped=!0,s.d(t,"a",function(){return n}),s.d(t,"b",function(){return i})},"./CTFd/themes/admin/assets/js/components/configs/fields/FieldList.vue":function(e,t,s){s.r(t);var n,i=s("./CTFd/themes/admin/assets/js/components/configs/fields/FieldList.vue?vue&type=template&id=4b8cc71c&"),a=s("./CTFd/themes/admin/assets/js/components/configs/fields/FieldList.vue?vue&type=script&lang=js&");for(n in a)"default"!==n&&function(e){s.d(t,e,function(){return a[e]})}(n);var o=s("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),l=Object(o.a)(a.default,i.a,i.b,!1,null,null,null);l.options.__file="CTFd/themes/admin/assets/js/components/configs/fields/FieldList.vue",t.default=l.exports},"./CTFd/themes/admin/assets/js/components/configs/fields/FieldList.vue?vue&type=script&lang=js&":function(e,t,s){s.r(t);var n,i=s("./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./CTFd/themes/admin/assets/js/components/configs/fields/FieldList.vue?vue&type=script&lang=js&"),a=s.n(i);for(n in i)"default"!==n&&function(e){s.d(t,e,function(){return i[e]})}(n);t.default=a.a},"./CTFd/themes/admin/assets/js/components/configs/fields/FieldList.vue?vue&type=template&id=4b8cc71c&":function(e,t,s){function n(){var s=this,e=s.$createElement,n=s._self._c||e;return n("div",[s._l(s.fields,function(e,t){return n("div",{key:e.id,staticClass:"mb-5"},[n("Field",{attrs:{index:t,initialField:s.fields[t]},on:{"update:initialField":function(e){return s.$set(s.fields,t,e)},"update:initial-field":function(e){return s.$set(s.fields,t,e)},"remove-field":s.removeField}})],1)}),s._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col text-center"},[n("button",{staticClass:"btn btn-sm btn-success btn-outlined m-auto",attrs:{type:"button"},on:{click:function(e){return s.addField()}}},[s._v("\n        Add New Field\n      ")])])])],2)}var i=[];n._withStripped=!0,s.d(t,"a",function(){return n}),s.d(t,"b",function(){return i})},"./CTFd/themes/admin/assets/js/components/files/ChallengeFilesList.vue":function(e,t,s){s.r(t);var n,i=s("./CTFd/themes/admin/assets/js/components/files/ChallengeFilesList.vue?vue&type=template&id=5dec5474&scoped=true&"),a=s("./CTFd/themes/admin/assets/js/components/files/ChallengeFilesList.vue?vue&type=script&lang=js&");for(n in a)"default"!==n&&function(e){s.d(t,e,function(){return a[e]})}(n);var o=s("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),l=Object(o.a)(a.default,i.a,i.b,!1,null,"5dec5474",null);l.options.__file="CTFd/themes/admin/assets/js/components/files/ChallengeFilesList.vue",t.default=l.exports},"./CTFd/themes/admin/assets/js/components/files/ChallengeFilesList.vue?vue&type=script&lang=js&":function(e,t,s){s.r(t);var n,i=s("./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./CTFd/themes/admin/assets/js/components/files/ChallengeFilesList.vue?vue&type=script&lang=js&"),a=s.n(i);for(n in i)"default"!==n&&function(e){s.d(t,e,function(){return i[e]})}(n);t.default=a.a},"./CTFd/themes/admin/assets/js/components/files/ChallengeFilesList.vue?vue&type=template&id=5dec5474&scoped=true&":function(e,t,s){function n(){var s=this,e=s.$createElement,n=s._self._c||e;return n("div",[n("table",{staticClass:"table table-striped",attrs:{id:"filesboard"}},[s._m(0),s._v(" "),n("tbody",s._l(s.files,function(t){return n("tr",{key:t.id},[n("td",{staticClass:"text-center"},[n("a",{attrs:{href:s.urlRoot+"/files/"+t.location}},[s._v(s._s(t.location.split("/").pop()))])]),s._v(" "),n("td",{staticClass:"text-center"},[n("i",{staticClass:"btn-fa fas fa-times delete-file",attrs:{role:"button"},on:{click:function(e){return s.deleteFile(t.id)}}})])])}),0)]),s._v(" "),n("div",{staticClass:"col-md-12 mt-3"},[n("form",{ref:"FileUploadForm",attrs:{method:"POST"},on:{submit:function(e){return e.preventDefault(),s.addFiles(e)}}},[s._m(1),s._v(" "),s._m(2)])])])}var i=[function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("thead",[s("tr",[s("td",{staticClass:"text-center"},[s("b",[e._v("File")])]),e._v(" "),s("td",{staticClass:"text-center"},[s("b",[e._v("Settings")])])])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"form-group"},[t("input",{staticClass:"form-control-file",attrs:{id:"file",multiple:"",name:"file",required:"",type:"file"}}),this._v(" "),t("sub",{staticClass:"text-muted"},[this._v("\n          Attach multiple files using Control+Click or Cmd+Click.\n        ")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"form-group"},[t("input",{staticClass:"btn btn-success float-right",attrs:{id:"_submit",name:"_submit",type:"submit",value:"Upload"}})])}];n._withStripped=!0,s.d(t,"a",function(){return n}),s.d(t,"b",function(){return i})},"./CTFd/themes/admin/assets/js/components/files/MediaLibrary.vue":function(e,t,s){s.r(t);var n,i=s("./CTFd/themes/admin/assets/js/components/files/MediaLibrary.vue?vue&type=template&id=50f8d42a&"),a=s("./CTFd/themes/admin/assets/js/components/files/MediaLibrary.vue?vue&type=script&lang=js&");for(n in a)"default"!==n&&function(e){s.d(t,e,function(){return a[e]})}(n);var o=s("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),l=Object(o.a)(a.default,i.a,i.b,!1,null,null,null);l.options.__file="CTFd/themes/admin/assets/js/components/files/MediaLibrary.vue",t.default=l.exports},"./CTFd/themes/admin/assets/js/components/files/MediaLibrary.vue?vue&type=script&lang=js&":function(e,t,s){s.r(t);var n,i=s("./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./CTFd/themes/admin/assets/js/components/files/MediaLibrary.vue?vue&type=script&lang=js&"),a=s.n(i);for(n in i)"default"!==n&&function(e){s.d(t,e,function(){return i[e]})}(n);t.default=a.a},"./CTFd/themes/admin/assets/js/components/files/MediaLibrary.vue?vue&type=template&id=50f8d42a&":function(e,t,s){function n(){var s=this,e=s.$createElement,n=s._self._c||e;return n("div",{staticClass:"modal fade",attrs:{id:"media-modal",tabindex:"-1"}},[n("div",{staticClass:"modal-dialog modal-xl"},[n("div",{staticClass:"modal-content"},[s._m(0),s._v(" "),n("div",{staticClass:"modal-body"},[n("div",{staticClass:"modal-header"},[n("div",{staticClass:"container"},[n("div",{staticClass:"row mh-100"},[n("div",{staticClass:"col-md-6",attrs:{id:"media-library-list"}},s._l(s.files,function(t){return n("div",{key:t.id,staticClass:"media-item-wrapper"},[n("a",{attrs:{href:"javascript:void(0)"},on:{click:function(e){return s.selectFile(t),!1}}},[n("i",{class:s.getIconClass(t.location),attrs:{"aria-hidden":"true"}}),s._v(" "),n("small",{staticClass:"media-item-title"},[s._v(s._s(t.location.split("/").pop()))])])])}),0),s._v(" "),n("div",{staticClass:"col-md-6",attrs:{id:"media-library-details"}},[n("h4",{staticClass:"text-center"},[s._v("Media Details")]),s._v(" "),n("div",{attrs:{id:"media-item"}},[n("div",{staticClass:"text-center",attrs:{id:"media-icon"}},[this.selectedFile?n("div",["far fa-file-image"===s.getIconClass(this.selectedFile.location)?n("div",[n("img",{staticStyle:{"max-width":"100%","max-height":"100%","object-fit":"contain"},attrs:{src:s.buildSelectedFileUrl()}})]):n("div",[n("i",{class:s.getIconClass(this.selectedFile.location)+" fa-4x",attrs:{"aria-hidden":"true"}})])]):s._e()]),s._v(" "),n("br"),s._v(" "),this.selectedFile?n("div",{staticClass:"text-center",attrs:{id:"media-filename"}},[n("a",{attrs:{href:s.buildSelectedFileUrl(),target:"_blank"}},[s._v("\n                      "+s._s(this.selectedFile.location.split("/").pop())+"\n                    ")])]):s._e(),s._v(" "),n("br"),s._v(" "),n("div",{staticClass:"form-group"},[this.selectedFile?n("div",[s._v("\n                      Link:\n                      "),n("input",{staticClass:"form-control",attrs:{type:"text",id:"media-link",readonly:""},domProps:{value:s.buildSelectedFileUrl()}})]):n("div",[s._v("\n                      Link:\n                      "),n("input",{staticClass:"form-control",attrs:{type:"text",id:"media-link",readonly:""}})])]),s._v(" "),n("div",{staticClass:"form-group text-center"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-6"},[n("button",{staticClass:"btn btn-success w-100",attrs:{id:"media-insert","data-toggle":"tooltip","data-placement":"top",title:"Insert link into editor"},on:{click:s.insertSelectedFile}},[s._v("\n                          Insert\n                        ")])]),s._v(" "),n("div",{staticClass:"col-md-3"},[n("button",{staticClass:"btn btn-primary w-100",attrs:{id:"media-download","data-toggle":"tooltip","data-placement":"top",title:"Download file"},on:{click:s.downloadSelectedFile}},[n("i",{staticClass:"fas fa-download"})])]),s._v(" "),n("div",{staticClass:"col-md-3"},[n("button",{staticClass:"btn btn-danger w-100",attrs:{id:"media-delete","data-toggle":"tooltip","data-placement":"top",title:"Delete file"},on:{click:s.deleteSelectedFile}},[n("i",{staticClass:"far fa-trash-alt"})])])])])])])])])]),s._v(" "),s._m(1)]),s._v(" "),n("div",{staticClass:"modal-footer"},[n("div",{staticClass:"float-right"},[n("button",{staticClass:"btn btn-primary media-upload-button",attrs:{type:"submit"},on:{click:s.uploadChosenFiles}},[s._v("\n            Upload\n          ")])])])])])])}var i=[function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"modal-header"},[s("div",{staticClass:"container"},[s("div",{staticClass:"row"},[s("div",{staticClass:"col-md-12"},[s("h3",{staticClass:"text-center"},[e._v("Media Library")])])])]),e._v(" "),s("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"modal","aria-label":"Close"}},[s("span",{attrs:{"aria-hidden":"true"}},[e._v("×")])])])},function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("form",{attrs:{id:"media-library-upload",enctype:"multipart/form-data"}},[s("div",{staticClass:"form-group"},[s("label",{attrs:{for:"media-files"}},[e._v("\n              Upload Files\n            ")]),e._v(" "),s("input",{staticClass:"form-control-file",attrs:{type:"file",name:"file",id:"media-files",multiple:""}}),e._v(" "),s("sub",{staticClass:"help-block"},[e._v("\n              Attach multiple files using Control+Click or Cmd+Click.\n            ")])]),e._v(" "),s("input",{attrs:{type:"hidden",value:"page",name:"type"}})])}];n._withStripped=!0,s.d(t,"a",function(){return n}),s.d(t,"b",function(){return i})},"./CTFd/themes/admin/assets/js/components/flags/FlagCreationForm.vue":function(e,t,s){s.r(t);var n,i=s("./CTFd/themes/admin/assets/js/components/flags/FlagCreationForm.vue?vue&type=template&id=792ae773&scoped=true&"),a=s("./CTFd/themes/admin/assets/js/components/flags/FlagCreationForm.vue?vue&type=script&lang=js&");for(n in a)"default"!==n&&function(e){s.d(t,e,function(){return a[e]})}(n);var o=s("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),l=Object(o.a)(a.default,i.a,i.b,!1,null,"792ae773",null);l.options.__file="CTFd/themes/admin/assets/js/components/flags/FlagCreationForm.vue",t.default=l.exports},"./CTFd/themes/admin/assets/js/components/flags/FlagCreationForm.vue?vue&type=script&lang=js&":function(e,t,s){s.r(t);var n,i=s("./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./CTFd/themes/admin/assets/js/components/flags/FlagCreationForm.vue?vue&type=script&lang=js&"),a=s.n(i);for(n in i)"default"!==n&&function(e){s.d(t,e,function(){return i[e]})}(n);t.default=a.a},"./CTFd/themes/admin/assets/js/components/flags/FlagCreationForm.vue?vue&type=template&id=792ae773&scoped=true&":function(e,t,s){function n(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"modal fade",attrs:{id:"flag-create-modal",tabindex:"-1"}},[s("div",{staticClass:"modal-dialog modal-lg"},[s("div",{staticClass:"modal-content"},[t._m(0),t._v(" "),s("div",{staticClass:"modal-body"},[s("div",{staticClass:"create-keys-select-div"},[s("label",{staticClass:"control-label",attrs:{for:"create-keys-select"}},[t._v("\n            Choose Flag Type\n          ")]),t._v(" "),s("select",{staticClass:"form-control custom-select",on:{change:function(e){return t.selectType(e)}}},[s("option",[t._v(" -- ")]),t._v(" "),t._l(Object.keys(t.types),function(e){return s("option",{key:e,domProps:{value:e}},[t._v(t._s(e))])})],2)]),t._v(" "),s("br"),t._v(" "),s("form",{on:{submit:function(e){return e.preventDefault(),t.submitFlag(e)}}},[s("div",{attrs:{id:"create-flag-form"},domProps:{innerHTML:t._s(t.createForm)}}),t._v(" "),t.createForm?s("button",{staticClass:"btn btn-success float-right",attrs:{type:"submit"}},[t._v("\n            Create Flag\n          ")]):t._e()])])])])])}var i=[function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"modal-header text-center"},[s("div",{staticClass:"container"},[s("div",{staticClass:"row"},[s("div",{staticClass:"col-md-12"},[s("h3",[e._v("Create Flag")])])])]),e._v(" "),s("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"modal","aria-label":"Close"}},[s("span",{attrs:{"aria-hidden":"true"}},[e._v("×")])])])}];n._withStripped=!0,s.d(t,"a",function(){return n}),s.d(t,"b",function(){return i})},"./CTFd/themes/admin/assets/js/components/flags/FlagEditForm.vue":function(e,t,s){s.r(t);var n,i=s("./CTFd/themes/admin/assets/js/components/flags/FlagEditForm.vue?vue&type=template&id=001f579e&scoped=true&"),a=s("./CTFd/themes/admin/assets/js/components/flags/FlagEditForm.vue?vue&type=script&lang=js&");for(n in a)"default"!==n&&function(e){s.d(t,e,function(){return a[e]})}(n);var o=s("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),l=Object(o.a)(a.default,i.a,i.b,!1,null,"001f579e",null);l.options.__file="CTFd/themes/admin/assets/js/components/flags/FlagEditForm.vue",t.default=l.exports},"./CTFd/themes/admin/assets/js/components/flags/FlagEditForm.vue?vue&type=script&lang=js&":function(e,t,s){s.r(t);var n,i=s("./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./CTFd/themes/admin/assets/js/components/flags/FlagEditForm.vue?vue&type=script&lang=js&"),a=s.n(i);for(n in i)"default"!==n&&function(e){s.d(t,e,function(){return i[e]})}(n);t.default=a.a},"./CTFd/themes/admin/assets/js/components/flags/FlagEditForm.vue?vue&type=template&id=001f579e&scoped=true&":function(e,t,s){function n(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"modal fade",attrs:{id:"flag-edit-modal",tabindex:"-1"}},[s("div",{staticClass:"modal-dialog modal-lg"},[s("div",{staticClass:"modal-content"},[t._m(0),t._v(" "),s("div",{staticClass:"modal-body"},[s("form",{attrs:{method:"POST"},domProps:{innerHTML:t._s(t.editForm)},on:{submit:function(e){return e.preventDefault(),t.updateFlag(e)}}})])])])])}var i=[function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"modal-header text-center"},[s("div",{staticClass:"container"},[s("div",{staticClass:"row"},[s("div",{staticClass:"col-md-12"},[s("h3",{staticClass:"text-center"},[e._v("Edit Flag")])])])]),e._v(" "),s("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"modal","aria-label":"Close"}},[s("span",{attrs:{"aria-hidden":"true"}},[e._v("×")])])])}];n._withStripped=!0,s.d(t,"a",function(){return n}),s.d(t,"b",function(){return i})},"./CTFd/themes/admin/assets/js/components/flags/FlagList.vue":function(e,t,s){s.r(t);var n,i=s("./CTFd/themes/admin/assets/js/components/flags/FlagList.vue?vue&type=template&id=5e2d224e&scoped=true&"),a=s("./CTFd/themes/admin/assets/js/components/flags/FlagList.vue?vue&type=script&lang=js&");for(n in a)"default"!==n&&function(e){s.d(t,e,function(){return a[e]})}(n);var o=s("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),l=Object(o.a)(a.default,i.a,i.b,!1,null,"5e2d224e",null);l.options.__file="CTFd/themes/admin/assets/js/components/flags/FlagList.vue",t.default=l.exports},"./CTFd/themes/admin/assets/js/components/flags/FlagList.vue?vue&type=script&lang=js&":function(e,t,s){s.r(t);var n,i=s("./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./CTFd/themes/admin/assets/js/components/flags/FlagList.vue?vue&type=script&lang=js&"),a=s.n(i);for(n in i)"default"!==n&&function(e){s.d(t,e,function(){return i[e]})}(n);t.default=a.a},"./CTFd/themes/admin/assets/js/components/flags/FlagList.vue?vue&type=template&id=5e2d224e&scoped=true&":function(e,t,s){function n(){var s=this,e=s.$createElement,n=s._self._c||e;return n("div",[n("div",[n("FlagCreationForm",{ref:"FlagCreationForm",attrs:{challenge_id:s.challenge_id},on:{refreshFlags:s.refreshFlags}})],1),s._v(" "),n("div",[n("FlagEditForm",{ref:"FlagEditForm",attrs:{flag_id:s.editing_flag_id},on:{refreshFlags:s.refreshFlags}})],1),s._v(" "),n("table",{staticClass:"table table-striped",attrs:{id:"flagsboard"}},[s._m(0),s._v(" "),n("tbody",s._l(s.flags,function(t){return n("tr",{key:t.id,attrs:{name:t.id}},[n("td",{staticClass:"text-center"},[s._v(s._s(t.type))]),s._v(" "),n("td",{staticClass:"text-break"},[n("pre",{staticClass:"flag-content"},[s._v(s._s(t.content))])]),s._v(" "),n("td",{staticClass:"text-center"},[n("i",{staticClass:"btn-fa fas fa-edit edit-flag",attrs:{role:"button","flag-id":t.id,"flag-type":t.type},on:{click:function(e){return s.editFlag(t.id)}}}),s._v(" "),n("i",{staticClass:"btn-fa fas fa-times delete-flag",attrs:{role:"button","flag-id":t.id},on:{click:function(e){return s.deleteFlag(t.id)}}})])])}),0)]),s._v(" "),n("div",{staticClass:"col-md-12"},[n("button",{staticClass:"btn btn-success d-inline-block float-right",attrs:{id:"flag-add-button"},on:{click:function(e){return s.addFlag()}}},[s._v("\n      Create Flag\n    ")])])])}var i=[function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("thead",[s("tr",[s("td",{staticClass:"text-center"},[s("b",[e._v("Type")])]),e._v(" "),s("td",{staticClass:"text-center"},[s("b",[e._v("Flag")])]),e._v(" "),s("td",{staticClass:"text-center"},[s("b",[e._v("Settings")])])])])}];n._withStripped=!0,s.d(t,"a",function(){return n}),s.d(t,"b",function(){return i})},"./CTFd/themes/admin/assets/js/components/hints/HintCreationForm.vue":function(e,t,s){s.r(t);var n,i=s("./CTFd/themes/admin/assets/js/components/hints/HintCreationForm.vue?vue&type=template&id=099a0d2e&scoped=true&"),a=s("./CTFd/themes/admin/assets/js/components/hints/HintCreationForm.vue?vue&type=script&lang=js&");for(n in a)"default"!==n&&function(e){s.d(t,e,function(){return a[e]})}(n);var o=s("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),l=Object(o.a)(a.default,i.a,i.b,!1,null,"099a0d2e",null);l.options.__file="CTFd/themes/admin/assets/js/components/hints/HintCreationForm.vue",t.default=l.exports},"./CTFd/themes/admin/assets/js/components/hints/HintCreationForm.vue?vue&type=script&lang=js&":function(e,t,s){s.r(t);var n,i=s("./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./CTFd/themes/admin/assets/js/components/hints/HintCreationForm.vue?vue&type=script&lang=js&"),a=s.n(i);for(n in i)"default"!==n&&function(e){s.d(t,e,function(){return i[e]})}(n);t.default=a.a},"./CTFd/themes/admin/assets/js/components/hints/HintCreationForm.vue?vue&type=template&id=099a0d2e&scoped=true&":function(e,t,s){function n(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"modal fade",attrs:{tabindex:"-1"}},[s("div",{staticClass:"modal-dialog"},[s("div",{staticClass:"modal-content"},[t._m(0),t._v(" "),s("form",{attrs:{method:"POST"},on:{submit:function(e){return e.preventDefault(),t.submitHint(e)}}},[s("div",{staticClass:"modal-body"},[s("div",{staticClass:"container"},[s("div",{staticClass:"row"},[s("div",{staticClass:"col-md-12"},[s("div",{staticClass:"form-group"},[t._m(1),t._v(" "),s("textarea",{ref:"content",staticClass:"form-control markdown",attrs:{type:"text",name:"content",rows:"7"}})]),t._v(" "),s("div",{staticClass:"form-group"},[t._m(2),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model.lazy",value:t.cost,expression:"cost",modifiers:{lazy:!0}}],staticClass:"form-control",attrs:{type:"number",name:"cost"},domProps:{value:t.cost},on:{change:function(e){t.cost=e.target.value}}})]),t._v(" "),s("input",{attrs:{type:"hidden",id:"hint-id-for-hint",name:"id"}})])])])]),t._v(" "),t._m(3)])])])])}var i=[function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"modal-header text-center"},[s("div",{staticClass:"container"},[s("div",{staticClass:"row"},[s("div",{staticClass:"col-md-12"},[s("h3",[e._v("Hint")])])])]),e._v(" "),s("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"modal","aria-label":"Close"}},[s("span",{attrs:{"aria-hidden":"true"}},[e._v("×")])])])},function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("label",{staticClass:"text-muted"},[e._v("\n                    Hint"),s("br"),e._v(" "),s("small",[e._v("Markdown & HTML are supported")])])},function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("label",[e._v("\n                    Cost"),s("br"),e._v(" "),s("small",[e._v("How many points it costs to see your hint.")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"modal-footer"},[t("div",{staticClass:"container"},[t("div",{staticClass:"row"},[t("div",{staticClass:"col-md-12"},[t("button",{staticClass:"btn btn-primary float-right"},[this._v("Submit")])])])])])}];n._withStripped=!0,s.d(t,"a",function(){return n}),s.d(t,"b",function(){return i})},"./CTFd/themes/admin/assets/js/components/hints/HintEditForm.vue":function(e,t,s){s.r(t);var n,i=s("./CTFd/themes/admin/assets/js/components/hints/HintEditForm.vue?vue&type=template&id=66bad494&scoped=true&"),a=s("./CTFd/themes/admin/assets/js/components/hints/HintEditForm.vue?vue&type=script&lang=js&");for(n in a)"default"!==n&&function(e){s.d(t,e,function(){return a[e]})}(n);var o=s("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),l=Object(o.a)(a.default,i.a,i.b,!1,null,"66bad494",null);l.options.__file="CTFd/themes/admin/assets/js/components/hints/HintEditForm.vue",t.default=l.exports},"./CTFd/themes/admin/assets/js/components/hints/HintEditForm.vue?vue&type=script&lang=js&":function(e,t,s){s.r(t);var n,i=s("./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./CTFd/themes/admin/assets/js/components/hints/HintEditForm.vue?vue&type=script&lang=js&"),a=s.n(i);for(n in i)"default"!==n&&function(e){s.d(t,e,function(){return i[e]})}(n);t.default=a.a},"./CTFd/themes/admin/assets/js/components/hints/HintEditForm.vue?vue&type=template&id=66bad494&scoped=true&":function(e,t,s){function n(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"modal fade",attrs:{tabindex:"-1"}},[s("div",{staticClass:"modal-dialog"},[s("div",{staticClass:"modal-content"},[t._m(0),t._v(" "),s("form",{attrs:{method:"POST"},on:{submit:function(e){return e.preventDefault(),t.updateHint(e)}}},[s("div",{staticClass:"modal-body"},[s("div",{staticClass:"container"},[s("div",{staticClass:"row"},[s("div",{staticClass:"col-md-12"},[s("div",{staticClass:"form-group"},[t._m(1),t._v(" "),s("textarea",{ref:"content",staticClass:"form-control",attrs:{type:"text",name:"content",rows:"7"},domProps:{value:this.content}})]),t._v(" "),s("div",{staticClass:"form-group"},[t._m(2),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model.lazy",value:t.cost,expression:"cost",modifiers:{lazy:!0}}],staticClass:"form-control",attrs:{type:"number",name:"cost"},domProps:{value:t.cost},on:{change:function(e){t.cost=e.target.value}}})])])])])]),t._v(" "),t._m(3)])])])])}var i=[function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"modal-header text-center"},[s("div",{staticClass:"container"},[s("div",{staticClass:"row"},[s("div",{staticClass:"col-md-12"},[s("h3",[e._v("Hint")])])])]),e._v(" "),s("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"modal","aria-label":"Close"}},[s("span",{attrs:{"aria-hidden":"true"}},[e._v("×")])])])},function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("label",{staticClass:"text-muted"},[e._v("\n                    Hint"),s("br"),e._v(" "),s("small",[e._v("Markdown & HTML are supported")])])},function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("label",[e._v("\n                    Cost"),s("br"),e._v(" "),s("small",[e._v("How many points it costs to see your hint.")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"modal-footer"},[t("div",{staticClass:"container"},[t("div",{staticClass:"row"},[t("div",{staticClass:"col-md-12"},[t("button",{staticClass:"btn btn-primary float-right"},[this._v("Submit")])])])])])}];n._withStripped=!0,s.d(t,"a",function(){return n}),s.d(t,"b",function(){return i})},"./CTFd/themes/admin/assets/js/components/hints/HintsList.vue":function(e,t,s){s.r(t);var n,i=s("./CTFd/themes/admin/assets/js/components/hints/HintsList.vue?vue&type=template&id=7b4dbcca&scoped=true&"),a=s("./CTFd/themes/admin/assets/js/components/hints/HintsList.vue?vue&type=script&lang=js&");for(n in a)"default"!==n&&function(e){s.d(t,e,function(){return a[e]})}(n);var o=s("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),l=Object(o.a)(a.default,i.a,i.b,!1,null,"7b4dbcca",null);l.options.__file="CTFd/themes/admin/assets/js/components/hints/HintsList.vue",t.default=l.exports},"./CTFd/themes/admin/assets/js/components/hints/HintsList.vue?vue&type=script&lang=js&":function(e,t,s){s.r(t);var n,i=s("./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./CTFd/themes/admin/assets/js/components/hints/HintsList.vue?vue&type=script&lang=js&"),a=s.n(i);for(n in i)"default"!==n&&function(e){s.d(t,e,function(){return i[e]})}(n);t.default=a.a},"./CTFd/themes/admin/assets/js/components/hints/HintsList.vue?vue&type=template&id=7b4dbcca&scoped=true&":function(e,t,s){function n(){var s=this,e=s.$createElement,n=s._self._c||e;return n("div",[n("div",[n("HintCreationForm",{ref:"HintCreationForm",attrs:{challenge_id:s.challenge_id},on:{refreshHints:s.refreshHints}})],1),s._v(" "),n("div",[n("HintEditForm",{ref:"HintEditForm",attrs:{hint_id:s.editing_hint_id},on:{refreshHints:s.refreshHints}})],1),s._v(" "),n("table",{staticClass:"table table-striped"},[s._m(0),s._v(" "),n("tbody",s._l(s.hints,function(t){return n("tr",{key:t.id},[n("td",{staticClass:"text-center"},[s._v(s._s(t.type))]),s._v(" "),n("td",{staticClass:"text-break"},[n("pre",[s._v(s._s(t.content))])]),s._v(" "),n("td",{staticClass:"text-center"},[s._v(s._s(t.cost))]),s._v(" "),n("td",{staticClass:"text-center"},[n("i",{staticClass:"btn-fa fas fa-edit",attrs:{role:"button"},on:{click:function(e){return s.editHint(t.id)}}}),s._v(" "),n("i",{staticClass:"btn-fa fas fa-times",attrs:{role:"button"},on:{click:function(e){return s.deleteHint(t.id)}}})])])}),0)]),s._v(" "),n("div",{staticClass:"col-md-12"},[n("button",{staticClass:"btn btn-success float-right",on:{click:s.addHint}},[s._v("\n      Create Hint\n    ")])])])}var i=[function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("thead",[s("tr",[s("td",{staticClass:"text-center"},[s("b",[e._v("ID")])]),e._v(" "),s("td",{staticClass:"text-center"},[s("b",[e._v("Hint")])]),e._v(" "),s("td",{staticClass:"text-center"},[s("b",[e._v("Cost")])]),e._v(" "),s("td",{staticClass:"text-center"},[s("b",[e._v("Settings")])])])])}];n._withStripped=!0,s.d(t,"a",function(){return n}),s.d(t,"b",function(){return i})},"./CTFd/themes/admin/assets/js/components/notifications/Notification.vue":function(e,t,s){s.r(t);var n,i=s("./CTFd/themes/admin/assets/js/components/notifications/Notification.vue?vue&type=template&id=e5ef5b64&"),a=s("./CTFd/themes/admin/assets/js/components/notifications/Notification.vue?vue&type=script&lang=js&");for(n in a)"default"!==n&&function(e){s.d(t,e,function(){return a[e]})}(n);var o=s("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),l=Object(o.a)(a.default,i.a,i.b,!1,null,null,null);l.options.__file="CTFd/themes/admin/assets/js/components/notifications/Notification.vue",t.default=l.exports},"./CTFd/themes/admin/assets/js/components/notifications/Notification.vue?vue&type=script&lang=js&":function(e,t,s){s.r(t);var n,i=s("./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./CTFd/themes/admin/assets/js/components/notifications/Notification.vue?vue&type=script&lang=js&"),a=s.n(i);for(n in i)"default"!==n&&function(e){s.d(t,e,function(){return i[e]})}(n);t.default=a.a},"./CTFd/themes/admin/assets/js/components/notifications/Notification.vue?vue&type=template&id=e5ef5b64&":function(e,t,s){function n(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"card bg-light mb-4"},[s("button",{staticClass:"delete-notification close position-absolute p-3",staticStyle:{right:"0"},attrs:{type:"button","data-notif-id":this.id,"data-dismiss":"alert","aria-label":"Close"},on:{click:function(e){return t.deleteNotification()}}},[s("span",{attrs:{"aria-hidden":"true"}},[t._v("×")])]),t._v(" "),s("div",{staticClass:"card-body"},[s("h3",{staticClass:"card-title"},[t._v(t._s(t.title))]),t._v(" "),s("blockquote",{staticClass:"blockquote mb-0"},[s("p",{domProps:{innerHTML:t._s(this.html)}}),t._v(" "),s("small",{staticClass:"text-muted"},[s("span",{attrs:{"data-time":this.date}},[t._v(t._s(this.localDate()))])])])])])}var i=[];n._withStripped=!0,s.d(t,"a",function(){return n}),s.d(t,"b",function(){return i})},"./CTFd/themes/admin/assets/js/components/requirements/Requirements.vue":function(e,t,s){s.r(t);var n,i=s("./CTFd/themes/admin/assets/js/components/requirements/Requirements.vue?vue&type=template&id=f3bc9efa&scoped=true&"),a=s("./CTFd/themes/admin/assets/js/components/requirements/Requirements.vue?vue&type=script&lang=js&");for(n in a)"default"!==n&&function(e){s.d(t,e,function(){return a[e]})}(n);var o=s("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),l=Object(o.a)(a.default,i.a,i.b,!1,null,"f3bc9efa",null);l.options.__file="CTFd/themes/admin/assets/js/components/requirements/Requirements.vue",t.default=l.exports},"./CTFd/themes/admin/assets/js/components/requirements/Requirements.vue?vue&type=script&lang=js&":function(e,t,s){s.r(t);var n,i=s("./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./CTFd/themes/admin/assets/js/components/requirements/Requirements.vue?vue&type=script&lang=js&"),a=s.n(i);for(n in i)"default"!==n&&function(e){s.d(t,e,function(){return i[e]})}(n);t.default=a.a},"./CTFd/themes/admin/assets/js/components/requirements/Requirements.vue?vue&type=template&id=f3bc9efa&scoped=true&":function(e,t,s){function n(){var s=this,e=s.$createElement,n=s._self._c||e;return n("div",[n("table",{staticClass:"table table-striped text-center"},[s._m(0),s._v(" "),n("tbody",{attrs:{id:"challenge-solves-body"}},s._l(s.requirements.prerequisites,function(t){return n("tr",{key:t},[n("td",[s._v(s._s(s.getChallengeNameById(t)))]),s._v(" "),n("td",[n("i",{staticClass:"btn-fa fas fa-times delete-requirement",attrs:{role:"button","challenge-id":t},on:{click:function(e){return s.removeRequirement(t)}}})])])}),0)]),s._v(" "),n("form",{on:{submit:function(e){return e.preventDefault(),s.addRequirement(e)}}},[n("div",{staticClass:"form-group"},[n("select",{directives:[{name:"model",rawName:"v-model",value:s.selectedRequirement,expression:"selectedRequirement"}],staticClass:"form-control custom-select",attrs:{name:"prerequisite"},on:{change:function(e){var t=Array.prototype.filter.call(e.target.options,function(e){return e.selected}).map(function(e){return"_value"in e?e._value:e.value});s.selectedRequirement=e.target.multiple?t:t[0]}}},[n("option",{attrs:{value:""}},[s._v(" -- ")]),s._v(" "),s._l(s.otherChallenges,function(e){return n("option",{key:e.id,domProps:{value:e.id}},[s._v("\n          "+s._s(e.name)+"\n        ")])})],2)]),s._v(" "),n("div",{staticClass:"form-group"},[n("button",{staticClass:"btn btn-success float-right",attrs:{disabled:!s.selectedRequirement}},[s._v("\n        Add Prerequisite\n      ")])])])])}var i=[function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("thead",[s("tr",[s("td",[s("b",[e._v("Requirement")])]),e._v(" "),s("td",[s("b",[e._v("Settings")])])])])}];n._withStripped=!0,s.d(t,"a",function(){return n}),s.d(t,"b",function(){return i})},"./CTFd/themes/admin/assets/js/components/tags/TagsList.vue":function(e,t,s){s.r(t);var n,i=s("./CTFd/themes/admin/assets/js/components/tags/TagsList.vue?vue&type=template&id=07656d61&scoped=true&"),a=s("./CTFd/themes/admin/assets/js/components/tags/TagsList.vue?vue&type=script&lang=js&");for(n in a)"default"!==n&&function(e){s.d(t,e,function(){return a[e]})}(n);var o=s("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),l=Object(o.a)(a.default,i.a,i.b,!1,null,"07656d61",null);l.options.__file="CTFd/themes/admin/assets/js/components/tags/TagsList.vue",t.default=l.exports},"./CTFd/themes/admin/assets/js/components/tags/TagsList.vue?vue&type=script&lang=js&":function(e,t,s){s.r(t);var n,i=s("./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./CTFd/themes/admin/assets/js/components/tags/TagsList.vue?vue&type=script&lang=js&"),a=s.n(i);for(n in i)"default"!==n&&function(e){s.d(t,e,function(){return i[e]})}(n);t.default=a.a},"./CTFd/themes/admin/assets/js/components/tags/TagsList.vue?vue&type=template&id=07656d61&scoped=true&":function(e,t,s){function n(){var s=this,e=s.$createElement,n=s._self._c||e;return n("div",{staticClass:"col-md-12"},[n("div",{staticClass:"my-3",attrs:{id:"challenge-tags"}},s._l(s.tags,function(t){return n("span",{key:t.id,staticClass:"badge badge-primary mx-1 challenge-tag"},[n("span",[s._v(s._s(t.value))]),s._v(" "),n("a",{staticClass:"btn-fa delete-tag",on:{click:function(e){return s.deleteTag(t.id)}}},[s._v(" ×")])])}),0),s._v(" "),n("div",{staticClass:"form-group"},[s._m(0),s._v(" "),n("input",{directives:[{name:"model",rawName:"v-model.lazy",value:s.tagValue,expression:"tagValue",modifiers:{lazy:!0}}],staticClass:"form-control",attrs:{id:"tags-add-input",maxlength:"80",type:"text"},domProps:{value:s.tagValue},on:{keyup:function(e){return!e.type.indexOf("key")&&s._k(e.keyCode,"enter",13,e.key,"Enter")?null:s.addTag()},change:function(e){s.tagValue=e.target.value}}})])])}var i=[function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("label",[e._v("Tag\n      "),s("br"),e._v(" "),s("small",{staticClass:"text-muted"},[e._v("Type tag and press Enter")])])}];n._withStripped=!0,s.d(t,"a",function(){return n}),s.d(t,"b",function(){return i})},"./CTFd/themes/admin/assets/js/components/teams/UserAddForm.vue":function(e,t,s){s.r(t);var n,i=s("./CTFd/themes/admin/assets/js/components/teams/UserAddForm.vue?vue&type=template&id=84c1b916&scoped=true&"),a=s("./CTFd/themes/admin/assets/js/components/teams/UserAddForm.vue?vue&type=script&lang=js&");for(n in a)"default"!==n&&function(e){s.d(t,e,function(){return a[e]})}(n);var o=s("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),l=Object(o.a)(a.default,i.a,i.b,!1,null,"84c1b916",null);l.options.__file="CTFd/themes/admin/assets/js/components/teams/UserAddForm.vue",t.default=l.exports},"./CTFd/themes/admin/assets/js/components/teams/UserAddForm.vue?vue&type=script&lang=js&":function(e,t,s){s.r(t);var n,i=s("./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./CTFd/themes/admin/assets/js/components/teams/UserAddForm.vue?vue&type=script&lang=js&"),a=s.n(i);for(n in i)"default"!==n&&function(e){s.d(t,e,function(){return i[e]})}(n);t.default=a.a},"./CTFd/themes/admin/assets/js/components/teams/UserAddForm.vue?vue&type=template&id=84c1b916&scoped=true&":function(e,t,s){function n(){var s=this,e=s.$createElement,n=s._self._c||e;return n("div",[n("div",{staticClass:"form-group"},[n("label",[s._v("Search Users")]),s._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:s.searchedName,expression:"searchedName"}],staticClass:"form-control",attrs:{type:"text",placeholder:"Search for users"},domProps:{value:s.searchedName},on:{keyup:[function(e){return!e.type.indexOf("key")&&s._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"])?null:s.moveCursor("down")},function(e){return!e.type.indexOf("key")&&s._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"])?null:s.moveCursor("up")},function(e){return!e.type.indexOf("key")&&s._k(e.keyCode,"enter",13,e.key,"Enter")?null:s.selectUser()}],input:function(e){e.target.composing||(s.searchedName=e.target.value)}}})]),s._v(" "),n("div",{staticClass:"form-group"},s._l(s.selectedUsers,function(t){return n("span",{key:t.id,staticClass:"badge badge-primary mr-1"},[s._v("\n      "+s._s(t.name)+"\n      "),n("a",{staticClass:"btn-fa",on:{click:function(e){return s.removeSelectedUser(t.id)}}},[s._v(" ×")])])}),0),s._v(" "),n("div",{staticClass:"form-group"},[0==s.userResults.length&&""!=this.searchedName&&0==s.awaitingSearch?n("div",{staticClass:"text-center"},[n("span",{staticClass:"text-muted"},[s._v("\n        No users found\n      ")])]):s._e(),s._v(" "),n("ul",{staticClass:"list-group"},s._l(s.userResults,function(e,t){return n("li",{key:e.id,class:{"list-group-item":!0,active:t===s.selectedResultIdx},on:{click:function(e){return s.selectUser(t)}}},[s._v("\n        "+s._s(e.name)+"\n        "),e.team_id?n("small",{class:{"float-right":!0,"text-white":t===s.selectedResultIdx,"text-muted":t!==s.selectedResultIdx}},[s._v("\n          already in a team\n        ")]):s._e()])}),0)]),s._v(" "),n("div",{staticClass:"form-group"},[n("button",{staticClass:"btn btn-success d-inline-block float-right",on:{click:function(e){return s.addUsers()}}},[s._v("\n      Add Users\n    ")])])])}var i=[];n._withStripped=!0,s.d(t,"a",function(){return n}),s.d(t,"b",function(){return i})},"./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./CTFd/themes/admin/assets/js/components/comments/CommentBox.vue?vue&type=script&lang=js&":function(e,t,s){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=l(s("./CTFd/themes/core/assets/js/CTFd.js")),i=l(s("./CTFd/themes/core/assets/js/helpers.js")),a=l(s("./node_modules/dayjs/dayjs.min.js")),o=l(s("./node_modules/highlight.js/lib/index.js"));function l(e){return e&&e.__esModule?e:{default:e}}var d={props:{type:String,id:Number},data:function(){return{page:1,pages:null,next:null,prev:null,total:null,comment:"",comments:[],urlRoot:n.default.config.urlRoot}},methods:{toLocalTime:function(e){return(0,a.default)(e).format("MMMM Do, h:mm:ss A")},nextPage:function(){this.page++,this.loadComments()},prevPage:function(){this.page--,this.loadComments()},getArgs:function(){var e={};return e["".concat(this.$props.type,"_id")]=this.$props.id,e},loadComments:function(){var t=this,e=this.getArgs();e.page=this.page,e.per_page=10,i.default.comments.get_comments(e).then(function(e){return t.page=e.meta.pagination.page,t.pages=e.meta.pagination.pages,t.next=e.meta.pagination.next,t.prev=e.meta.pagination.prev,t.total=e.meta.pagination.total,t.comments=e.data,t.comments})},submitComment:function(){var e=this,t=this.comment.trim();0<t.length&&i.default.comments.add_comment(t,this.$props.type,this.getArgs(),function(){e.loadComments()}),this.comment=""},deleteComment:function(s){var n=this;confirm("Are you sure you'd like to delete this comment?")&&i.default.comments.delete_comment(s).then(function(e){if(!0===e.success)for(var t=n.comments.length-1;0<=t;--t)n.comments[t].id==s&&n.comments.splice(t,1)})}},created:function(){this.loadComments()},updated:function(){this.$el.querySelectorAll("pre code").forEach(function(e){o.default.highlightBlock(e)})}};t.default=d},"./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./CTFd/themes/admin/assets/js/components/configs/fields/Field.vue?vue&type=script&lang=js&":function(e,t,s){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i=(n=s("./CTFd/themes/core/assets/js/CTFd.js"))&&n.__esModule?n:{default:n},a=s("./CTFd/themes/core/assets/js/ezq.js");var o={props:{index:Number,initialField:Object},data:function(){return{field:this.initialField}},methods:{persistedField:function(){return 1<=this.field.id},saveField:function(){var t=this,e=this.field;this.persistedField()?i.default.fetch("/api/v1/configs/fields/".concat(this.field.id),{method:"PATCH",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(e)}).then(function(e){return e.json()}).then(function(e){!0===e.success&&(t.field=e.data,(0,a.ezToast)({title:"Success",body:"Field has been updated!",delay:1e3}))}):i.default.fetch("/api/v1/configs/fields",{method:"POST",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(e)}).then(function(e){return e.json()}).then(function(e){!0===e.success&&(t.field=e.data,(0,a.ezToast)({title:"Success",body:"Field has been created!",delay:1e3}))})},deleteField:function(){var t=this;confirm("Are you sure you'd like to delete this field?")&&(this.persistedField()?i.default.fetch("/api/v1/configs/fields/".concat(this.field.id),{method:"DELETE",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"}}).then(function(e){return e.json()}).then(function(e){!0===e.success&&t.$emit("remove-field",t.index)}):this.$emit("remove-field",this.index))}}};t.default=o},"./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./CTFd/themes/admin/assets/js/components/configs/fields/FieldList.vue?vue&type=script&lang=js&":function(e,t,s){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(s("./CTFd/themes/core/assets/js/CTFd.js"));function i(e){return e&&e.__esModule?e:{default:e}}var a={name:"FieldList",components:{Field:i(s("./CTFd/themes/admin/assets/js/components/configs/fields/Field.vue")).default},props:{type:String},data:function(){return{fields:[]}},methods:{loadFields:function(){var t=this;n.default.fetch("/api/v1/configs/fields?type=".concat(this.type),{method:"GET",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"}}).then(function(e){return e.json()}).then(function(e){t.fields=e.data})},addField:function(){this.fields.push({id:Math.random(),type:this.type,field_type:"text",name:"",description:"",editable:!1,required:!1,public:!1})},removeField:function(e){this.fields.splice(e,1)}},created:function(){this.loadFields()}};t.default=a},"./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./CTFd/themes/admin/assets/js/components/files/ChallengeFilesList.vue?vue&type=script&lang=js&":function(e,t,s){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=s("./CTFd/themes/core/assets/js/ezq.js"),i=o(s("./CTFd/themes/core/assets/js/helpers.js")),a=o(s("./CTFd/themes/core/assets/js/CTFd.js"));function o(e){return e&&e.__esModule?e:{default:e}}var l={props:{challenge_id:Number},data:function(){return{files:[],urlRoot:a.default.config.urlRoot}},methods:{loadFiles:function(){var t=this;a.default.fetch("/api/v1/challenges/".concat(this.$props.challenge_id,"/files"),{method:"GET"}).then(function(e){return e.json()}).then(function(e){e.success&&(t.files=e.data)})},addFiles:function(){var t=this,e={challenge:this.$props.challenge_id,type:"challenge"},s=this.$refs.FileUploadForm;i.default.files.upload(s,e,function(e){setTimeout(function(){t.loadFiles()},700)})},deleteFile:function(e){var t=this;(0,n.ezQuery)({title:"Delete Files",body:"Are you sure you want to delete this file?",success:function(){a.default.fetch("/api/v1/files/".concat(e),{method:"DELETE"}).then(function(e){return e.json()}).then(function(e){e.success&&t.loadFiles()})}})}},created:function(){this.loadFiles()}};t.default=l},"./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./CTFd/themes/admin/assets/js/components/files/MediaLibrary.vue?vue&type=script&lang=js&":function(e,t,s){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(s("./CTFd/themes/core/assets/js/CTFd.js")),i=(s("./CTFd/themes/core/assets/js/ezq.js"),a(s("./CTFd/themes/core/assets/js/helpers.js")));function a(e){return e&&e.__esModule?e:{default:e}}var o={props:{editor:Object},data:function(){return{files:[],selectedFile:null}},methods:{getPageFiles:function(){var t=this;n.default.fetch("/api/v1/files?type=page",{credentials:"same-origin"}).then(function(e){return e.json()}).then(function(e){return t.files=e.data,t.files})},uploadChosenFiles:function(){var t=this,e=document.querySelector("#media-library-upload");i.default.files.upload(e,{},function(e){t.getPageFiles()})},selectFile:function(e){return this.selectedFile=e,this.selectedFile},buildSelectedFileUrl:function(){return n.default.config.urlRoot+"/files/"+this.selectedFile.location},deleteSelectedFile:function(){var t=this,e=this.selectedFile.id;confirm("Are you sure you want to delete this file?")&&n.default.fetch("/api/v1/files/"+e,{method:"DELETE"}).then(function(e){200===e.status&&e.json().then(function(e){e.success&&(t.getPageFiles(),t.selectedFile=null)})})},insertSelectedFile:function(){var e=this.$props.editor;e.hasOwnProperty("codemirror")&&(e=e.codemirror);var t=e.getDoc(),s=t.getCursor(),n=this.buildSelectedFileUrl(),i="far fa-file-image"===this.getIconClass(this.selectedFile.location),a=n.split("/").pop();link="[{0}]({1})".format(a,n),i&&(link="!"+link),t.replaceRange(link,s)},downloadSelectedFile:function(){var e=this.buildSelectedFileUrl();window.open(e,"_blank")},getIconClass:function(e){return{png:"far fa-file-image",jpg:"far fa-file-image",jpeg:"far fa-file-image",gif:"far fa-file-image",bmp:"far fa-file-image",svg:"far fa-file-image",txt:"far fa-file-alt",mov:"far fa-file-video",mp4:"far fa-file-video",wmv:"far fa-file-video",flv:"far fa-file-video",mkv:"far fa-file-video",avi:"far fa-file-video",pdf:"far fa-file-pdf",mp3:"far fa-file-sound",wav:"far fa-file-sound",aac:"far fa-file-sound",zip:"far fa-file-archive",gz:"far fa-file-archive",tar:"far fa-file-archive","7z":"far fa-file-archive",rar:"far fa-file-archive",py:"far fa-file-code",c:"far fa-file-code",cpp:"far fa-file-code",html:"far fa-file-code",js:"far fa-file-code",rb:"far fa-file-code",go:"far fa-file-code"}[e.split(".").pop()]||"far fa-file"}},created:function(){return this.getPageFiles()}};t.default=o},"./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./CTFd/themes/admin/assets/js/components/flags/FlagCreationForm.vue?vue&type=script&lang=js&":function(module,exports,__webpack_require__){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _jquery=_interopRequireDefault(__webpack_require__("./node_modules/jquery/dist/jquery.js")),_CTFd=_interopRequireDefault(__webpack_require__("./CTFd/themes/core/assets/js/CTFd.js")),_nunjucks=_interopRequireDefault(__webpack_require__("./node_modules/nunjucks/browser/nunjucks.js"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var _default={name:"FlagCreationForm",props:{challenge_id:Number},data:function(){return{types:{},selectedType:null,createForm:""}},methods:{selectType:function selectType(event){var _this=this,flagType=event.target.value;if(void 0===this.types[flagType])return this.selectedType=null,void(this.createForm="");var createFormURL=this.types[flagType].templates.create;_jquery.default.get(_CTFd.default.config.urlRoot+createFormURL,function(template_data){var template=_nunjucks.default.compile(template_data);_this.selectedType=flagType,_this.createForm=template.render(),_this.createForm.includes("<script")&&setTimeout(function(){(0,_jquery.default)("<div>"+_this.createForm+"</div>").find("script").each(function(){eval((0,_jquery.default)(this).html())})},100)})},loadTypes:function(){var t=this;_CTFd.default.fetch("/api/v1/flags/types",{method:"GET"}).then(function(e){return e.json()}).then(function(e){t.types=e.data})},submitFlag:function(e){var t=this,s=(0,_jquery.default)(e.target).serializeJSON(!0);s.challenge=this.$props.challenge_id,_CTFd.default.fetch("/api/v1/flags",{method:"POST",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(s)}).then(function(e){return e.json()}).then(function(e){t.$emit("refreshFlags",t.$options.name)})}},created:function(){this.loadTypes()}};exports.default=_default},"./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./CTFd/themes/admin/assets/js/components/flags/FlagEditForm.vue?vue&type=script&lang=js&":function(module,exports,__webpack_require__){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _jquery=_interopRequireDefault(__webpack_require__("./node_modules/jquery/dist/jquery.js")),_CTFd=_interopRequireDefault(__webpack_require__("./CTFd/themes/core/assets/js/CTFd.js")),_nunjucks=_interopRequireDefault(__webpack_require__("./node_modules/nunjucks/browser/nunjucks.js"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var _default={name:"FlagEditForm",props:{flag_id:Number},data:function(){return{flag:{},editForm:""}},watch:{flag_id:{immediate:!0,handler:function(e){null!==e&&this.loadFlag()}}},methods:{loadFlag:function loadFlag(){var _this=this;_CTFd.default.fetch("/api/v1/flags/".concat(this.$props.flag_id),{method:"GET"}).then(function(e){return e.json()}).then(function(response){_this.flag=response.data;var editFormURL=_this.flag.templates.update;_jquery.default.get(_CTFd.default.config.urlRoot+editFormURL,function(template_data){var template=_nunjucks.default.compile(template_data);_this.editForm=template.render(_this.flag),_this.editForm.includes("<script")&&setTimeout(function(){(0,_jquery.default)("<div>"+_this.editForm+"</div>").find("script").each(function(){eval((0,_jquery.default)(this).html())})},100)})})},updateFlag:function(e){var t=this,s=(0,_jquery.default)(e.target).serializeJSON(!0);_CTFd.default.fetch("/api/v1/flags/".concat(this.$props.flag_id),{method:"PATCH",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(s)}).then(function(e){return e.json()}).then(function(e){t.$emit("refreshFlags",t.$options.name)})}},mounted:function(){this.flag_id&&this.loadFlag()},created:function(){this.flag_id&&this.loadFlag()}};exports.default=_default},"./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./CTFd/themes/admin/assets/js/components/flags/FlagList.vue?vue&type=script&lang=js&":function(e,t,s){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=l(s("./node_modules/jquery/dist/jquery.js")),i=l(s("./CTFd/themes/core/assets/js/CTFd.js")),a=l(s("./CTFd/themes/admin/assets/js/components/flags/FlagCreationForm.vue")),o=l(s("./CTFd/themes/admin/assets/js/components/flags/FlagEditForm.vue"));function l(e){return e&&e.__esModule?e:{default:e}}var d={components:{FlagCreationForm:a.default,FlagEditForm:o.default},props:{challenge_id:Number},data:function(){return{flags:[],editing_flag_id:null}},methods:{loadFlags:function(){var t=this;i.default.fetch("/api/v1/challenges/".concat(this.$props.challenge_id,"/flags"),{method:"GET",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"}}).then(function(e){return e.json()}).then(function(e){e.success&&(t.flags=e.data)})},refreshFlags:function(e){var t;switch(this.loadFlags(),e){case"FlagEditForm":t=this.$refs.FlagEditForm.$el,(0,n.default)(t).modal("hide");break;case"FlagCreationForm":t=this.$refs.FlagCreationForm.$el,(0,n.default)(t).modal("hide")}},addFlag:function(){var e=this.$refs.FlagCreationForm.$el;(0,n.default)(e).modal()},editFlag:function(e){this.editing_flag_id=e;var t=this.$refs.FlagEditForm.$el;(0,n.default)(t).modal()},deleteFlag:function(e){var t=this;confirm("Are you sure you'd like to delete this flag?")&&i.default.fetch("/api/v1/flags/".concat(e),{method:"DELETE"}).then(function(e){return e.json()}).then(function(e){e.success&&t.loadFlags()})}},created:function(){this.loadFlags()}};t.default=d},"./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./CTFd/themes/admin/assets/js/components/hints/HintCreationForm.vue?vue&type=script&lang=js&":function(e,t,s){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={name:"HintCreationForm",props:{challenge_id:Number},data:function(){return{cost:0}},methods:{getCost:function(){return this.cost||0},getContent:function(){return this.$refs.content.value},submitHint:function(){var t=this,e={challenge_id:this.$props.challenge_id,content:this.getContent(),cost:this.getCost()};CTFd.fetch("/api/v1/hints",{method:"POST",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(e)}).then(function(e){return e.json()}).then(function(e){e.success&&t.$emit("refreshHints",t.$options.name)})}}};t.default=n},"./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./CTFd/themes/admin/assets/js/components/hints/HintEditForm.vue?vue&type=script&lang=js&":function(e,t,s){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i=(n=s("./CTFd/themes/core/assets/js/CTFd.js"))&&n.__esModule?n:{default:n},a=s("./CTFd/themes/admin/assets/js/styles.js");var o={name:"HintEditForm",props:{hint_id:Number},data:function(){return{cost:0,content:null}},watch:{hint_id:{immediate:!0,handler:function(e){null!==e&&this.loadHint()}}},methods:{loadHint:function(){var s=this;i.default.fetch("/api/v1/hints/".concat(this.$props.hint_id,"?preview=true"),{method:"GET",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"}}).then(function(e){return e.json()}).then(function(e){var t;e.success&&(t=e.data,s.cost=t.cost,s.content=t.content,s.$nextTick(function(){setTimeout(function(){var e=s.$refs.content;(0,a.bindMarkdownEditor)(e),e.mde.codemirror.getDoc().setValue(e.value),e.mde.codemirror.refresh()},100)}))})},getCost:function(){return this.cost||0},getContent:function(){return this.$refs.content.value},updateHint:function(){var t=this,e={challenge_id:this.$props.challenge_id,content:this.getContent(),cost:this.getCost()};i.default.fetch("/api/v1/hints/".concat(this.$props.hint_id),{method:"PATCH",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(e)}).then(function(e){return e.json()}).then(function(e){e.success&&t.$emit("refreshHints",t.$options.name)})}},mounted:function(){this.hint_id&&this.loadHint()},created:function(){this.hint_id&&this.loadHint()}};t.default=o},"./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./CTFd/themes/admin/assets/js/components/hints/HintsList.vue?vue&type=script&lang=js&":function(e,t,s){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=s("./CTFd/themes/core/assets/js/ezq.js"),i=l(s("./CTFd/themes/core/assets/js/CTFd.js")),a=l(s("./CTFd/themes/admin/assets/js/components/hints/HintCreationForm.vue")),o=l(s("./CTFd/themes/admin/assets/js/components/hints/HintEditForm.vue"));function l(e){return e&&e.__esModule?e:{default:e}}var d={components:{HintCreationForm:a.default,HintEditForm:o.default},props:{challenge_id:Number},data:function(){return{hints:[],editing_hint_id:null}},methods:{loadHints:function(){var t=this;i.default.fetch("/api/v1/challenges/".concat(this.$props.challenge_id,"/hints"),{method:"GET",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"}}).then(function(e){return e.json()}).then(function(e){e.success&&(t.hints=e.data)})},addHint:function(){var e=this.$refs.HintCreationForm.$el;$(e).modal()},editHint:function(e){this.editing_hint_id=e;var t=this.$refs.HintEditForm.$el;$(t).modal()},refreshHints:function(e){var t;switch(this.loadHints(),e){case"HintCreationForm":t=this.$refs.HintCreationForm.$el,$(t).modal("hide");break;case"HintEditForm":t=this.$refs.HintEditForm.$el,$(t).modal("hide")}},deleteHint:function(e){var t=this;(0,n.ezQuery)({title:"Delete Hint",body:"Are you sure you want to delete this hint?",success:function(){i.default.fetch("/api/v1/hints/".concat(e),{method:"DELETE"}).then(function(e){return e.json()}).then(function(e){e.success&&t.loadHints()})}})}},created:function(){this.loadHints()}};t.default=d},"./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./CTFd/themes/admin/assets/js/components/notifications/Notification.vue?vue&type=script&lang=js&":function(e,t,s){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(s("./CTFd/themes/core/assets/js/CTFd.js")),i=o(s("./node_modules/dayjs/dayjs.min.js")),a=o(s("./node_modules/highlight.js/lib/index.js"));function o(e){return e&&e.__esModule?e:{default:e}}var l={props:{id:Number,title:String,content:String,html:String,date:String},methods:{localDate:function(){return(0,i.default)(this.date).format("MMMM Do, h:mm:ss A")},deleteNotification:function(){var t=this;confirm("Are you sure you want to delete this notification?")&&n.default.api.delete_notification({notificationId:this.id}).then(function(e){e.success&&(t.$destroy(),t.$el.parentNode.removeChild(t.$el))})}},mounted:function(){this.$el.querySelectorAll("pre code").forEach(function(e){a.default.highlightBlock(e)})}};t.default=l},"./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./CTFd/themes/admin/assets/js/components/requirements/Requirements.vue?vue&type=script&lang=js&":function(e,t,s){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i=(n=s("./CTFd/themes/core/assets/js/CTFd.js"))&&n.__esModule?n:{default:n};var a={props:{challenge_id:Number},data:function(){return{challenges:[],requirements:{},selectedRequirement:null}},computed:{otherChallenges:function(){var t=this,s=this.requirements.prerequisites||[];return this.challenges.filter(function(e){return e.id!==t.$props.challenge_id&&!s.includes(e.id)})}},methods:{loadChallenges:function(){var t=this;i.default.fetch("/api/v1/challenges?view=admin",{method:"GET",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"}}).then(function(e){return e.json()}).then(function(e){e.success&&(t.challenges=e.data)})},getChallengeNameById:function(t){var e=this.challenges.find(function(e){return e.id===t});return e?e.name:""},loadRequirements:function(){var t=this;i.default.fetch("/api/v1/challenges/".concat(this.$props.challenge_id,"/requirements"),{method:"GET",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"}}).then(function(e){return e.json()}).then(function(e){e.success&&(t.requirements=e.data||{})})},addRequirement:function(){var e,t=this,s=this.requirements.prerequisites?this.requirements.prerequisites:[];this.selectedRequirement&&(s.push(this.selectedRequirement),this.requirements.prerequisites=s,e={requirements:this.requirements},i.default.fetch("/api/v1/challenges/".concat(this.$props.challenge_id),{method:"PATCH",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(e)}).then(function(e){return e.json()}).then(function(e){e.success&&(t.selectedRequirement=null,t.loadRequirements())}))},removeRequirement:function(t){var s=this;this.requirements.prerequisites=this.requirements.prerequisites.filter(function(e){return e!==t});var e={requirements:this.requirements};i.default.fetch("/api/v1/challenges/".concat(this.$props.challenge_id),{method:"PATCH",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(e)}).then(function(e){return e.json()}).then(function(e){e.success&&s.loadRequirements()})}},created:function(){this.loadChallenges(),this.loadRequirements()}};t.default=a},"./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./CTFd/themes/admin/assets/js/components/tags/TagsList.vue?vue&type=script&lang=js&":function(e,t,s){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;i(s("./node_modules/jquery/dist/jquery.js"));var n=i(s("./CTFd/themes/core/assets/js/CTFd.js"));function i(e){return e&&e.__esModule?e:{default:e}}var a={props:{challenge_id:Number},data:function(){return{tags:[],tagValue:""}},methods:{loadTags:function(){var t=this;n.default.fetch("/api/v1/challenges/".concat(this.$props.challenge_id,"/tags"),{method:"GET",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"}}).then(function(e){return e.json()}).then(function(e){e.success&&(t.tags=e.data)})},addTag:function(){var t=this,e={value:this.tagValue,challenge:this.$props.challenge_id};n.default.api.post_tag_list({},e).then(function(e){e.success&&(t.tagValue="",t.loadTags())})},deleteTag:function(e){var t=this;n.default.api.delete_tag({tagId:e}).then(function(e){e.success&&t.loadTags()})}},created:function(){this.loadTags()}};t.default=a},"./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./CTFd/themes/admin/assets/js/components/teams/UserAddForm.vue?vue&type=script&lang=js&":function(e,t,s){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i=(n=s("./CTFd/themes/core/assets/js/CTFd.js"))&&n.__esModule?n:{default:n},a=s("./CTFd/themes/core/assets/js/ezq.js"),o=s("./CTFd/themes/core/assets/js/utils.js");var l={name:"UserAddForm",props:{team_id:Number},data:function(){return{searchedName:"",awaitingSearch:!1,emptyResults:!1,userResults:[],selectedResultIdx:0,selectedUsers:[]}},methods:{searchUsers:function(){var t=this;this.selectedResultIdx=0,""!=this.searchedName?i.default.fetch("/api/v1/users?view=admin&field=name&q=".concat(this.searchedName),{method:"GET",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"}}).then(function(e){return e.json()}).then(function(e){e.success&&(t.userResults=e.data.slice(0,10))}):this.userResults=[]},moveCursor:function(e){switch(e){case"up":this.selectedResultIdx&&--this.selectedResultIdx;break;case"down":this.selectedResultIdx<this.userResults.length-1&&(this.selectedResultIdx+=1)}},selectUser:function(e){void 0===e&&(e=this.selectedResultIdx);var t=this.userResults[e];!1===this.selectedUsers.some(function(e){return e.id===t.id})&&this.selectedUsers.push(t),this.userResults=[],this.searchedName=""},removeSelectedUser:function(t){this.selectedUsers=this.selectedUsers.filter(function(e){return e.id!==t})},handleAddUsersRequest:function(){var s=this,n=[];return this.selectedUsers.forEach(function(e){var t={user_id:e.id};n.push(i.default.fetch("/api/v1/teams/".concat(s.$props.team_id,"/members"),{method:"POST",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(t)}))}),Promise.all(n)},handleRemoveUsersFromTeams:function(){var s=[];return this.selectedUsers.forEach(function(e){var t={user_id:e.id};s.push(i.default.fetch("/api/v1/teams/".concat(e.team_id,"/members"),{method:"DELETE",body:JSON.stringify(t)}))}),Promise.all(s)},addUsers:function(){var e,t=this,s=[];this.selectedUsers.forEach(function(e){e.team_id&&s.push(e.name)}),s.length?(e=(0,o.htmlEntities)(s.join(", ")),(0,a.ezQuery)({title:"Confirm Team Removal",body:"The following users are currently in teams:<br><br> ".concat(e," <br><br>Are you sure you want to remove them from their current teams and add them to this one? <br><br>All of their challenge solves, attempts, awards, and unlocked hints will also be deleted!"),success:function(){t.handleRemoveUsersFromTeams().then(function(e){t.handleAddUsersRequest().then(function(e){window.location.reload()})})}})):this.handleAddUsersRequest().then(function(e){window.location.reload()})}},watch:{searchedName:function(){var e=this;!1===this.awaitingSearch&&setTimeout(function(){e.searchUsers(),e.awaitingSearch=!1},1e3),this.awaitingSearch=!0}}};t.default=l},"./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/vue-loader/lib/index.js?!./CTFd/themes/admin/assets/js/components/comments/CommentBox.vue?vue&type=style&index=0&id=1fd2c08a&scoped=true&lang=css&":function(e,t,s){(t=s("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([e.i,"\n.card .close[data-v-1fd2c08a] {\n  opacity: 0;\n  transition: 0.2s;\n}\n.card:hover .close[data-v-1fd2c08a] {\n  opacity: 0.5;\n}\n.close[data-v-1fd2c08a]:hover {\n  opacity: 0.75 !important;\n}\n.comment-card-leave[data-v-1fd2c08a] {\n  max-height: 200px;\n}\n.comment-card-leave-to[data-v-1fd2c08a] {\n  max-height: 0;\n}\n.comment-card-active[data-v-1fd2c08a] {\n  position: absolute;\n}\n.comment-card-enter-active[data-v-1fd2c08a],\n.comment-card-move[data-v-1fd2c08a],\n.comment-card-leave-active[data-v-1fd2c08a] {\n  transition: all 0.3s;\n}\n",""]),e.exports=t},"./node_modules/vue-style-loader/index.js!./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/vue-loader/lib/index.js?!./CTFd/themes/admin/assets/js/components/comments/CommentBox.vue?vue&type=style&index=0&id=1fd2c08a&scoped=true&lang=css&":function(e,t,s){var n=s("./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/vue-loader/lib/index.js?!./CTFd/themes/admin/assets/js/components/comments/CommentBox.vue?vue&type=style&index=0&id=1fd2c08a&scoped=true&lang=css&");"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);(0,s("./node_modules/vue-style-loader/lib/addStylesClient.js").default)("0b5f1745",n,!1,{})}}]);