PageSourceSearch

https://sarid.ai/_next/static/chunks/7510.755401fcaba725a0.js

js sarid.ai collected 2026-10-05 15:16:47 UTC 9,256 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7510],{2317:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(71847).A)("Gamepad2",[["line",{x1:"6",x2:"10",y1:"11",y2:"11",key:"1gktln"}],["line",{x1:"8",x2:"8",y1:"9",y2:"13",key:"qnk9ow"}],["line",{x1:"15",x2:"15.01",y1:"12",y2:"12",key:"krot7o"}],["line",{x1:"18",x2:"18.01",y1:"10",y2:"10",key:"1lcuu1"}],["path",{d:"M17.32 5H6.68a4 4 0 0 0-3.978 3.59c-.006.052-.01.101-.017.152C2.604 9.416 2 14.456 2 16a3 3 0 0 0 3 3c1 0 1.5-.5 2-1l1.414-1.414A2 2 0 0 1 9.828 16h4.344a2 2 0 0 1 1.414.586L17 18c.5.5 1 1 2 1a3 3 0 0 0 3-3c0-1.545-.604-6.584-.685-7.258-.007-.05-.011-.1-.017-.151A4 4 0 0 0 17.32 5z",key:"mfqc10"}]])},17510:(e,t,s)=>{s.r(t),s.d(t,{AdminUserGames:()=>u});var a=s(95155),r=s(12115),n=s(2317),i=s(35299),o=s(89559),c=s(99265),l=s(93499),d=s(74911),p=s(23465);function u(e){let{userId:t,locale:s}=e,u="ar"===s?{title:"الألعاب المرتبطة بالمستخدم",hint:"الألعاب التي يملكها هذا المستخدم أو تمت مشاركتها معه. الدخول الإداري واضح ولا يضيف اللعبة إلى مكتبتك الشخصية.",refresh:"تحديث",failed:"تعذّر تحميل ألعاب المستخدم.",empty:"لا يملك هذا المستخدم ألعاباً ولم تتم مشاركة أي لعبة معه.",noDescription:"لا يوجد وصف للعبة.",owner:"المالك",unnamed:"مستخدم بلا اسم",assets:"الأصول",animations:"الحركات",scenes:"المشاهد",updated:"آخر تحديث",openAsAdmin:"فتح كمسؤول",status:{draft:"مسودة",active:"نشطة",archived:"مؤرشفة"}}:{title:"User games",hint:"Games this user owns or can access. Administrative entry is explicit and does not add the game to your personal library.",refresh:"Refresh",failed:"The user’s games could not be loaded.",empty:"This user does not own or share access to any games.",noDescription:"No game description.",owner:"Owner",unnamed:"Unnamed user",assets:"Assets",animations:"Animations",scenes:"Scenes",updated:"Updated",openAsAdmin:"Open as administrator",status:{draft:"Draft",active:"Active",archived:"Archived"}},[m,h]=(0,r.useState)([]),[j,g]=(0,r.useState)(!0),[y,v]=(0,r.useState)("");async function f(){g(!0),v("");let e=new URLSearchParams({userId:t,limit:"250"}),s=await fetch("/api/admin/games?".concat(e.toString()),{cache:"no-store"});if(g(!1),!s.ok){h([]),v(await (0,d.responseErrorMessage)(s,u.failed));return}h(await s.json())}return(0,r.useEffect)(()=>{f()},[t]),(0,a.jsxs)("section",{className:"admin-user-games","aria-busy":j,children:[(0,a.jsxs)("header",{children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{children:(0,a.jsx)(n.A,{size:15})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{children:u.title}),(0,a.jsx)("p",{children:u.hint})]})]}),(0,a.jsxs)("button",{type:"button",className:"secondary-action quiet",disabled:j,onClick:()=>void f(),children:[j?(0,a.jsx)(i.A,{className:"spin",size:14}):(0,a.jsx)(o.A,{size:14}),u.refresh]})]}),y?(0,a.jsx)("p",{className:"admin-user-games-message error",children:y}):null,j||y||0!==m.length?null:(0,a.jsx)("p",{className:"admin-user-games-message",children:u.empty}),m.length>0?(0,a.jsx)("div",{className:"admin-user-games-list",children:m.map(e=>(0,a.jsxs)("article",{children:[(0,a.jsxs)("div",{className:"admin-user-game-main",children:[(0,a.jsx)("span",{className:"admin-user-game-status ".concat(e.status),children:u.status[e.status]}),(0,a.jsx)("strong",{children:e.title}),(0,a.jsx)("small",{children:e.description||u.noDescription})]}),(0,a.jsxs)("div",{className:"admin-user-game-owner",children:[(0,a.jsx)(c.A,{size:14}),(0,a.jsxs)("span",{children:[(0,a.jsx)("small",{children:u.owner}),(0,a.jsx)("strong",{children:e.owner_name||u.unnamed}),(0,a.jsx)("em",{children:e.owner_email||"—"})]})]}),(0,a.jsxs)("dl",{children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("dt",{children:u.assets}),(0,a.jsx)("dd",{children:e.asset_count})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("dt",{children:u.animations}),(0,a.jsx)("dd",{children:e.animation_count})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("dt",{children:u.scenes}),(0,a.jsx)("dd",{children:e.scene_count})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("dt",{children:u.updated}),(0,a.jsx)("dd",{children:function(e,t){let s=new Date(e.includes("T")?e:"".concat(e.replace(" ","T"),"Z"));return Number.isNaN(s.getTime())?e:new Intl.DateTimeFormat("ar"===t?"ar":"en",{dateStyle:"medium",timeStyle:"short"}).format(s)}(e.updated_at,s)})]})]}),(0,a.jsxs)("a",{className:"secondary-action admin-user-game-open",href:(0,p.RI)({tab:"games",gameRouteKey:e.route_key,gameArea:"overview"}),children:[(0,a.jsx)(l.A,{size:14}),u.openAsAdmin]})]},e.id))}):null]})}},23465:(e,t,s)=>{s.d(t,{RI:()=>d,YB:()=>l});let a={script:"script",assets:"assets",storyboard:"storyboard",voices:"voice",animatic:"animatic","final-video":"video"},r={script:"script",assets:"assets",storyboard:"storyboard",voice:"voices",animatic:"animatic",video:"final-video"},n={overview:"overview",idea:"idea",gdd:"gdd","production-plan":"plan",assets:"assets",motion:"animation",scenes:"scenes",delivery:"delivery"},i={overview:"overview",idea:"idea",gdd:"gdd",plan:"production-plan",assets:"assets",animation:"motion",scenes:"scenes",delivery:"delivery"}
1,o=/^(?:prj|scr|gam)_[0-9A-HJKMNP-TV-Z]{12}$/;function c(e,t){return!!e&&!!o.test(e)&&(!t||e.startsWith("".concat(t,"_")))}function l(e){var t,s,r;let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new URLSearchParams;if(1===e.length&&"projects"===e[0])return{tab:"work",projectMode:"library",projectInspectorOpen:"1"===i.get("inspector")};if("projects"===e[0]&&c(e[1],"prj")){let t=e[1];if(2===e.length)return{tab:"work",projectRouteKey:t,projectMode:"workspace",projectInspectorOpen:"1"===i.get("inspector")};if(["media","scripts","assets","team"].includes(e[2])&&3===e.length)return{tab:"work",projectRouteKey:t,projectMode:"workspace",projectSection:e[2]};if("production"===e[2]){if(3===e.length)return{tab:"production",projectRouteKey:t};let s=a[e[3]];return s&&4===e.length?{tab:s,projectRouteKey:t}:null}return"scripts"===e[2]&&c(e[3],"scr")&&4===e.length?{tab:"script",projectRouteKey:t,scriptRouteKey:e[3]}:null}if("studio"===e[0]&&("image"===e[1]||"video"===e[1])&&2===e.length){let s=null!=(t=i.get("project"))?t:void 0;return s&&!c(s,"prj")?null:{tab:"create",studioMode:e[1],projectRouteKey:s}}if(1===e.length&&"gallery"===e[0])return{tab:"gallery"};if(2===e.length&&"discover"===e[0]&&"blueprints"===e[1])return{tab:"blueprints"};if(2===e.length&&"discover"===e[0]&&"showcase"===e[1])return{tab:"gallery"};if(1===e.length&&"team"===e[0])return{tab:"team"};if(2===e.length&&"tools"===e[0]&&"voice"===e[1]){let e=null!=(s=i.get("project"))?s:void 0;return e&&!c(e,"prj")?null:{tab:"voiceTools",projectRouteKey:e}}if(2===e.length&&"tools"===e[0]&&("proofreading"===e[1]||"arabic"===e[1])){let e=null!=(r=i.get("project"))?r:void 0;return e&&!c(e,"prj")?null:{tab:"proofreading",projectRouteKey:e}}if(1===e.length&&"recycle-bin"===e[0])return{tab:"recycle"};if(1===e.length&&"games"===e[0])return{tab:"games"};if("games"===e[0]&&c(e[1],"gam")){if(2===e.length)return{tab:"games",gameRouteKey:e[1],gameArea:"overview"};let t=n[e[2]];if(t&&3===e.length)return{tab:"games",gameRouteKey:e[1],gameArea:t}}return null}function d(e){let t=new URLSearchParams;e.projectInspectorOpen&&t.set("inspector","1");let s="/app/projects";if("work"===e.tab)"workspace"===e.projectMode&&e.projectRouteKey&&(s="/app/projects/".concat(e.projectRouteKey),e.projectSection&&"overview"!==e.projectSection&&(s+="/".concat(e.projectSection)));else if("production"===e.tab&&e.projectRouteKey)s="/app/projects/".concat(e.projectRouteKey,"/production");else if(r[e.tab]&&e.projectRouteKey)s="script"===e.tab&&e.scriptRouteKey?"/app/projects/".concat(e.projectRouteKey,"/scripts/").concat(e.scriptRouteKey):"/app/projects/".concat(e.projectRouteKey,"/production/").concat(r[e.tab]);else if("create"===e.tab)s="/app/studio/".concat("video"===e.studioMode?"video":"image"),e.projectRouteKey&&t.set("project",e.projectRouteKey);else if("team"===e.tab)s="/app/team";else if("games"===e.tab){var a;s=e.gameRouteKey?"/app/games/".concat(e.gameRouteKey,"/").concat(i[null!=(a=e.gameArea)?a:"overview"]):"/app/games"}else"blueprints"===e.tab?s="/app/discover/blueprints":"gallery"===e.tab?s="/app/discover/showcase":"voiceTools"===e.tab?(s="/app/tools/voice",e.projectRouteKey&&t.set("project",e.projectRouteKey)):"proofreading"===e.tab?(s="/app/tools/proofreading",e.projectRouteKey&&t.set("project",e.projectRouteKey)):"recycle"===e.tab&&(s="/app/recycle-bin");let n=t.toString();return"".concat(s).concat(n?"?".concat(n):"")}},89559:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(71847).A)("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]])},93499:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(71847).A)("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]])}}]);

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.