PageSourceSearch

https://paklean.com/assets/careers-C_g4awNc.js

js paklean.com collected 2026-10-05 03:14:29 UTC 12,224 bytes, 2 lines download raw bytes

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.