1import{_ as N}from"./LayoutColumn.vue_vue_type_script_setup_true_lang-Clv1bHqK.js";import{_ as V}from"./OhHeader.vue-BxGtEsOa.js";import{_ as T}from"./OhTable.vue-RStjN2qr.js";import{_ as x}from"./GvIcon.vue-XUvgv9OL.js";import{_ as I}from"./OhAction.vue-B0B4jom4.js";import{i as O}from"./arrow_forward-CfQEAvCG.js";import{d as _,a8 as p,K as l,X as r,a4 as t,A as o,S as a,O as c,P as m,F as h,a3 as A,H as C,a9 as w,j as v}from"./vendor-i18n-d5NYPexO.js";import{_ as H}from"./OhFlashMessage.vue_vue_type_script_setup_true_lang-QnNfDhYN.js";import{_ as F}from"./Breadcrumb.vue_vue_type_script_setup_true_lang-CI-yiQPK.js";import{h as R}from"./app-Cn6RsU_i.js";import{b as z}from"./useHomeRoute-CT1JnEWW.js";import"./OhContainer.vue-Ctid55hm.js";import"./Primitive-coUWhel5.js";import"./navigation-DO3ks73D.js";import"./OhDynamicModal.vue_vue_type_script_setup_true_lang-B5S5ljV_.js";import"./OhButton.vue-BMERlDFt.js";import"./useInterfaceNav-b02Me6V1.js";import"./useRedirectModal-C0hxTOyM.js";import"./OhAlert.vue-Og6d4iPZ.js";import"./GvTile.vue-DWIdZqZK.js";import"./useZendeskWidget-ZFOaLvLk.js";import"./useLayout-DGTwvQ8o.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./OhBadge.vue-uLeo8To7.js";import"./useInput-BCzWqwFb.js";import"./OhSelect.vue-40zUd3Sb.js";import"./logout-Bdbk-6q9.js";import"./useSubscription-DdEsf7x6.js";import"./HeaderUnauthenticatedBar-DkCk7vS6.js";import"./arrow_back-DMu1enb4.js";import"./chevron_right-D3D6kgoA.js";const G={key:0},L={key:1},M=_({__name:"NetworkStorageTableRow",props:{cloudServer:{},image:{},volume:{},isPremiumVps:{type:Boolean}},setup(e){const{t:n,d:s}=p();return(i,f)=>{const u=x,d=I;return m(),l("tr",null,[r("td",null,t(e.volume.device),1),r("td",null,t(o(s)(e.volume.createdAt)),1),r("td",null,t(e.image.name),1),r("td",null,[e.volume.processing?(m(),l("span",G,t(o(n)("cloudserver.contract_status.processing")),1)):(m(),l("span",L,t(e.volume.size)+" GB",1))]),r("td",null,[a(d,{href:e.isPremiumVps?i.route("servers.increase-network-storage-form-by-id",{cloudServer:e.cloudServer.contract.id,storageId:e.volume.addonId?e.volume.addonId:""}):i.route("servers.increase-network-storage-form",{cloudServer:e.cloudServer.contract.id})},{icon:c(()=>[a(u,{src:o(O)},null,8,["src"])]),default:c(()=>[r("span",null,t(o(n)("cloudserver.network_storage.overview.increase")),1)]),_:1},8,["href"])])])}}}),j={scope:"col"},D={scope:"col"},E={scope:"col"},K={scope:"col"},X=_({__name:"NetworkStorageTableHead",setup(e){const{t:n}=p();return(s,i)=>(m(),l("thead",null,[r("tr",null,[r("th",j,t(o(n)("cloudserver.network_storage.overview.volume")),1),r("th",D,t(o(n)("cloudserver.network_storage.overview.created_at")),1),r("th",E,t(o(n)("cloudserver.network_storage.overview.image")),1),r("th",K,t(o(n)("cloudserver.network_storage.overview.size")),1),i[0]||(i[0]=r("th",{scope:"col"}," Â ",-1))])]))}}),Pe=_({__name:"Show",props:{cloudServer:{},image:{},volumes:{},isPremiumVps:{type:Boolean}},setup(e){const n=e,{t:s}=p(),{can:i}=z(),f=v(()=>`${s("cloudserver.network_storage.overview.description_1")} ${s("cloudserver.network_storage.overview.description_2")}`),u=v(()=>i("accessMyProductsPage")?{name:s("layout.navigation.myproducts"),href:route("my-products")}:i("accessCloudServers")?{name:s("cloudserver.title"),href:route("cloudserver")}:{name:s("layout.navigation.home"),href:route("index")}),d=v(()=>[{name:n.cloudServer.name}]);return(q,J)=>{const k=F,S=V,b=H,y=X,$=M,B=T,P=N;return m(),l(h,null,[a(o(R),{title:o(s)("cloudserver.network_storage.overview.title")},null,8,["title"]),a(P,{navigation:"cloudserver"},{header:c(()=>[a(S,{title:o(s)("cloudserver.network_storage.overview.title")},{breadcrumb:c(()=>[a(k,{pages:o(d),root:o(u)},null,8,["pages","root"])]),subtitle:c(()=>[w(t(e.cloudServer.name),1)]),description:c(()=>[w(t(o(f)),1)]),_:1},8,["title"])]),default:c(()=>[r("main",null,[a(b),a(B,null,{thead:c(()=>[a(y)]),default:c(()=>[(m(!0),l(h,null,A(e.volumes.data,g=>(m(),C($,{key:g.id,volume:g,"cloud-server":e.cloudServer,image:e.image,"is-premium-vps":e.isPremiumVps},null,8,["volume","cloud-server","image","is-premium-vps"]))),128))]),_:1})])]),_:1})],64)}}});
1export{Pe 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.