1import{r as u,b as j,D as P,N as A,u as o,v as t,E as z,F,y as x,B as c,A as r,Q as X,z as b,S as N,V as D,x as d,q as n}from"./vendor-CkxUWCv5.js";import{_ as G}from"./title-green-GOQIPH8l.js";import{a as C}from"./axios-Ly9gaC2j.js";import{_ as Q,b as R}from"./index-D_pjFvis.js";import"./ui-DArVHET_.js";const H="/assets/cooperation-illustration-aGO2A90_.png",K={class:"cooperation-page"},W={class:"join-team-section"},Y={class:"container"},Z={key:0,class:"jobs-container"},ee={class:"jobs-grid"},te={class:"job-header"},ae={class:"job-title"},se={class:"job-actions"},le=["onClick"],ie=["onClick"],oe={key:0},ne={key:1},re={key:0,class:"job-details"},pe={class:"job-description"},ce={class:"job-requirements"},de={class:"job-date"},ue={key:1,class:"home-news__loading"},me={key:2,class:"home-news__error"},ve={key:3,class:"no-jobs"},fe={class:"application-form-section"},be={class:"container"},ge={class:"form-content"},ke={class:"form-wrapper"},_e={class:"form-row"},he={class:"form-group"},ye={key:0,class:"field-error"},we={class:"form-group"},Me={key:0,class:"field-error"},Ne={class:"form-row"},De={class:"form-group"},Ie={key:0,class:"field-error"},je={class:"form-group"},Fe={key:0,class:"select-dropdown"},xe=["onClick"],Ce={class:"option-title"},Re={key:0,class:"option-indicator"},qe={key:0,class:"field-error"},$e={class:"form-group full-width"},Ee={key:0,class:"field-error"},Be={class:"form-group full-width"},Le={class:"file-upload"},Se={key:0,class:"file-name"},Oe={key:0,class:"field-error"},Ve=["disabled"],Je={key:0},Te={key:1,class:"spinner"},Ue={__name:"cooperationRequestPage",setup(Pe){const g=u([]),k=u(!0),_=u(null),h=u(null),s=j({jobId:"",applicantFullName:"",applicantMobileNumber:"",applicantMail:"",applicantDescription:"",applicantResume:null}),f=u(null),y=u(!1),m=u(null),v=u(!1),l=j({jobId:"",applicantFullName:"",applicantMobileNumber:"",applicantMail:"",applicantDescription:"",applicantResume:""});async function q(){try{k.value=!0,_.value=null;const i=await C.get(`${R}/api/v1/jobs/search?skip=0&take=10&active=true&sort=des%7CcreateDate`);i.data.success?g.value=i.data.list:(_.value="خطا در Ø¯Ø±ÛØ§Ùت Ø§Ø·ÙØ§Ø¹Ø§Øª",console.error("Failed to fetch jobs:",i.data.message))}catch(i){_.value="خطا در Ø¯Ø±ÛØ§Ùت Ø§Ø·ÙØ§Ø¹Ø§Øª",console.error("Error fetching jobs:",i)}finally{k.value=!1}}function $(i){h.value=h.value===i?null:i}function E(i){s.jobId=i.id;const e=document.querySelector(".application-form-section");e&&e.scrollIntoView({behavior:"smooth",block:"start"}),l.jobId=""}function B(){v.value=!v.value}function L(i){s.jobId=i.id,v.value=!1,p("jobId",s.jobId)}function S(){if(!s.jobId)return"";const i=g.value.find(e=>e.id===s.jobId);return i?i.title:""}function O(i){return new Date(i).toLocaleDateString("fa-IR",{year:"numeric",month:"long",day:"numeric"})}function V(i){const e=i.target.files[0];if(e){if(e.size>5*1024*1024){l.applicantResume="ØØ¬Ù
ÙØ§ÛÙ ÙØ¨Ø§Ûد Ø¨ÛØ´ØªØ± از 5 Ù
Ú¯Ø§Ø¨Ø§ÛØª باشد",i.target.value="",f.value=null;return}if(!["application/pdf","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document"].includes(e.type)){l.applicantResume="ÙÙØ· ÙØ§ÛÙâÙØ§Û PDFØ DOC Ù DOCX Ù
جاز ÙØ³ØªÙد",i.target.value="",f.value=null;return}f.value=e,s.applicantResume=e,l.applicantResume=""}}const J=i=>i?/^09\d{9}$/.test(i)?"":"ÙØ±Ù
ت ÙØ§Ø±Ø¯ شد٠صØÛØ ÙÛØ³Øª":"",T=i=>i?/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(i)?"":"ÙØ±Ù
ت ÙØ§Ø±Ø¯ شد٠صØÛØ ÙÛØ³Øª":"",p=(i,e)=>{switch(i){case"applicantMobileNumber":l.applicantMobileNumber=J(e);break;case"applicantMail":l.applicantMail=T(e);break;case"applicantFullName":l.applicantFullName=e?"":"اÛÙ ÙÛÙØ¯ Ø§ÙØ²Ø§Ù
Û Ø§Ø³Øª";break;case"jobId":l.jobId=e?"":"ÙØ·Ùا ÛÚ© Ù
ÙÙØ¹Ûت شغÙÛ Ø§ÙØªØ®Ø§Ø¨ Ú©ÙÛØ¯";break;case"applicantDescription":e?e.length<10?l.applicantDescription="ØªÙØ¶ÛØØ§Øª ØØ¯Ø§ÙÙ Ø¨Ø§ÛØ¯ شاÙ
Ù Û±Û° کاراکتر باشد":l.applicantDescription="":l.applicantDescription="اÛÙ ÙÛÙØ¯ Ø§ÙØ²Ø§Ù
Û Ø§Ø³Øª";break}};async function U(){if(y.value)return;if(p("applicantFullName",s.applicantFullName),p("applicantMobileNumber",s.applicantMobileNumber),p("applicantMail",s.applicantMail),p("jobId",s.jobId),p("applicantDescription",s.applicantDescription),s.applicantResume?l.applicantResume="":l.applicantResume="ÙØ·Ùا ÙØ§Û٠رزÙÙ
٠را Ø§ÙØªØ®Ø§Ø¨ Ú©ÙÛØ¯",Object.values(l).some(e=>e!=="")){m.value={type:"error",message:"ÙØ·Ùا Ø®Ø·Ø§ÙØ§Û ÙØ±Ù
را برطر٠کÙÛØ¯"};return}y.value=!0,m.value=null;try{const e=new FormData;e.append("jobId",s.jobId),e.append("applicantFullName",s.applicantFullName),e.a
1ppend("applicantMobileNumber",s.applicantMobileNumber),e.append("applicantMail",s.applicantMail),e.append("applicantDescription",s.applicantDescription),e.append("applicantResume",s.applicantResume);const a=await C.post(`${R}/api/v1/job-requests`,e,{headers:{"Content-Type":"multipart/form-data"}});if(a.status>=200&&a.status<300){m.value={type:"success",message:"Ø¯Ø±Ø®ÙØ§Ø³Øª Ø´Ù
ا با Ù
ÙÙÙÛØª ارسا٠شد. Ø¨Ù Ø²ÙØ¯Û با Ø´Ù
ا تÙ
اس Ø®ÙØ§ÙÛÙ
Ú¯Ø±ÙØª."},Object.keys(s).forEach(M=>{M!=="applicantResume"&&(s[M]="")}),f.value=null;const w=document.getElementById("resume");w&&(w.value=""),Object.keys(l).forEach(M=>{l[M]=""})}else throw new Error("API returned non-success status")}catch(e){console.error("Error submitting application:",e);let a="خطا در Ø§Ø±Ø³Ø§Ù Ø¯Ø±Ø®ÙØ§Ø³Øª. ÙØ·Ùا Ø¯ÙØ¨Ø§Ø±Ù ØªÙØ§Ø´ Ú©ÙÛØ¯.";e.response?(console.error("Response error:",e.response.data),e.response.data&&e.response.data.message&&(a=e.response.data.message)):e.request&&(a="خطا در Ø§ØªØµØ§Ù Ø¨Ù Ø³Ø±ÙØ±. ÙØ·Ùا اتصا٠اÛÙØªØ±Ùت Ø®ÙØ¯ را Ø¨Ø±Ø±Ø³Û Ú©ÙÛØ¯."),m.value={type:"error",message:a}}finally{y.value=!1}}function I(i){!i.target.closest(".custom-select")&&v.value&&(v.value=!1)}return P(()=>{q(),document.addEventListener("click",I)}),A(()=>{document.removeEventListener("click",I)}),(i,e)=>(n(),o("div",K,[e[30]||(e[30]=t("section",{class:"intro-section"},[t("div",{class:"container"},[t("div",{class:"intro-content"},[t("div",{class:"intro-text"},[t("p",null,"Ù
ا در شرکت اعتÙ
اد پردازش سداد ÙÙ
ÙØ§Ø±Ù Ø¨Ù Ø¯ÙØ¨Ø§Ù جذب ÙÛØ±ÙÙØ§Û ØªÙØ§ÙÙ
ÙØ¯Ø Ø®ÙØ§Ù Ù Ù¾Ø±Ø§ÙØ±ÚÛ ÙØ³ØªÛÙ
ک٠با Ø¯Ø§ÙØ´ Ù ØªØ¹ÙØ¯ Ø®ÙØ¯ Ø¨ØªÙØ§ÙÙØ¯ در Ù
Ø³ÛØ± رشد Ù Ù¾ÛØ´Ø±Ùت شرکت سÙÛÙ
Ø¨Ø§Ø´ÙØ¯. ÙÙ
Ú©Ø§Ø±Û Ø¨Ø§ Ù
ا ÙØ±ØµØªÛ Ø§Ø³ØªØ«ÙØ§ÛÛ Ø¨Ø±Ø§Û Ø´Ù
ا ÙØ±Ø§ÙÙ
Ù
ÛâØ¢ÙØ±Ø¯ تا در Ù
ØÛØ·Û Ù¾ÙÛØ§Ø ÙÙØ¢Ùر Ù Ù¾ÛØ´Ø±Ù کار Ú©ÙÛØ¯ ٠تجربÙâØ§Û Ø¨ÛâÙØ¸Ûر از تعاÙ
٠با تÛÙ
Û ØØ±ÙÙâØ§Û Ù ÙÙ
د٠را کسب Ú©ÙÛØ¯. Ù
ا Ø¨Ù Ø¯ÙØ¨Ø§Ù Ø§ÙØ±Ø§Ø¯Û ÙØ³ØªÛÙ
ک٠با اÙÚ¯ÛØ²Ù ٠پشتکار Ø®ÙØ¯ Ø¨ØªÙØ§ÙÙØ¯ Ø¨Ù Ø§Ø±ØªÙØ§Ø¡ Ú©ÛÙÛØª خدÙ
ات Ù Ù
ØØµÙÙØ§Øª شرکت Ú©Ù
Ú© Ú©ÙÙØ¯. شرکت Ù
ا Ù
ØÛØ·Û ÙØ±Ø§ÙÙ
Ù
ÛâÚ©ÙØ¯ ک٠در Ø¢Ù Ø§ÙØ±Ø§Ø¯ Ù
ÛâØªÙØ§ÙÙØ¯ ØªÙØ§ÙÙ
ÙØ¯ÛâÙØ§Û Ø®ÙØ¯ را ب٠ÙÙ
Ø§ÛØ´ Ø¨Ú¯Ø°Ø§Ø±ÙØ¯ Ù Ø¨Ù ØªÙØ³Ø¹Ù Ø´Ø®ØµÛ Ù ØØ±ÙÙâØ§Û Ø®ÙØ¯ Ø¨Ù¾Ø±Ø¯Ø§Ø²ÙØ¯. در اÛÙ Ù
Ø³ÛØ±Ø Ø¨Ø±ÙØ§Ù
ÙâÙØ§Û Ø¢Ù
ÙØ²Ø´Û Ù ØªÙØ³Ø¹Ù Ù
ÙØ§Ø±ØªâÙØ§ ÙÛØ² ب٠عÙÙØ§Ù Ø¨Ø®Ø´Û Ø§Ø² ÙØ±ÙÙÚ¯ سازÙ
اÙÛ Ù
ا Ù
ØØ³Ùب Ù
ÛâØ´ÙÙØ¯. Ù¾ÛÙØ³ØªÙ ب٠تÛÙ
Ù
ا Ù٠تÙÙØ§ ÛÚ© ÙØ±ØµØª شغÙÛØ بÙÚ©Ù ÛÚ© تجربÙâÛ Ù
ÙØØµØ± Ø¨Ù ÙØ±Ø¯ Ø¨Ø±Ø§Û Ø±Ø´Ø¯ Ù Ù¾ÛØ´Ø±Ùت در Ú©ÙØ§Ø± دÛگر ÙÙ
کارا٠Ù
ØªØ¹ÙØ¯ ٠بااستعداد Ø®ÙØ§Ùد Ø¨ÙØ¯. ")])])])],-1)),t("section",W,[t("div",Y,[e[18]||(e[18]=z('<div class="section-header title-center" data-v-8a40dcaa><div class="title-group" data-v-8a40dcaa><div class="title-header" data-v-8a40dcaa><div class="title-icon-left" data-v-8a40dcaa></div><h2 data-v-8a40dcaa>ب٠تÛÙ
Ù
ا بپÛÙÙØ¯Ûد</h2><div class="title-icon-right" data-v-8a40dcaa></div></div><p data-v-8a40dcaa>در ØØ§Ù ØØ§Ø¶Ø± Ø¨Ø±Ø§Û Ù
ÙÙØ¹ÛتâÙØ§Û شغÙÛ Ø²ÛØ± Ù
ÛâØªÙØ§ÙÛØ¯ رزÙÙ
Ù Ø®ÙØ¯ را ارسا٠کÙÛØ¯</p></div></div>',1)),k.value?c("",!0):(n(),o("div",Z,[t("div",ee,[(n(!0),o(F,null,x(g.value,a=>(n(),o("div",{key:a.id,class:d(["job-card",{expanded:h.value===a.id}])},[t("div",te,[t("h3",ae,r(a.title),1),t("div",se,[t("button",{class:"apply-btn",onClick:w=>E(a)}," Ø¯Ø±Ø®ÙØ§Ø³Øª ÙÙ
Ú©Ø§Ø±Û ",8,le),t("button",{class:"expand-btn",onClick:w=>$(a.id)},[h.value!==a.id?(n(),o("span",oe,"Ø¬Ø²Ø¦ÛØ§Øª Ø¨ÛØ´ØªØ±")):(n(),o("span",ne,"بستÙ")),e[13]||(e[13]=t("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t("path",{d:"M8 4L4 8L8 12",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1))],8,ie)])]),h.value===a.id?(n(),o("div",re,[t("div",pe,[e[14]||(e[14]=t("h4",null,"ØªÙØ¶ÛØØ§Øª شغÙ:",-1)),t("p",null,r(a.description),1)]),t("div",ce,[e[15]||(e[15]=t("h4",null,"Ù
ÙØ§Ø±ØªâÙØ§ Ù Ø´Ø±Ø§ÛØ·:",-1)),t("p",null,r(a.requirement),1)]),t("div",de,[t("span",null,"ØªØ§Ø±ÛØ® Ø§ÙØªØ´Ø§Ø±: "+r(O(a.createDate)),1)])])):c("",!0)],2))),128))])])),k.value?(n(),o("div",ue,e[16]||(e[16]=[t("div",{class:"home-news__spinner"},null,-1),t("p",null,"در ØØ§Ù Ø¨Ø§Ø±Ú¯Ø°Ø§Ø±Û Ù
ÙÙØ¹ÛتâÙØ§Û شغÙÛ...",-1)]))):_.value?(n(),o("div",me,[t("p",null,r(_.value),1)])):!k.value&&g.value.length===0?(n(),o("div",ve,e[17]||(e[17]=[t("p",null,"در ØØ§Ù ØØ§Ø¶Ø± Ù
ÙÙØ¹Ûت شغÙÛ ÙØ¹Ø§ÙÛ ÙØ¬Ùد ÙØ¯Ø§Ø±Ø¯.",-1)]))):c("",!0)])]),t("section",fe,[t("div",be,[e[29]||(e[29]=t("div",{class:"section-header"},[t("div",{class:"title-group"},[t("div",{class:"title-header"},[t("img",{src:G,alt:"",class:"title-icon"}),t("h2",null,"Ø§Ø±Ø³Ø§Ù Ø¯Ø±Ø®ÙØ§Ø³Øª ÙØ±ØµØª شغÙÛ")])])],-1)),t("div",ge,[e[28]||(e[28]=t("div",{class:"form-illustration"},[t("img",{src:H,alt:"تصÙÛØ± Ø¯Ø±Ø®ÙØ§Ø³Øª شغÙ"})],-1)),t("div",ke,[t("form",{onSubmit:X(U,["prevent"]),class:"application-form"},[t("div",_e,[t("div",he,[e[19]||(e[19]=t("label",{for:"fullName"},[b("ÙØ§Ù
Ù ÙØ§Ù
خاÙÙØ§Ø¯Ú¯Û "),t("span",{class:"required"},"*")],-1)),N(t("input",{id:"fullName","onUpdate:modelValue":e[0]||(e[0]=a=>s.applicantFullName=a),type:"text",required:"",placeholder:"ÙØ§Ø±Ø¯ Ú©ÙÛØ¯ ...",class:d({error:l.applicantFullName}),onInput:e[1]||(e[1]=a=>p("applicantFullName",s.applicantFullName)),onBlur:e[2]||(e[2]=a=>p("applicantFullName",s.applicantFullName))},null,34),[[D,s.applicantFullName]]),l.applicantFullName?(n(),o("div",ye,r(l.applicantFullName),1)):c("",!0)]),t("div",we,[e[20]||(e[20]=t("label",{for:"mobile"},[b("Ø´Ù
ار٠Ù
ÙØ¨Ø§ÛÙ "),t("span",{class:"required"},"*")],-1)),N(t("input",{id:"mobile","onUpdate:modelValue":e[3]||(e[3]=a=>s.applicantMobileNumber=a),type:"tel",required:"",placeholder:"ÙØ§Ø±Ø¯ Ú©ÙÛØ¯ ...",class:d({error:l.applicantMobileNumber}),onInput:e[4]||(e[4]=a=>p("applicantMobileNumber",s.applicantMobileNumber)),onBlur:e[5]||(e[5]=a=>p("applicantMobileNumber",s.applicantMobileNumber))},null,34),[[D,s.applicantMobileNumber]]),l.applicantMobileNumber?(n(),o("div",Me,r(l.applicantMobileNumber),1)):c("",!0)])]),t("div",Ne,[t("div",De,[e[21]||(e[21]=t("label",{for:"email"},[b("آدرس اÛÙ
ÛÙ "),t("span",{class:"required"},"*")],-1)),N(t("input",{id:"email","onUpdate:modelValue":e[6]||(e[6]=a=>s.applicantMail=a),type:"email",required:"",placeholder:"ÙØ§Ø±Ø¯ Ú©ÙÛØ¯ ...",class:d({error:l.applicantMail}
1),onInput:e[7]||(e[7]=a=>p("applicantMail",s.applicantMail)),onBlur:e[8]||(e[8]=a=>p("applicantMail",s.applicantMail))},null,34),[[D,s.applicantMail]]),l.applicantMail?(n(),o("div",Ie,r(l.applicantMail),1)):c("",!0)]),t("div",je,[e[24]||(e[24]=t("label",{for:"jobId"},[b("Ø§ÙØªØ®Ø§Ø¨ Ù
ÙÙØ¹Ûت شغÙÛ "),t("span",{class:"required"},"*")],-1)),t("div",{class:d(["custom-select",{error:l.jobId,open:v.value}])},[t("div",{class:"select-header",onClick:B},[t("span",{class:d(["select-value",{placeholder:!s.jobId}])},r(S()||"Ø§ÙØªØ®Ø§Ø¨ Ù
ÙÙØ¹Ûت شغÙÛ..."),3),e[22]||(e[22]=t("svg",{class:"select-arrow",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t("path",{d:"M12 6L8 10L4 6",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1))]),v.value?(n(),o("div",Fe,[(n(!0),o(F,null,x(g.value,a=>(n(),o("div",{key:a.id,class:d(["select-option",{selected:s.jobId===a.id}]),onClick:w=>L(a)},[t("span",Ce,r(a.title),1),s.jobId===a.id?(n(),o("span",Re,e[23]||(e[23]=[t("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t("path",{d:"M13 4L6 11L3 8",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)]))):c("",!0)],10,xe))),128))])):c("",!0)],2),l.jobId?(n(),o("div",qe,r(l.jobId),1)):c("",!0)])]),t("div",$e,[e[25]||(e[25]=t("label",{for:"description"},[b("ØªÙØ¶ÛØØ§Øª "),t("span",{class:"required"},"*")],-1)),N(t("textarea",{id:"description","onUpdate:modelValue":e[9]||(e[9]=a=>s.applicantDescription=a),rows:"4",required:"",placeholder:"ÙØ§Ø±Ø¯ Ú©ÙÛØ¯ ...",class:d({error:l.applicantDescription}),onInput:e[10]||(e[10]=a=>p("applicantDescription",s.applicantDescription)),onBlur:e[11]||(e[11]=a=>p("applicantDescription",s.applicantDescription))},null,34),[[D,s.applicantDescription]]),l.applicantDescription?(n(),o("div",Ee,r(l.applicantDescription),1)):c("",!0)]),t("div",Be,[e[26]||(e[26]=t("label",{for:"resume"},[b("Ø¨Ø§Ø±Ú¯Ø°Ø§Ø±Û ÙØ§Û٠رزÙÙ
Ù "),t("span",{class:"required"},"*")],-1)),t("div",Le,[t("input",{id:"resume",type:"file",ref:"fileInput",onChange:V,accept:".pdf,.doc,.docx",required:"",class:d({error:l.applicantResume})},null,34),t("button",{type:"button",class:"file-btn",onClick:e[12]||(e[12]=a=>i.$refs.fileInput.click())}," Ø§ÙØªØ®Ø§Ø¨ ÙØ§ÛÙ "),f.value?(n(),o("span",Se,r(f.value.name),1)):c("",!0)]),l.applicantResume?(n(),o("div",Oe,r(l.applicantResume),1)):c("",!0),e[27]||(e[27]=t("small",{class:"file-hint"},"ÙØ±Ù
تâÙØ§Û Ù
جاز: PDF, DOC, DOCX (ØØ¯Ø§Ú©Ø«Ø± 5MB)",-1))]),t("button",{type:"submit",disabled:y.value,class:"submit-btn"},[y.value?(n(),o("div",Te)):(n(),o("span",Je,"Ø§Ø±Ø³Ø§Ù Ø¯Ø±Ø®ÙØ§Ø³Øª"))],8,Ve)],32),m.value?(n(),o("div",{key:0,class:d(["status-message",m.value.type])},r(m.value.message),3)):c("",!0)])])])])]))}},He=Q(Ue,[["__scopeId","data-v-8a40dcaa"]]);export{He as default};
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.