You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
educoder/public/react/dist/static/js/139.be42b858.chunk.js

1 line
17 KiB

5 years ago
(this.webpackJsonph5=this.webpackJsonph5||[]).push([[139],{1407:function(e,t,n){},1528:function(e,t,n){"use strict";n(260);var a=n(92),s=(n(470),n(462)),i=n(8),r=n(7),c=n(10),o=n(9),l=n(11),u=(n(472),n(471)),m=(n(50),n(29)),d=(n(103),n(47)),p=n(0),h=n.n(p),_=(n(6),n(967)),b=n(28),f=(d.a.TextArea,m.a.confirm,window.$,u.a.Option,["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"]),x=function(e){function t(e){var n;return Object(i.a)(this,t),(n=Object(c.a)(this,Object(o.a)(t).call(this,e))).componentDidMount=function(){var e=n.props.match.params.Id;n.isEdit=!!e,e&&"/exercises/".concat(e,"/edit.json")},n.state={question_choices:["","","",""],standard_answers:[!1,!1,!1,!1]},n}return Object(l.a)(t,e),Object(r.a)(t,[{key:"render",value:function(){var e=this.props,t=(e.question_title,e.question_score,e.question_type),n=e.question_choices,i=(e.standard_answer,e.question_id),r=(e.question_number,e.index),c=(e.displayCount,e.showActionButton,this.props.isAdmin(),this.props.match.params.coursesId,this.isEdit,"question_".concat(r));return h.a.createElement("div",{className:"bor-bottom-greyE padding20-30 singleDisplay",id:c,_id:i},h.a.createElement("style",null,"\n .optionMdEditor {\n flex: 0 0 800px\n }\n .optionRow {\n margin: 2px;\n }\n .actionBtns {\n height: 28px\n }\n "),h.a.createElement(_.a,this.props),h.a.createElement("div",{className:"options"},n.map((function(e,n){var i;return i="".concat(f[n],"."),0==t?h.a.createElement("div",{className:"mb10 clearfix ",style:{display:"flex",flexDirection:"row"},key:n},h.a.createElement(s.a,{disabled:!0,className:"fl lineh-25 w50",checked:e.standard_boolean},i),h.a.createElement(b.s,{content:e.choice_text,selector:"single_"+(r+1)+(n+1),style:{float:"left",display:"inline-block"}})):h.a.createElement("div",{className:"mb10 clearfix",style:{display:"flex",flexDirection:"row"},key:n},h.a.createElement(a.a,{disabled:!0,className:"fl lineh-25 w50",checked:e.standard_boolean},i),h.a.createElement(b.s,{content:e.choice_text,selector:"single_"+(r+1)+(n+1),style:{float:"left",display:"inline-block"}}))}))))}}]),t}(p.Component);t.a=x},1529:function(e,t,n){"use strict";n(470);var a=n(462),s=n(8),i=n(7),r=n(10),c=n(9),o=n(11),l=(n(472),n(471)),u=(n(50),n(29)),m=(n(103),n(47)),d=n(0),p=n.n(d),h=(n(6),n(831)),_=n(28),b=n(967),f=(m.a.TextArea,u.a.confirm,window.$,l.a.Option,function(e){function t(e){var n;return Object(s.a)(this,t),(n=Object(r.a)(this,Object(c.a)(t).call(this,e))).componentDidMount=function(){var e=n.props.match.params.Id;n.isEdit=!!e,e&&"/exercises/".concat(e,"/edit.json")},n.state={question_choices:["","","",""],standard_answers:[!1,!1,!1,!1]},n}return Object(o.a)(t,e),Object(i.a)(t,[{key:"render",value:function(){var e=this.props,t=(e.question_title,e.question_score,e.question_type),n=e.question_choices,s=(e.standard_answer,e.question_id),i=(e.question_number,e.index),r=(e.displayCount,this.props.isAdmin(),this.props.match.params.coursesId,this.isEdit,"question_".concat(i));return h.f[t],p.a.createElement("div",{className:"bor-bottom-greyE padding20-30",id:r,_id:s},p.a.createElement("style",null,"\n .optionMdEditor {\n flex: 0 0 800px\n }\n .optionRow {\n margin: 2px;\n }\n .actionBtns {\n height: 28px\n }\n \n "),p.a.createElement(b.a,this.props),p.a.createElement("div",{className:"options clearfix"},n.map((function(e,t){return p.a.createElement("div",{key:t,className:"fl mr30 df"},p.a.createElement(a.a,{disabled:!0,className:"lineh-25",checked:e.standard_boolean}),p.a.createElement(_.s,{content:e.choice_text,selector:"judge_"+(i+1)+t,className:""}))}))))}}]),t}(d.Component));t.a=f},1530:function(e,t,n){"use strict";var a=n(8),s=n(7),i=n(10),r=n(9),c=n(11),o=(n(472),n(471)),l=(n(50),n(29)),u=(n(103),n(47)),m=n(0),d=n.n(m),p=(n(6),n(831)),h=n(28),_=