PageSourceSearch

https://us1.storj.io/static/dist/assets/index-IrS_IGOp.js

js storj.io collected 2026-10-02 02:53:04 UTC 14,124 bytes, 1 lines download raw bytes

1import{a as e}from"../chunks/rolldown-runtime-D05jH6dF.js";import{Bn as t,Cn as n,Et as r,Fn as i,In as a,Ln as o,Nn as s,Nr as c,On as l,Ot as u,Pn as d,Sr as f,Tt as p,Un as m,Vn as h,Wt as g,_n as _,ar as v,at as y,br as b,dn as x,dr as S,er as ee,fn as C,fr as w,ft as te,g as ne,gn as re,ii as T,ir as E,kt as ie,ln as ae,lr as D,pn as O,qn as k,sr as A,tr as oe,vn as j,wn as M,xn as N,yn as P,zr as F}from"../chunks/app-api-CCBgLgYx.js";import{Ft as I,Gn as L,g as R,h as z,hn as B,l as V,m as se}from"../chunks/app-utils-Cn2cAJDH.js";import{Bt as ce,Qn as H,ar as le,or as U,zt as ue}from"../features/feature-dialogs-BRAMwtc0.js";import{i as W,n as de,r as fe,s as G,t as pe}from"../chunks/app-store-DEsqpNA5.js";import{a as K,i as q,r as J}from"../vendors/vendor-ui-CEk1v6AO.js";import{F as me,M as he,N as ge,_ as Y,g as _e,k as ve}from"../chunks/app-composables-CY0icbve.js";/* empty css                             */(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var X=e(U(),1),Z=`/static/dist/assets/papaparse-worker-BIuXChLA.js`,ye=[`href`],be=m({__name:`NotificationItem`,props:{item:{}},setup(e){let t=Y(),n=y(),r=c(!1),s=c();function l(e){t.pauseNotification(e)}function u(e){t.resumeNotification(e)}function p(e){t.deleteNotification(e)}return E(()=>{r.value=(s.value?.innerText.toLowerCase()||``).includes(`support`)}),(t,c)=>(A(),i(F(H),{closable:``,variant:`elevated`,title:e.item.title||e.item.type,type:e.item.type.toLowerCase(),class:`my-2`,border:``,onMouseover:c[0]||=()=>l(e.item.id),onMouseleave:c[1]||=()=>u(e.item.id),"onClick:close":c[2]||=()=>p(e.item.id)},{default:f(()=>[d(`p`,{ref_key:`messageArea`,ref:s},[(A(),i(w(e.item.messageNode)))],512),r.value?(A(),o(`a`,{key:0,class:`d-inline-block mt-2`,href:F(n).supportUrl,target:`_blank`,rel:`noopener noreferrer`},` Contact Support `,8,ye)):a(``,!0)]),_:1},8,[`title`,`type`]))}}),xe=m({__name:`Notifications`,setup(e){let t=Y(),n=s(()=>r.value.length>0),r=s(()=>t.state.notificationQueue);return(e,t)=>(A(),i(F(R),{modelValue:n.value,"onUpdate:modelValue":t[0]||=e=>n.value=e,position:`fixed`,location:`top right`,"z-index":`99999`,variant:`text`},{default:f(()=>[(A(!0),o(l,null,D(r.value,e=>(A(),i(be,{key:e.id,item:e},null,8,[`item`]))),128))]),_:1},8,[`modelValue`]))}}),Se={class:`error-area d-flex flex-column justify-center`},Ce={class:`error-area__logo-wrapper d-flex justify-center`},we={class:`d-flex flex-column align-center text-center`},Te={class:`text-display-medium font-weight-bold mb-4`},Ee={class:`text-headline-small mb-6`},De=z(m({__name:`ErrorPage`,setup(e){let r=u(),a=y(),c=M(),l=n(),p=G(),m=new Map([[404,`Oops, page not found.`],[500,`Internal server error.`]]),g=s(()=>r.state.error.statusCode),_=s(()=>m.get(g.value)||`An error occurred.`),v=s(()=>r.state.error.fatal);function b(){window.location.href=a.homepageUrl}function x(){if(v.value){b();return}if(!l.redirectedFrom){c.replace(`/`);return}c.back()}return E(()=>{let e=a.state.config.satelliteName;document.title=g.value.toString()+(e?` | `+e:``)}),(e,n)=>(A(),o(`div`,Se,[d(`div`,Ce,[F(p).global.current.value.dark?(A(),i(F(B),{key:0,class:`error-area__logo-wrapper__logo`,src:F(a).darkLogo,width:`140`,alt:`Logo`,onClick:b},null,8,[`src`])):(A(),i(F(B),{key:1,class:`error-area__logo-wrapper__logo`,src:F(a).logo,width:`140`,alt:`Logo`,onClick:b},null,8,[`src`]))]),d(`div`,we,[d(`h2`,Te,T(g.value),1),d(`h5`,Ee,T(_.value),1),h(F(I),{onClick:x},{default:f(()=>[t(T(`Go `+(v.value?`to homepage`:`back`)),1)]),_:1})])]))}}),[[`__scopeId`,`data-v-7d1331ee`]]),Oe=m({__name:`App`,setup(e){let t=u(),r=fe(),d=he(),f=ve(),m=y(),w=de(),T=ie(),E=_e(),D=me(),k=ae(),N=ge(),P=M(),I=n(),L=G(),R=c(!0),z=window.matchMedia(pe),B=s(()=>d.state.pendingPaymentsWithConfirmations),V=s(()=>t.state.error.visible),H=s(()=>T.state.user);async function U(){if(!m.getBillingEnabled(T.state.user)||!m.state.config.pricingPackagesEnabled)return;let e=T.state.user;if(!(e.hasPaidPrivileges||!e.partner)){try{if(!await d.getPricingPackageAvailable())return}catch(e){N.notifyError(e,C.OVERALL_APP_WRAPPER_ERROR);return}try{let t=await m.getPartnerPricingPlanConfig(e.partner);d.setPricingPlansAvailable(!0,t)}catch{return}}}async function W(){R.value=!0;let e=new URLSearchParams(window.location.search).get(`source`);try{let n=await T.getUser(),i=[T.getSettings(),D.getProjects(),D.getUserInvitations(),r.fetchValues()];
1if(m.billingEnabled&&!n.isMember&&i.push(d.setupAccount().catch(e=>{N.notifyError(e,C.OVERALL_APP_WRAPPER_ERROR)}),U()),await Promise.all(i),m.state.config.optInPopupEnabled){let e=T.state.settings.optInStatus,n=le(m.state.config.optOutFreezeDate),r=!!n&&new Date>=n;t.state.hasJustLoggedIn&&e===g.NoAction&&!T.state.user.freezeStatus.optOutFrozen&&!r&&t.togglePricingOptInDialog(!0)}let a=D.state.invitations,o=D.state.projects;if(e&&k.eventTriggered(O.ARRIVED_FROM_SOURCE,{source:e}),t.state.hasJustLoggedIn&&!a.length&&o.length===1){D.selectProject(o[0].id);let e=D.state.selectedProject;await P.push({name:p.Dashboard.name,params:{id:e.urlId}}),k.eventTriggered(O.NAVIGATE_PROJECTS)}}catch(e){if(!(e instanceof re))N.notifyError(e,C.OVERALL_APP_WRAPPER_ERROR),t.setErrorPage(e.status??500,!0);else if(await new Promise(e=>setTimeout(e,1e3)),!p.AuthRoutes.includes(I.path)){let e=m.state.config.primaryAuthLoginURL;e?window.location.href=e:await P.push(p.Login.path)}}R.value=!1}function K(e,t){return e.reduce((e,n)=>e+n[t],0)}function q(e){w.setThemeLightness(!e.matches)}function J(){let e=m.state.branding,t=[{rel:`icon`,type:`image/png`,sizes:`16x16`,href:e.getFavicon(j.Small)},{rel:`icon`,type:`image/png`,sizes:`32x32`,href:e.getFavicon(j.Large)},{rel:`apple-touch-icon`,sizes:`180x180`,href:e.getFavicon(j.AppleTouch)}];for(let{rel:e,type:n,sizes:r,href:i}of t){if(!i)continue;let t=`link[rel="${e}"][sizes="${r}"]`,a=document.querySelector(t);a?a.href=i:(a=document.createElement(`link`),a.rel=e,n&&(a.type=n),a.sizes=r,a.href=i,document.head.appendChild(a))}}function Y(){let e=m.state.branding,t=e.getColor(_.PrimaryLight),n=e.getColor(_.PrimaryDark),r=e.getColor(_.OnPrimaryLight),i=e.getColor(_.OnPrimaryDark),a=e.getColor(_.SecondaryLight),o=e.getColor(_.SecondaryDark),s=e.getColor(_.OnSecondaryLight),c=e.getColor(_.OnSecondaryDark),l=e.getColor(_.BackgroundLight),u=e.getColor(_.BackgroundDark),d=e.getColor(_.SurfaceLight),f=e.getColor(_.SurfaceDark),p=e.getColor(_.OnSurfaceLight),h=e.getColor(_.OnSurfaceDark),g=e.getColor(_.SuccessLight),v=e.getColor(_.SuccessDark),y=e.getColor(_.InfoLight),b=e.getColor(_.InfoDark),x=e.getColor(_.WarningLight),S=e.getColor(_.WarningDark);t&&(L.themes.value.light.colors.primary=t),n&&(L.themes.value.dark.colors.primary=n),r&&(L.themes.value.light.colors[`on-primary`]=r),i&&(L.themes.value.dark.colors[`on-primary`]=i),a&&(L.themes.value.light.colors.secondary=a),o&&(L.themes.value.dark.colors.secondary=o),s&&(L.themes.value.light.colors[`on-secondary`]=s),c&&(L.themes.value.dark.colors[`on-secondary`]=c),l&&(L.themes.value.light.colors.background=l),u&&(L.themes.value.dark.colors.background=u),d&&(L.themes.value.light.colors.surface=d),f&&(L.themes.value.dark.colors.surface=f),p&&(L.themes.value.light.colors[`on-surface`]=p),h&&(L.themes.value.dark.colors[`on-surface`]=h),g&&(L.themes.value.light.colors.success=g),v&&(L.themes.value.dark.colors.success=v),y&&(L.themes.value.light.colors.info=y),b&&(L.themes.value.dark.colors.info=b),x&&(L.themes.value.light.colors.warning=x),S&&(L.themes.value.dark.colors.warning=S)}function X(e){E.uploadingLength>0&&e.preventDefault()}ee(async()=>{let e;try{e=await m.getConfig()}catch(e){R.value=!1,N.notifyError(e,C.OVERALL_APP_WRAPPER_ERROR),t.setErrorPage(e.status??500,!0);return}try{await m.getBranding()}catch(t){m.setFallbackBranding(e),console.error(`Failed to load branding config, using defaults:`,t)}if(J(),Y(),window.location.pathname===p.AuthError.path||window.location.pathname===p.RateLimited.path){R.value=!1;return}if(await W(),window.addEventListener(`beforeunload`,X),m.state.config.analyticsEnabled){let e=I.matched[I.matched.length-1]?.path;e&&k.pageVisit(e)}}),T.$onAction(({name:e,after:n})=>{e===`login`&&n(e=>{W().then(()=>{if(H.value.hasPaidPrivileges||I.name!==p.Dashboard.name||D.state.selectedProject.ownerId!==H.value.id)return;let e=H.value.getExpirationInfo(m.state.config.daysBeforeTrialEndNotification);(H.value.freezeStatus.trialExpiredFrozen||e.isCloseToExpiredTrial)&&t.toggleExpirationDialog(!0)})})}),f.$onAction(({name:e,after:t,args:n})=>{e===`handleDeleteBucketRequest`&&t(async e=>{let t=n[0],r=n[1];try{await r,k.eventTriggered(O.BUCKET_DELETED,{project_id:D.state.selectedProject.id}),N.success(`Successfully deleted ${t}.`,`Bucket Deleted`)}catch(e){let n=`Failed to delete ${t}.`;e&&e.message&&(n+=` ${e.message}`),N.error(n,C.OVERALL_APP_WRAPPER_ERROR)}try{await f.getBuckets(1,D.state.selectedProject.id,f.state.cursor.limit)}
1catch(e){N.notifyError(e,C.OVERALL_APP_WRAPPER_ERROR)}})}),E.$onAction(({name:e,after:t,args:n})=>{e===`handleDeleteObjectRequest`&&t(async e=>{let t=n[0],r=n[1]??`object`,i;try{i=await t}catch(e){if(e.message=`Deleting failed. ${e.message}`,N.notifyError(e,C.OVERALL_APP_WRAPPER_ERROR),e instanceof x)i=e.deletedCount;else{E.filesDeleted();return}}i&&(r=i>1?`${r}s`:r,N.success(`${i} ${r} deleted`),E.filesDeleted())})});let Z=new Set;return b(B,async e=>{if(!(e.length&&m.isDefaultBrand))return;let t=e.filter(e=>e.status===te.Confirmed&&!Z.has(e.transaction));if(!t.length)return;let n=K(t,`tokenValue`);if(n>0){let e=K(t,`bonusTokens`),r=`Successful deposit of ${n} ${m.depositTokenName}.`;e>0&&(r+=` You received an additional bonus of ${e} ${m.depositTokenName}.`),N.success(r),Promise.all([d.getBalance(),d.getWallet()]).catch(e=>{})}t.forEach(e=>Z.add(e.transaction)),H.value.isFree&&(await T.getUser(),H.value.isPaid&&(await Promise.all([D.getProjectConfig(),D.getProjectLimits(D.state.selectedProject.id)]).catch(e=>{}),N.success(`Account was successfully upgraded!`)))},{deep:!0,immediate:!0}),b(()=>H.value.hasPaidPrivileges,e=>{e&&d.setPricingPlansAvailable(!1,null)}),b(()=>D.state.selectedProject,async(e,n)=>{if(!(!e.id||e.id===n.id))try{t.setManagedPassphraseNotRetrievable(!1);let n=(await Promise.all([D.getProjectLimits(e.id),D.getProjectConfig()]))[1];if(n.hasManagedPassphrase&&n.passphrase){f.setEdgeCredentials(new ne),f.setPassphrase(n.passphrase),f.setPromptForPassphrase(!1);return}else if(n.hasManagedPassphrase)throw t.setManagedPassphraseNotRetrievable(!0),Error(`Unable to acquire managed encryption passphrase`);else T.getShouldPromptPassphrase(e.ownerId===T.state.user.id)&&!H.value.freezeStatus.trialExpiredFrozen&&I.name!==p.Bucket.name&&t.toggleProjectPassphraseDialog(!0)}catch(e){N.notifyError(e,C.OVERALL_APP_WRAPPER_ERROR)}}),b(()=>w.state.name,e=>{if(e===`auto`){z.addEventListener(`change`,q);return}z.removeEventListener(`change`,q)},{immediate:!0}),v(()=>{window.removeEventListener(`beforeunload`,X)}),oe(()=>{d.stopPaymentsPolling(),z.removeEventListener(`change`,q)}),(e,n)=>{let r=S(`router-view`);return A(),o(l,null,[R.value?(A(),i(se,{key:0})):V.value?(A(),i(De,{key:1})):(A(),o(l,{key:2},[h(r),H.value.isPaid?a(``,!0):(A(),i(ce,{key:0,modelValue:F(t).state.isExpirationDialogShown,"onUpdate:modelValue":n[0]||=e=>F(t).state.isExpirationDialogShown=e,expired:H.value.freezeStatus.trialExpiredFrozen},null,8,[`modelValue`,`expired`])),F(t).state.managedPassphraseErrorDialogShown?(A(),i(ue,{key:1,modelValue:F(t).state.managedPassphraseErrorDialogShown,"onUpdate:modelValue":n[1]||=e=>F(t).state.managedPassphraseErrorDialogShown=e},null,8,[`modelValue`])):a(``,!0)],64)),h(xe)],64)}}}),ke=W({blueprint:K,theme:V,icons:{defaultSet:`mdi`,aliases:J,sets:{mdi:q}},defaults:{global:{},VDataTable:{fixedHeader:!0,noDataText:`Results not found`,hover:!0,rounded:`lg`},VBtn:{density:`default`,rounded:`md`,class:`text-none font-weight-bold`,style:`letter-spacing:0;`},VTooltip:{location:`top`,transition:`fade-transition`,rounded:`lg`},VSelect:{rounded:`md`,variant:`outlined`,color:`secondary`,menuProps:{rounded:`lg`}},VTextField:{rounded:`md`,variant:`outlined`,color:`secondary`},VTextarea:{rounded:`md`,variant:`outlined`,color:`secondary`},VAutoComplete:{color:`secondary`},VList:{rounded:`lg`},VListItem:{rounded:`md`},VListItemTitle:{class:`text-body-medium font-weight-medium`},VCard:{border:!0,rounded:`lg`},VTable:{class:`elevation-1 rounded-md`,hover:!0},VCheckbox:{color:`primary`,class:`ml-n1`,hideDetails:`auto`},VAlert:{rounded:`lg`},VChip:{rounded:`md`},VChipGroup:{color:`primary`,variant:`outlined`},VRadio:{color:`primary`,hideDetails:`auto`},VSwitch:{color:`primary`,hideDetails:`auto`,inset:!0},VPagination:{rounded:`lg`,density:`comfortable`,activeColor:`primary`},VMenu:{rounded:`lg`,transition:`fade-transition`},VDialog:{rounded:`lg`,persistent:!0,scrollable:!0,transition:`fade-transition`}}}),Ae=class{constructor(){}success(e,t,n){Y().notifySuccess(e,t,n)}notifyError(e,t,n,r){let i=Y(),a=e.message,o=`requestID`in e;o&&(a=()=>[k(`p`,{class:`message-title`},e.message),k(`p`,{class:`message-footer`},`Request ID: ${e.requestID}`)]),i.notifyError(a,t,n,r,o?e.requestID:null,`status`in e?e.status:void 0)}
1error(e,t=null,n,r){Y().notifyError(e,t,n,r)}notify(e,t,n){Y().notifyInfo(e,t,n)}warning(e,t,n){Y().notifyWarning(e,t,n)}},je={install(e){let t=new Ae;e.config.globalProperties=t,e.provide(`notify`,t)}},Q=P();N(Q);function Me(e){e.use(ke).use(Q).use(je);let t=r();e.use(t)}var $=L(Oe);Me($),$.mount(`#app`),Object.assign(X.default,{BLOB_URL:Z});

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.