1(self.webpackChunkcommon=self.webpackChunkcommon||[]).push([[3237],{12053:(e,t,a)=>{"use strict";function o(e){var t=document.createElement("textarea");t.value=e,t.style.top="0",t.style.left="0",t.style.position="fixed",document.body.appendChild(t),t.focus(),t.select(),document.execCommand("copy"),document.body.removeChild(t)}async function i(e){if(!navigator.clipboard)return void o(e);try{await navigator.clipboard.writeText(e)}catch(t){console.error(t),o(e)}}a.d(t,{l:()=>i})},16639:(e,t,a)=>{"use strict";a.d(t,{A:()=>h});var o=a(73884),i=a(77316),r=a(95970),n=a(11850),s=a(14648),l=a(5685),c=a(53899),d=a(56406),p=a(58775);let u=e=>{let{classes:t}=e;return(0,r.A)({root:["root"]},c.t,t)},m=(0,s.Ay)(n.A,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),h=o.forwardRef(function(e,t){let a=(0,l.b)({props:e,name:"MuiDialogTitle"}),{className:r,id:n,...s}=a,c=u(a),{titleId:h=n}=o.useContext(d.A);return(0,p.jsx)(m,{component:"h2",className:(0,i.A)(c.root,r),ownerState:a,ref:t,variant:"h6",id:null!=n?n:h,...s})})},23829:(e,t,a)=>{"use strict";a.d(t,{a:()=>o});let o=(0,a(62962).A)({palette:{mode:"dark",primary:{main:"#6366f1"},secondary:{main:"#f50057"},background:{default:"#111927",paper:"#1f2937"},text:{primary:"#edf2f7"}}})},24335:e=>{e.exports={wrap:"copy_wrap__L59ta"}},25275:(e,t,a)=>{"use strict";a.d(t,{Cy:()=>c,Ok:()=>r,PX:()=>n,UB:()=>i.UB,qh:()=>d,vu:()=>l});var o=a(4247),i=a(74906);let r={getPhoneCode:e=>(0,i.Em)("/api/user/message",{data:e,disableErrorMessage:!0}),login:e=>{let t=new URLSearchParams(window.location.search).get("invite");return(0,i.Em)("/api/user/login",{data:{...e,referralCode:t||void 0},disableErrorMessage:!0})},loginByGoogle:e=>{let t=new URLSearchParams(window.location.search).get("invite");return(0,i.Em)("/api/user/login-google",{data:{...e,referralCode:t||void 0},disableErrorMessage:!0})},wxInnerLogin:e=>{let t=new URLSearchParams(window.location.search).get("invite");return(0,i.Em)("/api/user/wx/login/inner/code",{data:{...e,referralCode:t||void 0},disableErrorMessage:!0})},logout:()=>(0,i.Em)("/api/user/logout",{method:"POST"}),updateUserInfo:e=>(0,i.Em)("/api/user/update",{data:e}),getUserInfo:()=>(0,i.Em)("/api/user/get",{data:{},disableErrorMessage:!0}),getDiscussionValue:()=>(0,i.Em)("/api/user/discussion/value",{}),deleteAccount:e=>(0,i.Em)("/api/user/delete",{data:e}),balanceRefund:e=>(0,i.Em)("/api/user/balance-refund",{data:e}),getReferralCode:()=>(0,i.Em)("/api/user/get-referral-code",{}),uploadAvatar:e=>(0,i.Em)("/api/user/upload-avatar",{body:e,notJson:!0}),paypalCreateId:e=>(0,i.Em)("/api/pay/paypal/create",{data:e}),getPayOrderStatus:e=>(0,i.Em)("/api/pay/get-order-status",{data:e}),getBuyBeanId:e=>(0,i.Em)("/api/pay/bean/buy",{data:e}),getPayOrderInfo:e=>(0,i.Em)("/api/pay/get-order-info",{data:{...e,url:window.location.href}}),getFreeDailyBean:()=>(0,i.Em)("/api/pay/bean/free-daily",{data:{},disableErrorMessage:!0}),getBeanCount:e=>(0,i.Em)("/api/pay/bean/get",{data:e,disableErrorMessage:!0}),getActivity:()=>(0,i.Em)("/api/pay/bean/activity",{data:{},disableErrorMessage:!0}),getOrderList:e=>(0,i.Em)("/api/pay/get-order-list",{data:e}),getConsumptionList:e=>(0,i.Em)("/api/consumption/get-list",{data:e}),getApiKeyList:e=>(0,i.Em)("/api/user/api-key/list",{data:e}),createApiKey:e=>(0,i.Em)("/api/user/api-key/create",{data:e}),deleteApiKey:e=>(0,i.Em)("/api/user/api-key/delete",{data:e}),getWxLoginQrCode:()=>(0,i.Em)("/api/user/wxmini/login/get-qr",{data:{}}),getWxLoginStatus:e=>{let t=new URLSearchParams(window.location.search).get("invite");return(0,i.Em)("/api/user/wx/login/check",{data:{...e,referralCode:t||void 0},disableErrorMessage:!0})},getMoneyBalance:e=>(0,i.Em)("/api/pay/money/balance",{data:e||{},disableErrorMessage:!0}),getBuyMoneyId:e=>(0,i.Em)("/api/pay/money/buy",{data:e}),getMoneyOrderList:e=>(0,i.Em)("/api/pay/money/order-list",{data:e||{}}),getMoneyConsumptionList:e=>(0,i.Em)("/api/money-consumption/list",{data:e||{}}),getInvoiceQuota:e=>(0,i.Em)("/api/invoice/quota",{data:e||{}}),applyInvoice:e=>(0,i.Em)("/api/invoice/apply",{data:e,disableErrorMessage:!0}),getInvoiceList:e=>(0,i.Em)("/api/invoice/list",{data:e||{}})};function n(e,t,a){return(0,o.Ay)(()=>r[e](t),{...a,formatResult:e=>(null==e?void 0:e.data)===void 0?e:e.data})}let s=async(e,t,a)=>{let o=(0,i.Mr)(),r="".concat(o.splice(0,1)[0]).concat(e),n=o.map(t=>"".concat(t).concat(e)),s=a||window.location.href,l=new URL(s);l.searchParams.delete("code"),l.searchParams.delete("state"),s=(s=l.toString()).includes("/login")?window.location.origin:s,r="".concat(r,"?j=").concat([...n,s].map(e=>"".concat(encodeURIComponent(e))).join(",")),window.location.href=r},l=async(e,t)=>{if(e)return s("/api/user/sync/login",e,t)},c=async()=>s("/api/user/sync/logout"),d=e=>"".concat(i.UB,"/api/user/wx/login/inner/jump?from=").concat(e)},33733:(e,t,a)=>{"use strict";a.d(t,{Bd:()=>n,Fr:()=>r,Q7:()=>s,Zg:()=>l,_K:()=>o,oi:()=>i});let o="prod",i=()=>/MicroMessenger/i.test(window.navigator.userAgent),r=()=>/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(window.navigator.userAgent),n=()=>!0,s=!0,l="cn"},43299:(e,t,a)=>{"use strict";a.d(t,{A:()=>x});var o=a(73884),i=a(77316),r=a(95970),n=a(11914),s=a(14648),l=a(5685),c=a(11850),d=a(63460),p=a(77252);function u(e){return(0,p.Ay)("MuiDialogContentText",e)}(0,d.A)("MuiDialogContentText",["root"]);var m=a(58775);let h=e=>{let{classes:t}=e,a=(0,r.A)({root:["root"]},u,t);return{...t,...a}},g=(0,s.Ay)(c.A,{shouldForwardProp:e=>(0,n.A)(e)||"classes"===e,name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),x=o.forwardRef(function(e,t){let a=(0,l.b)({props:e,name:"MuiDialogContentText"}),{children:o,className:r,...n}=a,s=h(n);return(0,m.jsx)(g,{component:"p",variant:"body1",color:"textSecondary",ref:t,ownerState:n,className:(0,i.A)(s.root,r),...a,classes:s})})},65048:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>Y});var o=a(58775),i=a(73884),r=a.n(i),n=a(68265),s=a(15436),l=a(11850),c=a(55845),d=a(54763),p=a(8434),u=a(30830),m=a(39239),h=a(20277),g=a(29121);let x=(0,g.A)((0,o.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete");var y=a(23829),v=a(9632),f=a(74353),A=a.n(f),w=a(31039),b=a(15369),j=a(84563),E=a.n(j);function M(e){let{children:t,onAgree:a,onDisagree:r,text:n}=e,[s,c]=i.useState(null);console.log("props",e);let d=()=>{c(null)},p=!!s;return(0,o.jsxs)("div",{children:[(0,o.jsx)("div",{className:E().wrap,onClick:e=>{c(e.currentTarget)},children:t}),(0,o.jsxs)(w.Ay,{id:p?"simple-popover":void 0,open:p,anchorEl:s,onClose:d,anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"center"},children:[(0,o.jsx)(l.A,{sx:{p:2},children:n||"æ¨ç¡®å®è¦æ§è¡è¯¥æä½åï¼"}),(0,o.jsxs)("div",{className:E().button,children:[(0,o.jsx)(b.A,{size:"small",variant:"outlined",onClick:()=>{d(),null==r||r()},children:"åæ¶"}),(0,o.jsx)(b.A,{sx:{marginLeft:2},size:"small",variant:"contained",onClick:()=>{d(),null==a||a()},children:"ç¡®å®"})]})]})]})}var C=a(50249);let S=(0,g.A)((0,o.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add");var L=a(4314),P=a(98179),T=a(10410),k=a(43299),I=a(16639),R=a(14912),B=a(11857),O=a(60363),D=a(83385),U=a(24335),_=a.n(U),W=a(12053);function K(e){let{text:t}=e,[a,i]=r().useState(!1);return(0,o.jsx)(O.A,{title:"Copy",children:(0,o.jsx)("div",{className:_().wrap,children:a?(0,o.jsx)(D.A,{sx:{fontSize:"16px",marginTop:"2px"}}):(0,o.jsx)(B.A,{sx:{fontSize:"16px",marginTop:"2px"},onClick:()=>{(0,W.l)(t),i(!0),setTimeout(()=>{i(!1)},500)}})})})}var N=a(25275);function z(e){let{refresh:t,bu:a}=e,[i,n]=r().useState(!1),{data:s,run:l,loading:c,mutate:d}=(0,N.PX)("createApiKey",{bu:a},{manual:!0}),p=()=>{n(!1),d(void 0)};return(0,o.jsxs)("div",{children:[(0,o.jsx)(b.A,{disabled:c,onClick:()=>{d(void 0),l().then(()=>{t(),n(!0)})},variant:"outlined",startIcon:(0,o.jsx)(S,{}),sx:{marginTop:2},children:"å建API KEY"}),(0,o.jsxs)(L.A,{open:i,onClose:p,children:[(0,o.jsx)(I.A,{children:"æ°ç API KEY"}),(0,o.jsxs)(T.A,{children:[(0,o.jsx)(k.A,{id:"alert-dialog-description",children:"è¯·å°æ¤å¯é¥ä¿åå¨å®å
¨ä¸å¯è®¿é®çå°æ¹ãåºäºå®å
¨åå ï¼æ¨å°æ æ³éè¿æ¨ç 叿·å次æ¥çå®ã妿æ¨ä¸¢å¤±äºæ¤å¯é¥ï¼åéè¦çæä¸ä¸ªæ°å¯é¥ã"}),(0,o.jsx)(C.A,{sx:{marginTop:2},children:(0,o.jsx)(R.A,{value:s||"",fullWidth:!0,endAdornment:s?(0,o.jsx)(K,{text:s}):void 0})})]}),(0,o.jsx)(P.A,{children:(0,o.jsx)(M,{text:"è¯·ç¡®å®æ¨å·²ç»ä¿å好ç§é¥ï¼ç§é¥æ æ³å次æ¥è¯¢",onAgree:p,children:(0,o.jsx)(b.A,{autoFocus:!0,children:"ç¡®å®"})})})]})]})}function Y(e){let{bu:t}=e,{data:a,refresh:i}=(0,N.PX)("getApiKeyList",{bu:t},{refreshDeps:[t]}),r=async e=>{try{await N.Ok.deleteApiKey({keyId:e,bu:t}),i()}catch(e){}};return(0,o.jsx)(v.A,{theme:(null==e?void 0:e.theme)||y.a,children:(0,o.jsx)(n.A,{sx:{minWidth:275,margin:"20px 0px"},className:"card",children:(0,o.jsxs)(s.A,{children:[(0,o.jsx)(l.A,{variant:"h6",children:"API KEY å表"}),(0,o.jsxs)(c.A,{sx:{width:"100%",marginTop:2},"aria-label":"simple table",children:[(0,o.jsx)(u.A,{children:(0,o.jsxs)(m.A,{children:[(0,o.jsx)(p.A,{children:"å建æ¶é´"}),(0,o.jsx)(p.A,{children:"KEY"}),(0,o.jsx)(p.A,{children:"æä½"})]})}),(0,o.jsx)(d.A,{children:(a||[]).map(e=>(0,o.jsxs)(m.A,{sx:{"&:last-child td, &:last-child th":{border:0}},children:[(0,o.jsx)(p.A,{component:"th",scope:"row",children:A()(e.createTime).format("YYYY-MM-DD HH:mm:ss")}),(0,o.jsx)(p.A,{children:e.key}),(0,o.jsx)(p.A,{children:(0,o.jsx)(M,{text:"ç¡®å®è¦å é¤åï¼
1",onAgree:()=>r(e.keyId),children:(0,o.jsx)(h.A,{size:"small",children:(0,o.jsx)(x,{})})})})]},e.createTime))})]}),(0,o.jsx)(z,{refresh:()=>i(),bu:t})]})})})}},74906:(e,t,a)=>{"use strict";a.d(t,{Em:()=>m,Mr:()=>u,UB:()=>d,jk:()=>r});var o=a(33733),i=a(77836);let r=e=>o.Q7?e.replace(/bumo.ai/,"bumo.cc"):e.replace(/bumo.cc/,"bumo.ai"),n=i.env.NEXT_PUBLIC_LOCAL||"127.0.0.1",s={local:"http://".concat(n,":9000"),dev:r("https://common-dev.bumo.cc"),prod:r("https://common.bumo.cc")};r("https://common-dev.bumo.cc"),r("https://common.bumo.cc");let l=!1,c=e=>{var t,a;let{message:o,disableErrorMessage:i}=e;i||null==(a=window)||null==(t=a.showMessage)||t.call(a,o||"æå¡ç«¯åºé","error")},d=s[o._K],p=()=>location.host.endsWith(".dev.bumo.cc")?"https://common.dev.bumo.cc":location.host.endsWith("bumo.cc")?"https://common.bumo.cc":location.host.endsWith("bumo.ai")?"https://common.bumo.ai":location.host.endsWith("aiwith.chat")?"https://common.aiwith.chat":location.host.endsWith("userfb.app")?"https://common.userfb.app":d,u=()=>location.host.endsWith("bumo.cc")?["https://common.bumo.cc"]:location.host.endsWith("bumo.ai")?["https://common.bumo.ai"]:location.host.endsWith("aiwith.chat")?["https://common.aiwith.chat"]:location.host.endsWith("userfb.app")?["https://common.userfb.app"]:location.host.includes(n)?["http://".concat(n,":9000")]:[],m=async(e,t)=>{let a,{sourceResponse:i,disableErrorMessage:r,notJson:n}=t;try{a=await fetch("".concat(p()).concat(e),{method:"POST",body:(null==t?void 0:t.data)?JSON.stringify(t.data):null,credentials:"include",mode:"cors",headers:{...n?{}:{"Content-Type":"application/json"},...null==t?void 0:t.headers,...(()=>{let e=new URLSearchParams(window.location.search),t=localStorage.getItem("xct-t"),a=e.get("type");return t&&"EXTENSION"===a?{"xct-t":t}:{}})()},...t})}catch(e){throw c({disableErrorMessage:r,message:e.message}),e}if(200!==a.status)throw c({disableErrorMessage:r,message:""}),a;if(i)return a;let s=await a.json();if(401===s.code){var d,u,m,h;if(l)return;let t={code:401,message:"æªç»å½æç»å½æè¿æ"};l=!0;try{null==(h=window)||null==(m=h.plausible)||m.call(h,"auth-required",{props:{path:(0,o.Bd)()?location.pathname:"",api:e}})}catch(e){}if(c({disableErrorMessage:r,message:t.message}),setTimeout(()=>{l=!1},1e3),"COMMON"===window.BM_HOST)throw(0,o.Bd)()&&(window.location.href="/login?from=".concat(location.href||"")),t;throw null==(d=(u=window).triggerLogin)||d.call(u),t}if(!s.success)throw c({disableErrorMessage:r,message:s.message}),s;return s.data}},84563:e=>{e.exports={wrap:"popconfirm_wrap__gu20y",button:"popconfirm_button__4VZ4n"}},98179:(e,t,a)=>{"use strict";a.d(t,{A:()=>h});var o=a(73884),i=a(77316),r=a(95970),n=a(14648),s=a(5685),l=a(63460),c=a(77252);function d(e){return(0,c.Ay)("MuiDialogActions",e)}(0,l.A)("MuiDialogActions",["root","spacing"]);var p=a(58775);let u=e=>{let{classes:t,disableSpacing:a}=e;return(0,r.A)({root:["root",!a&&"spacing"]},d,t)},m=(0,n.Ay)("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:a}=e;return[t.root,!a.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:e=>{let{ownerState:t}=e;return!t.disableSpacing},style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),h=o.forwardRef(function(e,t){let a=(0,s.b)({props:e,name:"MuiDialogActions"}),{className:o,disableSpacing:r=!1,...n}=a,l={...a,disableSpacing:r},c=u(l);return(0,p.jsx)(m,{className:(0,i.A)(c.root,o),ownerState:l,ref:t,...n})})}}]);
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.