import"./chunk-QTnfLwEv.js";import{n as e}from"./index-7yDgay5u.js";import{r as t}from"./file-asset-object-store-Bvk_AjCv.js";import{i as n,o as r,t as i}from"./jsx-runtime-DHSfUA5-.js";import{P as a,s as o}from"./test.id-DxQrYxPk.js";import{n as s}from"./fileAssetService-gA4Q8V3n.js";import{t as c}from"./use-watch-event-Bmff5Oxc.js";import{o as l}from"./route-CPr17rXr.js";import{t as u}from"./HeaderLayoutPage-CDZOzzod.js";import{n as d,t as f}from"./FormPage-B0BqbKo9.js";r();var p=i();function m(){let r=a(s);c(r.onDidChangeConfig);let i=r.getSyncConfig();if(!i)return(0,p.jsx)(l,{to:`/settings/s3`,replace:!0});let m=i.provider===`webdav`?[{label:e(`settings.sync.channelLabel`,`Storage type`),value:t(i.provider)},{label:`URL`,value:i.url},{label:`Prefix`,value:i.prefix||e(`settings.sync.none`,`None`)}]:[{label:e(`settings.sync.channelLabel`,`Storage type`),value:t(i.provider)},{label:`Endpoint`,value:i.endpoint},{label:`Region`,value:i.region},{label:`Bucket`,value:i.bucket},{label:`Prefix`,value:i.prefix||e(`settings.sync.none`,`None`)}];return(0,p.jsx)(u,{rootClassName:n.Page.SurfaceRoot,contentClassName:n.WeuiForm.PageMain,pageTestId:o.page,contentTestId:o.storageDetail,header:{showBack:!0,tone:`surface`},children:(0,p.jsx)(f,{title:e(`settings.sync.storage.detailTitle`,`Storage details`),children:(0,p.jsx)(d,{title:e(`settings.sync.storage`,`Storage`),items:m,readonly:!0})})})}export{m as SettingsS3StoragePage};
//# sourceMappingURL=storage-BTiGRG6B.js.map