PageSourceSearch

https://xyc.ai/static/js/async/1937.2ff41fbe36.js

js xyc.ai collected 2026-10-05 14:38:14 UTC 4,158 bytes, 1 lines download raw bytes

1"use strict";(self.rspackChunknewapi_web=self.rspackChunknewapi_web||[]).push([[1937],{71425(e,t,r){r.d(t,{R:()=>d});var n=r(72361),s=r(68413),a=r(17034),i=r(6702),l=r(67267),o=r(7138),c=r(83855);function u(e){let[t,r]=(0,s.useState)(null),[a,i]=(0,s.useState)(null);return(0,n.jsx)(c.ab,{actionsContainer:t,titleStatusContainer:a,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:i,className:"inline-flex shrink-0"})]})}),(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 w-full flex-col gap-4",children:e.children})})]})})}function d(e){let{routePath:t,defaultSettings:r,defaultSection:l,getSectionContent:c,getSectionMeta:d,extraArgs:m,loadingMessage:f="Loading settings...",resolveSettings:h}=e,{t:_}=(0,i.Bd)(),{data:p,isLoading:g}=(0,o.b)(),b=(0,a.g)({from:t}),y=b?.section??l,x=d(y),k=(0,s.useMemo)(()=>{let e=(0,o.n)(p?.data,r);return h?h(e,p?.data):e},[p?.data,r,h]);if(g)return(0,n.jsx)(u,{title:_(x.titleKey),children:(0,n.jsx)("div",{className:"text-muted-foreground flex min-h-40 items-center justify-center text-sm",children:_(f)})});let S=c(y,k,...m??[]);return(0,n.jsx)(u,{title:_(x.titleKey),children:S})}},7138(e,t,r){r.d(t,{b:()=>a,n:()=>i});var n=r(53540),s=r(33351);function a(){return(0,n.I)({queryKey:["system-options"],queryFn:s.y,staleTime:3e5})}function i(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}},6792(e,t,r){r.r(t),r.d(t,{component:()=>o});var n=r(72361),s=r(30464),a=r(71425),i=r(74435);let l={RetryTimes:0,DefaultCollapseSidebar:!1,DemoSiteEnabled:!1,SelfUseModeEnabled:!1,ChannelDisableThreshold:"",QuotaRemindThreshold:"",AutomaticDisableChannelEnabled:!1,AutomaticEnableChannelEnabled:!1,AutomaticDisableKeywords:"",AutomaticDisableStatusCodes:"401",AutomaticRetryStatusCodes:"100-199,300-399,401-407,409-499,500-503,505-523,525-599","monitor_setting.auto_test_channel_enabled":!1,"monitor_setting.auto_test_channel_minutes":10,SMTPServer:"",SMTPPort:"",SMTPAccount:"",SMTPFrom:"",SMTPToken:"",SMTPSSLEnabled:!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},o=function(){let{status:e}=(0,s.s)();return(0,n.jsx)(a.R,{routePath:"/_authenticated/system-settings/operations/$section",defaultSettings:l,defaultSection:i.Tn,getSectionContent:i.xM,getSectionMeta:i.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.