1"use strict";(self.rspackChunknewapi_web=self.rspackChunknewapi_web||[]).push([[5542],{27106(e,t,r){var n=r(79015),s=r(10816),i=r(65311),a=r(89077),l=r(51571),c=r(51579),o=r(12824);function u(e){let[t,r]=(0,i.useState)(null),[s,a]=(0,i.useState)(null);return(0,n.jsx)(o.ab,{actionsContainer:t,titleStatusContainer:s,children:(0,n.jsxs)(l.Ni,{children:[(0,n.jsx)(l.Ni.Title,{children:(0,n.jsxs)("span",{className:"inline-flex max-w-full min-w-0 items-center gap-2 align-middle",children:[(0,n.jsx)("span",{className:"truncate",children:e.title}),(0,n.jsx)("span",{ref:a,className:"inline-flex min-w-0 shrink-0 items-center"})]})}),(0,n.jsx)(l.Ni.Actions,{children:(0,n.jsx)("div",{ref:r,className:"flex flex-wrap items-center justify-end gap-2"})}),(0,n.jsx)(l.Ni.Content,{children:(0,n.jsx)("div",{className:"flex h-full min-h-0 w-full flex-col gap-4",children:e.children})})]})})}function f(e){let{routePath:t,defaultSettings:r,defaultSection:l,getSectionContent:o,getSectionMeta:f,extraArgs:d,loadingMessage:m="Loading settings...",resolveSettings:h}=e,{t:p}=(0,a.Bd)(),{data:_,isLoading:g}=(0,c.b)(),y=(0,s.g)({from:t}),b=y?.section??l,x=f(b),S=(0,i.useMemo)(()=>{let e=(0,c.n)(_?.data,r);return h?h(e,_?.data):e},[_?.data,r,h]);if(g)return(0,n.jsx)(u,{title:p(x.titleKey),children:(0,n.jsx)("div",{className:"text-muted-foreground flex min-h-40 items-center justify-center text-sm",children:p(m)})});let k=o(b,S,...d??[]);return(0,n.jsx)(u,{title:p(x.titleKey),children:k})}r.d(t,{R:()=>f})},51579(e,t,r){var n=r(43866),s=r(76612);function i(){return(0,n.I)({queryKey:["system-options"],queryFn:s.y,staleTime:3e5})}function a(e,t){if(!e)return t;let r={...t},n=[];return e.forEach(e=>{if(e.key in t){let s=function(e,t){if("boolean"==typeof t)return{success:!0,value:"true"===e||"1"===e};if("number"==typeof t){let r=e.trim();if(""===r)return{success:!1,error:"Empty string for number field",fallback:t};let n=Number(r);return Number.isNaN(n)?{success:!1,error:`Invalid number: "${e}"`,fallback:t}:{success:!0,value:n}}if(Array.isArray(t))try{let r=JSON.parse(e);if(!Array.isArray(r))return{success:!1,error:"Expected array but got non-array JSON",fallback:t};if(t.length>0){let e=typeof t[0],n=r.find(t=>typeof t!==e);if(void 0!==n)return{success:!1,error:`Array element type mismatch: expected ${e}, got ${typeof n}`,fallback:t}}return{success:!0,value:r}}catch(e){return{success:!1,error:`JSON parse failed: ${e instanceof Error?e.message:String(e)}`,fallback:t}}return{success:!0,value:e}}(e.value,t[e.key]);s.success?r[e.key]=s.value:(r[e.key]=s.fallback,n.push({key:e.key,error:s.error}))}}),n.length,r}r.d(t,{b:()=>i,n:()=>a})},71605(e,t,r){r.r(t),r.d(t,{component:()=>c});var n=r(79015),s=r(43303),i=r(27106),a=r(21193);let l={DefaultCollapseSidebar:!1,DemoSiteEnabled:!1,SelfUseModeEnabled:!1,QuotaRemindThreshold:"",SMTPServer:"",SMTPPort:"",SMTPAccount:"",SMTPFrom:"",SMTPToken:"",SMTPSSLEnabled:!1,SMTPStartTLSEnabled:!1,SMTPInsecureSkipVerify:!1,SMTPForceAuthLogin:!1,WorkerUrl:"",WorkerValidKey:"",WorkerAllowHttpImageRequestEnabled:!1,LogConsumeEnabled:!1,"performance_setting.disk_cache_enabled":!1,"performance_setting.disk_cache_threshold_mb":10,"performance_setting.disk_cache_max_size_mb":1024,"performance_setting.disk_cache_path":"","performance_setting.monitor_enabled":!1,"performance_setting.monitor_cpu_threshold":90,"performance_setting.monitor_memory_threshold":90,"performance_setting.monitor_disk_threshold":95,"perf_metrics_setting.enabled":!0,"perf_metrics_setting.flush_interval":5,"perf_metrics_setting.bucket_time":"hour","perf_metrics_setting.retention_days":0},c=function(){let{status:e}=(0,s.s)();return(0,n.jsx)(i.R,{routePath:"/_authenticated/system-settings/operations/$section",defaultSettings:l,defaultSection:a.Tn,getSectionContent:a.xM,getSectionMeta:a.Z8,extraArgs:[e?.version,e?.start_time],loadingMessage:"Loading maintenance settings..."})}}}]);
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.