PageSourceSearch

https://keptune.ai/_nuxt/DYp6LYJQ.js

js keptune.ai collected 2026-10-05 12:08:51 UTC 4,992 bytes, 1 lines download raw bytes

1import y from"./DGUAJtd6.js";import f from"./CMx8J2jg.js";import{e as s,f as r,g as n,C as b,z as C,A,c as U,u as t,k as l,s as d,q as B,m as D,l as g,E as F,F as $,j as I,t as h}from"#entry";import{d as M}from"./iUk0Akge.js";import"./tsR5eHP1.js";import"./DlAUqK2U.js";import"./BOsyVxoi.js";import"./DV1Jt7Qo.js";import"./BgHKHRwJ.js";import"./DiV6OptP.js";import"./Evk4x1Mm.js";import"./D7OKTFXs.js";import"./CBjeeKkd.js";import"./pEGng5oJ.js";function x(c,u){return s(),r("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[n("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 16.5V9.75m0 0 3 3m-3-3-3 3M6.75 19.5a4.5 4.5 0 0 1-1.41-8.775 5.25 5.25 0 0 1 10.233-2.33 3 3 0 0 1 3.758 3.848A3.752 3.752 0 0 1 18 19.5H6.75Z"})])}function j(c,u){return s(),r("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[n("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m2.25 0H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"})])}function L(c,u){return s(),r("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[n("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.008v.008H12V8.25Z"})])}const N={"data-testid":"filebrowser"},O={key:0,class:"my-2 text-sm"},T={key:1,class:"my-2"},V={class:"text-sm"},E={key:0,class:"my-2 warning"},H={key:0},S={key:1},z={class:"bg-slate-700 hover:bg-slate-600 text-white px-3 py-0.5 rounded flex justify-center items-center space-x-2 text-sm"},R={class:"flex flex-col my-2"},Z={class:"min-w-0"},G={class:"text-wrap break-all leading-snug"},P={key:0,class:"text-xs text-default-text-lighter mt-1 italic"},q={class:"flex space-x-2 text-xs mt-1"},W=["onClick"],dt={__name:"Filebrowser",props:{nc:{type:Object,required:!0}},setup(c){const u=b(),e=C(),{$analytics:m}=A();async function k(a,o){await M(await e.kernel.getFileContent(a),o,"application/octet-stream"),m.track("DOWNLOAD_FILE",{path:a,filename:o})}const v=U(()=>e.filesArray.filter(a=>!a.remoteId).length>0);return(a,o)=>{const _=y,p=f;return s(),r("div",N,[t(e).mountedDirHandle?(s(),r("div",O,[o[3]||(o[3]=n("div",{class:"my-2 text-default-text-lighter"}," Folders are only mounted locally on your own computer. To persist data to the cloud, upload files individually. ",-1)),l(_)])):d("",!0),t(e).filesArray.length>0?(s(),r("div",T,[n("div",V,[t(v)?(s(),r("div",E,[t(e).loggedIn&&t(e).currentUser.is_paid&&t(e).currentUser.storage_limit_reached?(s(),r("span",H," Out of cloud storage space ")):t(e).authInitialized&&(!t(e).loggedIn||!t(e).currentUser.is_paid)?(s(),r("span",S,[l(t(L),{class:"inline h-4 w-4","aria-hidden":"true"}),o[4]||(o[4]=B(" Files will be removed when you leave this page",-1))])):d("",!0)])):d("",!0),t(e).authInitialized&&!t(e).loggedIn?(s(),D(p,{key:1,onClick:o[0]||(o[0]=i=>t(e).createCheckpoint(c.nc.notebookRef.value,()=>("navigateTo"in a?a.navigateTo:t(F))(`/login?redirect=${t(u).fullPath}`))),message:"Please log in to use cloud storage.",actionButtonText:"Log In",actionButtonClasses:"bg-indigo-700 hover:bg-indigo-600"},{button:g(()=>[n("button",z,[l(t(x),{class:"h-4 w-4","aria-hidden":"true"}),o[5]||(o[5]=n("div",{class:"inline-block"},"Use Cloud Storage",-1))])]),_:1})):t(e).authInitialized&&!t(e).currentUser.is_paid?(s(),r("button",{key:2,onClick:o[1]||(o[1]=i=>{t(e).upgradeMessage="Upgrade your plan to use cloud storage",t(e).showUpgradeModal=!0,t(m).track("UPGRADE_NUDGE_CLOUD_STORAGE")}),class:"bg-slate-700 hover:bg-slate-600 text-white px-3 py-0.5 rounded flex justify-center items-center space-x-2 text-sm"},[l(t(x),{class:"h-4 w-4","aria-hidden":"true"}),o[6]||(o[6]=n("div",{class:"sm:inline-block"},"Use Cloud Storage",-1))])):d("",!0)]),n("div",R,[(s(!0),r($,null,I(t(e).filesArray,i=>(s(),r("div",{key:i.path,class:"py-1 my-1 flex gap-2"},[l(t(j),{class:"h-5 w-5 mt-0.5 shrink-0 text-default-text-lighter","aria-hidden":"true"}),n("div",Z,[n("div",G,h(i.path),1),i.citation?(s(),r("div",P,h(i.citation),1)):d("",!0),n("div",q,[n("button",{onClick:w=>k(i.path,i.name),class:"block text-default-text-lighter hover:text-indigo-500 underline"}," Download ",8,W),l(p,{onClick:w=>t(e).deleteFile(i),message:"Are you sure about deleting this file?"},{button:g(()=>[n("button",{onClick:o[2]||(o[2]=()=>{}),class:"block text-default-text-lighter hover:text-pink-500 underline"}," Delete ")]),_:1},8,["onClick"])])])]))),128))])])):d("",!0)])}}};export{dt 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.