PageSourceSearch

https://opensats.org/_next/static/chunks/pages/reports/write-72e3cdfe35d8c400.js

js opensats.org collected 2026-10-03 20:51:36 UTC 24,356 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3967],{6150:function(e,r,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/reports/write",function(){return t(5153)}])},3992:function(e,r,t){"use strict";var s=t(5893),a=t(5675),o=t.n(a);r.Z=e=>{let{darkSrc:r,className:t,...a}=e;return r?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o(),{className:"".concat(null!=t?t:""," dark:hidden"),...a}),(0,s.jsx)(o(),{className:"hidden ".concat(null!=t?t:""," dark:block"),...a,src:r})]}):(0,s.jsx)(o(),{className:t,...a})}},6215:function(e,r,t){"use strict";t.d(r,{Z:function(){return PageHeading}});var s=t(5893);function PageHeading(e){let{title:r,children:t}=e;return(0,s.jsxs)("div",{className:"divide-y divide-gray-200 dark:divide-gray-700",children:[(0,s.jsxs)("div",{className:"items-start space-y-2 pb-8 pt-6 md:space-y-5 xl:grid xl:grid-cols-3 xl:gap-x-8",children:[(0,s.jsx)("div",{}),(0,s.jsx)("h1",{className:"text-3xl font-extrabold leading-9 tracking-tight text-gray-900 dark:text-gray-100 sm:text-4xl sm:leading-10 md:text-6xl md:leading-14 xl:col-span-2",children:r})]}),(0,s.jsx)("div",{className:"items-start space-y-2 xl:grid xl:grid-cols-3 xl:gap-x-8 xl:space-y-0",children:t})]})}},1573:function(e,r,t){"use strict";t.d(r,{Z:function(){return PageSection}});var s=t(5893),a=t(3992),o=t(6215);function PageSection(e){let{title:r,image:t,children:n}=e;return(0,s.jsx)("div",{className:"divide-y divide-gray-200 dark:divide-gray-700",children:(0,s.jsxs)(o.Z,{title:r,children:[(0,s.jsx)("div",{className:"flex hidden flex-col items-center space-x-2 pt-8 xl:block",children:(0,s.jsx)(a.Z,{src:t,alt:"avatar",width:210,height:210,className:"h-48 w-48"})}),(0,s.jsx)("div",{className:"prose max-w-none pb-8 pt-8 dark:prose-dark xl:col-span-2",children:n})]})})}},2251:function(e,r,t){"use strict";t.d(r,{jE:function(){return AuthorSEO},Uy:function(){return BlogSEO},zg:function(){return FundSEO},kq:function(){return NewsletterSEO},TQ:function(){return PageSEO},h4:function(){return ProjectSEO},$t:function(){return TagSEO},Jr:function(){return TopicSEO}});var s=t(5893),a=t(9008),o=t.n(a);function isLocalImage(e){return e.startsWith("/")&&!e.startsWith("//")}var n=t(1163),i=t(3071),l=t.n(i);let CommonSEO=e=>{let{title:r,description:t,ogType:a,ogImage:i,twImage:c,canonicalUrl:d}=e,m=(0,n.useRouter)();return(0,s.jsxs)(o(),{children:[(0,s.jsx)("title",{children:r}),(0,s.jsx)("meta",{name:"robots",content:"follow, index"}),(0,s.jsx)("meta",{name:"description",content:t}),(0,s.jsx)("meta",{property:"og:url",content:"".concat(l().siteUrl).concat(m.asPath)}),(0,s.jsx)("meta",{property:"og:type",content:a}),(0,s.jsx)("meta",{property:"og:site_name",content:l().title}),(0,s.jsx)("meta",{property:"og:description",content:t}),(0,s.jsx)("meta",{property:"og:title",content:r}),(Array.isArray(i)?i.map(e=>{let{url:r}=e;return r}):[i]).flatMap((e,r)=>[(0,s.jsx)("meta",{property:"og:image",content:e},"og-image-".concat(r)),...e.startsWith("".concat(l().siteUrl,"/"))?[(0,s.jsx)("meta",{property:"og:image:width",content:"1200"},"og-width-".concat(r)),(0,s.jsx)("meta",{property:"og:image:height",content:"630"},"og-height-".concat(r)),(0,s.jsx)("meta",{property:"og:image:type",content:e.endsWith(".jpg")?"image/jpeg":"image/png"},"og-type-".concat(r))]:[]]),(0,s.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,s.jsx)("meta",{name:"twitter:site",content:l().twitter}),(0,s.jsx)("meta",{name:"twitter:title",content:r}),(0,s.jsx)("meta",{name:"twitter:description",content:t}),(0,s.jsx)("meta",{name:"twitter:image",content:c}),(0,s.jsx)("link",{rel:"canonical",href:d||"".concat(l().siteUrl).concat(m.asPath)})]})},c=new Set(["canary","pgp","privacy","report-success","submitted","terms","thankyou"]),PageSEO=e=>{let{title:r,description:t,slug:a}=e,o=!!a&&!c.has(a),n=o?"/static/images/pages/og/".concat(a,".png"):l().socialBanner,i=l().siteUrl+n;return(0,s.jsx)(CommonSEO,{title:r,description:t,ogType:"website",ogImage:i,twImage:i})},ProjectSEO=e=>{let{title:r,description:t,slug:a}=e,o=l().siteUrl+"/static/images/projects/og/".concat(a,".png");
1return(0,s.jsx)(CommonSEO,{title:r,description:t,ogType:"website",ogImage:o,twImage:o})},FundSEO=e=>{let{title:r,description:t,slug:a}=e,o=l().siteUrl+"/static/images/funds/og/".concat(a,".png");return(0,s.jsx)(CommonSEO,{title:r,description:t,ogType:"website",ogImage:o,twImage:o})},d=new Set(["bayer","cfunk","dtonon","ecurrencyhodler","jason","julian","lorenzo","niftynei"]),AuthorSEO=e=>{let{title:r,description:t,slug:a}=e,o=!d.has(a),n=o?"/static/images/authors/og/".concat(a,".png"):l().socialBanner,i=l().siteUrl+n;return(0,s.jsx)(CommonSEO,{title:r,description:t,ogType:"profile",ogImage:i,twImage:i})},TopicSEO=e=>{let{title:r,description:t,slug:a,ogType:o="website"}=e,n=l().siteUrl+(a?"/static/images/topics/og/".concat(a,".png"):"/static/images/topics/og/index.png");return(0,s.jsx)(CommonSEO,{title:r,description:t,ogType:o,ogImage:n,twImage:n})},NewsletterSEO=e=>{let{title:r,description:t,slug:a,ogType:o="website"}=e,n=l().siteUrl+(a?"/static/images/newsletter/og/".concat(a,".png"):"/static/images/newsletter/og/index.png");return(0,s.jsx)(CommonSEO,{title:r,description:t,ogType:o,ogImage:n,twImage:n})},TagSEO=e=>{let{title:r,description:t}=e,a=l().siteUrl+l().socialBanner,i=l().siteUrl+l().socialBanner,c=(0,n.useRouter)();return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(CommonSEO,{title:r,description:t,ogType:"website",ogImage:a,twImage:i}),(0,s.jsx)(o(),{children:(0,s.jsx)("link",{rel:"alternate",type:"application/rss+xml",title:"".concat(t," - RSS feed"),href:"".concat(l().siteUrl).concat(c.asPath,"/feed.xml")})})]})},BlogSEO=e=>{let r,{authorDetails:t,title:a,summary:n,date:i,lastmod:c,url:d,images:m=[],canonicalUrl:g,slug:u}=e,p=new Date(i).toISOString(),x=new Date(c||i).toISOString(),h=0===m.length?[l().socialBanner]:"string"==typeof m?[m]:m,f=h.map((e,r)=>{let t=e!==l().socialBanner&&isLocalImage(e)?"/static/images/blog/og/".concat(u,"-").concat(r,".jpg"):e;return{"@type":"ImageObject",url:isLocalImage(t)?l().siteUrl+t:t}});r=t?t.map(e=>({"@type":"Person",name:e.name})):{"@type":"Person",name:l().author};let y={"@context":"https://schema.org","@type":"Article",mainEntityOfPage:{"@type":"WebPage","@id":d},headline:a,image:f,datePublished:p,dateModified:x,author:r,publisher:{"@type":"Organization",name:l().author,logo:{"@type":"ImageObject",url:"".concat(l().siteUrl).concat(l().siteLogo)}},description:n},b=f[0].url;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(CommonSEO,{title:a,description:n,ogType:"article",ogImage:f,twImage:b,canonicalUrl:g}),(0,s.jsxs)(o(),{children:[i&&(0,s.jsx)("meta",{property:"article:published_time",content:p}),c&&(0,s.jsx)("meta",{property:"article:modified_time",content:x}),(0,s.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(y,null,2)}})]})]})}},5153:function(e,r,t){"use strict";t.r(r),t.d(r,{default:function(){return WritePage}});var s=t(5893),a=t(7294),o=t(1163),n=t(2439),i=t(9108),l=t(279);function GrantReportForm(e){let{grantDetails:r}=e,t=(0,o.useRouter)(),[c,d]=(0,a.useState)(),[m,g]=(0,a.useState)(!1),{register:u,handleSubmit:p,formState:{errors:x,isDirty:h},watch:f,setValue:y,getValues:b}=(0,n.cI)({defaultValues:{project_name:r.project_name,time_spent:"",next_quarter:"",money_usage:"",own_words:"",help_needed:""},mode:"onBlur"}),j=f();(0,a.useEffect)(()=>{try{let e="".concat(i.I.REPORT_DRAFT,"_").concat(r.issue_number),t=localStorage.getItem(e);if(t){let r=JSON.parse(t);if(r.timestamp&&Date.now()-r.timestamp>2592e6){localStorage.removeItem(e);return}r.formData&&(Object.keys(r.formData).forEach(e=>{y(e,r.formData[e])}),g(!0))}}catch(e){console.error("Error loading saved form data:",e)}},[r.issue_number,y]),(0,a.useEffect)(()=>{if(h)try{let e=b(),t="".concat(i.I.REPORT_DRAFT,"_").concat(r.issue_number),s={formData:e,timestamp:Date.now()};localStorage.setItem(t,JSON.stringify(s))}catch(e){console.error("Error saving form data:",e)}},[j,r.issue_number,h,b]);let w=p(async e=>{if(d(void 0),!e.project_name||!e.time_spent||!e.next_quarter||!e.money_usage||!e.own_words){d("Please fill in all required fields before previewing");return}try{localStorage.setItem(i.I.GRANT_DETAILS,JSON.stringify(r)),localStorage.setItem(i.I.REPORT_DRAFT,JSON.stringify({project_name:e.project_name,time_spent:e.time_spent,next_quarter:e.next_quarter,money_usage:e.money_usage,own_words:e.own_words,help_needed:e.help_needed||""})),await t.push("/reports/preview")}catch(e){console.error("Error saving form data:",e),d("Failed to save form data. Please try again.")}});return m?(0,s.jsx)("div",{children:(0,s.jsxs)("form",{onSubmit:w,className:"apply flex max-w-2xl flex-col gap-4",children:[(0,s.jsx)("hr",{}),(0,s.jsx)("h2",{children:"Report Details"}),(0,s.jsxs)("div",{className:"block",children:[(0,s.jsxs)("div",{className:"relative mt-1",children:[(0,s.jsx)("input",{...u("project_name",{required:"Project name is required"}),type:"text",className:"block w-full rounded-md border-gray-300 bg-gray-100 text-gray-700 shadow-sm focus:border-orange-300 focus:ring focus:ring-orange-200 focus:ring-opacity-50 dark:border-gray-600 dark:bg-gray-700 dark:text-gray-300",disabled:!0,value:r.project_name}),(0,s.jsx)("div",{className:"absolute right-2 top-1/2 -translate-y-1/2 text-xs text-gray-500 dark:text-gray-400",children:"Pre-filled"})]}),x.project_name&&(0,s.jsx)("small",{className:"text-red-500",children:x.project_name.message})]}),(0,s.jsx)("h2",{children:"3 Questions"}),(0,s.jsxs)("label",{className:"block",children:["How did you spend your time? *",(0,s.jsx)("br",{}),(0,s.jsx)("small",{children:"Describe your progress and accomplishments since the last report. Include links to pull requests, commits, and other work."}),(0,s.jsx)("textarea",{...u("time_spent",{required:"Project updates are required"}),rows:8,className:"mt-1 block w-full rounded-md border-gray-300 font-mono text-sm text-black shadow-sm focus:border-orange-300 focus:ring focus:ring-orange-200 focus:ring-opacity-50 dark:border-gray-600 dark:bg-gray-800 dark:text-white"}),x.time_spent&&(0,s.jsx)("small",{className:"text-red-500",children:x.time_spent.message})]}),(0,s.jsxs)("label",{className:"block",children:["What are your plans for the next reporting period? *",(0,s.jsx)("br",{}),(0,s.jsx)("small",{children:"Outline your goals and plans for the next reporting period. Be specific about what you aim to accomplish."}),(0,s.jsx)("textarea",{...u("next_quarter",{required:"Plans for the next reporting period are required"}),rows:6,className:"mt-1 block w-full rounded-md border-gray-300 font-mono text-sm text-black shadow-sm focus:border-orange-300 focus:ring focus:ring-orange-200 focus:ring-opacity-50 dark:border-gray-600 dark:bg-gray-800 dark:text-white"}),x.next_quarter&&(0,s.jsx)("small",{className:"text-red-500",children:x.next_quarter.message})]}),(0,s.jsxs)("label",{className:"block",children:["How did you use the funds? *",(0,s.jsx)("br",{}),(0,s.jsx)("small",{children:"Required for legal and compliance reasons. If using for living expenses, simply stating 'living expenses' is sufficient. For project-related expenses, please provide categories (e.g., office expenses, travel, server costs, etc.). We strongly encourage you to keep records. Receipts, invoices, bank statements, etc. If OpenSats is ever audited, you must be able to send supporting information on how you used your grant proceeds."}),(0,s.jsx)("textarea",{...u("money_usage",{required:"Use of funds information is required"}),rows:4,className:"mt-1 block w-full rounded-md border-gray-300 font-mono text-sm text-black shadow-sm focus:border-orange-300 focus:ring focus:ring-orange-200 focus:ring-opacity-50 dark:border-gray-600 dark:bg-gray-800 dark:text-white"}),x.money_usage&&(0,s.jsx)("small",{className:"text-red-500",children:x.money_usage.message})]}),(0,s.jsx)("hr",{}),(0,s.jsx)("h2",{children:"tl;dr - In Your Own Words"}),(0,s.jsxs)("label",{className:"block",children:[(0,s.jsxs)("small",{children:["Write one paragraph about what happened this period. What was most important to you, what did you accomplish? Use your own words. Do not use an LLM or any other AI to write this. We want to hear from"," ",(0,s.jsx)("em",{children:"you"}),", not from your slop-slinging clanker. *"]}),(0,s.jsx)("textarea",{...u("own_words",{required:"Please write one paragraph in your own words",validate:e=>{let r=e.trim();return!/\n\s*\n/.test(r)||"Please keep this to a single paragraph"}}),rows:4,className:"mt-1 block w-full rounded-md border-gray-300 font-mono text-sm text-black shadow-sm focus:border-orange-300 focus:ring focus:ring-orange-200 focus:ring-opacity-50 dark:border-gray-600 dark:bg-gray-800 dark:text-white"}),x.own_words&&(0,s.jsx)("small",{className:"text-red-500",children:x.own_words.message})]}),(0,s.jsx)("hr",{}),(0,s.jsxs)("label",{className:"block",children:["Is there anything we could help with?",(0,s.jsx)("br",{}),(0,s.jsxs)("small",{children:["Let us know if you need any technical assistance, introductions, or have any other questions that aren't covered by the"," ",(0,s.jsx)(l.Z,{href:"/faq/grantee",className:"font-bold",children:"Grantee FAQ"}),"."]}),(0,s.jsx)("textarea",{...u("help_needed"),rows:4,className:"mt-1 block w-full rounded-md border-gray-300 font-mono text-sm text-black shadow-sm focus:border-orange-300 focus:ring focus:ring-orange-200 focus:ring-opacity-50 dark:border-gray-600 dark:bg-gray-800 dark:text-white"})]}),c&&(0,s.jsx)("div",{className:"rounded-md border border-red-200 bg-red-50 p-4 dark:border-red-800 dark:bg-red-900",children:(0,s.jsxs)("div",{className:"flex",children:[(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5 text-red-400",viewBox:"0 0 20 20",fill:"currentColor",children:(0,s.jsx)("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z",clipRule:"evenodd"})}),(0,s.jsxs)("div",{className:"ml-3",children:[(0,s.jsx)("h3",{className:"text-sm font-medium text-red-800 dark:text-red-200",children:"Submission Error"}),(0,s.jsx)("div",{className:"mt-2 text-sm text-red-700 dark:text-red-300",children:(0,s.jsx)("p",{children:c})})]})]})}),(0,s.jsxs)("div",{className:"flex justify-between space-x-4",children:[(0,s.jsxs)("button",{type:"button",onClick:()=>t.push("/reports/submit"),className:"inline-flex items-center rounded-md border border-gray-300 bg-white px-4 py-2 text-sm font-medium text-gray-700 shadow-sm hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-orange-500 focus:ring-offset-2 dark:border-gray-600 dark:bg-gray-700 dark:text-gray-200 dark:hover:bg-gray-600",children:[(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"mr-2 h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M11 17l-5-5m0 0l5-5m-5 5h12"})}),"Back"]}),(0,s.jsx)("button",{type:"submit",className:"rounded bg-orange-500 px-4 py-2 text-sm font-medium text-white hover:bg-orange-600 focus:outline-none focus:ring-2 focus:ring-orange-500 focus:ring-offset-2",children:"Preview Report"})]})]})}):(0,s.jsx)("div",{children:(0,s.jsxs)("form",{onSubmit:w,className:"apply flex max-w-2xl flex-col gap-4",children:[(0,s.jsx)("hr",{}),(0,s.jsx)("h2",{children:"Report Details"}),(0,s.jsxs)("div",{className:"block",children:[(0,s.jsxs)("div",{className:"relative mt-1",children:[(0,s.jsx)("input",{...u("project_name",{required:"Project name is required"}),type:"text",className:"block w-full rounded-md border-gray-300 bg-gray-100 text-gray-700 shadow-sm focus:border-orange-300 focus:ring focus:ring-orange-200 focus:ring-opacity-50 dark:border-gray-600 dark:bg-gray-700 dark:text-gray-300",disabled:!0,value:r.project_name}),(0,s.jsx)("div",{className:"absolute right-2 top-1/2 -translate-y-1/2 text-xs text-gray-500 dark:text-gray-400",children:"Pre-filled"})]}),x.project_name&&(0,s.jsx)("small",{className:"text-red-500",children:x.project_name.message})]}),(0,s.jsx)("h2",{children:"3 Questions"}),(0,s.jsxs)("label",{className:"block",children:["How did you spend your time? *",(0,s.jsx)("br",{}),(0,s.jsx)("small",{children:"Describe your progress and accomplishments since the last report. Include links to pull requests, commits, and other work."}),(0,s.jsx)("textarea",{...u("time_spent",{required:"Project updates are required"}),rows:8,className:"mt-1 block w-full rounded-md border-gray-300 font-mono text-sm text-black shadow-sm focus:border-orange-300 focus:ring focus:ring-orange-200 focus:ring-opacity-50 dark:border-gray-600 dark:bg-gray-800 dark:text-white"}),x.time_spent&&(0,s.jsx)("small",{className:"text-red-500",children:x.time_spent.message})]}),(0,s.jsxs)("label",{className:"block",children:["What are your plans for the next reporting period? *",(0,s.jsx)("br",{}),(0,s.jsx)("small",{children:"Outline your goals and plans for the next reporting period. Be specific about what you aim to accomplish."}),(0,s.jsx)("textarea",{...u("next_quarter",{required:"Plans for the next reporting period are required"}),rows:6,className:"mt-1 block w-full rounded-md border-gray-300 font-mono text-sm text-black shadow-sm focus:border-orange-300 focus:ring focus:ring-orange-200 focus:ring-opacity-50 dark:border-gray-600 dark:bg-gray-800 dark:text-white"}),x.next_quarter&&(0,s.jsx)("small",{className:"text-red-500",children:x.next_quarter.message})]}),(0,s.jsxs)("label",{className:"block",children:["How did you use the funds? *",(0,s.jsx)("br",{}),(0,s.jsx)("small",{children:"Required for legal and compliance reasons. If using for living expenses, simply stating 'living expenses' is sufficient. For project-related expenses, please provide categories (e.g., office expenses, travel, server costs, etc.). We strongly encourage you to keep records. Receipts, invoices, bank statements, etc. If OpenSats is ever audited, you must be able to send supporting information on how you used your grant proceeds."}),(0,s.jsx)("textarea",{...u("money_usage",{required:"Use of funds information is required"}),rows:4,className:"mt-1 block w-full rounded-md border-gray-300 font-mono text-sm text-black shadow-sm focus:border-orange-300 focus:ring focus:ring-orange-200 focus:ring-opacity-50 dark:border-gray-600 dark:bg-gray-800 dark:text-white"}),x.money_usage&&(0,s.jsx)("small",{className:"text-red-500",children:x.money_usage.message})]}),(0,s.jsx)("hr",{}),(0,s.jsx)("h2",{children:"tl;dr - In Your Own Words"}),(0,s.jsxs)("label",{className:"block",children:[(0,s.jsxs)("small",{children:["Write one paragraph about what happened this period. What was most important to you, what did you accomplish? Use your own words. Do not use an LLM or any other AI to write this. We want to hear from"," ",(0,s.jsx)("em",{children:"you"}),", not from your slop-slinging clanker. *"]}),(0,s.jsx)("textarea",{...u("own_words",{required:"Please write one paragraph in your own words",validate:e=>{let r=e.trim();return!/\n\s*\n/.test(r)||"Please keep this to a single paragraph"}}),rows:4,className:"mt-1 block w-full rounded-md border-gray-300 font-mono text-sm text-black shadow-sm focus:border-orange-300 focus:ring focus:ring-orange-200 focus:ring-opacity-50 dark:border-gray-600 dark:bg-gray-800 dark:text-white"}),x.own_words&&(0,s.jsx)("small",{className:"text-red-500",children:x.own_words.message})]}),(0,s.jsx)("hr",{}),(0,s.jsxs)("label",{className:"block",children:["Is there anything we could help with?",(0,s.jsx)("br",{}),(0,s.jsxs)("small",{children:["Let us know if you need any technical assistance, introductions, or have any other questions that aren't covered by the"," ",(0,s.jsx)(l.Z,{href:"/faq/grantee",className:"font-bold",children:"Grantee FAQ"}),"."]}),(0,s.jsx)("textarea",{...u("help_needed"),rows:4,className:"mt-1 block w-full rounded-md border-gray-300 font-mono text-sm text-black shadow-sm focus:border-orange-300 focus:ring focus:ring-orange-200 focus:ring-opacity-50 dark:border-gray-600 dark:bg-gray-800 dark:text-white"})]}),c&&(0,s.jsx)("div",{className:"rounded-md border border-red-200 bg-red-50 p-4 dark:border-red-800 dark:bg-red-900",children:(0,s.jsxs)("div",{className:"flex",children:[(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5 text-red-400",viewBox:"0 0 20 20",fill:"currentColor",children:(0,s.jsx)("pa
1th",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z",clipRule:"evenodd"})}),(0,s.jsxs)("div",{className:"ml-3",children:[(0,s.jsx)("h3",{className:"text-sm font-medium text-red-800 dark:text-red-200",children:"Submission Error"}),(0,s.jsx)("div",{className:"mt-2 text-sm text-red-700 dark:text-red-300",children:(0,s.jsx)("p",{children:c})})]})]})}),(0,s.jsxs)("div",{className:"flex justify-between space-x-4",children:[(0,s.jsxs)("button",{type:"button",onClick:()=>t.push("/reports/submit"),className:"inline-flex items-center rounded-md border border-gray-300 bg-white px-4 py-2 text-sm font-medium text-gray-700 shadow-sm hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-orange-500 focus:ring-offset-2 dark:border-gray-600 dark:bg-gray-700 dark:text-gray-200 dark:hover:bg-gray-600",children:[(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"mr-2 h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M11 17l-5-5m0 0l5-5m-5 5h12"})}),"Back"]}),(0,s.jsx)("button",{type:"submit",className:"rounded bg-orange-500 px-4 py-2 text-sm font-medium text-white hover:bg-orange-600 focus:outline-none focus:ring-2 focus:ring-orange-500 focus:ring-offset-2",children:"Preview Report"})]})]})})}var c=t(2251),d=t(1573);function WritePage(){let e=(0,o.useRouter)(),[r,t]=(0,a.useState)(null),[n,m]=(0,a.useState)(null);return((0,a.useEffect)(()=>{let r=localStorage.getItem(i.I.GRANT_DETAILS);if(!r){e.replace("/reports/submit");return}try{t(JSON.parse(r))}catch(r){m("Invalid grant details"),e.replace("/reports/submit")}},[e]),n)?(0,s.jsx)("div",{className:"text-red-500",children:n}):r?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.TQ,{title:"Write Report",description:"Write your OpenSats grant progress report"}),(0,s.jsx)(d.Z,{title:"Write Report",image:"/static/images/avatar.png",children:(0,s.jsxs)("div",{className:"space-y-6",children:[(0,s.jsx)("p",{className:"mb-6",children:"Write your progress report below. You can use markdown formatting to structure your content. Take your time to provide detailed information about your progress, challenges, and future plans."}),(0,s.jsxs)("div",{className:"text-base text-gray-800 dark:text-gray-200",children:[(0,s.jsxs)("p",{children:["Refer to our"," ",(0,s.jsx)(l.Z,{href:"https://opensats.org/faq/grantee",className:"font-bold",children:"Grantee FAQ"})," ","for answers to common questions about progress report. In particular:"]}),(0,s.jsxs)("ul",{className:"mt-2",children:[(0,s.jsx)("li",{children:(0,s.jsx)(l.Z,{href:"/faq/grantee#what-does-an-ideal-progress-report-look-like",children:"What does an ideal progress report look like?"})}),(0,s.jsx)("li",{children:(0,s.jsx)(l.Z,{href:"/faq/grantee#what-does-a-poor-progress-report-look-like",children:"What does a poor progress report look like?"})})]})]}),(0,s.jsx)(GrantReportForm,{grantDetails:r})]})})]}):(0,s.jsx)("div",{children:"Loading..."})}},9108:function(e,r,t){"use strict";t.d(r,{HW:function(){return o},I:function(){return s},RZ:function(){return a}});let s={GRANT_DETAILS:"opensats_grant_details",REPORT_DRAFT:"opensats_report_draft",GRANT_ID:"opensats_grant_id",REPORT_ID:"opensats_report_id",REPORT_CONTENT:"opensats_report_content"},a={GRANT_ID_REQUIRED:"Grant ID is required",GRANT_ID_INVALID:"A valid Grant ID is required to start the submission process",GRANT_NOT_FOUND:"Grant not found, contact support for assistance",PAST_GRANT:"This is a past grant that already ended. Please use your new grant number."},o="https://adtjkuks.donorsupport.co/page/opensats"}},function(e){e.O(0,[5675,2439,9774,2888,179],function(){return e(e.s=6150)}),_N_E=e.O()}]);

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.