ryugi-artifacts 1.68.0 → 1.68.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.cjs
CHANGED
|
@@ -4234,7 +4234,7 @@ async function startServer(options, hooks) {
|
|
|
4234
4234
|
import_node_fs15.default.mkdirSync(paths.state, { recursive: true });
|
|
4235
4235
|
if (!import_node_fs15.default.existsSync(import_node_path15.default.join(paths.state, ".gitignore")))
|
|
4236
4236
|
import_node_fs15.default.writeFileSync(import_node_path15.default.join(paths.state, ".gitignore"), "*\n");
|
|
4237
|
-
const cliVersion = process.env.RYUGI_ARTIFACTS_VERSION || (true ? "1.68.
|
|
4237
|
+
const cliVersion = process.env.RYUGI_ARTIFACTS_VERSION || (true ? "1.68.1" : "");
|
|
4238
4238
|
const known = readProjects(machine.projects).some((entry) => entry.dir === paths.project);
|
|
4239
4239
|
const finish = async (info, reused) => {
|
|
4240
4240
|
recordAgent(paths);
|
|
@@ -4665,7 +4665,7 @@ var updateCommand = {
|
|
|
4665
4665
|
try {
|
|
4666
4666
|
report2 = await performUpdate(
|
|
4667
4667
|
{
|
|
4668
|
-
current: "1.68.
|
|
4668
|
+
current: "1.68.1",
|
|
4669
4669
|
file: __filename,
|
|
4670
4670
|
env: process.env,
|
|
4671
4671
|
registry: process.env.npm_config_registry || "https://registry.npmjs.org/",
|
|
@@ -4874,7 +4874,7 @@ async function main(argv) {
|
|
|
4874
4874
|
process.on("SIGINT", interrupt);
|
|
4875
4875
|
process.on("SIGTERM", terminate);
|
|
4876
4876
|
try {
|
|
4877
|
-
return await dispatchSemantic(argv, COMMANDS, BROWSE_OPTIONS, "1.68.
|
|
4877
|
+
return await dispatchSemantic(argv, COMMANDS, BROWSE_OPTIONS, "1.68.1", selection.options, writer, abort.signal);
|
|
4878
4878
|
} finally {
|
|
4879
4879
|
process.removeListener("SIGINT", interrupt);
|
|
4880
4880
|
process.removeListener("SIGTERM", terminate);
|
package/dist/server.cjs
CHANGED
|
@@ -48383,7 +48383,7 @@ var import_node_os2 = __toESM(require("node:os"), 1);
|
|
|
48383
48383
|
var import_node_path42 = __toESM(require("node:path"), 1);
|
|
48384
48384
|
|
|
48385
48385
|
// package.json
|
|
48386
|
-
var version = "1.68.
|
|
48386
|
+
var version = "1.68.1";
|
|
48387
48387
|
|
|
48388
48388
|
// src/server/browser-focus.ts
|
|
48389
48389
|
var import_node_child_process = require("node:child_process");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as e}from"./rolldown-runtime-COiEfhsA.js";import{g as t}from"./route-B-3a8kXR.js";import{t as n}from"./react-B8SKf8RM.js";import{Kr as r,Wr as i,d as a,i as o,n as s,t as c,u as l}from"./split-url-Ds_SbiRI.js";import{t as u}from"./jsx-runtime-DePvh3-m.js";import{q as d}from"./MotionConfigContext-DBHtopYR.js";import{t as f}from"./chevron-down-MyXUwHqO.js";import{t as p}from"./chevron-left-B7WJAO5q.js";import{t as m}from"./chevron-up-BLztg0Iv.js";import{a as h,c as g,i as _,l as v,n as ee,o as te,r as y,s as b,t as ne,u as x}from"./route-messages-D6nsn-yO.js";import{t as S}from"./file-text-BwtMWDOY.js";import{t as C}from"./useTranslation-BCUMbI5g.js";import{a as w,i as T,n as E,t as D}from"./motion-Cy65kd7X.js";import{n as re,t as ie}from"./useMedia-CWOjvrMw.js";import{r as ae}from"./type-icons-BugaK-eL.js";import{n as O}from"./ref-DeJSmII1.js";var k={name:`arrow-left-right`,size:24,node:[[`path`,{d:`M8 3 4 7l4 4`,key:`9rb6wj`}],[`path`,{d:`M4 7h16`,key:`6tx8e3`}],[`path`,{d:`m16 21 4-4-4-4`,key:`siv7j2`}],[`path`,{d:`M20 17H4`,key:`h6l3hr`}]]};k.node;var oe=d(k),A=e(n(),1),j=u();function se({bar:e,onStep:t}){let{t:n}=C();return e?e.kind===`notice`?(0,j.jsxs)(`div`,{"data-split-notice":!0,role:`status`,className:`x10l6tqk xkpr539 x1nrll8i xuuh30 x1u8a7rm x78zum5 x6s0dn4 x17d4w8g x10w6t97 x1awh872 xur7f20 x12ilycc x1d5q07e xqfszdh xfifm61 x1bo0w0s xuxw1ft`,children:[(0,j.jsx)(r,{size:14}),(0,j.jsx)(`span`,{className:`x1fao0z8 xo2rkog`,children:e.key}),e.elsewhere?n(`split.elsewhere`,{document:e.elsewhere}):n(`split.unreferenced`)]}):(0,j.jsxs)(`div`,{"data-split-stepper":!0,className:`x10l6tqk xkpr539 x1nrll8i xuuh30 x1u8a7rm x78zum5 x6s0dn4 x17d4w8g x10w6t97 x1awh872 xur7f20 x12ilycc x1d5q07e xqfszdh xfifm61 x1bo0w0s xuxw1ft`,children:[(0,j.jsx)(`span`,{className:`x1fao0z8 xo2rkog`,children:e.key}),n(`split.position`,{index:e.index+1,total:e.total}),(0,j.jsx)(`button`,{"aria-label":n(`split.previous`),type:`button`,onClick:()=>t(-1),className:`xrvj5dj x1ku5rj1 x17z2i9w x17rw0jw x1717udv xc342km x1sxf85j xjbqb8w x1bo0w0s x1ypdohk xj0l527`,children:(0,j.jsx)(m,{size:14})}),(0,j.jsx)(`button`,{"aria-label":n(`split.next`),type:`button`,onClick:()=>t(1),className:`xrvj5dj x1ku5rj1 x17z2i9w x17rw0jw x1717udv xc342km x1sxf85j xjbqb8w x1bo0w0s x1ypdohk xj0l527`,children:(0,j.jsx)(f,{size:14})})]}):null}function ce(e){let[t,n]=(0,A.useState)(null),r=(0,A.useRef)(null),i=(0,A.useRef)(e);return i.current=e,(0,A.useEffect)(()=>l((e,t)=>{let o=i.current();if(e.kind!==`header`||!o||t!==o)return;let{activity:s,comments:c,history:l,historyOpen:u}=e;n({activity:s,comments:c,history:l,historyOpen:u}),a(o,{kind:`chrome`,hosted:!!r.current})}),[]),{header:t,history:e=>a(i.current(),{kind:`history`,action:e}),host:e=>{r.current!==e&&(r.current=e,a(i.current(),{kind:`chrome`,hosted:e}))}}}var M=e(t(),1),N=280,P=2500,F=5e3,I=e=>requestAnimationFrame(()=>requestAnimationFrame(e));function L(e,t){let n=document.documentElement,r={duration:N,fill:`both`};n.animate([{opacity:0,transform:`translateX(${48*t}px)`},{opacity:1,transform:`none`}],{...r,easing:D,pseudoElement:`::view-transition-new(${e})`}),n.animate([{opacity:1,transform:`none`},{opacity:0,transform:`translateX(${-24*t}px)`}],{...r,easing:E,pseudoElement:`::view-transition-old(${e})`}),n.animate([{clipPath:`inset(0)`},{clipPath:`inset(0)`}],{...r,pseudoElement:`::view-transition-group(${e})`})}function le({apply:e,section:t,animate:n}){let[r,i]=(0,A.useState)(null),a=(0,A.useRef)(r),o=(0,A.useRef)(null),s=(0,A.useRef)(void 0),c=(0,A.useRef)({apply:e,section:t,animate:n});c.current={apply:e,section:t,animate:n};let u=e=>{if(a.current!==e)return;a.current=null,clearTimeout(s.current);let t=()=>(0,M.flushSync)(()=>{i(null),c.current.apply(e)});if(!document.startViewTransition||!c.current.animate()||w())return t();let n=c.current.section(e.slot),r=`split-${e.slot}`;n&&(n.style.viewTransitionName=r);let o=document.startViewTransition(t),l=()=>{n&&(n.style.viewTransitionName=``)};o.ready.then(()=>L(r,e.enter),l),o.finished.then(l,l)},d=(0,A.useRef)(u);return d.current=u,(0,A.useEffect)(()=>{if(!r)return;let e=setTimeout(()=>d.current(r),F),t=l((e,t)=>{e.kind===`painted`&&t&&t===o.current?.contentWindow&&d.current(r)});return()=>{clearTimeout(e),clearTimeout(s.current),t()}},[r]),{incoming:r,stage:e=>{let t=a.current;t&&t.slot!==e.slot&&c.current.apply(t),a.current=e,i(e)},frame:e=>{o.current=e},loaded:()=>{let e=a.current;e&&(e.pane.type===`html`?I(()=>d.current(e)):s.current=setTimeout(()=>d.current(e),P))}}}var R=[`main`,`side`],z=e=>e===`main`?`side`:`main`,B=({type:e,id:t})=>({type:e,id:t});function ue(e,t){let n=(0,A.useRef)(null),r=(0,A.useRef)(new WeakSet),i=(0,A.useRef)(``),o=(0,A.useRef)(t);o.current=t;let s=(0,A.useRef)(e);s.current=e;let c=e=>{let t=n.current,i=s.current(e);if(!t||!i||!r.current.has(i))return;let o=t.panes[z(e)];a(i,{kind:`split-role`,role:e===t.primary?`primary`:`beside`,other:t.open&&o.id?B(o):null})};return(0,A.useEffect)(()=>l((e,t)=>{if(e.kind!==`want-role`)return;let n=R.find(e=>s.current(e)===t);n&&t&&(r.current.add(t),c(n))}),[]),(e,t,r)=>{n.current={panes:e,primary:t,open:r};for(let e of R)(r||e===t)&&c(e);let a=e[z(t)],s={primary:B(e[t]),beside:r&&a.id?B(a):null},l=JSON.stringify(s);l!==i.current&&(i.current=l,o.current?.(s))}}var V=[`main`,`side`],H=e=>e===`main`?`side`:`main`;function de({artboard:e,side:t,document:n,panes:r,slotOfType:i,focus:o,host:s,show:u,navigate:d,replace:f}){let p=(0,A.useRef)({main:null,side:null}),m=(0,A.useRef)(r);m.current=r;let g=(0,A.useRef)(i);g.current=i;let v=(0,A.useRef)({artboard:e,side:t,document:n,backlinks:null,cursor:null,groups:[]}),[te,y]=(0,A.useState)(null),b=(0,A.useRef)(u);b.current=u;let x=(0,A.useRef)(d);x.current=d;let S=(0,A.useRef)(f);S.current=f;let[C,w]=(0,A.useState)(0),T=(0,A.useRef)(null);(0,A.useEffect)(()=>{(v.current.artboard!==e||v.current.side!==t)&&(T.current=null),v.current.artboard=e,v.current.side=t,v.current.document=n},[e,t,n]),(0,A.useEffect)(()=>{if(e&&s.onArtboardChange)return s.onArtboardChange(e,()=>w(e=>e+1),t)},[e,t,s]),(0,A.useEffect)(()=>{if(v.current.backlinks=null,v.current.groups=[],!e)return;let n=!1;return s.loadLinks(e,t).then(e=>{!n&&e&&(v.current.backlinks=e.backlinks,v.current.groups=e.groups)}),()=>{n=!0}},[e,t,s,C]);let E=({cursor:e,effects:t})=>{v.current.cursor=e;for(let e of t)if(`to`in e){let t=g.current(e.to);if(!t)continue;e.message.kind===`focus`&&b.current(t),a(p.current[t]?.contentWindow,e.message)}else if(`navigate`in e)y(null),x.current(e.navigate);else if(`notice`in e)y({kind:`notice`,...e.notice});else if(`stepper`in e)y(e.stepper.total>1?{kind:`stepper`,...e.stepper}:null);else if(`url`in e){Object.assign(o,{group:e.url.group,board:e.url.board,frame:e.url.frame,page:e.url.page});let t=new URLSearchParams(location.search);for(let e of[`group`,`board`,`frame`,`wbpage`])t.delete(e);e.url.frame?t.set(`frame`,e.url.frame):e.url.page?t.set(`wbpage`,e.url.page):e.url.group?t.set(`group`,e.url.group):e.url.board&&t.set(`board`,e.url.board);let n=t.toString();history.replaceState(history.state,``,`${location.pathname}${n?`?${n}`:``}`),y(null)}};return(0,A.useEffect)(()=>l((e,t)=>{let n=V.find(e=>p.current[e]?.contentWindow===t);if(!n)return;let r=m.current,i=r[n].type,l=!!v.current.artboard&&!!v.current.document;if(e.kind===`ref-open`){let t=r[H(n)],a=s.refId(e.target),o=O(e.target);if(!a)return;let u=r[n];if(u.id===a&&u.type===o)return;let d=t.id===a&&t.type===o;if(!(l&&i===`document`&&c(o)&&(n===`main`||d))){if(d)return;y(null),S.current(H(n),{type:o,id:a},h(e.target));return}}if(l||e.kind===`open-doc`){if(e.kind===`ready`){if(!v.current.artboard||!v.current.document)return;let e=p.current[n]?.contentWindow;for(let t of ne(i,v.current.artboard,o))a(e,t);i===`document`&&T.current&&a(e,{kind:`board`,artboard:v.current.artboard,board:T.current})}else e.kind===`board-state`&&(T.current=e.board),E(ee(i,e,v.current,s))}}),[]),{bar:te,frame:e=>t=>{p.current[e]=t},step:e=>E(_(v.current,e)),window:e=>p.current[e]?.contentWindow}}var U=[`main`,`side`],W=`ryugiSplitPanes`,fe=(e,t)=>e.type===t.type&&e.id===t.id,pe=e=>{let t=U.find(t=>c(e[t].type)&&e[G(t)].type===`document`);return{boardSlot:t,docSlot:t?G(t):U.find(t=>e[t].type===`document`)??null,slotOfType:t=>U.find(n=>e[n].type===t)}},G=e=>e===`main`?`side`:`main`,me={document:S,artboard:g,whiteboard:b,html:x},he=(e,t)=>{let n=t?.kind;return e===`document`?n??`artboard`:n===`document`||n===`html`?n:`document`},ge=.25,_e=.75,ve={position:`absolute`,visibility:`hidden`},ye=240,be=180,xe=320,Se=[{opacity:0,transform:`translateX(48px)`},{opacity:1,transform:`none`}],Ce=[{opacity:1,transform:`none`},{opacity:0,transform:`translateX(48px)`}],we=[{transform:`translateX(100%)`},{transform:`none`}],Te=[{transform:`none`},{transform:`translateX(100%)`}];function Ee(e,t){let[n,r]=(0,A.useState)(null);return(0,A.useEffect)(()=>{if(!t||!e.title)return;let n=!1;return e.title(t).then(e=>{!n&&e&&r({id:t,text:e})}),()=>{n=!0}},[e,t]),n?.id===t?n.text:t}function K({type:e,id:t,split:n,host:r,fill:c=!1,onPanes:u}){let{t:d}=C(),f=re(ie),[m,h]=(0,A.useState)(n?.with??``),[g]=(0,A.useState)(()=>({type:e,id:t})),[_,ee]=(0,A.useState)(g),[b,ne]=(0,A.useState)(()=>he(_.type,n)),x={main:_,side:{type:b,id:m}},S=(0,A.useRef)(x);S.current=x;let{docSlot:O}=pe(x),k=(0,A.useRef)(f);k.current=f;let M=(0,A.useRef)({main:null,side:null}),N=le({animate:()=>!k.current,section:e=>M.current[e],apply:e=>{Z({...S.current,[e.slot]:e.pane}),q(e.slot)}}),P=N.incoming?{...x,[N.incoming.slot]:N.incoming.pane}:x,{boardSlot:F,slotOfType:I}=pe(P),L=(0,A.useRef)(I);L.current=I;let R=(0,A.useRef)({group:n?.group,board:n?.board,frame:n?.frame,page:n?.page}).current,z=(0,A.useRef)(`main`),[B,V]=(0,A.useState)(`main`),[H,K]=(0,A.useState)(!!n),[De,q]=(0,A.useState)(`side`),[Oe,ke]=(0,A.useState)(.58),[Ae,je]=(0,A.useState)(!1),Me=(0,A.useRef)(null),J=(0,A.useRef)(0),Y=(0,A.useRef)(0),Ne=(0,A.useRef)(null),Pe=(0,A.useRef)(H),Fe=(0,A.useRef)([]),Ie=(0,A.useRef)({}),Le=(0,A.useRef)(null),Re=(0,A.useRef)(!1),X=de({artboard:F?P[F].id:``,side:F?P[F].type:`artboard`,document:F?P[G(F)].id:``,panes:P,slotOfType:I,focus:R,host:r,show:e=>{q(e),!H&&(K(!0),$(z.current,!0))},navigate:e=>{let t=new URL(e,location.href),n=s(t.search),i=x[z.current],a=r.path(i.type,i.id);t.pathname!==a||!n||z.current!==`main`?location.assign(e):(Ue(),Ge(n),We({...x,side:{type:he(_.type,n),id:n.with}},ze(`side`)))},replace:(e,t,n)=>{Ue();let r=e!==z.current;Object.assign(R,{group:r?n.group:void 0,board:r?n.board:void 0,frame:r?n.frame:void 0,page:r?n.page:void 0}),We({...P,[e]:t},ze(e)),Be(e,t,ze(e))}}),ze=e=>e===z.current?1:-1,Be=(e,t,n)=>{H&&x[e].id&&!fe(x[e],t)?N.stage({slot:e,pane:t,enter:n}):(Z({...x,[e]:t}),q(e))},Ve=(0,A.useRef)(Be);Ve.current=Be;let Z=e=>{ee(e.main),ne(e.side.type),h(e.side.id),K(!0)},He=(e,t,n,r)=>({...e,focus:{...R},open:t,seq:n,enter:r}),Ue=()=>{let e=history.state;e?.[W]||(J.current=0,Y.current=0,history.replaceState({...e,[W]:He(x,H,0,0)},``))},We=(e,t)=>{J.current+=1,Y.current=t;let n=e[z.current],i=e[G(z.current)],a=x[z.current],s=n.type===a.type&&n.id===a.id?location.pathname:r.path(n.type,n.id);history.pushState({...history.state,[W]:He(e,!0,J.current,t)},``,`${s}${o(location.search,y(i.id,i.type,R,n.type))}`)},Ge=e=>{Object.assign(R,{group:e.group,board:e.board,frame:e.frame,page:e.page}),ne(he(_.type,e)),h(e.with),K(!0),q(`side`)},Ke=(0,A.useRef)(Ge);Ke.current=Ge;let qe=(0,A.useRef)(()=>{});qe.current=()=>{z.current=`main`,V(`main`),K(!1)};let Je=(0,A.useRef)(Z);Je.current=Z,(0,A.useEffect)(()=>{let e=()=>{let e=history.state?.[W];if(e){let t=e.seq<J.current?-Y.current:e.enter;J.current=e.seq,Y.current=e.enter,Object.assign(R,e.focus);let n=U.filter(t=>!fe(e[t],S.current[t]));if(e.open&&n.length===1){Ve.current(n[0],e[n[0]],t||1);return}Je.current(e),e.open||qe.current();return}if(location.pathname!==r.path(g.type,g.id))return;ee(g);let t=s(location.search);t?Ke.current(t):qe.current()};return window.addEventListener(`popstate`,e),()=>window.removeEventListener(`popstate`,e)},[r,g,R]);let Ye=Ee(r,m),Q=ce(()=>O?X.window(O):null),Xe=ue(e=>X.window(e),u),Ze=()=>{let e=z.current,t=H?f?De:null:e;for(let n of U){let r=M.current[n];if(!r)continue;let i=n===e?`primary`:`secondary`;r.dataset.role=i,r.style.order=i===`primary`?`0`:`2`,r.style.flex=!H||f?`1 1 auto`:i===`primary`?`0 0 ${Oe*100}%`:`1 1 0`;let a=t!==null&&t!==n;r.style.position=a?ve.position:``,r.style.inset=a?`0`:``,r.style.visibility=a?ve.visibility:``;let o=r.querySelector(`:scope > header`);o&&(o.style.display=i===`primary`?`none`:``)}let n=Ie.current[e];n&&(document.title=n);let r=document.querySelector(`link[rel="icon"]`);r&&(r.href=ae(x[e].type));let i=H&&!f&&x[e].type!==`document`;Re.current=H&&!f&&x[e].type===`document`;let o=I(`whiteboard`);return o&&a(X.window(o),{kind:`chrome`,hosted:Re.current}),O&&M.current[O]?.style.setProperty(`--split-notice-top`,i?`49px`:``),Q.host(i),Xe(x,e,H),t};(0,A.useEffect)(()=>l((e,t)=>{let n=L.current(`whiteboard`);if(e.kind===`ready`&&t&&n&&t===X.window(n)&&a(X.window(n),{kind:`chrome`,hosted:Re.current}),e.kind!==`title`)return;let r=U.find(e=>X.window(e)===t);r&&(Ie.current[r]=e.title,r===z.current&&(document.title=e.title))}),[]),(0,A.useLayoutEffect)(()=>{for(let e of Fe.current.splice(0))e.cancel();let e=Ze(),t=Pe.current,n=Ne.current;if(Pe.current=H,Ne.current=e,w())return;let r=M.current[G(z.current)];if(H&&!t&&!f)T(r,Se,{duration:ye,easing:D}),T(M.current[z.current],[{flexBasis:`100%`},{flexBasis:`${Oe*100}%`}],{duration:ye,easing:D});else if(f&&e&&n&&e!==n&&e!==z.current){let t=M.current[n];t&&(t.style.visibility=``),T(M.current[e],we,{duration:ye,easing:D}).then(()=>{t&&Ne.current!==n&&(t.style.visibility=`hidden`)})}});let $=(e,t)=>{let n=x[G(e)],i=o(location.search,t?y(n.id,n.type,R,x[e].type):null);history.replaceState(history.state,``,`${r.path(x[e].type,x[e].id)}${i}`)},Qe=async(e,t,n)=>{if(!e||w())return n();let r=e.animate(t,{duration:be,easing:E,fill:`forwards`});await r.finished.catch(()=>void 0),Fe.current.push(r),n()},$e=()=>{let e=U.map(e=>M.current[e]?.getBoundingClientRect().left??0);z.current=G(z.current),Ze(),$(z.current,!0),!w()&&U.forEach((t,n)=>{let r=M.current[t],i=e[n]-(r?.getBoundingClientRect().left??0);r&&i&&T(r,[{transform:`translateX(${i}px)`},{transform:`none`}],{duration:xe,easing:D})})},et=()=>{let e=z.current;$(e,!1);let t=M.current[e],n=M.current[G(e)],r=()=>{V(e),K(!1)};if(!t||!n||w())return r();let i={duration:be,easing:E,fill:`forwards`},a=[t.animate([{flexBasis:`${Oe*100}%`},{flexBasis:`100%`}],i),n.animate(Ce,i)];Promise.all(a.map(e=>e.finished.catch(()=>void 0))).then(()=>{t.style.flex=`1 1 auto`,n.style.display=`none`,Le.current&&(Le.current.style.display=`none`);for(let e of a)e.cancel();r()})},tt=()=>{let e=M.current[De],t=M.current[z.current];t&&e&&!w()&&(t.style.visibility=``,e.style.zIndex=`1`),Qe(e,Te,()=>{e&&(e.style.zIndex=``),q(z.current)})},nt=e=>{let t=Me.current?.getBoundingClientRect();if(!t?.width)return;let n=(e.clientX-t.left)/t.width;ke(Math.min(_e,Math.max(ge,n)))};return(0,j.jsxs)(`div`,{ref:Me,...{0:{className:`x78zum5 xn9wirt xtdtrs8 xb3r6kr`},1:{className:`x78zum5 xb3r6kr xh8yej3 x5yr21d`}}[!!c|0],children:[U.map(e=>{let{type:t,id:n}=x[e];if(!n||!H&&e!==B)return null;let a=me[t];return(0,j.jsxs)(`section`,{"data-split-pane":t,"data-split-slot":e,ref:t=>{M.current[e]=t},className:`x1n2onr6 x78zum5 xdt5ytf xeuugli x5yr21d`,children:[H&&(0,j.jsxs)(`header`,{className:`x78zum5 x6s0dn4 x167g77z xn3w4p2 x2lah0s x1c5z90z xso031l x1q0q8m5 xtrfj0v xqfszdh x4z9k3i xo2rkog`,children:[f&&(0,j.jsx)(`button`,{"aria-label":d(`split.back`),"data-split-action":`back`,type:`button`,onClick:tt,className:`xrvj5dj x1ku5rj1 xgd8bvy x1fgtraw x1717udv xc342km x1kogg8i xjbqb8w x1bo0w0s x1ypdohk xj0l527 xytdrwj`,children:(0,j.jsx)(p,{size:18})}),(0,j.jsx)(a,{size:15}),(0,j.jsx)(`span`,{className:`x1s688f xeuugli xb3r6kr xlyipyv xuxw1ft`,children:e===`main`?n:Ye}),(0,j.jsx)(`span`,{className:`x1j6dyjg xddlp02`,children:d(`split.${t}`)}),e===O&&Q.header?.activity?(0,j.jsx)(`span`,{className:`xeuugli xb3r6kr xlyipyv xuxw1ft x1qt5hsa x1bo0w0s`,children:Q.header.activity}):null,(0,j.jsx)(`span`,{className:`x98rzlu`}),e===O&&Q.header?(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(te,{available:Q.header.history,comments:Q.header.comments,open:Q.header.historyOpen,onComments:()=>Q.history(`close`),onHistory:()=>Q.history(`toggle`)}),(0,j.jsx)(`span`,{className:`x1i1rx1s xlup9mm xh6qj2i`})]}):null,!f&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(`button`,{"aria-label":d(`split.swap`),"data-split-action":`swap`,title:d(`split.swap`),type:`button`,onClick:$e,className:`xrvj5dj x1ku5rj1 xgd8bvy x1fgtraw x1717udv xc342km x1kogg8i xjbqb8w x1bo0w0s x1ypdohk xj0l527 xytdrwj`,children:(0,j.jsx)(oe,{size:15})}),(0,j.jsx)(`button`,{"aria-label":d(`split.openAlone`),"data-split-action":`open-alone`,title:d(`split.openAlone`),type:`button`,onClick:()=>window.open(r.aloneHref(t,n),`_blank`,`noopener`),className:`xrvj5dj x1ku5rj1 xgd8bvy x1fgtraw x1717udv xc342km x1kogg8i xjbqb8w x1bo0w0s x1ypdohk xj0l527 xytdrwj`,children:(0,j.jsx)(v,{size:15})}),(0,j.jsx)(`button`,{"aria-label":d(`split.close`),"data-split-action":`close`,title:d(`split.close`),type:`button`,onClick:et,className:`xrvj5dj x1ku5rj1 xgd8bvy x1fgtraw x1717udv xc342km x1kogg8i xjbqb8w x1bo0w0s x1ypdohk xj0l527 xytdrwj`,children:(0,j.jsx)(i,{size:15})})]})]}),(0,j.jsxs)(`div`,{className:`x1n2onr6 x98rzlu x2lwn1j`,children:[e===O&&(0,j.jsx)(se,{bar:X.bar,onStep:X.step}),(N.incoming?.slot===e?[x[e],N.incoming.pane]:[x[e]]).map((t,n,i)=>{let a=n>0,o=X.frame(e);return(0,j.jsx)(`iframe`,{allow:r.frameAllow,"data-split-frame":t.type,"data-split-pending":a?``:void 0,"data-split-slot":e,src:r.frameSrc(t.type,t.id),title:t.id,ref:n===i.length-1?e=>{o(e),a&&N.frame(e)}:void 0,onLoad:a?N.loaded:void 0,...{0:{className:`xh8yej3 x5yr21d xc342km x1lliihq`},2:{className:`xh8yej3 x5yr21d xc342km x1lliihq x47corl`},1:{className:`xh8yej3 x5yr21d xc342km x1lliihq x10l6tqk x10a8y8t xg01cxk x47corl`},3:{className:`xh8yej3 x5yr21d xc342km x1lliihq x10l6tqk x10a8y8t xg01cxk x47corl`}}[!!Ae<<1|!!a]},`${t.type}/${t.id}`)})]})]},e)}),H&&m&&!f&&(0,j.jsx)(`div`,{"aria-orientation":`vertical`,ref:Le,role:`separator`,onPointerMove:e=>Ae&&nt(e),onPointerUp:()=>je(!1),onPointerDown:e=>{e.currentTarget.setPointerCapture(e.pointerId),je(!0)},className:`x9ek82g xrsdxou x1n2onr6 xh6qj2i xicojor x5ve5x3`,children:(0,j.jsx)(`span`,{className:`x10l6tqk x10no89f x1jsbkzl`})})]})}export{K as SplitShell};
|