PageSourceSearch

https://adeebco-krcgguzr.manus.space/assets/OwnerDevelopmentStudio-DH7T1VJQ.js

js adeebco-krcgguzr.manus.space collected 2026-10-03 05:00:23 UTC 14,819 bytes, 11 lines download raw bytes

1import{c as h,r,t as g,j as e,L as f,A as b,S as j,d as D,m as O,E as N,C as u,a1 as y}from"./index-C9BAOTn9.js";/**
2 * @license lucide-react v0.453.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */const k=h("ScanSearch",[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["path",{d:"m16 16-1.9-1.9",key:"1dq9hf"}]]);/**
7 * @license lucide-react v0.453.0 - ISC
8 *
9 * This source code is licensed under the ISC license.
10 * See the LICENSE file in the root directory of this source tree.
11 */const C=h("SkipForward",[["polygon",{points:"5 4 15 12 5 20 5 4",key:"16p6eg"}],["line",{x1:"19",x2:"19",y1:"5",y2:"19",key:"futhcm"}]]),$={critical:"حرج",high:"مرتفع",medium:"متوسط",low:"منخفض"};function M(){const[a,v]=r.useState(null),[o,i]=r.useState(0),[w,x]=r.useState({}),[n,p]=r.useState(null),c=g.admin.developmentAudit.useMutation({onSuccess:s=>{v(s),i(0),x({})}}),d=g.admin.developmentWork.useMutation({onSuccess:s=>p(s)}),t=a?.findings[o],S=a?a.findings.length-Object.keys(w).length:0,m=s=>{!a||!t||(s==="approved"&&(p(null),d.mutate({title:t.title,reason:t.reason,safeAction:t.safeAction,files:t.files??[]})),x(l=>({...l,[o]:s})),i(l=>Math.min(l+1,a.findings.length)))};return e.jsx("main",{"data-loc":"client/src/pages/OwnerDevelopmentStudio.tsx:30",dir:"rtl",className:"min-h-screen bg-[#070a12] px-4 py-8 text-white sm:px-8",children:e.jsxs("div",{"data-loc":"client/src/pages/OwnerDevelopmentStudio.tsx:30",className:"mx-auto max-w-6xl",children:[e.jsxs(f,{"data-loc":"client/src/pages/OwnerDevelopmentStudio.tsx:31",href:"/owner-dashboard",className:"inline-flex items-center gap-2 text-sm text-[#9be9df] hover:text-white",children:[e.jsx(b,{"data-loc":"client/src/pages/OwnerDevelopmentStudio.tsx:31",className:"h-4 w-4"})," العودة إلى لوحة المالك"]}),e.jsxs("header",{"data-loc":"client/src/pages/OwnerDevelopmentStudio.tsx:32",className:"mt-6 overflow-hidden rounded-[2rem] border border-[#72d7ca]/25 bg-gradient-to-br from-[#142d39] via-[#101b2b] to-[#0d1220] p-7 sm:p-10",children:[e.jsxs("div",{"data-loc":"client/src/pages/OwnerDevelopmentStudio.tsx:32",className:"flex flex-wrap items-start justify-between gap-6",children:[e.jsxs("div",{"data-loc":"client/src/pages/OwnerDevelopmentStudio.tsx:32",children:[e.jsxs("div",{"data-loc":"client/src/pages/OwnerDevelopmentStudio.tsx:32",className:"flex items-center gap-2 text-sm font-bold text-[#9be9df]",children:[e.jsx(j,{"data-loc":"client/src/pages/OwnerDevelopmentStudio.tsx:32",className:"h-5 w-5"})," استوديو تطوير أديب"]}),e.jsx("h1",{"data-loc":"client/src/pages/OwnerDevelopmentStudio.tsx:32",className:"mt-4 text-3xl font-black sm:text-5xl",children:"اقتراح ثم موافقة أو تخطي"}),e.jsx("p",{"data-loc":"client/src/pages/OwnerDevelopmentStudio.tsx:32",className:"mt-4 max-w-3xl text-sm leading-8 text-slate-300",children:"يعرض المساعد نقصاً واحداً في كل مرة، ويسألك هل تريد تجهيز العمل عليه. عند الرفض ينتقل للنقص التالي. لا يبدأ أي تعديل فعلي ولا حذف ولا نشر دون خطوة مراجعة مستقلة."})]}),e.jsxs("div",{"data-loc":"client/src/pages/OwnerDevelopmentStudio.tsx:32",className:"rounded-2xl border border-[#72d7ca]/25 bg-[#72d7ca]/10 p-4 text-center",children:[e.jsx(D,{"data-loc":"client/src/pages/OwnerDevelopmentStudio.tsx:32",className:"mx-auto h-7 w-7 text-[#9be9df]"}),e.jsx("p",{"data-loc":"client/src/pages/OwnerDevelopmentStudio.tsx:32",className:"mt-2 text-xs font-bold text-[#d9fffa]",children:"وضع آمن"})]})]}),e.jsxs("div",{"data-loc":"client/src/pages/OwnerDevelopmentStudio.tsx:32",className:"mt-7 flex flex-wrap gap-3 text-xs text-slate-300",children:[e.jsx("span",{"data-loc":"client/src/pages/OwnerDevelopmentStudio.tsx:32",className:"rounded-full border border-emerald-300/25 bg-emerald-300/10 px-3 py-2",children:"لا حذف"}),e.jsx("span",{"data-loc":"client/src/pages/OwnerDevelopmentStudio.tsx:32",className:"rounded-full border border-emerald-300/25 bg-emerald-300/10 px-3 py-2",children:"لا نشر تلقائي"}),e.jsx("span",{"data-loc":"client/src/pages/OwnerDevelopmentStudio.tsx:32",className:"rounded-full border border-emerald-300/25 bg-emerald-300/10 px-3 py-2",children:"موافقة المالك مطلوبة"})]})]}),e.jsxs("section",{"data-loc":"client/src/pages/OwnerDevelopmentStudio.tsx:34",className:"mt-6 grid gap-5 lg:grid-cols-[.8fr_1.2fr]",children:[e.jsxs("div",{"data-loc":"client/src/pages/OwnerDevelopmentStudio.tsx:34",className:"rounded-3xl border border-white/10 bg-[#0d1421] p-6",children:[e.jsx(k,{"data-loc":"client/src/pages/OwnerDevelopmentStudio.tsx:34",className:"h-8 w-8 text-[#f3a243]"}),e.jsx("h2",{"data-loc":"client/src/pages/OwnerDevelopmentStudio.tsx:34",className:"mt-4 text-xl font-bold",children:"ابدأ قائمة النواقص"}),e.jsx("p",{"data-loc":"client/src/pages/OwnerDevelopmentStudio.tsx:34",className:"mt-3 text-sm leading-7 text-slate-400",children:"بعد التدقيق سيظهر اقتراح واحد. عند الموافقة يجهز المساعد Ø®Ø
11·Ø© تنفيذ واختبارات داخل Sandbox، ولا يكتب في الإنتاج."}),e.jsx("button",{"data-loc":"client/src/pages/OwnerDevelopmentStudio.tsx:34",type:"button",onClick:()=>c.mutate(),disabled:c.isPending,className:"mt-6 inline-flex w-full items-center justify-center gap-2 rounded-xl bg-[#72d7ca] px-5 py-3 font-bold text-[#06231f] transition hover:brightness-110 disabled:cursor-wait disabled:opacity-60",children:c.isPending?"جاري تحليل النواقص…":"ابدأ التدقيق الآمن"}),c.error&&e.jsx("p",{"data-loc":"client/src/pages/OwnerDevelopmentStudio.tsx:34",className:"mt-4 rounded-xl border border-rose-300/25 bg-rose-300/10 p-3 text-sm text-rose-200",children:"تعذر عرض التقرير الآن؛ لم يتم تعديل أي شيء."}),e.jsxs("div",{"data-loc":"client/src/pages/OwnerDevelopmentStudio.tsx:34",className:"mt-6 space-y-3 text-xs text-slate-500",children:[e.jsxs("p",{"data-loc":"client/src/pages/OwnerDevelopmentStudio.tsx:34",className:"flex gap-2",children:[e.jsx(O,{"data-loc":"client/src/pages/OwnerDevelopmentStudio.tsx:34",className:"h-4 w-4 shrink-0 text-[#72d7ca]"}),"المساعد لا يستطيع تجاوز صلاحيات المالك أو تغيير قواعد الحماية."]}),e.jsxs("p",{"data-loc":"client/src/pages/OwnerDevelopmentStudio.tsx:34",className:"flex gap-2",children:[e.jsx(N,{"data-loc":"client/src/pages/OwnerDevelopmentStudio.tsx:34",className:"h-4 w-4 shrink-0 text-[#9f9cff]"}),"الموافقة تشغل تجهيزاً آمناً فقط، ثم تعرض الخطة والاختبارات للمراجعة."]})]})]}),e.jsx("div",{"data-loc":"client/src/pages/OwnerDevelopmentStudio.tsx:36",className:"rounded-3xl border border-white/10 bg-[#0d1421] p-6",children:a?e.jsxs(e.Fragment,{children:[e.jsxs("div",{"data-loc":"client/src/pages/OwnerDevelopmentStudio.tsx:36",className:"flex flex-wrap items-start justify-between gap-4",children:[e.jsxs("div",{"data-loc":"client/src/pages/OwnerDevelopmentStudio.tsx:36",children:[e.jsxs("p",{"data-loc":"client/src/pages/OwnerDevelopmentStudio.tsx:36",className:"text-xs font-bold text-[#9be9df]",children:["درجة الجاهزية: ",a.healthScore,"/100"]}),e.jsx("h2",{"data-loc":"client/src/pages/OwnerDevelopmentStudio.tsx:36",className:"mt-2 text-2xl font-black",children:t?`اقتراح ${o+1} من ${a.findings.length}`:"انتهت قائمة الاقتراحات"})]}),e.jsxs("div",{"data-loc":"client/src/pages/OwnerDevelopmentStudio.tsx:36",className:"rounded-xl border border-emerald-300/25 bg-emerald-300/10 px-3 py-2 text-xs text-emerald-200",children:["متبقٍ للمراجعة: ",S]})]}),e.jsx("p",{"data-loc":"client/src/pages/OwnerDevelopmentStudio.tsx:36",className:"mt-4 rounded-2xl bg-[#070a12] p-4 text-sm leading-7 text-slate-300",children:a.summary}),t?e.jsx("article",{"data-loc":"client/src/pages/OwnerDevelopmentStudio.tsx:36",className:"mt-5 rounded-2xl border border-[#f3a243]/25 bg-[#070a12] p-5",children:e.jsxs("div",{"data-loc":"client/src/pages/OwnerDevelopmentStudio.tsx:36",className:"flex items-start gap-3",children:[e.jsx(y,{"data-loc":"client/src/pages/OwnerDevelopmentStudio.tsx:36",className:`mt-1 h-5 w-5 shrink-0 ${t.severity==="critical"||t.severity==="high"?"text-rose-300":"text-[#f3a243]"}`}),e.jsxs("div",{"data-loc":"client/src/pages/OwnerDevelopmentStudio.tsx:36",className:"min-w-0 flex-1",children:[e.jsxs("div",{"data-loc":"client/src/pages/OwnerDevelopmentStudio.tsx:36",className:"flex flex-wrap items-center justify-between gap-2",children:[e.jsx("h3",{"data-loc":"client/src/pages/OwnerDevelopmentStudio.tsx:36",className:"text-lg font-bold",children:t.title}),e.jsxs("span",{"data-loc":"client/src/pages/OwnerDevelopmentStudio.tsx:36",className:"text-xs text-slate-500",children:["الأولوية: ",$[t.severity]]})]}),e.jsx("p",{"data-loc":"client/src/pages/OwnerDevelopmentStudio.tsx:36",className:"mt-3 text-sm leading-7 text-slate-400",children:t.reason}),e.jsxs("p",{"data-loc":"client/src/pages/OwnerDevelopmentStudio.tsx:36",className:"mt-3 text-sm leading-7 text-[#bff8ef]",children:[e.jsx("strong",{"data-loc":"client/src/pages/OwnerDevelopmentStudio.tsx:36",children:"المقترح الآمن:"})," ",t.safeAction]}),t.files?.length>0&&e.jsx("p",{"data-loc":"client/src/pages/OwnerDevelopmentStudio.tsx:36",dir:"ltr",className:"mt-3 text-xs text-slate-600",children:t.files.join(" · ")}),e.jsxs("div",{"data-loc":"client/src/pages/OwnerDevelopmentStudio.tsx:36",className:"mt-6 grid gap-3 sm:grid-cols-2",children:[e.jsx("button",{"data-loc":"client/src/pages/OwnerDevelopmentStudio.tsx:36",type:"button",disabled:d.isPending,onClick:()=>m("approved"),className:"rounded-xl bg-[#72d7ca] px-4 py-3 text-sm font-bold text-[#06231f] disabled:opacity-60",children:d.isPending?"يجري تجÙ
11‡ÙŠØ² الخطة…":"أوافق ويبدأ تجهيز النقص"}),e.jsxs("button",{"data-loc":"client/src/pages/OwnerDevelopmentStudio.tsx:36",type:"button",disabled:d.isPending,onClick:()=>m("skipped"),className:"inline-flex items-center justify-center gap-2 rounded-xl border border-white/15 px-4 py-3 text-sm font-bold text-slate-300 hover:border-[#f3a243]/60 hover:text-white disabled:opacity-60",children:[e.jsx(C,{"data-loc":"client/src/pages/OwnerDevelopmentStudio.tsx:36",className:"h-4 w-4"})," تخطي والانتقال للتالي"]})]}),e.jsx("p",{"data-loc":"client/src/pages/OwnerDevelopmentStudio.tsx:36",className:"mt-3 text-center text-xs text-slate-600",children:"التجهيز ينشئ خطة واختبارات فقط داخل المسار الآمن، ولا يغيّر الإنتاج."})]})]})}):e.jsxs("div",{"data-loc":"client/src/pages/OwnerDevelopmentStudio.tsx:36",className:"mt-6 rounded-2xl border border-emerald-300/25 bg-emerald-300/10 p-6 text-center text-emerald-200",children:[e.jsx(u,{"data-loc":"client/src/pages/OwnerDevelopmentStudio.tsx:36",className:"mx-auto h-9 w-9"}),e.jsx("p",{"data-loc":"client/src/pages/OwnerDevelopmentStudio.tsx:36",className:"mt-3 font-bold",children:"انتهت الاقتراحات"}),e.jsx("p",{"data-loc":"client/src/pages/OwnerDevelopmentStudio.tsx:36",className:"mt-2 text-sm",children:"تمت مراجعة القائمة. يمكنك تشغيل تدقيق جديد لاكتشاف نواقص أخرى."})]}),n&&e.jsxs("div",{"data-loc":"client/src/pages/OwnerDevelopmentStudio.tsx:36",className:"mt-5 rounded-2xl border border-[#72d7ca]/25 bg-[#72d7ca]/[0.06] p-5",children:[e.jsx("h3",{"data-loc":"client/src/pages/OwnerDevelopmentStudio.tsx:36",className:"font-bold text-[#bff8ef]",children:"تم تجهيز خطة العمل للنقص الموافق عليه"}),e.jsx("p",{"data-loc":"client/src/pages/OwnerDevelopmentStudio.tsx:36",className:"mt-2 text-sm leading-7 text-slate-300",children:n.patchNotes}),e.jsx("h4",{"data-loc":"client/src/pages/OwnerDevelopmentStudio.tsx:36",className:"mt-4 text-sm font-bold",children:"خطة التنفيذ داخل Sandbox"}),e.jsx("ol",{"data-loc":"client/src/pages/OwnerDevelopmentStudio.tsx:36",className:"mt-2 list-decimal space-y-1 pr-5 text-sm leading-6 text-slate-300",children:n.plan.map((s,l)=>e.jsx("li",{"data-loc":"client/src/pages/OwnerDevelopmentStudio.tsx:36",children:s},`${s}-${l}`))}),e.jsx("h4",{"data-loc":"client/src/pages/OwnerDevelopmentStudio.tsx:36",className:"mt-4 text-sm font-bold",children:"الاختبارات المطلوبة"}),e.jsx("ul",{"data-loc":"client/src/pages/OwnerDevelopmentStudio.tsx:36",className:"mt-2 list-disc space-y-1 pr-5 text-sm leading-6 text-slate-300",children:n.tests.map((s,l)=>e.jsx("li",{"data-loc":"client/src/pages/OwnerDevelopmentStudio.tsx:36",children:s},`${s}-${l}`))}),e.jsx("p",{"data-loc":"client/src/pages/OwnerDevelopmentStudio.tsx:36",dir:"ltr",className:"mt-3 text-xs text-slate-600",children:n.changedFiles.join(" · ")}),e.jsx("p",{"data-loc":"client/src/pages/OwnerDevelopmentStudio.tsx:36",className:"mt-3 text-xs text-emerald-200",children:"الحذف: ممنوع · الكتابة على الإنتاج: ممنوعة · النشر: ممنوع"})]}),a.nextSteps.length>0&&e.jsxs("div",{"data-loc":"client/src/pages/OwnerDevelopmentStudio.tsx:36",className:"mt-5 rounded-2xl border border-[#9f9cff]/20 bg-[#9f9cff]/[0.06] p-4",children:[e.jsx("h3",{"data-loc":"client/src/pages/OwnerDevelopmentStudio.tsx:36",className:"font-bold text-[#d4d2ff]",children:"الخطوات التالية"}),e.jsx("ol",{"data-loc":"client/src/pages/OwnerDevelopmentStudio.tsx:36",className:"mt-3 list-decimal space-y-2 pr-5 text-sm leading-6 text-slate-300",children:a.nextSteps.slice(0,5).map((s,l)=>e.jsx("li",{"data-loc":"client/src/pages/OwnerDevelopmentStudio.tsx:36",children:s},`${s}-${l}`))})]})]}):e.jsx("div",{"data-loc":"client/src/pages/OwnerDevelopmentStudio.tsx:36",className:"grid min-h-64 place-items-center text-center text-slate-500",children:e.jsxs("div",{"data-loc":"client/src/pages/OwnerDevelopmentStudio.tsx:36",children:[e.jsx(u,{"data-loc":"client/src/pages/OwnerDevelopmentStudio.tsx:36",className:"mx-auto h-10 w-10 text-slate-700"}),e.jsx("p",{"data-loc":"client/src/pages/OwnerDevelopmentStudio.tsx:36",className:"mt-4 text-sm",children:"لم يبدأ التدقيق بعد."}),e.jsx("p",{"data-loc":"client/src/pages/OwnerDevelopmentStudio.tsx:36",className:"mt-2 text-xs",children:"سيظهر هنا أول اقتراح للمراجعة."})]})})})]})]})})}export{M 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.