PageSourceSearch

https://latinasintech.org/_next/static/chunks/pages/lit-recruit/post-a-job/[id]-73635839a842e199.js

js latinasintech.org collected 2026-10-02 02:16:41 UTC 27,902 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3750,2998,5937],{55839:function(e,a,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/lit-recruit/post-a-job/[id]",function(){return t(65821)}])},72998:function(e,a,t){"use strict";t.r(a);var l=t(47568),s=t(70655),n=t(85893),i=t(9669),r=t.n(i),o=t(5152),c=t.n(o),d=t(67294),u=t(87771),p=c()((function(){return Promise.resolve().then(t.bind(t,67746))}),{loadableGenerated:{webpack:function(){return[67746]}}});a.default=function(e){var a=e.endpoint,t=e.inputName,i=e.inputValue,o=e.setValue,c=(0,d.useState)([]),m=c[0],x=c[1],h=(0,d.useState)(0),f=h[0],_=h[1],j=(0,d.useState)(0),v=j[0],g=j[1],y=(0,d.useState)(!1),b=y[0],w=y[1];return(0,d.useEffect)((function(){var e=function(){var e=(0,l.Z)((function(){var e;return(0,s.__generator)(this,(function(t){switch(t.label){case 0:return[4,r().get("".concat("https://api.latinasintech.org","/").concat(a))];case 1:return[4,t.sent().data];case 2:return e=t.sent().data,_(e.current_page),g(e.total),e.data&&0==m.length&&Object.keys(e.data).forEach((function(a){m.push(e.data[a])})),[2]}}))}));return function(){return e.apply(this,arguments)}}();e()}),[a,m]),(0,n.jsxs)(n.Fragment,{children:[m.length>0&&(0,n.jsxs)("div",{className:"flex flex-col gap-3",children:[m.map((function(e){return(0,n.jsxs)("label",{className:"flex flex-row items-center justify-start gap-3",children:[(0,n.jsx)("input",{name:t,type:"radio",value:e.id,checked:i==e.id,onChange:function(e){e.target.checked&&o(t,e.target.value)}}),(0,n.jsx)("p",{className:"text-sm font-normal",children:(null===e||void 0===e?void 0:e.ticket_type)?e.ticket_type:e.name})]},e.id)})),b&&(0,n.jsx)("span",{className:"flex items-center justify-center w-full h-20",children:(0,n.jsx)(u.Z7b,{size:30,className:"animate-spin text-litPink"})}),(0,n.jsx)(p,{currentPage:f+1,total:v,onPageChange:function(){var e=(0,l.Z)((function(e){var t,l;return(0,s.__generator)(this,(function(s){switch(s.label){case 0:return w(!0),[4,r().get("".concat("https://api.latinasintech.org","/").concat(a,"&page=").concat(e),{withCredentials:!0})];case 1:return t=s.sent(),l=[],Object.keys(t.data.data.data).forEach((function(e){l.push(t.data.data.data[e])})),x(m.concat(l)),w(!1),[2]}}))}));return function(a){return e.apply(this,arguments)}}()})]}),0==m.length&&(0,n.jsx)("div",{className:"flex items-center justify-center w-full h-20",children:(0,n.jsx)(u.Z7b,{size:30,className:"animate-spin text-litPink"})}),!m&&(0,n.jsx)("div",{className:"flex flex-row flex-wrap justify-start gap-1 px-4",children:(0,n.jsx)("label",{className:"w-full mb-5 text-base font-semibold text-black",children:"No data to show"})})]})}},5937:function(e,a,t){"use strict";t.r(a);
1var l=t(85893),s=t(63044),n=t(19042);a.default=function(e){var a=e.children,t=e.title,i=e.msg;return(0,l.jsx)("div",{className:"w-full lg:max-w-sm",children:(0,l.jsxs)("div",{className:"w-full flex flex-col gap-3 py-5 bg-white border rounded-lg px-7 h-fit",children:[(0,l.jsxs)("div",{className:"flex",children:[(0,l.jsx)("h6",{className:"w-full text-lg font-semibold",children:t}),i&&(0,l.jsx)(s.u,{content:i,trigger:"hover",children:(0,l.jsx)(n.HiQuestionMarkCircle,{size:21,className:"mb-2 ml-2 mr-2 hover:text-litGray text-litPink"})})]}),a]})})}},65821:function(e,a,t){"use strict";t.r(a),t.d(a,{__N_SSP:function(){return Q}});var l=t(47568),s=t(26042),n=t(69396),i=t(70655),r=t(85893),o=t(67294),c=t(10818),d=t(367),u=t(69116),p=t(2962),m=t(5152),x=t.n(m),h=t(41664),f=t.n(h),_=t(82175),j=t(74231),v=t(80129),g=t(78633),y=t(7696),b=t(19042),w=t(63044),N=t(9198),k=t.n(N),P=(t(39828),t(19432)),D=t(65708),V=t(51073),M=t(72058),F=t(65549),Y=t(57843),Z=t(5937),E=t(72998),C=t(49335),A=t(21721),S=t(81826),T=t(86065),B=t(976),O=t(40481),z=t(9473),I=x()((function(){return t.e(5549).then(t.bind(t,55549))}),{loadableGenerated:{webpack:function(){return[55549]}}}),U=x()((function(){return t.e(9346).then(t.bind(t,49346))}),{loadableGenerated:{webpack:function(){return[49346]}}}),X=x()((function(){return Promise.all([t.e(2510),t.e(6911),t.e(5225),t.e(6591)]).then(t.bind(t,56591))}),{loadableGenerated:{webpack:function(){return[56591]}}}),G=x()((function(){return Promise.all([t.e(509),t.e(6660),t.e(5935),t.e(4622)]).then(t.bind(t,74622))}),{loadableGenerated:{webpack:function(){return[74622]}}});function L(e){return new Date(e.setDate(e.getDate()+45))}function J(e){var a=e.setDate(e.getDate()-1);return new Date(a)}var q=function(e){var a,t,m,x,h=e.job,N=e.id,B=e.metaData,O=e.seo,q=d.h.dispatch,Q=(0,z.v9)((function(e){return e.authReducer})),W=Q.accessToken,H=Q.user,R=H?null===H||void 0===H?void 0:H.first_name:"",K=(0,o.useState)(null),$=K[0],ee=K[1],ae=(0,o.useState)(!1),te=ae[0],le=ae[1],se=(0,o.useState)(h.company),ne=se[0],ie=se[1],re=(0,o.useState)(!1),oe=re[0],ce=re[1],de=(0,o.useState)({closing_date:h&&h.closing_date?new Date((0,P.WU)((0,P.Qc)(h.closing_date,"YYYY-MM-DD"),"MM/DD/YYYY")):L(new Date)}),ue=de[0],pe=de[1],me=[J(new Date),L(new Date)],xe={name:h&&h.name?null===h||void 0===h?void 0:h.name:"",description:h&&h.description?null===h||void 0===h?void 0:h.description:"",position_filled:h&&h.position_filled?h.position_filled:0,post_status_id:h&&h.post_status&&h.post_status.id&&h.post_status.id?h.post_status.id:"",company_id:h&&h.company&&h.company.id?null===(a=h.company)||void 0===a?void 0:a.id:null,closing_date:h&&h.closing_date?(0,P.WU)((0,P.Qc)(h.closing_date,"YYYY-MM-DD"),"MM/DD/YYYY"):(0,P.WU)(L(new Date),"MM/DD/YYYY"),application_email_url:h&&h.application_email_url?h.application_email_url:"",permanent_position:h&&h.permanent_position?h.permanent_position:0,excerpt:h&&h.excerpt?null===h||void 0===h?void 0:h.excerpt:"",company_name:h&&h.company&&(null===(t=h.company)||void 0===t?void 0:t.name)?null===(m=h.company)||void 0===m?void 0:m.name:"",company_tagline:h&&h.company&&h.company.company_tagline?h.company.company_tagline:"",company_twitter_url:h&&h.company&&h.company.twitter_url?h.company.twitter_url:"",company_status:h&&h.company&&h.company.company_status?h.company.company_status:"",company_excerpt:h&&h.company&&h.company.excerpt?h.company.excerpt:"",company_video:h&&h.company&&h.company.company_video?h.company.company_video:"",company_website_url:h&&h.company&&h.company.website_url?h.company.website_url:"",attach_functional_areas:[],attach_project_management_areas:[],attach_design_areas:[],attach_data_areas:[],attach_engineer_areas:[],attach_seniority_levels:[],attach_job_types:[],attach_job_titles:[],attach_job_locations:[],seniority_levels:h.seniority_levels&&(null===(x=h.seniority_levels[h.seniority_levels.length-1])||void 0===x?void 0:x.id)},he=function(){var e=(0,l.Z)((function(e){var a,t,l,s,n;return(0,i.__generator)(this,(function(i){switch(i.label){case 0:ie(null),i.label=1;case 1:return i.trys.push([1,3,,4]),t=v.stringify({populate:["perks"]},{arrayFormat:"brackets"}),l={accessToken:W,id:e,query:t},[4,q((0,u.oe)({data:l}))];case 2:return s=i.sent(),ie(null===(a=s.payload)||void 0===a?void 0:a.CompanyById.data),[3,4];case 3:return n=i.sent(),console.log("error",n),ie(null),[3,4];case 4:return[2]}}
1))}));return function(a){return e.apply(this,arguments)}}(),fe=function(){var e=(0,l.Z)((function(e){return(0,i.__generator)(this,(function(a){try{(0,M.Z)(ce,(0,l.Z)((function(){var a,t,l,s,n,r,o;return(0,i.__generator)(this,(function(i){switch(i.label){case 0:return e.seniority_levels>0&&!h.seniority_levels.map((function(e){return e.id})).includes(e.seniority_levels)&&void 0!==e.seniority_levels&&(e.attach_seniority_levels=[e.seniority_levels],e.detach_seniority_levels=h.seniority_levels.map((function(e){return e.id}))),xe.closing_date!==e.closing_date&&(e.closing_date=e&&e.closing_date&&e.closing_date.toString().replaceAll("/","-"),e.expires_at=e&&e.closing_date&&e.closing_date.toString().replaceAll("/","-")),a=(0,Y.Z)(xe,e),Object.keys(a).length>0?(n={values:a,id:N,accessToken:W},[4,q((0,c.yB)({data:n}))]):[3,2];case 1:if(r=i.sent(),ee(null===(t=r.payload)||void 0===t?void 0:t.EditJob),console.log("Message: ",null===r||void 0===r||null===(l=r.payload)||void 0===l?void 0:l.EditJob),null===(s=r.payload)||void 0===s?void 0:s.EditJob.success){if(2!=e.post_status_id&&9!=e.post_status_id)return[2,r];le(!0)}return[3,3];case 2:return ee(o={message:"Nothing to edit.",success:!0,status:200}),[2,o];case 3:return[2]}}
1))})),"/lit-recruit")}catch(t){return console.log("Error edit jobs",t),[2,!1]}return[2]}))}));return function(a){return e.apply(this,arguments)}}();return(0,r.jsxs)("section",{className:"w-full",children:[(0,r.jsx)(p.PB,{title:"".concat(O&&O.title?O.title:"Post a Job"," | Latinas in Tech\xae"),description:""}),(0,r.jsx)(I,{className:"bg-post-job bg-[center_bottom] bg-cover ",children:(0,r.jsxs)("div",{className:"py-12 xl:w-[1080px] mx-auto gap-5",children:[(0,r.jsx)("h1",{className:"text-4xl font-bold text-white",children:B&&(null===B||void 0===B?void 0:B.name)}),(0,r.jsx)("h2",{className:"text-2xl font-bold text-white",children:"Upload a new job post from this page."}),(0,r.jsx)("p",{className:"text-sm text-white lg:w-2/3",children:"Please note that the Company Details section only need to be filled once. The information will be stored and populated in future postings"})]})}),te?(0,r.jsx)(G,{data:$.data}):(0,r.jsx)("div",{className:"container m-auto max-w-7xl",children:(0,r.jsxs)("div",{className:"py-20",children:[(0,r.jsx)(_.J9,{initialValues:xe,onSubmit:function(e){fe(e)},validationSchema:j.Ry({name:j.Z_().required("Please enter job title"),excerpt:j.Z_().required("Please enter the short description"),description:j.Z_().required("Please enter the description"),application_email_url:j.Z_().required("Please enter the application email or url"),permanent_position:j.Z_().required("Please select min 1 option."),attach_job_types:j.IX().nullable(),attach_functional_areas:j.IX().nullable(),attach_seniority_levels:j.IX().nullable(),attach_engineer_areas:j.IX().nullable(),attach_data_areas:j.IX().nullable(),attach_design_areas:j.IX().nullable(),attach_project_management_areas:j.IX().nullable(),attach_job_locations:j.IX().nullable(),closing_date:j.hT().required("Please enter the closing date").min(J(new Date),"Closing date must be later than today").max(L(new Date),"Closing date must be early than 45 days: "+(0,P.WU)(L(new Date),"MM/DD/YYYY"))}),validate:function(e){var a,t,l,s,n,i,r,o={};return e.company_id||null!=e.company_id||e.company_name||(o.company_id="Please select any company or add a new company"),0===(null===(a=e.attach_job_types)||void 0===a?void 0:a.length)&&0===(null===(t=h.job_types)||void 0===t?void 0:t.length)&&(o.attach_job_types="Please select min 1 option."),0===(null===(l=e.attach_functional_areas)||void 0===l?void 0:l.length)&&0===(null===(s=h.functional_areas)||void 0===s?void 0:s.length)&&(o.attach_functional_areas="Please select min 1 option."),""===e.seniority_levels&&0===(null===(n=h.seniority_levels)||void 0===n?void 0:n.length)&&(o.seniority_levels="Please select min 1 option."),0===(null===(i=e.attach_job_locations)||void 0===i?void 0:i.length)&&0===(null===(r=h.job_locations)||void 0===r?void 0:r.length)&&(o.attach_job_locations="Please select min 1 option."),o},children:function(e){var a,t,l,i,o,c,d,u;return(0,r.jsxs)(_.l0,{children:[(0,r.jsxs)("div",{className:"flex flex-col w-full gap-5",children:[(0,r.jsxs)("div",{className:"flex flex-col gap-4 py-3 border-b lg:flex-row",children:[(0,r.jsx)("div",{className:"pl-2 text-base font-normal w-80",children:(0,r.jsx)("p",{children:"Your account"})}),(0,r.jsxs)("div",{className:"flex flex-row items-center w-full gap-1",children:[(0,r.jsxs)("p",{children:["You are currently signed in as",(0,r.jsxs)("span",{className:"font-bold",children:[" ",R]})]}),(0,r.jsx)(y._K6,{className:"text-lg text-litPink"}),(0,r.jsx)("p",{className:"text-litPink",children:"Sign out"})]})]}),(0,r.jsxs)("div",{className:"flex flex-col gap-4 py-3 border-b lg:flex-row",children:[(0,r.jsx)("div",{className:"pl-2 text-base font-normal w-80",children:(0,r.jsxs)("p",{children:["Job Title",(0,r.jsx)("span",{className:"text-2xl text-litPink",children:"*"})]})}),(0,r.jsxs)("div",{className:"w-full",children:[(0,r.jsx)(_.gN,{className:"w-full mb-2",type:"text",id:"name",name:"name",value:null===(a=e.values)||void 0===a?void 0:a.name,onChange:function(a){return e.setFieldValue(a.target.name,a.target.value)}}),(0,r.jsx)("div",{className:"ErrorMessege",children:(0,r.jsx)(_.Bc,{name:"name"})})]})]}),(0,r.jsxs)("div",{className:"flex flex-col gap-4 py-3 border-b lg:flex-row",children:[(0,r.jsx)("div",{className:"pl-2 text-base font-normal w-80",children:(0,r.jsxs)("p",{children:["Job Type",(0,r.jsx)("span",{className:"text-2xl text-litPink",children:"*"})]})}),(0,r.jsxs)("div",{className:"w-full",children:[(0,r.jsx)(U,{endpoint:"api/job_types/list",filters:"order=asc&paginate=0",name:"attach_job_types",setFormValue:e.setFieldValue,initialValues:h.job_types.length>0?h.job_types:[]}),(0,r.jsx)("div",{className:"ErrorMessege",children:(0,r.jsx)(_.Bc,{name:"attach_job_types"})})]})]}),(0,r.jsxs)("div",{className:"flex flex-col gap-4 py-3 border-b lg:flex-row",children:[(0,r.jsx)("div",{className:"pl-2 text-base font-normal w-80",children:(0,r.jsxs)("p",{children:["Functional Area",(0,r.jsx)("span",{className:"text-2xl text-litPink",children:"*"})]})}),(0,r.jsxs)("div",{className:"w-full",children:[(0,r.jsx)(U,{endpoint:"api/areas/list",filters:"order_by_name=asc&type[]=general",name:"attach_functional_areas",setFormValue:e.setFieldValue,initialValues:h.functional_areas.length>0?h.functional_areas:[]}),(0,r.jsx)("div",{className:"ErrorMessege",children:(0,r.jsx)(_.Bc,{name:"attach_functional_areas"})})]})]}),(e.values.attach_functional_areas.includes(1883)||h.functional_areas.map((function(e){return e.id})).includes(1883))&&!(null===(t=e.values.detach_functional_areas)||void 0===t?void 0:t.includes(1883))&&(0,r.jsxs)("div",{className:"flex flex-col gap-4 py-3 border-b lg:flex-row",children:[(0,r.jsxs)("div",{className:"flex flex-row items-center justify-end gap-1 pl-2 text-base font-normal w-80",children:[(0,r.jsx)("p",{children:"Tools"}),(0,r.jsx)(g.lzl,{}),(0,r.jsx)("p",{children:"Project Management"}),(0,r.jsx)("span",{className:"text-2xl text-litPink",children:"*"})]}),(0,r.jsx)("div",{className:"w-full",children:(0,r.jsx)(U,{endpoint:"api/areas/list",filters:"type[]=project-management&order_by_name=asc",name:"attach_project_management_areas",setFormValue:e.setFieldValue,initialValues:h.areas_tool.length>0?h.areas_tool.filter((function(e){return"project-management"==e.type})):[]})})]}),(e.values.attach_functional_areas.includes(1873)||h.functional_areas.map((function(e){return e.id})).includes(1873))&&!(null===(l=e.values.detach_functional_areas)||void 0===l?void 0:l.includes(1873))&&(0,r.jsxs)("div",{className:"flex flex-col gap-4 py-3 border-b lg:flex-row",children:[(0,r.jsxs)("div",{className:"flex flex-row items-center justify-end gap-1 pl-2 text-base font-normal w-80",children:[(0,r.jsx)("p",{children:"Tools"}),(0,r.jsx)(g.lzl,{}),(0,r.jsx)("p",{children:"Engineering"}),(0,r.jsx)("span",{className:"text-2xl text-litPink",children:"*"})]}),(0,r.jsx)("div",{className:"w-full",children:(0,r.jsx)(U,{endpoint:"api/areas/list",filters:"type[]=engineering&order_by_name=asc",name:"attach_engineer_areas",setFormValue:e.setFieldValue,initialValues:h.areas_tool.length>0?h.areas_tool.filter((function(e){return"engineering"==e.type})):[]})})]}),(e.values.attach_functional_areas.includes(1872)||h.functional_areas.map((function(e){return e.id})).includes(1872))&&!(null===(i=e.values.detach_functional_areas)||void 0===i?void 0:i.includes(1872))&&(0,r.jsxs)("div",{className:"flex flex-col gap-4 py-3 border-b lg:flex-row",children:[(0,r.jsxs)("div",{className:"flex flex-row items-center justify-end gap-1 pl-2 text-base font-normal w-80",children:[(0,r.jsx)("p",{children:"Tools"}),(0,r.jsx)(g.lzl,{}),(0,r.jsx)("p",{children:"Design"}),(0,r.jsx)("span",{className:"text-2xl text-litPink",children:"*"})]}),(0,r.jsx)("div",{className:"w-full",children:(0,r.jsx)(U,{endpoint:"api/areas/list",filters:"type[]=design&order_by_name=asc",name:"attach_design_areas",setFormValue:e.setFieldValue,initialValues:h.areas_tool.length>0?h.areas_tool.filter((function(e){return"design"==e.type})):[]})})]}),(e.values.attach_functional_areas.includes(1870)||h.functional_areas.map((function(e){return e.id})).includes(1870))&&!(null===(o=e.values.detach_functional_areas)||void 0===o?void 0:o.includes(1870))&&(0,r.jsxs)("div",{className:"flex flex-col gap-4 py-3 border-b lg:flex-row",children:[(0,r.jsxs)("div",{className:"flex flex-row items-center justify-end gap-1 pl-2 text-base font-normal w-80",children:[(0,r.jsx)("p",{children:"Tools"}),(0,r.jsx)(g.lzl,{}),(0,r.jsx)("p",{children:"Data & Analytics"}),(0,r.jsx)("span",{className:"text-2xl text-litPink",children:"*"})]}),(0,r.jsx)("div",{className:"w-full",children:(0,r.jsx)(U,{endpoint:"api/areas/list",filters:"type[]=data-analytics&order_by_name=asc",name:"attach_data_areas",setFormValue:e.setFieldValue,initialValues:h.areas_tool.length>0?h.areas_tool.filter((function(e){return"data-analytics"==e.type})):[]})})]}),(0,r.jsxs)("div",{className:"flex flex-col gap-4 py-3 border-b lg:flex-row",children:[(0,r.jsx)("div",{className:"pl-2 text-base font-normal w-80",children:(0,r.jsxs)("p",{children:["Is this job listing for a Full-Time position?",(0,r.jsx)("span",{className:"text-2xl text-litPink",children:"*"})]})}),(0,r.jsxs)("div",{className:"w-full",children:[(0,r.jsxs)("div",{role:"group","aria-labelledby":"my-radio-group",className:"flex flex-row gap-10",children:[(0,r.jsxs)("p",{children:[(0,r.jsx)(_.gN,{type:"radio",name:"permanent_position",value:"1",className:"mb-2 mr-2",checked:1==e.values.permanent_position,onChange:function(a){e.setFieldValue(a.target.name,a.target.value)}}),"Yes"]}),(0,r.jsxs)("p",{children:[(0,r.jsx)(_.gN,{type:"radio",name:"permanent_position",value:"
10",className:"mb-2 mr-2",checked:0==e.values.permanent_position,onChange:function(a){e.setFieldValue(a.target.name,a.target.value)}}),"No"]})]}),(0,r.jsx)("div",{className:"ErrorMessege",children:(0,r.jsx)(_.Bc,{name:"permanent_position"})})]})]}),(0,r.jsxs)("div",{className:"flex flex-col gap-4 py-3 border-b lg:flex-row",children:[(0,r.jsx)("div",{className:"pl-2 text-base font-normal w-80",children:(0,r.jsxs)("p",{children:["Seniority Level",(0,r.jsx)("span",{className:"text-2xl text-litPink",children:"*"})]})}),(0,r.jsxs)("div",{className:"w-full",children:[(0,r.jsx)(V.Z,{endpoint:"api/seniority_levels/list",filters:"order_by_name=asc&paginate=0",inputValue:e.setFieldValue,name:"seniority_levels",OptionOther:!1,initialValue:h&&h.seniority_levels&&{name:null===(c=h.seniority_levels[0])||void 0===c?void 0:c.name,id:null===(d=h.seniority_levels[0])||void 0===d?void 0:d.id}}),(0,r.jsx)("div",{className:"ErrorMessege",children:(0,r.jsx)(_.Bc,{name:"seniority_levels"})})]})]}),(0,r.jsxs)("div",{className:"flex flex-col gap-4 py-3 border-b lg:flex-row",children:[(0,r.jsx)("div",{className:"pl-2 text-base font-normal w-80",children:(0,r.jsxs)("p",{children:["Location",(0,r.jsx)("span",{className:"text-2xl text-litPink",children:"*"})]})}),(0,r.jsxs)("div",{className:"w-full",children:[(0,r.jsx)(U,{endpoint:"api/job_locations/list",filters:"order_by_name=asc",name:"attach_job_locations",setFormValue:e.setFieldValue,initialValues:h.job_locations.length>0?h.job_locations:[]}),(0,r.jsx)("div",{className:"ErrorMessege",children:(0,r.jsx)(_.Bc,{name:"attach_job_locations"})})]})]}),(0,r.jsxs)("div",{className:"flex flex-col gap-4 py-3 border-b lg:flex-row",children:[(0,r.jsxs)("div",{className:"flex items-center justify-start pl-2 text-base font-normal w-80",children:[(0,r.jsxs)("p",{children:["Job Excerpt"," ",(0,r.jsx)("span",{className:"text-2xl text-litPink",children:"*"})]}),(0,r.jsx)(w.u,{content:"500 max characters",trigger:"hover",children:(0,r.jsx)(b.HiQuestionMarkCircle,{size:21,className:"mb-2 ml-2 mr-2 hover:text-litGray text-litPink"})})]}),(0,r.jsxs)("div",{className:"w-full",children:[(0,r.jsx)(_.gN,{className:"w-full resize-none",as:"textarea",placeholder:"Paragraph",rows:3,name:"excerpt",id:"excerpt",maxLength:"500",value:e.values.excerpt,onChange:function(a){e.setFieldValue(a.target.name,a.target.value)}}),(0,r.jsx)("div",{className:"ErrorMessege",children:(0,r.jsx)(_.Bc,{name:"excerpt"})})]})]}),(0,r.jsxs)("div",{className:"flex flex-col gap-4 py-3 border-b lg:flex-row",children:[(0,r.jsx)("div",{className:"pl-2 text-base font-normal w-80",children:(0,r.jsxs)("p",{children:["Description"," ",(0,r.jsx)("span",{className:"text-2xl text-litPink",children:"*"})]})}),(0,r.jsxs)("div",{className:"w-full",children:[(0,r.jsx)(X,{name:"description",content:h.description,contentUpdater:e.setFieldValue}),(0,r.jsx)("div",{className:"ErrorMessege",children:(0,r.jsx)(_.Bc,{name:"description"})})]})]}),(0,r.jsxs)("div",{className:"flex flex-col gap-4 py-3 border-b lg:flex-row",children:[(0,r.jsx)("div",{className:"pl-2 text-base font-normal w-80",children:(0,r.jsxs)("p",{children:["Application email/URL",(0,r.jsx)("span",{className:"text-2xl text-litPink",children:"*"})]})}),(0,r.jsxs)("div",{className:"w-full",children:[(0,r.jsx)(_.gN,{className:"w-full mb-2",type:"text",id:"application_email_url",name:"application_email_url",value:null===(u=e.values)||void 0===u?void 0:u.application_email_url,onChange:function(a){return e.setFieldValue(a.target.name,a.target.value)}}),(0,r.jsx)("div",{className:"ErrorMessege",children:(0,r.jsx)(_.Bc,{name:"application_email_url"})})]})]}),(0,r.jsxs)("div",{className:"flex flex-col gap-4 py-3 border-b lg:flex-row",children:[(0,r.jsxs)("div",{className:"flex items-center justify-start w-80",children:[(0,r.jsx)("div",{className:"pl-2 text-base font-normal",children:(0,r.jsx)("p",{children:"Application Closing Date"})}),(0,r.jsx)(w.u,{content:"All job opportunities expire 45 days from today",trigger:"hover",children:(0,r.jsx)(b.HiQuestionMarkCircle,{size:21,className:"ml-2 mr-2 hover:text-litGray text-litPink"})}),(0,r.jsx)("span",{className:"text-litPink",children:"*"})]}),(0,r.jsxs)("div",{className:"w-full",children:[(0,r.jsx)(k(),{className:"w-full",id:"closing_date",name:"closing_date",dateFormat:"MM-dd-yyyy",selected:ue.closing_date,excludeDates:me,maxDate:L(new Date),minDate:J(ne
1w Date),onChange:function(a){pe((0,n.Z)((0,s.Z)({},ue),{closing_date:a})),e.setFieldValue("closing_date",(0,P.WU)(new Date(a),"MM/DD/YYYY"))}}),(0,r.jsx)("div",{className:"ErrorMessege",children:(0,r.jsx)(_.Bc,{name:"closing_date"})})]})]}),(0,r.jsxs)("div",{className:"flex flex-col gap-4 py-3 border-b lg:flex-row",children:[(0,r.jsx)("div",{className:"pl-2 text-base font-normal w-80",children:(0,r.jsx)("p",{children:"Perks"})}),(0,r.jsx)("div",{className:"w-full",children:null==ne||(null===ne||void 0===ne?void 0:ne.company_tagline)||(null===ne||void 0===ne?void 0:ne.company_video)||0!==ne.perks.length?ne&&0===(null===ne||void 0===ne?void 0:ne.perks.length)||null===ne?(0,r.jsxs)("p",{children:["Please fill out this"," ",(0,r.jsx)(f(),{href:"/company-perks",children:(0,r.jsx)("a",{target:"_blank",children:"form"})})," ","to unlock company perks"]}):(null===ne||void 0===ne?void 0:ne.perks.length)>0&&(0,r.jsx)("div",{className:"flex flex-row flex-wrap gap-1",children:ne.perks.map((function(e){return e&&e.featured_image&&e.featured_image.length>0&&(0,r.jsx)("div",{children:(0,r.jsx)("figure",{className:"object-contain object-center rounded-full md:w-14 md:h-14",children:(0,r.jsxs)("picture",{children:[e.featured_image&&e.featured_image.map((function(a,t){return(0,r.jsx)("source",{srcSet:a.file_url,media:e.featured_image.length<T.P.length?"":T.P[t]},a.id)})),(0,r.jsx)("img",{className:"object-contain object-center rounded-full w-14 h-14",src:e.featured_image[e.featured_image.length-1].file_url,alt:e.featured_image[e.featured_image.length-1].file_slug})]})})},e.id)}))}):(0,r.jsxs)("p",{children:[" ","To unlock company badges, please ensure your company's main POC has completed this"," ",(0,r.jsx)(f(),{href:"/company-registration",children:(0,r.jsx)("a",{target:"_blank",children:"form"})})]})})]}),(0,r.jsxs)("div",{className:"flex flex-col gap-4 py-3 border-b lg:flex-row",children:[(0,r.jsxs)("div",{className:"flex flex-col gap-5 pl-2 text-base font-normal w-80",children:[(0,r.jsx)("h3",{className:"font-bold",children:"Company Details"}),(0,r.jsxs)("p",{className:"inline-flex",children:["Company",(0,r.jsx)("span",{className:"text-2xl text-litPink",children:"*"}),(0,r.jsx)(w.u,{content:"The default company is related to the user.",trigger:"hover",children:(0,r.jsx)(b.HiQuestionMarkCircle,{size:21,className:"ml-2 mr-2 hover:text-litGray text-litPink"})})]})]}),(0,r.jsxs)("div",{className:"w-full",children:[(0,r.jsx)(A.Z,{endpoint:"api/companies/list",filters:"order=asc",inputValue:e.setFieldValue,name:"company_id",initialValue:h&&h.company&&{name:h.company.name,id:h.company.id},setState:he,children:(!(0,F.Z)(["Latina","Ally"],null===H||void 0===H?void 0:H.roles)||(0,F.Z)(["Admin"],null===H||void 0===H?void 0:H.roles))&&(0,r.jsx)(C.default,{buttonName:"Add Company",accessToken:W})}),(0,r.jsx)("span",{className:"text-sm text-gray-400",children:"Select Other if company is not listed below"}),(0,r.jsx)("div",{className:"ErrorMessege",children:(0,r.jsx)(_.Bc,{name:"company_id"})})]})]}),(0,F.Z)(["Admin"],null===H||void 0===H?void 0:H.roles)&&(0,r.jsxs)("div",{className:"flex flex-col gap-4 py-3 border-b lg:flex-row",children:[(0,r.jsx)("div",{className:"pl-2 text-base font-normal w-80",children:(0,r.jsx)("p",{children:"Status"})}),(0,r.jsx)("div",{className:"w-full",children:(0,r.jsx)(Z.default,{title:"Post status",children:(0,r.jsx)("div",{className:"flex flex-col justify-between h-56 gap-2 p-4 overflow-y-scroll border rounded",children:(0,r.jsx)(E.default,{endpoint:"api/post_status/list?order_by_id=asc&active=1",inputName:"post_status_id",inputValue:e.values.post_status_id,setValue:e.setFieldValue})})})})]})]}),(0,r.jsx)("div",{className:"flex flex-row gap-6 py-5",children:(0,r.jsxs)("button",{type:"submit",disabled:oe,onClick:function(){e.errors&&Object.keys(e.errors).length>0&&ee({message:"Validation Error",success:!1,status:400})},children:[!oe&&(0,r.jsx)(r.Fragment,{children:"Save"}),(0,r.jsx)(D.default,{loading:oe,color:"text-white",size:20})]})})]})}}),$&&!oe&&(0,r.jsx)(S.Z,{status:$.status&&$.status,success:$.success&&$.success})]})})]})};q.layout=O.F.PUBLIC,q.allowedUserRoles=B.r,q.protected=!0;var Q=!0;a.default=q},57843:function(e,a,t){"use strict";var l=t(14924),s=t(26042),n=t(69396),i=t(65549);a.Z=function(e,a){var t,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},c={};
1for(t in Object.keys(a).forEach((function(t){e[t]===a[t]||null===a[t]||Array.isArray(a[t])||Array.isArray(e[t])||(c=(0,n.Z)((0,s.Z)({},c),(0,l.Z)({},t,a[t])),Object.keys(o).length>0&&((0,i.Z)(["Latina"],o)&&(e.company_id!==a.company_id&&a.show_profile_on_company?c.show_profile_on_company=a.show_profile_on_company:e.company_id!==a.company_id&&e.show_profile_on_company&&(c.show_profile_on_company=e.show_profile_on_company)),"student"!==e.i_am&&"student"!==a.i_am||!(0,i.Z)(["Latina"],o)||(c.degree_working_on_title_name=a.degree_working_on_title_name))),Array.isArray(e[t])&&Array.isArray(a[t])&&a[t].length>0&&(c[t]=a[t].filter((function(a){return!e[t].includes(a)})))})),a){var d,u;if(a.hasOwnProperty(t))if(e[t]||e[t]===a[t]||(Array.isArray(a[t])&&a[t].length>0?c[t]=a[t]:Array.isArray(a[t])||(c[t]=a[t])),r&&r.next_seo&&(null===(d=r.next_seo[0])||void 0===d?void 0:d.title)&&!a.title)c.title=null===(u=r.next_seo[0])||void 0===u?void 0:u.title;else(r&&r.next_seo&&0==r.next_seo.length&&a.name||a.title&&a.name)&&(c.title=a.name)}return c}}},function(e){e.O(0,[4738,9317,2175,4231,696,2298,9198,5205,9774,2888,179],(function(){return a=55839,e(e.s=a);var a}));var a=e.O();_N_E=a}]);

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.