PageSourceSearch

https://cvrportfolio-hqbx7tpu.manus.space/assets/AutomationHub-BUUiH593.js

js cvrportfolio-hqbx7tpu.manus.space collected 2026-10-03 05:01:30 UTC 13,909 bytes, 1 lines download raw bytes

1import{j as t}from"./vendor-react-BROQBj2b.js";import{D as n}from"./DashboardLayout--SVpaqf1.js";import{t as i}from"./index-Bd_6cr_J.js";import{u as h,v as f,B as j,a as A,w as H,T as N,f as d,g as k}from"./vendor-icons-9EzDAflf.js";import"./vendor-data-D6FifPC8.js";const u=c=>c?new Date(c).toLocaleString("ar-IQ",{dateStyle:"medium",timeStyle:"short"}):"لم يُشغّل بعد";function C(){const c=i.useUtils(),a=i.automation.dashboard.useQuery(),r=i.automation.markOpportunityReviewed.useMutation({onSuccess:()=>c.automation.dashboard.invalidate()});if(a.isLoading)return t.jsx(n,{"data-loc":"client/src/pages/AutomationHub.tsx:12",children:t.jsx("div",{"data-loc":"client/src/pages/AutomationHub.tsx:12",className:"p-8 text-center text-ink-soft",children:"جارٍ تحميل لوحة المتابعة…"})});if(a.isError||!a.data)return t.jsx(n,{"data-loc":"client/src/pages/AutomationHub.tsx:13",children:t.jsx("div",{"data-loc":"client/src/pages/AutomationHub.tsx:13",className:"m-6 border-r-4 border-clay bg-sand p-6 text-ink",children:"هذه الصفحة مخصصة لصاحب الموقع لمراجعة المتابعة والفرص."})});const{configs:m,checks:e,opportunities:l,visits:o}=a.data,p=l.filter(s=>s.status==="new"),x=e.filter(s=>s.status!=="ok"),b=s=>({linkedin:"LinkedIn",search:"محرك بحث",social:"شبكة اجتماعية",other_referral:"إحالة عامة",direct_or_unknown:"مباشر أو غير متاح"})[s||""]||"مصدر غير متاح",g=s=>({browser:"متصفح عادي محتمل",crawler_or_automated:"زحف أو معاينة آلية محتملة",unknown:"غير محدد"})[s||""]||"غير محدد";return t.jsx(n,{"data-loc":"client/src/pages/AutomationHub.tsx:22",children:t.jsxs("div",{"data-loc":"client/src/pages/AutomationHub.tsx:22",dir:"rtl",className:"mx-auto max-w-6xl space-y-8 pb-12",children:[t.jsxs("header",{"data-loc":"client/src/pages/AutomationHub.tsx:23",className:"flex flex-col gap-5 border-b border-ink/10 pb-7 sm:flex-row sm:items-end sm:justify-between",children:[t.jsxs("div",{"data-loc":"client/src/pages/AutomationHub.tsx:23",children:[t.jsx("p",{"data-loc":"client/src/pages/AutomationHub.tsx:23",className:"archive-label",children:"متابعة ذكية مجدولة"}),t.jsx("h1",{"data-loc":"client/src/pages/AutomationHub.tsx:23",className:"mt-3 text-3xl font-black text-ink sm:text-4xl",children:"مراقبة الموقع وفرص المراجعة"}),t.jsx("p",{"data-loc":"client/src/pages/AutomationHub.tsx:23",className:"mt-3 max-w-3xl leading-7 text-ink-soft",children:"تسجّل هذه اللوحة حالة الموقع والفرص التي عُثر عليها. لا ينشئ النظام حسابات، ولا يرسل سيرة ذاتية، ولا يراسل أي جهة من دون موافقتك الصريحة."})]}),t.jsxs("button",{"data-loc":"client/src/pages/AutomationHub.tsx:23",onClick:()=>a.refetch(),className:"inline-flex items-center justify-center gap-2 border border-ink/20 bg-paper px-4 py-3 text-sm font-extrabold text-archive-blue transition hover:border-archive-blue",children:[t.jsx(h,{"data-loc":"client/src/pages/AutomationHub.tsx:23",className:"h-4 w-4"})," تحديث"]})]}),t.jsxs("section",{"data-loc":"client/src/pages/AutomationHub.tsx:25",className:"grid gap-4 md:grid-cols-2 xl:grid-cols-4",children:[t.jsxs("article",{"data-loc":"client/src/pages/AutomationHub.tsx:25",className:"border border-ink/15 bg-paper p-6",children:[t.jsx(f,{"data-loc":"client/src/pages/AutomationHub.tsx:25",className:"h-7 w-7 text-archive-blue"}),t.jsx("p",{"data-loc":"client/src/pages/AutomationHub.tsx:25",className:"mt-5 text-sm font-bold text-ink-soft",children:"مهام المتابعة"}),t.jsx("p",{"data-loc":"client/src/pages/AutomationHub.tsx:25",className:"mt-1 text-3xl font-black text-ink",children:m.length}),t.jsx("p",{"data-loc":"client/src/pages/AutomationHub.tsx:25",className:"mt-2 text-sm leading-6 text-ink-soft",children:"مهام مسجلة؛ تُفعّل بعد نشر نقاط التشغيل وإنشاء الجدولة."})]}),t.jsxs("article",{"data-loc":"client/src/pages/AutomationHub.tsx:25",className:"border border-ink/15 bg-paper p-6",children:[t.jsx(j,{"data-loc":"client/src/pages/AutomationHub.tsx:25",className:"h-7 w-7 text-archive-blue"}),t.jsx("p",{"data-loc":"client/src/pages/AutomationHub.tsx:25",className:"mt-5 text-sm font-bold text-ink-soft",children:"فرص جديدة للمراجعة"}),t.jsx("p",{"data-loc":"client/src/pages/AutomationHub.tsx:25",className:"mt-1 text-3xl font-black text-ink",children:p.length}),t.jsx("p",{"data-loc":"client/src/pages/AutomationHub.tsx:25",className:"mt-2 text-sm leading-6 text-ink-soft",children:"نتائج عامة فقط؛ ليست تقديمات أو عروضاً مؤكدة."})]}),t.jsxs("article",{"data-loc":"client/src/pages/AutomationHub.tsx:25",className:"border border-ink/15 bg-paper p-6",children:[t.jsx(A,{"data-loc":"client/src/pages/AutomationHub.tsx:25",className:"h-7 w-7 text-archive-blue"}),t.jsx("p",{"data-loc":"client/src/pages/AutomationHub.tsx:25",className:"mt-5 text-sm font-bold text-ink-soft",children:"إشارات زيارة حديثة"}),t.jsx("p",{"data-loc":"client/src/pages/AutomationHub.tsx:25",className:"mt-1 text-3xl font-black text-ink",children:o.length}),t.jsx("p",{"data-loc":"client/src/pages/AutomationHub.tsx:25",className:"mt-2 text-sm leading-6 text-ink-soft",children:"مؤشرات مجمعة لا تكشف هوية الزائر."})]}),t.jsxs("article",{"data-loc":"client/src/pages/AutomationHub.tsx:25",className:"border border-ink/15 bg-paper p-6",children:[t.jsx(H,{"data-loc":"client/src/pages/AutomationHub.tsx:25",className:"h-7 w-7 text-archive-blue"}),t.jsx("p",{"data-loc":"client/src/pages/AutomationHub.tsx:25",className:"mt-5 text-sm font-bold text-ink-soft",children:"آخر فحوص الموقع"}),t.jsxs("p",{"data-loc":"client/src/pages/AutomationHub.tsx:25",className:"mt-1 text-3xl font-black text-ink",children:[e.length-x.length,"/",e.length||0]}),t.jsx("p",{"data-loc":"client/src/pages/AutomationHub.tsx:25",className:"mt-2 text-sm leading-6 text-ink-soft",children:"المسارات التي أعادت نتيجة سليمة ضمن آخر سجل متاح."})]})]}),t.jsxs("section",{"data-loc":"client/src/pages/AutomationHub.tsx:27",className:"border border-ink/15 bg-paper",children:[t.jsxs("div",{"data-loc":"client/src/pages/AutomationHub.tsx:27",className:"flex items-center justify-between border-b border-ink/10 p-6",children:[t.jsxs("div",{"data-loc":"client/src/pages/AutomationHub.tsx:27",children:[t.jsx("h2",{"data-loc":"client/src/pages/AutomationHub.tsx:27",className:"text-xl font-black",children:"صحة الموقع"}),t.jsx("p",{"data-loc":"client/src/pages/AutomationHub.tsx:27",className:"mt-1 text-sm text-ink-soft",children:"فحص تشخيصي للمسارات العامة؛ لا يجري تعديل محتوى الموقع تلقائياً."})]}),x.length>0?t.jsx(N,{"data-loc":"client/src/pages/AutomationHub.tsx:27",className:"h-6 w-6 text-clay"}):t.jsx(d,{"data-loc":"client/src/pages/AutomationHub.tsx:27",className:"h-6 w-6 text-archive-blue"})]}),t.jsx("div",{"data-loc":"client/src/pages/AutomationHub.tsx:27",className:"divide-y divide-ink/10",children:e.length===0?t.jsx("p",{"data-loc":"client/src/pages/AutomationHub.tsx:27",className:"p-6 text-sm text-ink-soft",children:"لا توجد فحوص مسجلة بعد."}):e.slice(0,12).map(s=>t.jsxs("div",{"data-loc":"client/src/pages/AutomationHub.tsx:27",className:"grid gap-2 p-5 sm:grid-cols-[1fr_auto_auto]",children:[t.jsxs("div",{"data-loc":"client/src/pages/AutomationHub.tsx:27",children:[t.jsx("p",{"data-loc":"client/src/pages/AutomationHub.tsx:27",className:"font-bold text-ink",dir:"ltr",children:s.route}),t.jsx("p",{"data-loc":"client/src/pages/AutomationHub.tsx:27",className:"mt-1 text-sm text-ink-soft",children:s.detail||"لا توجد ملاحظات"})]}),t.jsx("span",{"data-loc":"client/src/pages/AutomationHub.tsx:27",className:`w-fit px-2 py-1 text-xs font-bold ${s.status==="ok"?"bg-archive-blue/10 text-archive-blue":"bg-clay/10 text-clay"}`,children:s.status==="ok"?"سليم":s.status==="degraded"?"يحتاج متابعة":"تعذر الفحص"}),t.jsx("span",{"data-loc":"client/src/pages/AutomationHub.tsx:27",className:"text-xs text-ink-soft",children:u(s.checkedAt)})]},s.id))})]}),t.jsxs("section",{"data-loc":"client/src/pages/AutomationHub.tsx:29",className:"border border-ink/15 bg-paper",children:[t.jsxs("div",{"data-loc":"client/src/pages/AutomationHub.tsx:29",className:"border-b border-ink/10 p-6",children:[t.jsx("h2",{"data-loc":"client/src/pages/AutomationHub.tsx:29",className:"text-xl font-black",children:"مؤشرات الزيارات العامة"}),t.jsx("p",{"data-loc":"client/src/pages/AutomationHub.tsx:29",className:"mt-1 text-sm text-ink-soft",children:"توضح المصدر العام والتصنيف التقني عند توفرهما. لا تحفظ اسماً أو بريداً أو عنوان IP أو رابطاً كاملاً للزائر."})]}),t.jsx("div",{"data-loc":"client/src/pages/AutomationHub.tsx:29",className:"divide-y divide-ink/10",children:o.length===0?t.jsx("p",{"data-loc":"client/src/pages/AutomationHub.tsx:29",className:"p-6 text-sm text-ink-soft",children:"لا توجد إشارات زيارة بعد."}):o.slice(0,12).map(s=>t.jsxs("div",{"data-loc":"client/src/pages/AutomationHub.tsx:29",className:"grid gap-2 p-5 sm:grid-cols-[1fr_auto_auto]",children:[t.jsxs("div",{"data-loc":"client/src/pages/AutomationHub.tsx:29",children:[t.jsxs("p",{"data-loc":"client/src/pages/AutomationHub.tsx:29",className:"font-bold text-ink",children:[b(s.trafficSource)," — ",g(s.visitorKind)]}),t.jsxs("p",{"data-loc":"client/src/pages/AutomationHub.tsx:29",className:"mt-1 text-sm text-ink-soft",children:[s.countryCode?`الدولة التقريبية: ${s.countryCode}`:"الدولة: غير متاحة"," · ",s.browser||"متصفح غير محدد"," · ",t.jsx("span",{"data-loc":"client/src/pages/AutomationHub.tsx:29",dir:"ltr",children:s.path})]}),s.technicalAgent&&t.jsx("p",{"data-loc":"client/src/pages/AutomationHub.tsx:29",className:"mt-1 text-xs font-bold text-archive-blue",children:s.technicalAgent})]}),t.jsx("span",{"data-loc":"client/src/pages/AutomationHub.tsx:29",className:"w-fit bg-archive-blue/10 px-2 py-1 text-xs font-bold text-archive-blue",children:s.language||"لغة غير متاحة"}),t.jsx("span",{"data-loc":"client/src/pages/AutomationHub.tsx:29",className:"text-xs text-ink-soft",children:u(s.createdAt)})]},s.id))})]}),t.jsxs("section",{"data-loc":"client/src/pages/AutomationHub.tsx:31",className:"border border-ink/15 bg-paper",children:[t.jsxs("div",{"data-loc":"client/src/pages/AutomationHub.tsx:31",className:"border-b border-ink/10 p-6",children:[t.jsx("h2",{"data-loc":"client/src/pages/AutomationHub.tsx:31",className:"text-xl font-black",children:"فرص العمل والتعاون"}),t.jsx("p",{"data-loc":"client/src/pages/AutomationHub.tsx:31",className:"mt-1 text-sm text-ink-soft",children:"فرز استرشادي وفق التخصص والموقع؛ راجع كل رابط ومتطلباته قبل اتخاذ أي قرار."})]}),t.jsx("div",{"data-loc":"client/src/pages/AutomationHub.tsx:31",className:"divide-y divide-ink/10",children:l.length===0?t.jsx("p",{"data-loc":"client/src/pages/AutomationHub.tsx:31",className:"p-6 text-sm text-ink-soft",children:"ستظهر هنا الفرص الجديدة التي يجمعها البوت بعد أول تشغيل مجدول."}):l.map(s=>t.jsx("article",{"data-loc":"client/src/pages/AutomationHub.tsx:31",className:"p-6",children:t.jsxs("div",{"data-loc":"client/src/pages/AutomationHub.tsx:31",className:"flex flex-col gap-4 sm:flex-row sm:items-start sm:justify-between",children:[t.jsxs("div",{"data-loc":"client/src/pages/AutomationHub.tsx:31",children:[t.jsxs("div",{"data-loc":"client/src/pages/AutomationHub.tsx:31",className:"flex flex-wrap gap-2",children:[t.jsxs("span",{"data-loc":"client/src/pages/AutomationHub.tsx:31",className:`px-2 py-1 text-xs font-bold ${s.fit==="strong"?"bg-archive-blue/10 text-archive-blue":s.fit==="conditional"?"bg-sand text-clay":"bg-ink/5 text-ink-soft"}`,children:[s.fit==="strong"?"مطابقة قوية":s.fit==="conditional"?"مطابقة مشروطة":"مطابقة ضعيفة"," — ",s.matchScore,"/100"]}),t.jsx("span",{"data-loc":"client/src/pages/AutomationHub.tsx:31",className:"px-2 py-1 text-xs font-bold text-ink-soft",children:s.source})]}),t.jsx("h3",{"data-loc":"client/src/pages/AutomationHub.tsx:31",className:"mt-3 text-lg font-black text-ink",children:s.title}),t.jsx("p",{"data-loc":"client/src/pages/AutomationHub.tsx:31",className:"mt-1 text-sm text-ink-soft",children:[s.organization,s.location].filter(
1Boolean).join(" — ")||"الجهة أو الموقع غير محدد في النتيجة"}),t.jsx("p",{"data-loc":"client/src/pages/AutomationHub.tsx:31",className:"mt-3 max-w-3xl text-sm leading-7 text-ink-soft",children:s.matchReason})]}),t.jsxs("div",{"data-loc":"client/src/pages/AutomationHub.tsx:31",className:"flex flex-wrap gap-2",children:[t.jsxs("a",{"data-loc":"client/src/pages/AutomationHub.tsx:31",href:s.sourceUrl,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-2 border border-ink/20 px-3 py-2 text-sm font-bold text-archive-blue",children:[t.jsx(k,{"data-loc":"client/src/pages/AutomationHub.tsx:31",className:"h-4 w-4"})," الرابط الرسمي"]}),s.status==="new"&&t.jsxs("button",{"data-loc":"client/src/pages/AutomationHub.tsx:31",disabled:r.isPending,onClick:()=>r.mutate({id:s.id}),className:"inline-flex items-center gap-2 bg-ink px-3 py-2 text-sm font-bold text-paper",children:[t.jsx(d,{"data-loc":"client/src/pages/AutomationHub.tsx:31",className:"h-4 w-4"})," تمّت المراجعة"]})]})]})},s.id))})]})]})})}export{C 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.