bit-office 0.1.0
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/index.js +5075 -0
- package/dist/index.js.map +1 -0
- package/dist/web/out/404.html +7 -0
- package/dist/web/out/Office Tileset/LICENSE.txt +14 -0
- package/dist/web/out/Office Tileset/Office Designs/Office Level 1.png +0 -0
- package/dist/web/out/Office Tileset/Office Designs/Office Level 2.png +0 -0
- package/dist/web/out/Office Tileset/Office Designs/Office Level 3.5.png +0 -0
- package/dist/web/out/Office Tileset/Office Designs/Office Level 3.jpeg +0 -0
- package/dist/web/out/Office Tileset/Office Designs/Office Level 3.png +0 -0
- package/dist/web/out/Office Tileset/Office Designs/Office Level 4.png +0 -0
- package/dist/web/out/Office Tileset/Office Palette/Office Palette Large.png +0 -0
- package/dist/web/out/Office Tileset/Office Palette/Office Palette Medium.png +0 -0
- package/dist/web/out/Office Tileset/Office Palette/Office Palette Small.png +0 -0
- package/dist/web/out/Office Tileset/Office Tileset All 16x16 no shadow.png +0 -0
- package/dist/web/out/Office Tileset/Office Tileset All 16x16.png +0 -0
- package/dist/web/out/Office Tileset/Office Tileset All 32x32 no shadow.png +0 -0
- package/dist/web/out/Office Tileset/Office Tileset All 32x32.png +0 -0
- package/dist/web/out/Office Tileset/Office Tileset All 48x48 no shadow.png +0 -0
- package/dist/web/out/Office Tileset/Office Tileset All 48x48.png +0 -0
- package/dist/web/out/Office Tileset/Office VX Ace/A2 Office Floors.png +0 -0
- package/dist/web/out/Office Tileset/Office VX Ace/A4 Office Walls.png +0 -0
- package/dist/web/out/Office Tileset/Office VX Ace/A5 Office Floors & Walls.png +0 -0
- package/dist/web/out/Office Tileset/Office VX Ace/B-C-D-E Office 1 No Shadows.png +0 -0
- package/dist/web/out/Office Tileset/Office VX Ace/B-C-D-E Office 1.png +0 -0
- package/dist/web/out/Office Tileset/Office VX Ace/B-C-D-E Office 2 No Shadows.png +0 -0
- package/dist/web/out/Office Tileset/Office VX Ace/B-C-D-E Office 2.png +0 -0
- package/dist/web/out/Office Tileset/Office VX Ace/README.txt +2 -0
- package/dist/web/out/_next/static/chunks/176.7af67c16b9732441.js +1 -0
- package/dist/web/out/_next/static/chunks/29.3e7650727aadf8c2.js +1 -0
- package/dist/web/out/_next/static/chunks/290.d0fe5fb72a5068b2.js +1 -0
- package/dist/web/out/_next/static/chunks/325ca9c7-f84e7e4973790fdf.js +1 -0
- package/dist/web/out/_next/static/chunks/4d67e943-e6a0fd3b5c397505.js +1 -0
- package/dist/web/out/_next/static/chunks/757.6b9b9f11f348e673.js +1 -0
- package/dist/web/out/_next/static/chunks/810.44213c6355518b0b.js +1 -0
- package/dist/web/out/_next/static/chunks/904.8b3ff312a1556d6a.js +1 -0
- package/dist/web/out/_next/static/chunks/977-26ddf708be8caf79.js +1 -0
- package/dist/web/out/_next/static/chunks/989-f3ebca68e0b5e7ee.js +1 -0
- package/dist/web/out/_next/static/chunks/app/_not-found/page-0f7c77f58dea5cf2.js +1 -0
- package/dist/web/out/_next/static/chunks/app/layout-7ca1be140a482711.js +1 -0
- package/dist/web/out/_next/static/chunks/app/office/page-880d13f3a18654a9.js +1 -0
- package/dist/web/out/_next/static/chunks/app/page-94da9de9b62f4f4d.js +1 -0
- package/dist/web/out/_next/static/chunks/app/pair/page-389c78f078318d25.js +1 -0
- package/dist/web/out/_next/static/chunks/framework-bec628f2b7cc8f6d.js +1 -0
- package/dist/web/out/_next/static/chunks/main-3ed3b5510eeb64f8.js +1 -0
- package/dist/web/out/_next/static/chunks/main-app-4f4b0701adf58469.js +1 -0
- package/dist/web/out/_next/static/chunks/pages/_app-f4d560c9dbc22e4e.js +1 -0
- package/dist/web/out/_next/static/chunks/pages/_error-492bd157be5771d5.js +1 -0
- package/dist/web/out/_next/static/chunks/polyfills-42372ed130431b0a.js +1 -0
- package/dist/web/out/_next/static/chunks/webpack-1075fa19d83199c2.js +1 -0
- package/dist/web/out/_next/static/y7YWx1Z8eZ7VPIAjor5oQ/_buildManifest.js +1 -0
- package/dist/web/out/_next/static/y7YWx1Z8eZ7VPIAjor5oQ/_ssgManifest.js +1 -0
- package/dist/web/out/assets/characters/char_0.png +0 -0
- package/dist/web/out/assets/characters/char_1.png +0 -0
- package/dist/web/out/assets/characters/char_2.png +0 -0
- package/dist/web/out/assets/characters/char_3.png +0 -0
- package/dist/web/out/assets/characters/char_4.png +0 -0
- package/dist/web/out/assets/characters/char_5.png +0 -0
- package/dist/web/out/assets/walls.png +0 -0
- package/dist/web/out/icons/icon-192.png +0 -0
- package/dist/web/out/icons/icon-512.png +0 -0
- package/dist/web/out/index.html +7 -0
- package/dist/web/out/index.txt +18 -0
- package/dist/web/out/manifest.json +13 -0
- package/dist/web/out/office.html +7 -0
- package/dist/web/out/office.txt +18 -0
- package/dist/web/out/pair.html +7 -0
- package/dist/web/out/pair.txt +18 -0
- package/dist/web/out/pixel-agents-layout.json +2802 -0
- package/dist/web/out/sw.js +1 -0
- package/dist/web/out/workbox-5194662c.js +1 -0
- package/package.json +41 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<!DOCTYPE html><!--y7YWx1Z8eZ7VPIAjor5oQ--><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-1075fa19d83199c2.js"/><script src="/_next/static/chunks/4d67e943-e6a0fd3b5c397505.js" async=""></script><script src="/_next/static/chunks/977-26ddf708be8caf79.js" async=""></script><script src="/_next/static/chunks/main-app-4f4b0701adf58469.js" async=""></script><meta name="robots" content="noindex"/><meta name="theme-color" content="#1a1a2e"/><title>404: This page could not be found.</title><title>Bit Office</title><meta name="description" content="Control your AI agents from anywhere"/><link rel="manifest" href="/manifest.json"/><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body style="margin:0;background-color:#1a1a2e;color:#fff;font-family:system-ui, sans-serif"><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><!--$--><!--/$--><script>
|
|
2
|
+
if ('serviceWorker' in navigator && location.hostname === 'localhost') {
|
|
3
|
+
navigator.serviceWorker.getRegistrations().then(function(regs) {
|
|
4
|
+
for (var r of regs) r.unregister();
|
|
5
|
+
});
|
|
6
|
+
}
|
|
7
|
+
</script><script src="/_next/static/chunks/webpack-1075fa19d83199c2.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[9653,[],\"\"]\n3:I[1329,[],\"\"]\n4:I[9096,[],\"OutletBoundary\"]\n6:I[913,[],\"AsyncMetadataOutlet\"]\n8:I[9096,[],\"ViewportBoundary\"]\na:I[9096,[],\"MetadataBoundary\"]\nb:\"$Sreact.suspense\"\nd:I[5719,[],\"\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"y7YWx1Z8eZ7VPIAjor5oQ\",\"p\":\"\",\"c\":[\"\",\"_not-found\"],\"i\":false,\"f\":[[[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],[\"\",[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"html\",null,{\"lang\":\"en\",\"children\":[[\"$\",\"head\",null,{\"children\":[[\"$\",\"meta\",null,{\"name\":\"theme-color\",\"content\":\"#1a1a2e\"}],[\"$\",\"meta\",null,{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no\"}]]}],[\"$\",\"body\",null,{\"style\":{\"margin\":0,\"backgroundColor\":\"#1a1a2e\",\"color\":\"#fff\",\"fontFamily\":\"system-ui, sans-serif\"},\"children\":[[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}],[\"$\",\"script\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"\\n if ('serviceWorker' in navigator \u0026\u0026 location.hostname === 'localhost') {\\n navigator.serviceWorker.getRegistrations().then(function(regs) {\\n for (var r of regs) r.unregister();\\n });\\n }\\n \"}}]]}]]}]]}],{\"children\":[\"/_not-found\",[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[\"__PAGE__\",[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],null,[\"$\",\"$L4\",null,{\"children\":[\"$L5\",[\"$\",\"$L6\",null,{\"promise\":\"$@7\"}]]}]]}],{},null,false]},null,false]},null,false],[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[[\"$\",\"$L8\",null,{\"children\":\"$L9\"}],null],[\"$\",\"$La\",null,{\"children\":[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$b\",null,{\"fallback\":null,\"children\":\"$Lc\"}]}]}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$d\",[]],\"s\":false,\"S\":true}\n"])</script><script>self.__next_f.push([1,"9:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n5:null\n"])</script><script>self.__next_f.push([1,"7:{\"metadata\":[[\"$\",\"title\",\"0\",{\"children\":\"Bit Office\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Control your AI agents from anywhere\"}],[\"$\",\"link\",\"2\",{\"rel\":\"manifest\",\"href\":\"/manifest.json\",\"crossOrigin\":\"$undefined\"}]],\"error\":null,\"digest\":\"$undefined\"}\n"])</script><script>self.__next_f.push([1,"c:\"$7:metadata\"\n"])</script></body></html>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
Donarg Office Tileset License Agreement
|
|
2
|
+
|
|
3
|
+
You are allowed to:
|
|
4
|
+
1. Edit and use this tileset for commercial and non-commercial projects.
|
|
5
|
+
|
|
6
|
+
You are not allowed to:
|
|
7
|
+
2. Resell and distribute this tileset to others (even if the tileset is edited).
|
|
8
|
+
3. Use this tileset for web3, NFT, crypto, or blockchain projects.
|
|
9
|
+
4. Use this tileset to train AI/machine learning.
|
|
10
|
+
|
|
11
|
+
Optional:
|
|
12
|
+
1. Credit is not required but appreciated (Donarg).
|
|
13
|
+
|
|
14
|
+
Any violation of this agreement will result in the termination of the license.
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[176],{2176:(e,t,r)=>{r.r(t),r.d(t,{default:()=>i});var a=r(206),l=r(1406);let n={A:[28,34,34,62,34,34,34],B:[60,34,34,60,34,34,60],C:[28,34,32,32,32,34,28],D:[60,34,34,34,34,34,60],E:[62,32,32,60,32,32,62],F:[62,32,32,60,32,32,32],G:[28,34,32,46,34,34,28],H:[34,34,34,62,34,34,34],I:[28,8,8,8,8,8,28],J:[14,4,4,4,4,36,24],K:[34,36,40,48,40,36,34],L:[32,32,32,32,32,32,62],M:[34,54,42,42,34,34,34],N:[34,50,42,38,34,34,34],O:[28,34,34,34,34,34,28],P:[60,34,34,60,32,32,32],Q:[28,34,34,34,42,36,26],R:[60,34,34,60,40,36,34],S:[28,34,32,28,2,34,28],T:[62,8,8,8,8,8,8],U:[34,34,34,34,34,34,28],V:[34,34,34,34,20,20,8],W:[34,34,34,42,42,54,34],X:[34,34,20,8,20,34,34],Y:[34,34,20,8,8,8,8],Z:[62,2,4,8,16,32,62]," ":[0,0,0,0,0,0,0],0:[28,34,38,42,50,34,28],1:[8,24,8,8,8,8,28],2:[28,34,2,12,16,32,62],3:[28,34,2,12,2,34,28],4:[4,12,20,36,62,4,4],5:[62,32,60,2,2,34,28],6:[28,32,60,34,34,34,28],7:[62,2,4,8,16,16,16],8:[28,34,34,28,34,34,28],9:[28,34,34,30,2,2,28],".":[0,0,0,0,0,8,8],"!":[8,8,8,8,8,0,8],"-":[0,0,0,28,0,0,0],">":[16,8,4,2,4,8,16]},o=[{text:"> SYSTEM INIT...",color:"#22c55e",delay:0},{text:"> LOADING NEURAL CORE",color:"#22c55e",delay:600},{text:"> BIT OFFICE ENGINE V1.0",color:"#818cf8",delay:1200},{text:"> OFFICE MODE READY",color:"#f97316",delay:1800}];function i(e){let{onComplete:t}=e,r=(0,l.useRef)(null),[i,c]=(0,l.useState)("boot"),[f,d]=(0,l.useState)(0),[s,h]=(0,l.useState)(!1),u=(0,l.useRef)(Date.now()),m=(0,l.useRef)([]),w=(0,l.useRef)(0),y=(0,l.useRef)(0),E=(0,l.useCallback)(e=>{let t="アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヲン";m.current=Array.from({length:Math.floor(e/14)},(e,r)=>({x:14*r,y:-500*Math.random(),speed:1+3*Math.random(),chars:Array.from({length:20},()=>t[Math.floor(Math.random()*t.length)]),opacity:.3+.7*Math.random()}))},[]),g=(0,l.useCallback)((e,t,r,a,l,o)=>{e.fillStyle=o;let i=6*l,c=r-t.length*i/2;for(let r=0;r<t.length;r++){let o=n[t[r].toUpperCase()];if(o)for(let t=0;t<7;t++)for(let n=0;n<6;n++)o[t]&1<<5-n&&e.fillRect(c+r*i+n*l,a+t*l,l,l)}},[]);return(0,l.useEffect)(()=>{let e=[];return o.forEach((t,r)=>{e.push(setTimeout(()=>d(r+1),t.delay))}),e.push(setTimeout(()=>c("title"),2800)),e.push(setTimeout(()=>{c("ready"),h(!0)},4200)),()=>e.forEach(clearTimeout)},[]),(0,l.useEffect)(()=>{if(!s)return;let e=setInterval(()=>h(e=>!e),500);return()=>clearInterval(e)},[s]),(0,l.useEffect)(()=>{let e=r.current;if(!e)return;let t=e.getContext("2d"),a=()=>{e.width=window.innerWidth,e.height=window.innerHeight,E(e.width)};a(),window.addEventListener("resize",a);let l=()=>{let{width:r,height:a}=e,n=Date.now()-u.current;t.fillStyle="rgba(10, 10, 20, 0.15)",t.fillRect(0,0,r,a),m.current.forEach(e=>{e.y+=e.speed,e.y>a+300&&(e.y=-300*Math.random()),e.chars.forEach((r,l)=>{let n=e.y+16*l;n<0||n>a||(t.font="14px monospace",t.fillStyle=0===l?"rgba(180, 255, 180, ".concat(e.opacity,")"):"rgba(0, 180, 80, ".concat(e.opacity*(1-l/e.chars.length),")"),t.fillText(r,e.x,n))})});for(let e=0;e<a;e+=3)t.fillStyle="rgba(0, 0, 0, 0.08)",t.fillRect(0,e,r,1);if(.02>Math.random()&&(y.current=8),y.current>0){let e=4+20*Math.random(),l=Math.random()*a,n=(Math.random()-.5)*40,o=t.getImageData(0,l,r,e);t.putImageData(o,n,l),y.current--}if(n<3e3){t.font="16px monospace";for(let e=0;e<f;e++){let r=o[e];t.fillStyle=r.color;let l=n-r.delay,i=Math.min(r.text.length,Math.floor(l/30));if(t.fillText(r.text.slice(0,i),40,a/2-60+28*e),e===f-1&&i<r.text.length&&Math.floor(n/200)%2==0){let l=40+t.measureText(r.text.slice(0,i)).width;t.fillRect(l+2,a/2-74+28*e,10,18)}}}if(n>2800){let e=Math.min(1,(n-2800)/800),l=t.createRadialGradient(r/2,a/2-30,0,r/2,a/2-30,200);l.addColorStop(0,"rgba(79, 70, 229, ".concat(.3*e,")")),l.addColorStop(1,"rgba(79, 70, 229, 0)"),t.fillStyle=l,t.fillRect(0,0,r,a);let o=Math.min(4,r/120);g(t,"BIT",r/2,a/2-40,o,"rgba(255, 255, 255, ".concat(e,")")),g(t,"OFFICE",r/2,a/2+10,o,"rgba(249, 115, 22, ".concat(e,")")),t.strokeStyle="rgba(79, 70, 229, ".concat(.6*e,")"),t.lineWidth=2;let i=Math.min(280,r-80);if(t.beginPath(),t.moveTo(r/2-i/2,a/2+55),t.lineTo(r/2+i/2,a/2+55),t.stroke(),n>3400){let e=Math.min(1,(n-3400)/600);t.font="13px monospace",t.fillStyle="rgba(170, 170, 170, ".concat(e,")"),t.textAlign="center",t.fillText("CONTROL YOUR AI AGENTS",r/2,a/2+76),t.textAlign="start"}}n>4200&&Math.floor(n/500)%2==0&&g(t,"PRESS START",r/2,a/2+110,2,"#22c55e");let i=t.createRadialGradient(r/2,a/2,.3*a,r/2,a/2,.8*a);i.addColorStop(0,"rgba(0,0,0,0)"),i.addColorStop(1,"rgba(0,0,0,0.5)"),t.fillStyle=i,t.fillRect(0,0,r,a),w.current=requestAnimationFrame(l)};return w.current=requestAnimationFrame(l),()=>{cancelAnimationFrame(w.current),window.removeEventListener("resize",a)}},[f,E,g]),(0,l.useEffect)(()=>{if("ready"!==i)return;let e=()=>t();return window.addEventListener("click",e),window.addEventListener("keydown",e),window.addEventListener("touchstart",e),()=>{window.removeEventListener("click",e),window.removeEventListener("keydown",e),window.removeEventListener("touchstart",e)}},[i,t]),(0,a.jsx)("canvas",{ref:r,style:{position:"fixed",top:0,left:0,width:"100vw",height:"100vh",zIndex:9999,cursor:"ready"===i?"pointer":"default"}})}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[29],{6029:(e,n,t)=>{t.r(n),t.d(n,{default:()=>s});var o=t(206),r=t(1406),a=t(9631);let l={display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",padding:"6px 10px",fontSize:"13px",color:"rgba(255, 255, 255, 0.8)",background:"transparent",border:"none",borderRadius:0,cursor:"pointer",textAlign:"left"};function s(e){let{isOpen:n,onClose:t,layout:s,onImportLayout:i,soundEnabled:d,onSoundEnabledChange:c}=e,[u,p]=(0,r.useState)(null),x=(0,r.useRef)(null);return n?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{onClick:t,style:{position:"fixed",top:0,left:0,width:"100%",height:"100%",background:"rgba(0, 0, 0, 0.5)",zIndex:99}}),(0,o.jsxs)("div",{style:{position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:100,background:"#1e1e2e",border:"2px solid #4a4a6a",borderRadius:0,padding:"4px",boxShadow:"2px 2px 0px #0a0a14",minWidth:200},children:[(0,o.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"4px 10px",borderBottom:"1px solid #4a4a6a",marginBottom:"4px"},children:[(0,o.jsx)("span",{style:{fontSize:"14px",color:"rgba(255, 255, 255, 0.9)"},children:"Settings"}),(0,o.jsx)("button",{onClick:t,onMouseEnter:()=>p("close"),onMouseLeave:()=>p(null),style:{background:"close"===u?"rgba(255, 255, 255, 0.08)":"transparent",border:"none",borderRadius:0,color:"rgba(255, 255, 255, 0.6)",fontSize:"14px",cursor:"pointer",padding:"0 4px",lineHeight:1},children:"X"})]}),(0,o.jsx)("button",{onClick:()=>{let e=new Blob([(0,a.hF)(s)],{type:"application/json"}),n=URL.createObjectURL(e),o=document.createElement("a");o.href=n,o.download="arcade-office-layout-".concat(Date.now(),".json"),o.click(),URL.revokeObjectURL(n),t()},onMouseEnter:()=>p("export"),onMouseLeave:()=>p(null),style:{...l,background:"export"===u?"rgba(255, 255, 255, 0.08)":"transparent"},children:"Export Layout"}),(0,o.jsx)("button",{onClick:()=>{var e;null==(e=x.current)||e.click()},onMouseEnter:()=>p("import"),onMouseLeave:()=>p(null),style:{...l,background:"import"===u?"rgba(255, 255, 255, 0.08)":"transparent"},children:"Import Layout"}),(0,o.jsx)("input",{ref:x,type:"file",accept:".json",onChange:e=>{var n;let o=null==(n=e.target.files)?void 0:n[0];if(!o)return;let r=new FileReader;r.onload=()=>{let e=r.result,n=(0,a.Kf)(e);n?(i(n),t()):alert("Invalid layout file")},r.readAsText(o),e.target.value=""},style:{display:"none"}}),(0,o.jsxs)("button",{onClick:()=>{let e=!d;c(e),localStorage.setItem("arcade-sound-enabled",JSON.stringify(e))},onMouseEnter:()=>p("sound"),onMouseLeave:()=>p(null),style:{...l,background:"sound"===u?"rgba(255, 255, 255, 0.08)":"transparent"},children:[(0,o.jsx)("span",{children:"Sound Notifications"}),(0,o.jsx)("span",{style:{width:14,height:14,border:"2px solid rgba(255, 255, 255, 0.5)",borderRadius:0,background:d?"rgba(90, 140, 255, 0.8)":"transparent",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",fontSize:"10px",lineHeight:1,color:"#fff"},children:d?"X":""})]})]})]}):null}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[290],{9290:(e,t,r)=>{r.r(t),r.d(t,{default:()=>i});var o=r(206),n=r(1406),s=r(2243);let u={width:40,height:40,padding:0,background:"#1e1e2e",color:"rgba(255, 255, 255, 0.8)",border:"2px solid #4a4a6a",borderRadius:0,cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:"2px 2px 0px #0a0a14"};function i(e){let{zoom:t,onZoomChange:r}=e,[i,l]=(0,n.useState)(null),[a,c]=(0,n.useState)(!1),[d,x]=(0,n.useState)(!1),p=(0,n.useRef)(null),b=(0,n.useRef)(null),h=(0,n.useRef)(t),f=t<=s.DH,k=t>=s.ZV;return(0,n.useEffect)(()=>{if(t!==h.current)return h.current=t,p.current&&clearTimeout(p.current),b.current&&clearTimeout(b.current),c(!0),x(!1),b.current=setTimeout(()=>{x(!0)},1200),p.current=setTimeout(()=>{c(!1),x(!1)},1800),()=>{p.current&&clearTimeout(p.current),b.current&&clearTimeout(b.current)}},[t]),(0,o.jsxs)(o.Fragment,{children:[a&&(0,o.jsxs)("div",{style:{position:"absolute",top:10,left:"50%",transform:"translateX(-50%)",zIndex:50,background:"#1e1e2e",border:"2px solid #4a4a6a",borderRadius:0,padding:"4px 12px",boxShadow:"2px 2px 0px #0a0a14",fontSize:"14px",color:"rgba(255, 255, 255, 0.8)",userSelect:"none",opacity:+!d,transition:"opacity ".concat(.5,"s ease-out"),pointerEvents:"none"},children:[t,"x"]}),(0,o.jsxs)("div",{style:{position:"absolute",top:8,left:8,zIndex:50,display:"flex",flexDirection:"column",gap:4},children:[(0,o.jsx)("button",{onClick:()=>r(t+1),disabled:k,onMouseEnter:()=>l("plus"),onMouseLeave:()=>l(null),style:{...u,background:"plus"!==i||k?u.background:"rgba(255,255,255,0.12)",cursor:k?"default":"pointer",opacity:k?.4:1},title:"Zoom in (Ctrl+Scroll)",children:(0,o.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",children:[(0,o.jsx)("line",{x1:"9",y1:"3",x2:"9",y2:"15",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),(0,o.jsx)("line",{x1:"3",y1:"9",x2:"15",y2:"9",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})}),(0,o.jsx)("button",{onClick:()=>r(t-1),disabled:f,onMouseEnter:()=>l("minus"),onMouseLeave:()=>l(null),style:{...u,background:"minus"!==i||f?u.background:"rgba(255,255,255,0.12)",cursor:f?"default":"pointer",opacity:f?.4:1},title:"Zoom out (Ctrl+Scroll)",children:(0,o.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",children:(0,o.jsx)("line",{x1:"3",y1:"9",x2:"15",y2:"9",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})})})]})]})}}}]);
|