1import{c as A,b as D,r as t,j as e,S as y,L as N,k as Y,_ as q,t as L,N as G,F as J}from"./index-CZVIUDCC.js";import{c as O,u as P,S as Q}from"./send-Ps9zSZJc.js";import{B as $,R as H}from"./rocket-B9eN-wfI.js";import{T as V}from"./triangle-alert-rMy6AU4_.js";import{H as W}from"./heart-H33xnssq.js";const Z=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],ee=A("image",Z);const se=[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",key:"1miecu"}]],te=A("paperclip",se),ae=O({method:"POST"}).handler(D("4a8f782008cafbdce5a947fec719a5fc253f8027d823cf8a97c01d41dd8075c3")),re=O({method:"POST"}).handler(D("dc46294aef53126152ae41606da5e1933dfbe3b34cc04660094fbc9015dccdbd")),ne={role:"assistant",content:`Ø³ÙØ§Ù ð Ù Ù Ù ÛÙØ§Ø¯Ù Ø Ø§Ø² تÛ٠پاکÙÛÙ. 2Ø®ÛÙÛ Ø®ÙØ´ØØ§Ù٠ک٠اÛÙØ¬Ø§ÛÛ! Ø¨ÛØ§ ÛÙ Ú¯Ù¾ ص٠ÛÙ Û Ø¨Ø²ÙÛÙ â Ø§Ù٠بگ٠اس٠ت ÚÛÙ Ù ÚÙâØ¬ÙØ± Ù٠کارÛâØ§Û Ø±Ù Ø¨Ø§ ٠ا در ذÙÙ Ø¯Ø§Ø±ÛØ`},le=6*1024*1024;function ie(i){return new Promise((o,a)=>{const n=new FileReader;n.onerror=()=>a(n.error),n.onload=()=>{const l=n.result,u=l.indexOf(",");o(u>=0?l.slice(u+1):l)},n.readAsDataURL(i)})}function ce(){const i=P(ae),o=P(re),[a,n]=t.useState([ne]),[l,u]=t.useState({}),[w,K]=t.useState(!1),[h,k]=t.useState(""),[p,S]=t.useState(!1),[_,d]=t.useState(null),[m,C]=t.useState(null),[x,R]=t.useState(null),[g,T]=t.useState(!1),[f,M]=t.useState(!1),v=t.useRef(null),B=t.useRef(null),E=t.useRef(null);t.useEffect(()=>{v.current?.scrollTo({top:v.current.scrollHeight,behavior:"smooth"})},[a,p]);async function F(s){const r=s.trim();if(!r||p)return;const b=[...a,{role:"user",content:r}];n(b),k(""),d(null),S(!0);try{L("chat_message_sent",{agent:"careers",length:r.length});const c=await i({data:{messages:b.slice(-30)}});c.error||!c.reply?d(c.error||"خطا در Ø¯Ø±ÛØ§Ùت پاسخ."):(n(j=>[...j,{role:"assistant",content:c.reply.message}]),c.reply.collected&&u(j=>({...j,...c.reply.collected})),c.reply.readyToSubmit&&K(!0))}catch{d("ارتباط با Ø³Ø±ÙØ± Ø¨Ø±ÙØ±Ø§Ø± ÙØ´Ø¯.")}finally{S(!1)}}async function I(s,r){if(r){if(r.size>le){d("ØØ¬Ù ÙØ§ÛÙ ÙØ¨Ø§Ûد Ø¨ÛØ´ØªØ± از Û¶ Ù Ú¯Ø§Ø¨Ø§ÛØª باشد.");return}try{const b=await ie(r),c={name:r.name,size:r.size,contentBase64:b};s==="resume"?C(c):R(c),d(null)}catch{d("خطا در Ø®ÙØ§ÙØ¯Ù ÙØ§ÛÙ.")}}}async function U(){if(!g){T(!0),d(null);try{(await o({data:{transcript:a,collected:l,resume:m?{name:m.name,contentBase64:m.contentBase64}:void 0,photo:x?{name:x.name,contentBase64:x.contentBase64}:void 0}})).ok?(M(!0),L("careers_application_submitted",{has_resume:!!m,has_photo:!!x}),n(r=>[...r,{role:"assistant",content:"ð¿ Ø¯Ø±Ø®Ùاست ش٠ا با Ù ÙÙÙÛØª ب٠تÛ٠پاکÙÛÙ Ø±Ø³ÛØ¯! Ø®ÛÙÛ Ù Ù ÙÙ٠از ÙÙØªÛ ک٠گذاشتÛ. در Ø³Ø±ÛØ¹âترÛÙ Ø²Ù Ø§Ù Ù Ù Ú©Ù Ø¨Ø§ÙØ§Øª ت٠اس Ù ÛâÚ¯ÛØ±ÛÙ ."}])):d("Ø§Ø±Ø³Ø§Ù Ø§ÙØ¬Ø§Ù ÙØ´Ø¯. Ø¯ÙØ¨Ø§Ø±Ù ØªÙØ§Ø´ Ú©ÙÛØ¯.")}catch{d("Ø§Ø±Ø³Ø§Ù Ø§ÙØ¬Ø§Ù ÙØ´Ø¯. Ø¯ÙØ¨Ø§Ø±Ù ØªÙØ§Ø´ Ú©ÙÛØ¯.")}finally{T(!1)}}}const X=!f&&!g&&(w||!!(l.fullName&&(l.phone||l.email)));return e.jsxs("div",{dir:"rtl",className:"relative",children:[e.jsx("div",{className:"absolute -inset-3 rounded-[2.25rem] blur-2xl opacity-50 pointer-events-none",style:{background:"var(--gradient-brand)"}}),e.jsxs("div",{className:"relative glass rounded-[2rem] ring-soft overflow-hidden",children:[e.jsxs("div",{className:"flex items-center justify-between gap-3 px-5 sm:px-7 py-4 border-b border-foreground
2/10",children:[e.jsxs("div",{className:"flex items-center gap-3 min-w-0",children:[e.jsx("div",{className:"w-11 h-11 rounded-2xl flex items-center justify-center shrink-0 shadow-[var(--shadow-float)]",style:{background:"var(--gradient-brand)"},children:e.jsx($,{className:"w-5 h-5 text-white"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("div",{className:"text-sm sm:text-base font-black leading-tight",children:"Ù
ÛÙØ§Ø¯ â Ø¬Ø°Ø¨ ÙÙ
کار پاکÙÛÙ"}),e.jsxs("div",{className:"text-[11px] text-foreground/60 flex items-center gap-1.5",children:[e.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-[var(--brand-green-deep)] animate-pulse"}),p?"در ØØ§Ù ÙÙØ´ØªÙ...":"Ø¢Ù
ادÙâÛ ÛÚ© Ú¯Ù¾ صÙ
ÛÙ
Û"]})]})]}),e.jsxs("div",{className:"hidden sm:flex items-center gap-1.5 text-[10px] tracking-widest font-mono text-foreground/50",children:[e.jsx(y,{className:"w-3.5 h-3.5 text-[var(--brand-purple)]"}),"CAREERS"]})]}),e.jsxs("div",{ref:v,className:"px-4 sm:px-7 py-5 sm:py-6 min-h-[360px] max-h-[55vh] sm:max-h-[520px] overflow-y-auto space-y-3.5",children:[a.map((s,r)=>e.jsx(oe,{role:s.role,text:s.content},r)),p&&e.jsx("div",{className:"flex justify-start",children:e.jsxs("div",{className:"glass-dark rounded-2xl rounded-tr-md px-4 py-3 text-sm flex items-center gap-2",children:[e.jsx(N,{className:"w-4 h-4 animate-spin text-[var(--brand-purple)]"}),"در ØØ§Ù ÙÙØ´ØªÙ پاسخâ¦"]})}),_&&e.jsx("div",{className:"flex justify-start",children:e.jsxs("div",{className:"rounded-2xl rounded-tr-md px-4 py-3 text-sm bg-red-50 text-red-700 border border-red-200 flex items-start gap-2 max-w-[92%]",children:[e.jsx(V,{className:"w-4 h-4 mt-0.5 shrink-0"}),_]})})]}),!f&&e.jsxs("div",{className:"px-4 sm:px-7 pt-2 pb-3 border-t border-foreground
2/10",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsx("input",{ref:B,type:"file",accept:".pdf,.doc,.docx,application/pdf,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document",className:"hidden",onChange:s=>I("resume",s.target.files?.[0]??null)}),e.jsx("input",{ref:E,type:"file",accept:"image/*",className:"hidden",onChange:s=>I("photo",s.target.files?.[0]??null)}),e.jsx(z,{icon:te,label:m?m.name:"آپÙÙØ¯ رزÙÙ
Ù",active:!!m,onClick:()=>B.current?.click(),onClear:m?()=>C(null):void 0}),e.jsx(z,{icon:ee,label:x?x.name:"آپÙÙØ¯ عکس (Ø§Ø®ØªÛØ§Ø±Û)",active:!!x,onClick:()=>E.current?.click(),onClear:x?()=>R(null):void 0}),e.jsxs("button",{type:"button",onClick:U,disabled:!X,className:"mr-auto inline-flex items-center gap-2 rounded-xl px-4 py-2 text-sm font-black text-white shadow-[var(--shadow-float)] disabled:opacity-40 transition hover:scale-[1.02]",style:{background:"var(--gradient-brand)"},children:[g?e.jsx(N,{className:"w-4 h-4 animate-spin"}):e.jsx(H,{className:"w-4 h-4"}),"Ø§Ø±Ø³Ø§Ù Ø¯Ø±Ø®ÙØ§Ø³Øª ÙÙ
کارÛ"]})]}),!w&&e.jsx("p",{className:"mt-2 text-[11px] text-foreground/55",children:"ÙÙØªÛ ÚÙØ¯ سؤا٠Ù
ÛÙØ§Ø¯ Ø±Ù Ø¬ÙØ§Ø¨ Ø¯Ø§Ø¯ÛØ¯Ø دکÙ
ÙâÛ Ø§Ø±Ø³Ø§Ù ÙØ¹Ø§Ù Ù
ÛâØ´Ù."})]}),f&&e.jsx("div",{className:"px-4 sm:px-7 pt-3 pb-4 border-t border-foreground
2/10",children:e.jsxs("div",{className:"flex items-center justify-center gap-2 text-sm font-bold text-[var(--brand-green-deep)]",children:[e.jsx(Y,{className:"w-5 h-5"}),"Ø¯Ø±Ø®ÙØ§Ø³ØªâتÙ٠با Ù
ÙÙÙÛØª ارسا٠شد ⦠بÙâØ²ÙØ¯Û Ø¨Ø§ÙØ§ØªÙ٠تÙ
اس Ù
ÛâÚ¯ÛØ±ÛÙ
."]})}),!f&&e.jsx("form",{onSubmit:s=>{s.preventDefault(),F(h)},className:"px-4 sm:px-7 pb-5 pt-2",children:e.jsxs("div",{className:"flex items-end gap-2 rounded-2xl border-2 border-[var(--brand-purple)]/40 bg-background/90 backdrop-blur p-1.5 shadow-[0_4px_20px_-6px_color-mix(in_oklab,var(--brand-purple)_25%,transparent)] focus-within:border-[var(--brand-purple)] focus-within:shadow-[0_0_0_4px_color-mix(in_oklab,var(--brand-purple)_20%,transparent)] transition",children:[e.jsx("textarea",{value:h,onChange:s=>k(s.target.value),onKeyDown:s=>{s.key==="Enter"&&!s.shiftKey&&(s.preventDefault(),F(h))},disabled:p,rows:1,placeholder:"Ù¾Ø§Ø³Ø®âØªÙ٠ر٠ÙÙ
ÛÙâØ¬Ø§ بÙÙÛØ³Ûدâ¦",className:"flex-1 min-w-0 bg-transparent text-sm outline-none placeholder:text-foreground/40 disabled:opacity-60 py-2.5 px-3 resize-none max-h-32"}),e.jsxs("button",{type:"submit",disabled:p||!h.trim(),className:"h-10 px-4 rounded-xl flex items-center gap-2 text-white shrink-0 disabled:opacity-50 transition hover:scale-[1.03] font-bold text-sm",style:{background:"var(--gradient-brand)"},children:[p?e.jsx(N,{className:"w-4 h-4 animate-spin"}):e.jsx(Q,{className:"w-4 h-4 rotate-180"}),e.jsx("span",{className:"hidden sm:inline",children:"ارساÙ"})]})]})})]})]})}function z({icon:i,label:o,active:a,onClick:n,onClear:l}){return e.jsxs("div",{className:`inline-flex items-center gap-2 rounded-xl px-3 py-2 text-[12px] font-bold border transition ${a?"bg-[var(--brand-green)]/15 border-[var(--brand-green-deep)]/40 text-[var(--brand-green-deep)]":"bg-white/5 border-white/10 hover:border-[var(--brand-purple)]/40"}`,children:[e.jsxs("button",{type:"button",onClick:n,className:"inline-flex items-center gap-2 max-w-[180px] truncate",children:[e.jsx(i,{className:"w-3.5 h-3.5 shrink-0"}),e.jsx("span",{className:"truncate",children:o})]}),l&&e.jsx("button",{type:"button",onClick:l,className:"text-foreground/50 hover:text-red-600 transition","aria-label":"ØØ°Ù ÙØ§ÛÙ",children:e.jsx(q,{className:"w-3.5 h-3.5"})})]})}function oe({role:i,text:o}){const a=i==="user";return e.jsx("div",{className:`flex ${a?"justify-end":"justify-start"} animate-[fade-in_.3s_ease-out]`,children:e.jsx("div",{className:`max-w-[88%] text-sm leading-relaxed whitespace-pre-wrap rounded-2xl px-4 py-2.5 ${a?"bg-foreground text-background rounded-tl-md":"glass-dark rounded-tr-md ring-1 ring-[var(--brand-purple)]/20"}`,children:o})})}function he(){return e.jsxs("main",{className:"font-display",children:[e.jsx(G,{}),e.jsxs("section",{dir:"rtl",className:"relative pt-32 sm:pt-36 pb-16 sm:pb-24 overflow-hidden aurora-bg",children:[e.jsx("div",{className:"absolute inset-0 pointer-events-none",children:e.jsx("div",{className:"absolute inset-0 opacity-60",style:{background:"radial-gradient(60% 50% at 80% 10%, var(--brand-purple), transparent 55%), radial-gradient(50% 40% at 10% 90%, var(--brand-green), transparent 55%)"}})}),e.jsxs("div",{className:"relative z-10 max-w-3xl mx-auto px-4 sm:px-6",children:[e.jsxs("div",{className:"text-center",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 glass rounded-full px-3 sm:px-4 py-1.5 mb-5",children:[e.jsx($,{className:"w-3.5 h-3.5 text-[var(--brand-purple)]"}),e.jsx("span",{className:"text-[11px] sm:text-xs font-bold",children:"ÙØ±ØµØªâÙØ§Û شغÙÛ Ù ÙÙ
Ú©Ø§Ø±Û Ù¾Ø§Ú©ÙÛÙ"})]}),e.jsxs("h1",{className:"text-[28px] sm:text-5xl md:text-6xl font-black tracking-tight leading-[1.1]",children:["با ",e.jsx("span",{className:"text-gradient",children:"Ù
ÛÙØ§Ø¯"})," ÛÚ© Ú¯Ù¾",e.jsx("br",{className:"sm:hidden"})," صÙ
ÛÙ
Û Ø¨Ø²Ù"]}),e.jsx("p",{className:"mt-5 text-sm sm:text-lg text-foreground/75 leading-relaxed max-w-xl mx-auto px-2 sm:px-0",children:"ت٠ÙÙØ· Ø®ÙØ¯Øª باش â Ù
ÛÙØ§Ø¯ Ù
ÛâØ®ÙØ§Ø¯ Ø¨Ø´ÙØ§Ø³ØªØªØ تجربÙâÙØ§Øª ر٠بشÙÙÙØ ٠اگر Ù
ÙØ§Ø³Ø¨ Ø¨ÙØ¯Ø را٠ÙÙ
Ú©Ø§Ø±Û Ø¨Ø§ تÛÙ
پاکÙÛ٠ر٠ÙÙ
ÙØ§Ø± Ú©ÙÙ. Ù
ÛâØªÙÙÛ Ø±Ø²ÙÙ
٠٠عکس ÙÙ
اضاÙÙ Ú©ÙÛ."})]}),e.jsx("div",{className:"mt-8 sm:mt-10 grid grid-cols-3 gap-2.5",children:[{icon:W,label:"Ú¯ÙØªâÙÚ¯ÙÛ ØµÙ
ÛÙ
Û"},{icon:y,label:"بدÙÙ ÙØ±Ù
خشک"},{icon:H,label:"پاسخ Ø³Ø±ÛØ¹ تÛÙ
"}].map((i,o)=>{const a=i.icon;return e.jsxs("div",{className:"glass rounded-2xl p-3 sm:p-4 text-center text-[11px] sm:text-xs font-bold flex flex-col items-center gap-1.5",children:[e.jsx(a,{className:"w-4 h-4 text-[var(--brand-green-deep)]"}),i.label]},o)})}),e.jsx("div",{className:"mt-10 sm:mt-12",children:e.jsx(ce,{})}),e.jsxs("div",{className:"mt-10 sm:mt-14 glass rounded-3xl p-5 sm:p-7 text-center",children:[e.jsx(y,{className:"w-5 h-5 text-[var(--brand-purple)] mx-auto"}),e.jsxs("p",{className:"mt-3 text-sm sm:text-base font-bold leading-relaxed",children:["Ø§Ø·ÙØ§Ø¹Ø§Øª ٠رزÙÙ
ÙâÛ Ø´Ù
ا ",e.jsx("span",{className:"text-gradient",children:"Ù
ستÙÛÙ
اÙ"})," ب٠تÛÙ
پاکÙÛÙ Ù
ÛâØ±Ø³Ø¯ ٠در Ø³Ø±ÛØ¹âترÛ٠زÙ
ا٠Ù
Ù
Ú©Ù Ø¨Ø±Ø±Ø³Û Ù
ÛâØ´ÙØ¯."]})]})]})]}),e.jsx(J,{})]})}
2export{he as component};
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.