@rainbow-robotics/preview-host 1.1.5 → 1.3.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.
Files changed (43) hide show
  1. package/dist/assets/AmrCapabilityControl.BwqoiUgt.js +1 -0
  2. package/dist/assets/MapInfo.CxEGZc6L.js +31 -0
  3. package/dist/assets/RbLocalizationProvider.BwaClGjC.js +311 -0
  4. package/dist/assets/{__federation_expose_App.B8ghVwJZ.js → __federation_expose_App.D1Df_5Wp.js} +275 -259
  5. package/dist/assets/__federation_fn_import.ByOnqCI5.js +24 -0
  6. package/dist/assets/__federation_shared_@emotion/{styled.ETfwMsQo.js → styled.CajkAQAy.js} +1 -1
  7. package/dist/assets/__federation_shared_@tanstack/{react-query.fVz8BOIk.js → react-query.DZtZx7JL.js} +1 -1
  8. package/dist/assets/{cssMode.B1WRGz2P.js → cssMode.ez2zI1i7.js} +1 -1
  9. package/dist/assets/{emotion-styled-base.browser.esm.BIcjgOzg.js → emotion-styled-base.browser.esm.BLoY4bbE.js} +1 -1
  10. package/dist/assets/{freemarker2.DxwQi0Vl.js → freemarker2.Cc2kimcX.js} +1 -1
  11. package/dist/assets/{handlebars.CISO_-nK.js → handlebars.DKZk17oh.js} +1 -1
  12. package/dist/assets/{html.CRKtsYAs.js → html.BeU7idID.js} +1 -1
  13. package/dist/assets/{htmlMode.CbOz7q93.js → htmlMode.B9kIaaPU.js} +1 -1
  14. package/dist/assets/index.Ck82ZSzv.js +1 -0
  15. package/dist/assets/index.CzE8Rp0i.js +1 -0
  16. package/dist/assets/index.DGfkoXgx.js +1 -0
  17. package/dist/assets/{javascript.xwJmMx3N.js → javascript.Dnwc5LPt.js} +1 -1
  18. package/dist/assets/{jsonMode.DNTL3LsL.js → jsonMode.DURlW9iC.js} +1 -1
  19. package/dist/assets/{liquid.7giyXJcd.js → liquid.BpAB7AyG.js} +1 -1
  20. package/dist/assets/{lspLanguageFeatures.DkpQjGEm.js → lspLanguageFeatures.BM2PkwZb.js} +1 -1
  21. package/dist/assets/{mdx.DbnSttva.js → mdx.4CHpdk9w.js} +1 -1
  22. package/dist/assets/{python.BjlZGDuM.js → python.CxvdNThf.js} +1 -1
  23. package/dist/assets/{razor.2o42V7p1.js → razor.CrlIUpGr.js} +1 -1
  24. package/dist/assets/remoteEntry.js +1 -1
  25. package/dist/assets/{tsMode.DLdDyHxy.js → tsMode.BUpJEX3l.js} +1 -1
  26. package/dist/assets/{typescript.DpZ3i4h4.js → typescript.DidZG_cH.js} +1 -1
  27. package/dist/assets/useJsonFileDownload.CBp5Rc7y.js +4773 -0
  28. package/dist/assets/{xml.DvTdrB67.js → xml.fLTsUoIJ.js} +1 -1
  29. package/dist/assets/{yaml.CmRtfvoc.js → yaml.Dc-pIYtq.js} +1 -1
  30. package/dist/imgs/nexus/forms/gripper/gripper_23.png +0 -0
  31. package/dist/index.html +8 -6
  32. package/dist/plugin-shared/plugin-ui_react.js +1 -1
  33. package/package.json +1 -1
  34. package/dist/assets/AmrCapabilityControl.CIryt6ql.js +0 -1
  35. package/dist/assets/FactoryMap.ueKWRlfd.js +0 -7997
  36. package/dist/assets/MapInfo.DtV58gtH.js +0 -1
  37. package/dist/assets/__federation_fn_import.DdkEuT6t.js +0 -23
  38. package/dist/assets/goalIconAtlas.B2lkzTN6.svg +0 -39
  39. package/dist/assets/goalIconAtlasReal.BcQvnHD9.svg +0 -34
  40. package/dist/assets/index.BUHgLgDe.js +0 -1
  41. package/dist/assets/index.BjeZQvY_.js +0 -1
  42. package/dist/assets/index.DFvSDgis.js +0 -1
  43. package/dist/assets/keymapTileIndex.worker-Bmd4Ukaf.js +0 -1
@@ -1 +0,0 @@
1
- import{importShared as n}from"./__federation_fn_import.DdkEuT6t.js";import{a2 as s}from"./FactoryMap.ueKWRlfd.js";import d,{c as f}from"./__federation_expose_App.B8ghVwJZ.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))i(e);new MutationObserver(e=>{for(const r of e)if(r.type==="childList")for(const o of r.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&i(o)}).observe(document,{childList:!0,subtree:!0});function c(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?r.credentials="include":e.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function i(e){if(e.ep)return;e.ep=!0;const r=c(e);fetch(e.href,r)}})();const{StrictMode:l}=await n("react");f.createRoot(document.getElementById("root")).render(s(l,{children:s(d,{})}));
@@ -1 +0,0 @@
1
- import{a2 as i,dH as B,aR as z,bY as q,a3 as L,ce as F,e4 as V,hC as S,hj as Y,ep as k,fo as y,dS as K,hD as c}from"./FactoryMap.ueKWRlfd.js";import{importShared as v}from"./__federation_fn_import.DdkEuT6t.js";const x=()=>!0,E=()=>typeof window<"u"&&window.__RB_ROBOT_HOST__||void 0||void 0,Se=()=>x()&&!!E(),Q=()=>x()&&!E(),Ie=(e,t)=>e?.find(s=>s.point===t),Te=(e,t)=>{if(typeof e=="string")return e;const s=String(t);return e?.[s]},Ee=(e,t)=>{if(typeof e=="string")return e;const s=String(t);return e?.[s]||e?.en},Re=e=>e.toLocaleLowerCase()==="rainbowrobotics";var X=(e=>(e[e.SUPERVISOR=0]="SUPERVISOR",e[e.ADMIN=1]="ADMIN",e[e.MANAGER=2]="MANAGER",e[e.OPERATOR=3]="OPERATOR",e[e.USER=4]="USER",e[e.GUEST=999999]="GUEST",e))(X||{});const Z={SUPERVISOR:0,ADMIN:1,MANAGER:2,OPERATOR:3,USER:4,GUEST:999999},_={id:"GUEST",username:"게스트",role:0,sid:""};function M(e){try{const t=e.split(".")[1].replace(/-/g,"+").replace(/_/g,"/");return JSON.parse(atob(t))}catch{return null}}function J(e){if(!e)return _;const t=M(e);if(!t)return _;const s=Z[t.role]??999999;return{id:t.user_id,username:t.user_id,role:s,sid:t.sid}}function P(e){if(!e)return null;const t=M(e);return t?t.exp*1e3:null}function N(){return J(a())}const n={isAutoLogin:"isAutoLogin",accessToken:"access_token",refreshToken:"refresh_token"};function h(){localStorage.removeItem(n.accessToken),localStorage.removeItem(n.refreshToken),sessionStorage.removeItem(n.accessToken),sessionStorage.removeItem(n.refreshToken)}function g(){return localStorage.getItem(n.isAutoLogin)==="true"}function Le(e){localStorage.setItem(n.isAutoLogin,e?"true":"false")}function a(){return g()?localStorage.getItem(n.accessToken):sessionStorage.getItem(n.accessToken)}function R(){return g()?localStorage.getItem(n.refreshToken):sessionStorage.getItem(n.refreshToken)}function ee(e,t,s){s?(localStorage.setItem(n.isAutoLogin,"true"),localStorage.setItem(n.accessToken,e),localStorage.setItem(n.refreshToken,t)):(localStorage.setItem(n.isAutoLogin,"false"),sessionStorage.setItem(n.accessToken,e),sessionStorage.setItem(n.refreshToken,t))}const{createContext:te,useCallback:se,useContext:oe,useEffect:O,useState:ne}=await v("react"),C=te({isLoggedIn:!1,setLoggedIn:()=>{}});let I=null;function D(e){I?.(e)}function ke({children:e}){const[t,s]=ne(!!a()),o=se(r=>{s(r)},[]);return O(()=>(I=o,()=>{I=null}),[o]),i(C.Provider,{value:{isLoggedIn:t,setLoggedIn:o},children:e})}function re(){const{isLoggedIn:e,setLoggedIn:t}=oe(C),s=N(),o=a(),r=R(),f=g();return O(()=>{e&&(!o||!r)&&t(!1)},[e,o,r,t]),{isLoggedIn:e,setLoggedIn:t,user:s,accessToken:o,refreshToken:r,isAutoLogin:f,isAtLeast:p=>s.role<=p,hasRole:p=>s.role===p}}const ae=({className:e,open:t,onOpenChange:s,onConfirm:o})=>{const{t:r}=B(),f=()=>{s(!1),o()};return i(F,{className:L(e,"w-100 max-w-full border-none p-0"),enableDimClose:!1,hideCloseButton:!0,open:t,onOpenChange:s,header:{title:r("login.modal.title.sessionExpired")},footer:i(z,{className:L("w-full gap-1","[&_button]:h-8 [&_button]:w-20"),justifyContent:"end",children:i(q,{variant:"brand",size:"sm",onClick:f,children:r("login.modal.button.sessionExpiredConfirm")})}),children:i("div",{className:"px-4 pt-3 pb-0",children:i("span",{className:"text-fg-default typo-compact-sm-normal",children:r("login.modal.desc.sessionExpired")})})})},ye="/muscat/app/log",T="/muscat/app/login",{useMutation:ie}=await v("@tanstack/react-query"),ce="/logout",G=async e=>ge.post(ce,{sid:e}),_e=()=>{const{setLoggedIn:e,user:t}=re(),s=V();return ie({mutationFn:async()=>{if(t?.sid)return G(t.sid)},onSettled:()=>{h(),e(!1),s(T)}})},ue=`http://${window.location.hostname}:undefined`,le=1e4,fe=5e4,b=5e3;let H=null,$=null;function Pe(e){H=e}function be(e){$=e}let A=!1,U=0;const w=()=>{if(window.location.pathname===T)return;const e=async()=>{const t=N();if(t?.sid)try{await G(t.sid)}catch{}h(),D(!1),$?.(T)};Y.openModal({component:ae,props:{onConfirm:e,onClose:e},options:{componentName:"SessionExpiredModal"}})};async function j(){if(A||Date.now()-U<le)return null;const e=R();if(!e)return w(),null;A=!0;try{const t=await S.post(`${ue}/common/refresh`,{refresh_token:e}),{access_token:s,refresh_token:o}=t.data;return ee(s,o,g()),D(!0),H?.("auth",{token:s,autoLogin:g()?"true":"false"}),U=Date.now(),W(),s}catch(t){console.log("Token refresh failed:",t);const s=S.isAxiosError(t)?t.response?.status:null;if(s===403||s===401||s===409)return h(),w(),null;throw t}finally{A=!1}}let m=null;function de(){m&&(clearTimeout(m),m=null)}function W(){de();const e=P(a());if(!e)return;const t=Math.max(e-Date.now()-fe,b);m=setTimeout(async()=>{try{R()&&await j()}catch{if(a()){const s=P(a());if(s&&s>Date.now()){const o=Math.min(b*2,s-Date.now());o>0&&(m=setTimeout(W,o))}}}},t)}const u={onRequest({config:e}){if(e.url?.endsWith("/login")||e.url?.endsWith("/logout")||e.url?.endsWith("/refresh")||/^https?:\/\//i.test(e.url??"")&&!e.url?.startsWith(e.baseURL??""))return e;const o=a();return o&&e.headers&&(e.headers.Authorization=`Bearer ${o}`),e},onResponse({response:e}){return e?.data},async onResponseError({error:e}){const t=e.config;if(!t)return Promise.reject(e);if(t.url?.endsWith("/login")||t.url?.endsWith("/logout")||t.url?.endsWith("/refresh"))return h(),Promise.reject(e);if(e.response?.status===401&&!t._retry){t._retry=!0;try{const d=await j();return d?(t.headers.Authorization=`Bearer ${d}`,S(t)):Promise.reject(e)}catch(d){return Promise.reject(d)}}const o=e?.response?.data,r=k("useSimulator")!=="false"&&!!k("useSimulator"),f=typeof o=="object"&&"message"in o&&typeof o.message=="string"?o.message:y("common.toast.apiError.content");return e.status===504&&!r||Q()||t.skipErrorToast||K.openToast({title:e.config.url?`[API Error] ${e.config.url}`:y("common.toast.apiError.title"),content:f,type:"basic",variant:"warning"}),Promise.reject(e)}},me=3e3,l=`http://${E()||window.location.hostname}:${me}`,ge=c({baseURL:`${l}/common`},u),Ue=c({baseURL:`${l}/manipulate`},u),we=c({baseURL:`${l}/log`},u),ve=c({baseURL:`${l}/amr`},u),xe=c({baseURL:`${l}/rby1`},u);c({baseURL:`${l}/deploy`},u);export{ke as A,X as J,ye as L,l as M,Z as R,Te as a,ve as b,ge as c,Ee as d,T as e,Ie as f,E as g,_e as h,x as i,Pe as j,j as k,we as l,Ue as m,de as n,be as o,Se as p,Re as q,xe as r,ee as s,W as t,re as u,g as v,Le as w,h as x,a as y};
@@ -1 +0,0 @@
1
- import{A as s,a as e,b as r,B as t,C as l,D as n,c as T,d as i,E as d,e as p,f as g,g as y,H as P,L as S,M as E,h as u,i as O,N as M,j as c,O as A,k as N,P as R,l as m,m as D,R as b,n as L,o as k,S as v,p as w,q as B,r as F,T as f,s as C,t as _,u as H,v as U,w as h,x as I,y as V,z as x,F as Z,G as Y,I as j,J as G,K as J,Q as K,U as Q,V as W,W as q,X as z,Y as X,Z as $,_ as aa,$ as oa,a0 as sa,a1 as ea}from"./FactoryMap.ueKWRlfd.js";import{M as ta,a as la,R as na}from"./MapInfo.DtV58gtH.js";export{s as AMRNodeFromTo,e as AreaPlugin,r as ArrowHelper2,t as BottomStatusBar,l as CameraStreamsPanel,n as DEFAULT_ASSET_TRANSFORM,T as DEFAULT_TOPOLOGY_FORMAT_VERSION,i as DockControl,d as Editor,p as Eraser,g as EraserTab,y as EventHandler,P as HUDStatusPanel,S as LeftToolBar,ta as MapInfo,E as MapLoadDialog,u as MapNameHUD,la as MappingTab,O as MarkerControl,M as NODE_TYPE,c as NodeManager,A as ObstacleMapPanel,N as Overview,R as PaintJointPathPlugin,m as PathDrawer,D as PduInfo,na as RBQ10,b as RightToolBar,L as RobotControlPanel,k as RobotManager,v as SelectedLinkOverlay,w as SelectedNodeOverlay,B as SelectedZoneOverlay,F as Selector,f as TaskInformation,C as ToolPlugin,_ as TopologyActionFooter,H as TopologyAdd,U as TopologyControl,h as TopologyEdit,I as TopologyLink,V as TopologyLinkTabPanel,x as TopologyNodeAddSection,Z as TopologyNodeEditSection,Y as TopologyNodeTabPanel,j as TopologyNodes,G as TopologyZone,J as TopologyZoneTabPanel,K as TrajectoryDrawer,Q as URDFViewer,W as Viewport,q as WorldStudio,z as makeHexColor,X as useBottomStatusBar,$ as useEditorKeyboardShortcut,aa as useEditorState,oa as useEditorTool,sa as useEditorViewportOptions,ea as useOverlayPosition};
@@ -1 +0,0 @@
1
- const T=function(t,o,s){const n=Math.pow(2,s),c=Math.floor((t+180)/360*n),a=o*Math.PI/180,e=Math.log(Math.tan(Math.PI/4+a/2)),i=Math.floor((1-(e+Math.PI)/(2*Math.PI))*n),r=l=>Math.max(0,Math.min(n-1,l));return{x:r(c),y:r(i)}},_=function(t,o,s){return`${t}/${o}/${s}`},p=function(t,o){return{lon:t/111320,lat:o/111320}},P=function(t){return t<18?64:t<19?32:t<20?16:t<21?8:t<22?4:t<24?2:1},g=function(t,o,s){const n=new Map;if(!t?.content?.length)return n;const c=t.content,a=c.length<5e3;for(let e=o;e<=s;e++){const i=a?1:P(e);for(let r=0;r<c.length;r++){if(r%i!==0)continue;const l=c[r],f=l[0],E=l[1],{lon:h,lat:d}=p(f,E),{x:m,y:x}=T(h,d,e),M=_(e,m,x);let u=n.get(M);u===void 0&&(u=[],n.set(M,u)),u.push([f,E])}}return n},R=t=>{const{id:o,keymapContent:s,minZoom:n,maxZoom:c}=t.data,a=g(s,n,c),e={id:o,index:a};self.postMessage(e)},y=self;y.onmessage=R;