1"use strict";(self.rspackChunknewapi_web=self.rspackChunknewapi_web||[]).push([[4891],{27106(e,t,n){var r=n(79015),a=n(10816),i=n(65311),o=n(89077),s=n(51571),l=n(51579),c=n(12824);function u(e){let[t,n]=(0,i.useState)(null),[a,o]=(0,i.useState)(null);return(0,r.jsx)(c.ab,{actionsContainer:t,titleStatusContainer:a,children:(0,r.jsxs)(s.Ni,{children:[(0,r.jsx)(s.Ni.Title,{children:(0,r.jsxs)("span",{className:"inline-flex max-w-full min-w-0 items-center gap-2 align-middle",children:[(0,r.jsx)("span",{className:"truncate",children:e.title}),(0,r.jsx)("span",{ref:o,className:"inline-flex min-w-0 shrink-0 items-center"})]})}),(0,r.jsx)(s.Ni.Actions,{children:(0,r.jsx)("div",{ref:n,className:"flex flex-wrap items-center justify-end gap-2"})}),(0,r.jsx)(s.Ni.Content,{children:(0,r.jsx)("div",{className:"flex w-full flex-col gap-4",children:e.children})})]})})}function f(e){let{routePath:t,defaultSettings:n,defaultSection:s,getSectionContent:c,getSectionMeta:f,extraArgs:p,loadingMessage:d="Loading settings...",resolveSettings:m}=e,{t:y}=(0,o.Bd)(),{data:g,isLoading:_}=(0,l.b)(),b=(0,a.g)({from:t}),h=b?.section??s,x=f(h),k=(0,i.useMemo)(()=>{let e=(0,l.n)(g?.data,n);return m?m(e,g?.data):e},[g?.data,n,m]);if(_)return(0,r.jsx)(u,{title:y(x.titleKey),children:(0,r.jsx)("div",{className:"text-muted-foreground flex min-h-40 items-center justify-center text-sm",children:y(d)})});let S=c(h,k,...p??[]);return(0,r.jsx)(u,{title:y(x.titleKey),children:S})}n.d(t,{R:()=>f})},51579(e,t,n){var r=n(43866),a=n(76612);function i(){return(0,r.I)({queryKey:["system-options"],queryFn:a.y,staleTime:3e5})}function o(e,t){if(!e)return t;let n={...t},r=[];return e.forEach(e=>{if(e.key in t){let a=function(e,t){if("boolean"==typeof t)return{success:!0,value:"true"===e||"1"===e};if("number"==typeof t){let n=e.trim();if(""===n)return{success:!1,error:"Empty string for number field",fallback:t};let r=Number(n);return Number.isNaN(r)?{success:!1,error:`Invalid number: "${e}"`,fallback:t}:{success:!0,value:r}}if(Array.isArray(t))try{let n=JSON.parse(e);if(!Array.isArray(n))return{success:!1,error:"Expected array but got non-array JSON",fallback:t};if(t.length>0){let e=typeof t[0],r=n.find(t=>typeof t!==e);if(void 0!==r)return{success:!1,error:`Array element type mismatch: expected ${e}, got ${typeof r}`,fallback:t}}return{success:!0,value:n}}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]);a.success?n[e.key]=a.value:(n[e.key]=a.fallback,r.push({key:e.key,error:a.error}))}}),r.length,n}n.d(t,{b:()=>i,n:()=>o})},72390(e,t,n){n.r(t),n.d(t,{component:()=>s});var r=n(79015),a=n(27106),i=n(55059);let o={QuotaForNewUser:0,PreConsumedQuota:0,QuotaForInviter:0,QuotaForInvitee:0,TopUpLink:"","general_setting.docs_link":"","quota_setting.enable_free_model_pre_consume":!0,QuotaPerUnit:5e5,USDExchangeRate:7,"general_setting.quota_display_type":"USD","general_setting.custom_currency_symbol":"¤","general_setting.custom_currency_exchange_rate":1,DisplayInCurrencyEnabled:!0,DisplayTokenStatEnabled:!0,ModelPrice:"",ModelRatio:"",CacheRatio:"",CreateCacheRatio:"",CompletionRatio:"",ImageRatio:"",AudioRatio:"",AudioCompletionRatio:"",ExposeRatioEnabled:!1,"billing_setting.billing_mode":"{}","billing_setting.billing_unit":"{}","billing_setting.billing_expr":"{}","tool_price_setting.prices":"{}",TopupGroupRatio:"",GroupRatio:"",UserUsableGroups:"",GroupGroupRatio:"",AutoGroups:"",DefaultUseAutoGroup:!1,"group_ratio_setting.group_special_usable_group":"{}",PayAddress:"",EpayId:"",EpayKey:"",Price:7.3,MinTopUp:1,CustomCallbackAddress:"",PayMethods:"","payment_setting.amount_options":"","payment_setting.amount_discount":"","payment_setting.compliance_confirmed":!1,"payment_setting.compliance_terms_version":"","payment_setting.compliance_confirmed_at":0,"payment_setting.compliance_confirmed_by":0,"payment_setting.compliance_confirmed_ip":"",StripeApiSecret:"",StripeWebhookSecret:"",StripePriceId:"",StripeUnitPrice:8,StripeMinTopUp:1,StripePromotionCodesEnabled:!1,CreemApiKey:"",CreemWebhookSecret:"",CreemTestMode:!1,CreemProducts:"[]",WaffoEnabled:!1,WaffoApiKey:"",WaffoPrivateKey:"",WaffoPublicCert:"",WaffoSandboxPublicCert:"",WaffoSandboxApiKey:"",WaffoSandboxPrivateKey:"",WaffoSandbox:!1,WaffoMerchantId:"",WaffoCurrency:"USD",WaffoUnitPrice:1,WaffoMinTopUp:1,WaffoNotifyUrl:"",WaffoReturnUrl:"",WaffoPayMethods:"[]",WaffoPancakeMerchantID:"",WaffoPancakePrivateKey:"",WaffoPancakeReturnURL:"",WaffoPancakeStoreID:"",WaffoPancakeProductID:"","checkin_setting.enabled":!1,"checkin_setting.min_quota":1e3,"checkin_setting.max_quota":1e4},s=function(){return(0,r.jsx)(a.R,{routePath:"/_authenticated/system-settings/billing/$section",defaultSettings:o,defaultSection:i.Is,getSectionContent:i.qB,getSectionMeta:i.gv})}}}]);
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.