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.