PageSourceSearch

https://www.start.gg/assets/__static/2219/_next/static/chunks/page…/[clientId]/approve-4d34ec0be11ba9a0.js

js start.gg collected 2026-09-24 08:50:23 UTC 9,765 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[798],{16803:function(e,r,t){"use strict";t.d(r,{Z:function(){return p}});var n=t(59499),i=t(4730),o=t(86010),a=t(98542),s=t.n(a),c=t(85893),u=["className","active"];function l(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}var d=function(e){var r=e.className,t=e.active,a=void 0!==t&&t,d=(0,i.Z)(e,u);return(0,c.jsx)("button",function(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?l(Object(t),!0).forEach((function(r){(0,n.Z)(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):l(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}({className:(0,o.Z)(r,s().button,(0,n.Z)({},s().active,a))},d))},p=d},8970:function(e,r,t){"use strict";t.d(r,{u:function(){return m}});var n=t(6339),i=t(26037),o=t(67294),a=t(59499),s=t(98480),c=t(28968),u=t(44071),l=t(48729),d=t(96486),p=t(11163),v=t(85893);function f(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}var h=function(e){var r=e.page,t=e.routeMeta,n=(0,p.useRouter)(),i=(0,o.useState)(null),h=i[0],j=i[1];return(0,o.useEffect)((function(){h&&n.replace(h)}),[h]),(0,v.jsx)(s.fj,{children:function(e){var i=(0,e.getCurrentUser)();return!i&&t.loginRequired?(0,v.jsx)(u.Z,{currentUser:i}):(0,v.jsx)(c.nF,{children:function(e){if(i){var t,s=i.toJS(),c=null===(t=e.toJS().query)||void 0===t?void 0:t.optionalParams,u=(0,l.Z)(n.asPath,s,c);u&&j(u)}return o.cloneElement(r,function(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?f(Object(t),!0).forEach((function(r){(0,a.Z)(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):f(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}({currentRoute:e},(0,d.omit)(e.get("query").toJS(),"ref")))}})}})},j=h,g=t(94184),x=t.n(g),m=function(e,r,t){var o=!0,a=!1,s=!1,c=!r.isEmbed&&!r.isOverlayRoute&&!r.hideDrawer,u=x()({wrapper:!0,"has-drawer":c,"has-header":o,"is-admin":a,"is-legacy-admin":s}),l=(0,v.jsx)(v.Fragment,{children:(0,v.jsx)(i.Z,{routeMeta:r,pageProps:t,children:(0,v.jsx)("div",{id:"app",children:(0,v.jsx)("div",{id:"app_top_level",className:"TopLevel",children:(0,v.jsx)("div",{id:"app_feature_canvas",className:u,children:(0,v.jsx)(j,{page:e,routeMeta:r})})})})})});return r.i18nOverride&&(l=(0,v.jsx)(n.a,{i18n:r.i18nOverride,children:l})),l}},33795:function(e,r,t){"use strict";t.d(r,{G:function(){return v}});var n=t(59499),i=t(4730),o=(t(67294),t(85486)),a=t(71298),s=t(8970),c=t(85893),u=["children"];function l(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function d(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?l(Object(t),!0).forEach((function(r){(0,n.Z)(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):l(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function p(e){var r=e.children,t=(0,i.Z)(e,u);return(0,a.P)(),(0,c.jsx)(o.Z,d(d({},t),{},{children:r}))}var v=function(e){return function(r,t){return(0,s.u)((0,c.jsx)(p,d(d({},t),{},{titleKey:null===e||void 0===e?void 0:e.titleKey,children:r})),d(d({},e),{},{isEmbed:!0,hideDrawer:!0}),t)}}},44071:function(e,r,t){"use strict";var n=t(11214),i=t(98844),o=(t(67294),t(72555)),a=t.n(o),s=(t(43393),t(78147)),c=t(31250),u=t(48206),l=t(41074),d=t(85893),p=a()({displayName:"LoginIndex",render:function(){var e=this.props.translate;return(0,d.jsx)("div",{className:"login-page",children:(0,d.jsxs)(u.Z,{children:[(0,d.jsxs)("div",{className:"text-center text-header-color",children:[(0,d.jsx)(i.ZT,{variant:"h5",component:"h3",children:e("LoginForm.pageHeader")}),(0,d.jsx)("p",{children:e("LoginForm.pageDescription")})]}),(0,d.jsx)("div",{className:"row",children:(0,d.jsx)("div",{className:"col-xs-12 col-sm-6 col-sm-offset-3",children:(0,d.jsx)("div",{className:"rounded-corners shadow-item",children:(0,d.jsx)(c.Z,{currentUser:this.props.currentUser,showRegister:!0,componentType:"loginPage"})})})})]})})}});r.Z=(0,n.qC)((0,l.Z)(),s.Z)(p)},33967:function(e,r,t){"use strict";t(67294);var n=t(48206),i=t(85893);function o(e){var r=e.children,t=e.size,o=e.className;return(0,i.jsx)("div",{className:o,children:(0,i.jsx)(n.Z,{size:t,children:r})})}o.defaultProps={size:"large",className:"page-section page-section-sm no-border  ",children:null},r.Z=o},48206:function(e,r,t){"use strict";t.d(r,{Z:function(){return l}});var n=t(59499),i=(t(67294),t(94184)),o=t.n(i),a=t(18014),s=t.n(a),c=t(85893);function u(e){var r,t=e.id,i=e.children,a=e.className,u=e.size,l=e.style,d=o()(s().Container,(r={DEPRECATED_bootstrap_container:!0},(0,n.Z)(r,s()[u],Boolean(u)),(0,n.Z)(r,a,Boolean(a)),r));return(0,c.jsx)("div",{id:t,className:d,style:l,children:i})}u.defaultProps={id:null,children:null,className:null,size:"primary",style:{}};var l=u},22658:function(e,r,t){"use strict";t.d(r,{Z:function(){return l}});t(67294);var n=t(34174),i=t(48206),o=t(54730),a=t(1874),s=t(60498),c=t.n(s),u=t(85893),l=function(e){var r=e.currentRoute;if(function(e){if(!e)return!1;if(void 0!==e.get("isPrint")){var r=e.get("isPrint");if("function"===typeof r)return r(e.get("params").toJS())}return!1}(r))return null;var t=(r&&r.get("ggPage")||{}).layout,s=t&&t.ssrLoader;if(s)return(0,u.jsx)("div",{className:c().customLoaderContainer,children:(0,u.jsx)(s,{})});var l=r&&(r.getIn(["query","forceModal"])||r.getIn(["query","autoAcceptHash"])),d=(0,u.jsx)(o.Z,{size:"sm",modalHeader:function(){return null},disableClose:!0,loading:!0,modal:(0,u.jsx)("div",{})}),p=(0,u.jsx)(a.Z,{});return(0,u.jsxs)(i.Z,{className:c().featureCanvasLoaderContainer,children:[l?d:null,(0,u.jsxs)(n.pN,{useLegacyStyles:!0,direction:"vertical",size:"md",children:[p,p,p]})]})}},1874:function(e,r,t){"use strict";t.d(r,{Z:function(){return o}});t(67294);var n=t(88078),i=t(85893);var o=function(){return(0,i.jsx)("div",{className:"tw",children:(0,i.jsxs)("div",{className:"p-4 [&&]:md:p-5 rounded-lg border border-[#eee] bg-white",children:[(0,i.jsx)(n.Z,{}),(0,i.jsx)(n.Z,{}),(0,i.jsx)(n.Z,{})]})})}},85486:function(e,r,t){"use strict";t(67294);var n=t(22658),i=t(28019),o=t(28968),a=t(85893);r.Z=function(e){var r=e.children,t=(0,i.Rn)().isLoadingRoute,s=(0,o.N0)(),c=(0,a.jsx)(n.Z,{currentRoute:s});return!t||null!==s&&void 0!==s&&s.get("shouldHideLoader")?r:c}},96830:function(e,r,t){"use strict";t.r(r),t.d(r,{__N_SSP:function(){return O},default:function(){return b}});var n=t(33795),i=t(67294),o=t(96486),a=t(21671),s=t(23198),c=t(98844),u=t(71953),l=t(33967),d=t(55006),p=t(16803),v=t(24762),f=t(71007),h=t(85893),j=function(e){var r,t,n=(0,f._)().t,j=e.clientId,g=e.currentRoute,x=(0,i.useState)(!1),m=x[0],O
1=x[1],b=(0,v.TU)({variables:{clientId:j},skip:!j}),y=b.loading,w=b.data,P=null!==(r=null===w||void 0===w?void 0:w.oauthApplication)&&void 0!==r?r:{},Z=P.name,N=P.description,_=P.appUrl,C=void 0===_?"":_,A=(0,o.keyBy)(null!==(t=null===w||void 0===w?void 0:w.oauthScopes)&&void 0!==t?t:[],"id"),D=g.getIn(["params","scopes"],"").split(",");return(0,h.jsx)(l.Z,{children:(0,h.jsxs)(a.Ki,{spacing:4,children:[(0,h.jsxs)("div",{children:[(0,h.jsx)(u.Z,{height:"15",width:"15"}),(0,h.jsx)(c.ZT,{children:n("OAuthClientApprovalPage.signInWith")})]}),(0,h.jsx)(s.Zb,{children:(0,h.jsx)(a.xu,{p:2,children:(0,h.jsxs)(a.MI,{spacing:3,direction:"column",children:[(0,h.jsx)(c.ZT,{variant:"h2",children:n("OAuthClientApprovalPage.authorize")}),(0,h.jsx)(c.ZT,{variant:"h4",children:y?(0,h.jsx)(c.Od,{width:"50%"}):n("OAuthClientApprovalPage.appAccess",{name:Z})}),(0,h.jsx)("ul",{children:D.map((function(e,r){var t;return(0,h.jsx)("li",{children:y?(0,h.jsx)(c.Od,{width:"25%"}):null===(t=A[e])||void 0===t?void 0:t.description},r)}))}),N&&(0,h.jsx)(c.ZT,{variant:"h6",children:N}),(0,h.jsx)(c.ZT,{variant:"h6",children:y?(0,h.jsx)(c.Od,{width:"50%"}):(0,h.jsx)(d.Z,{href:C,target:"_blank",children:n("OAuthClientApprovalPage.learnMore",{name:Z,appUrl:C})})}),(0,h.jsx)("div",{children:y?(0,h.jsx)(c.Od,{width:"10%"}):(0,h.jsx)(p.Z,{onClick:function(){O(!0),window.location.assign("/api/-/rest/oauth/authorize/end?isApproved=true")},disabled:m,children:n(m?"OAuthClientApprovalPage.approving":"OAuthClientApprovalPage.approve")})})]})})})]})})},g=t(28968),x={name:"oauthClientApprove",hideDrawer:!0,pageTelemetry:{name:"OAuth Client Approve"}},m=function(e){return(0,h.jsx)(j,{clientId:e.clientId,currentRoute:(0,g.N0)()})};m.routeMeta=x,m.getLayout=(0,n.G)(x);var O=!0,b=m},80141:function(e,r,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/oauth/client/[clientId]/approve",function(){return t(96830)}])},18014:function(e){e.exports={Container:"Container-sggglrGx",primary:"primary-sggnEKi0",large:"large-sggQpXDH",fluid:"fluid-sggfJRww"}},60498:function(e){e.exports={featureCanvasLoaderContainer:"featureCanvasLoaderContainer-sggIYRea",customLoaderContainer:"customLoaderContainer-sggaV-oB"}},98542:function(e){e.exports={button:"styles_button__qoBT6",active:"styles_active__g599w"}}},function(e){e.O(0,[9774,2888,179],(function(){return r=80141,e(e.s=r);var r}));var r=e.O();_N_E=r}]);
2//# sourceMappingURL=approve-4d34ec0be11ba9a0.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.