PageSourceSearch

https://assets.woorank.com/hydra/ApiKeys.31c8e21611d19e9f38f9.js

js woorank.com collected 2026-09-24 08:02:02 UTC 5,617 bytes, 2 lines download raw bytes

1(self.webpackChunkhydra=self.webpackChunkhydra||[]).push([[6227],{79255:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>_});var a=n(92137),r=n(28481),c=n(96156),l=n(87757),o=n.n(l),i=n(67294),s=n(41120),m=n(43832),p=n(22318),u=n(55517),d=n(79895),g=n(32467),E=n(51463),f=n(43993),y=n(65549),h=(0,s.Z)((function(e){var t;return{heading:{padding:e.spacing(4,0)},subHeading:{marginBottom:e.spacing(4)},content:{padding:e.spacing(4,0)},row:{display:"flex",alignItems:"center",marginTop:e.spacing(1)},text:{flexGrow:1,marginRight:e.spacing(2)},buttons:{flexGrow:0},copyBtn:{background:e.palette.grey[100],padding:e.spacing(1,2),borderRadius:35*e.shape.borderRadius,flexShrink:0,marginLeft:e.spacing(1)},copyText:{fontWeight:e.typography.fontWeightSemibold,marginLeft:e.spacing(1)},deleteButton:{color:e.palette.error.main,marginTop:e.spacing(1)},outlinedInput:{display:"flex",justifyContent:"space-between",alignItems:"center",border:"1px solid ".concat(e.palette.grey[300]),borderRadius:2.5*e.shape.borderRadius,padding:e.spacing(1.5),maxWidth:550},apiLegendContainer:(t={display:"flex",flexDirection:"column",justifyContent:"flex-start",flexGrow:1},(0,c.Z)(t,e.breakpoints.up("sm"),{flexDirection:"row",justifyContent:"space-between"}),(0,c.Z)(t,"paddingBottom",e.spacing(3)),t),apiLegendText:{fontSize:e.typography.fontSizeSmall,pointerEvents:"none"}}})),v="•••••••••••••••••••••••••••••••••••••••••••";function _(e){var t=e.data,n=t.apiKey,c=t.apiUsage,l=(0,f.QT)(),s=l.translate,_=l.locale,x=h(),k=s("assistant_tab_copy"),N=s("assistant_tab_copied"),Z=(0,i.useState)(n),b=(0,r.Z)(Z,2),w=b[0],C=b[1],z=(0,i.useState)(k),T=(0,r.Z)(z,2),S=T[0],H=T[1],L=(0,i.useState)(!1),B=(0,r.Z)(L,2),j=B[0],I=B[1],R=(0,i.useState)(v),W=(0,r.Z)(R,2),F=W[0],G=W[1],J=(0,f.m9)().setCopyToClipboard,K=(0,i.useState)(c),O=(0,r.Z)(K,2),q=O[0],D=O[1],Q=function(){return I(!1)};(0,i.useEffect)((function(){return D(c)}),[c]);var U=function(){var e=(0,a.Z)(o().mark((function e(){var t,n;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,y.IV("/api/user/api-key").json();case 2:t=e.sent,n=t.apiKey,C(n);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),A=function(){var e=(0,a.Z)(o().mark((function e(){var t,n;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,y.v_("/api/user/api-key").json();case 2:t=e.sent,n=t.apiKey,C(n);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,i.useEffect)((function(){w&&G(j?w:v)}),[j,w]),i.createElement(i.Fragment,null,i.createElement(m.Z,{maxWidth:"lg",className:"nr-account-billing"},i.createElement(p.Z,{component:"h1",variant:"h2",className:x.heading},i.createElement(E.vN,{content:"account_api_title"}))),i.createElement(u.Z,null),i.createElement(m.Z,{maxWidth:"lg"},i.createElement("div",{className:x.content},i.createElement(p.Z,{component:"h2",variant:"h3",className:x.subHeading},i.createElement(E.vN,{content:"keys_key_management"})),w?i.createElement(i.Fragment,null,i.createElement(p.Z,{component:"h3",variant:"h4",paragraph:!0},i.createElement(E.vN,{content:"keys_api_key"})),i.createElement(d.Z,{elevation:0,className:x.outlinedInput},F,i.createElement("span",null,j?i.createElement(g.Z,{onClick:function(){return Q()}},i.createElement(E.JO,{size:"sm",type:"eye-hide"})):i.createElement(g.Z,{onClick:function(){I(!0),setTimeout((function(){return Q()}),2e3)}},i.createElement(E.JO,{size:"sm",type:"eye-show"})),i.createElement(E.zx,{size:"small",variant:"contained",onClick:function(){J(w),H("".concat(N,"!")),setTimeout((function(){return H(k)}),2e3)},className:x.copyBtn},i.createElement(E.JO,{type:"page-content",size:"md"}),i.createElement("span",{className:x.copyText},S)))),i.createElement(E.zx,{variant:"text",className:x.deleteButton,onClick:U},i.createElement(E.vN,{content:"delete"}))):i.createElement("div",{className:x.row},i.createElement("div",{className:x.text},i.createElement(E.vN,{content:"keys_no_api_key"})),i.createElement("div",{className:x.buttons},i.createElement(E.zx,{variant:"contained",color:"primary",onClick:A},i.createElement(E.vN,{content:"keys_create"})))))),q?i.createElement(i.Fragment,null,i.createElement(u.Z,null),i.createElement(m.Z,null,i.createElement("div",{className:x.content},i.createElement(p.Z,{component:"h2",variant:"h3",className:x.subHeading}
1,i.createElement(E.vN,{content:"keys_api_usage_title"})),i.createElement(p.Z,{component:"h3",variant:"h4",paragraph:!0},i.createElement("strong",null,q.usedHits)),i.createElement(E.ko,{borderColor:"none",value:q.usedHits,max:q.allowedHits,color:"primary"}),i.createElement("div",{className:x.row},i.createElement("div",{className:x.apiLegendContainer},i.createElement(p.Z,{className:x.apiLegendText},i.createElement(E.vN,{content:"keys_api_usage_total_used",with:{totalAllowed:q.allowedHits}})),i.createElement(p.Z,{className:x.apiLegendText},i.createElement(E.vN,{content:"keys_api_usage_percentage_quota_used",with:{pctQuotaUsed:Math.floor(q.percentageHits)}})))),c.quotaExceeded?i.createElement("p",null,i.createElement(E.zx,{href:"/".concat(_,"/user/plan"),variant:"contained",color:"primary",size:"large"},i.createElement(E.vN,{content:"account_subscription_change_plan"}))):null,i.createElement("p",null,i.createElement("a",{href:"https://apidocs.woorank.com/",target:"_blank",rel:"nofollow noopener noreferrer"},i.createElement(E.vN,{content:"read_the_documentation"})))))):null)}}}]);
2//# sourceMappingURL=ApiKeys.31c8e21611d19e9f38f9.js.map

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.