PageSourceSearch

https://theclio.com/_next/static/chunks/pages/admin/editGrantResources-793bf84b587b959ae2c5.js

js theclio.com collected 2026-09-24 09:20:42 UTC 2,741 bytes, 1 lines download raw bytes

1_N_E=(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[90],{"46UX":function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/editGrantResources",function(){return n("kYAs")}])},kYAs:function(t,e,n){"use strict";n.r(e);var a=n("H+61"),r=n("UlJF"),o=n("+Css"),i=n("7LId"),c=n("VIvw"),u=n("iHvq"),s=n("cpVT"),l=n("q1tI"),d=n.n(l),f=n("vOnD"),g=n("/MKj"),p=n("20a2"),b=n.n(p),h=n("g4pe"),m=n.n(h),v=n("yWHn"),O=n("OarQ"),j=n("h+B5"),w=n("6apz"),_=n("Nlzp"),y=n("o5eH"),S=n("LVBY"),R=n("5LqV"),N=d.a.createElement;function x(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,a=Object(u.a)(t);if(e){var r=Object(u.a)(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return Object(c.a)(this,n)}}var L=Object(f.a)(v.a).withConfig({displayName:"editGrantResources__StyledButton",componentId:"sc-o29gam-0"})(["&&{margin-top:8px;}"]),T=function(t){Object(i.a)(n,t);var e=x(n);function n(){var t;Object(a.a)(this,n);for(var r=arguments.length,i=new Array(r),c=0;c<r;c++)i[c]=arguments[c];return t=e.call.apply(e,[this].concat(i)),Object(s.a)(Object(o.a)(t),"state",{loading:!0,error:!1,pageText:null,submitLoading:!1}),Object(s.a)(Object(o.a)(t),"componentDidMount",(function(){_.a.get("/adminConfigurations",{limit:1,where:{deletedAt:"null"},order:"createdAt desc"}).then((function(e){t.setState({loading:!1,error:!(e.data.length>0)&&"No existing settings found.",pageText:e.data.length>0&&e.data[0].grantResources?e.data[0].grantResources:"No template found."})})).catch((function(e){t.setState({loading:!1,error:e,pageText:"Loading Error."})}))})),Object(s.a)(Object(o.a)(t),"handleSubmit",(function(){var e=t.state.pageText;t.setState({submitLoading:!0},(function(){_.a.post("/adminConfigurations",{grantResources:e}).then((function(){t.setState({submitLoading:!1}),b.a.push("/grantResources")})).catch((function(e){t.setState({error:e,submitLoading:!1})}))}))})),t}return Object(r.a)(n,[{key:"render",value:function(){var t=this,e=(this.props.colors,this.state),n=e.loading,a=e.error,r=e.pageText,o=e.submitLoading;return N("div",null,N(m.a,null,Object(R.b)()),n&&N(w.a,null),a&&N(j.a,{error:a}),r&&N("div",null,N(O.a,{value:r,onChange:function(e){return t.setState({pageText:e})}}),N(L,{onClick:this.handleSubmit,color:"secondary",variant:"contained",disabled:o},o?"Submitting...":"Submit")))}}]),n}(l.Component);e.default=Object(S.a)(y.b.ADMIN)(Object(g.b)((function(t){return{colors:t.colors}}))(T))}},[["46UX",0,1,16,24,2,3,4,5,6,7,8,9,15,22,25,44]]]);

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.