1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Canvas3D-Bear8C4j.js","./index-CTFdGFMX.js","./index-BMxruX6a.css","./i18n-Cp0K4Pzb.js","./i18n-Beyw3yas.css","./Canvas3DGS-Cs97AHzK.js"])))=>i.map(i=>d[i]); 2import{M as ee,aa as v,ab as ae,ac as R,$ as f,Z as a,N as w,a as p,O as te,af as S,a2 as y,S as I,R as k,Q as T,T as U,t as oe,a3 as W}from"./index-CTFdGFMX.js";import{p as n,i as z,a as C,d as re}from"./i18n-Cp0K4Pzb.js";import{I as x,c as A}from"./ScrollFade.svelte_svelte_type_style_lang-CIUw7O4r.js";import{B as ne}from"./BlockLabel-febq4APZ.js";import{D as le}from"./Download-B8b2p526.js";import{F as de}from"./File-CuP3GrI8.js";import{U as se}from"./Undo-ByC9fKkJ.js";import{I as ie}from"./IconButtonWrapper-KllrYESz.js";import{d as _e}from"./index-tFQomdd2.js";import"./snippet-RHfhCkJt.js";var ue=k('<!> <a data-testid="model3d-download-link"><!></a>',1),me=k('<div class="model3D svelte-pnaihf" data-testid="model3d"><!> <!></div>'),ce=k("<!> <!>",1);function ze(F,e){ee(e,!0);let G=n(e,"display_mode",3,"solid"),M=n(e,"clear_color",19,()=>[0,0,0,0]),V=n(e,"label",3,""),l=n(e,"zoom_speed",3,1),d=n(e,"pan_speed",3,1),u=n(e,"camera_position",19,()=>[null,null,null]),q=n(e,"has_change_history",3,!1),g=v(ae({camera_position:u(),zoom_speed:l(),pan_speed:d()})),h=v(!1),B=v(void 0),E=v(void 0),b=v(void 0);async function N(){return(await S(()=>import("./Canvas3D-Bear8C4j.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url)).default}async function Q(){return(await S(()=>import("./Canvas3DGS-Cs97AHzK.js"),__vite__mapDeps([5,3,1,2,4]),import.meta.url)).default}R(()=>{e.value&&(f(h,e.value.path.endsWith(".splat")||e.value.path.endsWith(".ply"),!0),a(h)?Q().then(t=>{f(B,t,!0)}):N().then(t=>{f(E,t,!0)}))});function Z(){a(b)?.reset_camera_position()}R(()=>{(!_e(a(g).camera_position,u())||a(g).zoom_speed!==l()||a(g).pan_speed!==d())&&(a(b)?.update_camera(u(),l(),d()),f(g,{camera_position:u(),zoom_speed:l(),pan_speed:d()},!0))});var P=ce(),L=w(P);{let t=y(()=>V()||e.i18n("3D_model.3d_model"));ne(L,{get show_label(){return e.show_label},get Icon(){return de},get label(){return a(t)}})}var j=I(L,2);{var H=t=>{var D=me(),O=T(D);ie(O,{children:(o,s)=>{var i=ue(),_=w(i);{var m=c=>{{let $=y(()=>!q());x(c,{get Icon(){return se},label:"Undo",onclick:()=>Z(),get disabled(){return a($)}})}};z(_,c=>{a(h)||c(m)})}var r=I(_,2);C(r,"target",window.__is_colab__?"_blank":null);var Y=T(r);{let c=y(()=>e.i18n("common.download"));x(Y,{get Icon(){return le},get label(){return a(c)}})}U(r),oe(()=>{C(r,"href",e.value.url),C(r,"download",window.__is_colab__?null:e.value.orig_name||e.value.path)}),p(o,i)},$$slots:{default:!0}});var J=I(O,2);{var K=o=>{var s=W(),i=w(s);A(i,()=>a(B),(_,m)=>{m(_,{get value(){return e.value},get zoom_speed(){return l()},get pan_speed(){return d()}})}),p(o,s)},X=o=>{var s=W(),i=w(s);A(i,()=>a(E),(_,m)=>{re(m(_,{get value(){return e.value},get display_mode(){return G()},get clear_color(){return M()},get camera_position(){return u()},get zoom_speed(){return l()},get pan_speed(){return d()}}),r=>f(b,r,!0),()=>a(b))}),p(o,s)};z(J,o=>{a(h)?o(K):o(X,!1)})}U(D),p(t,D)};z(j,t=>{e.value&&t(H)})}p(F,P),te()}export{ze 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.