PageSourceSearch

https://upsun.com/component---src-pages-job-tsx-34379bb0474d3c83f22c.js

js upsun.com collected 2026-10-02 06:51:08 UTC 5,835 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkupsun_com=self.webpackChunkupsun_com||[]).push([[6484],{2006:function(e,t,a){a.r(t),a.d(t,{Head:function(){return v},default:function(){return k}});var n=a(6540),l=a(7437),o=a(1582),r=a(7486),i=a(8941),s=a(6662),u=a(6504),c=a(9214),d=a(7082),p=a(3950),f=a(2769),m=a(9473),h=a(8980);function b(){return b=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},b.apply(null,arguments)}var g=({form:e,jobId:t,setSubmit:o,...r})=>{const i=a(3092),s=(0,c.u)();let u;e&&(u=e.map((e=>{let t;switch(e.fields[0].type){case"input_text":t=(0,l.Y)("div",{key:e.fields[0].name},(0,l.Y)("input",{type:"email"===e.fields[0].name?"email":"text",name:e.fields[0].name,id:e.fields[0].name,required:e.required}),(0,l.Y)("label",{htmlFor:e.fields[0].name},e.label));break;case"input_file":t=(0,l.Y)("div",{key:e.fields[0].name},(0,l.Y)("input",{type:"file",id:e.fields[0].name,name:e.fields[0].name,accept:".pdf,.doc,.docx,.txt,.rtf,application/msword",required:e.required}),(0,l.Y)("label",{htmlFor:e.fields[0].name},e.label));break;case"multi_value_single_select":t=(0,l.Y)("div",{key:e.fields[0].name},(0,l.Y)("select",{name:e.fields[0].name,id:e.fields[0].name,required:e.required},(0,l.Y)("option",{value:""},"Please select"),e.fields[0].values.map((e=>(0,l.Y)("option",{key:e.value,value:e.value},e.label)))),(0,l.Y)("label",{htmlFor:e.fields[0].name},e.label));break;default:t=(0,l.Y)("div",{key:e.fields[0].name})}return t})));const g=(0,l.AH)("display:flex;flex-direction:column;gap:",(0,d.a8)(16),";align-items:flex-end;background:","light"===s.name?f.A.NeutralBgDefault:m.A.NeutralBgDefault,";padding:",(0,d.a8)(16),";border-radius:",(0,d.a8)(8),";h2{align-self:flex-start;}label{display:block;}div{width:100%;display:flex;flex-direction:column-reverse;input,select{width:100%;margin-bottom:",(0,d.a8)(16),';}}input:required+label::after{content:" *";color:red;}select:required+label::after{content:" *";color:red;}input[type="submit"]{width:auto;margin:0 auto;}',"");return(0,l.Y)(n.Fragment,null,(0,l.Y)("form",b({css:g},r,{id:"greenhouse-form",onSubmit:e=>{e.preventDefault();(async e=>{if("undefined"!=typeof window){const a=window.grecaptcha;a.enterprise.ready((async()=>{const n=await a.enterprise.execute("6LfDgmEpAAAAAL1uvkI2L8bHGOSBlGpyKkOlLzOZ",{action:"SUBMIT"});try{const a=await i(`/apply/${t}?token=${n}`,{method:"POST",body:e});o(a.status)}catch(l){o(401),console.error(l)}}))}})(new FormData(e.target))}}),(0,l.Y)(p.A,{level:2,levelStyle:4,text:"Apply for this job"}),u,(0,l.Y)(h.A,{type:"submit",text:"Submit application"})))};var y={name:"1azakc",styles:"text-align:center"},Y={name:"110do3k",styles:"ul,ol{margin-bottom:2rem;}"};const v=({location:e})=>(0,l.Y)(u.k,{title:"Job application | Upsun",description:"Join a global, remote-first team committed to fairness, sustainability, and your career growth. Discover your next role at Upsun",pathname:e.pathname});var k=({location:e})=>{const t=new URLSearchParams(e.search),a={title:"",content:"",location:{name:""},departments:[{name:""}],questions:[{label:"",required:!0,fields:[{name:"",type:"",values:[]}]}]},[u]=(0,n.useState)(t.get("gh_jid")),[c,f]=(0,n.useState)(0),[m,h]=(0,n.useState)(a);(0,n.useEffect)((()=>{u&&fetch(`https://boards-api.greenhouse.io/v1/boards/platformsh/jobs/${u}?questions=true`).then((e=>200===e.status?e.json():a)).then((e=>{h(e)})).catch((e=>{console.error("An error happened fetching greenhouse data: ",e)}))}),[u&&"0"!==u]);const b=Y;return(0,l.Y)(r.A,{location:e.pathname},(0,l.Y)(o.Script,{src:"https://www.google.com/recaptcha/enterprise.js?render=6LfDgmEpAAAAAL1uvkI2L8bHGOSBlGpyKkOlLzOZ"}),(0,l.Y)(i.A,null,0===c&&(0,l.Y)(s.A,{colStart:1,colEnd:13,colStartMd:2,colEndMd:12,colStartLg:3,colEndLg:11},(0,l.Y)(o.Link,{to:"/jobs/"},"All jobs"),(0,l.Y)(p.A,{level:1,text:m.title}),(0,l.Y)("p",null,u&&(0,l.Y)(n.Fragment,null,(0,l.Y)("strong",null,"Location:")," ",m.location.name),!u&&(0,l.Y)("p",{css:y},(0,l.Y)("strong",null,"Invalid job id, click ",(0,l.Y)("a",{href:"/jobs/"},"here")," to go back to the job board!"))),(0,l.Y)("div",{css:b,dangerouslySetInnerHTML:{__html:(v=m.content,v.replaceAll("&lt;","<").replaceAll("&gt;",">").replaceAll("&quot;",'"').replaceAll("&amp;","&").replaceAll("style","data-style").replaceAll("&nbsp;","<p></p>"))}}),u&&"0"!==u&&(0,l.Y)(g,{form:m.questions,jobId:u,setSubmit:f})),0!==c&&(0,l.Y)(s.A,{colStart:1,colEnd:13,colStartMd:2,colEndMd:12,colStartLg:3,colEndLg:11},(0,l.Y)(o.Link,{to:"/jobs/"},"View more jobs at Platform.sh"),200===c&&(0,l.Y)(n.Fragment,null,(0,l.Y)(p.A,{level:1,text:"Thank y
1ou for applying",css:(0,l.AH)("margin-top:",(0,d.a8)(48),";","")}),(0,l.Y)("p",null,"Thank you for your interest in our company and open positions."),(0,l.Y)("p",null,"Your application has been received. If there is a fit, someone will be getting back to you within 2 weeks."),(0,l.Y)("p",null,"In the meantime, do not hesitate and setup your first project with Upsun; your free trial is"," ",(0,l.Y)("a",{href:"https://auth.upsun.com/register/"},"here"),".")),200!==c&&(0,l.Y)(n.Fragment,null,(0,l.Y)(p.A,{level:1,text:"Oh no!",css:(0,l.AH)("margin-top:",(0,d.a8)(48),";","")}),(0,l.Y)("p",null,"Looks like something went wrong processing your application, please try again.")),(0,l.Y)("a",{href:`/job/?gh_jid=${u}`},"Back to application"))));var v}},3092:function(e,t,a){var n=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==a.g)return a.g;throw new Error("unable to locate global object")}();e.exports=t=n.fetch,n.fetch&&(t.default=n.fetch.bind(n)),t.Headers=n.Headers,t.Request=n.Request,t.Response=n.Response}}]);
2//# sourceMappingURL=component---src-pages-job-tsx-34379bb0474d3c83f22c.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.