import{a2 as f,j as e,T as i,a3 as p,g as h,a4 as g,a5 as m}from"./main-TIUJvpaR.js";import{A as j}from"./settings-layout-3TYj2S4c.js";import{S as t}from"./settings-panel-BRoAOjOp.js";import{u as v}from"./use-admin-settings-BMDiXI8M.js";import{F as _,a as u}from"./radio-group-YoRFshuk.js";import{F as b}from"./select-T49HzTXy.js";import{F as a}from"./switch-Bj7wwiPq.js";import"./settings-links-DfKKjWK1.js";import"./external-link-DvqU4uvd.js";import"./use-admin-settings-page-nav-config-_cTFr_To.js";import"./admin-config-DnlTcyOh.js";import"./datatable-page-with-header-layout-Bbr3vl7W.js";import"./dashboard-layout-context-DA6Q35rI.js";import"./use-toggle-dashboard-left-sidebar-BuzWlDo2.js";import"./file-upload-provider-B_bRCnuD.js";import"./uploaded-file-CLeM2EFo.js";import"./pretty-bytes-bO14ePu9.js";import"./confirmation-dialog-Ds1Wl8FN.js";import"./dialog-footer-yCpPZGPO.js";import"./useSuspenseQuery-Bu7JdXWw.js";function K(){var n,r,l,o,d,c;const{data:s}=v(),x=f({defaultValues:{client:{drive:{default_view:((n=s.client.drive)==null?void 0:n.default_view)??"list",send_share_notification:((r=s.client.drive)==null?void 0:r.send_share_notification)??!1,default_available_space:((l=s.client.drive)==null?void 0:l.default_available_space)??1024*1024*1024,direct_links:((o=s.client.drive)==null?void 0:o.direct_links)??!1,copy_link_default:((d=s.client.drive)==null?void 0:d.copy_link_default)??"shareable"},share:{suggest_emails:((c=s.client.share)==null?void 0:c.suggest_emails)??!1}}}});return e.jsx(j,{form:x,title:e.jsx(i,{message:"Drive"}),children:e.jsxs("div",{className:"space-y-24",children:[e.jsx(k,{}),e.jsx(y,{}),e.jsx(w,{}),e.jsx(S,{}),e.jsx(D,{}),e.jsx(F,{})]})})}function k(){return e.jsx(t,{title:e.jsx(i,{message:"Default view mode"}),description:e.jsx(i,{message:"Configure which view mode should be used by default in the drive user dashboard."}),children:e.jsxs(_,{required:!0,name:"client.drive.default_view",orientation:"vertical",children:[e.jsx(u,{value:"list",children:e.jsx(i,{message:"List"})}),e.jsx(u,{value:"grid",children:e.jsx(i,{message:"Grid"})})]})})}function y(){return e.jsx(t,{title:e.jsx(i,{message:"Share notifications"}),description:e.jsx(i,{message:"Send a notification to user when a file or folder is shared with them."}),children:e.jsx(a,{name:"client.drive.send_share_notification",children:e.jsx(i,{message:"Enable notifications"})})})}function w(){return e.jsx(t,{title:e.jsx(i,{message:"Email suggestions"}),description:e.jsx(i,{message:"Suggest email address of existing users when sharing a file or folder."}),children:e.jsx(a,{name:"client.share.suggest_emails",children:e.jsx(i,{message:"Enable suggestions"})})})}function S(){return e.jsx(t,{title:e.jsx(i,{message:"Default available space"}),description:e.jsx(i,{message:"You can override this by editing permissions for a specific user, role or subscription plan in admin area."}),children:e.jsx(p,{type:"number",name:"client.drive.default_available_space",endAdornment:e.jsx("span",{className:"pr-12 text-xs text-muted",children:e.jsx(i,{message:"Bytes"})})})})}function D(){const{base_url:s}=h();return e.jsx(t,{title:e.jsx(i,{message:"Direct links"}),description:e.jsx(i,{message:"These links will show file content directly, instead of it being embedded inside share page.",values:{baseUrl:s}}),children:e.jsx(a,{name:"client.drive.direct_links",children:e.jsx(i,{message:"Allow copying direct links"})})})}function F(){return g({name:"client.drive.direct_links"})?e.jsx(t,{title:e.jsx(i,{message:"Default link to copy"}),description:e.jsx(i,{message:"Whether shareable or direct link should be copied to clipboard by default."}),children:e.jsxs(b,{label:e.jsx(i,{message:"Copy link default"}),labelDisplay:"hidden",name:"client.drive.copy_link_default",children:[e.jsx(m,{value:"shareable",children:e.jsx(i,{message:"Shareable link"})}),e.jsx(m,{value:"direct",children:e.jsx(i,{message:"Direct link"})})]})}):null}export{K as Component};
