PageSourceSearch

https://burakyikama-kbwjiast.manus.space/assets/PlatformAdmin-D7Id_WxY.js

js burakyikama-kbwjiast.manus.space collected 2026-10-03 05:00:58 UTC 10,797 bytes, 8 lines download raw bytes

1import{e as A,r as m,t as f,j as t,u as k,m as p}from"./index-CDlG9mR7.js";import{B as x}from"./button-BC7YDrs4.js";import{C as h,b as g,c as u,a as b,d as j}from"./card-DL-hP3Ns.js";import{B as w,A as v,u as N,L as y,F as S,P as z}from"./AIChatBox-D_dhRYOw.js";import{B as C}from"./badge-B72akoDK.js";import{X as _}from"./x-DcFp29xU.js";import{S as B}from"./sparkles-CZMjlNtz.js";import{S as M}from"./shield-check-CzO2A9Vp.js";import{B as L}from"./building-2-Cp86UQ2d.js";import{C as F}from"./credit-card-CZE7Giwu.js";import{K as I}from"./key-round-D79giHrN.js";import"./input-CEhBt1NB.js";import"./index-BT8nzySL.js";import"./label-BcBybt4h.js";import"./textarea-Ds1YKmYb.js";import"./index-BZ1hhXBA.js";import"./index-BdQq_4o_.js";import"./loader-circle-Dp-DEKu2.js";import"./send-B_PgZLa3.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=A("Package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["path",{d:"m3.3 7 7.703 4.734a2 2 0 0 0 1.994 0L20.7 7",key:"yx3hmr"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]);function E(){const[s,l]=m.useState(!1),[n,i]=m.useState([]),r=f.aiAssistant.askPlatform.useMutation({onSuccess:e=>{const a=e.sources?.length?`
7
8Kaynaklar: ${e.sources.map(o=>o.title).join(", ")}`:"";i(o=>[...o,{role:"assistant",content:`${e.content}${a}`}])},onError:e=>i(a=>[...a,{role:"assistant",content:e.message}])}),c=e=>{i(a=>[...a,{role:"user",content:e}]),r.mutate({question:e,history:n.filter(a=>a.role!=="system").slice(-8).map(a=>({role:a.role,content:a.content}))})};return t.jsx("div",{"data-loc":"client/src/components/admin/PlatformAssistantPanel.tsx:25",className:"fixed bottom-5 right-5 z-40 w-[min(430px,calc(100vw-2rem))]",children:s?t.jsxs(h,{"data-loc":"client/src/components/admin/PlatformAssistantPanel.tsx:26",className:"overflow-hidden border-blue-400/25 bg-[#141922] text-white shadow-[0_24px_70px_-24px_rgba(29,78,216,.55)]",children:[t.jsxs(g,{"data-loc":"client/src/components/admin/PlatformAssistantPanel.tsx:26",className:"flex flex-row items-center gap-3 bg-[linear-gradient(135deg,#0f3b7a,#1677ff)] px-4 py-3 text-white",children:[t.jsx("span",{"data-loc":"client/src/components/admin/PlatformAssistantPanel.tsx:26",className:"grid size-9 place-items-center rounded-xl bg-white/15",children:t.jsx(w,{"data-loc":"client/src/components/admin/PlatformAssistantPanel.tsx:26",className:"size-5"})}),t.jsxs("div",{"data-loc":"client/src/components/admin/PlatformAssistantPanel.tsx:26",className:"min-w-0 flex-1",children:[t.jsx(u,{"data-loc":"client/src/components/admin/PlatformAssistantPanel.tsx:26",className:"text-sm text-white",children:"Platform SaaS Yardımcısı"}),t.jsx("p",{"data-loc":"client/src/components/admin/PlatformAssistantPanel.tsx:26",className:"mt-0.5 text-xs text-blue-100",children:"Katalog, firmalar, abonelik ve control-plane kullanımı"})]}),t.jsx(C,{"data-loc":"client/src/components/admin/PlatformAssistantPanel.tsx:26",className:"hidden border-white/20 bg-white/10 text-blue-50 sm:inline-flex",children:"NVIDIA"}),t.jsx(x,{"data-loc":"client/src/components/admin/PlatformAssistantPanel.tsx:26",type:"button",size:"icon",variant:"ghost",onClick:()=>l(!1),className:"text-white hover:bg-white/15 hover:text-white","aria-label":"Yardımcıyı kapat",children:t.jsx(_,{"data-loc":"client/src/components/admin/PlatformAssistantPanel.tsx:26",className:"size-4"})})]}),t.jsx(b,{"data-loc":"client/src/components/admin/PlatformAssistantPanel.tsx:26",className:"p-0",children:t.jsx(v,{"data-loc":"client/src/components/admin/PlatformAssistantPanel.tsx:26",messages:n,onSendMessage:c,isLoading:r.isPending,height:420,placeholder:"Control-plane hakkında sorun…",emptyStateMessage:"Platform Owner için yayımlanmış eğitim kaynaklarından yanıt alırsınız.",suggestedPrompts:["Yeni paket ve modül nasıl oluşturulur?","Satış başvurusu hangi aşamada?","Bir firmayı nasıl provision ederim?"]})})]}
8):t.jsxs(x,{"data-loc":"client/src/components/admin/PlatformAssistantPanel.tsx:26",type:"button",onClick:()=>l(!0),className:"ml-auto flex h-12 items-center gap-2 rounded-full bg-[#1677ff] px-5 text-white shadow-[0_18px_42px_-16px_rgba(22,119,255,.75)] hover:bg-[#0f65dd]",children:[t.jsx(B,{"data-loc":"client/src/components/admin/PlatformAssistantPanel.tsx:26",className:"size-4"}),"Platform yardımcısı"]})})}const O=[{label:"Firmalar ve tenantlar",detail:"Firma yaşam döngüsü, slug ve domain durumu",icon:L,section:"operations"},{label:"Paketler ve modüller",detail:"Ürün kataloğu, haklar ve kota kuralları",icon:K,section:"catalog"},{label:"Abonelik ve ödeme",detail:"Plan, satın alınan hizmet ve ödeme durumu",icon:F,section:"operations"},{label:"Fatura ve e-hesap",detail:"Ticari belgeler ve hesap bilgileri",icon:S,section:"operations"},{label:"Hesap ve erişim",detail:"Platform roller, şifre ve güvenlik kayıtları",icon:I,section:"roles"}];function lt(){const{user:s,loading:l}=N(),[,n]=k(),i=f.auth.logout.useMutation({onSuccess:()=>n(p)}),[r,c]=m.useState("overview"),e=a=>{c(a),window.requestAnimationFrame(()=>document.getElementById("platform-workspace")?.scrollIntoView({behavior:"smooth",block:"start"}))};return m.useEffect(()=>{!l&&!s&&n(p)},[l,s,n]),l||!s?t.jsx("div",{"data-loc":"client/src/pages/PlatformAdmin.tsx:36",className:"grid min-h-screen place-items-center bg-[#0d1117] text-slate-200",children:t.jsx("div",{"data-loc":"client/src/pages/PlatformAdmin.tsx:36",className:"rounded-2xl border border-white/10 bg-white/[.04] px-6 py-5 text-sm",children:"Platform oturumu hazırlanıyor…"})}):t.jsxs("main",{"data-loc":"client/src/pages/PlatformAdmin.tsx:39",className:"min-h-screen bg-[#0b0e13] text-slate-100",children:[t.jsx("header",{"data-loc":"client/src/pages/PlatformAdmin.tsx:40",className:"border-b border-white/[.08] bg-[#11151d]/95 backdrop-blur",children:t.jsxs("div",{"data-loc":"client/src/pages/PlatformAdmin.tsx:41",className:"mx-auto flex max-w-[1440px] items-center justify-between gap-4 px-5 py-4 sm:px-8",children:[t.jsxs("div",{"data-loc":"client/src/pages/PlatformAdmin.tsx:42",className:"flex items-center gap-3",children:[t.jsx("span",{"data-loc":"client/src/pages/PlatformAdmin.tsx:42",className:"grid size-11 place-items-center rounded-2xl bg-[#1677ff] shadow-lg shadow-blue-950/40",children:t.jsx(M,{"data-loc":"client/src/pages/PlatformAdmin.tsx:42",className:"size-5 text-white"})}),t.jsxs("div",{"data-loc":"client/src/pages/PlatformAdmin.tsx:42",children:[t.jsx("p",{"data-loc":"client/src/pages/PlatformAdmin.tsx:42",className:"text-[10px] font-black uppercase tracking-[.2em] text-[#83bcff]",children:"Kurumsal Web · Control Plane"}),t.jsx("h1",{"data-loc":"client/src/pages/PlatformAdmin.tsx:42",className:"mt-1 text-lg font-extrabold tracking-tight text-white",children:"Platform yönetim merkezi"})]})]}),t.jsxs("div",{"data-loc":"client/src/pages/PlatformAdmin.tsx:43",className:"flex items-center gap-2",children:[t.jsxs("span",{"data-loc":"client/src/pages/PlatformAdmin.tsx:43",className:"hidden text-xs text-slate-400 sm:inline",children:["Platform sahibi: ",s.username||"Yetkili yönetici"]}),t.jsxs(x,{"data-loc":"client/src/pages/PlatformAdmin.tsx:43",type:"button",variant:"outline",onClick:()=>i.mutate(),disabled:i.isPending,className:"border-white/10 bg-white/[.04] text-slate-200 hover:bg-white/[.09] hover:text-white",children:[t.jsx(y,{"data-loc":"client/src/pages/PlatformAdmin.tsx:43",className:"mr-2 size-4"}),"Çıkış"]})]})]})}),t.jsxs("div",{"data-loc":"client/src/pages/PlatformAdmin.tsx:46",className:"mx-auto grid max-w-[1440px] gap-6 px-5 py-7 sm:px-8 lg:grid-cols-[250px_minmax(0,1fr)]",children:[t.jsxs("aside",{"data-loc":"client/src/pages/PlatformAdmin.tsx:47",className:"space-y-3",children:[t.jsxs(h,{"data-loc":"client/src/pages/PlatformAdmin.tsx:47",className:"border-white/[.09] bg-[#141922] text-white",children:[t.jsxs(g,{"data-loc":"client/src/pages/PlatformAdmin.tsx:47",children:[t.jsx(u,{"data-loc":"client/src/pages/PlatformAdmin.tsx:47",className:"text-sm",children:"Merkezi yönetim"}),t.jsx(j,{"data-loc":"client/src/pages/PlatformAdmin.tsx:47",className:"text-slate-400",children:"Bu alan firma sitesi içerikleri için değil, Kurumsal Web SaaS’ı yönetmek içindir."})]}),t.jsx(b,{"data-loc":"client/src/pages/PlatformAdmin.tsx:47",className:"space-y-2",children:O.map(({label:a,detail:o,icon:P,section:d})=>t.jsxs("button",{"data-loc":"client/src/pages/PlatformAdmin.tsx:47",type:"button",onClick:()=>e(d),"aria-pressed":r===d,className:`w-full rounded-xl border p-3 text-left outline-none transition focus-visible:ring-2 focus-visible:ring-[#83bcff] ${r===d?"border-[#4c98ff]/55 bg-[#1677ff]/18 shadow-[0_8px_28px_-20px_rgba(22,119,255,.95)]":"border-white/[.07] bg-white/[.03] hover:border-white/[.16] hover:bg-white/[.075]"}`,children:[t.jsxs("span",{"data-loc":"client/src/pages/PlatformAdmin.tsx:47",className:"flex items-center gap-2 text-sm font-extrabold text-white",children:[t.jsx(P,{"data-loc":"client/src/pages/PlatformAdmin.tsx:47",className:"size-4 text-[#83bcff]"}),a]}),t.jsx("span",{"data-loc":"client/src/pages/PlatformAdmin.tsx:47",className:"mt-1 block pl-6 text-xs leading-5 text-slate-300",children:o})]},a))})]}),t.jsx("div",{"data-loc":"client/src/pages/PlatformAdmin.tsx:47",className:"rounded-2xl border border-blue-400/20 bg-blue-500/[.08] p-4 text-xs leading-5 text-blue-100",children:"Firmaların bağımsız siteleri tenant alanında yönetilir. Platform merkezi yalnız ticari ve sistemsel kontrolü taşır."})]}),t.jsxs("section",{"data-loc":"client/src/pages/PlatformAdmin.tsx:48",id:"platform-workspace",className:"min-w-0 scroll-mt-6",children:[t.jsxs("div",{"data-loc":"client/src/pages/PlatformAdmin.tsx:48",className:"mb-5",children:[t.jsx("p",{"data-loc":"client/src/pages/PlatformAdmin.tsx:48",className:"text-xs font-black uppercase tracking-[.18em] text-[#83bcff]",children:"Merkezi SaaS çalışma alanı"}),t.jsx("h2",{"data-loc":"client/src/pages/PlatformAdmin.tsx:48",className:"mt-2 text-2xl font-extrabold tracking-tight text-white sm:text-3xl",children:"Firmalar, paketler ve abonelikler"}),t.jsx("p",{"data-loc":"client/src/pages/PlatformAdmin.tsx:48",className:"mt-2 max-w-3xl text-sm leading-6 text-slate-400",children:"Web sitesi satın alan firmaların tenant yaşam döngüsünü, ürün kataloğunu ve abonelik haklarını bu merkezden yönetin."})]}),t.jsx(z,{"data-loc":"client/src/pages/PlatformAdmin.tsx:48",activeSection:r,onActiveSectionChange:c})]}),t.jsx(E,{"data-loc":"client/src/pages/PlatformAdmin.tsx:49"})]})]})}export{lt 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.