import{aA as L,b as s,a8 as y,a7 as b,d as N,P as O,br as H}from"./app-QjDgb7aF.js";import{F as I}from"./suspense-jJyLIr98.js";import{F as T}from"./split-B5EOpoau.js";import{b as q,E as P,j as R,g as J,i as a,k as r,q as x,I as d,u as t,J as l,D as u,p as W,F as z,H as G,a as n,f as _}from"./vue-Cm77DuTi.js";import"./charts-3gEHPHRq.js";import"./media-DuCIZ-3n.js";const Q={class:"_formRoot"},te=q({__name:"object-storage",setup(X){let S=n(!1),m=n(null),i=n(null),g=n(null),p=n(null),j=n(null),F=n(null),f=n(null),V=n(null),k=n(!1),v=n(!1),B=n(!1),U=n(!0);async function D(){const c=await N("admin/meta");S.value=c.useObjectStorage,m.value=c.objectStorageBaseUrl,i.value=c.objectStorageBucket,g.value=c.objectStoragePrefix,p.value=c.objectStorageEndpoint,j.value=c.objectStorageRegion,F.value=c.objectStoragePort,f.value=c.objectStorageAccessKey,V.value=c.objectStorageSecretKey,k.value=c.objectStorageUseSSL,v.value=c.objectStorageUseProxy,B.value=c.objectStorageSetPublicRead,U.value=c.objectStorageS3ForcePathStyle}function M(){O("admin/update-meta",{useObjectStorage:S.value,objectStorageBaseUrl:m.value,objectStorageBucket:i.value,objectStoragePrefix:g.value,objectStorageEndpoint:p.value,objectStorageRegion:j.value,objectStoragePort:F.value,objectStorageAccessKey:f.value,objectStorageSecretKey:V.value,objectStorageUseSSL:k.value,objectStorageUseProxy:v.value,objectStorageSetPublicRead:B.value,objectStorageS3ForcePathStyle:U.value}).then(()=>{H()})}const E=_(()=>[{asFullButton:!0,icon:"ph-check ph-bold ph-lg",text:s.ts.save,handler:M}]),A=_(()=>[]);return L({title:s.ts.objectStorage,icon:"ph-cloud ph-bold ph-lg"}),(c,o)=>{const C=P("MkPageHeader"),K=P("MkSpacer"),w=P("MkStickyContainer");return R(),J(w,null,{header:a(()=>[r(C,{actions:E.value,tabs:A.value,"display-back-button":!0},null,8,["actions","tabs"])]),default:a(()=>[r(K,{"content-max":700,"margin-min":16,"margin-max":32},{default:a(()=>[r(I,{p:D},{default:a(()=>[x("div",Q,[r(y,{modelValue:t(S),"onUpdate:modelValue":o[0]||(o[0]=e=>d(S)?S.value=e:S=e),class:"_formBlock"},{default:a(()=>[l(u(t(s).ts.useObjectStorage),1)]),_:1},8,["modelValue"]),t(S)?(R(),W(z,{key:0},[r(b,{modelValue:t(m),"onUpdate:modelValue":o[1]||(o[1]=e=>d(m)?m.value=e:m=e),class:"_formBlock"},{label:a(()=>[l(u(t(s).ts.objectStorageBaseUrl),1)]),caption:a(()=>[l(u(t(s).ts.objectStorageBaseUrlDesc),1)]),_:1},8,["modelValue"]),r(b,{modelValue:t(i),"onUpdate:modelValue":o[2]||(o[2]=e=>d(i)?i.value=e:i=e),class:"_formBlock"},{label:a(()=>[l(u(t(s).ts.objectStorageBucket),1)]),caption:a(()=>[l(u(t(s).ts.objectStorageBucketDesc),1)]),_:1},8,["modelValue"]),r(b,{modelValue:t(g),"onUpdate:modelValue":o[3]||(o[3]=e=>d(g)?g.value=e:g=e),class:"_formBlock"},{label:a(()=>[l(u(t(s).ts.objectStoragePrefix),1)]),caption:a(()=>[l(u(t(s).ts.objectStoragePrefixDesc),1)]),_:1},8,["modelValue"]),r(b,{modelValue:t(p),"onUpdate:modelValue":o[4]||(o[4]=e=>d(p)?p.value=e:p=e),class:"_formBlock"},{label:a(()=>[l(u(t(s).ts.objectStorageEndpoint),1)]),caption:a(()=>[l(u(t(s).ts.objectStorageEndpointDesc),1)]),_:1},8,["modelValue"]),r(b,{modelValue:t(j),"onUpdate:modelValue":o[5]||(o[5]=e=>d(j)?j.value=e:j=e),class:"_formBlock"},{label:a(()=>[l(u(t(s).ts.objectStorageRegion),1)]),caption:a(()=>[l(u(t(s).ts.objectStorageRegionDesc),1)]),_:1},8,["modelValue"]),r(T,{"min-width":280},{default:a(()=>[r(b,{modelValue:t(f),"onUpdate:modelValue":o[6]||(o[6]=e=>d(f)?f.value=e:f=e),class:"_formBlock"},{prefix:a(()=>[...o[12]||(o[12]=[x("i",{class:"ph-key ph-bold ph-lg"},null,-1)])]),label:a(()=>[...o[13]||(o[13]=[l("Access key",-1)])]),_:1},8,["modelValue"]),r(b,{modelValue:t(V),"onUpdate:modelValue":o[7]||(o[7]=e=>d(V)?V.value=e:V=e),type:"password",class:"_formBlock"},{prefix:a(()=>[...o[14]||(o[14]=[x("i",{class:"ph-key ph-bold ph-lg"},null,-1)])]),label:a(()=>[...o[15]||(o[15]=[l("Secret key",-1)])]),_:1},8,["modelValue"])]),_:1}),r(y,{modelValue:t(k),"onUpdate:modelValue":o[8]||(o[8]=e=>d(k)?k.value=e:k=e),class:"_formBlock"},{label:a(()=>[l(u(t(s).ts.objectStorageUseSSL),1)]),caption:a(()=>[l(u(t(s).ts.objectStorageUseSSLDesc),1)]),_:1},8,["modelValue"]),r(y,{modelValue:t(v),"onUpdate:modelValue":o[9]||(o[9]=e=>d(v)?v.value=e:v=e),class:"_formBlock"},{label:a(()=>[l(u(t(s).ts.objectStorageUseProxy),1)]),caption:a(()=>[l(u(t(s).ts.objectStorageUseProxyDesc),1)]),_:1},8,["modelValue"]),r(y,{modelValue:t(B),"onUpdate:modelValue":o[10]||(o[10]=e=>d(B)?B.value=e:B=e),class:"_formBlock"},{label:a(()=>[l(u(t(s).ts.objectStorageSetPublicRead),1)]),_:1},8,["modelValue"]),r(y,{modelValue:t(U),"onUpdate:modelValue":o[11]||(o[11]=e=>d(U)?U.value=e:U=e),class:"_formBlock"},{label:a(()=>[...o[16]||(o[16]=[l("s3ForcePathStyle",-1)])]),_:1},8,["modelValue"])],64)):G("",!0)])]),_:1})]),_:1})]),_:1})}}});export{te as default};
//# sourceMappingURL=object-storage-BIq9heWA.js.map
