PageSourceSearch

https://www.expii.com/static/js/11.e17359e8.chunk.js

js expii.com collected 2026-10-02 04:55:51 UTC 10,742 bytes, 2 lines download raw bytes

1webpackJsonp([11],{1238:function(e,t,o){var a=o(1239);"string"===typeof a&&(a=[[e.i,a,""]]);var n={hmr:!1};n.transform=void 0;o(1211)(a,n);a.locals&&(e.exports=a.locals)},1239:function(e,t,o){t=e.exports=o(1210)(!0),t.push([e.i,"@-webkit-keyframes loadingShimmer{0%{background-position:-700px 0}to{background-position:0 0}}@keyframes loadingShimmer{0%{background-position:-700px 0}to{background-position:0 0}}@-webkit-keyframes fadein{0%{opacity:0}to{opacity:1}}@keyframes fadein{0%{opacity:0}to{opacity:1}}.editProblemTopicTagsModal__container{text-align:left;width:50rem;padding:2rem}.editProblemTopicTagsModal__container img{margin-top:1rem;margin-bottom:2rem}.editProblemTopicTagsModal__container a{color:#5754cc;margin-top:2rem}.editProblemTopicTagsModal__container .button{color:#fff}.editProblemTopicTagsModal__container img{height:128px;width:128px}.editProblemTopicTagsModal__container ul{list-style-type:none;margin-bottom:2rem}.editProblemTopicTagsModal__container .editProblemTopicTagsModal__remove-tag{margin-right:1rem;cursor:pointer;width:1rem}.editProblemTopicTagsModal__container .textinput{width:95%}.editProblemTopicTagsModal__container .editProblemTopicTagsModal__submit{text-align:right}.editProblemTopicTagsModal__container .editProblemTopicTagsModal__submit a{color:#fff}.editProblemTopicTagsModal__container .editProblemTopicTagsModal__submit .button--secondary--disabled{margin-top:2rem}.editProblemTopicTagsModal__container .editProblemTopicTagsModal__feedback{min-height:2rem}.editProblemTopicTagsModal__container .editProblemTopicTagsModal__feedback .newFeedback{-webkit-animation-name:fadein;animation-name:fadein;-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;-webkit-animation-duration:1s;animation-duration:1s}.editProblemTopicTagsModal__container .editProblemTopicTagsModal__feedback .success{color:green}.editProblemTopicTagsModal__container .editProblemTopicTagsModal__feedback .failure{color:red}.surveyModal__heading{font-weight:700;font-size:2rem}@media screen and (max-width:51.6rem){.surveyModal__heading{font-size:1.5rem}}@media screen and (max-width:51.6rem){.modalOverlay{max-height:85%;margin-top:2rem}}","",{version:3,sources:["/var/expii/app/client_v2/src/domains/topic/components/editProblemTopicTagsModal.css"],names:[],mappings:"AAAA,kCACE,GACE,4BAA8B,CAAE,AAClC,GACE,uBAA2B,CAAE,CAAE,AAEnC,0BACE,GACE,4BAA8B,CAAE,AAClC,GACE,uBAA2B,CAAE,CAAE,AAEnC,0BACE,GACE,SAAW,CAAE,AACf,GACE,SAAW,CAAE,CAAE,AAEnB,kBACE,GACE,SAAW,CAAE,AACf,GACE,SAAW,CAAE,CAAE,AAEnB,sCACE,gBAAiB,AACjB,YAAa,AACb,YAAc,CAAE,AAChB,0CACE,gBAAiB,AACjB,kBAAoB,CAAE,AACxB,wCACE,cAAe,AACf,eAAiB,CAAE,AACrB,8CACE,UAAa,CAAE,AACjB,0CACE,aAAc,AACd,WAAa,CAAE,AACjB,yCACE,qBAAsB,AACtB,kBAAoB,CAAE,AACxB,6EACE,kBAAmB,AACnB,eAAgB,AAChB,UAAY,CAAE,AAChB,iDACE,SAAW,CAAE,AACf,yEACE,gBAAkB,CAAE,AACpB,2EACE,UAAa,CAAE,AACjB,sGACE,eAAiB,CAAE,AACvB,2EACE,eAAiB,CAAE,AACnB,wFACE,8BAA+B,AACvB,sBAAuB,AAC/B,0CAA2C,AACnC,kCAAmC,AAC3C,8BAA+B,AACvB,qBAAuB,CAAE,AACnC,oFACE,WAAa,CAAE,AACjB,oFACE,SAAW,CAAE,AAEnB,sBACE,gBAAkB,AAClB,cAAgB,CAAE,AAClB,sCACE,sBACE,gBAAkB,CAAE,CAAE,AAE5B,sCACE,cACE,eAAgB,AAChB,eAAiB,CAAE,CAAE",file:"editProblemTopicTagsModal.css",sourcesContent:["@-webkit-keyframes loadingShimmer {\n  0% {\n    background-position: -700px 0; }\n  100% {\n    background-position: 0px 0; } }\n\n@keyframes loadingShimmer {\n  0% {\n    background-position: -700px 0; }\n  100% {\n    background-position: 0px 0; } }\n\n@-webkit-keyframes fadein {\n  0% {\n    opacity: 0; }\n  100% {\n    opacity: 1; } }\n\n@keyframes fadein {\n  0% {\n    opacity: 0; }\n  100% {\n    opacity: 1; } }\n\n.editProblemTopicTagsModal__container {\n  text-align: left;\n  width: 50rem;\n  padding: 2rem; }\n  .editProblemTopicTagsModal__container img {\n    margin-top: 1rem;\n    margin-bottom: 2rem; }\n  .editProblemTopicTagsModal__container a {\n    color: #5754CC;\n    margin-top: 2rem; }\n  .editProblemTopicTagsModal__container .button {\n    color: white; }\n  .editProblemTopicTagsModal__container img {\n    height: 128px;\n    width: 128px; }\n  .editProblemTopicTagsModal__container ul {\n    list-style-type: none;\n    margin-bottom: 2rem; }\n  .editProblemTopicTagsModal__container .editProblemTopicTagsModal__remove-tag {\n    margin-right: 1rem;\n    cursor: pointer;\n    width: 1rem; }\n  .editProblemTopicTagsModal__container .textinput {\n    width: 95%; }\n  .editProblemTopicTagsModal__container .editProblemTopicTagsModal__submit {\n    text-align: right; }\n    .editProblemTopicTagsModal__container .editProblemTopicTagsModal__submit a {\n      color: white; }\n    .editProblemTopicTagsModal__container .editProblemTopicTagsModal__submit .button--secondary--disabled {\n      margin-top: 2rem; }\n  .editProblemTopicTagsModal__container .editProblemTopicTagsModal__feedback {\n    min-height: 2rem; }\n    .editProblemTopicTagsModal__container .editProblemTopicTagsModal__feedback .newFeedback {\n      -webkit-animation-name: fadein;\n              animation-name: fadein;\n      -webkit-animation-timing-function: ease-in;\n              animation-timing-function: ease-in;\n      -webkit-animation-duration: 1s;\n              animation-duration: 1s; }\n    .editProblemTopicTagsModal__container .editProblemTopicTagsModal__feedback .success {\n      color: green; }\n    .editProblemTopicTagsModal__container .editProblemTopicTagsModal__feedback .failure {\n      color: red; }\n\n.surveyModal__heading {\n  font-weight: bold;\n  font-size: 2rem; }\n  @media screen and (max-width: 51.6rem) {\n    .surveyModal__heading {\n      font-size: 1.5rem; } }\n\n@media screen and (max-width: 51.6rem) {\n  .modalOverlay {\n    max-height: 85%;\n    margin-top: 2rem; } }\n"],sourceRoot:""}])},419:function(e,t,o){"use strict";function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function r(e,t,o){for(var a=0;a<e.length;a+=1)if(e[a][t]===o)return a;return-1}
1Object.defineProperty(t,"__esModule",{value:!0});var c=o(0),d=o.n(c),l=o(237),s=o(3),A=o(66),m=o(4),p=o(26),b=o(23),g=o(82),u=o(16),T=o(409),_=o.n(T),f=o(1238),C=(o.n(f),function(){function e(e,t){for(var o=0;o<t.length;o++){var a=t[o];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,o,a){return o&&e(t.prototype,o),a&&e(t,a),t}}()),h=function(e){function t(e){a(this,t);var o=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return o.state={problemId:null,topicTag:null,topicTags:[],feedback:null,feedbackType:null,tagToAdd:""},console.log(o.props.topic),o.tagChange=o.tagChange.bind(o),o.removeTag=o.removeTag.bind(o),o.addTag=o.addTag.bind(o),o.renderFeedback=o.renderFeedback.bind(o),o}return i(t,e),C(t,[{key:"componentDidMount",value:function(){var e=this;Object(p.c)("/api/content/problem/"+this.props.problemId).then(function(t){e.setState({topicId:t.output.topicId,problemId:e.props.problemId,redirectObject:void 0,topicTags:t.output.topicTags,problemIndex:r(e.props.topic.problems,"id",parseInt(e.props.problemId))}),console.log(e.state)}).catch(function(t){t.error_message&&e.setState({redirectObject:{pathname:"/404"}})})}},{key:"addTag",value:function(){var e=this,t=_()(this.state.tagToAdd.split(/-|\//)).split("?")[0];this.setState({feedback:null}),Object(p.e)("/api/add_topic_to_content",{topic_id:t,type:"problem",content_id:this.state.problemId}).then(function(o){var a="Success! Topic "+t+" added to Problem "+e.props.problemId;console.log(a),Object(p.c)("/api/content/problem/"+e.props.problemId).then(function(t){e.setState({topicId:t.output.topicId,problemId:e.props.problemId,redirectObject:void 0,topicTags:t.output.topicTags,tagToAdd:"",feedback:a,feedbackType:"success"})})}).catch(function(t){t.error_message&&e.setState({feedback:t.error_message,feedbackType:"failure"})})}},{key:"removeTag",value:function(e){var t=this;this.setState({feedback:null}),Object(p.e)("/api/admin/remove_topic_from_content",{topic_id:e,type:"problem",content_id:this.state.problemId}).then(function(o){var a="Success! Topic "+e+" removed from Problem "+t.props.problemId;console.log(a),Object(p.c)("/api/content/problem/"+t.props.problemId).then(function(e){t.setState({topicId:e.output.topicId,problemId:t.props.problemId,redirectObject:void 0,topicTags:e.output.topicTags,feedback:a,feedbackType:"success"})})}).catch(function(e){e.error_message&&t.setState({feedback:e.error_message,feedbackType:"failure"})})}},{key:"tagChange",value:function(e){this.setState({tagToAdd:e.target.value}),console.log(this.state.tagToAdd)}},{key:"renderFeedback",value:function(){var e=this.state.feedback;return d.a.createElement("p",{className:(e?"newFeedback ":"")+this.state.feedbackType},this.state.feedback)}},{key:"render",value:function(){var e=this;return d.a.createElement("div",{className:"editProblemTopicTagsModal__container"},d.a.createElement("h3",null,d.a.createElement("span",null,this.state.topicTags.length+" Related Topic"+(1==this.state.topicTags.length?"":"s"))),d.a.createElement("div",null,d.a.createElement("ul",null,this.state.topicTags.map(function(t){return console.log(t),d.a.createElement("li",{key:t.id},e.state.topicTags.length>1?d.a.createElement("span",{className:"editProblemTopicTagsModal__remove-tag",onClick:function(){return e.removeTag(t.id)}},d.a.createElement(u.a,{icon:["fa","times"]})):null,d.a.createElement(m.f,{href:t.slug},t.title))})),d.a.createElement("div",{className:"editProblemTopicTagsModal__feedback"},this.renderFeedback()),d.a.createElement("p",null,"Add this problem to a topic by pasting the URL or topic ID in the input box below:"),d.a.createElement("label",{className:"edit-profile__label",htmlFor:"tagToAdd"}),d.a.createElement(g.b,{className:"",defaultValue:"",value:this.state.tagToAdd,onChange:this.tagChange,id:"tagToAdd"})),d.a.createElement("div",{className:"editProblemTopicTagsModal__submit"},d.a.createElement(m.c,{onClick:this.addTag,disabled:0==this.state.tagToAdd.length},"Add a Topic Tag")))}}]),t}(d.a.PureComponent),E=function(e){return{hideModal:function(){e(Object(b.b)())},showToast:function(t){e(Object(A.d)({text:t,timeout:5e3}))}}};t.default=Object(l.a)(Object(s.b)(null,E)(h),"EditProblemTopicTagsModal")}});
2//# sourceMappingURL=11.e17359e8.chunk.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.