1"use strict";(self.webpackChunkraise_webapp_frontend=self.webpackChunkraise_webapp_frontend||[]).push([[2816],{52816:(e,t,a)=>{a.r(t),a.d(t,{default:()=>N});var n=a(1413),r=a(45007),o=a(65849),l=a(15671),s=a(43144),u=a(53640),i=a(60136),c=a(27361),d=a.n(c),m=a(67294),p=a(92534),h=a(78587),v=a(69613),f=a(16607),b=a(59332),w=a(55323),y=a(67498),E=function(e){function t(){var e;(0,l.Z)(this,t);for(var a=arguments.length,n=new Array(a),r=0;r<a;r++)n[r]=arguments[r];return(e=(0,u.Z)(this,t,[].concat(n))).handleClose=function(){var t=e.props,a=t.location.pathname;(0,t.history.push)(a.split("/spot-award")[0])},e.validate=function(e){var t={};return e.name||(t.name="Scholarship name is required."),e.amount||(t.amount="Scholarship amount is required."),e.amount<1&&(t.amount="Scholarship amount must be a positive number."),t},e}return(0,i.Z)(t,e),(0,s.Z)(t,[{key:"render",value:function(){var e=this;if(this.props.loading.studentProfileInitialInfo)return null;var t=this.props,a=t.student._id,r=t.awardSpotScholarship,o=t.collegeDataForStudent.divisor,l=d()(this.props.collegeDataForStudent.earningRelationship,"spotAward",{name:"",amount:null});return m.createElement(v.Z,{className:"student-profile-spot-award-modal",show:!0,onClose:this.handleClose,forceNotIonic:!0},m.createElement(v.Z.TextHeader,{onClose:this.handleClose},l?"Update":"Grant"," SPOT Award"),m.createElement(v.Z.Body,null,m.createElement("p",{className:"shared-font body"},"The student will receive this award ",m.createElement("span",{className:"shared-font bold"},"or"),"Â their micro-scholarship total, whichever is greater. The student will be immediately awarded."),m.createElement(p.J9,{initialValues:(0,n.Z)((0,n.Z)({},l),{},{studentId:a}),initialStatus:"ok",validate:this.validate,onSubmit:r},function(t){var a=t.values,n=a.name,r=a.amount,l=t.errors,s=t.handleChange,u=t.handleSubmit;return m.createElement(p.l0,null,m.createElement(f.Z,null,"Award name",m.createElement(b.Z,{required:!0,name:"name",value:n,onChange:s,error:l.name,placeholder:"Super Scholar Award"})),m.createElement(f.Z,null,"".concat(o?"".concat(o,"-Year"):""," total amount"),m.createElement("span",{className:"student-profile-spot-award-modal-currency"},m.createElement(b.Z,{required:!0,name:"amount",value:r,onChange:s,error:l.amount,placeholder:"0",type:"number"}))),m.createElement("div",{className:"student-profile-spot-award-modal-buttons"},m.createElement(w.Z,{type:"button",outline:!0,margin:!1,onClick:e.handleClose},"Cancel"),m.createElement(y.Z,{id:"create-spot-award-confirmation",onYes:u,buttonName:"award-spot-scholarship",text:"Are you sure you want to grant this award?",buttonText:"Confirm",buttonType:"submit"},m.createElement(w.Z,{type:"button",margin:!1,className:"student-profile-spot-award-modal-award-button",buttonName:"award-spot-scholarship"},"Grant Award"))))})))}}])}(m.Component);const Z=(0,h.EN)(E);var g=a(48397);const N=(0,r.$j)(function(e){return{student:e.student,loading:e.loading,collegeDataForStudent:e.collegeDataForStudent}},function(e){return(0,n.Z)({},(0,o.DE)({awardSpotScholarship:g.Oe},e))})(Z)},67498:(e,t,a)=>{a.d(t,{Z:()=>i});var n=a(70885),r=a(67294),o=a(45007),l=a(11468),s=a(55323),u=a(78455);const i=function(e){var t=e.id,a=e.children,i=e.onYes,c=e.buttonName,d=e.disabled,m=void 0!==d&&d,p=e.shouldPrompt,h=void 0===p||p,v=e.text,f=void 0===v?"Are you sure you want to delete this item?":v,b=e.buttonText,w=void 0===b?"Delete":b,y=e.buttonType,E=void 0===y?"button":y,Z=(0,r.useState)(null),g=(0,n.Z)(Z,2),N=g[0],C=g[1],S=(0,o.I0)(),k=(0,r.useCallback)(function(){C(null),S((0,u.V6)(t))},[t,S]),T=(0,o.v9)(function(e){return!!e.popovers[t]});return(0,r.useEffect)(function(){return k},[k]),r.createElement("div",null,r.createElement("span",null,(0,r.cloneElement)(a,{disabled:T||m,onClick:h?function(e){C(e.currentTarget),S((0,u.aK)(t))}:i})),r.createElement(l.Z,{id:t,open:T,anchorEl:N,placement:"top",className:"shared-are-you-sure-popper"},r.createElement("div",{className:"shared-are-you-sure"},f,r.createElement("div",{className:"shared-are-you-sure-actions-container"}
1,r.createElement("div",{className:"shared-are-you-sure-nevermind"},r.createElement(s.Z,{color:"alternate",margin:!1,outline:!0,onClick:function(e){e.preventDefault(),e.stopPropagation(),k()},buttonName:"".concat(c," are-you-sure never-mind"),width:110,className:"shared-are-you-sure-button"},"Nevermind")),r.createElement("div",{className:"shared-are-you-sure-yes"},r.createElement(s.Z,{color:"primary",margin:!1,onClick:function(e){e.preventDefault(),e.stopPropagation(),i(),k()},buttonName:"".concat(c," are-you-sure yes"),type:E,className:"shared-are-you-sure-button",testId:"confirm-are-you-sure"},w))))))}}}]); 2//# sourceMappingURL=2816.531d7a31b71b3dad7a0e.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.