PageSourceSearch

https://www.octoparse.fr/_next/static/chunks/pages/data-hub/console/api-keys-4ecb2b8d3d511051.js

js octoparse.fr collected 2026-10-04 07:06:58 UTC 25,320 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4833],{98143:function(e,t,n){"use strict";var a,r=n(50959);function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}var s=(0,r.forwardRef)(function(e,t){return r.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",ref:t},e),a||(a=r.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.333,d:"m7 7 10 10M7 17 17 7"})))});t.Z=s},874:function(e,t,n){"use strict";var a=n(16935),r={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,i,s,o,c,l,d,u,p=!1;t||(t={}),s=t.debug||!1;try{if(c=a(),l=document.createRange(),d=document.getSelection(),(u=document.createElement("span")).textContent=e,u.ariaHidden="true",u.style.all="unset",u.style.position="fixed",u.style.top=0,u.style.clip="rect(0, 0, 0, 0)",u.style.whiteSpace="pre",u.style.webkitUserSelect="text",u.style.MozUserSelect="text",u.style.msUserSelect="text",u.style.userSelect="text",u.addEventListener("copy",function(n){if(n.stopPropagation(),t.format){if(n.preventDefault(),void 0===n.clipboardData){s&&console.warn("unable to use e.clipboardData"),s&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var a=r[t.format]||r.default;window.clipboardData.setData(a,e)}else n.clipboardData.clearData(),n.clipboardData.setData(t.format,e)}t.onCopy&&(n.preventDefault(),t.onCopy(n.clipboardData))}),document.body.appendChild(u),l.selectNodeContents(u),d.addRange(l),!document.execCommand("copy"))throw Error("copy command was unsuccessful");p=!0}catch(a){s&&console.error("unable to copy using execCommand: ",a),s&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),p=!0}catch(a){s&&console.error("unable to copy using clipboardData: ",a),s&&console.error("falling back to prompt"),n="message"in t?t.message:"Copy to clipboard: #{key}, Enter",i=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C",o=n.replace(/#{\s*key\s*}/g,i),window.prompt(o,e)}}finally{d&&("function"==typeof d.removeRange?d.removeRange(l):d.removeAllRanges()),u&&document.body.removeChild(u),c()}return p}},26261:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-hub/console/api-keys",function(){return n(62909)}])},8525:function(e,t,n){"use strict";var a=n(11527),r=n(98143),i=n(82187),s=n.n(i),o=n(15481),c=n.n(o),l=n(50959),d=n(15912),u=n.n(d);let p=e=>{let{icon:t,iconClassName:n}=e;return"string"==typeof t?(0,a.jsx)(c(),{className:"icon",src:t,width:24,height:24,alt:""}):(0,a.jsx)(t,{className:s()("icon size-6",n),"aria-hidden":!0})},m=e=>{let{title:t,className:n,style:i,children:o,onClose:c,titleAlign:d="start",back:m,goBack:y,loading:h,icon:f,iconClassName:x,hideHeader:_}=e,g=(0,l.useRef)(null);return(0,a.jsx)("div",{className:s()("".concat(u()["global-dialog-wrapper"]),n),style:i,children:(0,a.jsxs)("div",{className:"dialog-container",ref:g,children:[!_&&(0,a.jsxs)("div",{className:"dialog-header",children:[f&&(0,a.jsx)(p,{icon:f,iconClassName:x}),(0,a.jsx)("div",{className:"title-row",children:t}),(0,a.jsx)(r.Z,{className:"close size-6 text-[#262626]",onClick:c,"aria-hidden":!0})]}),o]})})};t.Z=m},13181:function(e,t,n){"use strict";n.d(t,{a:function(){return d}});var a=n(11527),r=n(8525),i=n(50959),s=n(10422),o=n(58478),c=n.n(o);let l=e=>{let{onDestroy:t,title:n,content:i,confirm:s,cancel:o,onConfirm:l,onCancel:d}=e;return(0,a.jsxs)(r.Z,{title:n,onClose:t,children:[(0,a.jsx)("div",{className:c().content,children:i}),(0,a.jsxs)("div",{className:c().btns,children:[(0,a.jsx)("button",{className:c().common,onClick:async()=>{d&&await d(),t()},children:null!=o?o:"取消"}),(0,a.jsx)("button",{onClick:async()=>{l&&await l(),t()},children:null!=s?s:"确定"})]})]})},d=e=>new Promise(t=>{let n=document.createElement("div");document.body.appendChild(n);let a=()=>{let e=s.unmountComponentAtNode(n);e&&n.parentNode&&n.parentNode.removeChild(n),t()};s.render(i.createElement(l,{...e,onDestroy:a}),n)})},99880:function(e,t,n){"use strict";n.d(t,{Zb:function(){return o},vZ:function(){return c},yG:function(){return s}});var a=n(11527),r=n(67422),i=n.n(r);let s=e=>{let{title:t,desc:n,extra:r}=e;return(0,a.jsxs)("div",{className:"mb-6 flex items-center justify-between gap-6",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h1",{className:"text-2xl font-semibold leading-8 text-[#1f1f1f]",children:t}),n&&(0,a.jsx)("p",{className:"mt-1.5 text-sm leading-[22px] text-[#8
1c8c8c]",children:n})]}),r]})},o=e=>{let{children:t,className:n=""}=e;return(0,a.jsx)("section",{className:"rounded-2xl bg-white p-7 ".concat(n),children:t})},c=e=>{let{title:t,desc:n,action:r}=e;return(0,a.jsxs)("div",{className:"flex min-h-[280px] flex-col items-center justify-center gap-2 rounded-xl border border-dashed border-[#e2e5eb] bg-[#fcfcfd] p-6 text-center",children:[(0,a.jsx)("b",{className:"text-sm font-semibold text-[#595959]",children:t}),(0,a.jsx)("span",{className:"max-w-[440px] text-xs leading-[19px] text-[#8c8c8c]",children:n}),r&&(0,a.jsx)(i(),{href:r.href,className:"mt-1.5 rounded-lg border border-[#e2e5eb] bg-white px-5 py-2 text-sm text-[#1f1f1f] hover:border-[#c2c8d2] hover:text-primary",children:r.text})]})}},96048:function(e,t,n){"use strict";n.d(t,{Bq:function(){return r},Mz:function(){return h},Ov:function(){return p},Qd:function(){return m},df:function(){return f},dh:function(){return x},fv:function(){return u},gk:function(){return l},nB:function(){return c},uo:function(){return y}});var a,r,i=n(28209),s=n(64819),o=n(14009);function c(){let e="/v1/identity/apikeys";return(0,s.ZP)(e,()=>i.Z.get(e),{shouldRetryOnError:!1})}function l(e){let t=e?"/v1/apikeys/".concat(e):null;return(0,s.ZP)(t,()=>i.Z.get(t),{shouldRetryOnError:!1})}function d(e){return e?"/v1/apikeys/".concat(e,"/consumption"):null}function u(e){let t=d(e);return(0,s.ZP)(t,()=>i.Z.get(t),{shouldRetryOnError:!1})}async function p(e){let t=d(e);if(!t)return{error:"Missing api key id"};let n=await i.Z.get(t);return n&&"object"==typeof n&&"error"in n||(0,o.j)(t,n,!1),n}async function m(e){return i.Z.post("/v1/identity/apikeys",{name:e,description:""})}async function y(e){return i.Z.post("/v1/identity/apikeys/".concat(e,"/enable"))}async function h(e){return i.Z.post("/v1/identity/apikeys/".concat(e,"/disable"))}async function f(e){return i.Z.delete("/v1/identity/apikeys/".concat(e))}async function x(e,t){return i.Z.put("/v1/apikeys/".concat(e),t)}(a=r||(r={})).Active="Active",a.Disabled="Disabled"},6730:function(e,t,n){"use strict";n.d(t,{Bk:function(){return y},I0:function(){return o},LR:function(){return m},NO:function(){return f},Qf:function(){return i},Y5:function(){return x},ei:function(){return p},h6:function(){return s},ix:function(){return c},nU:function(){return _},rS:function(){return r},wW:function(){return h}});var a=n(87827);let r=a.s8,i=a.w3,s=[{key:"discovery",labelKey:"mcpLanding.toolGroup.discovery"},{key:"runs",labelKey:"mcpLanding.toolGroup.runs"}],o=[{name:"search_data_apps",group:"discovery",descKey:"mcpLanding.tool.searchDataApps"},{name:"get_data_app_details",group:"discovery",descKey:"mcpLanding.tool.getDataAppDetails"},{name:"run_data_app",group:"runs",descKey:"mcpLanding.tool.runDataApp"},{name:"get_run_status",group:"runs",descKey:"mcpLanding.tool.getRunStatus"},{name:"get_run_result",group:"runs",descKey:"mcpLanding.tool.getRunResult"},{name:"cancel_run",group:"runs",descKey:"mcpLanding.tool.cancelRun"},{name:"list_runs",group:"runs",descKey:"mcpLanding.tool.listRuns"}],c=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.length?"".concat(r,"?pin=").concat(t.join(",")):r},l=function(e,t,n){let a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return"".concat(a?"// .cursor/mcp.json\n":"",'{\n  "mcpServers": {\n    "').concat(t,'": {\n      "type": "http",\n      "url": "').concat(e,'"').concat("apikey"===n?',\n      "headers": { "Authorization": "Bearer <YOUR_API_KEY>" }':"","\n    }\n  }\n}").concat("oauth"===n&&a?"\n// After saving, click the login button for this server in Cursor MCP settings and finish authorization in the browser":"")},d=(e,t,n)=>"oauth"===n?"# Run the following command in your terminal; sign in to your Octoparse account when prompted\nclaude mcp add ".concat(t,' "').concat(e,'" -t http\n# The first connection opens a browser to sign in; you can also type /mcp inside a session to trigger auth manually'):"# Replace <YOUR_API_KEY> with your API key, then run in your terminal\nclaude mcp add ".concat(t,' "').concat(e,'" \\\n  -t http --header "Authorization: Bearer <YOUR_API_KEY>
1"'),u=(e,t,n)=>"oauth"===n?"# Run the following commands to add the MCP server and finish browser authorization\ncodex mcp add ".concat(t,' --url "').concat(e,'"\ncodex mcp login ').concat(t,"   # Opens a browser to sign in to your Octoparse account"):'# Put your API key in an environment variable first, then add via CLI\nexport DATAHUB_API_KEY="<YOUR_API_KEY>"\ncodex mcp add '.concat(t,' --url "').concat(e,'" \\\n  --bearer-token-env-var DATAHUB_API_KEY\n\n# Or edit ~/.codex/config.toml directly\n[mcp_servers.').concat(t,']\nurl = "').concat(e,'"\nbearer_token_env_var = "DATAHUB_API_KEY"'),p=e=>e.replace(/\//g,"__"),m=[{key:"json",label:"JSON",lang:"mcpServers config",snippet:(e,t,n)=>l(e,t,n)},{key:"claude-code",label:"Claude Code",lang:"Terminal",snippet:d},{key:"codex",label:"Codex",lang:"Terminal / config.toml",snippet:u},{key:"cursor",label:"Cursor",lang:".cursor/mcp.json",snippet:(e,t,n)=>l(e,t,n,!0)}],y=(e,t)=>"Install an MCP server named ".concat(t," (Streamable HTTP) in this client:\n- Server URL: ").concat(e,"\n- Authentication, pick one:\n  1. Recommended: set the request header Authorization: Bearer <API Key>. Ask me for the API key before writing the config. Do not commit the API key to a shared repo, and do not use a login access token (expires in ~24 hours) in place of an API key;\n  2. If I prefer not to provide a key and this client supports MCP OAuth login: leave credentials out of the config — the first connection returns a 401 challenge and automatically guides me through browser authorization.\n- Configure it the standard way for this client (mcp.json / config.toml / CLI are all fine). Only do the configuration; do not perform any other actions.\nWhen done, remind me to restart or reload the client (for the OAuth path, guide me through the browser login), and confirm that tools like search_data_apps and run_data_app are available."),h=(e,t)=>"# 1) Submit a run; for fast apps add ?wait=60 to wait for the terminal state directly\ncurl -X POST '".concat(i,"/v1/data-apps/").concat(e,"/runs?wait=60' \\\n  -H 'Authorization: Bearer <YOUR_API_KEY>' \\\n  -H 'Content-Type: application/json' \\\n  -d '").concat(t,"'\n\n# 2) Long-running tasks: poll the run status (also supports ?wait= long polling)\ncurl -H 'Authorization: Bearer <YOUR_API_KEY>' \\\n  '").concat(i,"/v1/runs/<run_id>'\n\n# 3) Fetch results: read with pagination, or export everything with format=jsonl / csv\ncurl -H 'Authorization: Bearer <YOUR_API_KEY>' \\\n  '").concat(i,"/v1/runs/<run_id>/records?limit=50'"),f=(e,t)=>'# pip install bazhuayu-client\nfrom bazhuayu_client import Client\n\nwith Client(base_url="'.concat(i,'", api_key="<YOUR_API_KEY>") as client:\n    run = client.call("').concat(e,'", ').concat(t,')   # Submit and wait for the terminal state\n    for record in client.iterate_records(run["run_id"]):  # Auto-paginate through all results\n        print(record)'),x=(e,t)=>'// npm install bazhuayu-client\nimport { Client } from "bazhuayu-client";\n\nconst client = new Client({ baseUrl: "'.concat(i,'", apiKey: "<YOUR_API_KEY>" });\nconst run = await client.call("').concat(e,'", ').concat(t,");   // Submit and wait for the terminal state\nfor await (const record of client.iterateRecords(run.run_id)) {  // Auto-paginate through all results\n  console.log(record);\n}"),_=e=>{let t=e.split("/").pop()||e;return"# JSONL: one record per line — good for streaming and incremental ingestion\ncurl -H 'Authorization: Bearer <YOUR_API_KEY>' \\\n  '".concat(i,"/v1/runs/<run_id>/records?format=jsonl' > ").concat(t,".jsonl\n\n# CSV: fields selects columns, limit caps a single request at 10000 records\ncurl -H 'Authorization: Bearer <YOUR_API_KEY>' \\\n  '").concat(i,"/v1/runs/<run_id>/records?format=csv&limit=10000' > ").concat(t,".csv")}},62909:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return B},default:function(){return E}});var a,r,i=n(11527),s=n(98143),o=n(87827),c=n(6730),l=n(21601),d=n(874),u=n.n(d),p=n(25654),m=n(67422),y=n.n(m),h=n(50959);let f={python:{label:"Python",description:"upstream.access.sdkPythonDesc",code:'from bazhuayu_client import Client\n\nclient = Client(base_url="'.concat(c.Qf,'", api_key="<YOUR_API_KEY>")\nrun = client.call("<owner>/<app_name>", {"query": "demo"})')},js:{label:"JavaScript",description:"upstream.access.sdkJsDesc",code:'import { Client } from "bazhuayu-client";\n\nconst client = new Client({ baseUrl: "'.concat(c.Qf,'", apiKey: "<YO
1UR_API_KEY>" });\nconst run = await client.call("<owner>/<app_name>", { query: "demo" });')}},x=(e,t)=>{u()(t)?l.y.success(e("upstream.access.copySuccess")):l.y.error(e("upstream.access.copyFail"))};function _(){let{t:e,i18n:t}=(0,p.$G)("open-platform"),[n,a]=(0,h.useState)("python"),r=f[n],s=[{title:"REST API",description:e("upstream.access.restDesc"),code:"curl -X POST '".concat(c.Qf,"/v1/data-apps/<owner>/<app_name>/runs?wait=60' \\\n  -H 'Authorization: Bearer <YOUR_API_KEY>' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\"query\":\"demo\"}'")},{title:"SDK",sdkSelect:!0,description:e(r.description),code:r.code},{title:"MCP",description:e("upstream.access.mcpDesc"),code:'{\n  "type": "http",\n  "url": "'.concat(c.rS,'",\n  "headers": { "Authorization": "Bearer <YOUR_API_KEY>" }\n}')},{title:"CLI",comingSoon:!0,description:e("upstream.access.cliDesc"),code:""}];return(0,i.jsxs)("section",{className:"mt-5 rounded-2xl bg-white p-7",children:[(0,i.jsxs)("div",{className:"mb-5 flex items-start justify-between gap-6",children:[(0,i.jsxs)("div",{children:[(0,i.jsx)("h2",{className:"text-lg font-semibold text-[#1f1f1f]",children:e("upstream.access.title")}),(0,i.jsx)("p",{className:"mt-1 text-[13px] text-[#8c8c8c]",children:e("upstream.access.subtitle")})]}),(0,i.jsx)(y(),{href:"".concat((0,o.Ct)(t.language),"/datahub/api"),target:"_blank",rel:"noopener noreferrer",className:"shrink-0 text-[13px] font-medium text-primary hover:text-[#2557d6]",children:e("upstream.access.docsLink")})]}),(0,i.jsx)("div",{className:"grid grid-cols-2 gap-4 xl:grid-cols-4",children:s.map(t=>(0,i.jsxs)("article",{className:"min-w-0 rounded-xl bg-[#f6f7f9] p-4",children:[(0,i.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,i.jsxs)("span",{className:"flex min-w-0 items-center gap-2",children:[(0,i.jsx)("b",{className:"text-sm font-semibold text-[#1f1f1f]",children:t.title}),t.sdkSelect&&(0,i.jsx)("select",{value:n,onChange:e=>a(e.target.value),className:"cursor-pointer rounded border border-[#e3e3e3] bg-white px-1.5 py-0.5 text-xs text-[#3f495d] outline-none","aria-label":e("upstream.access.sdkLangAria"),children:Object.keys(f).map(e=>(0,i.jsx)("option",{value:e,children:f[e].label},e))}),t.comingSoon&&(0,i.jsx)("em",{className:"rounded bg-[#fff7e6] px-1.5 py-0.5 text-[10px] font-normal not-italic text-[#c2650a]",children:e("upstream.access.comingSoon")})]}),!t.comingSoon&&(0,i.jsx)("button",{type:"button",className:"shrink-0 text-xs font-medium text-primary hover:text-[#2557d6]",onClick:()=>x(e,t.code),children:e("common.copy")})]}),(0,i.jsx)("p",{className:"mb-3 mt-1 text-xs text-[#8c8c8c]",children:t.description}),t.code&&(0,i.jsx)("pre",{className:"max-h-[132px] overflow-auto whitespace-pre-wrap break-all font-mono text-[11px] leading-[18px] text-[#3f495d]",children:t.code})]},t.title))})]})}var g=n(1129),v=n(99880),b=n(13181),k=n(96048),j=n(17888),w=n.n(j),N=n(25715),A=n.n(N);function C(e){return e===k.Bq.Active||1===e||"1"===e||"active"===String(e).toLowerCase()?k.Bq.Active:k.Bq.Disabled}function K(e){var t;let n=e.fullKey||e.FullKey||"",a=C(null!==(t=e.status)&&void 0!==t?t:e.Status);return{...e,id:e.id||e.Id||"",name:e.name||e.Name||"",fullKey:n,keyPrefix:e.keyPrefix||e.KeyPrefix||(n?n.length<=14?n:"".concat(n.slice(0,8),"***").concat(n.slice(-4)):""),status:a===k.Bq.Active&&function(e){let t=e.expireTime||e.ExpireTime||e.expiresAt||e.expiration;return!!(t&&w()(t).isValid()&&!w()(t).isAfter(w()()))}(e)?k.Bq.Disabled:a,createdAt:e.createdAt||e.CreatedAt||"",description:e.description||e.Description||""}}(a=r||(r={})).Name="name",a.Reveal="reveal";let P=()=>{let{t:e}=(0,p.$G)("open-platform"),{data:t,mutate:n,isLoading:a}=(0,k.nB)(),[o,c]=(0,h.useState)(!1),[d,m]=(0,h.useState)(r.Name),[y,f]=(0,h.useState)(""),[x,g]=(0,h.useState)(!1),[j,N]=(0,h.useState)(""),[P,B]=(0,h.useState)(null),[E,D]=(0,h.useState)(!1),R=(0,h.useRef)(null),S=(0,h.useMemo)(()=>Array.isArray(t)?t.map(K).filter(e=>e.id):[],[t]);(0,h.useEffect)(()=>{if(!o||d!==r.Name)return;let e=window.setTimeout(()=>{var e;return null===(e=R.current)||void 0===e?void 0:e.focus()},100);return()=>window.clearTimeout(e)},[o,d]);let I=()=>{f(""),g(!1),N(""),m(r.Name),c(!0)},O=()=>{c(!1),m(r.Name),f(""),g(!1),N("")},Y=async()=>{let t=y.trim();if(!t){var a;g(!0),null===(a=R.current)||void 0===a||a.focus();return}g(!1),D(!0);try{let a=await (0,k.Qd)(t);if(null==a?void 0:a.error){l.y.error(e("apiKeys.msg.createFailed"));return}await n();let i=a.fullKey;if(!i){l.y.success(e("apiKeys.msg.createSuccess")),O();return}N(i||""),m(r.Reveal)}finally{D(!1)}},T=async()=>
1{if(!j)return;let t=u()(j);t?l.y.success(e("common.copied")):l.y.error(e("apiKeys.msg.copyFailedManual"))},L=async t=>{if(!P){B(t.id);try{let a=C(t.status),r=a===k.Bq.Active?await (0,k.Mz)(t.id):await (0,k.uo)(t.id);if(null==r?void 0:r.error){l.y.error(e("apiKeys.msg.toggleFailed"));return}n()}finally{B(null)}}},U=async t=>{await (0,b.a)({title:e("apiKeys.deleteTitle"),content:e("apiKeys.deleteContent",{name:t.name}),confirm:e("common.delete"),cancel:e("common.cancel"),onConfirm:async()=>{let a=await (0,k.df)(t.id);if(null==a?void 0:a.error){l.y.error(e("apiKeys.msg.deleteFailed"));return}l.y.success(e("apiKeys.msg.deleteSuccess")),n()}})};return(0,i.jsxs)("div",{className:A().wrapper,children:[(0,i.jsx)(v.yG,{title:e("apiKeys.title"),desc:e("apiKeys.desc"),extra:(0,i.jsxs)("button",{className:A().primaryBtn,onClick:I,children:[(0,i.jsx)("span",{children:"+"}),e("apiKeys.create")]})}),(0,i.jsx)("div",{className:A().container,children:a||0!==S.length?(0,i.jsxs)("table",{className:A().table,children:[(0,i.jsx)("thead",{children:(0,i.jsxs)("tr",{children:[(0,i.jsx)("th",{children:e("common.name")}),(0,i.jsx)("th",{children:e("apiKeys.keyPrefix")}),(0,i.jsx)("th",{children:e("common.status")}),(0,i.jsx)("th",{children:e("common.createdAt")}),(0,i.jsx)("th",{children:e("common.actions")})]})}),(0,i.jsx)("tbody",{children:S.map(t=>{let n=C(t.status);return(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{children:(0,i.jsx)("div",{className:A().keyName,children:t.name})}),(0,i.jsx)("td",{children:(0,i.jsx)("div",{className:A().keyValue,children:(0,i.jsx)("span",{children:t.keyPrefix})})}),(0,i.jsx)("td",{children:(0,i.jsxs)("span",{className:"".concat(A().status," ").concat(n===k.Bq.Active?A().active:A().disabled),children:[(0,i.jsx)("span",{className:A().dot}),n===k.Bq.Active?e("apiKeys.statusActive"):e("apiKeys.statusDisabled")]})}),(0,i.jsx)("td",{children:function(e){let t=w()(e);return t.isValid()?t.format("YYYY-MM-DD"):e}(t.createdAt)}),(0,i.jsx)("td",{children:(0,i.jsxs)("div",{className:A().actions,children:[(0,i.jsx)("button",{className:A().actionBtn,onClick:()=>L(t),disabled:P===t.id,children:n===k.Bq.Active?e("apiKeys.disable"):e("apiKeys.enable")}),(0,i.jsx)("button",{className:"".concat(A().actionBtn," ").concat(A().danger),onClick:()=>U(t),children:e("common.delete")})]})})]},t.id)})})]}):(0,i.jsxs)("div",{className:A().sectionEmpty,children:[(0,i.jsx)("div",{className:A().emptyIllustration,"aria-hidden":"true"}),(0,i.jsxs)("div",{className:A().emptyTitle,children:[e("apiKeys.emptyTitle"),
1(0,i.jsx)("button",{className:A().emptyAction,onClick:I,children:e("apiKeys.create")})]})]})}),(0,i.jsx)(_,{}),o&&(0,i.jsx)("div",{className:A().modalMask,onClick:()=>{d!==r.Reveal&&O()},children:(0,i.jsx)("div",{className:A().modal,onClick:e=>{e.stopPropagation()},children:d===r.Name?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:A().modalHead,children:[(0,i.jsxs)("div",{children:[(0,i.jsx)("div",{className:A().modalHeadTitle,children:e("apiKeys.create")}),(0,i.jsx)("div",{className:A().modalHeadDesc,children:e("apiKeys.createDesc")})]}),(0,i.jsx)("div",{className:A().close,role:"button",tabIndex:0,onClick:O,title:e("common.close"),children:(0,i.jsx)(s.Z,{className:"size-4 text-[#262626]","aria-hidden":!0})})]}),(0,i.jsxs)("div",{className:A().modalBody,children:[(0,i.jsx)("div",{className:A().label,children:e("apiKeys.nameLabel")}),(0,i.jsx)("input",{ref:R,className:"".concat(A().input," ").concat(x?A().inputError:""),value:y,maxLength:50,placeholder:e("apiKeys.namePlaceholder"),onChange:e=>f(e.target.value),onBlur:()=>g(!1)}),(0,i.jsx)("div",{className:A().hint,children:e("apiKeys.nameHint")})]}),(0,i.jsxs)("div",{className:A().modalFoot,children:[(0,i.jsx)("button",{className:A().secondaryBtn,onClick:O,disabled:E,children:e("common.cancel")}),(0,i.jsx)("button",{className:A().primaryBtn,onClick:Y,disabled:E,children:e("apiKeys.generate")})]})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:A().modalHead,children:[(0,i.jsxs)("div",{children:[(0,i.jsx)("div",{className:A().modalHeadTitle,children:e("apiKeys.revealTitle")}),(0,i.jsx)("div",{className:A().modalHeadDesc,children:e("apiKeys.revealDesc")})]}),(0,i.jsx)("div",{className:A().close,role:"button",tabIndex:0,onClick:O,title:e("common.close"),children:(0,i.jsx)(s.Z,{className:"size-4 text-[#262626]","aria-hidden":!0})})]}),(0,i.jsxs)("div",{className:A().modalBody,children:[(0,i.jsxs)("div",{className:A().revealBox,children:[(0,i.jsx)("div",{className:A().revealLabel,children:e("apiKeys.fullKeyLabel")}),(0,i.jsx)("div",{className:A().revealValue,children:j||"-"}),(0,i.jsxs)("button",{className:A().revealCopy,onClick:T,children:[(0,i.jsxs)("svg",{fill:"none",width:"14",height:"14",viewBox:"0 0 16 16",stroke:"currentColor",strokeWidth:"1.8",children:[(0,i.jsx)("rect",{x:"5",y:"5",width:"8",height:"8",rx:"1.5"}),(0,i.jsx)("path",{d:"M3 11V3h8"})]}),e("common.copy")]})]}),(0,i.jsx)("div",{className:A().warn,children:e("apiKeys.revealWarn")})]}),(0,i.jsx)("div",{className:A().modalFoot,children:(0,i.jsx)("button",{className:A().primaryBtn,onClick:O,children:e("apiKeys.savedConfirm")})})]})})})]})};P.getLayout=g.G;var B=!0,E=P},15912:function(e){e.exports={"global-dialog-wrapper":"dialog_global-dialog-wrapper__8yuJv","task-setting-dialog":"dialog_task-setting-dialog__XihCG"}},58478:function(e){e.exports={content:"simpleConfirm_content__BDK0g",btns:"simpleConfirm_btns__B6u9d",common:"simpleConfirm_common__aecah",gray:"simpleConfirm_gray__Bvze8"}},25715:function(e){e.exports={wrapper:"api-keys_wrapper__sO4Bj",container:"api-keys_container__iBp_c",head:"api-keys_head__awMif",title:"api-keys_title__ywEqP",desc:"api-keys_desc__OQWXP",primaryBtn:"api-keys_primaryBtn__eM11w",table:"api-keys_table__NHOnX",keyName:"api-keys_keyName__iMnVl",keyValue:"api-keys_keyValue__1Z12Q",status:"api-keys_status__zQQKo",dot:"api-keys_dot__xtcqP",active:"api-keys_active__GKNMr",disabled:"api-keys_disabled__NZDdm",actions:"api-keys_actions__QBIKD",actionBtn:"api-keys_actionBtn__2euKR",danger:"api-keys_danger__M3K86",sectionEmpty:"api-keys_sectionEmpty__MEEva",emptyIllustration:"api-keys_emptyIllustration__99Tiy",emptyTitle:"api-keys_emptyTitle__w5izD",emptyAction:"api-keys_emptyAction___FlhG",modalMask:"api-keys_modalMask__CAMVI",modal:"api-keys_modal__kJtFd",modalHead:"api-keys_modalHead__3hGyy",modalHeadTitle:"api-keys_modalHeadTitle__FWw1W",modalHeadDesc:"api-keys_modalHeadDesc__40Ui0",close:"api-keys_close__xuYL2",modalBody:"api-keys_modalBody__cl3HE",label:"api-keys_label__APApv",input:"api-keys_input__eerZA",inputError:"api-keys_inputError__1LL55",hint:"api-keys_hint__R7q50",modalFoot:"api-keys_modalFoot__Vhxly",secondaryBtn:"api-keys_secondaryBtn__kWfyc",revealBox:"api-keys_revealBox__ifbIv",revealLabel:"api-keys_revealLabel__xXVQ5",revealValue:"api-keys_revealValue__UwtLi",revealCopy:"api-keys_revealCopy__DyIhU",warn:"api-keys_warn__3THSg"}},16935:function(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],a=0;a<e.rangeCount;a++)n.push(e.getRangeAt(a));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEac
1h(function(t){e.addRange(t)}),t&&t.focus()}}}},function(e){e.O(0,[6841,5989,8827,6919,1129,9774,2888,179],function(){return e(e.s=26261)}),_N_E=e.O()}]);

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.