import{j as e}from"./jsx-runtime-Byf2O5Qf.js";import{R as c}from"./rc_combo_box-UNyui2xy.js";import"./index.es-HLHXff-Q.js";import{R as p}from"./rc_switch-CxWxF50j.js";import{R as r}from"./rc_text_input-Bhv4Ps7j.js";import{S as i}from"./conditional_render-C0njI6gk.js";import{R as l}from"./rta-OmMx9D_A.js";import{u}from"./useTranslation-BXe-2OXV.js";function w({fields:o,includeVisual:a=!1,includeUpload:x=!0,canSyncWithCloud:n=!1}){const s=[{label:"Plain Text Editor",value:"monaco"},...n?[{label:"Github",value:"github"}]:[],...n?[{label:"Dropbox",value:"dropbox"}]:[],...x?[{label:"Upload",value:"upload"}]:[],...a?[{label:"Visual Editor (BETA!)",value:"lexical"}]:[]],t=o.syncMode.value||(a?s[0].value:s[1].value),{t:m}=u("author");return e.jsxs(e.Fragment,{children:[e.jsxs(c,{config:o.syncMode,label:"Writing Mode",items:s,children:[e.jsx(i,{test:t==="lexical",children:e.jsx(l,{k:"writing_mode_lexical_hint"})}),e.jsx(i,{test:t==="monaco",children:e.jsx(l,{k:"writing_mode_plain_text_hint"})}),e.jsx(i,{test:["github","dropbox"].includes(t),children:e.jsx(l,{k:"writing_mode_selection_pro_hint"})}),e.jsx(i,{test:t==="upload",children:e.jsx(l,{k:"writing_mode_upload_hint"})})]}),e.jsx(i,{test:t==="github",children:e.jsxs("fieldset",{className:"space-y-4 pl-4",children:[e.jsx(r,{config:o.githubPath,leadingText:"github.com/",placeholder:"username/repo",label:"GitHub Repository"}),e.jsxs("div",{className:"flex flex-col space-y-4 md:flex-row md:space-y-0 md:space-x-4",children:[e.jsx(r,{config:o.previewBranch,label:"Preview Branch",children:e.jsx(l,{k:"writing_mode_github_preview"})}),e.jsx(r,{config:o.publishBranch,label:"Publish Branch",children:e.jsx(l,{k:"writing_mode_github_publish"})})]}),e.jsx("hr",{}),e.jsx(p,{config:o.useDropboxOutput,label:"Send output to Dropbox"}),e.jsx(i,{test:o.useDropboxOutput.value==="on",children:e.jsx(r,{config:o.dropboxEmail,label:"Dropbox Email"})})]})}),e.jsx(i,{test:t==="dropbox",children:e.jsx("fieldset",{className:"pl-4",children:e.jsx(r,{config:o.dropboxEmail,label:"Dropbox Email"})})})]})}export{w as W};

AltStyle によって変換されたページ (->オリジナル) /